Skip to content

Commit

Permalink
Merge pull request #192 from oasisprotocol/kostko/feature/release-0.6…
Browse files Browse the repository at this point in the history
….4-testnet

runtime: Bump Oasis SDK to 0.7.4 and prepare 0.6.4-testnet
  • Loading branch information
kostko authored Sep 26, 2023
2 parents bc27209 + 39bae5e commit 3a85e42
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
26 changes: 13 additions & 13 deletions runtime/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sapphire-paratime"
version = "0.6.3-testnet"
version = "0.6.4-testnet"
authors = ["Oasis Protocol Foundation <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand All @@ -21,8 +21,8 @@ debug = false
keymanager = { git = "https://github.com/oasisprotocol/keymanager-paratime", tag = "v0.3.3-testnet" }

# SDK.
module-evm = { git = "https://github.com/oasisprotocol/oasis-sdk", tag = "runtime-sdk/v0.7.3", package = "oasis-runtime-sdk-evm" }
oasis-runtime-sdk = { git = "https://github.com/oasisprotocol/oasis-sdk", tag = "runtime-sdk/v0.7.3" }
module-evm = { git = "https://github.com/oasisprotocol/oasis-sdk", tag = "runtime-sdk/v0.7.4", package = "oasis-runtime-sdk-evm" }
oasis-runtime-sdk = { git = "https://github.com/oasisprotocol/oasis-sdk", tag = "runtime-sdk/v0.7.4" }

# Third party.
once_cell = "1.8.0"
Expand Down
11 changes: 8 additions & 3 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const fn chain_id() -> u64 {
const fn state_version() -> u32 {
if is_testnet() {
// Testnet.
2
3
} else {
// Mainnet.
1
Expand Down Expand Up @@ -133,8 +133,8 @@ impl sdk::Runtime for Runtime {
if is_testnet() {
// Testnet.
Some(TrustRoot {
height: 17422276,
hash: "f1786d6cdce85a4351dde8c4694985c6e8ae2c8e14b75e3eaf2bf127fe2b9759".into(),
height: 17500584,
hash: "f93d453a2f3fda4e06e5f098d5b9853fa063fd652e758b680155aa72a873166c".into(),
runtime_id: "000000000000000000000000000000000000000000000000a6d1e3ebf60dff6c"
.into(),
chain_context: "50304f98ddb656620ea817cc1446c401752a05a249b36c9b90dba4616829977a"
Expand Down Expand Up @@ -192,6 +192,8 @@ impl sdk::Runtime for Runtime {
consensus_denomination: Denomination::NATIVE,
// Scale to 18 decimal places as this is what is expected in the EVM ecosystem.
consensus_scaling_factor: 1_000_000_000,
// Minimum delegation amount that matches the consensus layer.
min_delegate_amount: 100_000_000_000,
},
},
modules::consensus_accounts::Genesis {
Expand All @@ -201,6 +203,9 @@ impl sdk::Runtime for Runtime {
tx_withdraw: 60_000,
tx_delegate: 60_000,
tx_undelegate: 120_000,

store_receipt: 20_000,
take_receipt: 15_000,
},
disable_delegate: false,
disable_undelegate: false,
Expand Down

0 comments on commit 3a85e42

Please sign in to comment.