Skip to content

Commit

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

runtime: Bump Oasis SDK to 0.6.0 and prepare 0.5.2-testnet
  • Loading branch information
kostko committed May 15, 2023
2 parents 6e54623 + 8ca24bd commit ef375bb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 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.5.1-testnet"
version = "0.5.2-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.5.0", package = "oasis-runtime-sdk-evm" }
oasis-runtime-sdk = { git = "https://github.com/oasisprotocol/oasis-sdk", tag = "runtime-sdk/v0.5.0" }
module-evm = { git = "https://github.com/oasisprotocol/oasis-sdk", tag = "runtime-sdk/v0.6.0", package = "oasis-runtime-sdk-evm" }
oasis-runtime-sdk = { git = "https://github.com/oasisprotocol/oasis-sdk", tag = "runtime-sdk/v0.6.0" }

# Third party.
once_cell = "1.8.0"
Expand Down
9 changes: 5 additions & 4 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ impl modules::core::Config for Config {
const MIN_GAS_PRICE_EXEMPT_METHODS: Lazy<BTreeSet<&'static str>> =
Lazy::new(|| ["consensus.Deposit"].into());

/// Default local estimate gas amount to be added to failed transaction simulations.
const DEFAULT_LOCAL_ESTIMATE_GAS_EXTRA_FAIL: u64 = 5_000_000;
/// Estimated gas amount to be added to failed transaction simulations for selected methods.
const ESTIMATE_GAS_EXTRA_FAIL: Lazy<BTreeMap<&'static str, u64>> =
Lazy::new(|| [("evm.Create", 5_000_000), ("evm.Call", 5_000_000)].into());
}

impl module_evm::Config for Config {
Expand Down Expand Up @@ -121,8 +122,8 @@ impl sdk::Runtime for Runtime {
if is_testnet() {
// Testnet.
Some(TrustRoot {
height: 14975369,
hash: "3c6dd897249e9c84b210e6b81071bd9da89610eebf403bb047aa69aa9a657a95".into(),
height: 15413160,
hash: "766a9e90c395e8b0355a5a5364d6d444a8c7288d6685d83287b61b9d0fb33308".into(),
runtime_id: "000000000000000000000000000000000000000000000000a6d1e3ebf60dff6c"
.into(),
chain_context: "50304f98ddb656620ea817cc1446c401752a05a249b36c9b90dba4616829977a"
Expand Down

0 comments on commit ef375bb

Please sign in to comment.