diff --git a/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_bridgeable_erc20.rs b/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_bridgeable_erc20.rs index b3be4b5886..74fa7dbcc7 100644 --- a/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_bridgeable_erc20.rs +++ b/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_bridgeable_erc20.rs @@ -7,7 +7,7 @@ pub use astria_bridgeable_erc20::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types + non_camel_case_types, )] pub mod astria_bridgeable_erc20 { #[allow(deprecated)] @@ -23,21 +23,27 @@ pub mod astria_bridgeable_erc20 { ), }, ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_baseChainAssetPrecision",), + name: ::std::borrow::ToOwned::to_owned( + "_baseChainAssetPrecision", + ), kind: ::ethers::core::abi::ethabi::ParamType::Uint(32usize), internal_type: ::core::option::Option::Some( ::std::borrow::ToOwned::to_owned("uint32"), ), }, ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_baseChainBridgeAddress",), + name: ::std::borrow::ToOwned::to_owned( + "_baseChainBridgeAddress", + ), kind: ::ethers::core::abi::ethabi::ParamType::String, internal_type: ::core::option::Option::Some( ::std::borrow::ToOwned::to_owned("string"), ), }, ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_baseChainAssetDenomination",), + name: ::std::borrow::ToOwned::to_owned( + "_baseChainAssetDenomination", + ), kind: ::ethers::core::abi::ethabi::ParamType::String, internal_type: ::core::option::Option::Some( ::std::borrow::ToOwned::to_owned("string"), @@ -62,619 +68,776 @@ pub mod astria_bridgeable_erc20 { functions: ::core::convert::From::from([ ( ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_DENOMINATION"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_DENOMINATION",), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "BASE_CHAIN_ASSET_DENOMINATION", ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_PRECISION"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_PRECISION",), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(32usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint32"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "BASE_CHAIN_ASSET_PRECISION", ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Uint(32usize), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint32"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("BASE_CHAIN_BRIDGE_ADDRESS"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BASE_CHAIN_BRIDGE_ADDRESS",), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "BASE_CHAIN_BRIDGE_ADDRESS", ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("BRIDGE"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BRIDGE"), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("BRIDGE"), + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("allowance"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("allowance"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("owner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("spender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("allowance"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("owner"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("spender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("approve"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("approve"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("spender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("value"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Bool, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bool"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("approve"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("spender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("value"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Bool, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("bool"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("balanceOf"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("balanceOf"), - inputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - },], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("balanceOf"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("account"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("decimals"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("decimals"), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint8"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("decimals"), + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint8"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("mint"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("mint"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_to"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("mint"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("_to"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("_amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ], + outputs: ::std::vec![], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("name"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("name"), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("name"), + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("symbol"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("symbol"), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("symbol"), + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("totalSupply"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("totalSupply"), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("totalSupply"), + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("transfer"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("transfer"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("to"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("value"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Bool, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bool"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("transfer"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("to"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("value"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Bool, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("bool"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("transferFrom"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("transferFrom"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("from"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("to"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("value"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Bool, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bool"), - ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("transferFrom"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("from"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("to"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("value"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Bool, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("bool"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("withdrawToIbcChain"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("withdrawToIbcChain"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_memo"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("withdrawToIbcChain"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("_amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned( + "_destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("_memo"), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + outputs: ::std::vec![], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("withdrawToSequencer"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("withdrawToSequencer",), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "withdrawToSequencer", + ), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("_amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned( + "_destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + outputs: ::std::vec![], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, + }, + ], ), ]), events: ::core::convert::From::from([ ( ::std::borrow::ToOwned::to_owned("Approval"), - ::std::vec![::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Approval"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("owner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("spender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("value"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - indexed: false, - }, - ], - anonymous: false, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Event { + name: ::std::borrow::ToOwned::to_owned("Approval"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("owner"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("spender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("value"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + indexed: false, + }, + ], + anonymous: false, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("Ics20Withdrawal"), - ::std::vec![::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Ics20Withdrawal"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("sender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("memo"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ], - anonymous: false, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Event { + name: ::std::borrow::ToOwned::to_owned("Ics20Withdrawal"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("sender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned( + "destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + indexed: false, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("memo"), + kind: ::ethers::core::abi::ethabi::ParamType::String, + indexed: false, + }, + ], + anonymous: false, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("Mint"), - ::std::vec![::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Mint"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - indexed: false, - }, - ], - anonymous: false, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Event { + name: ::std::borrow::ToOwned::to_owned("Mint"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("account"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + indexed: false, + }, + ], + anonymous: false, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("SequencerWithdrawal"), - ::std::vec![::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("SequencerWithdrawal",), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("sender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ], - anonymous: false, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Event { + name: ::std::borrow::ToOwned::to_owned( + "SequencerWithdrawal", + ), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("sender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned( + "destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + indexed: false, + }, + ], + anonymous: false, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("Transfer"), - ::std::vec![::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Transfer"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("from"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("to"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("value"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - indexed: false, - }, - ], - anonymous: false, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Event { + name: ::std::borrow::ToOwned::to_owned("Transfer"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("from"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("to"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("value"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + indexed: false, + }, + ], + anonymous: false, + }, + ], ), ]), errors: ::core::convert::From::from([ ( ::std::borrow::ToOwned::to_owned("ERC20InsufficientAllowance"), - ::std::vec![::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ERC20InsufficientAllowance",), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("spender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("allowance"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("needed"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ], - },], + ::std::vec![ + ::ethers::core::abi::ethabi::AbiError { + name: ::std::borrow::ToOwned::to_owned( + "ERC20InsufficientAllowance", + ), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("spender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("allowance"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("needed"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ], + }, + ], ), ( ::std::borrow::ToOwned::to_owned("ERC20InsufficientBalance"), - ::std::vec![::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ERC20InsufficientBalance",), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("sender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("balance"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("needed"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint256"), - ), - }, - ], - },], + ::std::vec![ + ::ethers::core::abi::ethabi::AbiError { + name: ::std::borrow::ToOwned::to_owned( + "ERC20InsufficientBalance", + ), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("sender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("balance"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("needed"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint256"), + ), + }, + ], + }, + ], ), ( ::std::borrow::ToOwned::to_owned("ERC20InvalidApprover"), - ::std::vec![::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ERC20InvalidApprover",), - inputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("approver"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), + ::std::vec![ + ::ethers::core::abi::ethabi::AbiError { + name: ::std::borrow::ToOwned::to_owned( + "ERC20InvalidApprover", ), - },], - },], + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("approver"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ], + }, + ], ), ( ::std::borrow::ToOwned::to_owned("ERC20InvalidReceiver"), - ::std::vec![::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ERC20InvalidReceiver",), - inputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("receiver"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), + ::std::vec![ + ::ethers::core::abi::ethabi::AbiError { + name: ::std::borrow::ToOwned::to_owned( + "ERC20InvalidReceiver", ), - },], - },], + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("receiver"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ], + }, + ], ), ( ::std::borrow::ToOwned::to_owned("ERC20InvalidSender"), - ::std::vec![::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ERC20InvalidSender"), - inputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("sender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - },], - },], + ::std::vec![ + ::ethers::core::abi::ethabi::AbiError { + name: ::std::borrow::ToOwned::to_owned("ERC20InvalidSender"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("sender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ], + }, + ], ), ( ::std::borrow::ToOwned::to_owned("ERC20InvalidSpender"), - ::std::vec![::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ERC20InvalidSpender",), - inputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("spender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), + ::std::vec![ + ::ethers::core::abi::ethabi::AbiError { + name: ::std::borrow::ToOwned::to_owned( + "ERC20InvalidSpender", ), - },], - },], + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("spender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("address"), + ), + }, + ], + }, + ], ), ]), receive: false, fallback: false, } } - /// The parsed JSON ABI of the contract. - pub static ASTRIABRIDGEABLEERC20_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = - ::ethers::contract::Lazy::new(__abi); + ///The parsed JSON ABI of the contract. + pub static ASTRIABRIDGEABLEERC20_ABI: ::ethers::contract::Lazy< + ::ethers::core::abi::Abi, + > = ::ethers::contract::Lazy::new(__abi); #[rustfmt::skip] const __BYTECODE: &[u8] = b"`\xE0`@R4\x80\x15b\0\0\x11W`\0\x80\xFD[P`@Qb\0\x13\xF68\x03\x80b\0\x13\xF6\x839\x81\x01`@\x81\x90Rb\0\x004\x91b\0\x02rV[\x81\x81`\x05b\0\0D\x83\x82b\0\x03\xDFV[P`\x06b\0\0S\x82\x82b\0\x03\xDFV[PPP`\0b\0\0hb\0\x01v` \x1B` \x1CV[\x90P\x80`\xFF\x16\x86c\xFF\xFF\xFF\xFF\x16\x11\x15b\0\x01\x14W`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`^`$\x82\x01R\x7FAstriaBridgeableERC20: base chai`D\x82\x01R\x7Fn asset precision must be less t`d\x82\x01R\x7Fhan or equal to token decimals\0\0`\x84\x82\x01R`\xA4\x01`@Q\x80\x91\x03\x90\xFD[c\xFF\xFF\xFF\xFF\x86\x16`\x80R`\0b\0\x01,\x86\x82b\0\x03\xDFV[P`\x01b\0\x01;\x85\x82b\0\x03\xDFV[Pb\0\x01K\x86`\xFF\x83\x16b\0\x04\xC1V[b\0\x01X\x90`\nb\0\x05\xE7V[`\xC0RPPP`\x01`\x01`\xA0\x1B\x03\x90\x93\x16`\xA0RPb\0\x06\x02\x91PPV[`\x12\x90V[\x80Q`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x14b\0\x01\x93W`\0\x80\xFD[\x91\x90PV[\x80Qc\xFF\xFF\xFF\xFF\x81\x16\x81\x14b\0\x01\x93W`\0\x80\xFD[cNH{q`\xE0\x1B`\0R`A`\x04R`$`\0\xFD[`\0\x82`\x1F\x83\x01\x12b\0\x01\xD5W`\0\x80\xFD[\x81Q`\x01`\x01`@\x1B\x03\x80\x82\x11\x15b\0\x01\xF2Wb\0\x01\xF2b\0\x01\xADV[`@Q`\x1F\x83\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x81\x01\x90\x82\x82\x11\x81\x83\x10\x17\x15b\0\x02\x1DWb\0\x02\x1Db\0\x01\xADV[\x81`@R\x83\x81R` \x92P\x86\x83\x85\x88\x01\x01\x11\x15b\0\x02:W`\0\x80\xFD[`\0\x91P[\x83\x82\x10\x15b\0\x02^W\x85\x82\x01\x83\x01Q\x81\x83\x01\x84\x01R\x90\x82\x01\x90b\0\x02?V[`\0\x93\x81\x01\x90\x92\x01\x92\x90\x92R\x94\x93PPPPV[`\0\x80`\0\x80`\0\x80`\xC0\x87\x89\x03\x12\x15b\0\x02\x8CW`\0\x80\xFD[b\0\x02\x97\x87b\0\x01{V[\x95Pb\0\x02\xA7` \x88\x01b\0\x01\x98V[`@\x88\x01Q\x90\x95P`\x01`\x01`@\x1B\x03\x80\x82\x11\x15b\0\x02\xC5W`\0\x80\xFD[b\0\x02\xD3\x8A\x83\x8B\x01b\0\x01\xC3V[\x95P``\x89\x01Q\x91P\x80\x82\x11\x15b\0\x02\xEAW`\0\x80\xFD[b\0\x02\xF8\x8A\x83\x8B\x01b\0\x01\xC3V[\x94P`\x80\x89\x01Q\x91P\x80\x82\x11\x15b\0\x03\x0FW`\0\x80\xFD[b\0\x03\x1D\x8A\x83\x8B\x01b\0\x01\xC3V[\x93P`\xA0\x89\x01Q\x91P\x80\x82\x11\x15b\0\x034W`\0\x80\xFD[Pb\0\x03C\x89\x82\x8A\x01b\0\x01\xC3V[\x91PP\x92\x95P\x92\x95P\x92\x95V[`\x01\x81\x81\x1C\x90\x82\x16\x80b\0\x03eW`\x7F\x82\x16\x91P[` \x82\x10\x81\x03b\0\x03\x86WcNH{q`\xE0\x1B`\0R`\"`\x04R`$`\0\xFD[P\x91\x90PV[`\x1F\x82\x11\x15b\0\x03\xDAW`\0\x81\x81R` \x81 `\x1F\x85\x01`\x05\x1C\x81\x01` \x86\x10\x15b\0\x03\xB5WP\x80[`\x1F\x85\x01`\x05\x1C\x82\x01\x91P[\x81\x81\x10\x15b\0\x03\xD6W\x82\x81U`\x01\x01b\0\x03\xC1V[PPP[PPPV[\x81Q`\x01`\x01`@\x1B\x03\x81\x11\x15b\0\x03\xFBWb\0\x03\xFBb\0\x01\xADV[b\0\x04\x13\x81b\0\x04\x0C\x84Tb\0\x03PV[\x84b\0\x03\x8CV[` \x80`\x1F\x83\x11`\x01\x81\x14b\0\x04KW`\0\x84\x15b\0\x042WP\x85\x83\x01Q[`\0\x19`\x03\x86\x90\x1B\x1C\x19\x16`\x01\x85\x90\x1B\x17\x85Ub\0\x03\xD6V[`\0\x85\x81R` \x81 `\x1F\x19\x86\x16\x91[\x82\x81\x10\x15b\0\x04|W\x88\x86\x01Q\x82U\x94\x84\x01\x94`\x01\x90\x91\x01\x90\x84\x01b\0\x04[V[P\x85\x82\x10\x15b\0\x04\x9BW\x87\x85\x01Q`\0\x19`\x03\x88\x90\x1B`\xF8\x16\x1C\x19\x16\x81U[PPPPP`\x01\x90\x81\x1B\x01\x90UPV[cNH{q`\xE0\x1B`\0R`\x11`\x04R`$`\0\xFD[c\xFF\xFF\xFF\xFF\x82\x81\x16\x82\x82\x16\x03\x90\x80\x82\x11\x15b\0\x04\xE1Wb\0\x04\xE1b\0\x04\xABV[P\x92\x91PPV[`\x01\x81\x81[\x80\x85\x11\x15b\0\x05)W\x81`\0\x19\x04\x82\x11\x15b\0\x05\rWb\0\x05\rb\0\x04\xABV[\x80\x85\x16\x15b\0\x05\x1BW\x91\x81\x02\x91[\x93\x84\x1C\x93\x90\x80\x02\x90b\0\x04\xEDV[P\x92P\x92\x90PV[`\0\x82b\0\x05BWP`\x01b\0\x05\xE1V[\x81b\0\x05QWP`\0b\0\x05\xE1V[\x81`\x01\x81\x14b\0\x05jW`\x02\x81\x14b\0\x05uWb\0\x05\x95V[`\x01\x91PPb\0\x05\xE1V[`\xFF\x84\x11\x15b\0\x05\x89Wb\0\x05\x89b\0\x04\xABV[PP`\x01\x82\x1Bb\0\x05\xE1V[P` \x83\x10a\x013\x83\x10\x16`N\x84\x10`\x0B\x84\x10\x16\x17\x15b\0\x05\xBAWP\x81\x81\nb\0\x05\xE1V[b\0\x05\xC6\x83\x83b\0\x04\xE8V[\x80`\0\x19\x04\x82\x11\x15b\0\x05\xDDWb\0\x05\xDDb\0\x04\xABV[\x02\x90P[\x92\x91PPV[`\0b\0\x05\xFBc\xFF\xFF\xFF\xFF\x84\x16\x83b\0\x051V[\x93\x92PPPV[`\x80Q`\xA0Q`\xC0Qa\r\xB6b\0\x06@`\09`\0\x81\x81a\x04w\x01Ra\x05\xC6\x01R`\0\x81\x81a\x02\x83\x01Ra\x03\x98\x01R`\0a\x01\xD0\x01Ra\r\xB6`\0\xF3\xFE`\x80`@R4\x80\x15a\0\x10W`\0\x80\xFD[P`\x046\x10a\x01\0W`\x005`\xE0\x1C\x80c~\xB6\xDE\xC7\x11a\0\x97W\x80c\xD3\x8F\xE9\xA7\x11a\0fW\x80c\xD3\x8F\xE9\xA7\x14a\x02*W\x80c\xDB\x97\xDC\x98\x14a\x02=W\x80c\xDDb\xED>\x14a\x02EW\x80c\xEE\x9A1\xA2\x14a\x02~W`\0\x80\xFD[\x80c~\xB6\xDE\xC7\x14a\x01\xCBW\x80c\x95\xD8\x9BA\x14a\x02\x07W\x80c\xA9\x05\x9C\xBB\x14a\x02\x0FW\x80c\xB6Gl~\x14a\x02\"W`\0\x80\xFD[\x80c1<\xE5g\x11a\0\xD3W\x80c1<\xE5g\x14a\x01kW\x80c@\xC1\x0F\x19\x14a\x01zW\x80c_\xE5k\t\x14a\x01\x8FW\x80cp\xA0\x821\x14a\x01\xA2W`\0\x80\xFD[\x80c\x06\xFD\xDE\x03\x14a\x01\x05W\x80c\t^\xA7\xB3\x14a\x01#W\x80c\x18\x16\r\xDD\x14a\x01FW\x80c#\xB8r\xDD\x14a\x01XW[`\0\x80\xFD[a\x01\ra\x02\xBDV[`@Qa\x01\x1A\x91\x90a\t\xB9V[`@Q\x80\x91\x03\x90\xF3[a\x016a\x0116`\x04a\n#V[a\x03OV[`@Q\x90\x15\x15\x81R` \x01a\x01\x1AV[`\x04T[`@Q\x90\x81R` \x01a\x01\x1AV[a\x016a\x01f6`\x04a\nMV[a\x03iV[`@Q`\x12\x81R` \x01a\x01\x1AV[a\x01\x8Da\x01\x886`\x04a\n#V[a\x03\x8DV[\0[a\x01\x8Da\x01\x9D6`\x04a\n\xD2V[a\x04oV[a\x01Ja\x01\xB06`\x04a\x0BLV[`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x02` R`@\x90 T\x90V[a\x01\xF2\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81V[`@Qc\xFF\xFF\xFF\xFF\x90\x91\x16\x81R` \x01a\x01\x1AV[a\x01\ra\x05\x13V[a\x016a\x02\x1D6`\x04a\n#V[a\x05\"V[a\x01\ra\x050V[a\x01\x8Da\x0286`\x04a\x0BnV[a\x05\xBEV[a\x01\ra\x06\\V[a\x01Ja\x02S6`\x04a\x0B\xBAV[`\x01`\x01`\xA0\x1B\x03\x91\x82\x16`\0\x90\x81R`\x03` \x90\x81R`@\x80\x83 \x93\x90\x94\x16\x82R\x91\x90\x91R T\x90V[a\x02\xA5\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81V[`@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x01a\x01\x1AV[```\x05\x80Ta\x02\xCC\x90a\x0B\xEDV[\x80`\x1F\x01` \x80\x91\x04\x02` \x01`@Q\x90\x81\x01`@R\x80\x92\x91\x90\x81\x81R` \x01\x82\x80Ta\x02\xF8\x90a\x0B\xEDV[\x80\x15a\x03EW\x80`\x1F\x10a\x03\x1AWa\x01\0\x80\x83T\x04\x02\x83R\x91` \x01\x91a\x03EV[\x82\x01\x91\x90`\0R` `\0 \x90[\x81T\x81R\x90`\x01\x01\x90` \x01\x80\x83\x11a\x03(W\x82\x90\x03`\x1F\x16\x82\x01\x91[PPPPP\x90P\x90V[`\x003a\x03]\x81\x85\x85a\x06iV[`\x01\x91PP[\x92\x91PPV[`\x003a\x03w\x85\x82\x85a\x06{V[a\x03\x82\x85\x85\x85a\x06\xF9V[P`\x01\x94\x93PPPPV[3`\x01`\x01`\xA0\x1B\x03\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x16\x14a\x04\x1EW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`+`$\x82\x01R\x7FAstriaBridgeableERC20: only brid`D\x82\x01Rj\x19\xD9H\x18\xD8[\x88\x1BZ[\x9D`\xAA\x1B`d\x82\x01R`\x84\x01[`@Q\x80\x91\x03\x90\xFD[a\x04(\x82\x82a\x07XV[\x81`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0Fg\x98\xA5`y:T\xC3\xBC\xFE\x86\xA9<\xDE\x1Es\x08}\x94L\x0E\xA2\x05D\x13}A!9h\x85\x82`@Qa\x04c\x91\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA2PPV[\x84`\0a\x04\x9C\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x83a\x0C'V[\x11a\x04\xB9W`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x04\x15\x90a\x0CIV[a\x04\xC33\x87a\x07\x92V[\x853`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0Cd\xE2\x9ART\xA7\x1C\x7FNR\xB3\xD2\xD264\x8C\x80\xE0\n\0\xBA.\x19a\x96+\xD2\x82|\x03\xFB\x87\x87\x87\x87`@Qa\x05\x03\x94\x93\x92\x91\x90a\r\x11V[`@Q\x80\x91\x03\x90\xA3PPPPPPV[```\x06\x80Ta\x02\xCC\x90a\x0B\xEDV[`\x003a\x03]\x81\x85\x85a\x06\xF9V[`\x01\x80Ta\x05=\x90a\x0B\xEDV[\x80`\x1F\x01` \x80\x91\x04\x02` \x01`@Q\x90\x81\x01`@R\x80\x92\x91\x90\x81\x81R` \x01\x82\x80Ta\x05i\x90a\x0B\xEDV[\x80\x15a\x05\xB6W\x80`\x1F\x10a\x05\x8BWa\x01\0\x80\x83T\x04\x02\x83R\x91` \x01\x91a\x05\xB6V[\x82\x01\x91\x90`\0R` `\0 \x90[\x81T\x81R\x90`\x01\x01\x90` \x01\x80\x83\x11a\x05\x99W\x82\x90\x03`\x1F\x16\x82\x01\x91[PPPPP\x81V[\x82`\0a\x05\xEB\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x83a\x0C'V[\x11a\x06\x08W`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x04\x15\x90a\x0CIV[a\x06\x123\x85a\x07\x92V[\x833`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0FIa\xCA\xB7S\x08\x04\x89\x84\x99\xAA\x89\xF5\xEC\x81\xD1\xA71\x02\xE2\xE4\xA1\xF3\x0F\x88\xE5\xAE5\x13\xBA*\x85\x85`@Qa\x06N\x92\x91\x90a\rCV[`@Q\x80\x91\x03\x90\xA3PPPPV[`\0\x80Ta\x05=\x90a\x0B\xEDV[a\x06v\x83\x83\x83`\x01a\x07\xC8V[PPPV[`\x01`\x01`\xA0\x1B\x03\x83\x81\x16`\0\x90\x81R`\x03` \x90\x81R`@\x80\x83 \x93\x86\x16\x83R\x92\x90R T`\0\x19\x81\x14a\x06\xF3W\x81\x81\x10\x15a\x06\xE4W`@Qc}\xC7\xA0\xD9`\xE1\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x84\x16`\x04\x82\x01R`$\x81\x01\x82\x90R`D\x81\x01\x83\x90R`d\x01a\x04\x15V[a\x06\xF3\x84\x84\x84\x84\x03`\0a\x07\xC8V[PPPPV[`\x01`\x01`\xA0\x1B\x03\x83\x16a\x07#W`@QcKc~\x8F`\xE1\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[`\x01`\x01`\xA0\x1B\x03\x82\x16a\x07MW`@Qc\xECD/\x05`\xE0\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[a\x06v\x83\x83\x83a\x08\x8FV[`\x01`\x01`\xA0\x1B\x03\x82\x16a\x07\x82W`@Qc\xECD/\x05`\xE0\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[a\x07\x8E`\0\x83\x83a\x08\x8FV[PPV[`\x01`\x01`\xA0\x1B\x03\x82\x16a\x07\xBCW`@QcKc~\x8F`\xE1\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[a\x07\x8E\x82`\0\x83a\x08\x8FV[`\x01`\x01`\xA0\x1B\x03\x84\x16a\x07\xF2W`@Qc\xE6\x02\xDF\x05`\xE0\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[`\x01`\x01`\xA0\x1B\x03\x83\x16a\x08\x1CW`@QcJ\x14\x06\xB1`\xE1\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[`\x01`\x01`\xA0\x1B\x03\x80\x85\x16`\0\x90\x81R`\x03` \x90\x81R`@\x80\x83 \x93\x87\x16\x83R\x92\x90R \x82\x90U\x80\x15a\x06\xF3W\x82`\x01`\x01`\xA0\x1B\x03\x16\x84`\x01`\x01`\xA0\x1B\x03\x16\x7F\x8C[\xE1\xE5\xEB\xEC}[\xD1OqB}\x1E\x84\xF3\xDD\x03\x14\xC0\xF7\xB2)\x1E[ \n\xC8\xC7\xC3\xB9%\x84`@Qa\x06N\x91\x81R` \x01\x90V[`\x01`\x01`\xA0\x1B\x03\x83\x16a\x08\xBAW\x80`\x04`\0\x82\x82Ta\x08\xAF\x91\x90a\r_V[\x90\x91UPa\t,\x90PV[`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x02` R`@\x90 T\x81\x81\x10\x15a\t\rW`@Qc9\x144\xE3`\xE2\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x85\x16`\x04\x82\x01R`$\x81\x01\x82\x90R`D\x81\x01\x83\x90R`d\x01a\x04\x15V[`\x01`\x01`\xA0\x1B\x03\x84\x16`\0\x90\x81R`\x02` R`@\x90 \x90\x82\x90\x03\x90U[`\x01`\x01`\xA0\x1B\x03\x82\x16a\tHW`\x04\x80T\x82\x90\x03\x90Ua\tgV[`\x01`\x01`\xA0\x1B\x03\x82\x16`\0\x90\x81R`\x02` R`@\x90 \x80T\x82\x01\x90U[\x81`\x01`\x01`\xA0\x1B\x03\x16\x83`\x01`\x01`\xA0\x1B\x03\x16\x7F\xDD\xF2R\xAD\x1B\xE2\xC8\x9Bi\xC2\xB0h\xFC7\x8D\xAA\x95+\xA7\xF1c\xC4\xA1\x16(\xF5ZM\xF5#\xB3\xEF\x83`@Qa\t\xAC\x91\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA3PPPV[`\0` \x80\x83R\x83Q\x80\x82\x85\x01R`\0[\x81\x81\x10\x15a\t\xE6W\x85\x81\x01\x83\x01Q\x85\x82\x01`@\x01R\x82\x01a\t\xCAV[P`\0`@\x82\x86\x01\x01R`@`\x1F\x19`\x1F\x83\x01\x16\x85\x01\x01\x92PPP\x92\x91PPV[\x805`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x14a\n\x1EW`\0\x80\xFD[\x91\x90PV[`\0\x80`@\x83\x85\x03\x12\x15a\n6W`\0\x80\xFD[a\n?\x83a\n\x07V[\x94` \x93\x90\x93\x015\x93PPPV[`\0\x80`\0``\x84\x86\x03\x12\x15a\nbW`\0\x80\xFD[a\nk\x84a\n\x07V[\x92Pa\ny` \x85\x01a\n\x07V[\x91P`@\x84\x015\x90P\x92P\x92P\x92V[`\0\x80\x83`\x1F\x84\x01\x12a\n\x9BW`\0\x80\xFD[P\x815g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\n\xB3W`\0\x80\xFD[` \x83\x01\x91P\x83` \x82\x85\x01\x01\x11\x15a\n\xCBW`\0\x80\xFD[\x92P\x92\x90PV[`\0\x80`\0\x80`\0``\x86\x88\x03\x12\x15a\n\xEAW`\0\x80\xFD[\x855\x94P` \x86\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x82\x11\x15a\x0B\tW`\0\x80\xFD[a\x0B\x15\x89\x83\x8A\x01a\n\x89V[\x90\x96P\x94P`@\x88\x015\x91P\x80\x82\x11\x15a\x0B.W`\0\x80\xFD[Pa\x0B;\x88\x82\x89\x01a\n\x89V[\x96\x99\x95\x98P\x93\x96P\x92\x94\x93\x92PPPV[`\0` \x82\x84\x03\x12\x15a\x0B^W`\0\x80\xFD[a\x0Bg\x82a\n\x07V[\x93\x92PPPV[`\0\x80`\0`@\x84\x86\x03\x12\x15a\x0B\x83W`\0\x80\xFD[\x835\x92P` \x84\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\x0B\xA1W`\0\x80\xFD[a\x0B\xAD\x86\x82\x87\x01a\n\x89V[\x94\x97\x90\x96P\x93\x94PPPPV[`\0\x80`@\x83\x85\x03\x12\x15a\x0B\xCDW`\0\x80\xFD[a\x0B\xD6\x83a\n\x07V[\x91Pa\x0B\xE4` \x84\x01a\n\x07V[\x90P\x92P\x92\x90PV[`\x01\x81\x81\x1C\x90\x82\x16\x80a\x0C\x01W`\x7F\x82\x16\x91P[` \x82\x10\x81\x03a\x0C!WcNH{q`\xE0\x1B`\0R`\"`\x04R`$`\0\xFD[P\x91\x90PV[`\0\x82a\x0CDWcNH{q`\xE0\x1B`\0R`\x12`\x04R`$`\0\xFD[P\x04\x90V[` \x80\x82R`s\x90\x82\x01R\x7FAstriaBridgeableERC20: insuffici`@\x82\x01R\x7Fent value, must be greater than ``\x82\x01R\x7F10 ** (TOKEN_DECIMALS - BASE_CHA`\x80\x82\x01RrIN_ASSET_PRECISION)`h\x1B`\xA0\x82\x01R`\xC0\x01\x90V[\x81\x83R\x81\x81` \x85\x017P`\0\x82\x82\x01` \x90\x81\x01\x91\x90\x91R`\x1F\x90\x91\x01`\x1F\x19\x16\x90\x91\x01\x01\x90V[`@\x81R`\0a\r%`@\x83\x01\x86\x88a\x0C\xE8V[\x82\x81\x03` \x84\x01Ra\r8\x81\x85\x87a\x0C\xE8V[\x97\x96PPPPPPPV[` \x81R`\0a\rW` \x83\x01\x84\x86a\x0C\xE8V[\x94\x93PPPPV[\x80\x82\x01\x80\x82\x11\x15a\x03cWcNH{q`\xE0\x1B`\0R`\x11`\x04R`$`\0\xFD\xFE\xA2dipfsX\"\x12 z\x0Bo\xC7\n\x8B$\t|\xDE4\x12\xC1\xAE\xBD[\x92[J\x8B\xAE\xDA\x81#An8^D\x1F\x80\x94dsolcC\0\x08\x15\x003"; /// The bytecode of the contract. - pub static ASTRIABRIDGEABLEERC20_BYTECODE: ::ethers::core::types::Bytes = - ::ethers::core::types::Bytes::from_static(__BYTECODE); + pub static ASTRIABRIDGEABLEERC20_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( + __BYTECODE, + ); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R4\x80\x15a\0\x10W`\0\x80\xFD[P`\x046\x10a\x01\0W`\x005`\xE0\x1C\x80c~\xB6\xDE\xC7\x11a\0\x97W\x80c\xD3\x8F\xE9\xA7\x11a\0fW\x80c\xD3\x8F\xE9\xA7\x14a\x02*W\x80c\xDB\x97\xDC\x98\x14a\x02=W\x80c\xDDb\xED>\x14a\x02EW\x80c\xEE\x9A1\xA2\x14a\x02~W`\0\x80\xFD[\x80c~\xB6\xDE\xC7\x14a\x01\xCBW\x80c\x95\xD8\x9BA\x14a\x02\x07W\x80c\xA9\x05\x9C\xBB\x14a\x02\x0FW\x80c\xB6Gl~\x14a\x02\"W`\0\x80\xFD[\x80c1<\xE5g\x11a\0\xD3W\x80c1<\xE5g\x14a\x01kW\x80c@\xC1\x0F\x19\x14a\x01zW\x80c_\xE5k\t\x14a\x01\x8FW\x80cp\xA0\x821\x14a\x01\xA2W`\0\x80\xFD[\x80c\x06\xFD\xDE\x03\x14a\x01\x05W\x80c\t^\xA7\xB3\x14a\x01#W\x80c\x18\x16\r\xDD\x14a\x01FW\x80c#\xB8r\xDD\x14a\x01XW[`\0\x80\xFD[a\x01\ra\x02\xBDV[`@Qa\x01\x1A\x91\x90a\t\xB9V[`@Q\x80\x91\x03\x90\xF3[a\x016a\x0116`\x04a\n#V[a\x03OV[`@Q\x90\x15\x15\x81R` \x01a\x01\x1AV[`\x04T[`@Q\x90\x81R` \x01a\x01\x1AV[a\x016a\x01f6`\x04a\nMV[a\x03iV[`@Q`\x12\x81R` \x01a\x01\x1AV[a\x01\x8Da\x01\x886`\x04a\n#V[a\x03\x8DV[\0[a\x01\x8Da\x01\x9D6`\x04a\n\xD2V[a\x04oV[a\x01Ja\x01\xB06`\x04a\x0BLV[`\x01`\x01`\xA0\x1B\x03\x16`\0\x90\x81R`\x02` R`@\x90 T\x90V[a\x01\xF2\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81V[`@Qc\xFF\xFF\xFF\xFF\x90\x91\x16\x81R` \x01a\x01\x1AV[a\x01\ra\x05\x13V[a\x016a\x02\x1D6`\x04a\n#V[a\x05\"V[a\x01\ra\x050V[a\x01\x8Da\x0286`\x04a\x0BnV[a\x05\xBEV[a\x01\ra\x06\\V[a\x01Ja\x02S6`\x04a\x0B\xBAV[`\x01`\x01`\xA0\x1B\x03\x91\x82\x16`\0\x90\x81R`\x03` \x90\x81R`@\x80\x83 \x93\x90\x94\x16\x82R\x91\x90\x91R T\x90V[a\x02\xA5\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81V[`@Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x01a\x01\x1AV[```\x05\x80Ta\x02\xCC\x90a\x0B\xEDV[\x80`\x1F\x01` \x80\x91\x04\x02` \x01`@Q\x90\x81\x01`@R\x80\x92\x91\x90\x81\x81R` \x01\x82\x80Ta\x02\xF8\x90a\x0B\xEDV[\x80\x15a\x03EW\x80`\x1F\x10a\x03\x1AWa\x01\0\x80\x83T\x04\x02\x83R\x91` \x01\x91a\x03EV[\x82\x01\x91\x90`\0R` `\0 \x90[\x81T\x81R\x90`\x01\x01\x90` \x01\x80\x83\x11a\x03(W\x82\x90\x03`\x1F\x16\x82\x01\x91[PPPPP\x90P\x90V[`\x003a\x03]\x81\x85\x85a\x06iV[`\x01\x91PP[\x92\x91PPV[`\x003a\x03w\x85\x82\x85a\x06{V[a\x03\x82\x85\x85\x85a\x06\xF9V[P`\x01\x94\x93PPPPV[3`\x01`\x01`\xA0\x1B\x03\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x16\x14a\x04\x1EW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`+`$\x82\x01R\x7FAstriaBridgeableERC20: only brid`D\x82\x01Rj\x19\xD9H\x18\xD8[\x88\x1BZ[\x9D`\xAA\x1B`d\x82\x01R`\x84\x01[`@Q\x80\x91\x03\x90\xFD[a\x04(\x82\x82a\x07XV[\x81`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0Fg\x98\xA5`y:T\xC3\xBC\xFE\x86\xA9<\xDE\x1Es\x08}\x94L\x0E\xA2\x05D\x13}A!9h\x85\x82`@Qa\x04c\x91\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA2PPV[\x84`\0a\x04\x9C\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x83a\x0C'V[\x11a\x04\xB9W`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x04\x15\x90a\x0CIV[a\x04\xC33\x87a\x07\x92V[\x853`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0Cd\xE2\x9ART\xA7\x1C\x7FNR\xB3\xD2\xD264\x8C\x80\xE0\n\0\xBA.\x19a\x96+\xD2\x82|\x03\xFB\x87\x87\x87\x87`@Qa\x05\x03\x94\x93\x92\x91\x90a\r\x11V[`@Q\x80\x91\x03\x90\xA3PPPPPPV[```\x06\x80Ta\x02\xCC\x90a\x0B\xEDV[`\x003a\x03]\x81\x85\x85a\x06\xF9V[`\x01\x80Ta\x05=\x90a\x0B\xEDV[\x80`\x1F\x01` \x80\x91\x04\x02` \x01`@Q\x90\x81\x01`@R\x80\x92\x91\x90\x81\x81R` \x01\x82\x80Ta\x05i\x90a\x0B\xEDV[\x80\x15a\x05\xB6W\x80`\x1F\x10a\x05\x8BWa\x01\0\x80\x83T\x04\x02\x83R\x91` \x01\x91a\x05\xB6V[\x82\x01\x91\x90`\0R` `\0 \x90[\x81T\x81R\x90`\x01\x01\x90` \x01\x80\x83\x11a\x05\x99W\x82\x90\x03`\x1F\x16\x82\x01\x91[PPPPP\x81V[\x82`\0a\x05\xEB\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x83a\x0C'V[\x11a\x06\x08W`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x04\x15\x90a\x0CIV[a\x06\x123\x85a\x07\x92V[\x833`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0FIa\xCA\xB7S\x08\x04\x89\x84\x99\xAA\x89\xF5\xEC\x81\xD1\xA71\x02\xE2\xE4\xA1\xF3\x0F\x88\xE5\xAE5\x13\xBA*\x85\x85`@Qa\x06N\x92\x91\x90a\rCV[`@Q\x80\x91\x03\x90\xA3PPPPV[`\0\x80Ta\x05=\x90a\x0B\xEDV[a\x06v\x83\x83\x83`\x01a\x07\xC8V[PPPV[`\x01`\x01`\xA0\x1B\x03\x83\x81\x16`\0\x90\x81R`\x03` \x90\x81R`@\x80\x83 \x93\x86\x16\x83R\x92\x90R T`\0\x19\x81\x14a\x06\xF3W\x81\x81\x10\x15a\x06\xE4W`@Qc}\xC7\xA0\xD9`\xE1\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x84\x16`\x04\x82\x01R`$\x81\x01\x82\x90R`D\x81\x01\x83\x90R`d\x01a\x04\x15V[a\x06\xF3\x84\x84\x84\x84\x03`\0a\x07\xC8V[PPPPV[`\x01`\x01`\xA0\x1B\x03\x83\x16a\x07#W`@QcKc~\x8F`\xE1\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[`\x01`\x01`\xA0\x1B\x03\x82\x16a\x07MW`@Qc\xECD/\x05`\xE0\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[a\x06v\x83\x83\x83a\x08\x8FV[`\x01`\x01`\xA0\x1B\x03\x82\x16a\x07\x82W`@Qc\xECD/\x05`\xE0\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[a\x07\x8E`\0\x83\x83a\x08\x8FV[PPV[`\x01`\x01`\xA0\x1B\x03\x82\x16a\x07\xBCW`@QcKc~\x8F`\xE1\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[a\x07\x8E\x82`\0\x83a\x08\x8FV[`\x01`\x01`\xA0\x1B\x03\x84\x16a\x07\xF2W`@Qc\xE6\x02\xDF\x05`\xE0\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[`\x01`\x01`\xA0\x1B\x03\x83\x16a\x08\x1CW`@QcJ\x14\x06\xB1`\xE1\x1B\x81R`\0`\x04\x82\x01R`$\x01a\x04\x15V[`\x01`\x01`\xA0\x1B\x03\x80\x85\x16`\0\x90\x81R`\x03` \x90\x81R`@\x80\x83 \x93\x87\x16\x83R\x92\x90R \x82\x90U\x80\x15a\x06\xF3W\x82`\x01`\x01`\xA0\x1B\x03\x16\x84`\x01`\x01`\xA0\x1B\x03\x16\x7F\x8C[\xE1\xE5\xEB\xEC}[\xD1OqB}\x1E\x84\xF3\xDD\x03\x14\xC0\xF7\xB2)\x1E[ \n\xC8\xC7\xC3\xB9%\x84`@Qa\x06N\x91\x81R` \x01\x90V[`\x01`\x01`\xA0\x1B\x03\x83\x16a\x08\xBAW\x80`\x04`\0\x82\x82Ta\x08\xAF\x91\x90a\r_V[\x90\x91UPa\t,\x90PV[`\x01`\x01`\xA0\x1B\x03\x83\x16`\0\x90\x81R`\x02` R`@\x90 T\x81\x81\x10\x15a\t\rW`@Qc9\x144\xE3`\xE2\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x85\x16`\x04\x82\x01R`$\x81\x01\x82\x90R`D\x81\x01\x83\x90R`d\x01a\x04\x15V[`\x01`\x01`\xA0\x1B\x03\x84\x16`\0\x90\x81R`\x02` R`@\x90 \x90\x82\x90\x03\x90U[`\x01`\x01`\xA0\x1B\x03\x82\x16a\tHW`\x04\x80T\x82\x90\x03\x90Ua\tgV[`\x01`\x01`\xA0\x1B\x03\x82\x16`\0\x90\x81R`\x02` R`@\x90 \x80T\x82\x01\x90U[\x81`\x01`\x01`\xA0\x1B\x03\x16\x83`\x01`\x01`\xA0\x1B\x03\x16\x7F\xDD\xF2R\xAD\x1B\xE2\xC8\x9Bi\xC2\xB0h\xFC7\x8D\xAA\x95+\xA7\xF1c\xC4\xA1\x16(\xF5ZM\xF5#\xB3\xEF\x83`@Qa\t\xAC\x91\x81R` \x01\x90V[`@Q\x80\x91\x03\x90\xA3PPPV[`\0` \x80\x83R\x83Q\x80\x82\x85\x01R`\0[\x81\x81\x10\x15a\t\xE6W\x85\x81\x01\x83\x01Q\x85\x82\x01`@\x01R\x82\x01a\t\xCAV[P`\0`@\x82\x86\x01\x01R`@`\x1F\x19`\x1F\x83\x01\x16\x85\x01\x01\x92PPP\x92\x91PPV[\x805`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x14a\n\x1EW`\0\x80\xFD[\x91\x90PV[`\0\x80`@\x83\x85\x03\x12\x15a\n6W`\0\x80\xFD[a\n?\x83a\n\x07V[\x94` \x93\x90\x93\x015\x93PPPV[`\0\x80`\0``\x84\x86\x03\x12\x15a\nbW`\0\x80\xFD[a\nk\x84a\n\x07V[\x92Pa\ny` \x85\x01a\n\x07V[\x91P`@\x84\x015\x90P\x92P\x92P\x92V[`\0\x80\x83`\x1F\x84\x01\x12a\n\x9BW`\0\x80\xFD[P\x815g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\n\xB3W`\0\x80\xFD[` \x83\x01\x91P\x83` \x82\x85\x01\x01\x11\x15a\n\xCBW`\0\x80\xFD[\x92P\x92\x90PV[`\0\x80`\0\x80`\0``\x86\x88\x03\x12\x15a\n\xEAW`\0\x80\xFD[\x855\x94P` \x86\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x82\x11\x15a\x0B\tW`\0\x80\xFD[a\x0B\x15\x89\x83\x8A\x01a\n\x89V[\x90\x96P\x94P`@\x88\x015\x91P\x80\x82\x11\x15a\x0B.W`\0\x80\xFD[Pa\x0B;\x88\x82\x89\x01a\n\x89V[\x96\x99\x95\x98P\x93\x96P\x92\x94\x93\x92PPPV[`\0` \x82\x84\x03\x12\x15a\x0B^W`\0\x80\xFD[a\x0Bg\x82a\n\x07V[\x93\x92PPPV[`\0\x80`\0`@\x84\x86\x03\x12\x15a\x0B\x83W`\0\x80\xFD[\x835\x92P` \x84\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\x0B\xA1W`\0\x80\xFD[a\x0B\xAD\x86\x82\x87\x01a\n\x89V[\x94\x97\x90\x96P\x93\x94PPPPV[`\0\x80`@\x83\x85\x03\x12\x15a\x0B\xCDW`\0\x80\xFD[a\x0B\xD6\x83a\n\x07V[\x91Pa\x0B\xE4` \x84\x01a\n\x07V[\x90P\x92P\x92\x90PV[`\x01\x81\x81\x1C\x90\x82\x16\x80a\x0C\x01W`\x7F\x82\x16\x91P[` \x82\x10\x81\x03a\x0C!WcNH{q`\xE0\x1B`\0R`\"`\x04R`$`\0\xFD[P\x91\x90PV[`\0\x82a\x0CDWcNH{q`\xE0\x1B`\0R`\x12`\x04R`$`\0\xFD[P\x04\x90V[` \x80\x82R`s\x90\x82\x01R\x7FAstriaBridgeableERC20: insuffici`@\x82\x01R\x7Fent value, must be greater than ``\x82\x01R\x7F10 ** (TOKEN_DECIMALS - BASE_CHA`\x80\x82\x01RrIN_ASSET_PRECISION)`h\x1B`\xA0\x82\x01R`\xC0\x01\x90V[\x81\x83R\x81\x81` \x85\x017P`\0\x82\x82\x01` \x90\x81\x01\x91\x90\x91R`\x1F\x90\x91\x01`\x1F\x19\x16\x90\x91\x01\x01\x90V[`@\x81R`\0a\r%`@\x83\x01\x86\x88a\x0C\xE8V[\x82\x81\x03` \x84\x01Ra\r8\x81\x85\x87a\x0C\xE8V[\x97\x96PPPPPPPV[` \x81R`\0a\rW` \x83\x01\x84\x86a\x0C\xE8V[\x94\x93PPPPV[\x80\x82\x01\x80\x82\x11\x15a\x03cWcNH{q`\xE0\x1B`\0R`\x11`\x04R`$`\0\xFD\xFE\xA2dipfsX\"\x12 z\x0Bo\xC7\n\x8B$\t|\xDE4\x12\xC1\xAE\xBD[\x92[J\x8B\xAE\xDA\x81#An8^D\x1F\x80\x94dsolcC\0\x08\x15\x003"; /// The deployed bytecode of the contract. - pub static ASTRIABRIDGEABLEERC20_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = - ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); + pub static ASTRIABRIDGEABLEERC20_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( + __DEPLOYED_BYTECODE, + ); pub struct AstriaBridgeableERC20(::ethers::contract::Contract); impl ::core::clone::Clone for AstriaBridgeableERC20 { fn clone(&self) -> Self { @@ -683,7 +846,6 @@ pub mod astria_bridgeable_erc20 { } impl ::core::ops::Deref for AstriaBridgeableERC20 { type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { &self.0 } @@ -707,16 +869,16 @@ pub mod astria_bridgeable_erc20 { address: T, client: ::std::sync::Arc, ) -> Self { - Self(::ethers::contract::Contract::new( - address.into(), - ASTRIABRIDGEABLEERC20_ABI.clone(), - client, - )) + Self( + ::ethers::contract::Contract::new( + address.into(), + ASTRIABRIDGEABLEERC20_ABI.clone(), + client, + ), + ) } - - /// Constructs the general purpose `Deployer` instance based on the provided constructor - /// arguments and sends it. Returns a new instance of a deployer that returns an - /// instance of this contract after sending the transaction + /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. + /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction /// /// Notes: /// - If there are no constructor arguments, you should pass `()` as the argument. @@ -754,8 +916,7 @@ pub mod astria_bridgeable_erc20 { let deployer = ::ethers::contract::ContractDeployer::new(deployer); Ok(deployer) } - - /// Calls the contract's `BASE_CHAIN_ASSET_DENOMINATION` (0xb6476c7e) function + ///Calls the contract's `BASE_CHAIN_ASSET_DENOMINATION` (0xb6476c7e) function pub fn base_chain_asset_denomination( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -763,8 +924,7 @@ pub mod astria_bridgeable_erc20 { .method_hash([182, 71, 108, 126], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `BASE_CHAIN_ASSET_PRECISION` (0x7eb6dec7) function + ///Calls the contract's `BASE_CHAIN_ASSET_PRECISION` (0x7eb6dec7) function pub fn base_chain_asset_precision( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -772,8 +932,7 @@ pub mod astria_bridgeable_erc20 { .method_hash([126, 182, 222, 199], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `BASE_CHAIN_BRIDGE_ADDRESS` (0xdb97dc98) function + ///Calls the contract's `BASE_CHAIN_BRIDGE_ADDRESS` (0xdb97dc98) function pub fn base_chain_bridge_address( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -781,17 +940,18 @@ pub mod astria_bridgeable_erc20 { .method_hash([219, 151, 220, 152], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `BRIDGE` (0xee9a31a2) function + ///Calls the contract's `BRIDGE` (0xee9a31a2) function pub fn bridge( &self, - ) -> ::ethers::contract::builders::ContractCall { + ) -> ::ethers::contract::builders::ContractCall< + M, + ::ethers::core::types::Address, + > { self.0 .method_hash([238, 154, 49, 162], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `allowance` (0xdd62ed3e) function + ///Calls the contract's `allowance` (0xdd62ed3e) function pub fn allowance( &self, owner: ::ethers::core::types::Address, @@ -801,8 +961,7 @@ pub mod astria_bridgeable_erc20 { .method_hash([221, 98, 237, 62], (owner, spender)) .expect("method not found (this should never happen)") } - - /// Calls the contract's `approve` (0x095ea7b3) function + ///Calls the contract's `approve` (0x095ea7b3) function pub fn approve( &self, spender: ::ethers::core::types::Address, @@ -812,8 +971,7 @@ pub mod astria_bridgeable_erc20 { .method_hash([9, 94, 167, 179], (spender, value)) .expect("method not found (this should never happen)") } - - /// Calls the contract's `balanceOf` (0x70a08231) function + ///Calls the contract's `balanceOf` (0x70a08231) function pub fn balance_of( &self, account: ::ethers::core::types::Address, @@ -822,15 +980,13 @@ pub mod astria_bridgeable_erc20 { .method_hash([112, 160, 130, 49], account) .expect("method not found (this should never happen)") } - - /// Calls the contract's `decimals` (0x313ce567) function + ///Calls the contract's `decimals` (0x313ce567) function pub fn decimals(&self) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([49, 60, 229, 103], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `mint` (0x40c10f19) function + ///Calls the contract's `mint` (0x40c10f19) function pub fn mint( &self, to: ::ethers::core::types::Address, @@ -840,15 +996,15 @@ pub mod astria_bridgeable_erc20 { .method_hash([64, 193, 15, 25], (to, amount)) .expect("method not found (this should never happen)") } - - /// Calls the contract's `name` (0x06fdde03) function - pub fn name(&self) -> ::ethers::contract::builders::ContractCall { + ///Calls the contract's `name` (0x06fdde03) function + pub fn name( + &self, + ) -> ::ethers::contract::builders::ContractCall { self.0 .method_hash([6, 253, 222, 3], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `symbol` (0x95d89b41) function + ///Calls the contract's `symbol` (0x95d89b41) function pub fn symbol( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -856,8 +1012,7 @@ pub mod astria_bridgeable_erc20 { .method_hash([149, 216, 155, 65], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `totalSupply` (0x18160ddd) function + ///Calls the contract's `totalSupply` (0x18160ddd) function pub fn total_supply( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -865,8 +1020,7 @@ pub mod astria_bridgeable_erc20 { .method_hash([24, 22, 13, 221], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `transfer` (0xa9059cbb) function + ///Calls the contract's `transfer` (0xa9059cbb) function pub fn transfer( &self, to: ::ethers::core::types::Address, @@ -876,8 +1030,7 @@ pub mod astria_bridgeable_erc20 { .method_hash([169, 5, 156, 187], (to, value)) .expect("method not found (this should never happen)") } - - /// Calls the contract's `transferFrom` (0x23b872dd) function + ///Calls the contract's `transferFrom` (0x23b872dd) function pub fn transfer_from( &self, from: ::ethers::core::types::Address, @@ -888,8 +1041,7 @@ pub mod astria_bridgeable_erc20 { .method_hash([35, 184, 114, 221], (from, to, value)) .expect("method not found (this should never happen)") } - - /// Calls the contract's `withdrawToIbcChain` (0x5fe56b09) function + ///Calls the contract's `withdrawToIbcChain` (0x5fe56b09) function pub fn withdraw_to_ibc_chain( &self, amount: ::ethers::core::types::U256, @@ -897,11 +1049,13 @@ pub mod astria_bridgeable_erc20 { memo: ::std::string::String, ) -> ::ethers::contract::builders::ContractCall { self.0 - .method_hash([95, 229, 107, 9], (amount, destination_chain_address, memo)) + .method_hash( + [95, 229, 107, 9], + (amount, destination_chain_address, memo), + ) .expect("method not found (this should never happen)") } - - /// Calls the contract's `withdrawToSequencer` (0xd38fe9a7) function + ///Calls the contract's `withdrawToSequencer` (0xd38fe9a7) function pub fn withdraw_to_sequencer( &self, amount: ::ethers::core::types::U256, @@ -911,62 +1065,70 @@ pub mod astria_bridgeable_erc20 { .method_hash([211, 143, 233, 167], (amount, destination_chain_address)) .expect("method not found (this should never happen)") } - - /// Gets the contract's `Approval` event + ///Gets the contract's `Approval` event pub fn approval_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, ApprovalFilter> { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + ApprovalFilter, + > { self.0.event() } - - /// Gets the contract's `Ics20Withdrawal` event + ///Gets the contract's `Ics20Withdrawal` event pub fn ics_20_withdrawal_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, Ics20WithdrawalFilter> - { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + Ics20WithdrawalFilter, + > { self.0.event() } - - /// Gets the contract's `Mint` event + ///Gets the contract's `Mint` event pub fn mint_filter( &self, ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, MintFilter> { self.0.event() } - - /// Gets the contract's `SequencerWithdrawal` event + ///Gets the contract's `SequencerWithdrawal` event pub fn sequencer_withdrawal_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, SequencerWithdrawalFilter> - { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + SequencerWithdrawalFilter, + > { self.0.event() } - - /// Gets the contract's `Transfer` event + ///Gets the contract's `Transfer` event pub fn transfer_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, TransferFilter> { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + TransferFilter, + > { self.0.event() } - /// Returns an `Event` builder for all the events of this contract. pub fn events( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, AstriaBridgeableERC20Events> - { - self.0 - .event_with_filter(::core::default::Default::default()) + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + AstriaBridgeableERC20Events, + > { + self.0.event_with_filter(::core::default::Default::default()) } } impl From<::ethers::contract::Contract> - for AstriaBridgeableERC20 - { + for AstriaBridgeableERC20 { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } } - /// Custom Error type `ERC20InsufficientAllowance` with signature - /// `ERC20InsufficientAllowance(address,uint256,uint256)` and selector `0xfb8f41b2` + ///Custom Error type `ERC20InsufficientAllowance` with signature `ERC20InsufficientAllowance(address,uint256,uint256)` and selector `0xfb8f41b2` #[derive( Clone, ::ethers::contract::EthError, @@ -975,7 +1137,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[etherror( name = "ERC20InsufficientAllowance", @@ -986,8 +1148,7 @@ pub mod astria_bridgeable_erc20 { pub allowance: ::ethers::core::types::U256, pub needed: ::ethers::core::types::U256, } - /// Custom Error type `ERC20InsufficientBalance` with signature - /// `ERC20InsufficientBalance(address,uint256,uint256)` and selector `0xe450d38c` + ///Custom Error type `ERC20InsufficientBalance` with signature `ERC20InsufficientBalance(address,uint256,uint256)` and selector `0xe450d38c` #[derive( Clone, ::ethers::contract::EthError, @@ -996,7 +1157,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[etherror( name = "ERC20InsufficientBalance", @@ -1007,8 +1168,7 @@ pub mod astria_bridgeable_erc20 { pub balance: ::ethers::core::types::U256, pub needed: ::ethers::core::types::U256, } - /// Custom Error type `ERC20InvalidApprover` with signature `ERC20InvalidApprover(address)` and - /// selector `0xe602df05` + ///Custom Error type `ERC20InvalidApprover` with signature `ERC20InvalidApprover(address)` and selector `0xe602df05` #[derive( Clone, ::ethers::contract::EthError, @@ -1017,14 +1177,13 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[etherror(name = "ERC20InvalidApprover", abi = "ERC20InvalidApprover(address)")] pub struct ERC20InvalidApprover { pub approver: ::ethers::core::types::Address, } - /// Custom Error type `ERC20InvalidReceiver` with signature `ERC20InvalidReceiver(address)` and - /// selector `0xec442f05` + ///Custom Error type `ERC20InvalidReceiver` with signature `ERC20InvalidReceiver(address)` and selector `0xec442f05` #[derive( Clone, ::ethers::contract::EthError, @@ -1033,14 +1192,13 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[etherror(name = "ERC20InvalidReceiver", abi = "ERC20InvalidReceiver(address)")] pub struct ERC20InvalidReceiver { pub receiver: ::ethers::core::types::Address, } - /// Custom Error type `ERC20InvalidSender` with signature `ERC20InvalidSender(address)` and - /// selector `0x96c6fd1e` + ///Custom Error type `ERC20InvalidSender` with signature `ERC20InvalidSender(address)` and selector `0x96c6fd1e` #[derive( Clone, ::ethers::contract::EthError, @@ -1049,14 +1207,13 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[etherror(name = "ERC20InvalidSender", abi = "ERC20InvalidSender(address)")] pub struct ERC20InvalidSender { pub sender: ::ethers::core::types::Address, } - /// Custom Error type `ERC20InvalidSpender` with signature `ERC20InvalidSpender(address)` and - /// selector `0x94280d62` + ///Custom Error type `ERC20InvalidSpender` with signature `ERC20InvalidSpender(address)` and selector `0x94280d62` #[derive( Clone, ::ethers::contract::EthError, @@ -1065,13 +1222,13 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[etherror(name = "ERC20InvalidSpender", abi = "ERC20InvalidSpender(address)")] pub struct ERC20InvalidSpender { pub spender: ::ethers::core::types::Address, } - /// Container type for all of the contract's custom errors + ///Container type for all of the contract's custom errors #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] pub enum AstriaBridgeableERC20Errors { ERC20InsufficientAllowance(ERC20InsufficientAllowance), @@ -1089,39 +1246,39 @@ pub mod astria_bridgeable_erc20 { data: impl AsRef<[u8]>, ) -> ::core::result::Result { let data = data.as_ref(); - if let Ok(decoded) = - <::std::string::String as ::ethers::core::abi::AbiDecode>::decode(data) - { + if let Ok(decoded) = <::std::string::String as ::ethers::core::abi::AbiDecode>::decode( + data, + ) { return Ok(Self::RevertString(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::ERC20InsufficientAllowance(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::ERC20InsufficientBalance(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::ERC20InvalidApprover(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::ERC20InvalidReceiver(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::ERC20InvalidSender(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::ERC20InvalidSpender(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -1157,33 +1314,27 @@ pub mod astria_bridgeable_erc20 { match selector { [0x08, 0xc3, 0x79, 0xa0] => true, _ if selector - == ::selector() => - { + == ::selector() => { true } _ if selector - == ::selector() => - { + == ::selector() => { true } _ if selector - == ::selector() => - { + == ::selector() => { true } _ if selector - == ::selector() => - { + == ::selector() => { true } _ if selector - == ::selector() => - { + == ::selector() => { true } _ if selector - == ::selector() => - { + == ::selector() => { true } _ => false, @@ -1193,12 +1344,24 @@ pub mod astria_bridgeable_erc20 { impl ::core::fmt::Display for AstriaBridgeableERC20Errors { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Self::ERC20InsufficientAllowance(element) => ::core::fmt::Display::fmt(element, f), - Self::ERC20InsufficientBalance(element) => ::core::fmt::Display::fmt(element, f), - Self::ERC20InvalidApprover(element) => ::core::fmt::Display::fmt(element, f), - Self::ERC20InvalidReceiver(element) => ::core::fmt::Display::fmt(element, f), - Self::ERC20InvalidSender(element) => ::core::fmt::Display::fmt(element, f), - Self::ERC20InvalidSpender(element) => ::core::fmt::Display::fmt(element, f), + Self::ERC20InsufficientAllowance(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ERC20InsufficientBalance(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ERC20InvalidApprover(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ERC20InvalidReceiver(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ERC20InvalidSender(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::ERC20InvalidSpender(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), } } @@ -1208,12 +1371,14 @@ pub mod astria_bridgeable_erc20 { Self::RevertString(value) } } - impl ::core::convert::From for AstriaBridgeableERC20Errors { + impl ::core::convert::From + for AstriaBridgeableERC20Errors { fn from(value: ERC20InsufficientAllowance) -> Self { Self::ERC20InsufficientAllowance(value) } } - impl ::core::convert::From for AstriaBridgeableERC20Errors { + impl ::core::convert::From + for AstriaBridgeableERC20Errors { fn from(value: ERC20InsufficientBalance) -> Self { Self::ERC20InsufficientBalance(value) } @@ -1246,7 +1411,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethevent(name = "Approval", abi = "Approval(address,address,uint256)")] pub struct ApprovalFilter { @@ -1264,7 +1429,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethevent( name = "Ics20Withdrawal", @@ -1286,7 +1451,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethevent(name = "Mint", abi = "Mint(address,uint256)")] pub struct MintFilter { @@ -1302,7 +1467,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethevent( name = "SequencerWithdrawal", @@ -1323,7 +1488,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethevent(name = "Transfer", abi = "Transfer(address,address,uint256)")] pub struct TransferFilter { @@ -1333,7 +1498,7 @@ pub mod astria_bridgeable_erc20 { pub to: ::ethers::core::types::Address, pub value: ::ethers::core::types::U256, } - /// Container type for all of the contract's events + ///Container type for all of the contract's events #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] pub enum AstriaBridgeableERC20Events { ApprovalFilter(ApprovalFilter), @@ -1356,9 +1521,9 @@ pub mod astria_bridgeable_erc20 { return Ok(AstriaBridgeableERC20Events::MintFilter(decoded)); } if let Ok(decoded) = SequencerWithdrawalFilter::decode_log(log) { - return Ok(AstriaBridgeableERC20Events::SequencerWithdrawalFilter( - decoded, - )); + return Ok( + AstriaBridgeableERC20Events::SequencerWithdrawalFilter(decoded), + ); } if let Ok(decoded) = TransferFilter::decode_log(log) { return Ok(AstriaBridgeableERC20Events::TransferFilter(decoded)); @@ -1370,9 +1535,13 @@ pub mod astria_bridgeable_erc20 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { Self::ApprovalFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::Ics20WithdrawalFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::Ics20WithdrawalFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::MintFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::SequencerWithdrawalFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::SequencerWithdrawalFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::TransferFilter(element) => ::core::fmt::Display::fmt(element, f), } } @@ -1392,7 +1561,8 @@ pub mod astria_bridgeable_erc20 { Self::MintFilter(value) } } - impl ::core::convert::From for AstriaBridgeableERC20Events { + impl ::core::convert::From + for AstriaBridgeableERC20Events { fn from(value: SequencerWithdrawalFilter) -> Self { Self::SequencerWithdrawalFilter(value) } @@ -1402,8 +1572,7 @@ pub mod astria_bridgeable_erc20 { Self::TransferFilter(value) } } - /// Container type for all input parameters for the `BASE_CHAIN_ASSET_DENOMINATION` function - /// with signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` + ///Container type for all input parameters for the `BASE_CHAIN_ASSET_DENOMINATION` function with signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` #[derive( Clone, ::ethers::contract::EthCall, @@ -1412,15 +1581,14 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall( name = "BASE_CHAIN_ASSET_DENOMINATION", abi = "BASE_CHAIN_ASSET_DENOMINATION()" )] pub struct BaseChainAssetDenominationCall; - /// Container type for all input parameters for the `BASE_CHAIN_ASSET_PRECISION` function with - /// signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` + ///Container type for all input parameters for the `BASE_CHAIN_ASSET_PRECISION` function with signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` #[derive( Clone, ::ethers::contract::EthCall, @@ -1429,15 +1597,11 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, - )] - #[ethcall( - name = "BASE_CHAIN_ASSET_PRECISION", - abi = "BASE_CHAIN_ASSET_PRECISION()" + Hash )] + #[ethcall(name = "BASE_CHAIN_ASSET_PRECISION", abi = "BASE_CHAIN_ASSET_PRECISION()")] pub struct BaseChainAssetPrecisionCall; - /// Container type for all input parameters for the `BASE_CHAIN_BRIDGE_ADDRESS` function with - /// signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` + ///Container type for all input parameters for the `BASE_CHAIN_BRIDGE_ADDRESS` function with signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` #[derive( Clone, ::ethers::contract::EthCall, @@ -1446,15 +1610,11 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, - )] - #[ethcall( - name = "BASE_CHAIN_BRIDGE_ADDRESS", - abi = "BASE_CHAIN_BRIDGE_ADDRESS()" + Hash )] + #[ethcall(name = "BASE_CHAIN_BRIDGE_ADDRESS", abi = "BASE_CHAIN_BRIDGE_ADDRESS()")] pub struct BaseChainBridgeAddressCall; - /// Container type for all input parameters for the `BRIDGE` function with signature `BRIDGE()` - /// and selector `0xee9a31a2` + ///Container type for all input parameters for the `BRIDGE` function with signature `BRIDGE()` and selector `0xee9a31a2` #[derive( Clone, ::ethers::contract::EthCall, @@ -1463,12 +1623,11 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "BRIDGE", abi = "BRIDGE()")] pub struct BridgeCall; - /// Container type for all input parameters for the `allowance` function with signature - /// `allowance(address,address)` and selector `0xdd62ed3e` + ///Container type for all input parameters for the `allowance` function with signature `allowance(address,address)` and selector `0xdd62ed3e` #[derive( Clone, ::ethers::contract::EthCall, @@ -1477,15 +1636,14 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "allowance", abi = "allowance(address,address)")] pub struct AllowanceCall { pub owner: ::ethers::core::types::Address, pub spender: ::ethers::core::types::Address, } - /// Container type for all input parameters for the `approve` function with signature - /// `approve(address,uint256)` and selector `0x095ea7b3` + ///Container type for all input parameters for the `approve` function with signature `approve(address,uint256)` and selector `0x095ea7b3` #[derive( Clone, ::ethers::contract::EthCall, @@ -1494,15 +1652,14 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "approve", abi = "approve(address,uint256)")] pub struct ApproveCall { pub spender: ::ethers::core::types::Address, pub value: ::ethers::core::types::U256, } - /// Container type for all input parameters for the `balanceOf` function with signature - /// `balanceOf(address)` and selector `0x70a08231` + ///Container type for all input parameters for the `balanceOf` function with signature `balanceOf(address)` and selector `0x70a08231` #[derive( Clone, ::ethers::contract::EthCall, @@ -1511,14 +1668,13 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "balanceOf", abi = "balanceOf(address)")] pub struct BalanceOfCall { pub account: ::ethers::core::types::Address, } - /// Container type for all input parameters for the `decimals` function with signature - /// `decimals()` and selector `0x313ce567` + ///Container type for all input parameters for the `decimals` function with signature `decimals()` and selector `0x313ce567` #[derive( Clone, ::ethers::contract::EthCall, @@ -1527,12 +1683,11 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "decimals", abi = "decimals()")] pub struct DecimalsCall; - /// Container type for all input parameters for the `mint` function with signature - /// `mint(address,uint256)` and selector `0x40c10f19` + ///Container type for all input parameters for the `mint` function with signature `mint(address,uint256)` and selector `0x40c10f19` #[derive( Clone, ::ethers::contract::EthCall, @@ -1541,15 +1696,14 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "mint", abi = "mint(address,uint256)")] pub struct MintCall { pub to: ::ethers::core::types::Address, pub amount: ::ethers::core::types::U256, } - /// Container type for all input parameters for the `name` function with signature `name()` and - /// selector `0x06fdde03` + ///Container type for all input parameters for the `name` function with signature `name()` and selector `0x06fdde03` #[derive( Clone, ::ethers::contract::EthCall, @@ -1558,12 +1712,11 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "name", abi = "name()")] pub struct NameCall; - /// Container type for all input parameters for the `symbol` function with signature `symbol()` - /// and selector `0x95d89b41` + ///Container type for all input parameters for the `symbol` function with signature `symbol()` and selector `0x95d89b41` #[derive( Clone, ::ethers::contract::EthCall, @@ -1572,12 +1725,11 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "symbol", abi = "symbol()")] pub struct SymbolCall; - /// Container type for all input parameters for the `totalSupply` function with signature - /// `totalSupply()` and selector `0x18160ddd` + ///Container type for all input parameters for the `totalSupply` function with signature `totalSupply()` and selector `0x18160ddd` #[derive( Clone, ::ethers::contract::EthCall, @@ -1586,12 +1738,11 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "totalSupply", abi = "totalSupply()")] pub struct TotalSupplyCall; - /// Container type for all input parameters for the `transfer` function with signature - /// `transfer(address,uint256)` and selector `0xa9059cbb` + ///Container type for all input parameters for the `transfer` function with signature `transfer(address,uint256)` and selector `0xa9059cbb` #[derive( Clone, ::ethers::contract::EthCall, @@ -1600,15 +1751,14 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "transfer", abi = "transfer(address,uint256)")] pub struct TransferCall { pub to: ::ethers::core::types::Address, pub value: ::ethers::core::types::U256, } - /// Container type for all input parameters for the `transferFrom` function with signature - /// `transferFrom(address,address,uint256)` and selector `0x23b872dd` + ///Container type for all input parameters for the `transferFrom` function with signature `transferFrom(address,address,uint256)` and selector `0x23b872dd` #[derive( Clone, ::ethers::contract::EthCall, @@ -1617,7 +1767,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "transferFrom", abi = "transferFrom(address,address,uint256)")] pub struct TransferFromCall { @@ -1625,8 +1775,7 @@ pub mod astria_bridgeable_erc20 { pub to: ::ethers::core::types::Address, pub value: ::ethers::core::types::U256, } - /// Container type for all input parameters for the `withdrawToIbcChain` function with signature - /// `withdrawToIbcChain(uint256,string,string)` and selector `0x5fe56b09` + ///Container type for all input parameters for the `withdrawToIbcChain` function with signature `withdrawToIbcChain(uint256,string,string)` and selector `0x5fe56b09` #[derive( Clone, ::ethers::contract::EthCall, @@ -1635,7 +1784,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall( name = "withdrawToIbcChain", @@ -1646,8 +1795,7 @@ pub mod astria_bridgeable_erc20 { pub destination_chain_address: ::std::string::String, pub memo: ::std::string::String, } - /// Container type for all input parameters for the `withdrawToSequencer` function with - /// signature `withdrawToSequencer(uint256,string)` and selector `0xd38fe9a7` + ///Container type for all input parameters for the `withdrawToSequencer` function with signature `withdrawToSequencer(uint256,string)` and selector `0xd38fe9a7` #[derive( Clone, ::ethers::contract::EthCall, @@ -1656,17 +1804,14 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, - )] - #[ethcall( - name = "withdrawToSequencer", - abi = "withdrawToSequencer(uint256,string)" + Hash )] + #[ethcall(name = "withdrawToSequencer", abi = "withdrawToSequencer(uint256,string)")] pub struct WithdrawToSequencerCall { pub amount: ::ethers::core::types::U256, pub destination_chain_address: ::std::string::String, } - /// Container type for all of the contract's call + ///Container type for all of the contract's call #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] pub enum AstriaBridgeableERC20Calls { BaseChainAssetDenomination(BaseChainAssetDenominationCall), @@ -1691,63 +1836,84 @@ pub mod astria_bridgeable_erc20 { data: impl AsRef<[u8]>, ) -> ::core::result::Result { let data = data.as_ref(); - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BaseChainAssetDenomination(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BaseChainAssetPrecision(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BaseChainBridgeAddress(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::Bridge(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::Allowance(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::Approve(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BalanceOf(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::Decimals(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::Mint(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::Name(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::Symbol(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::TotalSupply(decoded)); } - if let Ok(decoded) = ::decode(data) { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::Transfer(decoded)); } - if let Ok(decoded) = ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::TransferFrom(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::WithdrawToIbcChain(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::WithdrawToSequencer(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -1766,16 +1932,28 @@ pub mod astria_bridgeable_erc20 { ::ethers::core::abi::AbiEncode::encode(element) } Self::Bridge(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Allowance(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::Allowance(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::Approve(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::BalanceOf(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Decimals(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::BalanceOf(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Decimals(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::Mint(element) => ::ethers::core::abi::AbiEncode::encode(element), Self::Name(element) => ::ethers::core::abi::AbiEncode::encode(element), Self::Symbol(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::TotalSupply(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Transfer(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::TransferFrom(element) => ::ethers::core::abi::AbiEncode::encode(element), + Self::TotalSupply(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::Transfer(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } + Self::TransferFrom(element) => { + ::ethers::core::abi::AbiEncode::encode(element) + } Self::WithdrawToIbcChain(element) => { ::ethers::core::abi::AbiEncode::encode(element) } @@ -1788,9 +1966,15 @@ pub mod astria_bridgeable_erc20 { impl ::core::fmt::Display for AstriaBridgeableERC20Calls { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Self::BaseChainAssetDenomination(element) => ::core::fmt::Display::fmt(element, f), - Self::BaseChainAssetPrecision(element) => ::core::fmt::Display::fmt(element, f), - Self::BaseChainBridgeAddress(element) => ::core::fmt::Display::fmt(element, f), + Self::BaseChainAssetDenomination(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::BaseChainAssetPrecision(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::BaseChainBridgeAddress(element) => { + ::core::fmt::Display::fmt(element, f) + } Self::Bridge(element) => ::core::fmt::Display::fmt(element, f), Self::Allowance(element) => ::core::fmt::Display::fmt(element, f), Self::Approve(element) => ::core::fmt::Display::fmt(element, f), @@ -1802,22 +1986,29 @@ pub mod astria_bridgeable_erc20 { Self::TotalSupply(element) => ::core::fmt::Display::fmt(element, f), Self::Transfer(element) => ::core::fmt::Display::fmt(element, f), Self::TransferFrom(element) => ::core::fmt::Display::fmt(element, f), - Self::WithdrawToIbcChain(element) => ::core::fmt::Display::fmt(element, f), - Self::WithdrawToSequencer(element) => ::core::fmt::Display::fmt(element, f), + Self::WithdrawToIbcChain(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::WithdrawToSequencer(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } - impl ::core::convert::From for AstriaBridgeableERC20Calls { + impl ::core::convert::From + for AstriaBridgeableERC20Calls { fn from(value: BaseChainAssetDenominationCall) -> Self { Self::BaseChainAssetDenomination(value) } } - impl ::core::convert::From for AstriaBridgeableERC20Calls { + impl ::core::convert::From + for AstriaBridgeableERC20Calls { fn from(value: BaseChainAssetPrecisionCall) -> Self { Self::BaseChainAssetPrecision(value) } } - impl ::core::convert::From for AstriaBridgeableERC20Calls { + impl ::core::convert::From + for AstriaBridgeableERC20Calls { fn from(value: BaseChainBridgeAddressCall) -> Self { Self::BaseChainBridgeAddress(value) } @@ -1887,8 +2078,7 @@ pub mod astria_bridgeable_erc20 { Self::WithdrawToSequencer(value) } } - /// Container type for all return fields from the `BASE_CHAIN_ASSET_DENOMINATION` function with - /// signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` + ///Container type for all return fields from the `BASE_CHAIN_ASSET_DENOMINATION` function with signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -1897,11 +2087,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BaseChainAssetDenominationReturn(pub ::std::string::String); - /// Container type for all return fields from the `BASE_CHAIN_ASSET_PRECISION` function with - /// signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` + ///Container type for all return fields from the `BASE_CHAIN_ASSET_PRECISION` function with signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -1910,11 +2099,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BaseChainAssetPrecisionReturn(pub u32); - /// Container type for all return fields from the `BASE_CHAIN_BRIDGE_ADDRESS` function with - /// signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` + ///Container type for all return fields from the `BASE_CHAIN_BRIDGE_ADDRESS` function with signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -1923,11 +2111,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BaseChainBridgeAddressReturn(pub ::std::string::String); - /// Container type for all return fields from the `BRIDGE` function with signature `BRIDGE()` - /// and selector `0xee9a31a2` + ///Container type for all return fields from the `BRIDGE` function with signature `BRIDGE()` and selector `0xee9a31a2` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -1936,11 +2123,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BridgeReturn(pub ::ethers::core::types::Address); - /// Container type for all return fields from the `allowance` function with signature - /// `allowance(address,address)` and selector `0xdd62ed3e` + ///Container type for all return fields from the `allowance` function with signature `allowance(address,address)` and selector `0xdd62ed3e` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -1949,11 +2135,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct AllowanceReturn(pub ::ethers::core::types::U256); - /// Container type for all return fields from the `approve` function with signature - /// `approve(address,uint256)` and selector `0x095ea7b3` + ///Container type for all return fields from the `approve` function with signature `approve(address,uint256)` and selector `0x095ea7b3` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -1962,11 +2147,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct ApproveReturn(pub bool); - /// Container type for all return fields from the `balanceOf` function with signature - /// `balanceOf(address)` and selector `0x70a08231` + ///Container type for all return fields from the `balanceOf` function with signature `balanceOf(address)` and selector `0x70a08231` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -1975,11 +2159,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BalanceOfReturn(pub ::ethers::core::types::U256); - /// Container type for all return fields from the `decimals` function with signature - /// `decimals()` and selector `0x313ce567` + ///Container type for all return fields from the `decimals` function with signature `decimals()` and selector `0x313ce567` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -1988,11 +2171,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct DecimalsReturn(pub u8); - /// Container type for all return fields from the `name` function with signature `name()` and - /// selector `0x06fdde03` + ///Container type for all return fields from the `name` function with signature `name()` and selector `0x06fdde03` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -2001,11 +2183,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct NameReturn(pub ::std::string::String); - /// Container type for all return fields from the `symbol` function with signature `symbol()` - /// and selector `0x95d89b41` + ///Container type for all return fields from the `symbol` function with signature `symbol()` and selector `0x95d89b41` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -2014,11 +2195,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct SymbolReturn(pub ::std::string::String); - /// Container type for all return fields from the `totalSupply` function with signature - /// `totalSupply()` and selector `0x18160ddd` + ///Container type for all return fields from the `totalSupply` function with signature `totalSupply()` and selector `0x18160ddd` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -2027,11 +2207,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct TotalSupplyReturn(pub ::ethers::core::types::U256); - /// Container type for all return fields from the `transfer` function with signature - /// `transfer(address,uint256)` and selector `0xa9059cbb` + ///Container type for all return fields from the `transfer` function with signature `transfer(address,uint256)` and selector `0xa9059cbb` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -2040,11 +2219,10 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct TransferReturn(pub bool); - /// Container type for all return fields from the `transferFrom` function with signature - /// `transferFrom(address,address,uint256)` and selector `0x23b872dd` + ///Container type for all return fields from the `transferFrom` function with signature `transferFrom(address,address,uint256)` and selector `0x23b872dd` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -2053,7 +2231,7 @@ pub mod astria_bridgeable_erc20 { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct TransferFromReturn(pub bool); } diff --git a/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_withdrawer.rs b/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_withdrawer.rs index 93778b5958..749f6e7d41 100644 --- a/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_withdrawer.rs +++ b/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_withdrawer.rs @@ -7,7 +7,7 @@ pub use astria_withdrawer::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types + non_camel_case_types, )] pub mod astria_withdrawer { #[allow(deprecated)] @@ -16,21 +16,27 @@ pub mod astria_withdrawer { constructor: ::core::option::Option::Some(::ethers::core::abi::ethabi::Constructor { inputs: ::std::vec![ ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_baseChainAssetPrecision",), + name: ::std::borrow::ToOwned::to_owned( + "_baseChainAssetPrecision", + ), kind: ::ethers::core::abi::ethabi::ParamType::Uint(32usize), internal_type: ::core::option::Option::Some( ::std::borrow::ToOwned::to_owned("uint32"), ), }, ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_baseChainBridgeAddress",), + name: ::std::borrow::ToOwned::to_owned( + "_baseChainBridgeAddress", + ), kind: ::ethers::core::abi::ethabi::ParamType::String, internal_type: ::core::option::Option::Some( ::std::borrow::ToOwned::to_owned("string"), ), }, ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_baseChainAssetDenomination",), + name: ::std::borrow::ToOwned::to_owned( + "_baseChainAssetDenomination", + ), kind: ::ethers::core::abi::ethabi::ParamType::String, internal_type: ::core::option::Option::Some( ::std::borrow::ToOwned::to_owned("string"), @@ -41,147 +47,191 @@ pub mod astria_withdrawer { functions: ::core::convert::From::from([ ( ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_DENOMINATION"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_DENOMINATION",), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "BASE_CHAIN_ASSET_DENOMINATION", ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_PRECISION"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_PRECISION",), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(32usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint32"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "BASE_CHAIN_ASSET_PRECISION", ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Uint(32usize), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint32"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("BASE_CHAIN_BRIDGE_ADDRESS"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BASE_CHAIN_BRIDGE_ADDRESS",), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "BASE_CHAIN_BRIDGE_ADDRESS", ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("withdrawToIbcChain"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("withdrawToIbcChain"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("memo"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned("withdrawToIbcChain"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned( + "destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned("memo"), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + outputs: ::std::vec![], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("withdrawToSequencer"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("withdrawToSequencer",), - inputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "withdrawToSequencer", ), - },], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, - },], + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::borrow::ToOwned::to_owned( + "destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + outputs: ::std::vec![], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, + }, + ], ), ]), events: ::core::convert::From::from([ ( ::std::borrow::ToOwned::to_owned("Ics20Withdrawal"), - ::std::vec![::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Ics20Withdrawal"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("sender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("memo"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ], - anonymous: false, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Event { + name: ::std::borrow::ToOwned::to_owned("Ics20Withdrawal"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("sender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned( + "destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + indexed: false, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("memo"), + kind: ::ethers::core::abi::ethabi::ParamType::String, + indexed: false, + }, + ], + anonymous: false, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("SequencerWithdrawal"), - ::std::vec![::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("SequencerWithdrawal",), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("sender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ], - anonymous: false, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Event { + name: ::std::borrow::ToOwned::to_owned( + "SequencerWithdrawal", + ), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("sender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned( + "destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + indexed: false, + }, + ], + anonymous: false, + }, + ], ), ]), errors: ::std::collections::BTreeMap::new(), @@ -189,19 +239,22 @@ pub mod astria_withdrawer { fallback: false, } } - /// The parsed JSON ABI of the contract. - pub static ASTRIAWITHDRAWER_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = - ::ethers::contract::Lazy::new(__abi); + ///The parsed JSON ABI of the contract. + pub static ASTRIAWITHDRAWER_ABI: ::ethers::contract::Lazy< + ::ethers::core::abi::Abi, + > = ::ethers::contract::Lazy::new(__abi); #[rustfmt::skip] const __BYTECODE: &[u8] = b"`\xC0`@R4\x80\x15b\0\0\x11W`\0\x80\xFD[P`@Qb\0\n\xED8\x03\x80b\0\n\xED\x839\x81\x01`@\x81\x90Rb\0\x004\x91b\0\x01\xE0V[`\x12\x83c\xFF\xFF\xFF\xFF\x16\x11\x15b\0\0\xCCW`@QbF\x1B\xCD`\xE5\x1B\x81R` `\x04\x82\x01R`M`$\x82\x01R\x7FAstriaWithdrawer: base chain ass`D\x82\x01R\x7Fet precision must be less than o`d\x82\x01Rl\x0ED\x0C\xAE.\xAC-\x84\x0E\x8D\xE4\x06'`\x9B\x1B`\x84\x82\x01R`\xA4\x01`@Q\x80\x91\x03\x90\xFD[c\xFF\xFF\xFF\xFF\x83\x16`\x80R`\0b\0\0\xE4\x83\x82b\0\x02\xF6V[P`\x01b\0\0\xF3\x82\x82b\0\x02\xF6V[Pb\0\x01\x01\x83`\x12b\0\x03\xD8V[b\0\x01\x0E\x90`\nb\0\x04\xFEV[`\xA0RPb\0\x05\x19\x91PPV[cNH{q`\xE0\x1B`\0R`A`\x04R`$`\0\xFD[`\0\x82`\x1F\x83\x01\x12b\0\x01CW`\0\x80\xFD[\x81Q`\x01`\x01`@\x1B\x03\x80\x82\x11\x15b\0\x01`Wb\0\x01`b\0\x01\x1BV[`@Q`\x1F\x83\x01`\x1F\x19\x90\x81\x16`?\x01\x16\x81\x01\x90\x82\x82\x11\x81\x83\x10\x17\x15b\0\x01\x8BWb\0\x01\x8Bb\0\x01\x1BV[\x81`@R\x83\x81R` \x92P\x86\x83\x85\x88\x01\x01\x11\x15b\0\x01\xA8W`\0\x80\xFD[`\0\x91P[\x83\x82\x10\x15b\0\x01\xCCW\x85\x82\x01\x83\x01Q\x81\x83\x01\x84\x01R\x90\x82\x01\x90b\0\x01\xADV[`\0\x93\x81\x01\x90\x92\x01\x92\x90\x92R\x94\x93PPPPV[`\0\x80`\0``\x84\x86\x03\x12\x15b\0\x01\xF6W`\0\x80\xFD[\x83Qc\xFF\xFF\xFF\xFF\x81\x16\x81\x14b\0\x02\x0BW`\0\x80\xFD[` \x85\x01Q\x90\x93P`\x01`\x01`@\x1B\x03\x80\x82\x11\x15b\0\x02)W`\0\x80\xFD[b\0\x027\x87\x83\x88\x01b\0\x011V[\x93P`@\x86\x01Q\x91P\x80\x82\x11\x15b\0\x02NW`\0\x80\xFD[Pb\0\x02]\x86\x82\x87\x01b\0\x011V[\x91PP\x92P\x92P\x92V[`\x01\x81\x81\x1C\x90\x82\x16\x80b\0\x02|W`\x7F\x82\x16\x91P[` \x82\x10\x81\x03b\0\x02\x9DWcNH{q`\xE0\x1B`\0R`\"`\x04R`$`\0\xFD[P\x91\x90PV[`\x1F\x82\x11\x15b\0\x02\xF1W`\0\x81\x81R` \x81 `\x1F\x85\x01`\x05\x1C\x81\x01` \x86\x10\x15b\0\x02\xCCWP\x80[`\x1F\x85\x01`\x05\x1C\x82\x01\x91P[\x81\x81\x10\x15b\0\x02\xEDW\x82\x81U`\x01\x01b\0\x02\xD8V[PPP[PPPV[\x81Q`\x01`\x01`@\x1B\x03\x81\x11\x15b\0\x03\x12Wb\0\x03\x12b\0\x01\x1BV[b\0\x03*\x81b\0\x03#\x84Tb\0\x02gV[\x84b\0\x02\xA3V[` \x80`\x1F\x83\x11`\x01\x81\x14b\0\x03bW`\0\x84\x15b\0\x03IWP\x85\x83\x01Q[`\0\x19`\x03\x86\x90\x1B\x1C\x19\x16`\x01\x85\x90\x1B\x17\x85Ub\0\x02\xEDV[`\0\x85\x81R` \x81 `\x1F\x19\x86\x16\x91[\x82\x81\x10\x15b\0\x03\x93W\x88\x86\x01Q\x82U\x94\x84\x01\x94`\x01\x90\x91\x01\x90\x84\x01b\0\x03rV[P\x85\x82\x10\x15b\0\x03\xB2W\x87\x85\x01Q`\0\x19`\x03\x88\x90\x1B`\xF8\x16\x1C\x19\x16\x81U[PPPPP`\x01\x90\x81\x1B\x01\x90UPV[cNH{q`\xE0\x1B`\0R`\x11`\x04R`$`\0\xFD[c\xFF\xFF\xFF\xFF\x82\x81\x16\x82\x82\x16\x03\x90\x80\x82\x11\x15b\0\x03\xF8Wb\0\x03\xF8b\0\x03\xC2V[P\x92\x91PPV[`\x01\x81\x81[\x80\x85\x11\x15b\0\x04@W\x81`\0\x19\x04\x82\x11\x15b\0\x04$Wb\0\x04$b\0\x03\xC2V[\x80\x85\x16\x15b\0\x042W\x91\x81\x02\x91[\x93\x84\x1C\x93\x90\x80\x02\x90b\0\x04\x04V[P\x92P\x92\x90PV[`\0\x82b\0\x04YWP`\x01b\0\x04\xF8V[\x81b\0\x04hWP`\0b\0\x04\xF8V[\x81`\x01\x81\x14b\0\x04\x81W`\x02\x81\x14b\0\x04\x8CWb\0\x04\xACV[`\x01\x91PPb\0\x04\xF8V[`\xFF\x84\x11\x15b\0\x04\xA0Wb\0\x04\xA0b\0\x03\xC2V[PP`\x01\x82\x1Bb\0\x04\xF8V[P` \x83\x10a\x013\x83\x10\x16`N\x84\x10`\x0B\x84\x10\x16\x17\x15b\0\x04\xD1WP\x81\x81\nb\0\x04\xF8V[b\0\x04\xDD\x83\x83b\0\x03\xFFV[\x80`\0\x19\x04\x82\x11\x15b\0\x04\xF4Wb\0\x04\xF4b\0\x03\xC2V[\x02\x90P[\x92\x91PPV[`\0b\0\x05\x12c\xFF\xFF\xFF\xFF\x84\x16\x83b\0\x04HV[\x93\x92PPPV[`\x80Q`\xA0Qa\x05\xA8b\0\x05E`\09`\0\x81\x81a\x01\x04\x01Ra\x024\x01R`\0`a\x01Ra\x05\xA8`\0\xF3\xFE`\x80`@R`\x046\x10a\0JW`\x005`\xE0\x1C\x80c~\xB6\xDE\xC7\x14a\0OW\x80c\xA9\x96\xE0 \x14a\0\x9DW\x80c\xB6Gl~\x14a\0\xB2W\x80c\xBA\xB9\x16\xD0\x14a\0\xD4W\x80c\xDB\x97\xDC\x98\x14a\0\xE7W[`\0\x80\xFD[4\x80\x15a\0[W`\0\x80\xFD[Pa\0\x83\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81V[`@Qc\xFF\xFF\xFF\xFF\x90\x91\x16\x81R` \x01[`@Q\x80\x91\x03\x90\xF3[a\0\xB0a\0\xAB6`\x04a\x03\x15V[a\0\xFCV[\0[4\x80\x15a\0\xBEW`\0\x80\xFD[Pa\0\xC7a\x01\x9EV[`@Qa\0\x94\x91\x90a\x03\x81V[a\0\xB0a\0\xE26`\x04a\x03\xCFV[a\x02,V[4\x80\x15a\0\xF3W`\0\x80\xFD[Pa\0\xC7a\x02\xBFV[4`\0a\x01)\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x83a\x04\x11V[\x11a\x01OW`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01F\x90a\x043V[`@Q\x80\x91\x03\x90\xFD[43`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0Cd\xE2\x9ART\xA7\x1C\x7FNR\xB3\xD2\xD264\x8C\x80\xE0\n\0\xBA.\x19a\x96+\xD2\x82|\x03\xFB\x87\x87\x87\x87`@Qa\x01\x8F\x94\x93\x92\x91\x90a\x04\xEAV[`@Q\x80\x91\x03\x90\xA3PPPPPV[`\x01\x80Ta\x01\xAB\x90a\x05\x1CV[\x80`\x1F\x01` \x80\x91\x04\x02` \x01`@Q\x90\x81\x01`@R\x80\x92\x91\x90\x81\x81R` \x01\x82\x80Ta\x01\xD7\x90a\x05\x1CV[\x80\x15a\x02$W\x80`\x1F\x10a\x01\xF9Wa\x01\0\x80\x83T\x04\x02\x83R\x91` \x01\x91a\x02$V[\x82\x01\x91\x90`\0R` `\0 \x90[\x81T\x81R\x90`\x01\x01\x90` \x01\x80\x83\x11a\x02\x07W\x82\x90\x03`\x1F\x16\x82\x01\x91[PPPPP\x81V[4`\0a\x02Y\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x83a\x04\x11V[\x11a\x02vW`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01F\x90a\x043V[43`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0FIa\xCA\xB7S\x08\x04\x89\x84\x99\xAA\x89\xF5\xEC\x81\xD1\xA71\x02\xE2\xE4\xA1\xF3\x0F\x88\xE5\xAE5\x13\xBA*\x85\x85`@Qa\x02\xB2\x92\x91\x90a\x05VV[`@Q\x80\x91\x03\x90\xA3PPPV[`\0\x80Ta\x01\xAB\x90a\x05\x1CV[`\0\x80\x83`\x1F\x84\x01\x12a\x02\xDEW`\0\x80\xFD[P\x815g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\x02\xF6W`\0\x80\xFD[` \x83\x01\x91P\x83` \x82\x85\x01\x01\x11\x15a\x03\x0EW`\0\x80\xFD[\x92P\x92\x90PV[`\0\x80`\0\x80`@\x85\x87\x03\x12\x15a\x03+W`\0\x80\xFD[\x845g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x82\x11\x15a\x03CW`\0\x80\xFD[a\x03O\x88\x83\x89\x01a\x02\xCCV[\x90\x96P\x94P` \x87\x015\x91P\x80\x82\x11\x15a\x03hW`\0\x80\xFD[Pa\x03u\x87\x82\x88\x01a\x02\xCCV[\x95\x98\x94\x97P\x95PPPPV[`\0` \x80\x83R\x83Q\x80\x82\x85\x01R`\0[\x81\x81\x10\x15a\x03\xAEW\x85\x81\x01\x83\x01Q\x85\x82\x01`@\x01R\x82\x01a\x03\x92V[P`\0`@\x82\x86\x01\x01R`@`\x1F\x19`\x1F\x83\x01\x16\x85\x01\x01\x92PPP\x92\x91PPV[`\0\x80` \x83\x85\x03\x12\x15a\x03\xE2W`\0\x80\xFD[\x825g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\x03\xF9W`\0\x80\xFD[a\x04\x05\x85\x82\x86\x01a\x02\xCCV[\x90\x96\x90\x95P\x93PPPPV[`\0\x82a\x04.WcNH{q`\xE0\x1B`\0R`\x12`\x04R`$`\0\xFD[P\x04\x90V[` \x80\x82R`b\x90\x82\x01R\x7FAstriaWithdrawer: insufficient v`@\x82\x01R\x7Falue, must be greater than 10 **``\x82\x01R\x7F (18 - BASE_CHAIN_ASSET_PRECISIO`\x80\x82\x01RaN)`\xF0\x1B`\xA0\x82\x01R`\xC0\x01\x90V[\x81\x83R\x81\x81` \x85\x017P`\0\x82\x82\x01` \x90\x81\x01\x91\x90\x91R`\x1F\x90\x91\x01`\x1F\x19\x16\x90\x91\x01\x01\x90V[`@\x81R`\0a\x04\xFE`@\x83\x01\x86\x88a\x04\xC1V[\x82\x81\x03` \x84\x01Ra\x05\x11\x81\x85\x87a\x04\xC1V[\x97\x96PPPPPPPV[`\x01\x81\x81\x1C\x90\x82\x16\x80a\x050W`\x7F\x82\x16\x91P[` \x82\x10\x81\x03a\x05PWcNH{q`\xE0\x1B`\0R`\"`\x04R`$`\0\xFD[P\x91\x90PV[` \x81R`\0a\x05j` \x83\x01\x84\x86a\x04\xC1V[\x94\x93PPPPV\xFE\xA2dipfsX\"\x12 \t \xD0n0\xAB\xBF\xC4\xFB\xEC\xCAZ\x19\x17 \xDB\xA8\xDEE\x9E\x1B\xD5\x85O\xB2\xAAq\x80HU\x05\xC4dsolcC\0\x08\x15\x003"; /// The bytecode of the contract. - pub static ASTRIAWITHDRAWER_BYTECODE: ::ethers::core::types::Bytes = - ::ethers::core::types::Bytes::from_static(__BYTECODE); + pub static ASTRIAWITHDRAWER_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( + __BYTECODE, + ); #[rustfmt::skip] const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R`\x046\x10a\0JW`\x005`\xE0\x1C\x80c~\xB6\xDE\xC7\x14a\0OW\x80c\xA9\x96\xE0 \x14a\0\x9DW\x80c\xB6Gl~\x14a\0\xB2W\x80c\xBA\xB9\x16\xD0\x14a\0\xD4W\x80c\xDB\x97\xDC\x98\x14a\0\xE7W[`\0\x80\xFD[4\x80\x15a\0[W`\0\x80\xFD[Pa\0\x83\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x81V[`@Qc\xFF\xFF\xFF\xFF\x90\x91\x16\x81R` \x01[`@Q\x80\x91\x03\x90\xF3[a\0\xB0a\0\xAB6`\x04a\x03\x15V[a\0\xFCV[\0[4\x80\x15a\0\xBEW`\0\x80\xFD[Pa\0\xC7a\x01\x9EV[`@Qa\0\x94\x91\x90a\x03\x81V[a\0\xB0a\0\xE26`\x04a\x03\xCFV[a\x02,V[4\x80\x15a\0\xF3W`\0\x80\xFD[Pa\0\xC7a\x02\xBFV[4`\0a\x01)\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x83a\x04\x11V[\x11a\x01OW`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01F\x90a\x043V[`@Q\x80\x91\x03\x90\xFD[43`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0Cd\xE2\x9ART\xA7\x1C\x7FNR\xB3\xD2\xD264\x8C\x80\xE0\n\0\xBA.\x19a\x96+\xD2\x82|\x03\xFB\x87\x87\x87\x87`@Qa\x01\x8F\x94\x93\x92\x91\x90a\x04\xEAV[`@Q\x80\x91\x03\x90\xA3PPPPPV[`\x01\x80Ta\x01\xAB\x90a\x05\x1CV[\x80`\x1F\x01` \x80\x91\x04\x02` \x01`@Q\x90\x81\x01`@R\x80\x92\x91\x90\x81\x81R` \x01\x82\x80Ta\x01\xD7\x90a\x05\x1CV[\x80\x15a\x02$W\x80`\x1F\x10a\x01\xF9Wa\x01\0\x80\x83T\x04\x02\x83R\x91` \x01\x91a\x02$V[\x82\x01\x91\x90`\0R` `\0 \x90[\x81T\x81R\x90`\x01\x01\x90` \x01\x80\x83\x11a\x02\x07W\x82\x90\x03`\x1F\x16\x82\x01\x91[PPPPP\x81V[4`\0a\x02Y\x7F\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x83a\x04\x11V[\x11a\x02vW`@QbF\x1B\xCD`\xE5\x1B\x81R`\x04\x01a\x01F\x90a\x043V[43`\x01`\x01`\xA0\x1B\x03\x16\x7F\x0FIa\xCA\xB7S\x08\x04\x89\x84\x99\xAA\x89\xF5\xEC\x81\xD1\xA71\x02\xE2\xE4\xA1\xF3\x0F\x88\xE5\xAE5\x13\xBA*\x85\x85`@Qa\x02\xB2\x92\x91\x90a\x05VV[`@Q\x80\x91\x03\x90\xA3PPPV[`\0\x80Ta\x01\xAB\x90a\x05\x1CV[`\0\x80\x83`\x1F\x84\x01\x12a\x02\xDEW`\0\x80\xFD[P\x815g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\x02\xF6W`\0\x80\xFD[` \x83\x01\x91P\x83` \x82\x85\x01\x01\x11\x15a\x03\x0EW`\0\x80\xFD[\x92P\x92\x90PV[`\0\x80`\0\x80`@\x85\x87\x03\x12\x15a\x03+W`\0\x80\xFD[\x845g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x80\x82\x11\x15a\x03CW`\0\x80\xFD[a\x03O\x88\x83\x89\x01a\x02\xCCV[\x90\x96P\x94P` \x87\x015\x91P\x80\x82\x11\x15a\x03hW`\0\x80\xFD[Pa\x03u\x87\x82\x88\x01a\x02\xCCV[\x95\x98\x94\x97P\x95PPPPV[`\0` \x80\x83R\x83Q\x80\x82\x85\x01R`\0[\x81\x81\x10\x15a\x03\xAEW\x85\x81\x01\x83\x01Q\x85\x82\x01`@\x01R\x82\x01a\x03\x92V[P`\0`@\x82\x86\x01\x01R`@`\x1F\x19`\x1F\x83\x01\x16\x85\x01\x01\x92PPP\x92\x91PPV[`\0\x80` \x83\x85\x03\x12\x15a\x03\xE2W`\0\x80\xFD[\x825g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x15a\x03\xF9W`\0\x80\xFD[a\x04\x05\x85\x82\x86\x01a\x02\xCCV[\x90\x96\x90\x95P\x93PPPPV[`\0\x82a\x04.WcNH{q`\xE0\x1B`\0R`\x12`\x04R`$`\0\xFD[P\x04\x90V[` \x80\x82R`b\x90\x82\x01R\x7FAstriaWithdrawer: insufficient v`@\x82\x01R\x7Falue, must be greater than 10 **``\x82\x01R\x7F (18 - BASE_CHAIN_ASSET_PRECISIO`\x80\x82\x01RaN)`\xF0\x1B`\xA0\x82\x01R`\xC0\x01\x90V[\x81\x83R\x81\x81` \x85\x017P`\0\x82\x82\x01` \x90\x81\x01\x91\x90\x91R`\x1F\x90\x91\x01`\x1F\x19\x16\x90\x91\x01\x01\x90V[`@\x81R`\0a\x04\xFE`@\x83\x01\x86\x88a\x04\xC1V[\x82\x81\x03` \x84\x01Ra\x05\x11\x81\x85\x87a\x04\xC1V[\x97\x96PPPPPPPV[`\x01\x81\x81\x1C\x90\x82\x16\x80a\x050W`\x7F\x82\x16\x91P[` \x82\x10\x81\x03a\x05PWcNH{q`\xE0\x1B`\0R`\"`\x04R`$`\0\xFD[P\x91\x90PV[` \x81R`\0a\x05j` \x83\x01\x84\x86a\x04\xC1V[\x94\x93PPPPV\xFE\xA2dipfsX\"\x12 \t \xD0n0\xAB\xBF\xC4\xFB\xEC\xCAZ\x19\x17 \xDB\xA8\xDEE\x9E\x1B\xD5\x85O\xB2\xAAq\x80HU\x05\xC4dsolcC\0\x08\x15\x003"; /// The deployed bytecode of the contract. - pub static ASTRIAWITHDRAWER_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = - ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); + pub static ASTRIAWITHDRAWER_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( + __DEPLOYED_BYTECODE, + ); pub struct AstriaWithdrawer(::ethers::contract::Contract); impl ::core::clone::Clone for AstriaWithdrawer { fn clone(&self) -> Self { @@ -210,7 +263,6 @@ pub mod astria_withdrawer { } impl ::core::ops::Deref for AstriaWithdrawer { type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { &self.0 } @@ -234,16 +286,16 @@ pub mod astria_withdrawer { address: T, client: ::std::sync::Arc, ) -> Self { - Self(::ethers::contract::Contract::new( - address.into(), - ASTRIAWITHDRAWER_ABI.clone(), - client, - )) + Self( + ::ethers::contract::Contract::new( + address.into(), + ASTRIAWITHDRAWER_ABI.clone(), + client, + ), + ) } - - /// Constructs the general purpose `Deployer` instance based on the provided constructor - /// arguments and sends it. Returns a new instance of a deployer that returns an - /// instance of this contract after sending the transaction + /// Constructs the general purpose `Deployer` instance based on the provided constructor arguments and sends it. + /// Returns a new instance of a deployer that returns an instance of this contract after sending the transaction /// /// Notes: /// - If there are no constructor arguments, you should pass `()` as the argument. @@ -281,8 +333,7 @@ pub mod astria_withdrawer { let deployer = ::ethers::contract::ContractDeployer::new(deployer); Ok(deployer) } - - /// Calls the contract's `BASE_CHAIN_ASSET_DENOMINATION` (0xb6476c7e) function + ///Calls the contract's `BASE_CHAIN_ASSET_DENOMINATION` (0xb6476c7e) function pub fn base_chain_asset_denomination( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -290,8 +341,7 @@ pub mod astria_withdrawer { .method_hash([182, 71, 108, 126], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `BASE_CHAIN_ASSET_PRECISION` (0x7eb6dec7) function + ///Calls the contract's `BASE_CHAIN_ASSET_PRECISION` (0x7eb6dec7) function pub fn base_chain_asset_precision( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -299,8 +349,7 @@ pub mod astria_withdrawer { .method_hash([126, 182, 222, 199], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `BASE_CHAIN_BRIDGE_ADDRESS` (0xdb97dc98) function + ///Calls the contract's `BASE_CHAIN_BRIDGE_ADDRESS` (0xdb97dc98) function pub fn base_chain_bridge_address( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -308,8 +357,7 @@ pub mod astria_withdrawer { .method_hash([219, 151, 220, 152], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `withdrawToIbcChain` (0xa996e020) function + ///Calls the contract's `withdrawToIbcChain` (0xa996e020) function pub fn withdraw_to_ibc_chain( &self, destination_chain_address: ::std::string::String, @@ -319,8 +367,7 @@ pub mod astria_withdrawer { .method_hash([169, 150, 224, 32], (destination_chain_address, memo)) .expect("method not found (this should never happen)") } - - /// Calls the contract's `withdrawToSequencer` (0xbab916d0) function + ///Calls the contract's `withdrawToSequencer` (0xbab916d0) function pub fn withdraw_to_sequencer( &self, destination_chain_address: ::std::string::String, @@ -329,35 +376,39 @@ pub mod astria_withdrawer { .method_hash([186, 185, 22, 208], destination_chain_address) .expect("method not found (this should never happen)") } - - /// Gets the contract's `Ics20Withdrawal` event + ///Gets the contract's `Ics20Withdrawal` event pub fn ics_20_withdrawal_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, Ics20WithdrawalFilter> - { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + Ics20WithdrawalFilter, + > { self.0.event() } - - /// Gets the contract's `SequencerWithdrawal` event + ///Gets the contract's `SequencerWithdrawal` event pub fn sequencer_withdrawal_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, SequencerWithdrawalFilter> - { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + SequencerWithdrawalFilter, + > { self.0.event() } - /// Returns an `Event` builder for all the events of this contract. pub fn events( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, AstriaWithdrawerEvents> - { - self.0 - .event_with_filter(::core::default::Default::default()) + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + AstriaWithdrawerEvents, + > { + self.0.event_with_filter(::core::default::Default::default()) } } impl From<::ethers::contract::Contract> - for AstriaWithdrawer - { + for AstriaWithdrawer { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -370,7 +421,7 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethevent( name = "Ics20Withdrawal", @@ -392,7 +443,7 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethevent( name = "SequencerWithdrawal", @@ -405,7 +456,7 @@ pub mod astria_withdrawer { pub amount: ::ethers::core::types::U256, pub destination_chain_address: ::std::string::String, } - /// Container type for all of the contract's events + ///Container type for all of the contract's events #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] pub enum AstriaWithdrawerEvents { Ics20WithdrawalFilter(Ics20WithdrawalFilter), @@ -427,8 +478,12 @@ pub mod astria_withdrawer { impl ::core::fmt::Display for AstriaWithdrawerEvents { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Self::Ics20WithdrawalFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::SequencerWithdrawalFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::Ics20WithdrawalFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SequencerWithdrawalFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -442,8 +497,7 @@ pub mod astria_withdrawer { Self::SequencerWithdrawalFilter(value) } } - /// Container type for all input parameters for the `BASE_CHAIN_ASSET_DENOMINATION` function - /// with signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` + ///Container type for all input parameters for the `BASE_CHAIN_ASSET_DENOMINATION` function with signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` #[derive( Clone, ::ethers::contract::EthCall, @@ -452,15 +506,14 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall( name = "BASE_CHAIN_ASSET_DENOMINATION", abi = "BASE_CHAIN_ASSET_DENOMINATION()" )] pub struct BaseChainAssetDenominationCall; - /// Container type for all input parameters for the `BASE_CHAIN_ASSET_PRECISION` function with - /// signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` + ///Container type for all input parameters for the `BASE_CHAIN_ASSET_PRECISION` function with signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` #[derive( Clone, ::ethers::contract::EthCall, @@ -469,15 +522,11 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, - )] - #[ethcall( - name = "BASE_CHAIN_ASSET_PRECISION", - abi = "BASE_CHAIN_ASSET_PRECISION()" + Hash )] + #[ethcall(name = "BASE_CHAIN_ASSET_PRECISION", abi = "BASE_CHAIN_ASSET_PRECISION()")] pub struct BaseChainAssetPrecisionCall; - /// Container type for all input parameters for the `BASE_CHAIN_BRIDGE_ADDRESS` function with - /// signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` + ///Container type for all input parameters for the `BASE_CHAIN_BRIDGE_ADDRESS` function with signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` #[derive( Clone, ::ethers::contract::EthCall, @@ -486,15 +535,11 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, - )] - #[ethcall( - name = "BASE_CHAIN_BRIDGE_ADDRESS", - abi = "BASE_CHAIN_BRIDGE_ADDRESS()" + Hash )] + #[ethcall(name = "BASE_CHAIN_BRIDGE_ADDRESS", abi = "BASE_CHAIN_BRIDGE_ADDRESS()")] pub struct BaseChainBridgeAddressCall; - /// Container type for all input parameters for the `withdrawToIbcChain` function with signature - /// `withdrawToIbcChain(string,string)` and selector `0xa996e020` + ///Container type for all input parameters for the `withdrawToIbcChain` function with signature `withdrawToIbcChain(string,string)` and selector `0xa996e020` #[derive( Clone, ::ethers::contract::EthCall, @@ -503,15 +548,14 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "withdrawToIbcChain", abi = "withdrawToIbcChain(string,string)")] pub struct WithdrawToIbcChainCall { pub destination_chain_address: ::std::string::String, pub memo: ::std::string::String, } - /// Container type for all input parameters for the `withdrawToSequencer` function with - /// signature `withdrawToSequencer(string)` and selector `0xbab916d0` + ///Container type for all input parameters for the `withdrawToSequencer` function with signature `withdrawToSequencer(string)` and selector `0xbab916d0` #[derive( Clone, ::ethers::contract::EthCall, @@ -520,13 +564,13 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall(name = "withdrawToSequencer", abi = "withdrawToSequencer(string)")] pub struct WithdrawToSequencerCall { pub destination_chain_address: ::std::string::String, } - /// Container type for all of the contract's call + ///Container type for all of the contract's call #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] pub enum AstriaWithdrawerCalls { BaseChainAssetDenomination(BaseChainAssetDenominationCall), @@ -540,29 +584,29 @@ pub mod astria_withdrawer { data: impl AsRef<[u8]>, ) -> ::core::result::Result { let data = data.as_ref(); - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BaseChainAssetDenomination(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BaseChainAssetPrecision(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BaseChainBridgeAddress(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::WithdrawToIbcChain(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::WithdrawToSequencer(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -592,15 +636,26 @@ pub mod astria_withdrawer { impl ::core::fmt::Display for AstriaWithdrawerCalls { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Self::BaseChainAssetDenomination(element) => ::core::fmt::Display::fmt(element, f), - Self::BaseChainAssetPrecision(element) => ::core::fmt::Display::fmt(element, f), - Self::BaseChainBridgeAddress(element) => ::core::fmt::Display::fmt(element, f), - Self::WithdrawToIbcChain(element) => ::core::fmt::Display::fmt(element, f), - Self::WithdrawToSequencer(element) => ::core::fmt::Display::fmt(element, f), + Self::BaseChainAssetDenomination(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::BaseChainAssetPrecision(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::BaseChainBridgeAddress(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::WithdrawToIbcChain(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::WithdrawToSequencer(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } - impl ::core::convert::From for AstriaWithdrawerCalls { + impl ::core::convert::From + for AstriaWithdrawerCalls { fn from(value: BaseChainAssetDenominationCall) -> Self { Self::BaseChainAssetDenomination(value) } @@ -625,8 +680,7 @@ pub mod astria_withdrawer { Self::WithdrawToSequencer(value) } } - /// Container type for all return fields from the `BASE_CHAIN_ASSET_DENOMINATION` function with - /// signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` + ///Container type for all return fields from the `BASE_CHAIN_ASSET_DENOMINATION` function with signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -635,11 +689,10 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BaseChainAssetDenominationReturn(pub ::std::string::String); - /// Container type for all return fields from the `BASE_CHAIN_ASSET_PRECISION` function with - /// signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` + ///Container type for all return fields from the `BASE_CHAIN_ASSET_PRECISION` function with signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -648,11 +701,10 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BaseChainAssetPrecisionReturn(pub u32); - /// Container type for all return fields from the `BASE_CHAIN_BRIDGE_ADDRESS` function with - /// signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` + ///Container type for all return fields from the `BASE_CHAIN_BRIDGE_ADDRESS` function with signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -661,7 +713,7 @@ pub mod astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BaseChainBridgeAddressReturn(pub ::std::string::String); } diff --git a/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_withdrawer_interface.rs b/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_withdrawer_interface.rs index 06cb30c5d7..06cda1baed 100644 --- a/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_withdrawer_interface.rs +++ b/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/generated/astria_withdrawer_interface.rs @@ -7,7 +7,7 @@ pub use i_astria_withdrawer::*; clippy::upper_case_acronyms, clippy::type_complexity, dead_code, - non_camel_case_types + non_camel_case_types, )] pub mod i_astria_withdrawer { #[allow(deprecated)] @@ -17,106 +17,138 @@ pub mod i_astria_withdrawer { functions: ::core::convert::From::from([ ( ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_DENOMINATION"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_DENOMINATION",), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "BASE_CHAIN_ASSET_DENOMINATION", ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_PRECISION"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BASE_CHAIN_ASSET_PRECISION",), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(32usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint32"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "BASE_CHAIN_ASSET_PRECISION", ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::Uint(32usize), + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("uint32"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("BASE_CHAIN_BRIDGE_ADDRESS"), - ::std::vec![::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("BASE_CHAIN_BRIDGE_ADDRESS",), - inputs: ::std::vec![], - outputs: ::std::vec![::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), + ::std::vec![ + ::ethers::core::abi::ethabi::Function { + name: ::std::borrow::ToOwned::to_owned( + "BASE_CHAIN_BRIDGE_ADDRESS", ), - },], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - },], + inputs: ::std::vec![], + outputs: ::std::vec![ + ::ethers::core::abi::ethabi::Param { + name: ::std::string::String::new(), + kind: ::ethers::core::abi::ethabi::ParamType::String, + internal_type: ::core::option::Option::Some( + ::std::borrow::ToOwned::to_owned("string"), + ), + }, + ], + constant: ::core::option::Option::None, + state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, + }, + ], ), ]), events: ::core::convert::From::from([ ( ::std::borrow::ToOwned::to_owned("Ics20Withdrawal"), - ::std::vec![::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Ics20Withdrawal"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("sender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("memo"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ], - anonymous: false, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Event { + name: ::std::borrow::ToOwned::to_owned("Ics20Withdrawal"), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("sender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned( + "destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + indexed: false, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("memo"), + kind: ::ethers::core::abi::ethabi::ParamType::String, + indexed: false, + }, + ], + anonymous: false, + }, + ], ), ( ::std::borrow::ToOwned::to_owned("SequencerWithdrawal"), - ::std::vec![::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("SequencerWithdrawal",), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("sender"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(256usize,), - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("destinationChainAddress",), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ], - anonymous: false, - },], + ::std::vec![ + ::ethers::core::abi::ethabi::Event { + name: ::std::borrow::ToOwned::to_owned( + "SequencerWithdrawal", + ), + inputs: ::std::vec![ + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("sender"), + kind: ::ethers::core::abi::ethabi::ParamType::Address, + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned("amount"), + kind: ::ethers::core::abi::ethabi::ParamType::Uint( + 256usize, + ), + indexed: true, + }, + ::ethers::core::abi::ethabi::EventParam { + name: ::std::borrow::ToOwned::to_owned( + "destinationChainAddress", + ), + kind: ::ethers::core::abi::ethabi::ParamType::String, + indexed: false, + }, + ], + anonymous: false, + }, + ], ), ]), errors: ::std::collections::BTreeMap::new(), @@ -124,9 +156,10 @@ pub mod i_astria_withdrawer { fallback: false, } } - /// The parsed JSON ABI of the contract. - pub static IASTRIAWITHDRAWER_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = - ::ethers::contract::Lazy::new(__abi); + ///The parsed JSON ABI of the contract. + pub static IASTRIAWITHDRAWER_ABI: ::ethers::contract::Lazy< + ::ethers::core::abi::Abi, + > = ::ethers::contract::Lazy::new(__abi); pub struct IAstriaWithdrawer(::ethers::contract::Contract); impl ::core::clone::Clone for IAstriaWithdrawer { fn clone(&self) -> Self { @@ -135,7 +168,6 @@ pub mod i_astria_withdrawer { } impl ::core::ops::Deref for IAstriaWithdrawer { type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { &self.0 } @@ -159,14 +191,15 @@ pub mod i_astria_withdrawer { address: T, client: ::std::sync::Arc, ) -> Self { - Self(::ethers::contract::Contract::new( - address.into(), - IASTRIAWITHDRAWER_ABI.clone(), - client, - )) + Self( + ::ethers::contract::Contract::new( + address.into(), + IASTRIAWITHDRAWER_ABI.clone(), + client, + ), + ) } - - /// Calls the contract's `BASE_CHAIN_ASSET_DENOMINATION` (0xb6476c7e) function + ///Calls the contract's `BASE_CHAIN_ASSET_DENOMINATION` (0xb6476c7e) function pub fn base_chain_asset_denomination( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -174,8 +207,7 @@ pub mod i_astria_withdrawer { .method_hash([182, 71, 108, 126], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `BASE_CHAIN_ASSET_PRECISION` (0x7eb6dec7) function + ///Calls the contract's `BASE_CHAIN_ASSET_PRECISION` (0x7eb6dec7) function pub fn base_chain_asset_precision( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -183,8 +215,7 @@ pub mod i_astria_withdrawer { .method_hash([126, 182, 222, 199], ()) .expect("method not found (this should never happen)") } - - /// Calls the contract's `BASE_CHAIN_BRIDGE_ADDRESS` (0xdb97dc98) function + ///Calls the contract's `BASE_CHAIN_BRIDGE_ADDRESS` (0xdb97dc98) function pub fn base_chain_bridge_address( &self, ) -> ::ethers::contract::builders::ContractCall { @@ -192,35 +223,39 @@ pub mod i_astria_withdrawer { .method_hash([219, 151, 220, 152], ()) .expect("method not found (this should never happen)") } - - /// Gets the contract's `Ics20Withdrawal` event + ///Gets the contract's `Ics20Withdrawal` event pub fn ics_20_withdrawal_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, Ics20WithdrawalFilter> - { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + Ics20WithdrawalFilter, + > { self.0.event() } - - /// Gets the contract's `SequencerWithdrawal` event + ///Gets the contract's `SequencerWithdrawal` event pub fn sequencer_withdrawal_filter( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, SequencerWithdrawalFilter> - { + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + SequencerWithdrawalFilter, + > { self.0.event() } - /// Returns an `Event` builder for all the events of this contract. pub fn events( &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, IAstriaWithdrawerEvents> - { - self.0 - .event_with_filter(::core::default::Default::default()) + ) -> ::ethers::contract::builders::Event< + ::std::sync::Arc, + M, + IAstriaWithdrawerEvents, + > { + self.0.event_with_filter(::core::default::Default::default()) } } impl From<::ethers::contract::Contract> - for IAstriaWithdrawer - { + for IAstriaWithdrawer { fn from(contract: ::ethers::contract::Contract) -> Self { Self::new(contract.address(), contract.client()) } @@ -233,7 +268,7 @@ pub mod i_astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethevent( name = "Ics20Withdrawal", @@ -255,7 +290,7 @@ pub mod i_astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethevent( name = "SequencerWithdrawal", @@ -268,7 +303,7 @@ pub mod i_astria_withdrawer { pub amount: ::ethers::core::types::U256, pub destination_chain_address: ::std::string::String, } - /// Container type for all of the contract's events + ///Container type for all of the contract's events #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] pub enum IAstriaWithdrawerEvents { Ics20WithdrawalFilter(Ics20WithdrawalFilter), @@ -290,8 +325,12 @@ pub mod i_astria_withdrawer { impl ::core::fmt::Display for IAstriaWithdrawerEvents { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Self::Ics20WithdrawalFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::SequencerWithdrawalFilter(element) => ::core::fmt::Display::fmt(element, f), + Self::Ics20WithdrawalFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::SequencerWithdrawalFilter(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } @@ -305,8 +344,7 @@ pub mod i_astria_withdrawer { Self::SequencerWithdrawalFilter(value) } } - /// Container type for all input parameters for the `BASE_CHAIN_ASSET_DENOMINATION` function - /// with signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` + ///Container type for all input parameters for the `BASE_CHAIN_ASSET_DENOMINATION` function with signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` #[derive( Clone, ::ethers::contract::EthCall, @@ -315,15 +353,14 @@ pub mod i_astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] #[ethcall( name = "BASE_CHAIN_ASSET_DENOMINATION", abi = "BASE_CHAIN_ASSET_DENOMINATION()" )] pub struct BaseChainAssetDenominationCall; - /// Container type for all input parameters for the `BASE_CHAIN_ASSET_PRECISION` function with - /// signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` + ///Container type for all input parameters for the `BASE_CHAIN_ASSET_PRECISION` function with signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` #[derive( Clone, ::ethers::contract::EthCall, @@ -332,15 +369,11 @@ pub mod i_astria_withdrawer { Debug, PartialEq, Eq, - Hash, - )] - #[ethcall( - name = "BASE_CHAIN_ASSET_PRECISION", - abi = "BASE_CHAIN_ASSET_PRECISION()" + Hash )] + #[ethcall(name = "BASE_CHAIN_ASSET_PRECISION", abi = "BASE_CHAIN_ASSET_PRECISION()")] pub struct BaseChainAssetPrecisionCall; - /// Container type for all input parameters for the `BASE_CHAIN_BRIDGE_ADDRESS` function with - /// signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` + ///Container type for all input parameters for the `BASE_CHAIN_BRIDGE_ADDRESS` function with signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` #[derive( Clone, ::ethers::contract::EthCall, @@ -349,14 +382,11 @@ pub mod i_astria_withdrawer { Debug, PartialEq, Eq, - Hash, - )] - #[ethcall( - name = "BASE_CHAIN_BRIDGE_ADDRESS", - abi = "BASE_CHAIN_BRIDGE_ADDRESS()" + Hash )] + #[ethcall(name = "BASE_CHAIN_BRIDGE_ADDRESS", abi = "BASE_CHAIN_BRIDGE_ADDRESS()")] pub struct BaseChainBridgeAddressCall; - /// Container type for all of the contract's call + ///Container type for all of the contract's call #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] pub enum IAstriaWithdrawerCalls { BaseChainAssetDenomination(BaseChainAssetDenominationCall), @@ -368,19 +398,19 @@ pub mod i_astria_withdrawer { data: impl AsRef<[u8]>, ) -> ::core::result::Result { let data = data.as_ref(); - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BaseChainAssetDenomination(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BaseChainAssetPrecision(decoded)); } - if let Ok(decoded) = - ::decode(data) - { + if let Ok(decoded) = ::decode( + data, + ) { return Ok(Self::BaseChainBridgeAddress(decoded)); } Err(::ethers::core::abi::Error::InvalidData.into()) @@ -404,13 +434,20 @@ pub mod i_astria_withdrawer { impl ::core::fmt::Display for IAstriaWithdrawerCalls { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { match self { - Self::BaseChainAssetDenomination(element) => ::core::fmt::Display::fmt(element, f), - Self::BaseChainAssetPrecision(element) => ::core::fmt::Display::fmt(element, f), - Self::BaseChainBridgeAddress(element) => ::core::fmt::Display::fmt(element, f), + Self::BaseChainAssetDenomination(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::BaseChainAssetPrecision(element) => { + ::core::fmt::Display::fmt(element, f) + } + Self::BaseChainBridgeAddress(element) => { + ::core::fmt::Display::fmt(element, f) + } } } } - impl ::core::convert::From for IAstriaWithdrawerCalls { + impl ::core::convert::From + for IAstriaWithdrawerCalls { fn from(value: BaseChainAssetDenominationCall) -> Self { Self::BaseChainAssetDenomination(value) } @@ -425,8 +462,7 @@ pub mod i_astria_withdrawer { Self::BaseChainBridgeAddress(value) } } - /// Container type for all return fields from the `BASE_CHAIN_ASSET_DENOMINATION` function with - /// signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` + ///Container type for all return fields from the `BASE_CHAIN_ASSET_DENOMINATION` function with signature `BASE_CHAIN_ASSET_DENOMINATION()` and selector `0xb6476c7e` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -435,11 +471,10 @@ pub mod i_astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BaseChainAssetDenominationReturn(pub ::std::string::String); - /// Container type for all return fields from the `BASE_CHAIN_ASSET_PRECISION` function with - /// signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` + ///Container type for all return fields from the `BASE_CHAIN_ASSET_PRECISION` function with signature `BASE_CHAIN_ASSET_PRECISION()` and selector `0x7eb6dec7` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -448,11 +483,10 @@ pub mod i_astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BaseChainAssetPrecisionReturn(pub u32); - /// Container type for all return fields from the `BASE_CHAIN_BRIDGE_ADDRESS` function with - /// signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` + ///Container type for all return fields from the `BASE_CHAIN_BRIDGE_ADDRESS` function with signature `BASE_CHAIN_BRIDGE_ADDRESS()` and selector `0xdb97dc98` #[derive( Clone, ::ethers::contract::EthAbiType, @@ -461,7 +495,7 @@ pub mod i_astria_withdrawer { Debug, PartialEq, Eq, - Hash, + Hash )] pub struct BaseChainBridgeAddressReturn(pub ::std::string::String); } diff --git a/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/mod.rs b/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/mod.rs index afb6d97cc0..7d10cc52c6 100644 --- a/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/mod.rs +++ b/crates/astria-bridge-withdrawer/src/withdrawer/ethereum/mod.rs @@ -1,6 +1,7 @@ pub(crate) mod convert; pub(crate) mod watcher; +#[rustfmt::skip] mod generated; pub(crate) use generated::*;