-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Application] Implement MsgStakeApplication & Add Extensive Tests (#59)
## Summary https://github.com/pokt-network/poktroll/assets/1892194/ffe3158d-a1b3-4672-8e0b-e673349067d2 ### Human Summary - Various small helpers (e.g. Makefile) - Shared helpers for unit tests - Add `stake` to the `Application` type - Add `stake` to the `MsgStakeApplication` command - Implement unit tests in all related parts of the codebase (CLI, genesis, keeper, etc...) with the exception of the `simulation` package --- Co-authored-by: harry <[email protected]> Co-authored-by: Bryan White <[email protected]>
- Loading branch information
1 parent
4be9ab9
commit b5cb88d
Showing
34 changed files
with
933 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,5 +50,8 @@ ts-client/ | |
.tool-versions | ||
|
||
# Proto artifacts | ||
*/*.pb.go | ||
*/*.pb.gw.go | ||
**/*.pb.go | ||
**/*.pb.gw.go | ||
|
||
# Mock | ||
**/*_mock.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,34 @@ | ||
**pocket** is a blockchain built using Cosmos SDK and Tendermint and created with [Ignite CLI](https://ignite.com/cli). | ||
# poktroll <!-- omit in toc --> | ||
|
||
## Get started | ||
**poktroll** is a rollup built using [Rollkit](https://rollkit.dev/), [Cosmos SDK](https://docs.cosmos.network) and [CometBFT](https://cometbft.com/), created with [Ignite CLI](https://ignite.com/cli) for the Shannon upgrade of the [Pocket Network](https://pokt.network) blockchain. | ||
|
||
``` | ||
ignite chain serve | ||
``` | ||
- [Getting Started](#getting-started) | ||
- [Makefile](#makefile) | ||
- [Development](#development) | ||
- [LocalNet](#localnet) | ||
|
||
`serve` command installs dependencies, builds, initializes, and starts your blockchain in development. | ||
## Getting Started | ||
|
||
### Configure | ||
### Makefile | ||
|
||
Your blockchain in development can be configured with `config.yml`. To learn more, see the [Ignite CLI docs](https://docs.ignite.com). | ||
Run `make` to see all the available commands | ||
|
||
### Web Frontend | ||
### Development | ||
|
||
Ignite CLI has scaffolded a Vue.js-based web app in the `vue` directory. Run the following commands to install dependencies and start the app: | ||
```bash | ||
# Build local files & binaries | ||
make go_develop | ||
|
||
``` | ||
cd vue | ||
npm install | ||
npm run serve | ||
# Run all the unit tests | ||
make go_test | ||
``` | ||
|
||
The frontend app is built using the `@starport/vue` and `@starport/vuex` packages. For details, see the [monorepo for Ignite front-end development](https://github.com/ignite/web). | ||
### LocalNet | ||
|
||
## Release | ||
To release a new version of your blockchain, create and push a new tag with `v` prefix. A new draft release with the configured targets will be created. | ||
```bash | ||
# Create a k8s cluster | ||
kind create cluster | ||
|
||
# Start a LocalNet | ||
make localnet_up | ||
``` | ||
git tag v0.1 | ||
git push origin v0.1 | ||
``` | ||
|
||
After a draft release is created, make your final changes from the release page and publish it. | ||
|
||
### Install | ||
To install the latest version of your blockchain node's binary, execute the following command on your machine: | ||
|
||
``` | ||
curl https://get.ignite.com/username/pocket@latest! | sudo bash | ||
``` | ||
`username/pocket` should match the `username` and `repo_name` of the Github repository to which the source code was pushed. Learn more about [the install process](https://github.com/allinbits/starport-installer). | ||
|
||
## Learn more | ||
|
||
- [Ignite CLI](https://ignite.com/cli) | ||
- [Tutorials](https://docs.ignite.com/guide) | ||
- [Ignite CLI docs](https://docs.ignite.com) | ||
- [Cosmos SDK docs](https://docs.cosmos.network) | ||
- [Developer Chat](https://discord.gg/ignite) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.