Skip to content

Commit

Permalink
Fix factory gas parameters (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfornet authored Jul 23, 2021
1 parent f7ce5f3 commit 0035d83
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bridge-token-factory/Cargo.lock

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

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.3"
version = "0.1.4"
authors = ["Near Inc <[email protected]>"]
edition = "2018"
publish = false
Expand Down
10 changes: 5 additions & 5 deletions bridge-token-factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ const BRIDGE_TOKEN_INIT_BALANCE: Balance = 3_000_000_000_000_000_000_000_000; //
const BRIDGE_TOKEN_NEW: Gas = 10_000_000_000_000;

/// Gas to call mint method on bridge token.
const MINT_GAS: Gas = 8_000_000_000_000;
const MINT_GAS: Gas = 10_000_000_000_000;

/// Gas to call ft_transfer_call when the target of deposit is a contract
const FT_TRANSFER_CALL_GAS: Gas = 36_000_000_000_000;
const FT_TRANSFER_CALL_GAS: Gas = 50_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 = 16_000_000_000_000;
const FINISH_DEPOSIT_GAS: Gas = 30_000_000_000_000;

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

#[derive(Debug, Eq, PartialEq, BorshSerialize, BorshDeserialize)]
pub enum ResultType {
Expand Down Expand Up @@ -195,6 +195,7 @@ impl BridgeTokenFactory {
event.token
);
let proof_1 = proof.clone();

ext_prover::verify_log_entry(
proof.log_index,
proof.log_entry_data,
Expand Down Expand Up @@ -383,7 +384,6 @@ 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 0035d83

Please sign in to comment.