Skip to content

Commit

Permalink
Update gas parameters (#67)
Browse files Browse the repository at this point in the history
* Update gas parameters

* Compile contract

* Update gas parameters values

* 0.1.3 Bridge Token Factory
  • Loading branch information
mfornet authored Jul 9, 2021
1 parent 8017e99 commit f7ce5f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bridge-token-factory/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bridge-token-factory"
version = "0.1.2"
version = "0.1.3"
authors = ["Near Inc <hello@near.org>"]
edition = "2018"
publish = false
Expand Down
7 changes: 4 additions & 3 deletions bridge-token-factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ const BRIDGE_TOKEN_NEW: Gas = 10_000_000_000_000;
const MINT_GAS: Gas = 8_000_000_000_000;

/// Gas to call ft_transfer_call when the target of deposit is a contract
const FT_TRANSFER_CALL_GAS: Gas = 80_000_000_000_000;
const FT_TRANSFER_CALL_GAS: Gas = 36_000_000_000_000;

/// Gas to call finish deposit method.
/// This doesn't cover the gas required for calling mint method.
const FINISH_DEPOSIT_GAS: Gas = 30_000_000_000_000;
const FINISH_DEPOSIT_GAS: Gas = 16_000_000_000_000;

/// Gas to call verify_log_entry on prover.
const VERIFY_LOG_ENTRY_GAS: Gas = 10_000_000_000_000;
const VERIFY_LOG_ENTRY_GAS: Gas = 70_000_000_000_000;

#[derive(Debug, Eq, PartialEq, BorshSerialize, BorshDeserialize)]
pub enum ResultType {
Expand Down Expand Up @@ -383,6 +383,7 @@ mod tests {
use near_sdk::{testing_env, MockedBlockchain};

use super::*;
use eth_types::BlockHeader;
use near_sdk::env::sha256;
use std::convert::TryInto;
use std::panic;
Expand Down
Binary file modified res/bridge_token_factory.wasm
Binary file not shown.

0 comments on commit f7ce5f3

Please sign in to comment.