Skip to content

Commit

Permalink
Merge pull request #99 from oasisprotocol/kostko/feature/release-0.3.0
Browse files Browse the repository at this point in the history
runtime: Prepare release 0.3.0
  • Loading branch information
kostko authored Dec 16, 2022
2 parents be68679 + b7707a0 commit d91b94c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 96 deletions.
99 changes: 8 additions & 91 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,12 +1,12 @@
[package]
name = "sapphire-paratime"
version = "0.3.0-testnet"
version = "0.3.0"
authors = ["Oasis Protocol Foundation <[email protected]>"]
edition = "2021"
license = "Apache-2.0"

[package.metadata.orc.release]
runtime-id = "0000000000000000000000000000000000000000000000000000000000000000"
runtime-id = "000000000000000000000000000000000000000000000000f80306c9858e7279"

[package.metadata.orc.test]
runtime-id = "000000000000000000000000000000000000000000000000a6d1e3ebf60dff6c"
Expand All @@ -18,7 +18,7 @@ threads = 6
debug = false

[dependencies]
keymanager = { git = "https://github.com/oasisprotocol/keymanager-paratime", tag = "v0.3.2-testnet" }
keymanager = { git = "https://github.com/oasisprotocol/keymanager-paratime", tag = "v0.3.2" }
module-evm = { git = "https://github.com/oasisprotocol/oasis-sdk", rev = "c43daf9d09c0d2c98c7bd6bf83294ced1db62a5c", package = "oasis-runtime-sdk-evm" }
oasis-runtime-sdk = { git = "https://github.com/oasisprotocol/oasis-sdk", rev = "c43daf9d09c0d2c98c7bd6bf83294ced1db62a5c" }

Expand Down
12 changes: 10 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,15 @@ impl sdk::Runtime for Runtime {
.to_string(),
})
} else {
panic!("no trust root defined for Mainnet");
// Mainnet.
Some(TrustRoot {
height: 11681155,
hash: "bb89af4a1b707adcb60905d0c3cfdbbc961e86b8f9186d9ffdedf544d7f7bfd3".into(),
runtime_id: "000000000000000000000000000000000000000000000000f80306c9858e7279"
.into(),
chain_context: "b11b369e0da5bb230b220127f5e7b242d385ef8c6f54906243f30af63c815535"
.to_string(),
})
}
}

Expand All @@ -130,7 +138,7 @@ impl sdk::Runtime for Runtime {
modules::core::Genesis {
parameters: modules::core::Parameters {
min_gas_price: { BTreeMap::from([(Denomination::NATIVE, 100_000_000_000)]) },
max_batch_gas: if is_testnet() { 30_000_000 } else { 10_000_000 },
max_batch_gas: if is_testnet() { 30_000_000 } else { 15_000_000 },
max_tx_size: 300 * 1024,
max_tx_signers: 1,
max_multisig_signers: 8,
Expand Down

0 comments on commit d91b94c

Please sign in to comment.