v0.2.27
Features
- currency: intro Nls as a means for payments (Gancho Manev)
Bug Fixes
- rewards_dispatcher: rewards scale config (Gancho Manev)
- rewards_dispatcher: rewards cadence hours (Gancho Manev)
- oracle: test (Gancho Manev)
- lease: not set timealarm in the past (Gancho Manev)
Chores
- oracle: remove unused imports (Gancho Manev)
- catch up with the versions (Gancho Manev)
Upgrade from v0.2.26
A list of smart contract migrations has to be applied on a chain with the help of gov proposals. The ones in the same section may be run together. The fees are left empty letting the operator fine-tune.
Store the new code of Lease, Rewards Dispatcher and Oracle contracts
IMPORTANT! They all should have --run-as <admin contract address>
and with their respective --code-hash <code hash>
, where <code hash>
is the binary's SHA256 hash.
Pass the Leaser contract --instantiate-anyof-addresses nolus1wn625s4jcmvk0szpl85rj5azkfc6suyvf75q6vrddscjdphtve8s5gg42f
when storing the Lease contract and --instantiate-anyof-addresses nolus1gurgpv8savnfw66lckwzn4zk7fp394lpe667dhu7aw48u40lj6jsqxf8nd
otherwise.
Update the contracts via the Admin contract
nolusd tx gov submit-proposal sudo-contract <admin contract addr> '{"migrate_contracts":{"release":"v0.2.27-2023-06-08T12:44+00:00","migration_spec":{"oracle":{"code_id":<Oracle code id>,"migrate_msg":"{}"}, "dispatcher":{"code_id":<Rewards Dispatcher code Id>, "migrate_msg":"{}"}},"post_migration_execute":{"leaser":"{\"migrate_leases\":{\"new_code_id\":\"<Lease code id>\",\"max_leases\":1000}}"}}}' --title "Migrate contracts (v0.2.27)" --description "Migrate contracts to their version at release v0.2.27" --from <signer> --gas <gas_amount> --gas-prices 0.0025unls --deposit 10000000unls
Upgrade from v0.2.25
Follow the instructions for the upgrade to v0.2.26 using the build artifacts and "release" from this release.