-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2999 from Sifchain/release/0.13.4
Release/0.13.4
- Loading branch information
Showing
96 changed files
with
9,903 additions
and
2,214 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
1. Initialize and start the chain. From the repo root run the following: | ||
|
||
``` | ||
make init | ||
make run | ||
``` | ||
|
||
2. Create pool - add one million dollars of usdt and price rowan at 10c: | ||
|
||
``` | ||
sifnoded tx clp create-pool \ | ||
--from sif \ | ||
--keyring-backend test \ | ||
--symbol cusdt \ | ||
--nativeAmount 10000000000000000000000000 \ | ||
--externalAmount 1000000000000 \ | ||
--fees 100000000000000000rowan \ | ||
--chain-id localnet \ | ||
--broadcast-mode block \ | ||
-y | ||
``` | ||
|
||
3. Query the lppd parameters: | ||
|
||
``` | ||
sifnoded q clp lppd-params | ||
``` | ||
|
||
4. Set a new lppd policy: | ||
|
||
``` | ||
sifnoded tx clp set-lppd-params \ | ||
--from sif \ | ||
--keyring-backend test \ | ||
--chain-id localnet \ | ||
--broadcast-mode block \ | ||
-y \ | ||
--path <( echo '[ | ||
{ | ||
"distribution_period_block_rate": "0.01", | ||
"distribution_period_start_block": 1000, | ||
"distribution_period_mod": 10, | ||
"distribution_period_end_block": 433000 | ||
} | ||
]' ) | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
1. Initialize the chain | ||
|
||
``` | ||
make init | ||
``` | ||
|
||
2. Decrease the governance voting period time before first start; | ||
|
||
|
||
```bash | ||
echo "$(jq '.app_state.gov.voting_params.voting_period = "60s"' $HOME/.sifnoded/config/genesis.json)" > $HOME/.sifnoded/config/genesis.json | ||
``` | ||
|
||
3. Start the chain: | ||
|
||
``` | ||
make run | ||
``` | ||
|
||
4. List upgrade proposals: | ||
|
||
``` | ||
sifnoded q gov proposals --chain-id localnet | ||
``` | ||
|
||
5. Raise an upgrade proposal: | ||
|
||
|
||
```bash | ||
sifnoded tx gov submit-proposal software-upgrade plan_name \ | ||
--from sif \ | ||
--deposit 10000000000000000000stake \ | ||
--upgrade-height 30 \ | ||
--upgrade-info '{"binaries":{"linux/amd64":"url_with_checksum"}}' \ | ||
--title test_release \ | ||
--description "Test Release" \ | ||
--keyring-backend test \ | ||
--chain-id localnet \ | ||
--broadcast-mode block \ | ||
--fees 100000000000000000rowan \ | ||
-y | ||
``` | ||
|
||
6. Check deposits: | ||
|
||
``` | ||
sifnoded q gov deposits 1 | ||
``` | ||
|
||
7. Vote on proposal: | ||
|
||
``` | ||
sifnoded tx gov vote 1 yes --from sif --chain-id localnet --keyring-backend test -y --broadcast-mode block | ||
``` | ||
|
||
The node will have a consensus failure when it reaches the "upgrade-height". Restarting the node will not be enough for the chain to continue a new sifnoded release is required | ||
|
||
8. Make a new sifnoded release: | ||
|
||
i. Update "version" file content to "plan_name" | ||
ii. Update "app/setup_handlers.go" "releaseVersion" constant to "plan_name" | ||
|
||
6. Run the new release: | ||
|
||
``` | ||
make run | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
package sifnode.admin.v1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/api/annotations.proto"; | ||
import "sifnode/admin/v1/types.proto"; | ||
|
||
option go_package = "github.com/Sifchain/sifnode/x/admin/types"; | ||
|
||
// Query defines the gRPC querier service. | ||
service Query { | ||
rpc ListAccounts(ListAccountsRequest) returns (ListAccountsResponse) {} | ||
} | ||
|
||
message ListAccountsRequest {} | ||
|
||
message ListAccountsResponse { | ||
repeated AdminAccount keys = 2; | ||
} |
Oops, something went wrong.