diff --git a/backend/src/apis/round.rs b/backend/src/apis/round.rs index 30c8141b..67aabb69 100644 --- a/backend/src/apis/round.rs +++ b/backend/src/apis/round.rs @@ -167,16 +167,7 @@ where let mut vec_f_poly = f_poly.to_vec(); best_fft(&mut vec_f_poly, omega, f_poly.len().trailing_zeros()); - // Summing all f_poly values - let mut total_balance = Fp::zero(); - vec_f_poly.iter().for_each(|x| total_balance += x); - - let total_balance_from_sum = vec_f_poly.iter().sum(); - assert_eq!( - total_balance, total_balance_from_sum, - "Sum of f_poly values is not equal to the total balance" - ); - + let total_balance: Fp = vec_f_poly.iter().sum(); let z = total_balance * Fp::from(f_poly.len() as u64).invert().unwrap(); let kzg_proof = create_naive_kzg_proof::>( diff --git a/backend/src/contracts/mock/mock_erc20.rs b/backend/src/contracts/mock/mock_erc20.rs deleted file mode 100644 index 84a69eca..00000000 --- a/backend/src/contracts/mock/mock_erc20.rs +++ /dev/null @@ -1,7169 +0,0 @@ -pub use mock_erc20::*; -/// This module was auto-generated with ethers-rs Abigen. -/// More information at: -#[allow( - clippy::enum_variant_names, - clippy::too_many_arguments, - clippy::upper_case_acronyms, - clippy::type_complexity, - dead_code, - non_camel_case_types -)] -pub mod mock_erc20 { - #[rustfmt::skip] - const __ABI: &str = "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\",\"outputs\":[]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"Approval\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\",\"components\":[],\"indexed\":true}],\"type\":\"event\",\"name\":\"OwnershipTransferred\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\",\"components\":[],\"indexed\":true},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\",\"components\":[],\"indexed\":false}],\"type\":\"event\",\"name\":\"Transfer\",\"outputs\":[],\"anonymous\":false},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"mint\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"renounceOwnership\",\"outputs\":[]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\",\"components\":[]}]},{\"inputs\":[],\"stateMutability\":\"view\",\"type\":\"function\",\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\",\"components\":[]},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\",\"components\":[]}]},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\",\"components\":[]}],\"stateMutability\":\"nonpayable\",\"type\":\"function\",\"name\":\"transferOwnership\",\"outputs\":[]}]"; - ///The parsed JSON ABI of the contract. - pub static MOCKERC20_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = - ::ethers::contract::Lazy::new(|| { - ::ethers::core::utils::__serde_json::from_str(__ABI).expect("ABI is always valid") - }); - #[rustfmt::skip] - const __BYTECODE: &[u8] = &[ - 96, - 128, - 96, - 64, - 82, - 52, - 128, - 21, - 98, - 0, - 0, - 17, - 87, - 96, - 0, - 128, - 253, - 91, - 80, - 96, - 64, - 81, - 128, - 96, - 64, - 1, - 96, - 64, - 82, - 128, - 96, - 9, - 129, - 82, - 96, - 32, - 1, - 104, - 4, - 214, - 246, - 54, - 180, - 85, - 36, - 51, - 35, - 96, - 188, - 27, - 129, - 82, - 80, - 96, - 64, - 81, - 128, - 96, - 64, - 1, - 96, - 64, - 82, - 128, - 96, - 3, - 129, - 82, - 96, - 32, - 1, - 98, - 77, - 84, - 75, - 96, - 232, - 27, - 129, - 82, - 80, - 129, - 96, - 3, - 144, - 129, - 98, - 0, - 0, - 97, - 145, - 144, - 98, - 0, - 1, - 142, - 86, - 91, - 80, - 96, - 4, - 98, - 0, - 0, - 112, - 130, - 130, - 98, - 0, - 1, - 142, - 86, - 91, - 80, - 80, - 80, - 98, - 0, - 0, - 141, - 98, - 0, - 0, - 135, - 98, - 0, - 0, - 147, - 96, - 32, - 27, - 96, - 32, - 28, - 86, - 91, - 98, - 0, - 0, - 151, - 86, - 91, - 98, - 0, - 2, - 90, - 86, - 91, - 51, - 144, - 86, - 91, - 96, - 5, - 128, - 84, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 129, - 22, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 25, - 131, - 22, - 129, - 23, - 144, - 147, - 85, - 96, - 64, - 81, - 145, - 22, - 145, - 144, - 130, - 144, - 127, - 139, - 224, - 7, - 156, - 83, - 22, - 89, - 20, - 19, - 68, - 205, - 31, - 208, - 164, - 242, - 132, - 25, - 73, - 127, - 151, - 34, - 163, - 218, - 175, - 227, - 180, - 24, - 111, - 107, - 100, - 87, - 224, - 144, - 96, - 0, - 144, - 163, - 80, - 80, - 86, - 91, - 99, - 78, - 72, - 123, - 113, - 96, - 224, - 27, - 96, - 0, - 82, - 96, - 65, - 96, - 4, - 82, - 96, - 36, - 96, - 0, - 253, - 91, - 96, - 1, - 129, - 129, - 28, - 144, - 130, - 22, - 128, - 98, - 0, - 1, - 20, - 87, - 96, - 127, - 130, - 22, - 145, - 80, - 91, - 96, - 32, - 130, - 16, - 129, - 3, - 98, - 0, - 1, - 53, - 87, - 99, - 78, - 72, - 123, - 113, - 96, - 224, - 27, - 96, - 0, - 82, - 96, - 34, - 96, - 4, - 82, - 96, - 36, - 96, - 0, - 253, - 91, - 80, - 145, - 144, - 80, - 86, - 91, - 96, - 31, - 130, - 17, - 21, - 98, - 0, - 1, - 137, - 87, - 96, - 0, - 129, - 129, - 82, - 96, - 32, - 129, - 32, - 96, - 31, - 133, - 1, - 96, - 5, - 28, - 129, - 1, - 96, - 32, - 134, - 16, - 21, - 98, - 0, - 1, - 100, - 87, - 80, - 128, - 91, - 96, - 31, - 133, - 1, - 96, - 5, - 28, - 130, - 1, - 145, - 80, - 91, - 129, - 129, - 16, - 21, - 98, - 0, - 1, - 133, - 87, - 130, - 129, - 85, - 96, - 1, - 1, - 98, - 0, - 1, - 112, - 86, - 91, - 80, - 80, - 80, - 91, - 80, - 80, - 80, - 86, - 91, - 129, - 81, - 96, - 1, - 96, - 1, - 96, - 64, - 27, - 3, - 129, - 17, - 21, - 98, - 0, - 1, - 170, - 87, - 98, - 0, - 1, - 170, - 98, - 0, - 0, - 233, - 86, - 91, - 98, - 0, - 1, - 194, - 129, - 98, - 0, - 1, - 187, - 132, - 84, - 98, - 0, - 0, - 255, - 86, - 91, - 132, - 98, - 0, - 1, - 59, - 86, - 91, - 96, - 32, - 128, - 96, - 31, - 131, - 17, - 96, - 1, - 129, - 20, - 98, - 0, - 1, - 250, - 87, - 96, - 0, - 132, - 21, - 98, - 0, - 1, - 225, - 87, - 80, - 133, - 131, - 1, - 81, - 91, - 96, - 0, - 25, - 96, - 3, - 134, - 144, - 27, - 28, - 25, - 22, - 96, - 1, - 133, - 144, - 27, - 23, - 133, - 85, - 98, - 0, - 1, - 133, - 86, - 91, - 96, - 0, - 133, - 129, - 82, - 96, - 32, - 129, - 32, - 96, - 31, - 25, - 134, - 22, - 145, - 91, - 130, - 129, - 16, - 21, - 98, - 0, - 2, - 43, - 87, - 136, - 134, - 1, - 81, - 130, - 85, - 148, - 132, - 1, - 148, - 96, - 1, - 144, - 145, - 1, - 144, - 132, - 1, - 98, - 0, - 2, - 10, - 86, - 91, - 80, - 133, - 130, - 16, - 21, - 98, - 0, - 2, - 74, - 87, - 135, - 133, - 1, - 81, - 96, - 0, - 25, - 96, - 3, - 136, - 144, - 27, - 96, - 248, - 22, - 28, - 25, - 22, - 129, - 85, - 91, - 80, - 80, - 80, - 80, - 80, - 96, - 1, - 144, - 129, - 27, - 1, - 144, - 85, - 80, - 86, - 91, - 97, - 10, - 247, - 128, - 98, - 0, - 2, - 106, - 96, - 0, - 57, - 96, - 0, - 243, - 254, - 96, - 128, - 96, - 64, - 82, - 52, - 128, - 21, - 97, - 0, - 16, - 87, - 96, - 0, - 128, - 253, - 91, - 80, - 96, - 4, - 54, - 16, - 97, - 0, - 245, - 87, - 96, - 0, - 53, - 96, - 224, - 28, - 128, - 99, - 112, - 160, - 130, - 49, - 17, - 97, - 0, - 151, - 87, - 128, - 99, - 164, - 87, - 194, - 215, - 17, - 97, - 0, - 102, - 87, - 128, - 99, - 164, - 87, - 194, - 215, - 20, - 97, - 1, - 235, - 87, - 128, - 99, - 169, - 5, - 156, - 187, - 20, - 97, - 1, - 254, - 87, - 128, - 99, - 221, - 98, - 237, - 62, - 20, - 97, - 2, - 17, - 87, - 128, - 99, - 242, - 253, - 227, - 139, - 20, - 97, - 2, - 36, - 87, - 96, - 0, - 128, - 253, - 91, - 128, - 99, - 112, - 160, - 130, - 49, - 20, - 97, - 1, - 151, - 87, - 128, - 99, - 113, - 80, - 24, - 166, - 20, - 97, - 1, - 192, - 87, - 128, - 99, - 141, - 165, - 203, - 91, - 20, - 97, - 1, - 200, - 87, - 128, - 99, - 149, - 216, - 155, - 65, - 20, - 97, - 1, - 227, - 87, - 96, - 0, - 128, - 253, - 91, - 128, - 99, - 35, - 184, - 114, - 221, - 17, - 97, - 0, - 211, - 87, - 128, - 99, - 35, - 184, - 114, - 221, - 20, - 97, - 1, - 77, - 87, - 128, - 99, - 49, - 60, - 229, - 103, - 20, - 97, - 1, - 96, - 87, - 128, - 99, - 57, - 80, - 147, - 81, - 20, - 97, - 1, - 111, - 87, - 128, - 99, - 64, - 193, - 15, - 25, - 20, - 97, - 1, - 130, - 87, - 96, - 0, - 128, - 253, - 91, - 128, - 99, - 6, - 253, - 222, - 3, - 20, - 97, - 0, - 250, - 87, - 128, - 99, - 9, - 94, - 167, - 179, - 20, - 97, - 1, - 24, - 87, - 128, - 99, - 24, - 22, - 13, - 221, - 20, - 97, - 1, - 59, - 87, - 91, - 96, - 0, - 128, - 253, - 91, - 97, - 1, - 2, - 97, - 2, - 55, - 86, - 91, - 96, - 64, - 81, - 97, - 1, - 15, - 145, - 144, - 97, - 9, - 65, - 86, - 91, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 243, - 91, - 97, - 1, - 43, - 97, - 1, - 38, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 2, - 201, - 86, - 91, - 96, - 64, - 81, - 144, - 21, - 21, - 129, - 82, - 96, - 32, - 1, - 97, - 1, - 15, - 86, - 91, - 96, - 2, - 84, - 91, - 96, - 64, - 81, - 144, - 129, - 82, - 96, - 32, - 1, - 97, - 1, - 15, - 86, - 91, - 97, - 1, - 43, - 97, - 1, - 91, - 54, - 96, - 4, - 97, - 9, - 213, - 86, - 91, - 97, - 2, - 227, - 86, - 91, - 96, - 64, - 81, - 96, - 18, - 129, - 82, - 96, - 32, - 1, - 97, - 1, - 15, - 86, - 91, - 97, - 1, - 43, - 97, - 1, - 125, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 3, - 7, - 86, - 91, - 97, - 1, - 149, - 97, - 1, - 144, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 3, - 41, - 86, - 91, - 0, - 91, - 97, - 1, - 63, - 97, - 1, - 165, - 54, - 96, - 4, - 97, - 10, - 17, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 22, - 96, - 0, - 144, - 129, - 82, - 96, - 32, - 129, - 144, - 82, - 96, - 64, - 144, - 32, - 84, - 144, - 86, - 91, - 97, - 1, - 149, - 97, - 3, - 63, - 86, - 91, - 96, - 5, - 84, - 96, - 64, - 81, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 144, - 145, - 22, - 129, - 82, - 96, - 32, - 1, - 97, - 1, - 15, - 86, - 91, - 97, - 1, - 2, - 97, - 3, - 83, - 86, - 91, - 97, - 1, - 43, - 97, - 1, - 249, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 3, - 98, - 86, - 91, - 97, - 1, - 43, - 97, - 2, - 12, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 3, - 226, - 86, - 91, - 97, - 1, - 63, - 97, - 2, - 31, - 54, - 96, - 4, - 97, - 10, - 51, - 86, - 91, - 97, - 3, - 240, - 86, - 91, - 97, - 1, - 149, - 97, - 2, - 50, - 54, - 96, - 4, - 97, - 10, - 17, - 86, - 91, - 97, - 4, - 27, - 86, - 91, - 96, - 96, - 96, - 3, - 128, - 84, - 97, - 2, - 70, - 144, - 97, - 10, - 102, - 86, - 91, - 128, - 96, - 31, - 1, - 96, - 32, - 128, - 145, - 4, - 2, - 96, - 32, - 1, - 96, - 64, - 81, - 144, - 129, - 1, - 96, - 64, - 82, - 128, - 146, - 145, - 144, - 129, - 129, - 82, - 96, - 32, - 1, - 130, - 128, - 84, - 97, - 2, - 114, - 144, - 97, - 10, - 102, - 86, - 91, - 128, - 21, - 97, - 2, - 191, - 87, - 128, - 96, - 31, - 16, - 97, - 2, - 148, - 87, - 97, - 1, - 0, - 128, - 131, - 84, - 4, - 2, - 131, - 82, - 145, - 96, - 32, - 1, - 145, - 97, - 2, - 191, - 86, - 91, - 130, - 1, - 145, - 144, - 96, - 0, - 82, - 96, - 32, - 96, - 0, - 32, - 144, - 91, - 129, - 84, - 129, - 82, - 144, - 96, - 1, - 1, - 144, - 96, - 32, - 1, - 128, - 131, - 17, - 97, - 2, - 162, - 87, - 130, - 144, - 3, - 96, - 31, - 22, - 130, - 1, - 145, - 91, - 80, - 80, - 80, - 80, - 80, - 144, - 80, - 144, - 86, - 91, - 96, - 0, - 51, - 97, - 2, - 215, - 129, - 133, - 133, - 97, - 4, - 148, - 86, - 91, - 96, - 1, - 145, - 80, - 80, - 91, - 146, - 145, - 80, - 80, - 86, - 91, - 96, - 0, - 51, - 97, - 2, - 241, - 133, - 130, - 133, - 97, - 5, - 184, - 86, - 91, - 97, - 2, - 252, - 133, - 133, - 133, - 97, - 6, - 50, - 86, - 91, - 80, - 96, - 1, - 148, - 147, - 80, - 80, - 80, - 80, - 86, - 91, - 96, - 0, - 51, - 97, - 2, - 215, - 129, - 133, - 133, - 97, - 3, - 26, - 131, - 131, - 97, - 3, - 240, - 86, - 91, - 97, - 3, - 36, - 145, - 144, - 97, - 10, - 160, - 86, - 91, - 97, - 4, - 148, - 86, - 91, - 97, - 3, - 49, - 97, - 7, - 214, - 86, - 91, - 97, - 3, - 59, - 130, - 130, - 97, - 8, - 48, - 86, - 91, - 80, - 80, - 86, - 91, - 97, - 3, - 71, - 97, - 7, - 214, - 86, - 91, - 97, - 3, - 81, - 96, - 0, - 97, - 8, - 239, - 86, - 91, - 86, - 91, - 96, - 96, - 96, - 4, - 128, - 84, - 97, - 2, - 70, - 144, - 97, - 10, - 102, - 86, - 91, - 96, - 0, - 51, - 129, - 97, - 3, - 112, - 130, - 134, - 97, - 3, - 240, - 86, - 91, - 144, - 80, - 131, - 129, - 16, - 21, - 97, - 3, - 213, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 37, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 100, - 101, - 99, - 114, - 101, - 97, - 115, - 101, - 100, - 32, - 97, - 108, - 108, - 111, - 119, - 97, - 110, - 99, - 101, - 32, - 98, - 101, - 108, - 111, - 119, - 96, - 68, - 130, - 1, - 82, - 100, - 32, - 122, - 101, - 114, - 111, - 96, - 216, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 91, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 253, - 91, - 97, - 2, - 252, - 130, - 134, - 134, - 132, - 3, - 97, - 4, - 148, - 86, - 91, - 96, - 0, - 51, - 97, - 2, - 215, - 129, - 133, - 133, - 97, - 6, - 50, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 145, - 130, - 22, - 96, - 0, - 144, - 129, - 82, - 96, - 1, - 96, - 32, - 144, - 129, - 82, - 96, - 64, - 128, - 131, - 32, - 147, - 144, - 148, - 22, - 130, - 82, - 145, - 144, - 145, - 82, - 32, - 84, - 144, - 86, - 91, - 97, - 4, - 35, - 97, - 7, - 214, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 129, - 22, - 97, - 4, - 136, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 38, - 96, - 36, - 130, - 1, - 82, - 127, - 79, - 119, - 110, - 97, - 98, - 108, - 101, - 58, - 32, - 110, - 101, - 119, - 32, - 111, - 119, - 110, - 101, - 114, - 32, - 105, - 115, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 96, - 68, - 130, - 1, - 82, - 101, - 100, - 100, - 114, - 101, - 115, - 115, - 96, - 208, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 97, - 4, - 145, - 129, - 97, - 8, - 239, - 86, - 91, - 80, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 22, - 97, - 4, - 246, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 36, - 128, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 97, - 112, - 112, - 114, - 111, - 118, - 101, - 32, - 102, - 114, - 111, - 109, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 100, - 96, - 68, - 130, - 1, - 82, - 99, - 114, - 101, - 115, - 115, - 96, - 224, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 130, - 22, - 97, - 5, - 87, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 34, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 97, - 112, - 112, - 114, - 111, - 118, - 101, - 32, - 116, - 111, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 100, - 114, - 101, - 96, - 68, - 130, - 1, - 82, - 97, - 115, - 115, - 96, - 240, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 129, - 22, - 96, - 0, - 129, - 129, - 82, - 96, - 1, - 96, - 32, - 144, - 129, - 82, - 96, - 64, - 128, - 131, - 32, - 148, - 135, - 22, - 128, - 132, - 82, - 148, - 130, - 82, - 145, - 130, - 144, - 32, - 133, - 144, - 85, - 144, - 81, - 132, - 129, - 82, - 127, - 140, - 91, - 225, - 229, - 235, - 236, - 125, - 91, - 209, - 79, - 113, - 66, - 125, - 30, - 132, - 243, - 221, - 3, - 20, - 192, - 247, - 178, - 41, - 30, - 91, - 32, - 10, - 200, - 199, - 195, - 185, - 37, - 145, - 1, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 163, - 80, - 80, - 80, - 86, - 91, - 96, - 0, - 97, - 5, - 196, - 132, - 132, - 97, - 3, - 240, - 86, - 91, - 144, - 80, - 96, - 0, - 25, - 129, - 20, - 97, - 6, - 44, - 87, - 129, - 129, - 16, - 21, - 97, - 6, - 31, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 29, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 105, - 110, - 115, - 117, - 102, - 102, - 105, - 99, - 105, - 101, - 110, - 116, - 32, - 97, - 108, - 108, - 111, - 119, - 97, - 110, - 99, - 101, - 0, - 0, - 0, - 96, - 68, - 130, - 1, - 82, - 96, - 100, - 1, - 97, - 3, - 204, - 86, - 91, - 97, - 6, - 44, - 132, - 132, - 132, - 132, - 3, - 97, - 4, - 148, - 86, - 91, - 80, - 80, - 80, - 80, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 22, - 97, - 6, - 150, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 37, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 116, - 114, - 97, - 110, - 115, - 102, - 101, - 114, - 32, - 102, - 114, - 111, - 109, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 96, - 68, - 130, - 1, - 82, - 100, - 100, - 114, - 101, - 115, - 115, - 96, - 216, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 130, - 22, - 97, - 6, - 248, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 35, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 116, - 114, - 97, - 110, - 115, - 102, - 101, - 114, - 32, - 116, - 111, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 100, - 114, - 96, - 68, - 130, - 1, - 82, - 98, - 101, - 115, - 115, - 96, - 232, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 22, - 96, - 0, - 144, - 129, - 82, - 96, - 32, - 129, - 144, - 82, - 96, - 64, - 144, - 32, - 84, - 129, - 129, - 16, - 21, - 97, - 7, - 112, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 38, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 116, - 114, - 97, - 110, - 115, - 102, - 101, - 114, - 32, - 97, - 109, - 111, - 117, - 110, - 116, - 32, - 101, - 120, - 99, - 101, - 101, - 100, - 115, - 32, - 98, - 96, - 68, - 130, - 1, - 82, - 101, - 97, - 108, - 97, - 110, - 99, - 101, - 96, - 208, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 132, - 129, - 22, - 96, - 0, - 129, - 129, - 82, - 96, - 32, - 129, - 129, - 82, - 96, - 64, - 128, - 131, - 32, - 135, - 135, - 3, - 144, - 85, - 147, - 135, - 22, - 128, - 131, - 82, - 145, - 132, - 144, - 32, - 128, - 84, - 135, - 1, - 144, - 85, - 146, - 81, - 133, - 129, - 82, - 144, - 146, - 127, - 221, - 242, - 82, - 173, - 27, - 226, - 200, - 155, - 105, - 194, - 176, - 104, - 252, - 55, - 141, - 170, - 149, - 43, - 167, - 241, - 99, - 196, - 161, - 22, - 40, - 245, - 90, - 77, - 245, - 35, - 179, - 239, - 145, - 1, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 163, - 97, - 6, - 44, - 86, - 91, - 96, - 5, - 84, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 22, - 51, - 20, - 97, - 3, - 81, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 129, - 144, - 82, - 96, - 36, - 130, - 1, - 82, - 127, - 79, - 119, - 110, - 97, - 98, - 108, - 101, - 58, - 32, - 99, - 97, - 108, - 108, - 101, - 114, - 32, - 105, - 115, - 32, - 110, - 111, - 116, - 32, - 116, - 104, - 101, - 32, - 111, - 119, - 110, - 101, - 114, - 96, - 68, - 130, - 1, - 82, - 96, - 100, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 130, - 22, - 97, - 8, - 134, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 31, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 109, - 105, - 110, - 116, - 32, - 116, - 111, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 100, - 114, - 101, - 115, - 115, - 0, - 96, - 68, - 130, - 1, - 82, - 96, - 100, - 1, - 97, - 3, - 204, - 86, - 91, - 128, - 96, - 2, - 96, - 0, - 130, - 130, - 84, - 97, - 8, - 152, - 145, - 144, - 97, - 10, - 160, - 86, - 91, - 144, - 145, - 85, - 80, - 80, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 130, - 22, - 96, - 0, - 129, - 129, - 82, - 96, - 32, - 129, - 129, - 82, - 96, - 64, - 128, - 131, - 32, - 128, - 84, - 134, - 1, - 144, - 85, - 81, - 132, - 129, - 82, - 127, - 221, - 242, - 82, - 173, - 27, - 226, - 200, - 155, - 105, - 194, - 176, - 104, - 252, - 55, - 141, - 170, - 149, - 43, - 167, - 241, - 99, - 196, - 161, - 22, - 40, - 245, - 90, - 77, - 245, - 35, - 179, - 239, - 145, - 1, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 163, - 80, - 80, - 86, - 91, - 96, - 5, - 128, - 84, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 129, - 22, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 25, - 131, - 22, - 129, - 23, - 144, - 147, - 85, - 96, - 64, - 81, - 145, - 22, - 145, - 144, - 130, - 144, - 127, - 139, - 224, - 7, - 156, - 83, - 22, - 89, - 20, - 19, - 68, - 205, - 31, - 208, - 164, - 242, - 132, - 25, - 73, - 127, - 151, - 34, - 163, - 218, - 175, - 227, - 180, - 24, - 111, - 107, - 100, - 87, - 224, - 144, - 96, - 0, - 144, - 163, - 80, - 80, - 86, - 91, - 96, - 0, - 96, - 32, - 128, - 131, - 82, - 131, - 81, - 128, - 130, - 133, - 1, - 82, - 96, - 0, - 91, - 129, - 129, - 16, - 21, - 97, - 9, - 110, - 87, - 133, - 129, - 1, - 131, - 1, - 81, - 133, - 130, - 1, - 96, - 64, - 1, - 82, - 130, - 1, - 97, - 9, - 82, - 86, - 91, - 80, - 96, - 0, - 96, - 64, - 130, - 134, - 1, - 1, - 82, - 96, - 64, - 96, - 31, - 25, - 96, - 31, - 131, - 1, - 22, - 133, - 1, - 1, - 146, - 80, - 80, - 80, - 146, - 145, - 80, - 80, - 86, - 91, - 128, - 53, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 129, - 22, - 129, - 20, - 97, - 9, - 166, - 87, - 96, - 0, - 128, - 253, - 91, - 145, - 144, - 80, - 86, - 91, - 96, - 0, - 128, - 96, - 64, - 131, - 133, - 3, - 18, - 21, - 97, - 9, - 190, - 87, - 96, - 0, - 128, - 253, - 91, - 97, - 9, - 199, - 131, - 97, - 9, - 143, - 86, - 91, - 148, - 96, - 32, - 147, - 144, - 147, - 1, - 53, - 147, - 80, - 80, - 80, - 86, - 91, - 96, - 0, - 128, - 96, - 0, - 96, - 96, - 132, - 134, - 3, - 18, - 21, - 97, - 9, - 234, - 87, - 96, - 0, - 128, - 253, - 91, - 97, - 9, - 243, - 132, - 97, - 9, - 143, - 86, - 91, - 146, - 80, - 97, - 10, - 1, - 96, - 32, - 133, - 1, - 97, - 9, - 143, - 86, - 91, - 145, - 80, - 96, - 64, - 132, - 1, - 53, - 144, - 80, - 146, - 80, - 146, - 80, - 146, - 86, - 91, - 96, - 0, - 96, - 32, - 130, - 132, - 3, - 18, - 21, - 97, - 10, - 35, - 87, - 96, - 0, - 128, - 253, - 91, - 97, - 10, - 44, - 130, - 97, - 9, - 143, - 86, - 91, - 147, - 146, - 80, - 80, - 80, - 86, - 91, - 96, - 0, - 128, - 96, - 64, - 131, - 133, - 3, - 18, - 21, - 97, - 10, - 70, - 87, - 96, - 0, - 128, - 253, - 91, - 97, - 10, - 79, - 131, - 97, - 9, - 143, - 86, - 91, - 145, - 80, - 97, - 10, - 93, - 96, - 32, - 132, - 1, - 97, - 9, - 143, - 86, - 91, - 144, - 80, - 146, - 80, - 146, - 144, - 80, - 86, - 91, - 96, - 1, - 129, - 129, - 28, - 144, - 130, - 22, - 128, - 97, - 10, - 122, - 87, - 96, - 127, - 130, - 22, - 145, - 80, - 91, - 96, - 32, - 130, - 16, - 129, - 3, - 97, - 10, - 154, - 87, - 99, - 78, - 72, - 123, - 113, - 96, - 224, - 27, - 96, - 0, - 82, - 96, - 34, - 96, - 4, - 82, - 96, - 36, - 96, - 0, - 253, - 91, - 80, - 145, - 144, - 80, - 86, - 91, - 128, - 130, - 1, - 128, - 130, - 17, - 21, - 97, - 2, - 221, - 87, - 99, - 78, - 72, - 123, - 113, - 96, - 224, - 27, - 96, - 0, - 82, - 96, - 17, - 96, - 4, - 82, - 96, - 36, - 96, - 0, - 253, - 254, - 162, - 100, - 105, - 112, - 102, - 115, - 88, - 34, - 18, - 32, - 253, - 219, - 133, - 110, - 73, - 92, - 0, - 147, - 166, - 78, - 244, - 255, - 131, - 246, - 4, - 122, - 242, - 74, - 188, - 163, - 116, - 209, - 16, - 33, - 154, - 27, - 110, - 123, - 34, - 163, - 47, - 138, - 100, - 115, - 111, - 108, - 99, - 67, - 0, - 8, - 18, - 0, - 51, - ]; - ///The bytecode of the contract. - pub static MOCKERC20_BYTECODE: ::ethers::core::types::Bytes = - ::ethers::core::types::Bytes::from_static(__BYTECODE); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = &[ - 96, - 128, - 96, - 64, - 82, - 52, - 128, - 21, - 97, - 0, - 16, - 87, - 96, - 0, - 128, - 253, - 91, - 80, - 96, - 4, - 54, - 16, - 97, - 0, - 245, - 87, - 96, - 0, - 53, - 96, - 224, - 28, - 128, - 99, - 112, - 160, - 130, - 49, - 17, - 97, - 0, - 151, - 87, - 128, - 99, - 164, - 87, - 194, - 215, - 17, - 97, - 0, - 102, - 87, - 128, - 99, - 164, - 87, - 194, - 215, - 20, - 97, - 1, - 235, - 87, - 128, - 99, - 169, - 5, - 156, - 187, - 20, - 97, - 1, - 254, - 87, - 128, - 99, - 221, - 98, - 237, - 62, - 20, - 97, - 2, - 17, - 87, - 128, - 99, - 242, - 253, - 227, - 139, - 20, - 97, - 2, - 36, - 87, - 96, - 0, - 128, - 253, - 91, - 128, - 99, - 112, - 160, - 130, - 49, - 20, - 97, - 1, - 151, - 87, - 128, - 99, - 113, - 80, - 24, - 166, - 20, - 97, - 1, - 192, - 87, - 128, - 99, - 141, - 165, - 203, - 91, - 20, - 97, - 1, - 200, - 87, - 128, - 99, - 149, - 216, - 155, - 65, - 20, - 97, - 1, - 227, - 87, - 96, - 0, - 128, - 253, - 91, - 128, - 99, - 35, - 184, - 114, - 221, - 17, - 97, - 0, - 211, - 87, - 128, - 99, - 35, - 184, - 114, - 221, - 20, - 97, - 1, - 77, - 87, - 128, - 99, - 49, - 60, - 229, - 103, - 20, - 97, - 1, - 96, - 87, - 128, - 99, - 57, - 80, - 147, - 81, - 20, - 97, - 1, - 111, - 87, - 128, - 99, - 64, - 193, - 15, - 25, - 20, - 97, - 1, - 130, - 87, - 96, - 0, - 128, - 253, - 91, - 128, - 99, - 6, - 253, - 222, - 3, - 20, - 97, - 0, - 250, - 87, - 128, - 99, - 9, - 94, - 167, - 179, - 20, - 97, - 1, - 24, - 87, - 128, - 99, - 24, - 22, - 13, - 221, - 20, - 97, - 1, - 59, - 87, - 91, - 96, - 0, - 128, - 253, - 91, - 97, - 1, - 2, - 97, - 2, - 55, - 86, - 91, - 96, - 64, - 81, - 97, - 1, - 15, - 145, - 144, - 97, - 9, - 65, - 86, - 91, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 243, - 91, - 97, - 1, - 43, - 97, - 1, - 38, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 2, - 201, - 86, - 91, - 96, - 64, - 81, - 144, - 21, - 21, - 129, - 82, - 96, - 32, - 1, - 97, - 1, - 15, - 86, - 91, - 96, - 2, - 84, - 91, - 96, - 64, - 81, - 144, - 129, - 82, - 96, - 32, - 1, - 97, - 1, - 15, - 86, - 91, - 97, - 1, - 43, - 97, - 1, - 91, - 54, - 96, - 4, - 97, - 9, - 213, - 86, - 91, - 97, - 2, - 227, - 86, - 91, - 96, - 64, - 81, - 96, - 18, - 129, - 82, - 96, - 32, - 1, - 97, - 1, - 15, - 86, - 91, - 97, - 1, - 43, - 97, - 1, - 125, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 3, - 7, - 86, - 91, - 97, - 1, - 149, - 97, - 1, - 144, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 3, - 41, - 86, - 91, - 0, - 91, - 97, - 1, - 63, - 97, - 1, - 165, - 54, - 96, - 4, - 97, - 10, - 17, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 22, - 96, - 0, - 144, - 129, - 82, - 96, - 32, - 129, - 144, - 82, - 96, - 64, - 144, - 32, - 84, - 144, - 86, - 91, - 97, - 1, - 149, - 97, - 3, - 63, - 86, - 91, - 96, - 5, - 84, - 96, - 64, - 81, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 144, - 145, - 22, - 129, - 82, - 96, - 32, - 1, - 97, - 1, - 15, - 86, - 91, - 97, - 1, - 2, - 97, - 3, - 83, - 86, - 91, - 97, - 1, - 43, - 97, - 1, - 249, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 3, - 98, - 86, - 91, - 97, - 1, - 43, - 97, - 2, - 12, - 54, - 96, - 4, - 97, - 9, - 171, - 86, - 91, - 97, - 3, - 226, - 86, - 91, - 97, - 1, - 63, - 97, - 2, - 31, - 54, - 96, - 4, - 97, - 10, - 51, - 86, - 91, - 97, - 3, - 240, - 86, - 91, - 97, - 1, - 149, - 97, - 2, - 50, - 54, - 96, - 4, - 97, - 10, - 17, - 86, - 91, - 97, - 4, - 27, - 86, - 91, - 96, - 96, - 96, - 3, - 128, - 84, - 97, - 2, - 70, - 144, - 97, - 10, - 102, - 86, - 91, - 128, - 96, - 31, - 1, - 96, - 32, - 128, - 145, - 4, - 2, - 96, - 32, - 1, - 96, - 64, - 81, - 144, - 129, - 1, - 96, - 64, - 82, - 128, - 146, - 145, - 144, - 129, - 129, - 82, - 96, - 32, - 1, - 130, - 128, - 84, - 97, - 2, - 114, - 144, - 97, - 10, - 102, - 86, - 91, - 128, - 21, - 97, - 2, - 191, - 87, - 128, - 96, - 31, - 16, - 97, - 2, - 148, - 87, - 97, - 1, - 0, - 128, - 131, - 84, - 4, - 2, - 131, - 82, - 145, - 96, - 32, - 1, - 145, - 97, - 2, - 191, - 86, - 91, - 130, - 1, - 145, - 144, - 96, - 0, - 82, - 96, - 32, - 96, - 0, - 32, - 144, - 91, - 129, - 84, - 129, - 82, - 144, - 96, - 1, - 1, - 144, - 96, - 32, - 1, - 128, - 131, - 17, - 97, - 2, - 162, - 87, - 130, - 144, - 3, - 96, - 31, - 22, - 130, - 1, - 145, - 91, - 80, - 80, - 80, - 80, - 80, - 144, - 80, - 144, - 86, - 91, - 96, - 0, - 51, - 97, - 2, - 215, - 129, - 133, - 133, - 97, - 4, - 148, - 86, - 91, - 96, - 1, - 145, - 80, - 80, - 91, - 146, - 145, - 80, - 80, - 86, - 91, - 96, - 0, - 51, - 97, - 2, - 241, - 133, - 130, - 133, - 97, - 5, - 184, - 86, - 91, - 97, - 2, - 252, - 133, - 133, - 133, - 97, - 6, - 50, - 86, - 91, - 80, - 96, - 1, - 148, - 147, - 80, - 80, - 80, - 80, - 86, - 91, - 96, - 0, - 51, - 97, - 2, - 215, - 129, - 133, - 133, - 97, - 3, - 26, - 131, - 131, - 97, - 3, - 240, - 86, - 91, - 97, - 3, - 36, - 145, - 144, - 97, - 10, - 160, - 86, - 91, - 97, - 4, - 148, - 86, - 91, - 97, - 3, - 49, - 97, - 7, - 214, - 86, - 91, - 97, - 3, - 59, - 130, - 130, - 97, - 8, - 48, - 86, - 91, - 80, - 80, - 86, - 91, - 97, - 3, - 71, - 97, - 7, - 214, - 86, - 91, - 97, - 3, - 81, - 96, - 0, - 97, - 8, - 239, - 86, - 91, - 86, - 91, - 96, - 96, - 96, - 4, - 128, - 84, - 97, - 2, - 70, - 144, - 97, - 10, - 102, - 86, - 91, - 96, - 0, - 51, - 129, - 97, - 3, - 112, - 130, - 134, - 97, - 3, - 240, - 86, - 91, - 144, - 80, - 131, - 129, - 16, - 21, - 97, - 3, - 213, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 37, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 100, - 101, - 99, - 114, - 101, - 97, - 115, - 101, - 100, - 32, - 97, - 108, - 108, - 111, - 119, - 97, - 110, - 99, - 101, - 32, - 98, - 101, - 108, - 111, - 119, - 96, - 68, - 130, - 1, - 82, - 100, - 32, - 122, - 101, - 114, - 111, - 96, - 216, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 91, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 253, - 91, - 97, - 2, - 252, - 130, - 134, - 134, - 132, - 3, - 97, - 4, - 148, - 86, - 91, - 96, - 0, - 51, - 97, - 2, - 215, - 129, - 133, - 133, - 97, - 6, - 50, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 145, - 130, - 22, - 96, - 0, - 144, - 129, - 82, - 96, - 1, - 96, - 32, - 144, - 129, - 82, - 96, - 64, - 128, - 131, - 32, - 147, - 144, - 148, - 22, - 130, - 82, - 145, - 144, - 145, - 82, - 32, - 84, - 144, - 86, - 91, - 97, - 4, - 35, - 97, - 7, - 214, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 129, - 22, - 97, - 4, - 136, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 38, - 96, - 36, - 130, - 1, - 82, - 127, - 79, - 119, - 110, - 97, - 98, - 108, - 101, - 58, - 32, - 110, - 101, - 119, - 32, - 111, - 119, - 110, - 101, - 114, - 32, - 105, - 115, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 96, - 68, - 130, - 1, - 82, - 101, - 100, - 100, - 114, - 101, - 115, - 115, - 96, - 208, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 97, - 4, - 145, - 129, - 97, - 8, - 239, - 86, - 91, - 80, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 22, - 97, - 4, - 246, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 36, - 128, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 97, - 112, - 112, - 114, - 111, - 118, - 101, - 32, - 102, - 114, - 111, - 109, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 100, - 96, - 68, - 130, - 1, - 82, - 99, - 114, - 101, - 115, - 115, - 96, - 224, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 130, - 22, - 97, - 5, - 87, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 34, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 97, - 112, - 112, - 114, - 111, - 118, - 101, - 32, - 116, - 111, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 100, - 114, - 101, - 96, - 68, - 130, - 1, - 82, - 97, - 115, - 115, - 96, - 240, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 129, - 22, - 96, - 0, - 129, - 129, - 82, - 96, - 1, - 96, - 32, - 144, - 129, - 82, - 96, - 64, - 128, - 131, - 32, - 148, - 135, - 22, - 128, - 132, - 82, - 148, - 130, - 82, - 145, - 130, - 144, - 32, - 133, - 144, - 85, - 144, - 81, - 132, - 129, - 82, - 127, - 140, - 91, - 225, - 229, - 235, - 236, - 125, - 91, - 209, - 79, - 113, - 66, - 125, - 30, - 132, - 243, - 221, - 3, - 20, - 192, - 247, - 178, - 41, - 30, - 91, - 32, - 10, - 200, - 199, - 195, - 185, - 37, - 145, - 1, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 163, - 80, - 80, - 80, - 86, - 91, - 96, - 0, - 97, - 5, - 196, - 132, - 132, - 97, - 3, - 240, - 86, - 91, - 144, - 80, - 96, - 0, - 25, - 129, - 20, - 97, - 6, - 44, - 87, - 129, - 129, - 16, - 21, - 97, - 6, - 31, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 29, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 105, - 110, - 115, - 117, - 102, - 102, - 105, - 99, - 105, - 101, - 110, - 116, - 32, - 97, - 108, - 108, - 111, - 119, - 97, - 110, - 99, - 101, - 0, - 0, - 0, - 96, - 68, - 130, - 1, - 82, - 96, - 100, - 1, - 97, - 3, - 204, - 86, - 91, - 97, - 6, - 44, - 132, - 132, - 132, - 132, - 3, - 97, - 4, - 148, - 86, - 91, - 80, - 80, - 80, - 80, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 22, - 97, - 6, - 150, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 37, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 116, - 114, - 97, - 110, - 115, - 102, - 101, - 114, - 32, - 102, - 114, - 111, - 109, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 96, - 68, - 130, - 1, - 82, - 100, - 100, - 114, - 101, - 115, - 115, - 96, - 216, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 130, - 22, - 97, - 6, - 248, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 35, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 116, - 114, - 97, - 110, - 115, - 102, - 101, - 114, - 32, - 116, - 111, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 100, - 114, - 96, - 68, - 130, - 1, - 82, - 98, - 101, - 115, - 115, - 96, - 232, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 22, - 96, - 0, - 144, - 129, - 82, - 96, - 32, - 129, - 144, - 82, - 96, - 64, - 144, - 32, - 84, - 129, - 129, - 16, - 21, - 97, - 7, - 112, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 38, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 116, - 114, - 97, - 110, - 115, - 102, - 101, - 114, - 32, - 97, - 109, - 111, - 117, - 110, - 116, - 32, - 101, - 120, - 99, - 101, - 101, - 100, - 115, - 32, - 98, - 96, - 68, - 130, - 1, - 82, - 101, - 97, - 108, - 97, - 110, - 99, - 101, - 96, - 208, - 27, - 96, - 100, - 130, - 1, - 82, - 96, - 132, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 132, - 129, - 22, - 96, - 0, - 129, - 129, - 82, - 96, - 32, - 129, - 129, - 82, - 96, - 64, - 128, - 131, - 32, - 135, - 135, - 3, - 144, - 85, - 147, - 135, - 22, - 128, - 131, - 82, - 145, - 132, - 144, - 32, - 128, - 84, - 135, - 1, - 144, - 85, - 146, - 81, - 133, - 129, - 82, - 144, - 146, - 127, - 221, - 242, - 82, - 173, - 27, - 226, - 200, - 155, - 105, - 194, - 176, - 104, - 252, - 55, - 141, - 170, - 149, - 43, - 167, - 241, - 99, - 196, - 161, - 22, - 40, - 245, - 90, - 77, - 245, - 35, - 179, - 239, - 145, - 1, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 163, - 97, - 6, - 44, - 86, - 91, - 96, - 5, - 84, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 22, - 51, - 20, - 97, - 3, - 81, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 129, - 144, - 82, - 96, - 36, - 130, - 1, - 82, - 127, - 79, - 119, - 110, - 97, - 98, - 108, - 101, - 58, - 32, - 99, - 97, - 108, - 108, - 101, - 114, - 32, - 105, - 115, - 32, - 110, - 111, - 116, - 32, - 116, - 104, - 101, - 32, - 111, - 119, - 110, - 101, - 114, - 96, - 68, - 130, - 1, - 82, - 96, - 100, - 1, - 97, - 3, - 204, - 86, - 91, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 130, - 22, - 97, - 8, - 134, - 87, - 96, - 64, - 81, - 98, - 70, - 27, - 205, - 96, - 229, - 27, - 129, - 82, - 96, - 32, - 96, - 4, - 130, - 1, - 82, - 96, - 31, - 96, - 36, - 130, - 1, - 82, - 127, - 69, - 82, - 67, - 50, - 48, - 58, - 32, - 109, - 105, - 110, - 116, - 32, - 116, - 111, - 32, - 116, - 104, - 101, - 32, - 122, - 101, - 114, - 111, - 32, - 97, - 100, - 100, - 114, - 101, - 115, - 115, - 0, - 96, - 68, - 130, - 1, - 82, - 96, - 100, - 1, - 97, - 3, - 204, - 86, - 91, - 128, - 96, - 2, - 96, - 0, - 130, - 130, - 84, - 97, - 8, - 152, - 145, - 144, - 97, - 10, - 160, - 86, - 91, - 144, - 145, - 85, - 80, - 80, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 130, - 22, - 96, - 0, - 129, - 129, - 82, - 96, - 32, - 129, - 129, - 82, - 96, - 64, - 128, - 131, - 32, - 128, - 84, - 134, - 1, - 144, - 85, - 81, - 132, - 129, - 82, - 127, - 221, - 242, - 82, - 173, - 27, - 226, - 200, - 155, - 105, - 194, - 176, - 104, - 252, - 55, - 141, - 170, - 149, - 43, - 167, - 241, - 99, - 196, - 161, - 22, - 40, - 245, - 90, - 77, - 245, - 35, - 179, - 239, - 145, - 1, - 96, - 64, - 81, - 128, - 145, - 3, - 144, - 163, - 80, - 80, - 86, - 91, - 96, - 5, - 128, - 84, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 131, - 129, - 22, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 25, - 131, - 22, - 129, - 23, - 144, - 147, - 85, - 96, - 64, - 81, - 145, - 22, - 145, - 144, - 130, - 144, - 127, - 139, - 224, - 7, - 156, - 83, - 22, - 89, - 20, - 19, - 68, - 205, - 31, - 208, - 164, - 242, - 132, - 25, - 73, - 127, - 151, - 34, - 163, - 218, - 175, - 227, - 180, - 24, - 111, - 107, - 100, - 87, - 224, - 144, - 96, - 0, - 144, - 163, - 80, - 80, - 86, - 91, - 96, - 0, - 96, - 32, - 128, - 131, - 82, - 131, - 81, - 128, - 130, - 133, - 1, - 82, - 96, - 0, - 91, - 129, - 129, - 16, - 21, - 97, - 9, - 110, - 87, - 133, - 129, - 1, - 131, - 1, - 81, - 133, - 130, - 1, - 96, - 64, - 1, - 82, - 130, - 1, - 97, - 9, - 82, - 86, - 91, - 80, - 96, - 0, - 96, - 64, - 130, - 134, - 1, - 1, - 82, - 96, - 64, - 96, - 31, - 25, - 96, - 31, - 131, - 1, - 22, - 133, - 1, - 1, - 146, - 80, - 80, - 80, - 146, - 145, - 80, - 80, - 86, - 91, - 128, - 53, - 96, - 1, - 96, - 1, - 96, - 160, - 27, - 3, - 129, - 22, - 129, - 20, - 97, - 9, - 166, - 87, - 96, - 0, - 128, - 253, - 91, - 145, - 144, - 80, - 86, - 91, - 96, - 0, - 128, - 96, - 64, - 131, - 133, - 3, - 18, - 21, - 97, - 9, - 190, - 87, - 96, - 0, - 128, - 253, - 91, - 97, - 9, - 199, - 131, - 97, - 9, - 143, - 86, - 91, - 148, - 96, - 32, - 147, - 144, - 147, - 1, - 53, - 147, - 80, - 80, - 80, - 86, - 91, - 96, - 0, - 128, - 96, - 0, - 96, - 96, - 132, - 134, - 3, - 18, - 21, - 97, - 9, - 234, - 87, - 96, - 0, - 128, - 253, - 91, - 97, - 9, - 243, - 132, - 97, - 9, - 143, - 86, - 91, - 146, - 80, - 97, - 10, - 1, - 96, - 32, - 133, - 1, - 97, - 9, - 143, - 86, - 91, - 145, - 80, - 96, - 64, - 132, - 1, - 53, - 144, - 80, - 146, - 80, - 146, - 80, - 146, - 86, - 91, - 96, - 0, - 96, - 32, - 130, - 132, - 3, - 18, - 21, - 97, - 10, - 35, - 87, - 96, - 0, - 128, - 253, - 91, - 97, - 10, - 44, - 130, - 97, - 9, - 143, - 86, - 91, - 147, - 146, - 80, - 80, - 80, - 86, - 91, - 96, - 0, - 128, - 96, - 64, - 131, - 133, - 3, - 18, - 21, - 97, - 10, - 70, - 87, - 96, - 0, - 128, - 253, - 91, - 97, - 10, - 79, - 131, - 97, - 9, - 143, - 86, - 91, - 145, - 80, - 97, - 10, - 93, - 96, - 32, - 132, - 1, - 97, - 9, - 143, - 86, - 91, - 144, - 80, - 146, - 80, - 146, - 144, - 80, - 86, - 91, - 96, - 1, - 129, - 129, - 28, - 144, - 130, - 22, - 128, - 97, - 10, - 122, - 87, - 96, - 127, - 130, - 22, - 145, - 80, - 91, - 96, - 32, - 130, - 16, - 129, - 3, - 97, - 10, - 154, - 87, - 99, - 78, - 72, - 123, - 113, - 96, - 224, - 27, - 96, - 0, - 82, - 96, - 34, - 96, - 4, - 82, - 96, - 36, - 96, - 0, - 253, - 91, - 80, - 145, - 144, - 80, - 86, - 91, - 128, - 130, - 1, - 128, - 130, - 17, - 21, - 97, - 2, - 221, - 87, - 99, - 78, - 72, - 123, - 113, - 96, - 224, - 27, - 96, - 0, - 82, - 96, - 17, - 96, - 4, - 82, - 96, - 36, - 96, - 0, - 253, - 254, - 162, - 100, - 105, - 112, - 102, - 115, - 88, - 34, - 18, - 32, - 253, - 219, - 133, - 110, - 73, - 92, - 0, - 147, - 166, - 78, - 244, - 255, - 131, - 246, - 4, - 122, - 242, - 74, - 188, - 163, - 116, - 209, - 16, - 33, - 154, - 27, - 110, - 123, - 34, - 163, - 47, - 138, - 100, - 115, - 111, - 108, - 99, - 67, - 0, - 8, - 18, - 0, - 51, - ]; - ///The deployed bytecode of the contract. - pub static MOCKERC20_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = - ::ethers::core::types::Bytes::from_static(__DEPLOYED_BYTECODE); - pub struct MockERC20(::ethers::contract::Contract); - impl ::core::clone::Clone for MockERC20 { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for MockERC20 { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for MockERC20 { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for MockERC20 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(stringify!(MockERC20)) - .field(&self.address()) - .finish() - } - } - impl MockERC20 { - /// Creates a new contract instance with the specified `ethers` client at - /// `address`. The contract derefs to a `ethers::Contract` object. - pub fn new>( - address: T, - client: ::std::sync::Arc, - ) -> Self { - Self(::ethers::contract::Contract::new( - address.into(), - MOCKERC20_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 - /// - /// Notes: - /// - If there are no constructor arguments, you should pass `()` as the argument. - /// - The default poll duration is 7 seconds. - /// - The default number of confirmations is 1 block. - /// - /// - /// # Example - /// - /// Generate contract bindings with `abigen!` and deploy a new contract instance. - /// - /// *Note*: this requires a `bytecode` and `abi` object in the `greeter.json` artifact. - /// - /// ```ignore - /// # async fn deploy(client: ::std::sync::Arc) { - /// abigen!(Greeter, "../greeter.json"); - /// - /// let greeter_contract = Greeter::deploy(client, "Hello world!".to_string()).unwrap().send().await.unwrap(); - /// let msg = greeter_contract.greet().call().await.unwrap(); - /// # } - /// ``` - pub fn deploy( - client: ::std::sync::Arc, - constructor_args: T, - ) -> ::core::result::Result< - ::ethers::contract::builders::ContractDeployer, - ::ethers::contract::ContractError, - > { - let factory = ::ethers::contract::ContractFactory::new( - MOCKERC20_ABI.clone(), - MOCKERC20_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Calls the contract's `allowance` (0xdd62ed3e) function - pub fn allowance( - &self, - owner: ::ethers::core::types::Address, - spender: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([221, 98, 237, 62], (owner, spender)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `approve` (0x095ea7b3) function - pub fn approve( - &self, - spender: ::ethers::core::types::Address, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([9, 94, 167, 179], (spender, amount)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `balanceOf` (0x70a08231) function - pub fn balance_of( - &self, - account: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([112, 160, 130, 49], account) - .expect("method not found (this should never happen)") - } - ///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 `decreaseAllowance` (0xa457c2d7) function - pub fn decrease_allowance( - &self, - spender: ::ethers::core::types::Address, - subtracted_value: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([164, 87, 194, 215], (spender, subtracted_value)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `increaseAllowance` (0x39509351) function - pub fn increase_allowance( - &self, - spender: ::ethers::core::types::Address, - added_value: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([57, 80, 147, 81], (spender, added_value)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `mint` (0x40c10f19) function - pub fn mint( - &self, - to: ::ethers::core::types::Address, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .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 { - self.0 - .method_hash([6, 253, 222, 3], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `owner` (0x8da5cb5b) function - pub fn owner( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([141, 165, 203, 91], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `renounceOwnership` (0x715018a6) function - pub fn renounce_ownership(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([113, 80, 24, 166], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `symbol` (0x95d89b41) function - pub fn symbol( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([149, 216, 155, 65], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `totalSupply` (0x18160ddd) function - pub fn total_supply( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([24, 22, 13, 221], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `transfer` (0xa9059cbb) function - pub fn transfer( - &self, - to: ::ethers::core::types::Address, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([169, 5, 156, 187], (to, amount)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `transferFrom` (0x23b872dd) function - pub fn transfer_from( - &self, - from: ::ethers::core::types::Address, - to: ::ethers::core::types::Address, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([35, 184, 114, 221], (from, to, amount)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `transferOwnership` (0xf2fde38b) function - pub fn transfer_ownership( - &self, - new_owner: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([242, 253, 227, 139], new_owner) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `Approval` event - pub fn approval_filter( - &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, ApprovalFilter> { - self.0.event() - } - ///Gets the contract's `OwnershipTransferred` event - pub fn ownership_transferred_filter( - &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, OwnershipTransferredFilter> - { - self.0.event() - } - ///Gets the contract's `Transfer` event - pub fn transfer_filter( - &self, - ) -> ::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, MockERC20Events> { - self.0 - .event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> for MockERC20 { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethevent(name = "Approval", abi = "Approval(address,address,uint256)")] - pub struct ApprovalFilter { - #[ethevent(indexed)] - pub owner: ::ethers::core::types::Address, - #[ethevent(indexed)] - pub spender: ::ethers::core::types::Address, - pub value: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethevent( - name = "OwnershipTransferred", - abi = "OwnershipTransferred(address,address)" - )] - pub struct OwnershipTransferredFilter { - #[ethevent(indexed)] - pub previous_owner: ::ethers::core::types::Address, - #[ethevent(indexed)] - pub new_owner: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethevent(name = "Transfer", abi = "Transfer(address,address,uint256)")] - pub struct TransferFilter { - #[ethevent(indexed)] - pub from: ::ethers::core::types::Address, - #[ethevent(indexed)] - pub to: ::ethers::core::types::Address, - pub value: ::ethers::core::types::U256, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum MockERC20Events { - ApprovalFilter(ApprovalFilter), - OwnershipTransferredFilter(OwnershipTransferredFilter), - TransferFilter(TransferFilter), - } - impl ::ethers::contract::EthLogDecode for MockERC20Events { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = ApprovalFilter::decode_log(log) { - return Ok(MockERC20Events::ApprovalFilter(decoded)); - } - if let Ok(decoded) = OwnershipTransferredFilter::decode_log(log) { - return Ok(MockERC20Events::OwnershipTransferredFilter(decoded)); - } - if let Ok(decoded) = TransferFilter::decode_log(log) { - return Ok(MockERC20Events::TransferFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for MockERC20Events { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::ApprovalFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::OwnershipTransferredFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::TransferFilter(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for MockERC20Events { - fn from(value: ApprovalFilter) -> Self { - Self::ApprovalFilter(value) - } - } - impl ::core::convert::From for MockERC20Events { - fn from(value: OwnershipTransferredFilter) -> Self { - Self::OwnershipTransferredFilter(value) - } - } - impl ::core::convert::From for MockERC20Events { - fn from(value: TransferFilter) -> Self { - Self::TransferFilter(value) - } - } - ///Container type for all input parameters for the `allowance` function with signature `allowance(address,address)` and selector `0xdd62ed3e` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - 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` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "approve", abi = "approve(address,uint256)")] - pub struct ApproveCall { - pub spender: ::ethers::core::types::Address, - pub amount: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `balanceOf` function with signature `balanceOf(address)` and selector `0x70a08231` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - 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` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "decimals", abi = "decimals()")] - pub struct DecimalsCall; - ///Container type for all input parameters for the `decreaseAllowance` function with signature `decreaseAllowance(address,uint256)` and selector `0xa457c2d7` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "decreaseAllowance", abi = "decreaseAllowance(address,uint256)")] - pub struct DecreaseAllowanceCall { - pub spender: ::ethers::core::types::Address, - pub subtracted_value: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `increaseAllowance` function with signature `increaseAllowance(address,uint256)` and selector `0x39509351` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "increaseAllowance", abi = "increaseAllowance(address,uint256)")] - pub struct IncreaseAllowanceCall { - pub spender: ::ethers::core::types::Address, - pub added_value: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `mint` function with signature `mint(address,uint256)` and selector `0x40c10f19` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - 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` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "name", abi = "name()")] - pub struct NameCall; - ///Container type for all input parameters for the `owner` function with signature `owner()` and selector `0x8da5cb5b` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "owner", abi = "owner()")] - pub struct OwnerCall; - ///Container type for all input parameters for the `renounceOwnership` function with signature `renounceOwnership()` and selector `0x715018a6` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "renounceOwnership", abi = "renounceOwnership()")] - pub struct RenounceOwnershipCall; - ///Container type for all input parameters for the `symbol` function with signature `symbol()` and selector `0x95d89b41` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - 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` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - 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` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "transfer", abi = "transfer(address,uint256)")] - pub struct TransferCall { - pub to: ::ethers::core::types::Address, - pub amount: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `transferFrom` function with signature `transferFrom(address,address,uint256)` and selector `0x23b872dd` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "transferFrom", abi = "transferFrom(address,address,uint256)")] - pub struct TransferFromCall { - pub from: ::ethers::core::types::Address, - pub to: ::ethers::core::types::Address, - pub amount: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `transferOwnership` function with signature `transferOwnership(address)` and selector `0xf2fde38b` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - #[ethcall(name = "transferOwnership", abi = "transferOwnership(address)")] - pub struct TransferOwnershipCall { - pub new_owner: ::ethers::core::types::Address, - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum MockERC20Calls { - Allowance(AllowanceCall), - Approve(ApproveCall), - BalanceOf(BalanceOfCall), - Decimals(DecimalsCall), - DecreaseAllowance(DecreaseAllowanceCall), - IncreaseAllowance(IncreaseAllowanceCall), - Mint(MintCall), - Name(NameCall), - Owner(OwnerCall), - RenounceOwnership(RenounceOwnershipCall), - Symbol(SymbolCall), - TotalSupply(TotalSupplyCall), - Transfer(TransferCall), - TransferFrom(TransferFromCall), - TransferOwnership(TransferOwnershipCall), - } - impl ::ethers::core::abi::AbiDecode for MockERC20Calls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode(data) { - return Ok(Self::Allowance(decoded)); - } - if let Ok(decoded) = ::decode(data) { - return Ok(Self::Approve(decoded)); - } - if let Ok(decoded) = ::decode(data) { - return Ok(Self::BalanceOf(decoded)); - } - if let Ok(decoded) = ::decode(data) { - return Ok(Self::Decimals(decoded)); - } - if let Ok(decoded) = - ::decode(data) - { - return Ok(Self::DecreaseAllowance(decoded)); - } - if let Ok(decoded) = - ::decode(data) - { - return Ok(Self::IncreaseAllowance(decoded)); - } - if let Ok(decoded) = ::decode(data) { - return Ok(Self::Mint(decoded)); - } - if let Ok(decoded) = ::decode(data) { - return Ok(Self::Name(decoded)); - } - if let Ok(decoded) = ::decode(data) { - return Ok(Self::Owner(decoded)); - } - if let Ok(decoded) = - ::decode(data) - { - return Ok(Self::RenounceOwnership(decoded)); - } - if let Ok(decoded) = ::decode(data) { - return Ok(Self::Symbol(decoded)); - } - if let Ok(decoded) = ::decode(data) { - return Ok(Self::TotalSupply(decoded)); - } - if let Ok(decoded) = ::decode(data) { - return Ok(Self::Transfer(decoded)); - } - if let Ok(decoded) = ::decode(data) - { - return Ok(Self::TransferFrom(decoded)); - } - if let Ok(decoded) = - ::decode(data) - { - return Ok(Self::TransferOwnership(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for MockERC20Calls { - fn encode(self) -> Vec { - match self { - 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::DecreaseAllowance(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::IncreaseAllowance(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::Owner(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::RenounceOwnership(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::TransferOwnership(element) => ::ethers::core::abi::AbiEncode::encode(element), - } - } - } - impl ::core::fmt::Display for MockERC20Calls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::Allowance(element) => ::core::fmt::Display::fmt(element, f), - Self::Approve(element) => ::core::fmt::Display::fmt(element, f), - Self::BalanceOf(element) => ::core::fmt::Display::fmt(element, f), - Self::Decimals(element) => ::core::fmt::Display::fmt(element, f), - Self::DecreaseAllowance(element) => ::core::fmt::Display::fmt(element, f), - Self::IncreaseAllowance(element) => ::core::fmt::Display::fmt(element, f), - Self::Mint(element) => ::core::fmt::Display::fmt(element, f), - Self::Name(element) => ::core::fmt::Display::fmt(element, f), - Self::Owner(element) => ::core::fmt::Display::fmt(element, f), - Self::RenounceOwnership(element) => ::core::fmt::Display::fmt(element, f), - Self::Symbol(element) => ::core::fmt::Display::fmt(element, f), - 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::TransferOwnership(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: AllowanceCall) -> Self { - Self::Allowance(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: ApproveCall) -> Self { - Self::Approve(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: BalanceOfCall) -> Self { - Self::BalanceOf(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: DecimalsCall) -> Self { - Self::Decimals(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: DecreaseAllowanceCall) -> Self { - Self::DecreaseAllowance(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: IncreaseAllowanceCall) -> Self { - Self::IncreaseAllowance(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: MintCall) -> Self { - Self::Mint(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: NameCall) -> Self { - Self::Name(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: OwnerCall) -> Self { - Self::Owner(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: RenounceOwnershipCall) -> Self { - Self::RenounceOwnership(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: SymbolCall) -> Self { - Self::Symbol(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: TotalSupplyCall) -> Self { - Self::TotalSupply(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: TransferCall) -> Self { - Self::Transfer(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: TransferFromCall) -> Self { - Self::TransferFrom(value) - } - } - impl ::core::convert::From for MockERC20Calls { - fn from(value: TransferOwnershipCall) -> Self { - Self::TransferOwnership(value) - } - } - ///Container type for all return fields from the `allowance` function with signature `allowance(address,address)` and selector `0xdd62ed3e` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - 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` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - pub struct ApproveReturn(pub bool); - ///Container type for all return fields from the `balanceOf` function with signature `balanceOf(address)` and selector `0x70a08231` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - 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` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - pub struct DecimalsReturn(pub u8); - ///Container type for all return fields from the `decreaseAllowance` function with signature `decreaseAllowance(address,uint256)` and selector `0xa457c2d7` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - pub struct DecreaseAllowanceReturn(pub bool); - ///Container type for all return fields from the `increaseAllowance` function with signature `increaseAllowance(address,uint256)` and selector `0x39509351` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - pub struct IncreaseAllowanceReturn(pub bool); - ///Container type for all return fields from the `name` function with signature `name()` and selector `0x06fdde03` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - pub struct NameReturn(pub ::std::string::String); - ///Container type for all return fields from the `owner` function with signature `owner()` and selector `0x8da5cb5b` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - pub struct OwnerReturn(pub ::ethers::core::types::Address); - ///Container type for all return fields from the `symbol` function with signature `symbol()` and selector `0x95d89b41` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - pub struct SymbolReturn(pub ::std::string::String); - ///Container type for all return fields from the `totalSupply` function with signature `totalSupply()` and selector `0x18160ddd` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - 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` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - 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` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash, - )] - pub struct TransferFromReturn(pub bool); -} diff --git a/backend/src/contracts/mock/mod.rs b/backend/src/contracts/mock/mod.rs deleted file mode 100644 index dbac9b71..00000000 --- a/backend/src/contracts/mock/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod mock_erc20; diff --git a/backend/src/contracts/mod.rs b/backend/src/contracts/mod.rs index 55333bf2..04d83f7e 100644 --- a/backend/src/contracts/mod.rs +++ b/backend/src/contracts/mod.rs @@ -1,3 +1,2 @@ pub mod generated; -pub mod mock; pub mod signer; diff --git a/contracts/src/Summa.sol b/contracts/src/Summa.sol index c249e454..96399bf4 100644 --- a/contracts/src/Summa.sol +++ b/contracts/src/Summa.sol @@ -227,7 +227,7 @@ contract Summa is Ownable { uint256[] memory totalBalances, uint256 timestamp ) public onlyOwner { - // Check input lengths + // Check input length require(totalBalances.length > 0, "Invalid total balances length"); require(grandSumProof.length == (totalBalances.length * 0x40), "Invalid grand sum proof length"); require(snarkProof.length > grandSumProof.length, "Invalid snark proof length"); @@ -261,7 +261,7 @@ contract Summa is Ownable { ) public view returns (bool) { require(challenges.length == 4, "Invalid challenges length"); - // Excluding `usename` in values + // Excluding `usename` in the values require((values.length - 1) == config.cryptocurrencyNames.length, "Values length mismatch with config"); bytes memory snarkProof = commitments[timestamp];