From 6e28ee7a55a2973e361dd08f4e91f3ce7d18247d Mon Sep 17 00:00:00 2001 From: Bernhard Schuster Date: Fri, 7 Feb 2025 17:25:14 +0100 Subject: [PATCH] refactor(repo): unify to bindings --- contracts/.gitattributes | 2 +- contracts/.gitignore | 5 +- contracts/Makefile | 2 +- crates/Cargo.toml | 6 +- crates/binding/src/checkpointing_facet.rs | 2291 ----------- crates/binding/src/diamond_cut_facet.rs | 1217 ------ crates/binding/src/diamond_loupe_facet.rs | 583 --- crates/binding/src/gateway_diamond.rs | 1568 ------- crates/binding/src/gateway_getter_facet.rs | 3653 ----------------- crates/binding/src/gateway_manager_facet.rs | 1797 -------- crates/binding/src/gateway_messenger_facet.rs | 1172 ------ crates/binding/src/i_diamond.rs | 168 - crates/binding/src/lib.rs | 63 - crates/binding/src/lib_gateway.rs | 664 --- crates/binding/src/lib_quorum.rs | 311 -- crates/binding/src/lib_staking.rs | 268 -- crates/binding/src/lib_staking_change_log.rs | 201 - crates/binding/src/ownership_facet.rs | 470 --- crates/binding/src/register_subnet_facet.rs | 451 -- .../src/subnet_actor_activity_facet.rs | 849 ---- .../src/subnet_actor_checkpointing_facet.rs | 2082 ---------- crates/binding/src/subnet_actor_diamond.rs | 1586 ------- .../binding/src/subnet_actor_getter_facet.rs | 3034 -------------- .../binding/src/subnet_actor_manager_facet.rs | 2934 ------------- .../binding/src/subnet_actor_pause_facet.rs | 595 --- .../binding/src/subnet_actor_reward_facet.rs | 601 --- crates/binding/src/subnet_getter_facet.rs | 1561 ------- crates/binding/src/subnet_registry_diamond.rs | 1456 ------- crates/binding/src/top_down_finality_facet.rs | 1480 ------- crates/binding/src/xnet_messaging_facet.rs | 794 ---- crates/bindings/.gitignore | 1 + crates/{binding => bindings}/Cargo.toml | 0 crates/{binding => bindings}/build.rs | 46 +- crates/{binding => bindings}/src/convert.rs | 0 crates/bindings/src/lib.rs | 5 + crates/client/README.md | 4 +- crates/client/testing/materializer/Cargo.toml | 2 +- docs-gitbook/reference/troubleshooting.md | 2 +- docs/ipc/developers.md | 2 +- rustfmt.toml | 2 +- scripts/add_license.sh | 2 +- 41 files changed, 43 insertions(+), 31887 deletions(-) delete mode 100644 crates/binding/src/checkpointing_facet.rs delete mode 100644 crates/binding/src/diamond_cut_facet.rs delete mode 100644 crates/binding/src/diamond_loupe_facet.rs delete mode 100644 crates/binding/src/gateway_diamond.rs delete mode 100644 crates/binding/src/gateway_getter_facet.rs delete mode 100644 crates/binding/src/gateway_manager_facet.rs delete mode 100644 crates/binding/src/gateway_messenger_facet.rs delete mode 100644 crates/binding/src/i_diamond.rs delete mode 100644 crates/binding/src/lib.rs delete mode 100644 crates/binding/src/lib_gateway.rs delete mode 100644 crates/binding/src/lib_quorum.rs delete mode 100644 crates/binding/src/lib_staking.rs delete mode 100644 crates/binding/src/lib_staking_change_log.rs delete mode 100644 crates/binding/src/ownership_facet.rs delete mode 100644 crates/binding/src/register_subnet_facet.rs delete mode 100644 crates/binding/src/subnet_actor_activity_facet.rs delete mode 100644 crates/binding/src/subnet_actor_checkpointing_facet.rs delete mode 100644 crates/binding/src/subnet_actor_diamond.rs delete mode 100644 crates/binding/src/subnet_actor_getter_facet.rs delete mode 100644 crates/binding/src/subnet_actor_manager_facet.rs delete mode 100644 crates/binding/src/subnet_actor_pause_facet.rs delete mode 100644 crates/binding/src/subnet_actor_reward_facet.rs delete mode 100644 crates/binding/src/subnet_getter_facet.rs delete mode 100644 crates/binding/src/subnet_registry_diamond.rs delete mode 100644 crates/binding/src/top_down_finality_facet.rs delete mode 100644 crates/binding/src/xnet_messaging_facet.rs create mode 100644 crates/bindings/.gitignore rename crates/{binding => bindings}/Cargo.toml (100%) rename crates/{binding => bindings}/build.rs (88%) rename crates/{binding => bindings}/src/convert.rs (100%) create mode 100644 crates/bindings/src/lib.rs diff --git a/contracts/.gitattributes b/contracts/.gitattributes index 68df07e81..61d5702eb 100644 --- a/contracts/.gitattributes +++ b/contracts/.gitattributes @@ -1,2 +1,2 @@ out/* linguist-generated=true -binding/* linguist-generated=true +bindings/* linguist-generated=true diff --git a/contracts/.gitignore b/contracts/.gitignore index 05b7ae956..3fc1ce005 100644 --- a/contracts/.gitignore +++ b/contracts/.gitignore @@ -6,7 +6,6 @@ crytic-export/ .env broadcast/ out/ -binding/src node_modules @@ -22,7 +21,7 @@ deployments.json scripts/*.out scripts/deploy-registry.ts scripts/deploy-gateway.ts -binding/target +bindings/target subnet.registry.json subnet.actor.json @@ -38,4 +37,4 @@ report.json *.un~ ## Licenses are picked up from the root when packing the npm package. -LICENSE-* \ No newline at end of file +LICENSE-* diff --git a/contracts/Makefile b/contracts/Makefile index 98a8442df..0ea5da026 100644 --- a/contracts/Makefile +++ b/contracts/Makefile @@ -49,7 +49,7 @@ compile-abi: node_modules | forge ./ops/compile-abi.sh $(OUTPUT) rust-binding: - OUTPUT=$(OUTPUT) cargo build --locked --release --manifest-path ../crates/binding/Cargo.toml -p ipc_actors_abis + OUTPUT=$(OUTPUT) cargo build --locked --release --manifest-path ../crates/bindings/Cargo.toml -p ipc_actors_abis # ============================================================================== # Running security checks within the local computer diff --git a/crates/Cargo.toml b/crates/Cargo.toml index 7347c6526..0d6c85f39 100644 --- a/crates/Cargo.toml +++ b/crates/Cargo.toml @@ -2,7 +2,7 @@ resolver = "2" members = [ # contracts bindings - "binding", + "bindings", # merkle "patched_external/merkle-tree-rs", @@ -183,7 +183,7 @@ ipc-wallet = { path = "ipc/wallet", features = ["with-ethers"] } ipc_ipld_resolver = { path = "ipld/resolver" } ipc-types = { path = "ipc/types" } ipc-observability = { path = "ipc/observability" } -ipc_actors_abis = { path = "binding" } +ipc_actors_abis = { path = "bindings" } fendermint_actors_api = { path = "client/actors/api" } # Vendored for cross-compilation, see https://github.com/cross-rs/cross/wiki/Recipes#openssl @@ -194,7 +194,7 @@ openssl = { version = "0.10", features = ["vendored"] } # NOTE: When upgrading the FVM it may cause our client/actors/build.rs to fail as it can # pull in crates as transitive dependencies that do not support Wasm architector. If this -# happens, try removing "crypto" feature from fvm_shared dependency in contracts/binding/Cargo.toml +# happens, try removing "crypto" feature from fvm_shared dependency in contracts/bindings/Cargo.toml # and run `cargo build`. Then add the "crypto" feature back and run `cargo build` again. fvm = { version = "4.4.0", features = [ "verify-signature", diff --git a/crates/binding/src/checkpointing_facet.rs b/crates/binding/src/checkpointing_facet.rs deleted file mode 100644 index 976e18a5b..000000000 --- a/crates/binding/src/checkpointing_facet.rs +++ /dev/null @@ -1,2291 +0,0 @@ -pub use checkpointing_facet::*; -/// 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 checkpointing_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("addCheckpointSignature"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "addCheckpointSignature", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("height"), - 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("membershipProof"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32[]"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("weight"), - 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("signature"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("commitCheckpoint"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("commitCheckpoint"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("checkpoint"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct BottomUpCheckpoint", - ), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("createBottomUpCheckpoint"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "createBottomUpCheckpoint", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("checkpoint"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct BottomUpCheckpoint", - ), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned( - "membershipRootHash", - ), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("membershipWeight"), - 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("activity"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ), - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct FullActivityRollup", - ), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("pruneBottomUpCheckpoints"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "pruneBottomUpCheckpoints", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned( - "newRetentionHeight", - ), - 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, - }, - ], - ), - ]), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("ActivityRollupRecorded"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActivityRollupRecorded", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("checkpointHeight"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("rollup"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ), - ), - ], - ), - ], - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CheckpointCommitted"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "CheckpointCommitted", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("subnet"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("subnetHeight"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MessageStoredInPostbox"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "MessageStoredInPostbox", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewBottomUpMsgBatch"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewBottomUpMsgBatch", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("epoch"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("subnet"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("message"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("QueuedBottomUpMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "QueuedBottomUpMessage", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("QuorumReached"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("QuorumReached"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("objKind"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("height"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("objHash"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("quorumWeight"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("QuorumWeightUpdated"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "QuorumWeightUpdated", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("objKind"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("height"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("objHash"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newWeight"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("CheckpointAlreadyExists"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CheckpointAlreadyExists", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CheckpointNotCreated"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CheckpointNotCreated", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FailedAddIncompleteQuorum"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "FailedAddIncompleteQuorum", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FailedAddSignatory"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FailedAddSignatory"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FailedRemoveIncompleteQuorum"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "FailedRemoveIncompleteQuorum", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidActorAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidActorAddress", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidCheckpointSource"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidCheckpointSource", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidRetentionHeight"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidRetentionHeight", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidSignature"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InvalidSignature"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidSubnet"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InvalidSubnet"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MaxMsgsPerBatchExceeded"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "MaxMsgsPerBatchExceeded", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotAuthorized"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotAuthorized"), - inputs: ::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"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEnoughSubnetCircSupply"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NotEnoughSubnetCircSupply", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotSystemActor"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotSystemActor"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("QuorumAlreadyProcessed"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "QuorumAlreadyProcessed", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SignatureReplay"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("SignatureReplay"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SubnetNotFound"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("SubnetNotFound"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ZeroMembershipWeight"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "ZeroMembershipWeight", - ), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static CHECKPOINTINGFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct CheckpointingFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for CheckpointingFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for CheckpointingFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for CheckpointingFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for CheckpointingFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(CheckpointingFacet)) - .field(&self.address()) - .finish() - } - } - impl CheckpointingFacet { - /// 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(), - CHECKPOINTINGFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `addCheckpointSignature` (0x53b4e7bf) function - pub fn add_checkpoint_signature( - &self, - height: ::ethers::core::types::U256, - membership_proof: ::std::vec::Vec<[u8; 32]>, - weight: ::ethers::core::types::U256, - signature: ::ethers::core::types::Bytes, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash( - [83, 180, 231, 191], - (height, membership_proof, weight, signature), - ) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `commitCheckpoint` (0x9db11d8c) function - pub fn commit_checkpoint( - &self, - checkpoint: BottomUpCheckpoint, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([157, 177, 29, 140], (checkpoint,)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `createBottomUpCheckpoint` (0x6326379f) function - pub fn create_bottom_up_checkpoint( - &self, - checkpoint: BottomUpCheckpoint, - membership_root_hash: [u8; 32], - membership_weight: ::ethers::core::types::U256, - activity: FullActivityRollup, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash( - [99, 38, 55, 159], - (checkpoint, membership_root_hash, membership_weight, activity), - ) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `pruneBottomUpCheckpoints` (0xac818379) function - pub fn prune_bottom_up_checkpoints( - &self, - new_retention_height: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([172, 129, 131, 121], new_retention_height) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `ActivityRollupRecorded` event - pub fn activity_rollup_recorded_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActivityRollupRecordedFilter, - > { - self.0.event() - } - ///Gets the contract's `CheckpointCommitted` event - pub fn checkpoint_committed_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - CheckpointCommittedFilter, - > { - self.0.event() - } - ///Gets the contract's `MessageStoredInPostbox` event - pub fn message_stored_in_postbox_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - MessageStoredInPostboxFilter, - > { - self.0.event() - } - ///Gets the contract's `NewBottomUpMsgBatch` event - pub fn new_bottom_up_msg_batch_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewBottomUpMsgBatchFilter, - > { - self.0.event() - } - ///Gets the contract's `NewTopDownMessage` event - pub fn new_top_down_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewTopDownMessageFilter, - > { - self.0.event() - } - ///Gets the contract's `QueuedBottomUpMessage` event - pub fn queued_bottom_up_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - QueuedBottomUpMessageFilter, - > { - self.0.event() - } - ///Gets the contract's `QuorumReached` event - pub fn quorum_reached_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - QuorumReachedFilter, - > { - self.0.event() - } - ///Gets the contract's `QuorumWeightUpdated` event - pub fn quorum_weight_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - QuorumWeightUpdatedFilter, - > { - 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, - CheckpointingFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for CheckpointingFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `CheckpointAlreadyExists` with signature `CheckpointAlreadyExists()` and selector `0xb8a1eae1` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "CheckpointAlreadyExists", abi = "CheckpointAlreadyExists()")] - pub struct CheckpointAlreadyExists; - ///Custom Error type `CheckpointNotCreated` with signature `CheckpointNotCreated()` and selector `0x58cdd2e7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "CheckpointNotCreated", abi = "CheckpointNotCreated()")] - pub struct CheckpointNotCreated; - ///Custom Error type `FailedAddIncompleteQuorum` with signature `FailedAddIncompleteQuorum()` and selector `0x197a39a6` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FailedAddIncompleteQuorum", abi = "FailedAddIncompleteQuorum()")] - pub struct FailedAddIncompleteQuorum; - ///Custom Error type `FailedAddSignatory` with signature `FailedAddSignatory()` and selector `0x3363140f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FailedAddSignatory", abi = "FailedAddSignatory()")] - pub struct FailedAddSignatory; - ///Custom Error type `FailedRemoveIncompleteQuorum` with signature `FailedRemoveIncompleteQuorum()` and selector `0x894f690e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "FailedRemoveIncompleteQuorum", - abi = "FailedRemoveIncompleteQuorum()" - )] - pub struct FailedRemoveIncompleteQuorum; - ///Custom Error type `InvalidActorAddress` with signature `InvalidActorAddress()` and selector `0x70e45109` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidActorAddress", abi = "InvalidActorAddress()")] - pub struct InvalidActorAddress; - ///Custom Error type `InvalidCheckpointSource` with signature `InvalidCheckpointSource()` and selector `0xfe72264e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidCheckpointSource", abi = "InvalidCheckpointSource()")] - pub struct InvalidCheckpointSource; - ///Custom Error type `InvalidRetentionHeight` with signature `InvalidRetentionHeight()` and selector `0x6819a3a9` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidRetentionHeight", abi = "InvalidRetentionHeight()")] - pub struct InvalidRetentionHeight; - ///Custom Error type `InvalidSignature` with signature `InvalidSignature()` and selector `0x8baa579f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidSignature", abi = "InvalidSignature()")] - pub struct InvalidSignature; - ///Custom Error type `InvalidSubnet` with signature `InvalidSubnet()` and selector `0x076bb706` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidSubnet", abi = "InvalidSubnet()")] - pub struct InvalidSubnet; - ///Custom Error type `MaxMsgsPerBatchExceeded` with signature `MaxMsgsPerBatchExceeded()` and selector `0x351c7007` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "MaxMsgsPerBatchExceeded", abi = "MaxMsgsPerBatchExceeded()")] - pub struct MaxMsgsPerBatchExceeded; - ///Custom Error type `NotAuthorized` with signature `NotAuthorized(address)` and selector `0x4a0bfec1` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotAuthorized", abi = "NotAuthorized(address)")] - pub struct NotAuthorized(pub ::ethers::core::types::Address); - ///Custom Error type `NotEnoughSubnetCircSupply` with signature `NotEnoughSubnetCircSupply()` and selector `0x74db2854` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotEnoughSubnetCircSupply", abi = "NotEnoughSubnetCircSupply()")] - pub struct NotEnoughSubnetCircSupply; - ///Custom Error type `NotSystemActor` with signature `NotSystemActor()` and selector `0xf0d97f3b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotSystemActor", abi = "NotSystemActor()")] - pub struct NotSystemActor; - ///Custom Error type `QuorumAlreadyProcessed` with signature `QuorumAlreadyProcessed()` and selector `0x042384dc` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "QuorumAlreadyProcessed", abi = "QuorumAlreadyProcessed()")] - pub struct QuorumAlreadyProcessed; - ///Custom Error type `SignatureReplay` with signature `SignatureReplay()` and selector `0xb47fa1b2` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "SignatureReplay", abi = "SignatureReplay()")] - pub struct SignatureReplay; - ///Custom Error type `SubnetNotFound` with signature `SubnetNotFound()` and selector `0x00476ad8` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "SubnetNotFound", abi = "SubnetNotFound()")] - pub struct SubnetNotFound; - ///Custom Error type `ZeroMembershipWeight` with signature `ZeroMembershipWeight()` and selector `0x4e8ac6e5` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ZeroMembershipWeight", abi = "ZeroMembershipWeight()")] - pub struct ZeroMembershipWeight; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum CheckpointingFacetErrors { - CheckpointAlreadyExists(CheckpointAlreadyExists), - CheckpointNotCreated(CheckpointNotCreated), - FailedAddIncompleteQuorum(FailedAddIncompleteQuorum), - FailedAddSignatory(FailedAddSignatory), - FailedRemoveIncompleteQuorum(FailedRemoveIncompleteQuorum), - InvalidActorAddress(InvalidActorAddress), - InvalidCheckpointSource(InvalidCheckpointSource), - InvalidRetentionHeight(InvalidRetentionHeight), - InvalidSignature(InvalidSignature), - InvalidSubnet(InvalidSubnet), - MaxMsgsPerBatchExceeded(MaxMsgsPerBatchExceeded), - NotAuthorized(NotAuthorized), - NotEnoughSubnetCircSupply(NotEnoughSubnetCircSupply), - NotSystemActor(NotSystemActor), - QuorumAlreadyProcessed(QuorumAlreadyProcessed), - SignatureReplay(SignatureReplay), - SubnetNotFound(SubnetNotFound), - ZeroMembershipWeight(ZeroMembershipWeight), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for CheckpointingFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CheckpointAlreadyExists(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CheckpointNotCreated(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FailedAddIncompleteQuorum(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FailedAddSignatory(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FailedRemoveIncompleteQuorum(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidActorAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidCheckpointSource(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidRetentionHeight(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidSignature(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidSubnet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MaxMsgsPerBatchExceeded(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotAuthorized(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEnoughSubnetCircSupply(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotSystemActor(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::QuorumAlreadyProcessed(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SignatureReplay(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SubnetNotFound(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ZeroMembershipWeight(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for CheckpointingFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::CheckpointAlreadyExists(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CheckpointNotCreated(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FailedAddIncompleteQuorum(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FailedAddSignatory(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FailedRemoveIncompleteQuorum(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidActorAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidCheckpointSource(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidRetentionHeight(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidSignature(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidSubnet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MaxMsgsPerBatchExceeded(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotAuthorized(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEnoughSubnetCircSupply(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotSystemActor(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::QuorumAlreadyProcessed(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SignatureReplay(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SubnetNotFound(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ZeroMembershipWeight(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for CheckpointingFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for CheckpointingFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::CheckpointAlreadyExists(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CheckpointNotCreated(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::FailedAddIncompleteQuorum(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::FailedAddSignatory(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::FailedRemoveIncompleteQuorum(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidActorAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidCheckpointSource(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidRetentionHeight(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidSignature(element) => ::core::fmt::Display::fmt(element, f), - Self::InvalidSubnet(element) => ::core::fmt::Display::fmt(element, f), - Self::MaxMsgsPerBatchExceeded(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotAuthorized(element) => ::core::fmt::Display::fmt(element, f), - Self::NotEnoughSubnetCircSupply(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotSystemActor(element) => ::core::fmt::Display::fmt(element, f), - Self::QuorumAlreadyProcessed(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::SignatureReplay(element) => ::core::fmt::Display::fmt(element, f), - Self::SubnetNotFound(element) => ::core::fmt::Display::fmt(element, f), - Self::ZeroMembershipWeight(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for CheckpointingFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: CheckpointAlreadyExists) -> Self { - Self::CheckpointAlreadyExists(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: CheckpointNotCreated) -> Self { - Self::CheckpointNotCreated(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: FailedAddIncompleteQuorum) -> Self { - Self::FailedAddIncompleteQuorum(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: FailedAddSignatory) -> Self { - Self::FailedAddSignatory(value) - } - } - impl ::core::convert::From - for CheckpointingFacetErrors { - fn from(value: FailedRemoveIncompleteQuorum) -> Self { - Self::FailedRemoveIncompleteQuorum(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: InvalidActorAddress) -> Self { - Self::InvalidActorAddress(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: InvalidCheckpointSource) -> Self { - Self::InvalidCheckpointSource(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: InvalidRetentionHeight) -> Self { - Self::InvalidRetentionHeight(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: InvalidSignature) -> Self { - Self::InvalidSignature(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: InvalidSubnet) -> Self { - Self::InvalidSubnet(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: MaxMsgsPerBatchExceeded) -> Self { - Self::MaxMsgsPerBatchExceeded(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: NotAuthorized) -> Self { - Self::NotAuthorized(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: NotEnoughSubnetCircSupply) -> Self { - Self::NotEnoughSubnetCircSupply(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: NotSystemActor) -> Self { - Self::NotSystemActor(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: QuorumAlreadyProcessed) -> Self { - Self::QuorumAlreadyProcessed(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: SignatureReplay) -> Self { - Self::SignatureReplay(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: SubnetNotFound) -> Self { - Self::SubnetNotFound(value) - } - } - impl ::core::convert::From for CheckpointingFacetErrors { - fn from(value: ZeroMembershipWeight) -> Self { - Self::ZeroMembershipWeight(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ActivityRollupRecorded", - abi = "ActivityRollupRecorded(uint64,(((uint64,uint64),(address,uint64)[])))" - )] - pub struct ActivityRollupRecordedFilter { - pub checkpoint_height: u64, - pub rollup: FullActivityRollup, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "CheckpointCommitted", - abi = "CheckpointCommitted(address,uint256)" - )] - pub struct CheckpointCommittedFilter { - #[ethevent(indexed)] - pub subnet: ::ethers::core::types::Address, - pub subnet_height: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "MessageStoredInPostbox", abi = "MessageStoredInPostbox(bytes32)")] - pub struct MessageStoredInPostboxFilter { - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "NewBottomUpMsgBatch", abi = "NewBottomUpMsgBatch(uint256)")] - pub struct NewBottomUpMsgBatchFilter { - #[ethevent(indexed)] - pub epoch: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewTopDownMessage", - abi = "NewTopDownMessage(address,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes),bytes32)" - )] - pub struct NewTopDownMessageFilter { - #[ethevent(indexed)] - pub subnet: ::ethers::core::types::Address, - pub message: IpcEnvelope, - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "QueuedBottomUpMessage", abi = "QueuedBottomUpMessage(bytes32)")] - pub struct QueuedBottomUpMessageFilter { - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "QuorumReached", - abi = "QuorumReached(uint8,uint256,bytes32,uint256)" - )] - pub struct QuorumReachedFilter { - pub obj_kind: u8, - pub height: ::ethers::core::types::U256, - pub obj_hash: [u8; 32], - pub quorum_weight: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "QuorumWeightUpdated", - abi = "QuorumWeightUpdated(uint8,uint256,bytes32,uint256)" - )] - pub struct QuorumWeightUpdatedFilter { - pub obj_kind: u8, - pub height: ::ethers::core::types::U256, - pub obj_hash: [u8; 32], - pub new_weight: ::ethers::core::types::U256, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum CheckpointingFacetEvents { - ActivityRollupRecordedFilter(ActivityRollupRecordedFilter), - CheckpointCommittedFilter(CheckpointCommittedFilter), - MessageStoredInPostboxFilter(MessageStoredInPostboxFilter), - NewBottomUpMsgBatchFilter(NewBottomUpMsgBatchFilter), - NewTopDownMessageFilter(NewTopDownMessageFilter), - QueuedBottomUpMessageFilter(QueuedBottomUpMessageFilter), - QuorumReachedFilter(QuorumReachedFilter), - QuorumWeightUpdatedFilter(QuorumWeightUpdatedFilter), - } - impl ::ethers::contract::EthLogDecode for CheckpointingFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = ActivityRollupRecordedFilter::decode_log(log) { - return Ok( - CheckpointingFacetEvents::ActivityRollupRecordedFilter(decoded), - ); - } - if let Ok(decoded) = CheckpointCommittedFilter::decode_log(log) { - return Ok(CheckpointingFacetEvents::CheckpointCommittedFilter(decoded)); - } - if let Ok(decoded) = MessageStoredInPostboxFilter::decode_log(log) { - return Ok( - CheckpointingFacetEvents::MessageStoredInPostboxFilter(decoded), - ); - } - if let Ok(decoded) = NewBottomUpMsgBatchFilter::decode_log(log) { - return Ok(CheckpointingFacetEvents::NewBottomUpMsgBatchFilter(decoded)); - } - if let Ok(decoded) = NewTopDownMessageFilter::decode_log(log) { - return Ok(CheckpointingFacetEvents::NewTopDownMessageFilter(decoded)); - } - if let Ok(decoded) = QueuedBottomUpMessageFilter::decode_log(log) { - return Ok( - CheckpointingFacetEvents::QueuedBottomUpMessageFilter(decoded), - ); - } - if let Ok(decoded) = QuorumReachedFilter::decode_log(log) { - return Ok(CheckpointingFacetEvents::QuorumReachedFilter(decoded)); - } - if let Ok(decoded) = QuorumWeightUpdatedFilter::decode_log(log) { - return Ok(CheckpointingFacetEvents::QuorumWeightUpdatedFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for CheckpointingFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::ActivityRollupRecordedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CheckpointCommittedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MessageStoredInPostboxFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewBottomUpMsgBatchFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewTopDownMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::QueuedBottomUpMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::QuorumReachedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::QuorumWeightUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From - for CheckpointingFacetEvents { - fn from(value: ActivityRollupRecordedFilter) -> Self { - Self::ActivityRollupRecordedFilter(value) - } - } - impl ::core::convert::From for CheckpointingFacetEvents { - fn from(value: CheckpointCommittedFilter) -> Self { - Self::CheckpointCommittedFilter(value) - } - } - impl ::core::convert::From - for CheckpointingFacetEvents { - fn from(value: MessageStoredInPostboxFilter) -> Self { - Self::MessageStoredInPostboxFilter(value) - } - } - impl ::core::convert::From for CheckpointingFacetEvents { - fn from(value: NewBottomUpMsgBatchFilter) -> Self { - Self::NewBottomUpMsgBatchFilter(value) - } - } - impl ::core::convert::From for CheckpointingFacetEvents { - fn from(value: NewTopDownMessageFilter) -> Self { - Self::NewTopDownMessageFilter(value) - } - } - impl ::core::convert::From - for CheckpointingFacetEvents { - fn from(value: QueuedBottomUpMessageFilter) -> Self { - Self::QueuedBottomUpMessageFilter(value) - } - } - impl ::core::convert::From for CheckpointingFacetEvents { - fn from(value: QuorumReachedFilter) -> Self { - Self::QuorumReachedFilter(value) - } - } - impl ::core::convert::From for CheckpointingFacetEvents { - fn from(value: QuorumWeightUpdatedFilter) -> Self { - Self::QuorumWeightUpdatedFilter(value) - } - } - ///Container type for all input parameters for the `addCheckpointSignature` function with signature `addCheckpointSignature(uint256,bytes32[],uint256,bytes)` and selector `0x53b4e7bf` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "addCheckpointSignature", - abi = "addCheckpointSignature(uint256,bytes32[],uint256,bytes)" - )] - pub struct AddCheckpointSignatureCall { - pub height: ::ethers::core::types::U256, - pub membership_proof: ::std::vec::Vec<[u8; 32]>, - pub weight: ::ethers::core::types::U256, - pub signature: ::ethers::core::types::Bytes, - } - ///Container type for all input parameters for the `commitCheckpoint` function with signature `commitCheckpoint(((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32))))` and selector `0x9db11d8c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "commitCheckpoint", - abi = "commitCheckpoint(((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32))))" - )] - pub struct CommitCheckpointCall { - pub checkpoint: BottomUpCheckpoint, - } - ///Container type for all input parameters for the `createBottomUpCheckpoint` function with signature `createBottomUpCheckpoint(((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32))),bytes32,uint256,(((uint64,uint64),(address,uint64)[])))` and selector `0x6326379f` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "createBottomUpCheckpoint", - abi = "createBottomUpCheckpoint(((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32))),bytes32,uint256,(((uint64,uint64),(address,uint64)[])))" - )] - pub struct CreateBottomUpCheckpointCall { - pub checkpoint: BottomUpCheckpoint, - pub membership_root_hash: [u8; 32], - pub membership_weight: ::ethers::core::types::U256, - pub activity: FullActivityRollup, - } - ///Container type for all input parameters for the `pruneBottomUpCheckpoints` function with signature `pruneBottomUpCheckpoints(uint256)` and selector `0xac818379` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "pruneBottomUpCheckpoints", - abi = "pruneBottomUpCheckpoints(uint256)" - )] - pub struct PruneBottomUpCheckpointsCall { - pub new_retention_height: ::ethers::core::types::U256, - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum CheckpointingFacetCalls { - AddCheckpointSignature(AddCheckpointSignatureCall), - CommitCheckpoint(CommitCheckpointCall), - CreateBottomUpCheckpoint(CreateBottomUpCheckpointCall), - PruneBottomUpCheckpoints(PruneBottomUpCheckpointsCall), - } - impl ::ethers::core::abi::AbiDecode for CheckpointingFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddCheckpointSignature(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CommitCheckpoint(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CreateBottomUpCheckpoint(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PruneBottomUpCheckpoints(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for CheckpointingFacetCalls { - fn encode(self) -> Vec { - match self { - Self::AddCheckpointSignature(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CommitCheckpoint(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CreateBottomUpCheckpoint(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::PruneBottomUpCheckpoints(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for CheckpointingFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::AddCheckpointSignature(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CommitCheckpoint(element) => ::core::fmt::Display::fmt(element, f), - Self::CreateBottomUpCheckpoint(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::PruneBottomUpCheckpoints(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for CheckpointingFacetCalls { - fn from(value: AddCheckpointSignatureCall) -> Self { - Self::AddCheckpointSignature(value) - } - } - impl ::core::convert::From for CheckpointingFacetCalls { - fn from(value: CommitCheckpointCall) -> Self { - Self::CommitCheckpoint(value) - } - } - impl ::core::convert::From - for CheckpointingFacetCalls { - fn from(value: CreateBottomUpCheckpointCall) -> Self { - Self::CreateBottomUpCheckpoint(value) - } - } - impl ::core::convert::From - for CheckpointingFacetCalls { - fn from(value: PruneBottomUpCheckpointsCall) -> Self { - Self::PruneBottomUpCheckpoints(value) - } - } - ///`BottomUpCheckpoint((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32)))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpCheckpoint { - pub subnet_id: SubnetID, - pub block_height: ::ethers::core::types::U256, - pub block_hash: [u8; 32], - pub next_configuration_number: u64, - pub msgs: ::std::vec::Vec, - pub activity: CompressedActivityRollup, - } - ///`CompressedActivityRollup(((uint64,uint64),bytes32))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CompressedActivityRollup { - pub consensus: CompressedSummary, - } - ///`AggregatedStats(uint64,uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct AggregatedStats { - pub total_active_validators: u64, - pub total_num_blocks_committed: u64, - } - ///`CompressedSummary((uint64,uint64),bytes32)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CompressedSummary { - pub stats: AggregatedStats, - pub data_root_commitment: [u8; 32], - } - ///`FullSummary((uint64,uint64),(address,uint64)[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FullSummary { - pub stats: AggregatedStats, - pub data: ::std::vec::Vec, - } - ///`ValidatorData(address,uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ValidatorData { - pub validator: ::ethers::core::types::Address, - pub blocks_committed: u64, - } - ///`FullActivityRollup(((uint64,uint64),(address,uint64)[]))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FullActivityRollup { - pub consensus: FullSummary, - } - ///`FvmAddress(uint8,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FvmAddress { - pub addr_type: u8, - pub payload: ::ethers::core::types::Bytes, - } - ///`Ipcaddress((uint64,address[]),(uint8,bytes))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Ipcaddress { - pub subnet_id: SubnetID, - pub raw_address: FvmAddress, - } - ///`IpcEnvelope(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IpcEnvelope { - pub kind: u8, - pub local_nonce: u64, - pub original_nonce: u64, - pub value: ::ethers::core::types::U256, - pub to: Ipcaddress, - pub from: Ipcaddress, - pub message: ::ethers::core::types::Bytes, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } -} diff --git a/crates/binding/src/diamond_cut_facet.rs b/crates/binding/src/diamond_cut_facet.rs deleted file mode 100644 index c7b9a3fb2..000000000 --- a/crates/binding/src/diamond_cut_facet.rs +++ /dev/null @@ -1,1217 +0,0 @@ -pub use diamond_cut_facet::*; -/// 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 diamond_cut_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("diamondCut"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("diamondCut"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_diamondCut"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct IDiamond.FacetCut[]", - ), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_init"), - 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("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes"), - ), - }, - ], - 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("DiamondCut"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("DiamondCut"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_diamondCut"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_init"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned( - "CannotAddFunctionToDiamondThatAlreadyExists", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotAddFunctionToDiamondThatAlreadyExists", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotAddSelectorsToZeroAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotAddSelectorsToZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selectors"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotRemoveFunctionThatDoesNotExist", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotRemoveFunctionThatDoesNotExist", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotRemoveImmutableFunction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotRemoveImmutableFunction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionThatDoesNotExists", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionThatDoesNotExists", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionsFromFacetWithZeroAddress", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionsFromFacetWithZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selectors"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotReplaceImmutableFunction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceImmutableFunction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("IncorrectFacetCutAction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "IncorrectFacetCutAction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_action"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "enum IDiamond.FacetCutAction", - ), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InitializationFunctionReverted"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InitializationFunctionReverted", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned( - "_initializationContractAddress", - ), - 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("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NoBytecodeAtAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NoBytecodeAtAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_contractAddress"), - 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("_message"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "NoSelectorsProvidedForFacetForCut", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NoSelectorsProvidedForFacetForCut", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_facetAddress"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotOwner"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotOwner"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "RemoveFacetAddressMustBeZeroAddress", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "RemoveFacetAddressMustBeZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_facetAddress"), - 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 DIAMONDCUTFACET_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = ::ethers::contract::Lazy::new( - __abi, - ); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x16Wa\x0C\xDB\x90\x81a\0\x1B\x829\xF3[_\x80\xFD\xFE`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1Cc\x1F\x93\x1C\x1C\x14a\0%W_\x80\xFD[4a\t\xA0W``6`\x03\x19\x01\x12a\t\xA0Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\x045\x11a\t\xA0W6`#`\x045\x01\x12\x15a\t\xA0W`\x045`\x04\x015\x90g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11a\t\xA0W6`$\x83`\x05\x1B`\x045\x01\x01\x11a\t\xA0W`$5`\x01`\x01`\xA0\x1B\x03\x81\x16\x90\x03a\t\xA0Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`D5\x11a\t\xA0W6`#`D5\x01\x12\x15a\t\xA0Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`D5`\x04\x015\x11a\t\xA0W6`$`D5`\x04\x015`D5\x01\x01\x11a\t\xA0W\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5T`\x01`\x01`\xA0\x1B\x03\x163\x03a\t\xA4WPa\x01\x19a\x01\x14\x82a\n\x19V[a\t\xF3V[` \x81\x83\x81R\x01\x80\x92`$`\x045\x01\x91[`$\x82`\x05\x1B`\x045\x01\x01\x83\x10a\x08oWPPPa\x01Pa\x01\x14`D5`\x04\x015a\n1V[`D5`\x04\x81\x015\x80\x83R\x91\x92\x91\x90`$\x01` \x84\x017_` `D5`\x04\x015\x84\x01\x01R\x80Q_[\x81\x81\x10a\x02\x95WPP`@Q\x90``\x82\x01\x90``\x83RQ\x80\x91R`\x80\x90`\x80\x83\x01\x91`\x80\x82`\x05\x1B\x85\x01\x01\x95\x92_\x91[\x83\x83\x10a\x02\x07W`$5`\x01`\x01`\xA0\x1B\x03\x16` \x87\x01R\x85\x88\x03`@\x87\x01Ra\x02\x05\x87\x7F\x8F\xAAp\x87\x86q\xCC\xD2\x12\xD2\x07q\xB7\x95\xC5\n\xF8\xFD?\xF6\xCF'\xF4\xBD\xE5~]M\xE0\xAE\xB6s\x88\x80a\x01\xFA\x8D\x85a\n\x82V[\x03\x90\xA1`$5a\x0BOV[\0[\x90\x91\x92\x93\x96`\x7F\x19\x86\x82\x03\x01\x83R\x87Q` \x83`@``\x85\x01\x93`\x01\x80`\xA0\x1B\x03\x81Q\x16\x86Ra\x02=\x84\x82\x01Q\x85\x88\x01\x90a\nuV[\x01Q\x93```@\x82\x01R\x84Q\x80\x94R\x01\x92\x01\x90_\x90[\x80\x82\x10a\x02rWPPP` \x80`\x01\x92\x99\x01\x93\x01\x93\x01\x91\x93\x92\x90a\x01\xA9V[\x82Q`\x01`\x01`\xE0\x1B\x03\x19\x16\x84R` \x93\x84\x01\x93\x90\x92\x01\x91`\x01\x90\x91\x01\x90a\x02SV[`@a\x02\xA1\x82\x85a\nMV[Q\x01Q`\x01`\x01`\xA0\x1B\x03a\x02\xB6\x83\x86a\nMV[QQ\x16\x90\x80Q\x15a\x08VW` a\x02\xCD\x84\x87a\nMV[Q\x01Q`\x03\x81\x10\x15a\x08BW\x80a\x04\xD5WP\x81\x15a\x04\xB4Wa\xFF\xFF_\x80Q` a\x0Cf\x839\x81Q\x91RT\x16a\x03=a\x03\x03a\t\xD3V[`!\x81R\x7FdiamondCut: Add facet has no cod` \x82\x01R`e`\xF8\x1B`@\x82\x01R\x84a\x0C&V[\x81Q\x91_\x91[\x83\x83\x10a\x03YWPPPPP`\x01\x90[\x01a\x01yV[`\x01`\x01`\xE0\x1B\x03\x19a\x03l\x84\x84a\nMV[Q\x16_\x81\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@\x90 T\x90\x91\x90`\x01`\x01`\xA0\x1B\x03\x16a\x04\x9BWa\x04\x01a\x03\xA3a\t\xB3V[\x87\x81Ra\xFF\xFF\x92\x90\x92\x16` \x80\x84\x01\x82\x81R_\x86\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R\x90\x92R`@\x90\x91 \x93Q\x84T\x91Q`\x01`\x01`\xB0\x1B\x03\x19\x90\x92\x16`\x01`\x01`\xA0\x1B\x03\x91\x90\x91\x16\x17`\xA0\x91\x90\x91\x1Ba\xFF\xFF`\xA0\x1B\x16\x17\x90\x92UV[_\x80Q` a\x0Cf\x839\x81Q\x91RT\x91h\x01\0\0\0\0\0\0\0\0\x83\x10\x15a\x04\x87Wa\x04`\x90a\x04C`\x01\x94\x85\x81\x01_\x80Q` a\x0Cf\x839\x81Q\x91RUa\n\xC0V[\x90\x91\x90c\xFF\xFF\xFF\xFF\x83T\x91`\x03\x1B\x92`\xE0\x1C\x83\x1B\x92\x1B\x19\x16\x17\x90UV[a\xFF\xFF\x81\x14a\x04sW\x81\x01\x92\x01\x91a\x03CV[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[`@Qc\xEB\xBF]\x07`\xE0\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc\x02\xB8\xDA\x07`\xE2\x1B\x81R\x90\x81\x90a\x04\xD1\x90`\x04\x83\x01a\x0B\nV[\x03\x90\xFD[`\x01\x81\x03a\x06+WP\x81\x15a\x06\x0EWa\x050a\x04\xEFa\t\xD3V[`(\x81R\x7FLibDiamondCut: Replace facet has` \x82\x01Rg no code`\xC0\x1B`@\x82\x01R\x83a\x0C&V[\x80Q\x90_[\x82\x81\x10a\x05HWPPPP`\x01\x90a\x03SV[`\x01`\x01`\xE0\x1B\x03\x19a\x05[\x82\x84a\nMV[Q\x16_\x81\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x160\x81\x14a\x05\xF5W\x85\x81\x14a\x05\xDCW\x15a\x05\xC4W_\x90\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@\x90 \x80T`\x01`\x01`\xA0\x1B\x03\x19\x16\x85\x17\x90U`\x01\x01a\x055V[`$\x90`@Q\x90cty\xF99`\xE0\x1B\x82R`\x04\x82\x01R\xFD[`@Qc\x1A\xC6\xCE\x8D`\xE1\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc)\x01\x80m`\xE1\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc\xCD\x98\xA9o`\xE0\x1B\x81R\x90\x81\x90a\x04\xD1\x90`\x04\x83\x01a\x0B\nV[`\x02\x81\x03a\x08\"WP_\x80Q` a\x0Cf\x839\x81Q\x91RT\x91\x80a\x08\nWP\x80Q\x90_[\x82\x81\x10a\x06bWPPPP`\x01\x90a\x03SV[`\x01`\x01`\xE0\x1B\x03\x19a\x06u\x82\x84a\nMV[Q\x16\x90\x81_R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@_ \x94a\x06\x99a\t\xB3V[\x95T`\x01`\x01`\xA0\x1B\x03\x81\x16\x80\x88R`\xA0\x91\x90\x91\x1Ca\xFF\xFF\x16` \x88\x01R\x15a\x07\xF1W\x85Q`\x01`\x01`\xA0\x1B\x03\x160\x14a\x07\xD8W\x80\x15a\x04sW_\x19\x01\x94\x85a\xFF\xFF` \x83\x01Q\x16\x03a\x07_W[P_\x80Q` a\x0Cf\x839\x81Q\x91RT\x91\x82\x15a\x07KW`\x01\x92_\x19\x01a\x07\r\x81a\n\xC0V[c\xFF\xFF\xFF\xFF\x82T\x91`\x03\x1B\x1B\x19\x16\x90U_\x80Q` a\x0Cf\x839\x81Q\x91RU_R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R_`@\x81 U\x01a\x06OV[cNH{q`\xE0\x1B_R`1`\x04R`$_\xFD[a\x07\xD2\x90a\xFF\xFF` a\x07q\x89a\n\xC0V[\x90T\x90`\x03\x1B\x1C`\xE0\x1B\x92a\x07\x8E\x84a\x04C\x85\x85\x85\x01Q\x16a\n\xC0V[\x01Q`\x01`\x01`\xE0\x1B\x03\x19\x90\x92\x16_\x90\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@\x90 \x80Ta\xFF\xFF`\xA0\x1B\x19\x16\x91\x90\x92\x16`\xA0\x1Ba\xFF\xFF`\xA0\x1B\x16\x17\x90UV[_a\x06\xE7V[`@Qc\r\xF5\xFDa`\xE3\x1B\x81R`\x04\x81\x01\x84\x90R`$\x90\xFD[`@Qcz\x08\xA2-`\xE0\x1B\x81R`\x04\x81\x01\x84\x90R`$\x90\xFD[`$\x90`@Q\x90c\xD0\x91\xBC\x81`\xE0\x1B\x82R`\x04\x82\x01R\xFD[`@Qc?\xF4\xD2\x0F`\xE1\x1B\x81R`$\x91a\x08@\x90`\x04\x83\x01\x90a\nuV[\xFD[cNH{q`\xE0\x1B_R`!`\x04R`$_\xFD[`@Qc\xE7g\xF9\x1F`\xE0\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[\x825g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\t\xA0W```\x045\x82\x016\x03`#\x19\x01\x12a\t\xA0W`@Q\x90\x81``\x81\x01\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF``\x84\x01\x11\x17a\x04\x87W``\x82\x01`@R`\x045\x81\x01`$\x015`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\t\xA0W\x82R`D\x81`\x045\x01\x015`\x03\x81\x10\x15a\t\xA0W` \x83\x01R`d\x81`\x045\x01\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\t\xA0W6`C\x82\x84`\x045\x01\x01\x01\x12\x15a\t\xA0W`$\x81\x83`\x045\x01\x01\x015a\t(a\x01\x14\x82a\n\x19V[\x92` \x84\x83\x81R\x01\x906`D\x84`\x05\x1B\x86\x84`\x045\x01\x01\x01\x01\x11a\t\xA0W`D\x84\x82`\x045\x01\x01\x01\x91[`D\x84`\x05\x1B\x86\x84`\x045\x01\x01\x01\x01\x83\x10a\t\x7FWPPPPP`@\x82\x01R\x81R` \x92\x83\x01\x92\x01a\x01*V[\x825`\x01`\x01`\xE0\x1B\x03\x19\x81\x16\x81\x03a\t\xA0W\x81R` \x92\x83\x01\x92\x01a\tRV[_\x80\xFD[c0\xCDtq`\xE0\x1B\x81R`\x04\x90\xFD[`@Q\x90`@\x82\x01\x82\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x04\x87W`@RV[`@Q\x90``\x82\x01\x82\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x04\x87W`@RV[`@Q\x91\x90`\x1F\x01`\x1F\x19\x16\x82\x01g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x83\x82\x10\x17a\x04\x87W`@RV[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x04\x87W`\x05\x1B` \x01\x90V[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x04\x87W`\x1F\x01`\x1F\x19\x16` \x01\x90V[\x80Q\x82\x10\x15a\naW` \x91`\x05\x1B\x01\x01\x90V[cNH{q`\xE0\x1B_R`2`\x04R`$_\xFD[\x90`\x03\x82\x10\x15a\x08BWRV[\x91\x90\x82Q\x92\x83\x82R_[\x84\x81\x10a\n\xACWPP\x82_` \x80\x94\x95\x84\x01\x01R`\x1F\x80\x19\x91\x01\x16\x01\x01\x90V[` \x81\x83\x01\x81\x01Q\x84\x83\x01\x82\x01R\x01a\n\x8CV[\x90_\x80Q` a\x0Cf\x839\x81Q\x91R\x80T\x83\x10\x15a\naW_R`\x1C\x82`\x03\x1C\x7F\xB6[\xEC\xA8\xB6\xFAx\x8B\xCB\x15(\xC2\xAB_M\xC6\xBC\x98\xE5\x89eP\xBA\xA0\x13\xD83\x0F\xAB\x0B\x86\xF4\x01\x92`\x02\x1B\x16\x90V[` \x90` `@\x81\x83\x01\x92\x82\x81R\x85Q\x80\x94R\x01\x93\x01\x91_[\x82\x81\x10a\x0B1WPPPP\x90V[\x83Q`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x93\x81\x01\x93\x92\x81\x01\x92`\x01\x01a\x0B#V[`\x01`\x01`\xA0\x1B\x03\x81\x16\x91\x90\x82\x15a\x0C!W_\x80\x91a\x0B\xADa\x0Boa\t\xD3V[`%\x81R\x7FdiamondCut: _init address has no` \x82\x01Rd code`\xD8\x1B`@\x82\x01R\x82a\x0C&V[\x83Q\x90` \x85\x01\x90Z\xF4\x91=\x15a\x0C\x19W=\x92a\x0B\xCCa\x01\x14\x85a\n1V[\x93\x84R=_` \x86\x01>[\x15a\x0B\xE1WPPPV[\x82Q\x15a\x0B\xF0W\x82Q` \x84\x01\xFD[a\x04\xD1`@Q\x92\x83\x92c\x19!\x05\xD7`\xE0\x1B\x84R`\x04\x84\x01R`@`$\x84\x01R`D\x83\x01\x90a\n\x82V[``\x92a\x0B\xD7V[PPPV[\x80;\x15a\x0C1WPPV[`@\x80Qc\x91\x984\xB9`\xE0\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x90\x92\x16`\x04\x83\x01R`$\x82\x01R\x90\x81\x90a\x04\xD1\x90`D\x83\x01\x90a\n\x82V\xFE\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD3\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2\xA2dipfsX\"\x12 \x13u\xBE\xA8\xE3\xA5\xD5Fe\x12M-M\r/\xA2w\0X\xE0\xFC\xC8\xC9\x96*\xFA[\xC1=\xBF\xF2\x1DdsolcC\0\x08\x17\x003"; - /// The bytecode of the contract. - pub static DIAMONDCUTFACET_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1Cc\x1F\x93\x1C\x1C\x14a\0%W_\x80\xFD[4a\t\xA0W``6`\x03\x19\x01\x12a\t\xA0Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\x045\x11a\t\xA0W6`#`\x045\x01\x12\x15a\t\xA0W`\x045`\x04\x015\x90g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11a\t\xA0W6`$\x83`\x05\x1B`\x045\x01\x01\x11a\t\xA0W`$5`\x01`\x01`\xA0\x1B\x03\x81\x16\x90\x03a\t\xA0Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`D5\x11a\t\xA0W6`#`D5\x01\x12\x15a\t\xA0Wg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`D5`\x04\x015\x11a\t\xA0W6`$`D5`\x04\x015`D5\x01\x01\x11a\t\xA0W\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5T`\x01`\x01`\xA0\x1B\x03\x163\x03a\t\xA4WPa\x01\x19a\x01\x14\x82a\n\x19V[a\t\xF3V[` \x81\x83\x81R\x01\x80\x92`$`\x045\x01\x91[`$\x82`\x05\x1B`\x045\x01\x01\x83\x10a\x08oWPPPa\x01Pa\x01\x14`D5`\x04\x015a\n1V[`D5`\x04\x81\x015\x80\x83R\x91\x92\x91\x90`$\x01` \x84\x017_` `D5`\x04\x015\x84\x01\x01R\x80Q_[\x81\x81\x10a\x02\x95WPP`@Q\x90``\x82\x01\x90``\x83RQ\x80\x91R`\x80\x90`\x80\x83\x01\x91`\x80\x82`\x05\x1B\x85\x01\x01\x95\x92_\x91[\x83\x83\x10a\x02\x07W`$5`\x01`\x01`\xA0\x1B\x03\x16` \x87\x01R\x85\x88\x03`@\x87\x01Ra\x02\x05\x87\x7F\x8F\xAAp\x87\x86q\xCC\xD2\x12\xD2\x07q\xB7\x95\xC5\n\xF8\xFD?\xF6\xCF'\xF4\xBD\xE5~]M\xE0\xAE\xB6s\x88\x80a\x01\xFA\x8D\x85a\n\x82V[\x03\x90\xA1`$5a\x0BOV[\0[\x90\x91\x92\x93\x96`\x7F\x19\x86\x82\x03\x01\x83R\x87Q` \x83`@``\x85\x01\x93`\x01\x80`\xA0\x1B\x03\x81Q\x16\x86Ra\x02=\x84\x82\x01Q\x85\x88\x01\x90a\nuV[\x01Q\x93```@\x82\x01R\x84Q\x80\x94R\x01\x92\x01\x90_\x90[\x80\x82\x10a\x02rWPPP` \x80`\x01\x92\x99\x01\x93\x01\x93\x01\x91\x93\x92\x90a\x01\xA9V[\x82Q`\x01`\x01`\xE0\x1B\x03\x19\x16\x84R` \x93\x84\x01\x93\x90\x92\x01\x91`\x01\x90\x91\x01\x90a\x02SV[`@a\x02\xA1\x82\x85a\nMV[Q\x01Q`\x01`\x01`\xA0\x1B\x03a\x02\xB6\x83\x86a\nMV[QQ\x16\x90\x80Q\x15a\x08VW` a\x02\xCD\x84\x87a\nMV[Q\x01Q`\x03\x81\x10\x15a\x08BW\x80a\x04\xD5WP\x81\x15a\x04\xB4Wa\xFF\xFF_\x80Q` a\x0Cf\x839\x81Q\x91RT\x16a\x03=a\x03\x03a\t\xD3V[`!\x81R\x7FdiamondCut: Add facet has no cod` \x82\x01R`e`\xF8\x1B`@\x82\x01R\x84a\x0C&V[\x81Q\x91_\x91[\x83\x83\x10a\x03YWPPPPP`\x01\x90[\x01a\x01yV[`\x01`\x01`\xE0\x1B\x03\x19a\x03l\x84\x84a\nMV[Q\x16_\x81\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@\x90 T\x90\x91\x90`\x01`\x01`\xA0\x1B\x03\x16a\x04\x9BWa\x04\x01a\x03\xA3a\t\xB3V[\x87\x81Ra\xFF\xFF\x92\x90\x92\x16` \x80\x84\x01\x82\x81R_\x86\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R\x90\x92R`@\x90\x91 \x93Q\x84T\x91Q`\x01`\x01`\xB0\x1B\x03\x19\x90\x92\x16`\x01`\x01`\xA0\x1B\x03\x91\x90\x91\x16\x17`\xA0\x91\x90\x91\x1Ba\xFF\xFF`\xA0\x1B\x16\x17\x90\x92UV[_\x80Q` a\x0Cf\x839\x81Q\x91RT\x91h\x01\0\0\0\0\0\0\0\0\x83\x10\x15a\x04\x87Wa\x04`\x90a\x04C`\x01\x94\x85\x81\x01_\x80Q` a\x0Cf\x839\x81Q\x91RUa\n\xC0V[\x90\x91\x90c\xFF\xFF\xFF\xFF\x83T\x91`\x03\x1B\x92`\xE0\x1C\x83\x1B\x92\x1B\x19\x16\x17\x90UV[a\xFF\xFF\x81\x14a\x04sW\x81\x01\x92\x01\x91a\x03CV[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[`@Qc\xEB\xBF]\x07`\xE0\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc\x02\xB8\xDA\x07`\xE2\x1B\x81R\x90\x81\x90a\x04\xD1\x90`\x04\x83\x01a\x0B\nV[\x03\x90\xFD[`\x01\x81\x03a\x06+WP\x81\x15a\x06\x0EWa\x050a\x04\xEFa\t\xD3V[`(\x81R\x7FLibDiamondCut: Replace facet has` \x82\x01Rg no code`\xC0\x1B`@\x82\x01R\x83a\x0C&V[\x80Q\x90_[\x82\x81\x10a\x05HWPPPP`\x01\x90a\x03SV[`\x01`\x01`\xE0\x1B\x03\x19a\x05[\x82\x84a\nMV[Q\x16_\x81\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x160\x81\x14a\x05\xF5W\x85\x81\x14a\x05\xDCW\x15a\x05\xC4W_\x90\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@\x90 \x80T`\x01`\x01`\xA0\x1B\x03\x19\x16\x85\x17\x90U`\x01\x01a\x055V[`$\x90`@Q\x90cty\xF99`\xE0\x1B\x82R`\x04\x82\x01R\xFD[`@Qc\x1A\xC6\xCE\x8D`\xE1\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc)\x01\x80m`\xE1\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc\xCD\x98\xA9o`\xE0\x1B\x81R\x90\x81\x90a\x04\xD1\x90`\x04\x83\x01a\x0B\nV[`\x02\x81\x03a\x08\"WP_\x80Q` a\x0Cf\x839\x81Q\x91RT\x91\x80a\x08\nWP\x80Q\x90_[\x82\x81\x10a\x06bWPPPP`\x01\x90a\x03SV[`\x01`\x01`\xE0\x1B\x03\x19a\x06u\x82\x84a\nMV[Q\x16\x90\x81_R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@_ \x94a\x06\x99a\t\xB3V[\x95T`\x01`\x01`\xA0\x1B\x03\x81\x16\x80\x88R`\xA0\x91\x90\x91\x1Ca\xFF\xFF\x16` \x88\x01R\x15a\x07\xF1W\x85Q`\x01`\x01`\xA0\x1B\x03\x160\x14a\x07\xD8W\x80\x15a\x04sW_\x19\x01\x94\x85a\xFF\xFF` \x83\x01Q\x16\x03a\x07_W[P_\x80Q` a\x0Cf\x839\x81Q\x91RT\x91\x82\x15a\x07KW`\x01\x92_\x19\x01a\x07\r\x81a\n\xC0V[c\xFF\xFF\xFF\xFF\x82T\x91`\x03\x1B\x1B\x19\x16\x90U_\x80Q` a\x0Cf\x839\x81Q\x91RU_R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R_`@\x81 U\x01a\x06OV[cNH{q`\xE0\x1B_R`1`\x04R`$_\xFD[a\x07\xD2\x90a\xFF\xFF` a\x07q\x89a\n\xC0V[\x90T\x90`\x03\x1B\x1C`\xE0\x1B\x92a\x07\x8E\x84a\x04C\x85\x85\x85\x01Q\x16a\n\xC0V[\x01Q`\x01`\x01`\xE0\x1B\x03\x19\x90\x92\x16_\x90\x81R_\x80Q` a\x0C\x86\x839\x81Q\x91R` R`@\x90 \x80Ta\xFF\xFF`\xA0\x1B\x19\x16\x91\x90\x92\x16`\xA0\x1Ba\xFF\xFF`\xA0\x1B\x16\x17\x90UV[_a\x06\xE7V[`@Qc\r\xF5\xFDa`\xE3\x1B\x81R`\x04\x81\x01\x84\x90R`$\x90\xFD[`@Qcz\x08\xA2-`\xE0\x1B\x81R`\x04\x81\x01\x84\x90R`$\x90\xFD[`$\x90`@Q\x90c\xD0\x91\xBC\x81`\xE0\x1B\x82R`\x04\x82\x01R\xFD[`@Qc?\xF4\xD2\x0F`\xE1\x1B\x81R`$\x91a\x08@\x90`\x04\x83\x01\x90a\nuV[\xFD[cNH{q`\xE0\x1B_R`!`\x04R`$_\xFD[`@Qc\xE7g\xF9\x1F`\xE0\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[\x825g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\t\xA0W```\x045\x82\x016\x03`#\x19\x01\x12a\t\xA0W`@Q\x90\x81``\x81\x01\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF``\x84\x01\x11\x17a\x04\x87W``\x82\x01`@R`\x045\x81\x01`$\x015`\x01`\x01`\xA0\x1B\x03\x81\x16\x81\x03a\t\xA0W\x82R`D\x81`\x045\x01\x015`\x03\x81\x10\x15a\t\xA0W` \x83\x01R`d\x81`\x045\x01\x015g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\t\xA0W6`C\x82\x84`\x045\x01\x01\x01\x12\x15a\t\xA0W`$\x81\x83`\x045\x01\x01\x015a\t(a\x01\x14\x82a\n\x19V[\x92` \x84\x83\x81R\x01\x906`D\x84`\x05\x1B\x86\x84`\x045\x01\x01\x01\x01\x11a\t\xA0W`D\x84\x82`\x045\x01\x01\x01\x91[`D\x84`\x05\x1B\x86\x84`\x045\x01\x01\x01\x01\x83\x10a\t\x7FWPPPPP`@\x82\x01R\x81R` \x92\x83\x01\x92\x01a\x01*V[\x825`\x01`\x01`\xE0\x1B\x03\x19\x81\x16\x81\x03a\t\xA0W\x81R` \x92\x83\x01\x92\x01a\tRV[_\x80\xFD[c0\xCDtq`\xE0\x1B\x81R`\x04\x90\xFD[`@Q\x90`@\x82\x01\x82\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x04\x87W`@RV[`@Q\x90``\x82\x01\x82\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x04\x87W`@RV[`@Q\x91\x90`\x1F\x01`\x1F\x19\x16\x82\x01g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11\x83\x82\x10\x17a\x04\x87W`@RV[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x04\x87W`\x05\x1B` \x01\x90V[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x04\x87W`\x1F\x01`\x1F\x19\x16` \x01\x90V[\x80Q\x82\x10\x15a\naW` \x91`\x05\x1B\x01\x01\x90V[cNH{q`\xE0\x1B_R`2`\x04R`$_\xFD[\x90`\x03\x82\x10\x15a\x08BWRV[\x91\x90\x82Q\x92\x83\x82R_[\x84\x81\x10a\n\xACWPP\x82_` \x80\x94\x95\x84\x01\x01R`\x1F\x80\x19\x91\x01\x16\x01\x01\x90V[` \x81\x83\x01\x81\x01Q\x84\x83\x01\x82\x01R\x01a\n\x8CV[\x90_\x80Q` a\x0Cf\x839\x81Q\x91R\x80T\x83\x10\x15a\naW_R`\x1C\x82`\x03\x1C\x7F\xB6[\xEC\xA8\xB6\xFAx\x8B\xCB\x15(\xC2\xAB_M\xC6\xBC\x98\xE5\x89eP\xBA\xA0\x13\xD83\x0F\xAB\x0B\x86\xF4\x01\x92`\x02\x1B\x16\x90V[` \x90` `@\x81\x83\x01\x92\x82\x81R\x85Q\x80\x94R\x01\x93\x01\x91_[\x82\x81\x10a\x0B1WPPPP\x90V[\x83Q`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x93\x81\x01\x93\x92\x81\x01\x92`\x01\x01a\x0B#V[`\x01`\x01`\xA0\x1B\x03\x81\x16\x91\x90\x82\x15a\x0C!W_\x80\x91a\x0B\xADa\x0Boa\t\xD3V[`%\x81R\x7FdiamondCut: _init address has no` \x82\x01Rd code`\xD8\x1B`@\x82\x01R\x82a\x0C&V[\x83Q\x90` \x85\x01\x90Z\xF4\x91=\x15a\x0C\x19W=\x92a\x0B\xCCa\x01\x14\x85a\n1V[\x93\x84R=_` \x86\x01>[\x15a\x0B\xE1WPPPV[\x82Q\x15a\x0B\xF0W\x82Q` \x84\x01\xFD[a\x04\xD1`@Q\x92\x83\x92c\x19!\x05\xD7`\xE0\x1B\x84R`\x04\x84\x01R`@`$\x84\x01R`D\x83\x01\x90a\n\x82V[``\x92a\x0B\xD7V[PPPV[\x80;\x15a\x0C1WPPV[`@\x80Qc\x91\x984\xB9`\xE0\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x90\x92\x16`\x04\x83\x01R`$\x82\x01R\x90\x81\x90a\x04\xD1\x90`D\x83\x01\x90a\n\x82V\xFE\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD3\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2\xA2dipfsX\"\x12 \x13u\xBE\xA8\xE3\xA5\xD5Fe\x12M-M\r/\xA2w\0X\xE0\xFC\xC8\xC9\x96*\xFA[\xC1=\xBF\xF2\x1DdsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static DIAMONDCUTFACET_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct DiamondCutFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for DiamondCutFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for DiamondCutFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for DiamondCutFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for DiamondCutFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(DiamondCutFacet)) - .field(&self.address()) - .finish() - } - } - impl DiamondCutFacet { - /// 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(), - DIAMONDCUTFACET_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( - DIAMONDCUTFACET_ABI.clone(), - DIAMONDCUTFACET_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Calls the contract's `diamondCut` (0x1f931c1c) function - pub fn diamond_cut( - &self, - diamond_cut: ::std::vec::Vec, - init: ::ethers::core::types::Address, - calldata: ::ethers::core::types::Bytes, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([31, 147, 28, 28], (diamond_cut, init, calldata)) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `DiamondCut` event - pub fn diamond_cut_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - DiamondCutFilter, - > { - 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, - DiamondCutFilter, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for DiamondCutFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `CannotAddFunctionToDiamondThatAlreadyExists` with signature `CannotAddFunctionToDiamondThatAlreadyExists(bytes4)` and selector `0xebbf5d07` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotAddFunctionToDiamondThatAlreadyExists", - abi = "CannotAddFunctionToDiamondThatAlreadyExists(bytes4)" - )] - pub struct CannotAddFunctionToDiamondThatAlreadyExists { - pub selector: [u8; 4], - } - ///Custom Error type `CannotAddSelectorsToZeroAddress` with signature `CannotAddSelectorsToZeroAddress(bytes4[])` and selector `0x0ae3681c` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotAddSelectorsToZeroAddress", - abi = "CannotAddSelectorsToZeroAddress(bytes4[])" - )] - pub struct CannotAddSelectorsToZeroAddress { - pub selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Custom Error type `CannotRemoveFunctionThatDoesNotExist` with signature `CannotRemoveFunctionThatDoesNotExist(bytes4)` and selector `0x7a08a22d` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotRemoveFunctionThatDoesNotExist", - abi = "CannotRemoveFunctionThatDoesNotExist(bytes4)" - )] - pub struct CannotRemoveFunctionThatDoesNotExist { - pub selector: [u8; 4], - } - ///Custom Error type `CannotRemoveImmutableFunction` with signature `CannotRemoveImmutableFunction(bytes4)` and selector `0x6fafeb08` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotRemoveImmutableFunction", - abi = "CannotRemoveImmutableFunction(bytes4)" - )] - pub struct CannotRemoveImmutableFunction { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionThatDoesNotExists` with signature `CannotReplaceFunctionThatDoesNotExists(bytes4)` and selector `0x7479f939` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionThatDoesNotExists", - abi = "CannotReplaceFunctionThatDoesNotExists(bytes4)" - )] - pub struct CannotReplaceFunctionThatDoesNotExists { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet` with signature `CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)` and selector `0x358d9d1a` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - abi = "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)" - )] - pub struct CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionsFromFacetWithZeroAddress` with signature `CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])` and selector `0xcd98a96f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionsFromFacetWithZeroAddress", - abi = "CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])" - )] - pub struct CannotReplaceFunctionsFromFacetWithZeroAddress { - pub selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Custom Error type `CannotReplaceImmutableFunction` with signature `CannotReplaceImmutableFunction(bytes4)` and selector `0x520300da` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceImmutableFunction", - abi = "CannotReplaceImmutableFunction(bytes4)" - )] - pub struct CannotReplaceImmutableFunction { - pub selector: [u8; 4], - } - ///Custom Error type `IncorrectFacetCutAction` with signature `IncorrectFacetCutAction(uint8)` and selector `0x7fe9a41e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "IncorrectFacetCutAction", abi = "IncorrectFacetCutAction(uint8)")] - pub struct IncorrectFacetCutAction { - pub action: u8, - } - ///Custom Error type `InitializationFunctionReverted` with signature `InitializationFunctionReverted(address,bytes)` and selector `0x192105d7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "InitializationFunctionReverted", - abi = "InitializationFunctionReverted(address,bytes)" - )] - pub struct InitializationFunctionReverted { - pub initialization_contract_address: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - ///Custom Error type `NoBytecodeAtAddress` with signature `NoBytecodeAtAddress(address,string)` and selector `0x919834b9` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "NoBytecodeAtAddress", - abi = "NoBytecodeAtAddress(address,string)" - )] - pub struct NoBytecodeAtAddress { - pub contract_address: ::ethers::core::types::Address, - pub message: ::std::string::String, - } - ///Custom Error type `NoSelectorsProvidedForFacetForCut` with signature `NoSelectorsProvidedForFacetForCut(address)` and selector `0xe767f91f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "NoSelectorsProvidedForFacetForCut", - abi = "NoSelectorsProvidedForFacetForCut(address)" - )] - pub struct NoSelectorsProvidedForFacetForCut { - pub facet_address: ::ethers::core::types::Address, - } - ///Custom Error type `NotOwner` with signature `NotOwner()` and selector `0x30cd7471` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotOwner", abi = "NotOwner()")] - pub struct NotOwner; - ///Custom Error type `RemoveFacetAddressMustBeZeroAddress` with signature `RemoveFacetAddressMustBeZeroAddress(address)` and selector `0xd091bc81` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "RemoveFacetAddressMustBeZeroAddress", - abi = "RemoveFacetAddressMustBeZeroAddress(address)" - )] - pub struct RemoveFacetAddressMustBeZeroAddress { - pub facet_address: ::ethers::core::types::Address, - } - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum DiamondCutFacetErrors { - CannotAddFunctionToDiamondThatAlreadyExists( - CannotAddFunctionToDiamondThatAlreadyExists, - ), - CannotAddSelectorsToZeroAddress(CannotAddSelectorsToZeroAddress), - CannotRemoveFunctionThatDoesNotExist(CannotRemoveFunctionThatDoesNotExist), - CannotRemoveImmutableFunction(CannotRemoveImmutableFunction), - CannotReplaceFunctionThatDoesNotExists(CannotReplaceFunctionThatDoesNotExists), - CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet, - ), - CannotReplaceFunctionsFromFacetWithZeroAddress( - CannotReplaceFunctionsFromFacetWithZeroAddress, - ), - CannotReplaceImmutableFunction(CannotReplaceImmutableFunction), - IncorrectFacetCutAction(IncorrectFacetCutAction), - InitializationFunctionReverted(InitializationFunctionReverted), - NoBytecodeAtAddress(NoBytecodeAtAddress), - NoSelectorsProvidedForFacetForCut(NoSelectorsProvidedForFacetForCut), - NotOwner(NotOwner), - RemoveFacetAddressMustBeZeroAddress(RemoveFacetAddressMustBeZeroAddress), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for DiamondCutFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotAddFunctionToDiamondThatAlreadyExists(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotAddSelectorsToZeroAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotRemoveFunctionThatDoesNotExist(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotRemoveImmutableFunction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceFunctionThatDoesNotExists(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok( - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - decoded, - ), - ); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceFunctionsFromFacetWithZeroAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceImmutableFunction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::IncorrectFacetCutAction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InitializationFunctionReverted(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NoBytecodeAtAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NoSelectorsProvidedForFacetForCut(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotOwner(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::RemoveFacetAddressMustBeZeroAddress(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for DiamondCutFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotAddSelectorsToZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotRemoveFunctionThatDoesNotExist(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotRemoveImmutableFunction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceFunctionThatDoesNotExists(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - element, - ) => ::ethers::core::abi::AbiEncode::encode(element), - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceImmutableFunction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::IncorrectFacetCutAction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InitializationFunctionReverted(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NoBytecodeAtAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NoSelectorsProvidedForFacetForCut(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotOwner(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RemoveFacetAddressMustBeZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for DiamondCutFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for DiamondCutFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotAddSelectorsToZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotRemoveFunctionThatDoesNotExist(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotRemoveImmutableFunction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceFunctionThatDoesNotExists(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - element, - ) => ::core::fmt::Display::fmt(element, f), - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceImmutableFunction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::IncorrectFacetCutAction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InitializationFunctionReverted(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NoBytecodeAtAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NoSelectorsProvidedForFacetForCut(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotOwner(element) => ::core::fmt::Display::fmt(element, f), - Self::RemoveFacetAddressMustBeZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for DiamondCutFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from(value: CannotAddFunctionToDiamondThatAlreadyExists) -> Self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from(value: CannotAddSelectorsToZeroAddress) -> Self { - Self::CannotAddSelectorsToZeroAddress(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from(value: CannotRemoveFunctionThatDoesNotExist) -> Self { - Self::CannotRemoveFunctionThatDoesNotExist(value) - } - } - impl ::core::convert::From for DiamondCutFacetErrors { - fn from(value: CannotRemoveImmutableFunction) -> Self { - Self::CannotRemoveImmutableFunction(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from(value: CannotReplaceFunctionThatDoesNotExists) -> Self { - Self::CannotReplaceFunctionThatDoesNotExists(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from( - value: CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet, - ) -> Self { - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from(value: CannotReplaceFunctionsFromFacetWithZeroAddress) -> Self { - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from(value: CannotReplaceImmutableFunction) -> Self { - Self::CannotReplaceImmutableFunction(value) - } - } - impl ::core::convert::From for DiamondCutFacetErrors { - fn from(value: IncorrectFacetCutAction) -> Self { - Self::IncorrectFacetCutAction(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from(value: InitializationFunctionReverted) -> Self { - Self::InitializationFunctionReverted(value) - } - } - impl ::core::convert::From for DiamondCutFacetErrors { - fn from(value: NoBytecodeAtAddress) -> Self { - Self::NoBytecodeAtAddress(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from(value: NoSelectorsProvidedForFacetForCut) -> Self { - Self::NoSelectorsProvidedForFacetForCut(value) - } - } - impl ::core::convert::From for DiamondCutFacetErrors { - fn from(value: NotOwner) -> Self { - Self::NotOwner(value) - } - } - impl ::core::convert::From - for DiamondCutFacetErrors { - fn from(value: RemoveFacetAddressMustBeZeroAddress) -> Self { - Self::RemoveFacetAddressMustBeZeroAddress(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "DiamondCut", - abi = "DiamondCut((address,uint8,bytes4[])[],address,bytes)" - )] - pub struct DiamondCutFilter { - pub diamond_cut: ::std::vec::Vec, - pub init: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - ///Container type for all input parameters for the `diamondCut` function with signature `diamondCut((address,uint8,bytes4[])[],address,bytes)` and selector `0x1f931c1c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "diamondCut", - abi = "diamondCut((address,uint8,bytes4[])[],address,bytes)" - )] - pub struct DiamondCutCall { - pub diamond_cut: ::std::vec::Vec, - pub init: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - ///`FacetCut(address,uint8,bytes4[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FacetCut { - pub facet_address: ::ethers::core::types::Address, - pub action: u8, - pub function_selectors: ::std::vec::Vec<[u8; 4]>, - } -} diff --git a/crates/binding/src/diamond_loupe_facet.rs b/crates/binding/src/diamond_loupe_facet.rs deleted file mode 100644 index 22c92b694..000000000 --- a/crates/binding/src/diamond_loupe_facet.rs +++ /dev/null @@ -1,583 +0,0 @@ -pub use diamond_loupe_facet::*; -/// 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 diamond_loupe_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("facetAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("facetAddress"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_functionSelector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("facetAddress_"), - 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("facetAddresses"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("facetAddresses"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("facetAddresses_"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("facetFunctionSelectors"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "facetFunctionSelectors", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_facet"), - 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::borrow::ToOwned::to_owned( - "_facetFunctionSelectors", - ), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("facets"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("facets"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("facets_"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct IDiamondLoupe.Facet[]", - ), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("supportsInterface"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("supportsInterface"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_interfaceId"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - 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::View, - }, - ], - ), - ]), - events: ::std::collections::BTreeMap::new(), - errors: ::std::collections::BTreeMap::new(), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static DIAMONDLOUPEFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x16Wa\x08A\x90\x81a\0\x1B\x829\xF3[_\x80\xFD\xFE`\x80`@R`\x046\x10\x15a\0\x11W_\x80\xFD[_5`\xE0\x1C\x80c\x01\xFF\xC9\xA7\x14a\0dW\x80cR\xEFk,\x14a\0_W\x80cz\x0E\xD6'\x14a\0ZW\x80c\xAD\xFC\xA1^\x14a\0UWc\xCD\xFF\xAC\xC6\x14a\0PW_\x80\xFD[a\x05\xEDV[a\x055V[a\x02\xE9V[a\x01 V[4a\0\xB5W`\x01`\x01`\xE0\x1B\x03\x19a\0{6a\0\xB9V[\x16_R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD4` R`\xFF`@_ T\x16\x15\x15`\x80R` `\x80\xF3[_\x80\xFD[` \x90`\x03\x19\x01\x12a\0\xB5W`\x045`\x01`\x01`\xE0\x1B\x03\x19\x81\x16\x81\x03a\0\xB5W\x90V[` \x90` `@\x81\x83\x01\x92\x82\x81R\x85Q\x80\x94R\x01\x93\x01\x91_[\x82\x81\x10a\x01\x03WPPPP\x90V[\x83Q`\x01`\x01`\xA0\x1B\x03\x16\x85R\x93\x81\x01\x93\x92\x81\x01\x92`\x01\x01a\0\xF5V[4a\0\xB5W_6`\x03\x19\x01\x12a\0\xB5W_\x80Q` a\x07\xEC\x839\x81Q\x91RTa\x01H\x81a\x06\x9FV[_\x80\x92[\x80\x84\x10a\x01hW\x81\x83R`@Q\x80a\x01d\x85\x82a\0\xDCV[\x03\x90\xF3[\x90a\x01\x9Aa\x01\x8Da\x01\x88a\x01{\x87a\x06\xE0V[\x90T\x90`\x03\x1B\x1C`\xE0\x1B\x90V[a\x06\x12V[T`\x01`\x01`\xA0\x1B\x03\x16\x90V[_`\x01`\x01`\xA0\x1B\x03\x82\x16\x81[\x84\x81\x10a\x01\xF1W[PPa\x01\xE7W\x81a\x01\xD8a\x01\xDD\x92a\x01\xC9`\x01\x95\x88a\x07W[PPa\x043W\x91a\x04\x17a\x04*\x92a\x03\xD8`\x01\x95a\x03\xC8\x85\x8Ba\x07W[PPa\x043W\x91a\x04\x17a\x04*\x92a\x03\xD8`\x01\x95a\x03\xC8\x85\x8Ba\x07(::ethers::contract::Contract); - impl ::core::clone::Clone for DiamondLoupeFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for DiamondLoupeFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for DiamondLoupeFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for DiamondLoupeFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(DiamondLoupeFacet)) - .field(&self.address()) - .finish() - } - } - impl DiamondLoupeFacet { - /// 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(), - DIAMONDLOUPEFACET_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( - DIAMONDLOUPEFACET_ABI.clone(), - DIAMONDLOUPEFACET_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Calls the contract's `facetAddress` (0xcdffacc6) function - pub fn facet_address( - &self, - function_selector: [u8; 4], - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([205, 255, 172, 198], function_selector) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `facetAddresses` (0x52ef6b2c) function - pub fn facet_addresses( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::std::vec::Vec<::ethers::core::types::Address>, - > { - self.0 - .method_hash([82, 239, 107, 44], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `facetFunctionSelectors` (0xadfca15e) function - pub fn facet_function_selectors( - &self, - facet: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([173, 252, 161, 94], facet) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `facets` (0x7a0ed627) function - pub fn facets( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([122, 14, 214, 39], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `supportsInterface` (0x01ffc9a7) function - pub fn supports_interface( - &self, - interface_id: [u8; 4], - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([1, 255, 201, 167], interface_id) - .expect("method not found (this should never happen)") - } - } - impl From<::ethers::contract::Contract> - for DiamondLoupeFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Container type for all input parameters for the `facetAddress` function with signature `facetAddress(bytes4)` and selector `0xcdffacc6` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "facetAddress", abi = "facetAddress(bytes4)")] - pub struct FacetAddressCall { - pub function_selector: [u8; 4], - } - ///Container type for all input parameters for the `facetAddresses` function with signature `facetAddresses()` and selector `0x52ef6b2c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "facetAddresses", abi = "facetAddresses()")] - pub struct FacetAddressesCall; - ///Container type for all input parameters for the `facetFunctionSelectors` function with signature `facetFunctionSelectors(address)` and selector `0xadfca15e` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "facetFunctionSelectors", abi = "facetFunctionSelectors(address)")] - pub struct FacetFunctionSelectorsCall { - pub facet: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `facets` function with signature `facets()` and selector `0x7a0ed627` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "facets", abi = "facets()")] - pub struct FacetsCall; - ///Container type for all input parameters for the `supportsInterface` function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "supportsInterface", abi = "supportsInterface(bytes4)")] - pub struct SupportsInterfaceCall { - pub interface_id: [u8; 4], - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum DiamondLoupeFacetCalls { - FacetAddress(FacetAddressCall), - FacetAddresses(FacetAddressesCall), - FacetFunctionSelectors(FacetFunctionSelectorsCall), - Facets(FacetsCall), - SupportsInterface(SupportsInterfaceCall), - } - impl ::ethers::core::abi::AbiDecode for DiamondLoupeFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FacetAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FacetAddresses(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FacetFunctionSelectors(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Facets(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SupportsInterface(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for DiamondLoupeFacetCalls { - fn encode(self) -> Vec { - match self { - Self::FacetAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FacetAddresses(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FacetFunctionSelectors(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Facets(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::SupportsInterface(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for DiamondLoupeFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::FacetAddress(element) => ::core::fmt::Display::fmt(element, f), - Self::FacetAddresses(element) => ::core::fmt::Display::fmt(element, f), - Self::FacetFunctionSelectors(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::Facets(element) => ::core::fmt::Display::fmt(element, f), - Self::SupportsInterface(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for DiamondLoupeFacetCalls { - fn from(value: FacetAddressCall) -> Self { - Self::FacetAddress(value) - } - } - impl ::core::convert::From for DiamondLoupeFacetCalls { - fn from(value: FacetAddressesCall) -> Self { - Self::FacetAddresses(value) - } - } - impl ::core::convert::From for DiamondLoupeFacetCalls { - fn from(value: FacetFunctionSelectorsCall) -> Self { - Self::FacetFunctionSelectors(value) - } - } - impl ::core::convert::From for DiamondLoupeFacetCalls { - fn from(value: FacetsCall) -> Self { - Self::Facets(value) - } - } - impl ::core::convert::From for DiamondLoupeFacetCalls { - fn from(value: SupportsInterfaceCall) -> Self { - Self::SupportsInterface(value) - } - } - ///Container type for all return fields from the `facetAddress` function with signature `facetAddress(bytes4)` and selector `0xcdffacc6` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FacetAddressReturn { - pub facet_address: ::ethers::core::types::Address, - } - ///Container type for all return fields from the `facetAddresses` function with signature `facetAddresses()` and selector `0x52ef6b2c` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FacetAddressesReturn { - pub facet_addresses: ::std::vec::Vec<::ethers::core::types::Address>, - } - ///Container type for all return fields from the `facetFunctionSelectors` function with signature `facetFunctionSelectors(address)` and selector `0xadfca15e` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FacetFunctionSelectorsReturn { - pub facet_function_selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Container type for all return fields from the `facets` function with signature `facets()` and selector `0x7a0ed627` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FacetsReturn { - pub facets: ::std::vec::Vec, - } - ///Container type for all return fields from the `supportsInterface` function with signature `supportsInterface(bytes4)` and selector `0x01ffc9a7` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SupportsInterfaceReturn(pub bool); - ///`Facet(address,bytes4[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Facet { - pub facet_address: ::ethers::core::types::Address, - pub function_selectors: ::std::vec::Vec<[u8; 4]>, - } -} diff --git a/crates/binding/src/gateway_diamond.rs b/crates/binding/src/gateway_diamond.rs deleted file mode 100644 index 47329f7d5..000000000 --- a/crates/binding/src/gateway_diamond.rs +++ /dev/null @@ -1,1568 +0,0 @@ -pub use gateway_diamond::*; -/// 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 gateway_diamond { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::Some(::ethers::core::abi::ethabi::Constructor { - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_diamondCut"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct IDiamond.FacetCut[]", - ), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("params"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(16usize), - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct GatewayDiamond.ConstructorParams", - ), - ), - }, - ], - }), - functions: ::std::collections::BTreeMap::new(), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("DiamondCut"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("DiamondCut"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_diamondCut"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_init"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MembershipUpdated"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("MembershipUpdated"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("OwnershipTransferred"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "OwnershipTransferred", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("oldOwner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newOwner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned( - "CannotAddFunctionToDiamondThatAlreadyExists", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotAddFunctionToDiamondThatAlreadyExists", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotAddSelectorsToZeroAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotAddSelectorsToZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selectors"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotRemoveFunctionThatDoesNotExist", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotRemoveFunctionThatDoesNotExist", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotRemoveImmutableFunction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotRemoveImmutableFunction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionThatDoesNotExists", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionThatDoesNotExists", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionsFromFacetWithZeroAddress", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionsFromFacetWithZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selectors"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotReplaceImmutableFunction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceImmutableFunction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FunctionNotFound"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FunctionNotFound"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_functionSelector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("IncorrectFacetCutAction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "IncorrectFacetCutAction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_action"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "enum IDiamond.FacetCutAction", - ), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InitializationFunctionReverted"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InitializationFunctionReverted", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned( - "_initializationContractAddress", - ), - 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("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidMajorityPercentage"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidMajorityPercentage", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidSubmissionPeriod"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidSubmissionPeriod", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NoBytecodeAtAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NoBytecodeAtAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_contractAddress"), - 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("_message"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "NoSelectorsProvidedForFacetForCut", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NoSelectorsProvidedForFacetForCut", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_facetAddress"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("OldConfigurationNumber"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "OldConfigurationNumber", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "RemoveFacetAddressMustBeZeroAddress", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "RemoveFacetAddressMustBeZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_facetAddress"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ]), - receive: true, - fallback: true, - } - } - ///The parsed JSON ABI of the contract. - pub static GATEWAYDIAMOND_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = ::ethers::contract::Lazy::new( - __abi, - ); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80`@R4b\0\r\x91Wb\0\x1A\xC5\x808\x03\x80\x91b\0\0 \x82`\x80b\0\x0E\xF5V[`\x809`@\x81\x12b\0\r\x91W`\x80Q`\x01`\x01`@\x1B\x03\x81\x11b\0\r\x91W`\x80\x82\x01`\x9F\x82\x01\x12\x15b\0\r\x91W\x80`\x80\x01Qb\0\0]\x81b\0\x0F\x19V[\x90b\0\0m`@Q\x92\x83b\0\x0E\xF5V[\x80\x82R` \x82\x01\x80\x93\x85`\x80\x01` \x84`\x05\x1B\x83`\x80\x01\x01\x01\x11b\0\r\x91W`\xA0\x81\x01\x91[`\xA0`\x05\x85\x90\x1B\x83\x01\x01\x83\x10b\0\r\xB3WPP`\xA0Q\x93\x91PP`\x01`\x01`@\x1B\x03\x83\x11b\0\r\x91W`\xC0\x83\x85\x03\x12b\0\r\x91W`@Q\x92`\xC0\x84\x01`\x01`\x01`@\x1B\x03\x81\x11\x85\x82\x10\x17b\0\x05\xD3W`@R`\x80\x81\x01Q\x84R`\xA0\x81\x01Qa\xFF\xFF\x81\x16\x81\x03b\0\r\x91W` \x85\x01R`\xC0\x81\x01Q`\xFF\x81\x16\x81\x03b\0\r\x91W`@\x85\x01R`\xE0\x81\x01Q\x94`\x01`\x01`@\x1B\x03\x86\x11b\0\r\x91W`@\x82\x87\x01\x82\x03\x12b\0\r\x91W`@Q\x95b\0\x01G\x87b\0\x0E\xD9V[\x82\x81\x01`\x80\x01Q`\x01`\x01`@\x1B\x03\x81\x16\x81\x03b\0\r\x91W\x87R`\xA0\x83\x82\x01\x01Q\x90`\x01`\x01`@\x1B\x03\x82\x11b\0\r\x91W`\x80\x83\x01`\x9F\x85\x83\x01\x84\x01\x01\x12\x15b\0\r\x91W\x81\x81\x85`\x80\x01\x01\x01Q\x90b\0\x01\xA0\x82b\0\x0F\x19V[\x92b\0\x01\xB0`@Q\x94\x85b\0\x0E\xF5V[\x82\x84R` \x84\x01\x91`\x80\x86\x01`\xA0\x88\x83\x01\x84\x01`\x05\x87\x90\x1B\x01\x01\x11b\0\r\x91W`\xA0\x87\x82\x01\x83\x01\x01\x92\x91[`\xA0\x88\x83\x01\x82\x01`\x05\x87\x90\x1B\x01\x01\x84\x10b\0\r\x95WPPPPP` \x87\x01R``\x85\x01\x95\x86Ra\x01\0\x82\x01Q`\x01`\x01`@\x1B\x03\x81\x11b\0\r\x91W`\x80\x82\x01`\x9F\x84\x83\x01\x01\x12\x15b\0\r\x91W\x80\x83`\x80\x01\x01Qb\0\x029\x81b\0\x0F\x19V[\x92b\0\x02I`@Q\x94\x85b\0\x0E\xF5V[\x81\x84R` \x84\x01\x92`\x80\x82\x01`\xA0\x87\x83\x01`\x05\x86\x90\x1B\x01\x01\x11b\0\r\x91W`\xA0\x86\x82\x01\x01\x93[`\xA0\x87\x83\x01`\x05\x86\x90\x1B\x01\x01\x85\x10b\0\x0C\xABWPPPPP`\x80\x85\x01Ra\x01 \x01Q`\xA0\x84\x01R\x82Q\x15b\0\x0C\x99W`\xFF`@\x84\x01Q\x16`3\x81\x10\x90\x81\x15b\0\x0C\x8DW[Pb\0\x0C{W\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5\x80T3`\x01`\x01`\xA0\x1B\x03\x19\x82\x16\x81\x17\x90\x92U`@\x80Q`\x01`\x01`\xA0\x1B\x03\x90\x92\x16\x82R` \x82\x01\x92\x90\x92R\x7F\x8B\xE0\x07\x9CS\x16Y\x14\x13D\xCD\x1F\xD0\xA4\xF2\x84\x19I\x7F\x97\"\xA3\xDA\xAF\xE3\xB4\x18okdW\xE0\x91\x90\xA1`@Q`\x01`\x01`@\x1B\x03` \x82\x01\x90\x81\x11\x90\x82\x11\x17b\0\x05\xD3W` \x81\x01`@R_\x81R\x82Q_[\x81\x81\x10b\0\x06AWPP`@Q\x92``\x84\x01\x90``\x85RQ\x80\x91R`\x80\x84\x01\x90`\x80\x81`\x05\x1B\x86\x01\x01\x93\x91_\x90[\x82\x82\x10b\0\x05\xE7W\x88\x88\x7F\x8F\xAAp\x87\x86q\xCC\xD2\x12\xD2\x07q\xB7\x95\xC5\n\xF8\xFD?\xF6\xCF'\xF4\xBD\xE5~]M\xE0\xAE\xB6s\x89\x80b\0\x03\xC8\x8B\x8B_` \x85\x01R\x83\x82\x03`@\x85\x01Rb\0\x0F\xF7V[\x03\x90\xA1\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD4` \x90\x81R\x7F}\xFDH\xDD\x9D\xEF\0/\xA9\xB4\xA0[\xD6\xB7&\xA6\xC3\x13\xC3b\xD3\xF3\xE8A=zu \xF0\t\r%\x80T`\xFF\x19\x90\x81\x16`\x01\x90\x81\x17\x90\x92U\x7FM\x7FL\x8A/\xB5\xB3\\\xA3\xC2w\xC98\x88\xB4\x7F\x0F\")\xBD\xCC\xCFfPM\x1B\xA4\x8E\x88\xB8\x81d\x80T\x82\x16\x83\x17\x90UcH\xE2\xB0\x93`\xE0\x1B_R\x7FY\xBAM\xB4\xA2\x13\xE8\x16\x1D\xE5\x97\xB8\xC1\r\xB0\xE7\xE7\xBAZ\xCE\\&\x8E67\x9E$\x9Am-B\xC9\x80T\x82\x16\x83\x17\x90U`\x06\x80Tb\xFF\xFF\xFF\x19\x16b\x01\x01\n\x17\x90U\x93Q\x80Q`\x12\x80T`\x01`\x01`@\x1B\x03\x19\x16`\x01`\x01`@\x1B\x03\x92\x83\x16\x17\x90U\x92\x01Q\x80Q\x91\x94\x92\x82\x11b\0\x05\xD3Wh\x01\0\0\0\0\0\0\0\0\x82\x11b\0\x05\xD3W` \x90`\x13T\x83`\x13U\x80\x84\x10b\0\x05\xB4W[P\x01`\x13_R` _ _[\x83\x81\x10b\0\x05\x97Wb\0\x05\x87`\x80\x87\x89\x88\x82Q\x82U`\xFF`@\x84\x01Q\x16\x90`\x04T\x16\x17`\x04U`\x0CU`\xA0\x81\x01Q`\x05U`\x05`\xC1\x1B`\x01\x80`\xC0\x1B\x03`\x03T\x16\x17`\x03U` \x81\x01Qb\xFF\xFF\0`\x14T\x91`\x08\x1B\x16\x90b\xFF\xFF\0\x19\x16\x17`\x14Uh\x01\0\0\0\0\0\0\0\x01`\x01\x80\x84\x1B\x03\x19`\x1DT\x16\x17`\x1DU\x01Q`@Q\x90b\0\x05y\x82b\0\x0E\xD9V[\x81R_` \x82\x01Rb\0\x13^V[`@Qa\x016\x90\x81b\0\x19O\x829\xF3[\x82Q`\x01`\x01`\xA0\x1B\x03\x16\x81\x83\x01U` \x90\x92\x01\x91\x86\x01b\0\x04\xEEV[b\0\x05\xCC\x90`\x13_R\x84\x84_ \x91\x82\x01\x91\x01b\0\x0FiV[\x86b\0\x04\xE2V[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[\x90\x91\x92\x94` \x80b\0\x062`\x01\x93`\x7F\x19\x8B\x82\x03\x01\x86R```@\x8BQ\x87\x80`\xA0\x1B\x03\x81Q\x16\x84Rb\0\x06!\x86\x82\x01Q\x87\x86\x01\x90b\0\x0F\xAAV[\x01Q\x91\x81`@\x82\x01R\x01\x90b\0\x0F\xB8V[\x97\x01\x92\x01\x92\x01\x90\x92\x91b\0\x03\x81V[`@b\0\x06O\x82\x87b\0\x0F\x81V[Q\x01Q`\x01`\x01`\xA0\x1B\x03b\0\x06f\x83\x88b\0\x0F\x81V[QQ\x16\x90\x80Q\x15b\0\x0CbW` b\0\x06\x80\x84\x89b\0\x0F\x81V[Q\x01Q`\x03\x81\x10\x15b\0\x0CNW\x80b\0\x08\xA0WP\x81\x15b\0\x08uWa\xFF\xFF_\x80Q` b\0\x1A\x85\x839\x81Q\x91RT\x16b\0\x06\xFC`@Qb\0\x06\xC1\x81b\0\x0E\xBDV[`!\x81R\x7FdiamondCut: Add facet has no cod` \x82\x01R`e`\xF8\x1B`@\x82\x01R\x84b\0\x18\xCDV[\x81Q\x91_\x91[\x83\x83\x10b\0\x07\x1AWPPPPP`\x01\x90[\x01b\0\x03SV[`\x01`\x01`\xE0\x1B\x03\x19b\0\x07/\x84\x84b\0\x0F\x81V[Q\x16_\x81\x81R_\x80Q` b\0\x1A\xA5\x839\x81Q\x91R` R`@\x90 T\x90\x91\x90`\x01`\x01`\xA0\x1B\x03\x16b\0\x08\\Wb\0\x07\xCE`@Qb\0\x07o\x81b\0\x0E\xD9V[\x87\x81Ra\xFF\xFF\x92\x90\x92\x16` \x80\x84\x01\x82\x81R_\x86\x81R_\x80Q` b\0\x1A\xA5\x839\x81Q\x91R\x90\x92R`@\x90\x91 \x93Q\x84T\x91Q`\x01`\x01`\xB0\x1B\x03\x19\x90\x92\x16`\x01`\x01`\xA0\x1B\x03\x91\x90\x91\x16\x17`\xA0\x91\x90\x91\x1Ba\xFF\xFF`\xA0\x1B\x16\x17\x90\x92UV[_\x80Q` b\0\x1A\x85\x839\x81Q\x91RT\x91h\x01\0\0\0\0\0\0\0\0\x83\x10\x15b\0\x05\xD3Wb\0\x083\x90b\0\x08\x16`\x01\x94\x85\x81\x01_\x80Q` b\0\x1A\x85\x839\x81Q\x91RUb\0\x17\xE5V[\x90\x91\x90c\xFF\xFF\xFF\xFF\x83T\x91`\x03\x1B\x92`\xE0\x1C\x83\x1B\x92\x1B\x19\x16\x17\x90UV[a\xFF\xFF\x81\x14b\0\x08HW\x81\x01\x92\x01\x91b\0\x07\x02V[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[`@Qc\xEB\xBF]\x07`\xE0\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc\x02\xB8\xDA\x07`\xE2\x1B\x81R` `\x04\x82\x01R\x90\x81\x90b\0\x08\x9C\x90`$\x83\x01\x90b\0\x0F\xB8V[\x03\x90\xFD[`\x01\x81\x03b\0\n\x14WP\x81\x15b\0\t\xEDWb\0\t\x05`@Qb\0\x08\xC3\x81b\0\x0E\xBDV[`(\x81R\x7FLibDiamondCut: Replace facet has` \x82\x01Rg no code`\xC0\x1B`@\x82\x01R\x83b\0\x18\xCDV[\x80Q\x90_[\x82\x81\x10b\0\t\x1FWPPPP`\x01\x90b\0\x07\x13V[`\x01`\x01`\xE0\x1B\x03\x19b\0\t4\x82\x84b\0\x0F\x81V[Q\x16_\x81\x81R_\x80Q` b\0\x1A\xA5\x839\x81Q\x91R` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x160\x81\x14b\0\t\xD4W\x85\x81\x14b\0\t\xBBW\x15b\0\t\xA3W_\x90\x81R_\x80Q` b\0\x1A\xA5\x839\x81Q\x91R` R`@\x90 \x80T`\x01`\x01`\xA0\x1B\x03\x19\x16\x85\x17\x90U`\x01\x01b\0\t\nV[`$\x90`@Q\x90cty\xF99`\xE0\x1B\x82R`\x04\x82\x01R\xFD[`@Qc\x1A\xC6\xCE\x8D`\xE1\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc)\x01\x80m`\xE1\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc\xCD\x98\xA9o`\xE0\x1B\x81R` `\x04\x82\x01R\x90\x81\x90b\0\x08\x9C\x90`$\x83\x01\x90b\0\x0F\xB8V[`\x02\x81\x03b\0\x0C,WP_\x80Q` b\0\x1A\x85\x839\x81Q\x91RT\x91\x80b\0\x0C\x14WP\x80Q\x90_\x92[\x82\x84\x10b\0\nQWPPPP`\x01\x90b\0\x07\x13V[`\x01`\x01`\xE0\x1B\x03\x19b\0\nf\x85\x84b\0\x0F\x81V[Q\x16\x93\x84_R_\x80Q` b\0\x1A\xA5\x839\x81Q\x91R` R`@_ \x94`@Q\x95b\0\n\x92\x87b\0\x0E\xD9V[T`\x01`\x01`\xA0\x1B\x03\x81\x16\x80\x88R`\xA0\x91\x90\x91\x1Ca\xFF\xFF\x16` \x88\x01R\x15b\0\x0B\xFCW\x85Q`\x01`\x01`\xA0\x1B\x03\x160\x14b\0\x0B\xE4W\x82\x15b\0\x08HW_\x19\x80\x93\x01\x95\x86a\xFF\xFF` \x83\x01Q\x16\x03b\0\x0BcW[P_\x80Q` b\0\x1A\x85\x839\x81Q\x91RT\x92\x83\x15b\0\x0BOW`\x01\x93\x01b\0\x0B\r\x81b\0\x17\xE5V[c\xFF\xFF\xFF\xFF\x82T\x91`\x03\x1B\x1B\x19\x16\x90U_\x80Q` b\0\x1A\x85\x839\x81Q\x91RU_R_\x80Q` b\0\x1A\xA5\x839\x81Q\x91R` R_`@\x81 U\x01\x92b\0\n\x15a\0mW=_\xF3[=_\xFD[`$\x90`@Q\x90c\n\x82\xDDs`\xE3\x1B\x82R`\x04\x82\x01R\xFD[_\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x90\x91 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\0\xECW_\x80\x836\x82\x807\x816\x91Z\xF4=_\x80>\x15a\0mW=_\xF3[c\n\x82\xDDs`\xE3\x1B`\x80R`\x84R`$`\x80\xFD\xFE\xA2dipfsX\"\x12 r\xF5\xB3\xCD\x815\xD7w\x88\x84F\x95G\xEA3\xBA\xE2v\xDF\xD1jb\x96\xC9\0%\x93\x17\xA4\x1Ax_dsolcC\0\x08\x17\x003\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD3\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2"; - /// The bytecode of the contract. - pub static GATEWAYDIAMOND_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R6\x15a\0\x89W_\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x90\x91 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\0qW_\x80\x836\x82\x807\x816\x91Z\xF4=_\x80>\x15a\0mW=_\xF3[=_\xFD[`$\x90`@Q\x90c\n\x82\xDDs`\xE3\x1B\x82R`\x04\x82\x01R\xFD[_\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x90\x91 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\0\xECW_\x80\x836\x82\x807\x816\x91Z\xF4=_\x80>\x15a\0mW=_\xF3[c\n\x82\xDDs`\xE3\x1B`\x80R`\x84R`$`\x80\xFD\xFE\xA2dipfsX\"\x12 r\xF5\xB3\xCD\x815\xD7w\x88\x84F\x95G\xEA3\xBA\xE2v\xDF\xD1jb\x96\xC9\0%\x93\x17\xA4\x1Ax_dsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static GATEWAYDIAMOND_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct GatewayDiamond(::ethers::contract::Contract); - impl ::core::clone::Clone for GatewayDiamond { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for GatewayDiamond { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for GatewayDiamond { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for GatewayDiamond { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(GatewayDiamond)) - .field(&self.address()) - .finish() - } - } - impl GatewayDiamond { - /// 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(), - GATEWAYDIAMOND_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( - GATEWAYDIAMOND_ABI.clone(), - GATEWAYDIAMOND_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Gets the contract's `DiamondCut` event - pub fn diamond_cut_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - DiamondCutFilter, - > { - self.0.event() - } - ///Gets the contract's `MembershipUpdated` event - pub fn membership_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - MembershipUpdatedFilter, - > { - 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() - } - /// Returns an `Event` builder for all the events of this contract. - pub fn events( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - GatewayDiamondEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for GatewayDiamond { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `CannotAddFunctionToDiamondThatAlreadyExists` with signature `CannotAddFunctionToDiamondThatAlreadyExists(bytes4)` and selector `0xebbf5d07` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotAddFunctionToDiamondThatAlreadyExists", - abi = "CannotAddFunctionToDiamondThatAlreadyExists(bytes4)" - )] - pub struct CannotAddFunctionToDiamondThatAlreadyExists { - pub selector: [u8; 4], - } - ///Custom Error type `CannotAddSelectorsToZeroAddress` with signature `CannotAddSelectorsToZeroAddress(bytes4[])` and selector `0x0ae3681c` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotAddSelectorsToZeroAddress", - abi = "CannotAddSelectorsToZeroAddress(bytes4[])" - )] - pub struct CannotAddSelectorsToZeroAddress { - pub selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Custom Error type `CannotRemoveFunctionThatDoesNotExist` with signature `CannotRemoveFunctionThatDoesNotExist(bytes4)` and selector `0x7a08a22d` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotRemoveFunctionThatDoesNotExist", - abi = "CannotRemoveFunctionThatDoesNotExist(bytes4)" - )] - pub struct CannotRemoveFunctionThatDoesNotExist { - pub selector: [u8; 4], - } - ///Custom Error type `CannotRemoveImmutableFunction` with signature `CannotRemoveImmutableFunction(bytes4)` and selector `0x6fafeb08` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotRemoveImmutableFunction", - abi = "CannotRemoveImmutableFunction(bytes4)" - )] - pub struct CannotRemoveImmutableFunction { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionThatDoesNotExists` with signature `CannotReplaceFunctionThatDoesNotExists(bytes4)` and selector `0x7479f939` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionThatDoesNotExists", - abi = "CannotReplaceFunctionThatDoesNotExists(bytes4)" - )] - pub struct CannotReplaceFunctionThatDoesNotExists { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet` with signature `CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)` and selector `0x358d9d1a` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - abi = "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)" - )] - pub struct CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionsFromFacetWithZeroAddress` with signature `CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])` and selector `0xcd98a96f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionsFromFacetWithZeroAddress", - abi = "CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])" - )] - pub struct CannotReplaceFunctionsFromFacetWithZeroAddress { - pub selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Custom Error type `CannotReplaceImmutableFunction` with signature `CannotReplaceImmutableFunction(bytes4)` and selector `0x520300da` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceImmutableFunction", - abi = "CannotReplaceImmutableFunction(bytes4)" - )] - pub struct CannotReplaceImmutableFunction { - pub selector: [u8; 4], - } - ///Custom Error type `FunctionNotFound` with signature `FunctionNotFound(bytes4)` and selector `0x5416eb98` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FunctionNotFound", abi = "FunctionNotFound(bytes4)")] - pub struct FunctionNotFound { - pub function_selector: [u8; 4], - } - ///Custom Error type `IncorrectFacetCutAction` with signature `IncorrectFacetCutAction(uint8)` and selector `0x7fe9a41e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "IncorrectFacetCutAction", abi = "IncorrectFacetCutAction(uint8)")] - pub struct IncorrectFacetCutAction { - pub action: u8, - } - ///Custom Error type `InitializationFunctionReverted` with signature `InitializationFunctionReverted(address,bytes)` and selector `0x192105d7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "InitializationFunctionReverted", - abi = "InitializationFunctionReverted(address,bytes)" - )] - pub struct InitializationFunctionReverted { - pub initialization_contract_address: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - ///Custom Error type `InvalidMajorityPercentage` with signature `InvalidMajorityPercentage()` and selector `0x75c3b427` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidMajorityPercentage", abi = "InvalidMajorityPercentage()")] - pub struct InvalidMajorityPercentage; - ///Custom Error type `InvalidSubmissionPeriod` with signature `InvalidSubmissionPeriod()` and selector `0x312f8e05` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidSubmissionPeriod", abi = "InvalidSubmissionPeriod()")] - pub struct InvalidSubmissionPeriod; - ///Custom Error type `NoBytecodeAtAddress` with signature `NoBytecodeAtAddress(address,string)` and selector `0x919834b9` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "NoBytecodeAtAddress", - abi = "NoBytecodeAtAddress(address,string)" - )] - pub struct NoBytecodeAtAddress { - pub contract_address: ::ethers::core::types::Address, - pub message: ::std::string::String, - } - ///Custom Error type `NoSelectorsProvidedForFacetForCut` with signature `NoSelectorsProvidedForFacetForCut(address)` and selector `0xe767f91f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "NoSelectorsProvidedForFacetForCut", - abi = "NoSelectorsProvidedForFacetForCut(address)" - )] - pub struct NoSelectorsProvidedForFacetForCut { - pub facet_address: ::ethers::core::types::Address, - } - ///Custom Error type `OldConfigurationNumber` with signature `OldConfigurationNumber()` and selector `0x6e8d7c4a` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "OldConfigurationNumber", abi = "OldConfigurationNumber()")] - pub struct OldConfigurationNumber; - ///Custom Error type `RemoveFacetAddressMustBeZeroAddress` with signature `RemoveFacetAddressMustBeZeroAddress(address)` and selector `0xd091bc81` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "RemoveFacetAddressMustBeZeroAddress", - abi = "RemoveFacetAddressMustBeZeroAddress(address)" - )] - pub struct RemoveFacetAddressMustBeZeroAddress { - pub facet_address: ::ethers::core::types::Address, - } - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum GatewayDiamondErrors { - CannotAddFunctionToDiamondThatAlreadyExists( - CannotAddFunctionToDiamondThatAlreadyExists, - ), - CannotAddSelectorsToZeroAddress(CannotAddSelectorsToZeroAddress), - CannotRemoveFunctionThatDoesNotExist(CannotRemoveFunctionThatDoesNotExist), - CannotRemoveImmutableFunction(CannotRemoveImmutableFunction), - CannotReplaceFunctionThatDoesNotExists(CannotReplaceFunctionThatDoesNotExists), - CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet, - ), - CannotReplaceFunctionsFromFacetWithZeroAddress( - CannotReplaceFunctionsFromFacetWithZeroAddress, - ), - CannotReplaceImmutableFunction(CannotReplaceImmutableFunction), - FunctionNotFound(FunctionNotFound), - IncorrectFacetCutAction(IncorrectFacetCutAction), - InitializationFunctionReverted(InitializationFunctionReverted), - InvalidMajorityPercentage(InvalidMajorityPercentage), - InvalidSubmissionPeriod(InvalidSubmissionPeriod), - NoBytecodeAtAddress(NoBytecodeAtAddress), - NoSelectorsProvidedForFacetForCut(NoSelectorsProvidedForFacetForCut), - OldConfigurationNumber(OldConfigurationNumber), - RemoveFacetAddressMustBeZeroAddress(RemoveFacetAddressMustBeZeroAddress), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for GatewayDiamondErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotAddFunctionToDiamondThatAlreadyExists(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotAddSelectorsToZeroAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotRemoveFunctionThatDoesNotExist(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotRemoveImmutableFunction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceFunctionThatDoesNotExists(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok( - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - decoded, - ), - ); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceFunctionsFromFacetWithZeroAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceImmutableFunction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FunctionNotFound(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::IncorrectFacetCutAction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InitializationFunctionReverted(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidMajorityPercentage(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidSubmissionPeriod(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NoBytecodeAtAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NoSelectorsProvidedForFacetForCut(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::OldConfigurationNumber(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::RemoveFacetAddressMustBeZeroAddress(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for GatewayDiamondErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotAddSelectorsToZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotRemoveFunctionThatDoesNotExist(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotRemoveImmutableFunction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceFunctionThatDoesNotExists(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - element, - ) => ::ethers::core::abi::AbiEncode::encode(element), - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceImmutableFunction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FunctionNotFound(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::IncorrectFacetCutAction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InitializationFunctionReverted(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidMajorityPercentage(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidSubmissionPeriod(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NoBytecodeAtAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NoSelectorsProvidedForFacetForCut(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::OldConfigurationNumber(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RemoveFacetAddressMustBeZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for GatewayDiamondErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for GatewayDiamondErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotAddSelectorsToZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotRemoveFunctionThatDoesNotExist(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotRemoveImmutableFunction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceFunctionThatDoesNotExists(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - element, - ) => ::core::fmt::Display::fmt(element, f), - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceImmutableFunction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::FunctionNotFound(element) => ::core::fmt::Display::fmt(element, f), - Self::IncorrectFacetCutAction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InitializationFunctionReverted(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidMajorityPercentage(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidSubmissionPeriod(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NoBytecodeAtAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NoSelectorsProvidedForFacetForCut(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::OldConfigurationNumber(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RemoveFacetAddressMustBeZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for GatewayDiamondErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From - for GatewayDiamondErrors { - fn from(value: CannotAddFunctionToDiamondThatAlreadyExists) -> Self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(value) - } - } - impl ::core::convert::From - for GatewayDiamondErrors { - fn from(value: CannotAddSelectorsToZeroAddress) -> Self { - Self::CannotAddSelectorsToZeroAddress(value) - } - } - impl ::core::convert::From - for GatewayDiamondErrors { - fn from(value: CannotRemoveFunctionThatDoesNotExist) -> Self { - Self::CannotRemoveFunctionThatDoesNotExist(value) - } - } - impl ::core::convert::From for GatewayDiamondErrors { - fn from(value: CannotRemoveImmutableFunction) -> Self { - Self::CannotRemoveImmutableFunction(value) - } - } - impl ::core::convert::From - for GatewayDiamondErrors { - fn from(value: CannotReplaceFunctionThatDoesNotExists) -> Self { - Self::CannotReplaceFunctionThatDoesNotExists(value) - } - } - impl ::core::convert::From - for GatewayDiamondErrors { - fn from( - value: CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet, - ) -> Self { - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(value) - } - } - impl ::core::convert::From - for GatewayDiamondErrors { - fn from(value: CannotReplaceFunctionsFromFacetWithZeroAddress) -> Self { - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(value) - } - } - impl ::core::convert::From for GatewayDiamondErrors { - fn from(value: CannotReplaceImmutableFunction) -> Self { - Self::CannotReplaceImmutableFunction(value) - } - } - impl ::core::convert::From for GatewayDiamondErrors { - fn from(value: FunctionNotFound) -> Self { - Self::FunctionNotFound(value) - } - } - impl ::core::convert::From for GatewayDiamondErrors { - fn from(value: IncorrectFacetCutAction) -> Self { - Self::IncorrectFacetCutAction(value) - } - } - impl ::core::convert::From for GatewayDiamondErrors { - fn from(value: InitializationFunctionReverted) -> Self { - Self::InitializationFunctionReverted(value) - } - } - impl ::core::convert::From for GatewayDiamondErrors { - fn from(value: InvalidMajorityPercentage) -> Self { - Self::InvalidMajorityPercentage(value) - } - } - impl ::core::convert::From for GatewayDiamondErrors { - fn from(value: InvalidSubmissionPeriod) -> Self { - Self::InvalidSubmissionPeriod(value) - } - } - impl ::core::convert::From for GatewayDiamondErrors { - fn from(value: NoBytecodeAtAddress) -> Self { - Self::NoBytecodeAtAddress(value) - } - } - impl ::core::convert::From - for GatewayDiamondErrors { - fn from(value: NoSelectorsProvidedForFacetForCut) -> Self { - Self::NoSelectorsProvidedForFacetForCut(value) - } - } - impl ::core::convert::From for GatewayDiamondErrors { - fn from(value: OldConfigurationNumber) -> Self { - Self::OldConfigurationNumber(value) - } - } - impl ::core::convert::From - for GatewayDiamondErrors { - fn from(value: RemoveFacetAddressMustBeZeroAddress) -> Self { - Self::RemoveFacetAddressMustBeZeroAddress(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "DiamondCut", - abi = "DiamondCut((address,uint8,bytes4[])[],address,bytes)" - )] - pub struct DiamondCutFilter { - pub diamond_cut: ::std::vec::Vec, - pub init: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "MembershipUpdated", - abi = "MembershipUpdated(((uint256,address,bytes)[],uint64))" - )] - pub struct MembershipUpdatedFilter(pub Membership); - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "OwnershipTransferred", - abi = "OwnershipTransferred(address,address)" - )] - pub struct OwnershipTransferredFilter { - pub old_owner: ::ethers::core::types::Address, - pub new_owner: ::ethers::core::types::Address, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum GatewayDiamondEvents { - DiamondCutFilter(DiamondCutFilter), - MembershipUpdatedFilter(MembershipUpdatedFilter), - OwnershipTransferredFilter(OwnershipTransferredFilter), - } - impl ::ethers::contract::EthLogDecode for GatewayDiamondEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = DiamondCutFilter::decode_log(log) { - return Ok(GatewayDiamondEvents::DiamondCutFilter(decoded)); - } - if let Ok(decoded) = MembershipUpdatedFilter::decode_log(log) { - return Ok(GatewayDiamondEvents::MembershipUpdatedFilter(decoded)); - } - if let Ok(decoded) = OwnershipTransferredFilter::decode_log(log) { - return Ok(GatewayDiamondEvents::OwnershipTransferredFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for GatewayDiamondEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::DiamondCutFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::MembershipUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::OwnershipTransferredFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for GatewayDiamondEvents { - fn from(value: DiamondCutFilter) -> Self { - Self::DiamondCutFilter(value) - } - } - impl ::core::convert::From for GatewayDiamondEvents { - fn from(value: MembershipUpdatedFilter) -> Self { - Self::MembershipUpdatedFilter(value) - } - } - impl ::core::convert::From for GatewayDiamondEvents { - fn from(value: OwnershipTransferredFilter) -> Self { - Self::OwnershipTransferredFilter(value) - } - } - ///`ConstructorParams(uint256,uint16,uint8,(uint64,address[]),(uint256,address,bytes)[],bytes32)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ConstructorParams { - pub bottom_up_check_period: ::ethers::core::types::U256, - pub active_validators_limit: u16, - pub majority_percentage: u8, - pub network_name: SubnetID, - pub genesis_validators: ::std::vec::Vec, - pub commit_sha: [u8; 32], - } - ///`FacetCut(address,uint8,bytes4[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FacetCut { - pub facet_address: ::ethers::core::types::Address, - pub action: u8, - pub function_selectors: ::std::vec::Vec<[u8; 4]>, - } - ///`Membership((uint256,address,bytes)[],uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Membership { - pub validators: ::std::vec::Vec, - pub configuration_number: u64, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } - ///`Validator(uint256,address,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Validator { - pub weight: ::ethers::core::types::U256, - pub addr: ::ethers::core::types::Address, - pub metadata: ::ethers::core::types::Bytes, - } -} diff --git a/crates/binding/src/gateway_getter_facet.rs b/crates/binding/src/gateway_getter_facet.rs deleted file mode 100644 index 373b74eff..000000000 --- a/crates/binding/src/gateway_getter_facet.rs +++ /dev/null @@ -1,3653 +0,0 @@ -pub use gateway_getter_facet::*; -/// 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 gateway_getter_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("appliedTopDownNonce"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "appliedTopDownNonce", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("bottomUpCheckPeriod"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "bottomUpCheckPeriod", - ), - 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("bottomUpCheckpoint"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("bottomUpCheckpoint"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("e"), - 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::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct BottomUpCheckpoint", - ), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("bottomUpMsgBatch"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("bottomUpMsgBatch"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("e"), - 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::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct BottomUpMsgBatch"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("bottomUpNonce"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("bottomUpNonce"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getAppliedBottomUpNonce"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getAppliedBottomUpNonce", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnetId"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ], - 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"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getCheckpointCurrentWeight"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getCheckpointCurrentWeight", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("h"), - 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::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("getCheckpointInfo"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getCheckpointInfo"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("h"), - 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::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Bool, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct QuorumInfo"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getCheckpointRetentionHeight"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getCheckpointRetentionHeight", - ), - 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("getCheckpointSignatureBundle"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getCheckpointSignatureBundle", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("h"), - 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::borrow::ToOwned::to_owned("ch"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct BottomUpCheckpoint", - ), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("info"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Bool, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct QuorumInfo"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("signatories"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("signatures"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Bytes, - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getCommitSha"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getCommitSha"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getCurrentBottomUpCheckpoint"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getCurrentBottomUpCheckpoint", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("exists"), - kind: ::ethers::core::abi::ethabi::ParamType::Bool, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bool"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("epoch"), - 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("checkpoint"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct BottomUpCheckpoint", - ), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getCurrentConfigurationNumber"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getCurrentConfigurationNumber", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getCurrentMembership"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getCurrentMembership", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct Membership"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getIncompleteCheckpointHeights"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getIncompleteCheckpointHeights", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("getIncompleteCheckpoints"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getIncompleteCheckpoints", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - ], - ), - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct BottomUpCheckpoint[]", - ), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getLastConfigurationNumber"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getLastConfigurationNumber", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getLastMembership"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getLastMembership"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct Membership"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getLatestParentFinality"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getLatestParentFinality", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct ParentFinality"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getNetworkName"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getNetworkName"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getParentFinality"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getParentFinality"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("blockNumber"), - 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::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct ParentFinality"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getQuorumThreshold"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getQuorumThreshold"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("totalWeight"), - 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::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("getSubnet"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getSubnet"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnetId"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ], - 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"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct Subnet"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getSubnetKeys"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getSubnetKeys"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getSubnetTopDownMsgsLength"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetTopDownMsgsLength", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnetId"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ], - 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("getTopDownNonce"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getTopDownNonce"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnetId"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ], - 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"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getValidatorConfigurationNumbers"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getValidatorConfigurationNumbers", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("listSubnets"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("listSubnets"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct Subnet[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("majorityPercentage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("majorityPercentage"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("maxMsgsPerBottomUpBatch"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "maxMsgsPerBottomUpBatch", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("postbox"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("postbox"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32"), - ), - }, - ], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("storableMsg"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct IpcEnvelope"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("postboxMsgs"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("postboxMsgs"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("subnets"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("subnets"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("h"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32"), - ), - }, - ], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnet"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct Subnet"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("totalSubnets"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("totalSubnets"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ]), - events: ::std::collections::BTreeMap::new(), - errors: ::std::collections::BTreeMap::new(), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static GATEWAYGETTERFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct GatewayGetterFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for GatewayGetterFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for GatewayGetterFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for GatewayGetterFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for GatewayGetterFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(GatewayGetterFacet)) - .field(&self.address()) - .finish() - } - } - impl GatewayGetterFacet { - /// 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(), - GATEWAYGETTERFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `appliedTopDownNonce` (0x8789f83b) function - pub fn applied_top_down_nonce( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([135, 137, 248, 59], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `bottomUpCheckPeriod` (0x06c46853) function - pub fn bottom_up_check_period( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([6, 196, 104, 83], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `bottomUpCheckpoint` (0x2da5794a) function - pub fn bottom_up_checkpoint( - &self, - e: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([45, 165, 121, 74], e) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `bottomUpMsgBatch` (0xdd81b5cf) function - pub fn bottom_up_msg_batch( - &self, - e: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([221, 129, 181, 207], e) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `bottomUpNonce` (0x41b6a2e8) function - pub fn bottom_up_nonce( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([65, 182, 162, 232], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getAppliedBottomUpNonce` (0x38d66932) function - pub fn get_applied_bottom_up_nonce( - &self, - subnet_id: SubnetID, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([56, 214, 105, 50], (subnet_id,)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getCheckpointCurrentWeight` (0xb3ab3f74) function - pub fn get_checkpoint_current_weight( - &self, - h: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([179, 171, 63, 116], h) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getCheckpointInfo` (0xac12d763) function - pub fn get_checkpoint_info( - &self, - h: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([172, 18, 215, 99], h) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getCheckpointRetentionHeight` (0x4aa8f8a5) function - pub fn get_checkpoint_retention_height( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([74, 168, 248, 165], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getCheckpointSignatureBundle` (0xca41d5ce) function - pub fn get_checkpoint_signature_bundle( - &self, - h: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall< - M, - ( - BottomUpCheckpoint, - QuorumInfo, - ::std::vec::Vec<::ethers::core::types::Address>, - ::std::vec::Vec<::ethers::core::types::Bytes>, - ), - > { - self.0 - .method_hash([202, 65, 213, 206], h) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getCommitSha` (0x444ead51) function - pub fn get_commit_sha( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([68, 78, 173, 81], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getCurrentBottomUpCheckpoint` (0xd6c5c397) function - pub fn get_current_bottom_up_checkpoint( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - (bool, ::ethers::core::types::U256, BottomUpCheckpoint), - > { - self.0 - .method_hash([214, 197, 195, 151], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getCurrentConfigurationNumber` (0x544dddff) function - pub fn get_current_configuration_number( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([84, 77, 221, 255], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getCurrentMembership` (0x6ad21bb0) function - pub fn get_current_membership( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([106, 210, 27, 176], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getIncompleteCheckpointHeights` (0xa517218f) function - pub fn get_incomplete_checkpoint_heights( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::std::vec::Vec<::ethers::core::types::U256>, - > { - self.0 - .method_hash([165, 23, 33, 143], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getIncompleteCheckpoints` (0x97042766) function - pub fn get_incomplete_checkpoints( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::std::vec::Vec, - > { - self.0 - .method_hash([151, 4, 39, 102], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getLastConfigurationNumber` (0xb1ba49b0) function - pub fn get_last_configuration_number( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([177, 186, 73, 176], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getLastMembership` (0xf3229131) function - pub fn get_last_membership( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([243, 34, 145, 49], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getLatestParentFinality` (0x0338150f) function - pub fn get_latest_parent_finality( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([3, 56, 21, 15], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getNetworkName` (0x94074b03) function - pub fn get_network_name( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([148, 7, 75, 3], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getParentFinality` (0x7edeac92) function - pub fn get_parent_finality( - &self, - block_number: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([126, 222, 172, 146], block_number) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getQuorumThreshold` (0x06572c1a) function - pub fn get_quorum_threshold( - &self, - total_weight: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([6, 87, 44, 26], total_weight) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnet` (0xc66c66a1) function - pub fn get_subnet( - &self, - subnet_id: SubnetID, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([198, 108, 102, 161], (subnet_id,)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetKeys` (0x3594c3c1) function - pub fn get_subnet_keys( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([53, 148, 195, 193], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetTopDownMsgsLength` (0x9d3070b5) function - pub fn get_subnet_top_down_msgs_length( - &self, - subnet_id: SubnetID, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([157, 48, 112, 181], (subnet_id,)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getTopDownNonce` (0x42398a9a) function - pub fn get_top_down_nonce( - &self, - subnet_id: SubnetID, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([66, 57, 138, 154], (subnet_id,)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getValidatorConfigurationNumbers` (0xfa34a400) function - pub fn get_validator_configuration_numbers( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([250, 52, 164, 0], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `listSubnets` (0x5d029685) function - pub fn list_subnets( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([93, 2, 150, 133], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `majorityPercentage` (0x599c7bd1) function - pub fn majority_percentage( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([89, 156, 123, 209], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `maxMsgsPerBottomUpBatch` (0x05aff0b3) function - pub fn max_msgs_per_bottom_up_batch( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([5, 175, 240, 179], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `postbox` (0x8cfd78e7) function - pub fn postbox( - &self, - id: [u8; 32], - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([140, 253, 120, 231], id) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `postboxMsgs` (0x7474d79f) function - pub fn postbox_msgs( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([116, 116, 215, 159], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `subnets` (0x02e30f9a) function - pub fn subnets( - &self, - h: [u8; 32], - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([2, 227, 15, 154], h) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `totalSubnets` (0xa2b67158) function - pub fn total_subnets( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([162, 182, 113, 88], ()) - .expect("method not found (this should never happen)") - } - } - impl From<::ethers::contract::Contract> - for GatewayGetterFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Container type for all input parameters for the `appliedTopDownNonce` function with signature `appliedTopDownNonce()` and selector `0x8789f83b` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "appliedTopDownNonce", abi = "appliedTopDownNonce()")] - pub struct AppliedTopDownNonceCall; - ///Container type for all input parameters for the `bottomUpCheckPeriod` function with signature `bottomUpCheckPeriod()` and selector `0x06c46853` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "bottomUpCheckPeriod", abi = "bottomUpCheckPeriod()")] - pub struct BottomUpCheckPeriodCall; - ///Container type for all input parameters for the `bottomUpCheckpoint` function with signature `bottomUpCheckpoint(uint256)` and selector `0x2da5794a` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "bottomUpCheckpoint", abi = "bottomUpCheckpoint(uint256)")] - pub struct BottomUpCheckpointCall { - pub e: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `bottomUpMsgBatch` function with signature `bottomUpMsgBatch(uint256)` and selector `0xdd81b5cf` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "bottomUpMsgBatch", abi = "bottomUpMsgBatch(uint256)")] - pub struct BottomUpMsgBatchCall { - pub e: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `bottomUpNonce` function with signature `bottomUpNonce()` and selector `0x41b6a2e8` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "bottomUpNonce", abi = "bottomUpNonce()")] - pub struct BottomUpNonceCall; - ///Container type for all input parameters for the `getAppliedBottomUpNonce` function with signature `getAppliedBottomUpNonce((uint64,address[]))` and selector `0x38d66932` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getAppliedBottomUpNonce", - abi = "getAppliedBottomUpNonce((uint64,address[]))" - )] - pub struct GetAppliedBottomUpNonceCall { - pub subnet_id: SubnetID, - } - ///Container type for all input parameters for the `getCheckpointCurrentWeight` function with signature `getCheckpointCurrentWeight(uint256)` and selector `0xb3ab3f74` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getCheckpointCurrentWeight", - abi = "getCheckpointCurrentWeight(uint256)" - )] - pub struct GetCheckpointCurrentWeightCall { - pub h: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `getCheckpointInfo` function with signature `getCheckpointInfo(uint256)` and selector `0xac12d763` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getCheckpointInfo", abi = "getCheckpointInfo(uint256)")] - pub struct GetCheckpointInfoCall { - pub h: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `getCheckpointRetentionHeight` function with signature `getCheckpointRetentionHeight()` and selector `0x4aa8f8a5` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getCheckpointRetentionHeight", - abi = "getCheckpointRetentionHeight()" - )] - pub struct GetCheckpointRetentionHeightCall; - ///Container type for all input parameters for the `getCheckpointSignatureBundle` function with signature `getCheckpointSignatureBundle(uint256)` and selector `0xca41d5ce` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getCheckpointSignatureBundle", - abi = "getCheckpointSignatureBundle(uint256)" - )] - pub struct GetCheckpointSignatureBundleCall { - pub h: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `getCommitSha` function with signature `getCommitSha()` and selector `0x444ead51` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getCommitSha", abi = "getCommitSha()")] - pub struct GetCommitShaCall; - ///Container type for all input parameters for the `getCurrentBottomUpCheckpoint` function with signature `getCurrentBottomUpCheckpoint()` and selector `0xd6c5c397` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getCurrentBottomUpCheckpoint", - abi = "getCurrentBottomUpCheckpoint()" - )] - pub struct GetCurrentBottomUpCheckpointCall; - ///Container type for all input parameters for the `getCurrentConfigurationNumber` function with signature `getCurrentConfigurationNumber()` and selector `0x544dddff` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getCurrentConfigurationNumber", - abi = "getCurrentConfigurationNumber()" - )] - pub struct GetCurrentConfigurationNumberCall; - ///Container type for all input parameters for the `getCurrentMembership` function with signature `getCurrentMembership()` and selector `0x6ad21bb0` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getCurrentMembership", abi = "getCurrentMembership()")] - pub struct GetCurrentMembershipCall; - ///Container type for all input parameters for the `getIncompleteCheckpointHeights` function with signature `getIncompleteCheckpointHeights()` and selector `0xa517218f` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getIncompleteCheckpointHeights", - abi = "getIncompleteCheckpointHeights()" - )] - pub struct GetIncompleteCheckpointHeightsCall; - ///Container type for all input parameters for the `getIncompleteCheckpoints` function with signature `getIncompleteCheckpoints()` and selector `0x97042766` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getIncompleteCheckpoints", abi = "getIncompleteCheckpoints()")] - pub struct GetIncompleteCheckpointsCall; - ///Container type for all input parameters for the `getLastConfigurationNumber` function with signature `getLastConfigurationNumber()` and selector `0xb1ba49b0` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getLastConfigurationNumber", abi = "getLastConfigurationNumber()")] - pub struct GetLastConfigurationNumberCall; - ///Container type for all input parameters for the `getLastMembership` function with signature `getLastMembership()` and selector `0xf3229131` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getLastMembership", abi = "getLastMembership()")] - pub struct GetLastMembershipCall; - ///Container type for all input parameters for the `getLatestParentFinality` function with signature `getLatestParentFinality()` and selector `0x0338150f` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getLatestParentFinality", abi = "getLatestParentFinality()")] - pub struct GetLatestParentFinalityCall; - ///Container type for all input parameters for the `getNetworkName` function with signature `getNetworkName()` and selector `0x94074b03` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getNetworkName", abi = "getNetworkName()")] - pub struct GetNetworkNameCall; - ///Container type for all input parameters for the `getParentFinality` function with signature `getParentFinality(uint256)` and selector `0x7edeac92` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getParentFinality", abi = "getParentFinality(uint256)")] - pub struct GetParentFinalityCall { - pub block_number: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `getQuorumThreshold` function with signature `getQuorumThreshold(uint256)` and selector `0x06572c1a` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getQuorumThreshold", abi = "getQuorumThreshold(uint256)")] - pub struct GetQuorumThresholdCall { - pub total_weight: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `getSubnet` function with signature `getSubnet((uint64,address[]))` and selector `0xc66c66a1` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getSubnet", abi = "getSubnet((uint64,address[]))")] - pub struct GetSubnetCall { - pub subnet_id: SubnetID, - } - ///Container type for all input parameters for the `getSubnetKeys` function with signature `getSubnetKeys()` and selector `0x3594c3c1` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getSubnetKeys", abi = "getSubnetKeys()")] - pub struct GetSubnetKeysCall; - ///Container type for all input parameters for the `getSubnetTopDownMsgsLength` function with signature `getSubnetTopDownMsgsLength((uint64,address[]))` and selector `0x9d3070b5` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getSubnetTopDownMsgsLength", - abi = "getSubnetTopDownMsgsLength((uint64,address[]))" - )] - pub struct GetSubnetTopDownMsgsLengthCall { - pub subnet_id: SubnetID, - } - ///Container type for all input parameters for the `getTopDownNonce` function with signature `getTopDownNonce((uint64,address[]))` and selector `0x42398a9a` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getTopDownNonce", abi = "getTopDownNonce((uint64,address[]))")] - pub struct GetTopDownNonceCall { - pub subnet_id: SubnetID, - } - ///Container type for all input parameters for the `getValidatorConfigurationNumbers` function with signature `getValidatorConfigurationNumbers()` and selector `0xfa34a400` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getValidatorConfigurationNumbers", - abi = "getValidatorConfigurationNumbers()" - )] - pub struct GetValidatorConfigurationNumbersCall; - ///Container type for all input parameters for the `listSubnets` function with signature `listSubnets()` and selector `0x5d029685` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "listSubnets", abi = "listSubnets()")] - pub struct ListSubnetsCall; - ///Container type for all input parameters for the `majorityPercentage` function with signature `majorityPercentage()` and selector `0x599c7bd1` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "majorityPercentage", abi = "majorityPercentage()")] - pub struct MajorityPercentageCall; - ///Container type for all input parameters for the `maxMsgsPerBottomUpBatch` function with signature `maxMsgsPerBottomUpBatch()` and selector `0x05aff0b3` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "maxMsgsPerBottomUpBatch", abi = "maxMsgsPerBottomUpBatch()")] - pub struct MaxMsgsPerBottomUpBatchCall; - ///Container type for all input parameters for the `postbox` function with signature `postbox(bytes32)` and selector `0x8cfd78e7` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "postbox", abi = "postbox(bytes32)")] - pub struct PostboxCall { - pub id: [u8; 32], - } - ///Container type for all input parameters for the `postboxMsgs` function with signature `postboxMsgs()` and selector `0x7474d79f` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "postboxMsgs", abi = "postboxMsgs()")] - pub struct PostboxMsgsCall; - ///Container type for all input parameters for the `subnets` function with signature `subnets(bytes32)` and selector `0x02e30f9a` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "subnets", abi = "subnets(bytes32)")] - pub struct SubnetsCall { - pub h: [u8; 32], - } - ///Container type for all input parameters for the `totalSubnets` function with signature `totalSubnets()` and selector `0xa2b67158` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "totalSubnets", abi = "totalSubnets()")] - pub struct TotalSubnetsCall; - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum GatewayGetterFacetCalls { - AppliedTopDownNonce(AppliedTopDownNonceCall), - BottomUpCheckPeriod(BottomUpCheckPeriodCall), - BottomUpCheckpoint(BottomUpCheckpointCall), - BottomUpMsgBatch(BottomUpMsgBatchCall), - BottomUpNonce(BottomUpNonceCall), - GetAppliedBottomUpNonce(GetAppliedBottomUpNonceCall), - GetCheckpointCurrentWeight(GetCheckpointCurrentWeightCall), - GetCheckpointInfo(GetCheckpointInfoCall), - GetCheckpointRetentionHeight(GetCheckpointRetentionHeightCall), - GetCheckpointSignatureBundle(GetCheckpointSignatureBundleCall), - GetCommitSha(GetCommitShaCall), - GetCurrentBottomUpCheckpoint(GetCurrentBottomUpCheckpointCall), - GetCurrentConfigurationNumber(GetCurrentConfigurationNumberCall), - GetCurrentMembership(GetCurrentMembershipCall), - GetIncompleteCheckpointHeights(GetIncompleteCheckpointHeightsCall), - GetIncompleteCheckpoints(GetIncompleteCheckpointsCall), - GetLastConfigurationNumber(GetLastConfigurationNumberCall), - GetLastMembership(GetLastMembershipCall), - GetLatestParentFinality(GetLatestParentFinalityCall), - GetNetworkName(GetNetworkNameCall), - GetParentFinality(GetParentFinalityCall), - GetQuorumThreshold(GetQuorumThresholdCall), - GetSubnet(GetSubnetCall), - GetSubnetKeys(GetSubnetKeysCall), - GetSubnetTopDownMsgsLength(GetSubnetTopDownMsgsLengthCall), - GetTopDownNonce(GetTopDownNonceCall), - GetValidatorConfigurationNumbers(GetValidatorConfigurationNumbersCall), - ListSubnets(ListSubnetsCall), - MajorityPercentage(MajorityPercentageCall), - MaxMsgsPerBottomUpBatch(MaxMsgsPerBottomUpBatchCall), - Postbox(PostboxCall), - PostboxMsgs(PostboxMsgsCall), - Subnets(SubnetsCall), - TotalSubnets(TotalSubnetsCall), - } - impl ::ethers::core::abi::AbiDecode for GatewayGetterFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AppliedTopDownNonce(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::BottomUpCheckPeriod(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::BottomUpCheckpoint(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::BottomUpMsgBatch(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::BottomUpNonce(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetAppliedBottomUpNonce(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetCheckpointCurrentWeight(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetCheckpointInfo(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetCheckpointRetentionHeight(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetCheckpointSignatureBundle(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetCommitSha(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetCurrentBottomUpCheckpoint(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetCurrentConfigurationNumber(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetCurrentMembership(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetIncompleteCheckpointHeights(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetIncompleteCheckpoints(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetLastConfigurationNumber(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetLastMembership(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetLatestParentFinality(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetNetworkName(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetParentFinality(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetQuorumThreshold(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetKeys(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetTopDownMsgsLength(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetTopDownNonce(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetValidatorConfigurationNumbers(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ListSubnets(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MajorityPercentage(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MaxMsgsPerBottomUpBatch(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Postbox(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PostboxMsgs(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Subnets(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::TotalSubnets(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for GatewayGetterFacetCalls { - fn encode(self) -> Vec { - match self { - Self::AppliedTopDownNonce(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::BottomUpCheckPeriod(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::BottomUpCheckpoint(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::BottomUpMsgBatch(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::BottomUpNonce(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetAppliedBottomUpNonce(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetCheckpointCurrentWeight(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetCheckpointInfo(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetCheckpointRetentionHeight(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetCheckpointSignatureBundle(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetCommitSha(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetCurrentBottomUpCheckpoint(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetCurrentConfigurationNumber(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetCurrentMembership(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetIncompleteCheckpointHeights(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetIncompleteCheckpoints(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetLastConfigurationNumber(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetLastMembership(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetLatestParentFinality(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetNetworkName(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetParentFinality(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetQuorumThreshold(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetKeys(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetTopDownMsgsLength(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetTopDownNonce(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetValidatorConfigurationNumbers(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ListSubnets(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MajorityPercentage(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MaxMsgsPerBottomUpBatch(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Postbox(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::PostboxMsgs(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Subnets(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::TotalSubnets(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for GatewayGetterFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::AppliedTopDownNonce(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::BottomUpCheckPeriod(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::BottomUpCheckpoint(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::BottomUpMsgBatch(element) => ::core::fmt::Display::fmt(element, f), - Self::BottomUpNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::GetAppliedBottomUpNonce(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetCheckpointCurrentWeight(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetCheckpointInfo(element) => ::core::fmt::Display::fmt(element, f), - Self::GetCheckpointRetentionHeight(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetCheckpointSignatureBundle(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetCommitSha(element) => ::core::fmt::Display::fmt(element, f), - Self::GetCurrentBottomUpCheckpoint(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetCurrentConfigurationNumber(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetCurrentMembership(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetIncompleteCheckpointHeights(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetIncompleteCheckpoints(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetLastConfigurationNumber(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetLastMembership(element) => ::core::fmt::Display::fmt(element, f), - Self::GetLatestParentFinality(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetNetworkName(element) => ::core::fmt::Display::fmt(element, f), - Self::GetParentFinality(element) => ::core::fmt::Display::fmt(element, f), - Self::GetQuorumThreshold(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnet(element) => ::core::fmt::Display::fmt(element, f), - Self::GetSubnetKeys(element) => ::core::fmt::Display::fmt(element, f), - Self::GetSubnetTopDownMsgsLength(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetTopDownNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::GetValidatorConfigurationNumbers(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ListSubnets(element) => ::core::fmt::Display::fmt(element, f), - Self::MajorityPercentage(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MaxMsgsPerBottomUpBatch(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::Postbox(element) => ::core::fmt::Display::fmt(element, f), - Self::PostboxMsgs(element) => ::core::fmt::Display::fmt(element, f), - Self::Subnets(element) => ::core::fmt::Display::fmt(element, f), - Self::TotalSubnets(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: AppliedTopDownNonceCall) -> Self { - Self::AppliedTopDownNonce(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: BottomUpCheckPeriodCall) -> Self { - Self::BottomUpCheckPeriod(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: BottomUpCheckpointCall) -> Self { - Self::BottomUpCheckpoint(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: BottomUpMsgBatchCall) -> Self { - Self::BottomUpMsgBatch(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: BottomUpNonceCall) -> Self { - Self::BottomUpNonce(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetAppliedBottomUpNonceCall) -> Self { - Self::GetAppliedBottomUpNonce(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetCheckpointCurrentWeightCall) -> Self { - Self::GetCheckpointCurrentWeight(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetCheckpointInfoCall) -> Self { - Self::GetCheckpointInfo(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetCheckpointRetentionHeightCall) -> Self { - Self::GetCheckpointRetentionHeight(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetCheckpointSignatureBundleCall) -> Self { - Self::GetCheckpointSignatureBundle(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetCommitShaCall) -> Self { - Self::GetCommitSha(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetCurrentBottomUpCheckpointCall) -> Self { - Self::GetCurrentBottomUpCheckpoint(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetCurrentConfigurationNumberCall) -> Self { - Self::GetCurrentConfigurationNumber(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetCurrentMembershipCall) -> Self { - Self::GetCurrentMembership(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetIncompleteCheckpointHeightsCall) -> Self { - Self::GetIncompleteCheckpointHeights(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetIncompleteCheckpointsCall) -> Self { - Self::GetIncompleteCheckpoints(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetLastConfigurationNumberCall) -> Self { - Self::GetLastConfigurationNumber(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetLastMembershipCall) -> Self { - Self::GetLastMembership(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetLatestParentFinalityCall) -> Self { - Self::GetLatestParentFinality(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetNetworkNameCall) -> Self { - Self::GetNetworkName(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetParentFinalityCall) -> Self { - Self::GetParentFinality(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetQuorumThresholdCall) -> Self { - Self::GetQuorumThreshold(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetSubnetCall) -> Self { - Self::GetSubnet(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetSubnetKeysCall) -> Self { - Self::GetSubnetKeys(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetSubnetTopDownMsgsLengthCall) -> Self { - Self::GetSubnetTopDownMsgsLength(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: GetTopDownNonceCall) -> Self { - Self::GetTopDownNonce(value) - } - } - impl ::core::convert::From - for GatewayGetterFacetCalls { - fn from(value: GetValidatorConfigurationNumbersCall) -> Self { - Self::GetValidatorConfigurationNumbers(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: ListSubnetsCall) -> Self { - Self::ListSubnets(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: MajorityPercentageCall) -> Self { - Self::MajorityPercentage(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: MaxMsgsPerBottomUpBatchCall) -> Self { - Self::MaxMsgsPerBottomUpBatch(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: PostboxCall) -> Self { - Self::Postbox(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: PostboxMsgsCall) -> Self { - Self::PostboxMsgs(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: SubnetsCall) -> Self { - Self::Subnets(value) - } - } - impl ::core::convert::From for GatewayGetterFacetCalls { - fn from(value: TotalSubnetsCall) -> Self { - Self::TotalSubnets(value) - } - } - ///Container type for all return fields from the `appliedTopDownNonce` function with signature `appliedTopDownNonce()` and selector `0x8789f83b` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct AppliedTopDownNonceReturn(pub u64); - ///Container type for all return fields from the `bottomUpCheckPeriod` function with signature `bottomUpCheckPeriod()` and selector `0x06c46853` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpCheckPeriodReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `bottomUpCheckpoint` function with signature `bottomUpCheckpoint(uint256)` and selector `0x2da5794a` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpCheckpointReturn(pub BottomUpCheckpoint); - ///Container type for all return fields from the `bottomUpMsgBatch` function with signature `bottomUpMsgBatch(uint256)` and selector `0xdd81b5cf` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpMsgBatchReturn(pub BottomUpMsgBatch); - ///Container type for all return fields from the `bottomUpNonce` function with signature `bottomUpNonce()` and selector `0x41b6a2e8` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpNonceReturn(pub u64); - ///Container type for all return fields from the `getAppliedBottomUpNonce` function with signature `getAppliedBottomUpNonce((uint64,address[]))` and selector `0x38d66932` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetAppliedBottomUpNonceReturn(pub bool, pub u64); - ///Container type for all return fields from the `getCheckpointCurrentWeight` function with signature `getCheckpointCurrentWeight(uint256)` and selector `0xb3ab3f74` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetCheckpointCurrentWeightReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `getCheckpointInfo` function with signature `getCheckpointInfo(uint256)` and selector `0xac12d763` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetCheckpointInfoReturn(pub QuorumInfo); - ///Container type for all return fields from the `getCheckpointRetentionHeight` function with signature `getCheckpointRetentionHeight()` and selector `0x4aa8f8a5` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetCheckpointRetentionHeightReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `getCheckpointSignatureBundle` function with signature `getCheckpointSignatureBundle(uint256)` and selector `0xca41d5ce` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetCheckpointSignatureBundleReturn { - pub ch: BottomUpCheckpoint, - pub info: QuorumInfo, - pub signatories: ::std::vec::Vec<::ethers::core::types::Address>, - pub signatures: ::std::vec::Vec<::ethers::core::types::Bytes>, - } - ///Container type for all return fields from the `getCommitSha` function with signature `getCommitSha()` and selector `0x444ead51` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetCommitShaReturn(pub [u8; 32]); - ///Container type for all return fields from the `getCurrentBottomUpCheckpoint` function with signature `getCurrentBottomUpCheckpoint()` and selector `0xd6c5c397` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetCurrentBottomUpCheckpointReturn { - pub exists: bool, - pub epoch: ::ethers::core::types::U256, - pub checkpoint: BottomUpCheckpoint, - } - ///Container type for all return fields from the `getCurrentConfigurationNumber` function with signature `getCurrentConfigurationNumber()` and selector `0x544dddff` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetCurrentConfigurationNumberReturn(pub u64); - ///Container type for all return fields from the `getCurrentMembership` function with signature `getCurrentMembership()` and selector `0x6ad21bb0` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetCurrentMembershipReturn(pub Membership); - ///Container type for all return fields from the `getIncompleteCheckpointHeights` function with signature `getIncompleteCheckpointHeights()` and selector `0xa517218f` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetIncompleteCheckpointHeightsReturn( - pub ::std::vec::Vec<::ethers::core::types::U256>, - ); - ///Container type for all return fields from the `getIncompleteCheckpoints` function with signature `getIncompleteCheckpoints()` and selector `0x97042766` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetIncompleteCheckpointsReturn(pub ::std::vec::Vec); - ///Container type for all return fields from the `getLastConfigurationNumber` function with signature `getLastConfigurationNumber()` and selector `0xb1ba49b0` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetLastConfigurationNumberReturn(pub u64); - ///Container type for all return fields from the `getLastMembership` function with signature `getLastMembership()` and selector `0xf3229131` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetLastMembershipReturn(pub Membership); - ///Container type for all return fields from the `getLatestParentFinality` function with signature `getLatestParentFinality()` and selector `0x0338150f` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetLatestParentFinalityReturn(pub ParentFinality); - ///Container type for all return fields from the `getNetworkName` function with signature `getNetworkName()` and selector `0x94074b03` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetNetworkNameReturn(pub SubnetID); - ///Container type for all return fields from the `getParentFinality` function with signature `getParentFinality(uint256)` and selector `0x7edeac92` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetParentFinalityReturn(pub ParentFinality); - ///Container type for all return fields from the `getQuorumThreshold` function with signature `getQuorumThreshold(uint256)` and selector `0x06572c1a` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetQuorumThresholdReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `getSubnet` function with signature `getSubnet((uint64,address[]))` and selector `0xc66c66a1` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetReturn(pub bool, pub Subnet); - ///Container type for all return fields from the `getSubnetKeys` function with signature `getSubnetKeys()` and selector `0x3594c3c1` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetKeysReturn(pub ::std::vec::Vec<[u8; 32]>); - ///Container type for all return fields from the `getSubnetTopDownMsgsLength` function with signature `getSubnetTopDownMsgsLength((uint64,address[]))` and selector `0x9d3070b5` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetTopDownMsgsLengthReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `getTopDownNonce` function with signature `getTopDownNonce((uint64,address[]))` and selector `0x42398a9a` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetTopDownNonceReturn(pub bool, pub u64); - ///Container type for all return fields from the `getValidatorConfigurationNumbers` function with signature `getValidatorConfigurationNumbers()` and selector `0xfa34a400` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetValidatorConfigurationNumbersReturn(pub u64, pub u64); - ///Container type for all return fields from the `listSubnets` function with signature `listSubnets()` and selector `0x5d029685` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ListSubnetsReturn(pub ::std::vec::Vec); - ///Container type for all return fields from the `majorityPercentage` function with signature `majorityPercentage()` and selector `0x599c7bd1` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct MajorityPercentageReturn(pub u64); - ///Container type for all return fields from the `maxMsgsPerBottomUpBatch` function with signature `maxMsgsPerBottomUpBatch()` and selector `0x05aff0b3` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct MaxMsgsPerBottomUpBatchReturn(pub u64); - ///Container type for all return fields from the `postbox` function with signature `postbox(bytes32)` and selector `0x8cfd78e7` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct PostboxReturn { - pub storable_msg: IpcEnvelope, - } - ///Container type for all return fields from the `postboxMsgs` function with signature `postboxMsgs()` and selector `0x7474d79f` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct PostboxMsgsReturn(pub ::std::vec::Vec<[u8; 32]>); - ///Container type for all return fields from the `subnets` function with signature `subnets(bytes32)` and selector `0x02e30f9a` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetsReturn { - pub subnet: Subnet, - } - ///Container type for all return fields from the `totalSubnets` function with signature `totalSubnets()` and selector `0xa2b67158` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct TotalSubnetsReturn(pub u64); - ///`BottomUpCheckpoint((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32)))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpCheckpoint { - pub subnet_id: SubnetID, - pub block_height: ::ethers::core::types::U256, - pub block_hash: [u8; 32], - pub next_configuration_number: u64, - pub msgs: ::std::vec::Vec, - pub activity: CompressedActivityRollup, - } - ///`BottomUpMsgBatch((uint64,address[]),uint256,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpMsgBatch { - pub subnet_id: SubnetID, - pub block_height: ::ethers::core::types::U256, - pub msgs: ::std::vec::Vec, - } - ///`CompressedActivityRollup(((uint64,uint64),bytes32))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CompressedActivityRollup { - pub consensus: CompressedSummary, - } - ///`AggregatedStats(uint64,uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct AggregatedStats { - pub total_active_validators: u64, - pub total_num_blocks_committed: u64, - } - ///`CompressedSummary((uint64,uint64),bytes32)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CompressedSummary { - pub stats: AggregatedStats, - pub data_root_commitment: [u8; 32], - } - ///`FvmAddress(uint8,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FvmAddress { - pub addr_type: u8, - pub payload: ::ethers::core::types::Bytes, - } - ///`Ipcaddress((uint64,address[]),(uint8,bytes))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Ipcaddress { - pub subnet_id: SubnetID, - pub raw_address: FvmAddress, - } - ///`IpcEnvelope(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IpcEnvelope { - pub kind: u8, - pub local_nonce: u64, - pub original_nonce: u64, - pub value: ::ethers::core::types::U256, - pub to: Ipcaddress, - pub from: Ipcaddress, - pub message: ::ethers::core::types::Bytes, - } - ///`Membership((uint256,address,bytes)[],uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Membership { - pub validators: ::std::vec::Vec, - pub configuration_number: u64, - } - ///`ParentFinality(uint256,bytes32)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ParentFinality { - pub height: ::ethers::core::types::U256, - pub block_hash: [u8; 32], - } - ///`QuorumInfo(bytes32,bytes32,uint256,uint256,bool)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct QuorumInfo { - pub hash: [u8; 32], - pub root_hash: [u8; 32], - pub threshold: ::ethers::core::types::U256, - pub current_weight: ::ethers::core::types::U256, - pub reached: bool, - } - ///`Subnet(uint256,uint256,uint256,uint64,uint64,(uint64,address[]))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Subnet { - pub stake: ::ethers::core::types::U256, - pub genesis_epoch: ::ethers::core::types::U256, - pub circ_supply: ::ethers::core::types::U256, - pub top_down_nonce: u64, - pub applied_bottom_up_nonce: u64, - pub id: SubnetID, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } - ///`Validator(uint256,address,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Validator { - pub weight: ::ethers::core::types::U256, - pub addr: ::ethers::core::types::Address, - pub metadata: ::ethers::core::types::Bytes, - } -} diff --git a/crates/binding/src/gateway_manager_facet.rs b/crates/binding/src/gateway_manager_facet.rs deleted file mode 100644 index 0c9b3cb08..000000000 --- a/crates/binding/src/gateway_manager_facet.rs +++ /dev/null @@ -1,1797 +0,0 @@ -pub use gateway_manager_facet::*; -/// 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 gateway_manager_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("addStake"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("addStake"), - 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"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("fund"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("fund"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnetId"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("to"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct FvmAddress"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("fundWithToken"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("fundWithToken"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnetId"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("to"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct FvmAddress"), - ), - }, - ::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("kill"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("kill"), - inputs: ::std::vec![], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("register"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("register"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("genesisCircSupply"), - 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("collateral"), - 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::Payable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("release"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("release"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("to"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct FvmAddress"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("releaseStake"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("releaseStake"), - 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"), - ), - }, - ], - 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("NewBottomUpMsgBatch"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewBottomUpMsgBatch", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("epoch"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("subnet"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("message"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("QueuedBottomUpMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "QueuedBottomUpMessage", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SubnetDestroyed"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("SubnetDestroyed"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("AddressEmptyCode"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("AddressEmptyCode"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("target"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("AddressInsufficientBalance"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "AddressInsufficientBalance", - ), - 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"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("AlreadyRegisteredSubnet"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "AlreadyRegisteredSubnet", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CallFailed"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("CallFailed"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotReleaseZero"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("CannotReleaseZero"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FailedInnerCall"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FailedInnerCall"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InsufficientFunds"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InsufficientFunds"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidActorAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidActorAddress", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidXnetMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InvalidXnetMessage"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("reason"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "enum InvalidXnetMessageReason", - ), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MethodNotAllowed"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("MethodNotAllowed"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("reason"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEmptySubnetCircSupply"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NotEmptySubnetCircSupply", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEnoughBalance"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotEnoughBalance"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEnoughFunds"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotEnoughFunds"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEnoughFundsToRelease"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NotEnoughFundsToRelease", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotRegisteredSubnet"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NotRegisteredSubnet", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ReentrancyError"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ReentrancyError"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SafeERC20FailedOperation"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "SafeERC20FailedOperation", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("token"), - 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 GATEWAYMANAGERFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct GatewayManagerFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for GatewayManagerFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for GatewayManagerFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for GatewayManagerFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for GatewayManagerFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(GatewayManagerFacet)) - .field(&self.address()) - .finish() - } - } - impl GatewayManagerFacet { - /// 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(), - GATEWAYMANAGERFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `addStake` (0xeb4f16b5) function - pub fn add_stake( - &self, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([235, 79, 22, 181], amount) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `fund` (0x18f44b70) function - pub fn fund( - &self, - subnet_id: SubnetID, - to: FvmAddress, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([24, 244, 75, 112], (subnet_id, to)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `fundWithToken` (0x0517e1aa) function - pub fn fund_with_token( - &self, - subnet_id: SubnetID, - to: FvmAddress, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([5, 23, 225, 170], (subnet_id, to, amount)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `kill` (0x41c0e1b5) function - pub fn kill(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([65, 192, 225, 181], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `register` (0xd66d6c10) function - pub fn register( - &self, - genesis_circ_supply: ::ethers::core::types::U256, - collateral: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([214, 109, 108, 16], (genesis_circ_supply, collateral)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `release` (0x6b2c1eef) function - pub fn release( - &self, - to: FvmAddress, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([107, 44, 30, 239], (to,)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `releaseStake` (0x45f54485) function - pub fn release_stake( - &self, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([69, 245, 68, 133], amount) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `NewBottomUpMsgBatch` event - pub fn new_bottom_up_msg_batch_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewBottomUpMsgBatchFilter, - > { - self.0.event() - } - ///Gets the contract's `NewTopDownMessage` event - pub fn new_top_down_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewTopDownMessageFilter, - > { - self.0.event() - } - ///Gets the contract's `QueuedBottomUpMessage` event - pub fn queued_bottom_up_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - QueuedBottomUpMessageFilter, - > { - self.0.event() - } - ///Gets the contract's `SubnetDestroyed` event - pub fn subnet_destroyed_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - SubnetDestroyedFilter, - > { - 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, - GatewayManagerFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for GatewayManagerFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `AddressEmptyCode` with signature `AddressEmptyCode(address)` and selector `0x9996b315` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "AddressEmptyCode", abi = "AddressEmptyCode(address)")] - pub struct AddressEmptyCode { - pub target: ::ethers::core::types::Address, - } - ///Custom Error type `AddressInsufficientBalance` with signature `AddressInsufficientBalance(address)` and selector `0xcd786059` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "AddressInsufficientBalance", - abi = "AddressInsufficientBalance(address)" - )] - pub struct AddressInsufficientBalance { - pub account: ::ethers::core::types::Address, - } - ///Custom Error type `AlreadyRegisteredSubnet` with signature `AlreadyRegisteredSubnet()` and selector `0x36a719be` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "AlreadyRegisteredSubnet", abi = "AlreadyRegisteredSubnet()")] - pub struct AlreadyRegisteredSubnet; - ///Custom Error type `CallFailed` with signature `CallFailed()` and selector `0x3204506f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "CallFailed", abi = "CallFailed()")] - pub struct CallFailed; - ///Custom Error type `CannotReleaseZero` with signature `CannotReleaseZero()` and selector `0xc79cad7b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "CannotReleaseZero", abi = "CannotReleaseZero()")] - pub struct CannotReleaseZero; - ///Custom Error type `FailedInnerCall` with signature `FailedInnerCall()` and selector `0x1425ea42` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FailedInnerCall", abi = "FailedInnerCall()")] - pub struct FailedInnerCall; - ///Custom Error type `InsufficientFunds` with signature `InsufficientFunds()` and selector `0x356680b7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InsufficientFunds", abi = "InsufficientFunds()")] - pub struct InsufficientFunds; - ///Custom Error type `InvalidActorAddress` with signature `InvalidActorAddress()` and selector `0x70e45109` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidActorAddress", abi = "InvalidActorAddress()")] - pub struct InvalidActorAddress; - ///Custom Error type `InvalidXnetMessage` with signature `InvalidXnetMessage(uint8)` and selector `0xbc0f01cf` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidXnetMessage", abi = "InvalidXnetMessage(uint8)")] - pub struct InvalidXnetMessage { - pub reason: u8, - } - ///Custom Error type `MethodNotAllowed` with signature `MethodNotAllowed(string)` and selector `0x015538b1` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "MethodNotAllowed", abi = "MethodNotAllowed(string)")] - pub struct MethodNotAllowed { - pub reason: ::std::string::String, - } - ///Custom Error type `NotEmptySubnetCircSupply` with signature `NotEmptySubnetCircSupply()` and selector `0xf8cf8e02` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotEmptySubnetCircSupply", abi = "NotEmptySubnetCircSupply()")] - pub struct NotEmptySubnetCircSupply; - ///Custom Error type `NotEnoughBalance` with signature `NotEnoughBalance()` and selector `0xad3a8b9e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotEnoughBalance", abi = "NotEnoughBalance()")] - pub struct NotEnoughBalance; - ///Custom Error type `NotEnoughFunds` with signature `NotEnoughFunds()` and selector `0x81b5ad68` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotEnoughFunds", abi = "NotEnoughFunds()")] - pub struct NotEnoughFunds; - ///Custom Error type `NotEnoughFundsToRelease` with signature `NotEnoughFundsToRelease()` and selector `0x79b33e79` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotEnoughFundsToRelease", abi = "NotEnoughFundsToRelease()")] - pub struct NotEnoughFundsToRelease; - ///Custom Error type `NotRegisteredSubnet` with signature `NotRegisteredSubnet()` and selector `0xe991abd0` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotRegisteredSubnet", abi = "NotRegisteredSubnet()")] - pub struct NotRegisteredSubnet; - ///Custom Error type `ReentrancyError` with signature `ReentrancyError()` and selector `0x29f745a7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ReentrancyError", abi = "ReentrancyError()")] - pub struct ReentrancyError; - ///Custom Error type `SafeERC20FailedOperation` with signature `SafeERC20FailedOperation(address)` and selector `0x5274afe7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "SafeERC20FailedOperation", - abi = "SafeERC20FailedOperation(address)" - )] - pub struct SafeERC20FailedOperation { - pub token: ::ethers::core::types::Address, - } - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum GatewayManagerFacetErrors { - AddressEmptyCode(AddressEmptyCode), - AddressInsufficientBalance(AddressInsufficientBalance), - AlreadyRegisteredSubnet(AlreadyRegisteredSubnet), - CallFailed(CallFailed), - CannotReleaseZero(CannotReleaseZero), - FailedInnerCall(FailedInnerCall), - InsufficientFunds(InsufficientFunds), - InvalidActorAddress(InvalidActorAddress), - InvalidXnetMessage(InvalidXnetMessage), - MethodNotAllowed(MethodNotAllowed), - NotEmptySubnetCircSupply(NotEmptySubnetCircSupply), - NotEnoughBalance(NotEnoughBalance), - NotEnoughFunds(NotEnoughFunds), - NotEnoughFundsToRelease(NotEnoughFundsToRelease), - NotRegisteredSubnet(NotRegisteredSubnet), - ReentrancyError(ReentrancyError), - SafeERC20FailedOperation(SafeERC20FailedOperation), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for GatewayManagerFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressEmptyCode(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressInsufficientBalance(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AlreadyRegisteredSubnet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CallFailed(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReleaseZero(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FailedInnerCall(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InsufficientFunds(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidActorAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidXnetMessage(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MethodNotAllowed(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEmptySubnetCircSupply(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEnoughBalance(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEnoughFunds(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEnoughFundsToRelease(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotRegisteredSubnet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ReentrancyError(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SafeERC20FailedOperation(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for GatewayManagerFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::AddressEmptyCode(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::AddressInsufficientBalance(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::AlreadyRegisteredSubnet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CallFailed(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReleaseZero(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FailedInnerCall(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InsufficientFunds(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidActorAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidXnetMessage(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MethodNotAllowed(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEmptySubnetCircSupply(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEnoughBalance(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEnoughFunds(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEnoughFundsToRelease(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotRegisteredSubnet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ReentrancyError(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SafeERC20FailedOperation(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for GatewayManagerFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for GatewayManagerFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::AddressEmptyCode(element) => ::core::fmt::Display::fmt(element, f), - Self::AddressInsufficientBalance(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::AlreadyRegisteredSubnet(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CallFailed(element) => ::core::fmt::Display::fmt(element, f), - Self::CannotReleaseZero(element) => ::core::fmt::Display::fmt(element, f), - Self::FailedInnerCall(element) => ::core::fmt::Display::fmt(element, f), - Self::InsufficientFunds(element) => ::core::fmt::Display::fmt(element, f), - Self::InvalidActorAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidXnetMessage(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MethodNotAllowed(element) => ::core::fmt::Display::fmt(element, f), - Self::NotEmptySubnetCircSupply(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotEnoughBalance(element) => ::core::fmt::Display::fmt(element, f), - Self::NotEnoughFunds(element) => ::core::fmt::Display::fmt(element, f), - Self::NotEnoughFundsToRelease(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotRegisteredSubnet(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ReentrancyError(element) => ::core::fmt::Display::fmt(element, f), - Self::SafeERC20FailedOperation(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for GatewayManagerFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: AddressEmptyCode) -> Self { - Self::AddressEmptyCode(value) - } - } - impl ::core::convert::From - for GatewayManagerFacetErrors { - fn from(value: AddressInsufficientBalance) -> Self { - Self::AddressInsufficientBalance(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: AlreadyRegisteredSubnet) -> Self { - Self::AlreadyRegisteredSubnet(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: CallFailed) -> Self { - Self::CallFailed(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: CannotReleaseZero) -> Self { - Self::CannotReleaseZero(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: FailedInnerCall) -> Self { - Self::FailedInnerCall(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: InsufficientFunds) -> Self { - Self::InsufficientFunds(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: InvalidActorAddress) -> Self { - Self::InvalidActorAddress(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: InvalidXnetMessage) -> Self { - Self::InvalidXnetMessage(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: MethodNotAllowed) -> Self { - Self::MethodNotAllowed(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: NotEmptySubnetCircSupply) -> Self { - Self::NotEmptySubnetCircSupply(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: NotEnoughBalance) -> Self { - Self::NotEnoughBalance(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: NotEnoughFunds) -> Self { - Self::NotEnoughFunds(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: NotEnoughFundsToRelease) -> Self { - Self::NotEnoughFundsToRelease(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: NotRegisteredSubnet) -> Self { - Self::NotRegisteredSubnet(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: ReentrancyError) -> Self { - Self::ReentrancyError(value) - } - } - impl ::core::convert::From for GatewayManagerFacetErrors { - fn from(value: SafeERC20FailedOperation) -> Self { - Self::SafeERC20FailedOperation(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "NewBottomUpMsgBatch", abi = "NewBottomUpMsgBatch(uint256)")] - pub struct NewBottomUpMsgBatchFilter { - #[ethevent(indexed)] - pub epoch: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewTopDownMessage", - abi = "NewTopDownMessage(address,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes),bytes32)" - )] - pub struct NewTopDownMessageFilter { - #[ethevent(indexed)] - pub subnet: ::ethers::core::types::Address, - pub message: IpcEnvelope, - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "QueuedBottomUpMessage", abi = "QueuedBottomUpMessage(bytes32)")] - pub struct QueuedBottomUpMessageFilter { - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "SubnetDestroyed", abi = "SubnetDestroyed((uint64,address[]))")] - pub struct SubnetDestroyedFilter { - pub id: SubnetID, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum GatewayManagerFacetEvents { - NewBottomUpMsgBatchFilter(NewBottomUpMsgBatchFilter), - NewTopDownMessageFilter(NewTopDownMessageFilter), - QueuedBottomUpMessageFilter(QueuedBottomUpMessageFilter), - SubnetDestroyedFilter(SubnetDestroyedFilter), - } - impl ::ethers::contract::EthLogDecode for GatewayManagerFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = NewBottomUpMsgBatchFilter::decode_log(log) { - return Ok(GatewayManagerFacetEvents::NewBottomUpMsgBatchFilter(decoded)); - } - if let Ok(decoded) = NewTopDownMessageFilter::decode_log(log) { - return Ok(GatewayManagerFacetEvents::NewTopDownMessageFilter(decoded)); - } - if let Ok(decoded) = QueuedBottomUpMessageFilter::decode_log(log) { - return Ok( - GatewayManagerFacetEvents::QueuedBottomUpMessageFilter(decoded), - ); - } - if let Ok(decoded) = SubnetDestroyedFilter::decode_log(log) { - return Ok(GatewayManagerFacetEvents::SubnetDestroyedFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for GatewayManagerFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::NewBottomUpMsgBatchFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewTopDownMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::QueuedBottomUpMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::SubnetDestroyedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for GatewayManagerFacetEvents { - fn from(value: NewBottomUpMsgBatchFilter) -> Self { - Self::NewBottomUpMsgBatchFilter(value) - } - } - impl ::core::convert::From for GatewayManagerFacetEvents { - fn from(value: NewTopDownMessageFilter) -> Self { - Self::NewTopDownMessageFilter(value) - } - } - impl ::core::convert::From - for GatewayManagerFacetEvents { - fn from(value: QueuedBottomUpMessageFilter) -> Self { - Self::QueuedBottomUpMessageFilter(value) - } - } - impl ::core::convert::From for GatewayManagerFacetEvents { - fn from(value: SubnetDestroyedFilter) -> Self { - Self::SubnetDestroyedFilter(value) - } - } - ///Container type for all input parameters for the `addStake` function with signature `addStake(uint256)` and selector `0xeb4f16b5` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "addStake", abi = "addStake(uint256)")] - pub struct AddStakeCall { - pub amount: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `fund` function with signature `fund((uint64,address[]),(uint8,bytes))` and selector `0x18f44b70` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "fund", abi = "fund((uint64,address[]),(uint8,bytes))")] - pub struct FundCall { - pub subnet_id: SubnetID, - pub to: FvmAddress, - } - ///Container type for all input parameters for the `fundWithToken` function with signature `fundWithToken((uint64,address[]),(uint8,bytes),uint256)` and selector `0x0517e1aa` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "fundWithToken", - abi = "fundWithToken((uint64,address[]),(uint8,bytes),uint256)" - )] - pub struct FundWithTokenCall { - pub subnet_id: SubnetID, - pub to: FvmAddress, - pub amount: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `kill` function with signature `kill()` and selector `0x41c0e1b5` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "kill", abi = "kill()")] - pub struct KillCall; - ///Container type for all input parameters for the `register` function with signature `register(uint256,uint256)` and selector `0xd66d6c10` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "register", abi = "register(uint256,uint256)")] - pub struct RegisterCall { - pub genesis_circ_supply: ::ethers::core::types::U256, - pub collateral: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `release` function with signature `release((uint8,bytes))` and selector `0x6b2c1eef` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "release", abi = "release((uint8,bytes))")] - pub struct ReleaseCall { - pub to: FvmAddress, - } - ///Container type for all input parameters for the `releaseStake` function with signature `releaseStake(uint256)` and selector `0x45f54485` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "releaseStake", abi = "releaseStake(uint256)")] - pub struct ReleaseStakeCall { - pub amount: ::ethers::core::types::U256, - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum GatewayManagerFacetCalls { - AddStake(AddStakeCall), - Fund(FundCall), - FundWithToken(FundWithTokenCall), - Kill(KillCall), - Register(RegisterCall), - Release(ReleaseCall), - ReleaseStake(ReleaseStakeCall), - } - impl ::ethers::core::abi::AbiDecode for GatewayManagerFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddStake(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Fund(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FundWithToken(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Kill(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Register(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Release(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ReleaseStake(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for GatewayManagerFacetCalls { - fn encode(self) -> Vec { - match self { - Self::AddStake(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Fund(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::FundWithToken(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Kill(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Register(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Release(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::ReleaseStake(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for GatewayManagerFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::AddStake(element) => ::core::fmt::Display::fmt(element, f), - Self::Fund(element) => ::core::fmt::Display::fmt(element, f), - Self::FundWithToken(element) => ::core::fmt::Display::fmt(element, f), - Self::Kill(element) => ::core::fmt::Display::fmt(element, f), - Self::Register(element) => ::core::fmt::Display::fmt(element, f), - Self::Release(element) => ::core::fmt::Display::fmt(element, f), - Self::ReleaseStake(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for GatewayManagerFacetCalls { - fn from(value: AddStakeCall) -> Self { - Self::AddStake(value) - } - } - impl ::core::convert::From for GatewayManagerFacetCalls { - fn from(value: FundCall) -> Self { - Self::Fund(value) - } - } - impl ::core::convert::From for GatewayManagerFacetCalls { - fn from(value: FundWithTokenCall) -> Self { - Self::FundWithToken(value) - } - } - impl ::core::convert::From for GatewayManagerFacetCalls { - fn from(value: KillCall) -> Self { - Self::Kill(value) - } - } - impl ::core::convert::From for GatewayManagerFacetCalls { - fn from(value: RegisterCall) -> Self { - Self::Register(value) - } - } - impl ::core::convert::From for GatewayManagerFacetCalls { - fn from(value: ReleaseCall) -> Self { - Self::Release(value) - } - } - impl ::core::convert::From for GatewayManagerFacetCalls { - fn from(value: ReleaseStakeCall) -> Self { - Self::ReleaseStake(value) - } - } - ///`FvmAddress(uint8,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FvmAddress { - pub addr_type: u8, - pub payload: ::ethers::core::types::Bytes, - } - ///`Ipcaddress((uint64,address[]),(uint8,bytes))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Ipcaddress { - pub subnet_id: SubnetID, - pub raw_address: FvmAddress, - } - ///`IpcEnvelope(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IpcEnvelope { - pub kind: u8, - pub local_nonce: u64, - pub original_nonce: u64, - pub value: ::ethers::core::types::U256, - pub to: Ipcaddress, - pub from: Ipcaddress, - pub message: ::ethers::core::types::Bytes, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } -} diff --git a/crates/binding/src/gateway_messenger_facet.rs b/crates/binding/src/gateway_messenger_facet.rs deleted file mode 100644 index dc290ba2e..000000000 --- a/crates/binding/src/gateway_messenger_facet.rs +++ /dev/null @@ -1,1172 +0,0 @@ -pub use gateway_messenger_facet::*; -/// 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 gateway_messenger_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("propagateAll"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("propagateAll"), - inputs: ::std::vec![], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("sendContractXnetMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "sendContractXnetMessage", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("envelope"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct IpcEnvelope"), - ), - }, - ], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("committed"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct IpcEnvelope"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, - }, - ], - ), - ]), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("MessagePropagatedFromPostbox"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "MessagePropagatedFromPostbox", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewBottomUpMsgBatch"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewBottomUpMsgBatch", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("epoch"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("subnet"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("message"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("QueuedBottomUpMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "QueuedBottomUpMessage", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("AddressEmptyCode"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("AddressEmptyCode"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("target"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("AddressInsufficientBalance"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "AddressInsufficientBalance", - ), - 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"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CallFailed"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("CallFailed"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FailedInnerCall"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FailedInnerCall"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InsufficientFunds"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InsufficientFunds"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidXnetMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InvalidXnetMessage"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("reason"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "enum InvalidXnetMessageReason", - ), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MethodNotAllowed"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("MethodNotAllowed"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("reason"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SafeERC20FailedOperation"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "SafeERC20FailedOperation", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("token"), - 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 GATEWAYMESSENGERFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct GatewayMessengerFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for GatewayMessengerFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for GatewayMessengerFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for GatewayMessengerFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for GatewayMessengerFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(GatewayMessengerFacet)) - .field(&self.address()) - .finish() - } - } - impl GatewayMessengerFacet { - /// 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(), - GATEWAYMESSENGERFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `propagateAll` (0x7f7999f4) function - pub fn propagate_all( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([127, 121, 153, 244], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `sendContractXnetMessage` (0x2c85ec2c) function - pub fn send_contract_xnet_message( - &self, - envelope: IpcEnvelope, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([44, 133, 236, 44], (envelope,)) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `MessagePropagatedFromPostbox` event - pub fn message_propagated_from_postbox_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - MessagePropagatedFromPostboxFilter, - > { - self.0.event() - } - ///Gets the contract's `NewBottomUpMsgBatch` event - pub fn new_bottom_up_msg_batch_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewBottomUpMsgBatchFilter, - > { - self.0.event() - } - ///Gets the contract's `NewTopDownMessage` event - pub fn new_top_down_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewTopDownMessageFilter, - > { - self.0.event() - } - ///Gets the contract's `QueuedBottomUpMessage` event - pub fn queued_bottom_up_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - QueuedBottomUpMessageFilter, - > { - 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, - GatewayMessengerFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for GatewayMessengerFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `AddressEmptyCode` with signature `AddressEmptyCode(address)` and selector `0x9996b315` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "AddressEmptyCode", abi = "AddressEmptyCode(address)")] - pub struct AddressEmptyCode { - pub target: ::ethers::core::types::Address, - } - ///Custom Error type `AddressInsufficientBalance` with signature `AddressInsufficientBalance(address)` and selector `0xcd786059` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "AddressInsufficientBalance", - abi = "AddressInsufficientBalance(address)" - )] - pub struct AddressInsufficientBalance { - pub account: ::ethers::core::types::Address, - } - ///Custom Error type `CallFailed` with signature `CallFailed()` and selector `0x3204506f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "CallFailed", abi = "CallFailed()")] - pub struct CallFailed; - ///Custom Error type `FailedInnerCall` with signature `FailedInnerCall()` and selector `0x1425ea42` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FailedInnerCall", abi = "FailedInnerCall()")] - pub struct FailedInnerCall; - ///Custom Error type `InsufficientFunds` with signature `InsufficientFunds()` and selector `0x356680b7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InsufficientFunds", abi = "InsufficientFunds()")] - pub struct InsufficientFunds; - ///Custom Error type `InvalidXnetMessage` with signature `InvalidXnetMessage(uint8)` and selector `0xbc0f01cf` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidXnetMessage", abi = "InvalidXnetMessage(uint8)")] - pub struct InvalidXnetMessage { - pub reason: u8, - } - ///Custom Error type `MethodNotAllowed` with signature `MethodNotAllowed(string)` and selector `0x015538b1` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "MethodNotAllowed", abi = "MethodNotAllowed(string)")] - pub struct MethodNotAllowed { - pub reason: ::std::string::String, - } - ///Custom Error type `SafeERC20FailedOperation` with signature `SafeERC20FailedOperation(address)` and selector `0x5274afe7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "SafeERC20FailedOperation", - abi = "SafeERC20FailedOperation(address)" - )] - pub struct SafeERC20FailedOperation { - pub token: ::ethers::core::types::Address, - } - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum GatewayMessengerFacetErrors { - AddressEmptyCode(AddressEmptyCode), - AddressInsufficientBalance(AddressInsufficientBalance), - CallFailed(CallFailed), - FailedInnerCall(FailedInnerCall), - InsufficientFunds(InsufficientFunds), - InvalidXnetMessage(InvalidXnetMessage), - MethodNotAllowed(MethodNotAllowed), - SafeERC20FailedOperation(SafeERC20FailedOperation), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for GatewayMessengerFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressEmptyCode(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressInsufficientBalance(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CallFailed(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FailedInnerCall(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InsufficientFunds(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidXnetMessage(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MethodNotAllowed(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SafeERC20FailedOperation(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for GatewayMessengerFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::AddressEmptyCode(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::AddressInsufficientBalance(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CallFailed(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FailedInnerCall(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InsufficientFunds(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidXnetMessage(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MethodNotAllowed(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SafeERC20FailedOperation(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for GatewayMessengerFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for GatewayMessengerFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::AddressEmptyCode(element) => ::core::fmt::Display::fmt(element, f), - Self::AddressInsufficientBalance(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CallFailed(element) => ::core::fmt::Display::fmt(element, f), - Self::FailedInnerCall(element) => ::core::fmt::Display::fmt(element, f), - Self::InsufficientFunds(element) => ::core::fmt::Display::fmt(element, f), - Self::InvalidXnetMessage(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MethodNotAllowed(element) => ::core::fmt::Display::fmt(element, f), - Self::SafeERC20FailedOperation(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for GatewayMessengerFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for GatewayMessengerFacetErrors { - fn from(value: AddressEmptyCode) -> Self { - Self::AddressEmptyCode(value) - } - } - impl ::core::convert::From - for GatewayMessengerFacetErrors { - fn from(value: AddressInsufficientBalance) -> Self { - Self::AddressInsufficientBalance(value) - } - } - impl ::core::convert::From for GatewayMessengerFacetErrors { - fn from(value: CallFailed) -> Self { - Self::CallFailed(value) - } - } - impl ::core::convert::From for GatewayMessengerFacetErrors { - fn from(value: FailedInnerCall) -> Self { - Self::FailedInnerCall(value) - } - } - impl ::core::convert::From for GatewayMessengerFacetErrors { - fn from(value: InsufficientFunds) -> Self { - Self::InsufficientFunds(value) - } - } - impl ::core::convert::From for GatewayMessengerFacetErrors { - fn from(value: InvalidXnetMessage) -> Self { - Self::InvalidXnetMessage(value) - } - } - impl ::core::convert::From for GatewayMessengerFacetErrors { - fn from(value: MethodNotAllowed) -> Self { - Self::MethodNotAllowed(value) - } - } - impl ::core::convert::From - for GatewayMessengerFacetErrors { - fn from(value: SafeERC20FailedOperation) -> Self { - Self::SafeERC20FailedOperation(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "MessagePropagatedFromPostbox", - abi = "MessagePropagatedFromPostbox(bytes32)" - )] - pub struct MessagePropagatedFromPostboxFilter { - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "NewBottomUpMsgBatch", abi = "NewBottomUpMsgBatch(uint256)")] - pub struct NewBottomUpMsgBatchFilter { - #[ethevent(indexed)] - pub epoch: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewTopDownMessage", - abi = "NewTopDownMessage(address,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes),bytes32)" - )] - pub struct NewTopDownMessageFilter { - #[ethevent(indexed)] - pub subnet: ::ethers::core::types::Address, - pub message: IpcEnvelope, - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "QueuedBottomUpMessage", abi = "QueuedBottomUpMessage(bytes32)")] - pub struct QueuedBottomUpMessageFilter { - #[ethevent(indexed)] - pub id: [u8; 32], - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum GatewayMessengerFacetEvents { - MessagePropagatedFromPostboxFilter(MessagePropagatedFromPostboxFilter), - NewBottomUpMsgBatchFilter(NewBottomUpMsgBatchFilter), - NewTopDownMessageFilter(NewTopDownMessageFilter), - QueuedBottomUpMessageFilter(QueuedBottomUpMessageFilter), - } - impl ::ethers::contract::EthLogDecode for GatewayMessengerFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = MessagePropagatedFromPostboxFilter::decode_log(log) { - return Ok( - GatewayMessengerFacetEvents::MessagePropagatedFromPostboxFilter( - decoded, - ), - ); - } - if let Ok(decoded) = NewBottomUpMsgBatchFilter::decode_log(log) { - return Ok( - GatewayMessengerFacetEvents::NewBottomUpMsgBatchFilter(decoded), - ); - } - if let Ok(decoded) = NewTopDownMessageFilter::decode_log(log) { - return Ok(GatewayMessengerFacetEvents::NewTopDownMessageFilter(decoded)); - } - if let Ok(decoded) = QueuedBottomUpMessageFilter::decode_log(log) { - return Ok( - GatewayMessengerFacetEvents::QueuedBottomUpMessageFilter(decoded), - ); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for GatewayMessengerFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::MessagePropagatedFromPostboxFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewBottomUpMsgBatchFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewTopDownMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::QueuedBottomUpMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From - for GatewayMessengerFacetEvents { - fn from(value: MessagePropagatedFromPostboxFilter) -> Self { - Self::MessagePropagatedFromPostboxFilter(value) - } - } - impl ::core::convert::From - for GatewayMessengerFacetEvents { - fn from(value: NewBottomUpMsgBatchFilter) -> Self { - Self::NewBottomUpMsgBatchFilter(value) - } - } - impl ::core::convert::From for GatewayMessengerFacetEvents { - fn from(value: NewTopDownMessageFilter) -> Self { - Self::NewTopDownMessageFilter(value) - } - } - impl ::core::convert::From - for GatewayMessengerFacetEvents { - fn from(value: QueuedBottomUpMessageFilter) -> Self { - Self::QueuedBottomUpMessageFilter(value) - } - } - ///Container type for all input parameters for the `propagateAll` function with signature `propagateAll()` and selector `0x7f7999f4` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "propagateAll", abi = "propagateAll()")] - pub struct PropagateAllCall; - ///Container type for all input parameters for the `sendContractXnetMessage` function with signature `sendContractXnetMessage((uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes))` and selector `0x2c85ec2c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "sendContractXnetMessage", - abi = "sendContractXnetMessage((uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes))" - )] - pub struct SendContractXnetMessageCall { - pub envelope: IpcEnvelope, - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum GatewayMessengerFacetCalls { - PropagateAll(PropagateAllCall), - SendContractXnetMessage(SendContractXnetMessageCall), - } - impl ::ethers::core::abi::AbiDecode for GatewayMessengerFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PropagateAll(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SendContractXnetMessage(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for GatewayMessengerFacetCalls { - fn encode(self) -> Vec { - match self { - Self::PropagateAll(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SendContractXnetMessage(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for GatewayMessengerFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::PropagateAll(element) => ::core::fmt::Display::fmt(element, f), - Self::SendContractXnetMessage(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for GatewayMessengerFacetCalls { - fn from(value: PropagateAllCall) -> Self { - Self::PropagateAll(value) - } - } - impl ::core::convert::From - for GatewayMessengerFacetCalls { - fn from(value: SendContractXnetMessageCall) -> Self { - Self::SendContractXnetMessage(value) - } - } - ///Container type for all return fields from the `sendContractXnetMessage` function with signature `sendContractXnetMessage((uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes))` and selector `0x2c85ec2c` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SendContractXnetMessageReturn { - pub committed: IpcEnvelope, - } - ///`FvmAddress(uint8,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FvmAddress { - pub addr_type: u8, - pub payload: ::ethers::core::types::Bytes, - } - ///`Ipcaddress((uint64,address[]),(uint8,bytes))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Ipcaddress { - pub subnet_id: SubnetID, - pub raw_address: FvmAddress, - } - ///`IpcEnvelope(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IpcEnvelope { - pub kind: u8, - pub local_nonce: u64, - pub original_nonce: u64, - pub value: ::ethers::core::types::U256, - pub to: Ipcaddress, - pub from: Ipcaddress, - pub message: ::ethers::core::types::Bytes, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } -} diff --git a/crates/binding/src/i_diamond.rs b/crates/binding/src/i_diamond.rs deleted file mode 100644 index 8499e3d00..000000000 --- a/crates/binding/src/i_diamond.rs +++ /dev/null @@ -1,168 +0,0 @@ -pub use i_diamond::*; -/// 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 i_diamond { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::std::collections::BTreeMap::new(), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("DiamondCut"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("DiamondCut"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_diamondCut"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_init"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::std::collections::BTreeMap::new(), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static IDIAMOND_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = ::ethers::contract::Lazy::new( - __abi, - ); - pub struct IDiamond(::ethers::contract::Contract); - impl ::core::clone::Clone for IDiamond { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for IDiamond { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for IDiamond { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for IDiamond { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(IDiamond)).field(&self.address()).finish() - } - } - impl IDiamond { - /// 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(), - IDIAMOND_ABI.clone(), - client, - ), - ) - } - ///Gets the contract's `DiamondCut` event - pub fn diamond_cut_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - DiamondCutFilter, - > { - 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, - DiamondCutFilter, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for IDiamond { - 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 = "DiamondCut", - abi = "DiamondCut((address,uint8,bytes4[])[],address,bytes)" - )] - pub struct DiamondCutFilter { - pub diamond_cut: ::std::vec::Vec, - pub init: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - ///`FacetCut(address,uint8,bytes4[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FacetCut { - pub facet_address: ::ethers::core::types::Address, - pub action: u8, - pub function_selectors: ::std::vec::Vec<[u8; 4]>, - } -} diff --git a/crates/binding/src/lib.rs b/crates/binding/src/lib.rs deleted file mode 100644 index 5bed0b2b0..000000000 --- a/crates/binding/src/lib.rs +++ /dev/null @@ -1,63 +0,0 @@ -//! This file was generated by build.rs and will be overriden -#[macro_use] -mod convert; -#[allow(clippy::all)] -pub mod i_diamond; -#[allow(clippy::all)] -pub mod diamond_loupe_facet; -#[allow(clippy::all)] -pub mod diamond_cut_facet; -#[allow(clippy::all)] -pub mod ownership_facet; -#[allow(clippy::all)] -pub mod gateway_diamond; -#[allow(clippy::all)] -pub mod gateway_manager_facet; -#[allow(clippy::all)] -pub mod gateway_getter_facet; -#[allow(clippy::all)] -pub mod checkpointing_facet; -#[allow(clippy::all)] -pub mod top_down_finality_facet; -#[allow(clippy::all)] -pub mod xnet_messaging_facet; -#[allow(clippy::all)] -pub mod gateway_messenger_facet; -#[allow(clippy::all)] -pub mod subnet_actor_activity_facet; -#[allow(clippy::all)] -pub mod subnet_actor_checkpointing_facet; -#[allow(clippy::all)] -pub mod subnet_actor_diamond; -#[allow(clippy::all)] -pub mod subnet_actor_getter_facet; -#[allow(clippy::all)] -pub mod subnet_actor_manager_facet; -#[allow(clippy::all)] -pub mod subnet_actor_pause_facet; -#[allow(clippy::all)] -pub mod subnet_actor_reward_facet; -#[allow(clippy::all)] -pub mod subnet_registry_diamond; -#[allow(clippy::all)] -pub mod register_subnet_facet; -#[allow(clippy::all)] -pub mod subnet_getter_facet; -#[allow(clippy::all)] -pub mod lib_staking; -#[allow(clippy::all)] -pub mod lib_staking_change_log; -#[allow(clippy::all)] -pub mod lib_gateway; -#[allow(clippy::all)] -pub mod lib_quorum; -fvm_address_conversion!(gateway_manager_facet); -fvm_address_conversion!(gateway_getter_facet); -fvm_address_conversion!(xnet_messaging_facet); -fvm_address_conversion!(gateway_messenger_facet); -fvm_address_conversion!(subnet_actor_checkpointing_facet); -fvm_address_conversion!(subnet_actor_getter_facet); -fvm_address_conversion!(lib_gateway); -fvm_address_conversion!(checkpointing_facet); -common_type_conversion!(subnet_actor_getter_facet, checkpointing_facet); -common_type_conversion!(subnet_actor_getter_facet, xnet_messaging_facet); diff --git a/crates/binding/src/lib_gateway.rs b/crates/binding/src/lib_gateway.rs deleted file mode 100644 index 1f763b796..000000000 --- a/crates/binding/src/lib_gateway.rs +++ /dev/null @@ -1,664 +0,0 @@ -pub use lib_gateway::*; -/// 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 lib_gateway { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::std::collections::BTreeMap::new(), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("MembershipUpdated"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("MembershipUpdated"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MessagePropagatedFromPostbox"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "MessagePropagatedFromPostbox", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MessageStoredInPostbox"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "MessageStoredInPostbox", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewBottomUpMsgBatch"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewBottomUpMsgBatch", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("epoch"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("subnet"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("message"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("QueuedBottomUpMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "QueuedBottomUpMessage", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::std::collections::BTreeMap::new(), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static LIBGATEWAY_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = ::ethers::contract::Lazy::new( - __abi, - ); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4`\x17W`9\x90\x81`\x1C\x8290\x81PP\xF3[_\x80\xFD\xFE_\x80\xFD\xFE\xA2dipfsX\"\x12 \x95\xC4SW\xFE\xFA\xD9@\x86\x85n\xC7>\x1B?\x17N\x0B\x94\x96\xF0\xFD\xAFm\xD8\x88\xA7l\xC6\xB9\x80\xB9dsolcC\0\x08\x17\x003"; - /// The bytecode of the contract. - pub static LIBGATEWAY_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"_\x80\xFD\xFE\xA2dipfsX\"\x12 \x95\xC4SW\xFE\xFA\xD9@\x86\x85n\xC7>\x1B?\x17N\x0B\x94\x96\xF0\xFD\xAFm\xD8\x88\xA7l\xC6\xB9\x80\xB9dsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static LIBGATEWAY_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct LibGateway(::ethers::contract::Contract); - impl ::core::clone::Clone for LibGateway { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for LibGateway { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for LibGateway { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for LibGateway { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(LibGateway)).field(&self.address()).finish() - } - } - impl LibGateway { - /// 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(), - LIBGATEWAY_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( - LIBGATEWAY_ABI.clone(), - LIBGATEWAY_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Gets the contract's `MembershipUpdated` event - pub fn membership_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - MembershipUpdatedFilter, - > { - self.0.event() - } - ///Gets the contract's `MessagePropagatedFromPostbox` event - pub fn message_propagated_from_postbox_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - MessagePropagatedFromPostboxFilter, - > { - self.0.event() - } - ///Gets the contract's `MessageStoredInPostbox` event - pub fn message_stored_in_postbox_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - MessageStoredInPostboxFilter, - > { - self.0.event() - } - ///Gets the contract's `NewBottomUpMsgBatch` event - pub fn new_bottom_up_msg_batch_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewBottomUpMsgBatchFilter, - > { - self.0.event() - } - ///Gets the contract's `NewTopDownMessage` event - pub fn new_top_down_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewTopDownMessageFilter, - > { - self.0.event() - } - ///Gets the contract's `QueuedBottomUpMessage` event - pub fn queued_bottom_up_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - QueuedBottomUpMessageFilter, - > { - 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, - LibGatewayEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for LibGateway { - 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 = "MembershipUpdated", - abi = "MembershipUpdated(((uint256,address,bytes)[],uint64))" - )] - pub struct MembershipUpdatedFilter(pub Membership); - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "MessagePropagatedFromPostbox", - abi = "MessagePropagatedFromPostbox(bytes32)" - )] - pub struct MessagePropagatedFromPostboxFilter { - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "MessageStoredInPostbox", abi = "MessageStoredInPostbox(bytes32)")] - pub struct MessageStoredInPostboxFilter { - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "NewBottomUpMsgBatch", abi = "NewBottomUpMsgBatch(uint256)")] - pub struct NewBottomUpMsgBatchFilter { - #[ethevent(indexed)] - pub epoch: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewTopDownMessage", - abi = "NewTopDownMessage(address,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes),bytes32)" - )] - pub struct NewTopDownMessageFilter { - #[ethevent(indexed)] - pub subnet: ::ethers::core::types::Address, - pub message: IpcEnvelope, - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "QueuedBottomUpMessage", abi = "QueuedBottomUpMessage(bytes32)")] - pub struct QueuedBottomUpMessageFilter { - #[ethevent(indexed)] - pub id: [u8; 32], - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum LibGatewayEvents { - MembershipUpdatedFilter(MembershipUpdatedFilter), - MessagePropagatedFromPostboxFilter(MessagePropagatedFromPostboxFilter), - MessageStoredInPostboxFilter(MessageStoredInPostboxFilter), - NewBottomUpMsgBatchFilter(NewBottomUpMsgBatchFilter), - NewTopDownMessageFilter(NewTopDownMessageFilter), - QueuedBottomUpMessageFilter(QueuedBottomUpMessageFilter), - } - impl ::ethers::contract::EthLogDecode for LibGatewayEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = MembershipUpdatedFilter::decode_log(log) { - return Ok(LibGatewayEvents::MembershipUpdatedFilter(decoded)); - } - if let Ok(decoded) = MessagePropagatedFromPostboxFilter::decode_log(log) { - return Ok(LibGatewayEvents::MessagePropagatedFromPostboxFilter(decoded)); - } - if let Ok(decoded) = MessageStoredInPostboxFilter::decode_log(log) { - return Ok(LibGatewayEvents::MessageStoredInPostboxFilter(decoded)); - } - if let Ok(decoded) = NewBottomUpMsgBatchFilter::decode_log(log) { - return Ok(LibGatewayEvents::NewBottomUpMsgBatchFilter(decoded)); - } - if let Ok(decoded) = NewTopDownMessageFilter::decode_log(log) { - return Ok(LibGatewayEvents::NewTopDownMessageFilter(decoded)); - } - if let Ok(decoded) = QueuedBottomUpMessageFilter::decode_log(log) { - return Ok(LibGatewayEvents::QueuedBottomUpMessageFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for LibGatewayEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::MembershipUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MessagePropagatedFromPostboxFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MessageStoredInPostboxFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewBottomUpMsgBatchFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewTopDownMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::QueuedBottomUpMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for LibGatewayEvents { - fn from(value: MembershipUpdatedFilter) -> Self { - Self::MembershipUpdatedFilter(value) - } - } - impl ::core::convert::From for LibGatewayEvents { - fn from(value: MessagePropagatedFromPostboxFilter) -> Self { - Self::MessagePropagatedFromPostboxFilter(value) - } - } - impl ::core::convert::From for LibGatewayEvents { - fn from(value: MessageStoredInPostboxFilter) -> Self { - Self::MessageStoredInPostboxFilter(value) - } - } - impl ::core::convert::From for LibGatewayEvents { - fn from(value: NewBottomUpMsgBatchFilter) -> Self { - Self::NewBottomUpMsgBatchFilter(value) - } - } - impl ::core::convert::From for LibGatewayEvents { - fn from(value: NewTopDownMessageFilter) -> Self { - Self::NewTopDownMessageFilter(value) - } - } - impl ::core::convert::From for LibGatewayEvents { - fn from(value: QueuedBottomUpMessageFilter) -> Self { - Self::QueuedBottomUpMessageFilter(value) - } - } - ///`FvmAddress(uint8,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FvmAddress { - pub addr_type: u8, - pub payload: ::ethers::core::types::Bytes, - } - ///`Ipcaddress((uint64,address[]),(uint8,bytes))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Ipcaddress { - pub subnet_id: SubnetID, - pub raw_address: FvmAddress, - } - ///`IpcEnvelope(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IpcEnvelope { - pub kind: u8, - pub local_nonce: u64, - pub original_nonce: u64, - pub value: ::ethers::core::types::U256, - pub to: Ipcaddress, - pub from: Ipcaddress, - pub message: ::ethers::core::types::Bytes, - } - ///`Membership((uint256,address,bytes)[],uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Membership { - pub validators: ::std::vec::Vec, - pub configuration_number: u64, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } - ///`Validator(uint256,address,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Validator { - pub weight: ::ethers::core::types::U256, - pub addr: ::ethers::core::types::Address, - pub metadata: ::ethers::core::types::Bytes, - } -} diff --git a/crates/binding/src/lib_quorum.rs b/crates/binding/src/lib_quorum.rs deleted file mode 100644 index e3239e024..000000000 --- a/crates/binding/src/lib_quorum.rs +++ /dev/null @@ -1,311 +0,0 @@ -pub use lib_quorum::*; -/// 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 lib_quorum { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::std::collections::BTreeMap::new(), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("QuorumReached"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("QuorumReached"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("objKind"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("height"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("objHash"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("quorumWeight"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("QuorumWeightUpdated"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "QuorumWeightUpdated", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("objKind"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("height"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("objHash"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newWeight"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::std::collections::BTreeMap::new(), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static LIBQUORUM_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = ::ethers::contract::Lazy::new( - __abi, - ); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x1AWa\x044\x90\x81a\0\x1F\x8290\x81PP\xF3[_\x80\xFD\xFE`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1Cc\x08\xA6\xAD%\x14a\0%W_\x80\xFD[`@6`\x03\x19\x01\x12a\x03hW`\x80\x81a\0>_\x93a\x03lV[\x82\x81R\x82` \x82\x01R\x82`@\x82\x01R\x82``\x82\x01R\x01R`$5_R`\x02`\x045\x01` R`@_ `\xFF`\x04`@Q\x92a\0x\x84a\x03lV[\x80T\x84R`\x01\x81\x01T` \x85\x01R`\x02\x81\x01T`@\x85\x01R`\x03\x81\x01T``\x85\x01R\x01T\x16\x15\x15`\x80\x82\x01R`$5_R`\x05`\x045\x01` R`@_ \x90`@Q\x90\x81\x82` \x85T\x92\x83\x81R\x01\x80\x95_R` _ \x92_[\x81\x81\x10a\x03OWPPa\0\xE6\x92P\x03\x83a\x03\x9CV[\x81Q\x90a\0\xF2\x82a\x03\xBEV[\x91a\x01\0`@Q\x93\x84a\x03\x9CV[\x80\x83Ra\x01\x0C\x81a\x03\xBEV[_[`\x1F\x19\x82\x01\x81\x10a\x03>WPP_[\x81\x81\x10a\x02%WPP`@Q\x92`\x80`\xE0\x85\x01\x92\x80Q\x86R` \x81\x01Q` \x87\x01R`@\x81\x01Q`@\x87\x01R``\x81\x01Q``\x87\x01R\x01Q\x15\x15`\x80\x85\x01R`\xE0`\xA0\x85\x01RQ\x80\x91Ra\x01\0\x83\x01\x93\x90_[\x81\x81\x10a\x02\x06WPPP\x81\x83\x03`\xC0\x83\x01R\x80Q\x80\x84R` \x84\x01\x90` \x80\x82`\x05\x1B\x87\x01\x01\x93\x01\x91_\x95[\x82\x87\x10a\x01\xA9W\x85\x85\x03\x86\xF3[\x90\x91\x92\x93`\x1F\x19\x82\x82\x03\x01\x83R\x84Q\x80Q\x90\x81\x83R_[\x82\x81\x10a\x01\xF1WPP` \x80\x83\x83_\x83\x80\x96`\x01\x98\x01\x01R`\x1F\x80\x19\x91\x01\x16\x01\x01\x96\x01\x93\x01\x96\x01\x95\x90\x92\x91\x92a\x01\x9CV[\x80` \x80\x92\x84\x01\x01Q\x82\x82\x87\x01\x01R\x01a\x01\xC0V[\x82Q`\x01`\x01`\xA0\x1B\x03\x16\x86R` \x95\x86\x01\x95\x90\x92\x01\x91`\x01\x01a\x01pV[`$5_\x90\x81R`\x045`\x06\x01` R`@\x90 `\x01`\x01`\xA0\x1B\x03a\x02K\x83\x88a\x03\xD6V[Q\x16_R` R`@_ `@Q\x90_\x90\x80T\x90\x81`\x01\x1C\x91`\x01\x81\x16\x15a\x034W[` \x83\x10`\x01\x82\x16\x14a\x03 W\x82\x85R`\x01\x81\x16\x90\x81\x15a\x02\xF9WP`\x01\x14a\x02\xC0W[PP\x90a\x02\xA4\x81`\x01\x94\x93\x03\x82a\x03\x9CV[a\x02\xAE\x82\x87a\x03\xD6V[Ra\x02\xB9\x81\x86a\x03\xD6V[P\x01a\x01\x1DV[_\x90\x81R` \x81 \x90\x92P[\x81\x83\x10a\x02\xE3WPP\x81\x01` \x01a\x02\xA4\x82a\x02\x92V[`\x01\x81` \x92T\x83\x86\x88\x01\x01R\x01\x92\x01\x91a\x02\xCCV[`\xFF\x19\x16` \x80\x87\x01\x91\x90\x91R\x92\x15\x15`\x05\x1B\x85\x01\x90\x92\x01\x92Pa\x02\xA4\x91P\x83\x90Pa\x02\x92V[cNH{q`\xE0\x1B_R`\"`\x04R`$_\xFD[\x91`\x7F\x16\x91a\x02nV[\x80``` \x80\x93\x88\x01\x01R\x01a\x01\x0EV[\x84T\x83R`\x01\x94\x85\x01\x94\x87\x94P` \x90\x93\x01\x92\x01a\0\xD1V[_\x80\xFD[`\xA0\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x03\x88W`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x03\x88W`@RV[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x88W`\x05\x1B` \x01\x90V[\x80Q\x82\x10\x15a\x03\xEAW` \x91`\x05\x1B\x01\x01\x90V[cNH{q`\xE0\x1B_R`2`\x04R`$_\xFD\xFE\xA2dipfsX\"\x12 \xFB\xF7lq\x81>\x19D\x83\x83\xBD\x17\x82d&\xA7\xBDs\x8A|}\xF5I\xE1&\xD9y_8;?\x9FdsolcC\0\x08\x17\x003"; - /// The bytecode of the contract. - pub static LIBQUORUM_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1Cc\x08\xA6\xAD%\x14a\0%W_\x80\xFD[`@6`\x03\x19\x01\x12a\x03hW`\x80\x81a\0>_\x93a\x03lV[\x82\x81R\x82` \x82\x01R\x82`@\x82\x01R\x82``\x82\x01R\x01R`$5_R`\x02`\x045\x01` R`@_ `\xFF`\x04`@Q\x92a\0x\x84a\x03lV[\x80T\x84R`\x01\x81\x01T` \x85\x01R`\x02\x81\x01T`@\x85\x01R`\x03\x81\x01T``\x85\x01R\x01T\x16\x15\x15`\x80\x82\x01R`$5_R`\x05`\x045\x01` R`@_ \x90`@Q\x90\x81\x82` \x85T\x92\x83\x81R\x01\x80\x95_R` _ \x92_[\x81\x81\x10a\x03OWPPa\0\xE6\x92P\x03\x83a\x03\x9CV[\x81Q\x90a\0\xF2\x82a\x03\xBEV[\x91a\x01\0`@Q\x93\x84a\x03\x9CV[\x80\x83Ra\x01\x0C\x81a\x03\xBEV[_[`\x1F\x19\x82\x01\x81\x10a\x03>WPP_[\x81\x81\x10a\x02%WPP`@Q\x92`\x80`\xE0\x85\x01\x92\x80Q\x86R` \x81\x01Q` \x87\x01R`@\x81\x01Q`@\x87\x01R``\x81\x01Q``\x87\x01R\x01Q\x15\x15`\x80\x85\x01R`\xE0`\xA0\x85\x01RQ\x80\x91Ra\x01\0\x83\x01\x93\x90_[\x81\x81\x10a\x02\x06WPPP\x81\x83\x03`\xC0\x83\x01R\x80Q\x80\x84R` \x84\x01\x90` \x80\x82`\x05\x1B\x87\x01\x01\x93\x01\x91_\x95[\x82\x87\x10a\x01\xA9W\x85\x85\x03\x86\xF3[\x90\x91\x92\x93`\x1F\x19\x82\x82\x03\x01\x83R\x84Q\x80Q\x90\x81\x83R_[\x82\x81\x10a\x01\xF1WPP` \x80\x83\x83_\x83\x80\x96`\x01\x98\x01\x01R`\x1F\x80\x19\x91\x01\x16\x01\x01\x96\x01\x93\x01\x96\x01\x95\x90\x92\x91\x92a\x01\x9CV[\x80` \x80\x92\x84\x01\x01Q\x82\x82\x87\x01\x01R\x01a\x01\xC0V[\x82Q`\x01`\x01`\xA0\x1B\x03\x16\x86R` \x95\x86\x01\x95\x90\x92\x01\x91`\x01\x01a\x01pV[`$5_\x90\x81R`\x045`\x06\x01` R`@\x90 `\x01`\x01`\xA0\x1B\x03a\x02K\x83\x88a\x03\xD6V[Q\x16_R` R`@_ `@Q\x90_\x90\x80T\x90\x81`\x01\x1C\x91`\x01\x81\x16\x15a\x034W[` \x83\x10`\x01\x82\x16\x14a\x03 W\x82\x85R`\x01\x81\x16\x90\x81\x15a\x02\xF9WP`\x01\x14a\x02\xC0W[PP\x90a\x02\xA4\x81`\x01\x94\x93\x03\x82a\x03\x9CV[a\x02\xAE\x82\x87a\x03\xD6V[Ra\x02\xB9\x81\x86a\x03\xD6V[P\x01a\x01\x1DV[_\x90\x81R` \x81 \x90\x92P[\x81\x83\x10a\x02\xE3WPP\x81\x01` \x01a\x02\xA4\x82a\x02\x92V[`\x01\x81` \x92T\x83\x86\x88\x01\x01R\x01\x92\x01\x91a\x02\xCCV[`\xFF\x19\x16` \x80\x87\x01\x91\x90\x91R\x92\x15\x15`\x05\x1B\x85\x01\x90\x92\x01\x92Pa\x02\xA4\x91P\x83\x90Pa\x02\x92V[cNH{q`\xE0\x1B_R`\"`\x04R`$_\xFD[\x91`\x7F\x16\x91a\x02nV[\x80``` \x80\x93\x88\x01\x01R\x01a\x01\x0EV[\x84T\x83R`\x01\x94\x85\x01\x94\x87\x94P` \x90\x93\x01\x92\x01a\0\xD1V[_\x80\xFD[`\xA0\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x03\x88W`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x03\x88W`@RV[g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x11a\x03\x88W`\x05\x1B` \x01\x90V[\x80Q\x82\x10\x15a\x03\xEAW` \x91`\x05\x1B\x01\x01\x90V[cNH{q`\xE0\x1B_R`2`\x04R`$_\xFD\xFE\xA2dipfsX\"\x12 \xFB\xF7lq\x81>\x19D\x83\x83\xBD\x17\x82d&\xA7\xBDs\x8A|}\xF5I\xE1&\xD9y_8;?\x9FdsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static LIBQUORUM_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct LibQuorum(::ethers::contract::Contract); - impl ::core::clone::Clone for LibQuorum { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for LibQuorum { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for LibQuorum { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for LibQuorum { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(LibQuorum)).field(&self.address()).finish() - } - } - impl LibQuorum { - /// 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(), - LIBQUORUM_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( - LIBQUORUM_ABI.clone(), - LIBQUORUM_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Gets the contract's `QuorumReached` event - pub fn quorum_reached_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - QuorumReachedFilter, - > { - self.0.event() - } - ///Gets the contract's `QuorumWeightUpdated` event - pub fn quorum_weight_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - QuorumWeightUpdatedFilter, - > { - 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, - LibQuorumEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for LibQuorum { - 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 = "QuorumReached", - abi = "QuorumReached(uint8,uint256,bytes32,uint256)" - )] - pub struct QuorumReachedFilter { - pub obj_kind: u8, - pub height: ::ethers::core::types::U256, - pub obj_hash: [u8; 32], - pub quorum_weight: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "QuorumWeightUpdated", - abi = "QuorumWeightUpdated(uint8,uint256,bytes32,uint256)" - )] - pub struct QuorumWeightUpdatedFilter { - pub obj_kind: u8, - pub height: ::ethers::core::types::U256, - pub obj_hash: [u8; 32], - pub new_weight: ::ethers::core::types::U256, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum LibQuorumEvents { - QuorumReachedFilter(QuorumReachedFilter), - QuorumWeightUpdatedFilter(QuorumWeightUpdatedFilter), - } - impl ::ethers::contract::EthLogDecode for LibQuorumEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = QuorumReachedFilter::decode_log(log) { - return Ok(LibQuorumEvents::QuorumReachedFilter(decoded)); - } - if let Ok(decoded) = QuorumWeightUpdatedFilter::decode_log(log) { - return Ok(LibQuorumEvents::QuorumWeightUpdatedFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for LibQuorumEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::QuorumReachedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::QuorumWeightUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for LibQuorumEvents { - fn from(value: QuorumReachedFilter) -> Self { - Self::QuorumReachedFilter(value) - } - } - impl ::core::convert::From for LibQuorumEvents { - fn from(value: QuorumWeightUpdatedFilter) -> Self { - Self::QuorumWeightUpdatedFilter(value) - } - } -} diff --git a/crates/binding/src/lib_staking.rs b/crates/binding/src/lib_staking.rs deleted file mode 100644 index 740bc17cd..000000000 --- a/crates/binding/src/lib_staking.rs +++ /dev/null @@ -1,268 +0,0 @@ -pub use lib_staking::*; -/// 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 lib_staking { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::std::collections::BTreeMap::new(), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("CollateralClaimed"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("CollateralClaimed"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::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("ConfigurationNumberConfirmed"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ConfigurationNumberConfirmed", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("number"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::std::collections::BTreeMap::new(), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static LIBSTAKING_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = ::ethers::contract::Lazy::new( - __abi, - ); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4`\x17W`9\x90\x81`\x1C\x8290\x81PP\xF3[_\x80\xFD\xFE_\x80\xFD\xFE\xA2dipfsX\"\x12 s\xC2!JR 6b>\x8Bl\x13fiY\x1D2\xDC\xDB\xAF\xCF\xE1\x85\x1F\xA22j\x1C\xA1\xB4\xF9\xD1dsolcC\0\x08\x17\x003"; - /// The bytecode of the contract. - pub static LIBSTAKING_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"_\x80\xFD\xFE\xA2dipfsX\"\x12 s\xC2!JR 6b>\x8Bl\x13fiY\x1D2\xDC\xDB\xAF\xCF\xE1\x85\x1F\xA22j\x1C\xA1\xB4\xF9\xD1dsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static LIBSTAKING_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct LibStaking(::ethers::contract::Contract); - impl ::core::clone::Clone for LibStaking { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for LibStaking { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for LibStaking { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for LibStaking { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(LibStaking)).field(&self.address()).finish() - } - } - impl LibStaking { - /// 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(), - LIBSTAKING_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( - LIBSTAKING_ABI.clone(), - LIBSTAKING_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Gets the contract's `CollateralClaimed` event - pub fn collateral_claimed_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - CollateralClaimedFilter, - > { - self.0.event() - } - ///Gets the contract's `ConfigurationNumberConfirmed` event - pub fn configuration_number_confirmed_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ConfigurationNumberConfirmedFilter, - > { - 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, - LibStakingEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for LibStaking { - 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 = "CollateralClaimed", abi = "CollateralClaimed(address,uint256)")] - pub struct CollateralClaimedFilter { - pub validator: ::ethers::core::types::Address, - pub amount: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ConfigurationNumberConfirmed", - abi = "ConfigurationNumberConfirmed(uint64)" - )] - pub struct ConfigurationNumberConfirmedFilter { - pub number: u64, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum LibStakingEvents { - CollateralClaimedFilter(CollateralClaimedFilter), - ConfigurationNumberConfirmedFilter(ConfigurationNumberConfirmedFilter), - } - impl ::ethers::contract::EthLogDecode for LibStakingEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = CollateralClaimedFilter::decode_log(log) { - return Ok(LibStakingEvents::CollateralClaimedFilter(decoded)); - } - if let Ok(decoded) = ConfigurationNumberConfirmedFilter::decode_log(log) { - return Ok(LibStakingEvents::ConfigurationNumberConfirmedFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for LibStakingEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::CollateralClaimedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ConfigurationNumberConfirmedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for LibStakingEvents { - fn from(value: CollateralClaimedFilter) -> Self { - Self::CollateralClaimedFilter(value) - } - } - impl ::core::convert::From for LibStakingEvents { - fn from(value: ConfigurationNumberConfirmedFilter) -> Self { - Self::ConfigurationNumberConfirmedFilter(value) - } - } -} diff --git a/crates/binding/src/lib_staking_change_log.rs b/crates/binding/src/lib_staking_change_log.rs deleted file mode 100644 index 7b0d5b95d..000000000 --- a/crates/binding/src/lib_staking_change_log.rs +++ /dev/null @@ -1,201 +0,0 @@ -pub use lib_staking_change_log::*; -/// 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 lib_staking_change_log { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::std::collections::BTreeMap::new(), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("NewStakingChangeRequest"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewStakingChangeRequest", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("op"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("payload"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned( - "configurationNumber", - ), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::std::collections::BTreeMap::new(), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static LIBSTAKINGCHANGELOG_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4`\x17W`9\x90\x81`\x1C\x8290\x81PP\xF3[_\x80\xFD\xFE_\x80\xFD\xFE\xA2dipfsX\"\x12 \xE42\xEA\x852\xFE\xB6\x0C\xD7\xAFg_\xA2`\x068\xD7\xD1E\xCA\xB73\x07\x1E?G\x07\x87w\xE4OZdsolcC\0\x08\x17\x003"; - /// The bytecode of the contract. - pub static LIBSTAKINGCHANGELOG_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"_\x80\xFD\xFE\xA2dipfsX\"\x12 \xE42\xEA\x852\xFE\xB6\x0C\xD7\xAFg_\xA2`\x068\xD7\xD1E\xCA\xB73\x07\x1E?G\x07\x87w\xE4OZdsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static LIBSTAKINGCHANGELOG_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct LibStakingChangeLog(::ethers::contract::Contract); - impl ::core::clone::Clone for LibStakingChangeLog { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for LibStakingChangeLog { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for LibStakingChangeLog { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for LibStakingChangeLog { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(LibStakingChangeLog)) - .field(&self.address()) - .finish() - } - } - impl LibStakingChangeLog { - /// 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(), - LIBSTAKINGCHANGELOG_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( - LIBSTAKINGCHANGELOG_ABI.clone(), - LIBSTAKINGCHANGELOG_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Gets the contract's `NewStakingChangeRequest` event - pub fn new_staking_change_request_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewStakingChangeRequestFilter, - > { - 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, - NewStakingChangeRequestFilter, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for LibStakingChangeLog { - 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 = "NewStakingChangeRequest", - abi = "NewStakingChangeRequest(uint8,address,bytes,uint64)" - )] - pub struct NewStakingChangeRequestFilter { - pub op: u8, - pub validator: ::ethers::core::types::Address, - pub payload: ::ethers::core::types::Bytes, - pub configuration_number: u64, - } -} diff --git a/crates/binding/src/ownership_facet.rs b/crates/binding/src/ownership_facet.rs deleted file mode 100644 index 9cdad393d..000000000 --- a/crates/binding/src/ownership_facet.rs +++ /dev/null @@ -1,470 +0,0 @@ -pub use ownership_facet::*; -/// 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 ownership_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("owner"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("owner"), - inputs: ::std::vec![], - outputs: ::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"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("transferOwnership"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("transferOwnership"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_newOwner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - 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("OwnershipTransferred"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "OwnershipTransferred", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("oldOwner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newOwner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("InvalidAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InvalidAddress"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotOwner"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotOwner"), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static OWNERSHIPFACET_ABI: ::ethers::contract::Lazy<::ethers::core::abi::Abi> = ::ethers::contract::Lazy::new( - __abi, - ); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x16Wa\x01u\x90\x81a\0\x1B\x829\xF3[_\x80\xFD\xFE`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1C\x90\x81c\x8D\xA5\xCB[\x14a\0\xFDWPc\xF2\xFD\xE3\x8B\x14a\x002W_\x80\xFD[4a\0\xF9W` 6`\x03\x19\x01\x12a\0\xF9W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x81\x16\x91\x82\x90\x03a\0\xF9W\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5\x91\x82T\x91\x82\x16\x90\x813\x03a\0\xE7W\x80\x15a\0\xD5W\x7F\x8B\xE0\x07\x9CS\x16Y\x14\x13D\xCD\x1F\xD0\xA4\xF2\x84\x19I\x7F\x97\"\xA3\xDA\xAF\xE3\xB4\x18okdW\xE0\x93\x81`@\x94k\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\xA0\x1B\x16\x17\x90U\x82Q\x91\x82R` \x82\x01R\xA1\0[`@Qc\xE6\xC4${`\xE0\x1B\x81R`\x04\x90\xFD[`@Qc0\xCDtq`\xE0\x1B\x81R`\x04\x90\xFD[_\x80\xFD[4a\0\xF9W_6`\x03\x19\x01\x12a\0\xF9W\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5T`\x01`\x01`\xA0\x1B\x03\x16\x81R` \x90\xF3\xFE\xA2dipfsX\"\x12 \xF8U\xAEfN\x88\xDA\x99\xB25\xCD\xE9\x8E~\x90P3\xAE\xB8\xC6\x8D\x19\x048\x9D5\xC6\x95\xA3,6/dsolcC\0\x08\x17\x003"; - /// The bytecode of the contract. - pub static OWNERSHIPFACET_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"`\x80\x80`@R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1C\x90\x81c\x8D\xA5\xCB[\x14a\0\xFDWPc\xF2\xFD\xE3\x8B\x14a\x002W_\x80\xFD[4a\0\xF9W` 6`\x03\x19\x01\x12a\0\xF9W`\x045`\x01`\x01`\xA0\x1B\x03\x81\x81\x16\x91\x82\x90\x03a\0\xF9W\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5\x91\x82T\x91\x82\x16\x90\x813\x03a\0\xE7W\x80\x15a\0\xD5W\x7F\x8B\xE0\x07\x9CS\x16Y\x14\x13D\xCD\x1F\xD0\xA4\xF2\x84\x19I\x7F\x97\"\xA3\xDA\xAF\xE3\xB4\x18okdW\xE0\x93\x81`@\x94k\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\xA0\x1B\x16\x17\x90U\x82Q\x91\x82R` \x82\x01R\xA1\0[`@Qc\xE6\xC4${`\xE0\x1B\x81R`\x04\x90\xFD[`@Qc0\xCDtq`\xE0\x1B\x81R`\x04\x90\xFD[_\x80\xFD[4a\0\xF9W_6`\x03\x19\x01\x12a\0\xF9W\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5T`\x01`\x01`\xA0\x1B\x03\x16\x81R` \x90\xF3\xFE\xA2dipfsX\"\x12 \xF8U\xAEfN\x88\xDA\x99\xB25\xCD\xE9\x8E~\x90P3\xAE\xB8\xC6\x8D\x19\x048\x9D5\xC6\x95\xA3,6/dsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static OWNERSHIPFACET_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct OwnershipFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for OwnershipFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for OwnershipFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for OwnershipFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for OwnershipFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(OwnershipFacet)) - .field(&self.address()) - .finish() - } - } - impl OwnershipFacet { - /// 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(), - OWNERSHIPFACET_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( - OWNERSHIPFACET_ABI.clone(), - OWNERSHIPFACET_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Calls the contract's `owner` (0x8da5cb5b) function - pub fn owner( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([141, 165, 203, 91], ()) - .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 `OwnershipTransferred` event - pub fn ownership_transferred_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - OwnershipTransferredFilter, - > { - 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, - OwnershipTransferredFilter, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for OwnershipFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `InvalidAddress` with signature `InvalidAddress()` and selector `0xe6c4247b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidAddress", abi = "InvalidAddress()")] - pub struct InvalidAddress; - ///Custom Error type `NotOwner` with signature `NotOwner()` and selector `0x30cd7471` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotOwner", abi = "NotOwner()")] - pub struct NotOwner; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum OwnershipFacetErrors { - InvalidAddress(InvalidAddress), - NotOwner(NotOwner), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for OwnershipFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotOwner(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for OwnershipFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::InvalidAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotOwner(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for OwnershipFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ => false, - } - } - } - impl ::core::fmt::Display for OwnershipFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::InvalidAddress(element) => ::core::fmt::Display::fmt(element, f), - Self::NotOwner(element) => ::core::fmt::Display::fmt(element, f), - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for OwnershipFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for OwnershipFacetErrors { - fn from(value: InvalidAddress) -> Self { - Self::InvalidAddress(value) - } - } - impl ::core::convert::From for OwnershipFacetErrors { - fn from(value: NotOwner) -> Self { - Self::NotOwner(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "OwnershipTransferred", - abi = "OwnershipTransferred(address,address)" - )] - pub struct OwnershipTransferredFilter { - pub old_owner: ::ethers::core::types::Address, - pub new_owner: ::ethers::core::types::Address, - } - ///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 `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 OwnershipFacetCalls { - Owner(OwnerCall), - TransferOwnership(TransferOwnershipCall), - } - impl ::ethers::core::abi::AbiDecode for OwnershipFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Owner(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 OwnershipFacetCalls { - fn encode(self) -> Vec { - match self { - Self::Owner(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::TransferOwnership(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for OwnershipFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::Owner(element) => ::core::fmt::Display::fmt(element, f), - Self::TransferOwnership(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for OwnershipFacetCalls { - fn from(value: OwnerCall) -> Self { - Self::Owner(value) - } - } - impl ::core::convert::From for OwnershipFacetCalls { - fn from(value: TransferOwnershipCall) -> Self { - Self::TransferOwnership(value) - } - } - ///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 owner: ::ethers::core::types::Address, - } -} diff --git a/crates/binding/src/register_subnet_facet.rs b/crates/binding/src/register_subnet_facet.rs deleted file mode 100644 index 7c8554b86..000000000 --- a/crates/binding/src/register_subnet_facet.rs +++ /dev/null @@ -1,451 +0,0 @@ -pub use register_subnet_facet::*; -/// 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 register_subnet_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("newSubnetActor"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("newSubnetActor"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_params"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(16usize), - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Int(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct SubnetActorDiamond.ConstructorParams", - ), - ), - }, - ], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnetAddr"), - 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::NonPayable, - }, - ], - ), - ]), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("SubnetDeployed"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("SubnetDeployed"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("subnetAddr"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("NotOwner"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotOwner"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ReentrancyError"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ReentrancyError"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("WrongGateway"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("WrongGateway"), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static REGISTERSUBNETFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct RegisterSubnetFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for RegisterSubnetFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for RegisterSubnetFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for RegisterSubnetFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for RegisterSubnetFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(RegisterSubnetFacet)) - .field(&self.address()) - .finish() - } - } - impl RegisterSubnetFacet { - /// 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(), - REGISTERSUBNETFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `newSubnetActor` (0x611941f9) function - pub fn new_subnet_actor( - &self, - params: ConstructorParams, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([97, 25, 65, 249], (params,)) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `SubnetDeployed` event - pub fn subnet_deployed_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - SubnetDeployedFilter, - > { - 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, - SubnetDeployedFilter, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for RegisterSubnetFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `NotOwner` with signature `NotOwner()` and selector `0x30cd7471` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotOwner", abi = "NotOwner()")] - pub struct NotOwner; - ///Custom Error type `ReentrancyError` with signature `ReentrancyError()` and selector `0x29f745a7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ReentrancyError", abi = "ReentrancyError()")] - pub struct ReentrancyError; - ///Custom Error type `WrongGateway` with signature `WrongGateway()` and selector `0x3bed0499` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "WrongGateway", abi = "WrongGateway()")] - pub struct WrongGateway; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum RegisterSubnetFacetErrors { - NotOwner(NotOwner), - ReentrancyError(ReentrancyError), - WrongGateway(WrongGateway), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for RegisterSubnetFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotOwner(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ReentrancyError(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::WrongGateway(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for RegisterSubnetFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::NotOwner(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ReentrancyError(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::WrongGateway(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for RegisterSubnetFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ => false, - } - } - } - impl ::core::fmt::Display for RegisterSubnetFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::NotOwner(element) => ::core::fmt::Display::fmt(element, f), - Self::ReentrancyError(element) => ::core::fmt::Display::fmt(element, f), - Self::WrongGateway(element) => ::core::fmt::Display::fmt(element, f), - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for RegisterSubnetFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for RegisterSubnetFacetErrors { - fn from(value: NotOwner) -> Self { - Self::NotOwner(value) - } - } - impl ::core::convert::From for RegisterSubnetFacetErrors { - fn from(value: ReentrancyError) -> Self { - Self::ReentrancyError(value) - } - } - impl ::core::convert::From for RegisterSubnetFacetErrors { - fn from(value: WrongGateway) -> Self { - Self::WrongGateway(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "SubnetDeployed", abi = "SubnetDeployed(address)")] - pub struct SubnetDeployedFilter { - pub subnet_addr: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `newSubnetActor` function with signature `newSubnetActor((uint256,uint64,uint64,address,uint16,uint8,uint8,int8,uint8,(uint8,address),(uint8,address),(uint64,address[]),address,address))` and selector `0x611941f9` - #[derive(Clone, ::ethers::contract::EthCall, ::ethers::contract::EthDisplay)] - #[ethcall( - name = "newSubnetActor", - abi = "newSubnetActor((uint256,uint64,uint64,address,uint16,uint8,uint8,int8,uint8,(uint8,address),(uint8,address),(uint64,address[]),address,address))" - )] - pub struct NewSubnetActorCall { - pub params: ConstructorParams, - } - ///Container type for all return fields from the `newSubnetActor` function with signature `newSubnetActor((uint256,uint64,uint64,address,uint16,uint8,uint8,int8,uint8,(uint8,address),(uint8,address),(uint64,address[]),address,address))` and selector `0x611941f9` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct NewSubnetActorReturn { - pub subnet_addr: ::ethers::core::types::Address, - } - ///`Asset(uint8,address)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Asset { - pub kind: u8, - pub token_address: ::ethers::core::types::Address, - } - ///`ConstructorParams(uint256,uint64,uint64,address,uint16,uint8,uint8,int8,uint8,(uint8,address),(uint8,address),(uint64,address[]),address,address)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ConstructorParams { - pub min_activation_collateral: ::ethers::core::types::U256, - pub min_validators: u64, - pub bottom_up_check_period: u64, - pub ipc_gateway_addr: ::ethers::core::types::Address, - pub active_validators_limit: u16, - pub majority_percentage: u8, - pub consensus: u8, - pub power_scale: i8, - pub permission_mode: u8, - pub supply_source: Asset, - pub collateral_source: Asset, - pub parent_id: SubnetID, - pub validator_gater: ::ethers::core::types::Address, - pub validator_rewarder: ::ethers::core::types::Address, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } -} diff --git a/crates/binding/src/subnet_actor_activity_facet.rs b/crates/binding/src/subnet_actor_activity_facet.rs deleted file mode 100644 index 8be0025da..000000000 --- a/crates/binding/src/subnet_actor_activity_facet.rs +++ /dev/null @@ -1,849 +0,0 @@ -pub use subnet_actor_activity_facet::*; -/// 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 subnet_actor_activity_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("batchSubnetClaim"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("batchSubnetClaim"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnet"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("checkpointHeights"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64[]"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("claims"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ), - ), - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct Consensus.ValidatorClaim[]", - ), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("claim"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("claim"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnet"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("checkpointHeight"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("data"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct Consensus.ValidatorData", - ), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("proof"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("Consensus.MerkleHash[]"), - ), - }, - ], - 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("Paused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Paused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("Unpaused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Unpaused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("EnforcedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("EnforcedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ExpectedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ExpectedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidActivityProof"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidActivityProof", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MissingActivityCommitment"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "MissingActivityCommitment", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotAuthorized"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotAuthorized"), - inputs: ::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"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ReentrancyError"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ReentrancyError"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ValidatorAlreadyClaimed"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "ValidatorAlreadyClaimed", - ), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static SUBNETACTORACTIVITYFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct SubnetActorActivityFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for SubnetActorActivityFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for SubnetActorActivityFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for SubnetActorActivityFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for SubnetActorActivityFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(SubnetActorActivityFacet)) - .field(&self.address()) - .finish() - } - } - impl SubnetActorActivityFacet { - /// 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(), - SUBNETACTORACTIVITYFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `batchSubnetClaim` (0x02eca6eb) function - pub fn batch_subnet_claim( - &self, - subnet: SubnetID, - checkpoint_heights: ::std::vec::Vec, - claims: ::std::vec::Vec, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([2, 236, 166, 235], (subnet, checkpoint_heights, claims)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `claim` (0xf9d3434c) function - pub fn claim( - &self, - subnet: SubnetID, - checkpoint_height: u64, - data: ValidatorData, - proof: ::std::vec::Vec<[u8; 32]>, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash( - [249, 211, 67, 76], - (subnet, checkpoint_height, data, proof), - ) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `Paused` event - pub fn paused_filter( - &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, PausedFilter> { - self.0.event() - } - ///Gets the contract's `Unpaused` event - pub fn unpaused_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - UnpausedFilter, - > { - 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, - SubnetActorActivityFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for SubnetActorActivityFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `EnforcedPause` with signature `EnforcedPause()` and selector `0xd93c0665` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "EnforcedPause", abi = "EnforcedPause()")] - pub struct EnforcedPause; - ///Custom Error type `ExpectedPause` with signature `ExpectedPause()` and selector `0x8dfc202b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ExpectedPause", abi = "ExpectedPause()")] - pub struct ExpectedPause; - ///Custom Error type `InvalidActivityProof` with signature `InvalidActivityProof()` and selector `0x7e74e083` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidActivityProof", abi = "InvalidActivityProof()")] - pub struct InvalidActivityProof; - ///Custom Error type `MissingActivityCommitment` with signature `MissingActivityCommitment()` and selector `0x16dd3b69` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "MissingActivityCommitment", abi = "MissingActivityCommitment()")] - pub struct MissingActivityCommitment; - ///Custom Error type `NotAuthorized` with signature `NotAuthorized(address)` and selector `0x4a0bfec1` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotAuthorized", abi = "NotAuthorized(address)")] - pub struct NotAuthorized(pub ::ethers::core::types::Address); - ///Custom Error type `ReentrancyError` with signature `ReentrancyError()` and selector `0x29f745a7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ReentrancyError", abi = "ReentrancyError()")] - pub struct ReentrancyError; - ///Custom Error type `ValidatorAlreadyClaimed` with signature `ValidatorAlreadyClaimed()` and selector `0x5dbe95b6` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ValidatorAlreadyClaimed", abi = "ValidatorAlreadyClaimed()")] - pub struct ValidatorAlreadyClaimed; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorActivityFacetErrors { - EnforcedPause(EnforcedPause), - ExpectedPause(ExpectedPause), - InvalidActivityProof(InvalidActivityProof), - MissingActivityCommitment(MissingActivityCommitment), - NotAuthorized(NotAuthorized), - ReentrancyError(ReentrancyError), - ValidatorAlreadyClaimed(ValidatorAlreadyClaimed), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorActivityFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::EnforcedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ExpectedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidActivityProof(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MissingActivityCommitment(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotAuthorized(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ReentrancyError(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ValidatorAlreadyClaimed(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorActivityFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::EnforcedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ExpectedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidActivityProof(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MissingActivityCommitment(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotAuthorized(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ReentrancyError(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ValidatorAlreadyClaimed(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for SubnetActorActivityFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for SubnetActorActivityFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::EnforcedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::ExpectedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::InvalidActivityProof(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MissingActivityCommitment(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotAuthorized(element) => ::core::fmt::Display::fmt(element, f), - Self::ReentrancyError(element) => ::core::fmt::Display::fmt(element, f), - Self::ValidatorAlreadyClaimed(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> - for SubnetActorActivityFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for SubnetActorActivityFacetErrors { - fn from(value: EnforcedPause) -> Self { - Self::EnforcedPause(value) - } - } - impl ::core::convert::From for SubnetActorActivityFacetErrors { - fn from(value: ExpectedPause) -> Self { - Self::ExpectedPause(value) - } - } - impl ::core::convert::From for SubnetActorActivityFacetErrors { - fn from(value: InvalidActivityProof) -> Self { - Self::InvalidActivityProof(value) - } - } - impl ::core::convert::From - for SubnetActorActivityFacetErrors { - fn from(value: MissingActivityCommitment) -> Self { - Self::MissingActivityCommitment(value) - } - } - impl ::core::convert::From for SubnetActorActivityFacetErrors { - fn from(value: NotAuthorized) -> Self { - Self::NotAuthorized(value) - } - } - impl ::core::convert::From for SubnetActorActivityFacetErrors { - fn from(value: ReentrancyError) -> Self { - Self::ReentrancyError(value) - } - } - impl ::core::convert::From - for SubnetActorActivityFacetErrors { - fn from(value: ValidatorAlreadyClaimed) -> Self { - Self::ValidatorAlreadyClaimed(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Paused", abi = "Paused(address)")] - pub struct PausedFilter { - pub account: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Unpaused", abi = "Unpaused(address)")] - pub struct UnpausedFilter { - pub account: ::ethers::core::types::Address, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorActivityFacetEvents { - PausedFilter(PausedFilter), - UnpausedFilter(UnpausedFilter), - } - impl ::ethers::contract::EthLogDecode for SubnetActorActivityFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = PausedFilter::decode_log(log) { - return Ok(SubnetActorActivityFacetEvents::PausedFilter(decoded)); - } - if let Ok(decoded) = UnpausedFilter::decode_log(log) { - return Ok(SubnetActorActivityFacetEvents::UnpausedFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for SubnetActorActivityFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::PausedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::UnpausedFilter(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for SubnetActorActivityFacetEvents { - fn from(value: PausedFilter) -> Self { - Self::PausedFilter(value) - } - } - impl ::core::convert::From for SubnetActorActivityFacetEvents { - fn from(value: UnpausedFilter) -> Self { - Self::UnpausedFilter(value) - } - } - ///Container type for all input parameters for the `batchSubnetClaim` function with signature `batchSubnetClaim((uint64,address[]),uint64[],((address,uint64),bytes32[])[])` and selector `0x02eca6eb` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "batchSubnetClaim", - abi = "batchSubnetClaim((uint64,address[]),uint64[],((address,uint64),bytes32[])[])" - )] - pub struct BatchSubnetClaimCall { - pub subnet: SubnetID, - pub checkpoint_heights: ::std::vec::Vec, - pub claims: ::std::vec::Vec, - } - ///Container type for all input parameters for the `claim` function with signature `claim((uint64,address[]),uint64,(address,uint64),bytes32[])` and selector `0xf9d3434c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "claim", - abi = "claim((uint64,address[]),uint64,(address,uint64),bytes32[])" - )] - pub struct ClaimCall { - pub subnet: SubnetID, - pub checkpoint_height: u64, - pub data: ValidatorData, - pub proof: ::std::vec::Vec<[u8; 32]>, - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorActivityFacetCalls { - BatchSubnetClaim(BatchSubnetClaimCall), - Claim(ClaimCall), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorActivityFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::BatchSubnetClaim(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Claim(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorActivityFacetCalls { - fn encode(self) -> Vec { - match self { - Self::BatchSubnetClaim(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Claim(element) => ::ethers::core::abi::AbiEncode::encode(element), - } - } - } - impl ::core::fmt::Display for SubnetActorActivityFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::BatchSubnetClaim(element) => ::core::fmt::Display::fmt(element, f), - Self::Claim(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for SubnetActorActivityFacetCalls { - fn from(value: BatchSubnetClaimCall) -> Self { - Self::BatchSubnetClaim(value) - } - } - impl ::core::convert::From for SubnetActorActivityFacetCalls { - fn from(value: ClaimCall) -> Self { - Self::Claim(value) - } - } - ///`ValidatorClaim((address,uint64),bytes32[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ValidatorClaim { - pub data: ValidatorData, - pub proof: ::std::vec::Vec<[u8; 32]>, - } - ///`ValidatorData(address,uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ValidatorData { - pub validator: ::ethers::core::types::Address, - pub blocks_committed: u64, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } -} diff --git a/crates/binding/src/subnet_actor_checkpointing_facet.rs b/crates/binding/src/subnet_actor_checkpointing_facet.rs deleted file mode 100644 index 81a8381c4..000000000 --- a/crates/binding/src/subnet_actor_checkpointing_facet.rs +++ /dev/null @@ -1,2082 +0,0 @@ -pub use subnet_actor_checkpointing_facet::*; -/// 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 subnet_actor_checkpointing_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("submitCheckpoint"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("submitCheckpoint"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("checkpoint"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct BottomUpCheckpoint", - ), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("signatories"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("signatures"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Bytes, - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes[]"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("validateActiveQuorumSignatures"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "validateActiveQuorumSignatures", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("signatories"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("hash"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("signatures"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Bytes, - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes[]"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ]), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("ActiveValidatorCollateralUpdated"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActiveValidatorCollateralUpdated", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newPower"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ActiveValidatorLeft"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActiveValidatorLeft", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ActiveValidatorReplaced"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActiveValidatorReplaced", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("oldValidator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newValidator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ConfigurationNumberConfirmed"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ConfigurationNumberConfirmed", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("number"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewActiveValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("NewActiveValidator"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("power"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewCollateralRelease"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewCollateralRelease", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("amount"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("releaseBlock"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewWaitingValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewWaitingValidator", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("power"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("Paused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Paused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("Unpaused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Unpaused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "WaitingValidatorCollateralUpdated", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "WaitingValidatorCollateralUpdated", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newPower"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("WaitingValidatorLeft"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "WaitingValidatorLeft", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("AddressEmptyCode"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("AddressEmptyCode"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("target"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("AddressInsufficientBalance"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "AddressInsufficientBalance", - ), - 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"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("AddressShouldBeValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "AddressShouldBeValidator", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "BottomUpCheckpointAlreadySubmitted", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "BottomUpCheckpointAlreadySubmitted", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotConfirmFutureChanges"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotConfirmFutureChanges", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotSubmitFutureCheckpoint"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotSubmitFutureCheckpoint", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("EnforcedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("EnforcedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ExpectedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ExpectedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FailedInnerCall"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FailedInnerCall"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidCheckpointEpoch"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidCheckpointEpoch", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidSignatureErr"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidSignatureErr", - ), - inputs: ::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"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MaxMsgsPerBatchExceeded"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "MaxMsgsPerBatchExceeded", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotValidator"), - inputs: ::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"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("PQDoesNotContainAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "PQDoesNotContainAddress", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("PQEmpty"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("PQEmpty"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ReentrancyError"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ReentrancyError"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SafeERC20FailedOperation"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "SafeERC20FailedOperation", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("token"), - 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 SUBNETACTORCHECKPOINTINGFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct SubnetActorCheckpointingFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for SubnetActorCheckpointingFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for SubnetActorCheckpointingFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for SubnetActorCheckpointingFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for SubnetActorCheckpointingFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(SubnetActorCheckpointingFacet)) - .field(&self.address()) - .finish() - } - } - impl SubnetActorCheckpointingFacet { - /// 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(), - SUBNETACTORCHECKPOINTINGFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `submitCheckpoint` (0x56816567) function - pub fn submit_checkpoint( - &self, - checkpoint: BottomUpCheckpoint, - signatories: ::std::vec::Vec<::ethers::core::types::Address>, - signatures: ::std::vec::Vec<::ethers::core::types::Bytes>, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([86, 129, 101, 103], (checkpoint, signatories, signatures)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `validateActiveQuorumSignatures` (0xcc2dc2b9) function - pub fn validate_active_quorum_signatures( - &self, - signatories: ::std::vec::Vec<::ethers::core::types::Address>, - hash: [u8; 32], - signatures: ::std::vec::Vec<::ethers::core::types::Bytes>, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([204, 45, 194, 185], (signatories, hash, signatures)) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `ActiveValidatorCollateralUpdated` event - pub fn active_validator_collateral_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActiveValidatorCollateralUpdatedFilter, - > { - self.0.event() - } - ///Gets the contract's `ActiveValidatorLeft` event - pub fn active_validator_left_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActiveValidatorLeftFilter, - > { - self.0.event() - } - ///Gets the contract's `ActiveValidatorReplaced` event - pub fn active_validator_replaced_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActiveValidatorReplacedFilter, - > { - self.0.event() - } - ///Gets the contract's `ConfigurationNumberConfirmed` event - pub fn configuration_number_confirmed_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ConfigurationNumberConfirmedFilter, - > { - self.0.event() - } - ///Gets the contract's `NewActiveValidator` event - pub fn new_active_validator_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewActiveValidatorFilter, - > { - self.0.event() - } - ///Gets the contract's `NewCollateralRelease` event - pub fn new_collateral_release_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewCollateralReleaseFilter, - > { - self.0.event() - } - ///Gets the contract's `NewWaitingValidator` event - pub fn new_waiting_validator_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewWaitingValidatorFilter, - > { - self.0.event() - } - ///Gets the contract's `Paused` event - pub fn paused_filter( - &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, PausedFilter> { - self.0.event() - } - ///Gets the contract's `Unpaused` event - pub fn unpaused_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - UnpausedFilter, - > { - self.0.event() - } - ///Gets the contract's `WaitingValidatorCollateralUpdated` event - pub fn waiting_validator_collateral_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - WaitingValidatorCollateralUpdatedFilter, - > { - self.0.event() - } - ///Gets the contract's `WaitingValidatorLeft` event - pub fn waiting_validator_left_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - WaitingValidatorLeftFilter, - > { - 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, - SubnetActorCheckpointingFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for SubnetActorCheckpointingFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `AddressEmptyCode` with signature `AddressEmptyCode(address)` and selector `0x9996b315` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "AddressEmptyCode", abi = "AddressEmptyCode(address)")] - pub struct AddressEmptyCode { - pub target: ::ethers::core::types::Address, - } - ///Custom Error type `AddressInsufficientBalance` with signature `AddressInsufficientBalance(address)` and selector `0xcd786059` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "AddressInsufficientBalance", - abi = "AddressInsufficientBalance(address)" - )] - pub struct AddressInsufficientBalance { - pub account: ::ethers::core::types::Address, - } - ///Custom Error type `AddressShouldBeValidator` with signature `AddressShouldBeValidator()` and selector `0x2a55ca53` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "AddressShouldBeValidator", abi = "AddressShouldBeValidator()")] - pub struct AddressShouldBeValidator; - ///Custom Error type `BottomUpCheckpointAlreadySubmitted` with signature `BottomUpCheckpointAlreadySubmitted()` and selector `0xd6bb62dd` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "BottomUpCheckpointAlreadySubmitted", - abi = "BottomUpCheckpointAlreadySubmitted()" - )] - pub struct BottomUpCheckpointAlreadySubmitted; - ///Custom Error type `CannotConfirmFutureChanges` with signature `CannotConfirmFutureChanges()` and selector `0x0815540a` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotConfirmFutureChanges", - abi = "CannotConfirmFutureChanges()" - )] - pub struct CannotConfirmFutureChanges; - ///Custom Error type `CannotSubmitFutureCheckpoint` with signature `CannotSubmitFutureCheckpoint()` and selector `0xdd88982f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotSubmitFutureCheckpoint", - abi = "CannotSubmitFutureCheckpoint()" - )] - pub struct CannotSubmitFutureCheckpoint; - ///Custom Error type `EnforcedPause` with signature `EnforcedPause()` and selector `0xd93c0665` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "EnforcedPause", abi = "EnforcedPause()")] - pub struct EnforcedPause; - ///Custom Error type `ExpectedPause` with signature `ExpectedPause()` and selector `0x8dfc202b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ExpectedPause", abi = "ExpectedPause()")] - pub struct ExpectedPause; - ///Custom Error type `FailedInnerCall` with signature `FailedInnerCall()` and selector `0x1425ea42` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FailedInnerCall", abi = "FailedInnerCall()")] - pub struct FailedInnerCall; - ///Custom Error type `InvalidCheckpointEpoch` with signature `InvalidCheckpointEpoch()` and selector `0xfae4eadb` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidCheckpointEpoch", abi = "InvalidCheckpointEpoch()")] - pub struct InvalidCheckpointEpoch; - ///Custom Error type `InvalidSignatureErr` with signature `InvalidSignatureErr(uint8)` and selector `0x282ef1c1` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidSignatureErr", abi = "InvalidSignatureErr(uint8)")] - pub struct InvalidSignatureErr(pub u8); - ///Custom Error type `MaxMsgsPerBatchExceeded` with signature `MaxMsgsPerBatchExceeded()` and selector `0x351c7007` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "MaxMsgsPerBatchExceeded", abi = "MaxMsgsPerBatchExceeded()")] - pub struct MaxMsgsPerBatchExceeded; - ///Custom Error type `NotValidator` with signature `NotValidator(address)` and selector `0xed3db8ac` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotValidator", abi = "NotValidator(address)")] - pub struct NotValidator(pub ::ethers::core::types::Address); - ///Custom Error type `PQDoesNotContainAddress` with signature `PQDoesNotContainAddress()` and selector `0xf2755e37` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "PQDoesNotContainAddress", abi = "PQDoesNotContainAddress()")] - pub struct PQDoesNotContainAddress; - ///Custom Error type `PQEmpty` with signature `PQEmpty()` and selector `0x40d9b011` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "PQEmpty", abi = "PQEmpty()")] - pub struct PQEmpty; - ///Custom Error type `ReentrancyError` with signature `ReentrancyError()` and selector `0x29f745a7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ReentrancyError", abi = "ReentrancyError()")] - pub struct ReentrancyError; - ///Custom Error type `SafeERC20FailedOperation` with signature `SafeERC20FailedOperation(address)` and selector `0x5274afe7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "SafeERC20FailedOperation", - abi = "SafeERC20FailedOperation(address)" - )] - pub struct SafeERC20FailedOperation { - pub token: ::ethers::core::types::Address, - } - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorCheckpointingFacetErrors { - AddressEmptyCode(AddressEmptyCode), - AddressInsufficientBalance(AddressInsufficientBalance), - AddressShouldBeValidator(AddressShouldBeValidator), - BottomUpCheckpointAlreadySubmitted(BottomUpCheckpointAlreadySubmitted), - CannotConfirmFutureChanges(CannotConfirmFutureChanges), - CannotSubmitFutureCheckpoint(CannotSubmitFutureCheckpoint), - EnforcedPause(EnforcedPause), - ExpectedPause(ExpectedPause), - FailedInnerCall(FailedInnerCall), - InvalidCheckpointEpoch(InvalidCheckpointEpoch), - InvalidSignatureErr(InvalidSignatureErr), - MaxMsgsPerBatchExceeded(MaxMsgsPerBatchExceeded), - NotValidator(NotValidator), - PQDoesNotContainAddress(PQDoesNotContainAddress), - PQEmpty(PQEmpty), - ReentrancyError(ReentrancyError), - SafeERC20FailedOperation(SafeERC20FailedOperation), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorCheckpointingFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressEmptyCode(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressInsufficientBalance(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressShouldBeValidator(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::BottomUpCheckpointAlreadySubmitted(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotConfirmFutureChanges(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotSubmitFutureCheckpoint(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::EnforcedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ExpectedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FailedInnerCall(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidCheckpointEpoch(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidSignatureErr(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MaxMsgsPerBatchExceeded(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotValidator(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PQDoesNotContainAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PQEmpty(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ReentrancyError(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SafeERC20FailedOperation(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorCheckpointingFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::AddressEmptyCode(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::AddressInsufficientBalance(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::AddressShouldBeValidator(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::BottomUpCheckpointAlreadySubmitted(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotConfirmFutureChanges(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotSubmitFutureCheckpoint(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::EnforcedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ExpectedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FailedInnerCall(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidCheckpointEpoch(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidSignatureErr(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MaxMsgsPerBatchExceeded(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotValidator(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::PQDoesNotContainAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::PQEmpty(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::ReentrancyError(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SafeERC20FailedOperation(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for SubnetActorCheckpointingFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for SubnetActorCheckpointingFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::AddressEmptyCode(element) => ::core::fmt::Display::fmt(element, f), - Self::AddressInsufficientBalance(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::AddressShouldBeValidator(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::BottomUpCheckpointAlreadySubmitted(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotConfirmFutureChanges(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotSubmitFutureCheckpoint(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::EnforcedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::ExpectedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::FailedInnerCall(element) => ::core::fmt::Display::fmt(element, f), - Self::InvalidCheckpointEpoch(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidSignatureErr(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MaxMsgsPerBatchExceeded(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotValidator(element) => ::core::fmt::Display::fmt(element, f), - Self::PQDoesNotContainAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::PQEmpty(element) => ::core::fmt::Display::fmt(element, f), - Self::ReentrancyError(element) => ::core::fmt::Display::fmt(element, f), - Self::SafeERC20FailedOperation(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> - for SubnetActorCheckpointingFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: AddressEmptyCode) -> Self { - Self::AddressEmptyCode(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: AddressInsufficientBalance) -> Self { - Self::AddressInsufficientBalance(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: AddressShouldBeValidator) -> Self { - Self::AddressShouldBeValidator(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: BottomUpCheckpointAlreadySubmitted) -> Self { - Self::BottomUpCheckpointAlreadySubmitted(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: CannotConfirmFutureChanges) -> Self { - Self::CannotConfirmFutureChanges(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: CannotSubmitFutureCheckpoint) -> Self { - Self::CannotSubmitFutureCheckpoint(value) - } - } - impl ::core::convert::From for SubnetActorCheckpointingFacetErrors { - fn from(value: EnforcedPause) -> Self { - Self::EnforcedPause(value) - } - } - impl ::core::convert::From for SubnetActorCheckpointingFacetErrors { - fn from(value: ExpectedPause) -> Self { - Self::ExpectedPause(value) - } - } - impl ::core::convert::From for SubnetActorCheckpointingFacetErrors { - fn from(value: FailedInnerCall) -> Self { - Self::FailedInnerCall(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: InvalidCheckpointEpoch) -> Self { - Self::InvalidCheckpointEpoch(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: InvalidSignatureErr) -> Self { - Self::InvalidSignatureErr(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: MaxMsgsPerBatchExceeded) -> Self { - Self::MaxMsgsPerBatchExceeded(value) - } - } - impl ::core::convert::From for SubnetActorCheckpointingFacetErrors { - fn from(value: NotValidator) -> Self { - Self::NotValidator(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: PQDoesNotContainAddress) -> Self { - Self::PQDoesNotContainAddress(value) - } - } - impl ::core::convert::From for SubnetActorCheckpointingFacetErrors { - fn from(value: PQEmpty) -> Self { - Self::PQEmpty(value) - } - } - impl ::core::convert::From for SubnetActorCheckpointingFacetErrors { - fn from(value: ReentrancyError) -> Self { - Self::ReentrancyError(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetErrors { - fn from(value: SafeERC20FailedOperation) -> Self { - Self::SafeERC20FailedOperation(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ActiveValidatorCollateralUpdated", - abi = "ActiveValidatorCollateralUpdated(address,uint256)" - )] - pub struct ActiveValidatorCollateralUpdatedFilter { - pub validator: ::ethers::core::types::Address, - pub new_power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "ActiveValidatorLeft", abi = "ActiveValidatorLeft(address)")] - pub struct ActiveValidatorLeftFilter { - pub validator: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ActiveValidatorReplaced", - abi = "ActiveValidatorReplaced(address,address)" - )] - pub struct ActiveValidatorReplacedFilter { - pub old_validator: ::ethers::core::types::Address, - pub new_validator: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ConfigurationNumberConfirmed", - abi = "ConfigurationNumberConfirmed(uint64)" - )] - pub struct ConfigurationNumberConfirmedFilter { - pub number: u64, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "NewActiveValidator", abi = "NewActiveValidator(address,uint256)")] - pub struct NewActiveValidatorFilter { - pub validator: ::ethers::core::types::Address, - pub power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewCollateralRelease", - abi = "NewCollateralRelease(address,uint256,uint256)" - )] - pub struct NewCollateralReleaseFilter { - pub validator: ::ethers::core::types::Address, - pub amount: ::ethers::core::types::U256, - pub release_block: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewWaitingValidator", - abi = "NewWaitingValidator(address,uint256)" - )] - pub struct NewWaitingValidatorFilter { - pub validator: ::ethers::core::types::Address, - pub power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Paused", abi = "Paused(address)")] - pub struct PausedFilter { - pub account: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Unpaused", abi = "Unpaused(address)")] - pub struct UnpausedFilter { - pub account: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "WaitingValidatorCollateralUpdated", - abi = "WaitingValidatorCollateralUpdated(address,uint256)" - )] - pub struct WaitingValidatorCollateralUpdatedFilter { - pub validator: ::ethers::core::types::Address, - pub new_power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "WaitingValidatorLeft", abi = "WaitingValidatorLeft(address)")] - pub struct WaitingValidatorLeftFilter { - pub validator: ::ethers::core::types::Address, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorCheckpointingFacetEvents { - ActiveValidatorCollateralUpdatedFilter(ActiveValidatorCollateralUpdatedFilter), - ActiveValidatorLeftFilter(ActiveValidatorLeftFilter), - ActiveValidatorReplacedFilter(ActiveValidatorReplacedFilter), - ConfigurationNumberConfirmedFilter(ConfigurationNumberConfirmedFilter), - NewActiveValidatorFilter(NewActiveValidatorFilter), - NewCollateralReleaseFilter(NewCollateralReleaseFilter), - NewWaitingValidatorFilter(NewWaitingValidatorFilter), - PausedFilter(PausedFilter), - UnpausedFilter(UnpausedFilter), - WaitingValidatorCollateralUpdatedFilter(WaitingValidatorCollateralUpdatedFilter), - WaitingValidatorLeftFilter(WaitingValidatorLeftFilter), - } - impl ::ethers::contract::EthLogDecode for SubnetActorCheckpointingFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = ActiveValidatorCollateralUpdatedFilter::decode_log( - log, - ) { - return Ok( - SubnetActorCheckpointingFacetEvents::ActiveValidatorCollateralUpdatedFilter( - decoded, - ), - ); - } - if let Ok(decoded) = ActiveValidatorLeftFilter::decode_log(log) { - return Ok( - SubnetActorCheckpointingFacetEvents::ActiveValidatorLeftFilter( - decoded, - ), - ); - } - if let Ok(decoded) = ActiveValidatorReplacedFilter::decode_log(log) { - return Ok( - SubnetActorCheckpointingFacetEvents::ActiveValidatorReplacedFilter( - decoded, - ), - ); - } - if let Ok(decoded) = ConfigurationNumberConfirmedFilter::decode_log(log) { - return Ok( - SubnetActorCheckpointingFacetEvents::ConfigurationNumberConfirmedFilter( - decoded, - ), - ); - } - if let Ok(decoded) = NewActiveValidatorFilter::decode_log(log) { - return Ok( - SubnetActorCheckpointingFacetEvents::NewActiveValidatorFilter( - decoded, - ), - ); - } - if let Ok(decoded) = NewCollateralReleaseFilter::decode_log(log) { - return Ok( - SubnetActorCheckpointingFacetEvents::NewCollateralReleaseFilter( - decoded, - ), - ); - } - if let Ok(decoded) = NewWaitingValidatorFilter::decode_log(log) { - return Ok( - SubnetActorCheckpointingFacetEvents::NewWaitingValidatorFilter( - decoded, - ), - ); - } - if let Ok(decoded) = PausedFilter::decode_log(log) { - return Ok(SubnetActorCheckpointingFacetEvents::PausedFilter(decoded)); - } - if let Ok(decoded) = UnpausedFilter::decode_log(log) { - return Ok(SubnetActorCheckpointingFacetEvents::UnpausedFilter(decoded)); - } - if let Ok(decoded) = WaitingValidatorCollateralUpdatedFilter::decode_log( - log, - ) { - return Ok( - SubnetActorCheckpointingFacetEvents::WaitingValidatorCollateralUpdatedFilter( - decoded, - ), - ); - } - if let Ok(decoded) = WaitingValidatorLeftFilter::decode_log(log) { - return Ok( - SubnetActorCheckpointingFacetEvents::WaitingValidatorLeftFilter( - decoded, - ), - ); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for SubnetActorCheckpointingFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::ActiveValidatorCollateralUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ActiveValidatorLeftFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ActiveValidatorReplacedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ConfigurationNumberConfirmedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewActiveValidatorFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewCollateralReleaseFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewWaitingValidatorFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::PausedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::UnpausedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::WaitingValidatorCollateralUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::WaitingValidatorLeftFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetEvents { - fn from(value: ActiveValidatorCollateralUpdatedFilter) -> Self { - Self::ActiveValidatorCollateralUpdatedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetEvents { - fn from(value: ActiveValidatorLeftFilter) -> Self { - Self::ActiveValidatorLeftFilter(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetEvents { - fn from(value: ActiveValidatorReplacedFilter) -> Self { - Self::ActiveValidatorReplacedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetEvents { - fn from(value: ConfigurationNumberConfirmedFilter) -> Self { - Self::ConfigurationNumberConfirmedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetEvents { - fn from(value: NewActiveValidatorFilter) -> Self { - Self::NewActiveValidatorFilter(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetEvents { - fn from(value: NewCollateralReleaseFilter) -> Self { - Self::NewCollateralReleaseFilter(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetEvents { - fn from(value: NewWaitingValidatorFilter) -> Self { - Self::NewWaitingValidatorFilter(value) - } - } - impl ::core::convert::From for SubnetActorCheckpointingFacetEvents { - fn from(value: PausedFilter) -> Self { - Self::PausedFilter(value) - } - } - impl ::core::convert::From for SubnetActorCheckpointingFacetEvents { - fn from(value: UnpausedFilter) -> Self { - Self::UnpausedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetEvents { - fn from(value: WaitingValidatorCollateralUpdatedFilter) -> Self { - Self::WaitingValidatorCollateralUpdatedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetEvents { - fn from(value: WaitingValidatorLeftFilter) -> Self { - Self::WaitingValidatorLeftFilter(value) - } - } - ///Container type for all input parameters for the `submitCheckpoint` function with signature `submitCheckpoint(((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32))),address[],bytes[])` and selector `0x56816567` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "submitCheckpoint", - abi = "submitCheckpoint(((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32))),address[],bytes[])" - )] - pub struct SubmitCheckpointCall { - pub checkpoint: BottomUpCheckpoint, - pub signatories: ::std::vec::Vec<::ethers::core::types::Address>, - pub signatures: ::std::vec::Vec<::ethers::core::types::Bytes>, - } - ///Container type for all input parameters for the `validateActiveQuorumSignatures` function with signature `validateActiveQuorumSignatures(address[],bytes32,bytes[])` and selector `0xcc2dc2b9` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "validateActiveQuorumSignatures", - abi = "validateActiveQuorumSignatures(address[],bytes32,bytes[])" - )] - pub struct ValidateActiveQuorumSignaturesCall { - pub signatories: ::std::vec::Vec<::ethers::core::types::Address>, - pub hash: [u8; 32], - pub signatures: ::std::vec::Vec<::ethers::core::types::Bytes>, - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorCheckpointingFacetCalls { - SubmitCheckpoint(SubmitCheckpointCall), - ValidateActiveQuorumSignatures(ValidateActiveQuorumSignaturesCall), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorCheckpointingFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SubmitCheckpoint(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ValidateActiveQuorumSignatures(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorCheckpointingFacetCalls { - fn encode(self) -> Vec { - match self { - Self::SubmitCheckpoint(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ValidateActiveQuorumSignatures(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for SubnetActorCheckpointingFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::SubmitCheckpoint(element) => ::core::fmt::Display::fmt(element, f), - Self::ValidateActiveQuorumSignatures(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetCalls { - fn from(value: SubmitCheckpointCall) -> Self { - Self::SubmitCheckpoint(value) - } - } - impl ::core::convert::From - for SubnetActorCheckpointingFacetCalls { - fn from(value: ValidateActiveQuorumSignaturesCall) -> Self { - Self::ValidateActiveQuorumSignatures(value) - } - } - ///`BottomUpCheckpoint((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32)))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpCheckpoint { - pub subnet_id: SubnetID, - pub block_height: ::ethers::core::types::U256, - pub block_hash: [u8; 32], - pub next_configuration_number: u64, - pub msgs: ::std::vec::Vec, - pub activity: CompressedActivityRollup, - } - ///`CompressedActivityRollup(((uint64,uint64),bytes32))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CompressedActivityRollup { - pub consensus: CompressedSummary, - } - ///`AggregatedStats(uint64,uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct AggregatedStats { - pub total_active_validators: u64, - pub total_num_blocks_committed: u64, - } - ///`CompressedSummary((uint64,uint64),bytes32)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CompressedSummary { - pub stats: AggregatedStats, - pub data_root_commitment: [u8; 32], - } - ///`FvmAddress(uint8,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FvmAddress { - pub addr_type: u8, - pub payload: ::ethers::core::types::Bytes, - } - ///`Ipcaddress((uint64,address[]),(uint8,bytes))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Ipcaddress { - pub subnet_id: SubnetID, - pub raw_address: FvmAddress, - } - ///`IpcEnvelope(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IpcEnvelope { - pub kind: u8, - pub local_nonce: u64, - pub original_nonce: u64, - pub value: ::ethers::core::types::U256, - pub to: Ipcaddress, - pub from: Ipcaddress, - pub message: ::ethers::core::types::Bytes, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } -} diff --git a/crates/binding/src/subnet_actor_diamond.rs b/crates/binding/src/subnet_actor_diamond.rs deleted file mode 100644 index 908fffa2f..000000000 --- a/crates/binding/src/subnet_actor_diamond.rs +++ /dev/null @@ -1,1586 +0,0 @@ -pub use subnet_actor_diamond::*; -/// 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 subnet_actor_diamond { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::Some(::ethers::core::abi::ethabi::Constructor { - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_diamondCut"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct IDiamond.FacetCut[]", - ), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("params"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(16usize), - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Int(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct SubnetActorDiamond.ConstructorParams", - ), - ), - }, - ::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"), - ), - }, - ], - }), - functions: ::std::collections::BTreeMap::new(), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("DiamondCut"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("DiamondCut"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_diamondCut"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_init"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("OwnershipTransferred"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "OwnershipTransferred", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("oldOwner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newOwner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned( - "CannotAddFunctionToDiamondThatAlreadyExists", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotAddFunctionToDiamondThatAlreadyExists", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotAddSelectorsToZeroAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotAddSelectorsToZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selectors"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotRemoveFunctionThatDoesNotExist", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotRemoveFunctionThatDoesNotExist", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotRemoveImmutableFunction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotRemoveImmutableFunction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionThatDoesNotExists", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionThatDoesNotExists", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionsFromFacetWithZeroAddress", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionsFromFacetWithZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selectors"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotReplaceImmutableFunction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceImmutableFunction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FunctionNotFound"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FunctionNotFound"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_functionSelector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("GatewayCannotBeZero"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "GatewayCannotBeZero", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("IncorrectFacetCutAction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "IncorrectFacetCutAction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_action"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "enum IDiamond.FacetCutAction", - ), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InitializationFunctionReverted"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InitializationFunctionReverted", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned( - "_initializationContractAddress", - ), - 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("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidCollateral"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InvalidCollateral"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidMajorityPercentage"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidMajorityPercentage", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidPowerScale"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InvalidPowerScale"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidSubmissionPeriod"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidSubmissionPeriod", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NoBytecodeAtAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NoBytecodeAtAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_contractAddress"), - 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("_message"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "NoSelectorsProvidedForFacetForCut", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NoSelectorsProvidedForFacetForCut", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_facetAddress"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotGateway"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotGateway"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "RemoveFacetAddressMustBeZeroAddress", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "RemoveFacetAddressMustBeZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_facetAddress"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ]), - receive: true, - fallback: true, - } - } - ///The parsed JSON ABI of the contract. - pub static SUBNETACTORDIAMOND_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R6\x15`\x90W_\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x90\x91 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15`nW_\x80\x836\x82\x807\x816\x91Z\xF4=_\x80>\x15`jW=_\xF3[=_\xFD[c\n\x82\xDDs`\xE3\x1B`\x80R`\x01`\x01`\xE0\x1B\x03\x19\x16`\x84R`\x7F\x19`\xA4\x01`\x80\xFD[`\x05T`\x01`\x01`\xA0\x1B\x03\x163\x03`\xA3W\0[c\xE7\xE6\x01\xDB`\xE0\x1B`\x80R`\x04`\x80\xFD\xFE\xA2dipfsX\"\x12 \xE8\xED\xCA\xDD\xDD\xED\x16`\xBC\xC3\xFAbJ\xD8@\x83\x1D\xE5O|K$\x0E\x06\xF5\x8B\xF4\r\xB4\xBAR[dsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static SUBNETACTORDIAMOND_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct SubnetActorDiamond(::ethers::contract::Contract); - impl ::core::clone::Clone for SubnetActorDiamond { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for SubnetActorDiamond { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for SubnetActorDiamond { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for SubnetActorDiamond { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(SubnetActorDiamond)) - .field(&self.address()) - .finish() - } - } - impl SubnetActorDiamond { - /// 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(), - SUBNETACTORDIAMOND_ABI.clone(), - client, - ), - ) - } - ///Gets the contract's `DiamondCut` event - pub fn diamond_cut_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - DiamondCutFilter, - > { - 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() - } - /// Returns an `Event` builder for all the events of this contract. - pub fn events( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - SubnetActorDiamondEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for SubnetActorDiamond { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `CannotAddFunctionToDiamondThatAlreadyExists` with signature `CannotAddFunctionToDiamondThatAlreadyExists(bytes4)` and selector `0xebbf5d07` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotAddFunctionToDiamondThatAlreadyExists", - abi = "CannotAddFunctionToDiamondThatAlreadyExists(bytes4)" - )] - pub struct CannotAddFunctionToDiamondThatAlreadyExists { - pub selector: [u8; 4], - } - ///Custom Error type `CannotAddSelectorsToZeroAddress` with signature `CannotAddSelectorsToZeroAddress(bytes4[])` and selector `0x0ae3681c` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotAddSelectorsToZeroAddress", - abi = "CannotAddSelectorsToZeroAddress(bytes4[])" - )] - pub struct CannotAddSelectorsToZeroAddress { - pub selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Custom Error type `CannotRemoveFunctionThatDoesNotExist` with signature `CannotRemoveFunctionThatDoesNotExist(bytes4)` and selector `0x7a08a22d` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotRemoveFunctionThatDoesNotExist", - abi = "CannotRemoveFunctionThatDoesNotExist(bytes4)" - )] - pub struct CannotRemoveFunctionThatDoesNotExist { - pub selector: [u8; 4], - } - ///Custom Error type `CannotRemoveImmutableFunction` with signature `CannotRemoveImmutableFunction(bytes4)` and selector `0x6fafeb08` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotRemoveImmutableFunction", - abi = "CannotRemoveImmutableFunction(bytes4)" - )] - pub struct CannotRemoveImmutableFunction { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionThatDoesNotExists` with signature `CannotReplaceFunctionThatDoesNotExists(bytes4)` and selector `0x7479f939` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionThatDoesNotExists", - abi = "CannotReplaceFunctionThatDoesNotExists(bytes4)" - )] - pub struct CannotReplaceFunctionThatDoesNotExists { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet` with signature `CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)` and selector `0x358d9d1a` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - abi = "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)" - )] - pub struct CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionsFromFacetWithZeroAddress` with signature `CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])` and selector `0xcd98a96f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionsFromFacetWithZeroAddress", - abi = "CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])" - )] - pub struct CannotReplaceFunctionsFromFacetWithZeroAddress { - pub selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Custom Error type `CannotReplaceImmutableFunction` with signature `CannotReplaceImmutableFunction(bytes4)` and selector `0x520300da` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceImmutableFunction", - abi = "CannotReplaceImmutableFunction(bytes4)" - )] - pub struct CannotReplaceImmutableFunction { - pub selector: [u8; 4], - } - ///Custom Error type `FunctionNotFound` with signature `FunctionNotFound(bytes4)` and selector `0x5416eb98` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FunctionNotFound", abi = "FunctionNotFound(bytes4)")] - pub struct FunctionNotFound { - pub function_selector: [u8; 4], - } - ///Custom Error type `GatewayCannotBeZero` with signature `GatewayCannotBeZero()` and selector `0x8b3ddc33` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "GatewayCannotBeZero", abi = "GatewayCannotBeZero()")] - pub struct GatewayCannotBeZero; - ///Custom Error type `IncorrectFacetCutAction` with signature `IncorrectFacetCutAction(uint8)` and selector `0x7fe9a41e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "IncorrectFacetCutAction", abi = "IncorrectFacetCutAction(uint8)")] - pub struct IncorrectFacetCutAction { - pub action: u8, - } - ///Custom Error type `InitializationFunctionReverted` with signature `InitializationFunctionReverted(address,bytes)` and selector `0x192105d7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "InitializationFunctionReverted", - abi = "InitializationFunctionReverted(address,bytes)" - )] - pub struct InitializationFunctionReverted { - pub initialization_contract_address: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - ///Custom Error type `InvalidCollateral` with signature `InvalidCollateral()` and selector `0xd1ef4cea` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidCollateral", abi = "InvalidCollateral()")] - pub struct InvalidCollateral; - ///Custom Error type `InvalidMajorityPercentage` with signature `InvalidMajorityPercentage()` and selector `0x75c3b427` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidMajorityPercentage", abi = "InvalidMajorityPercentage()")] - pub struct InvalidMajorityPercentage; - ///Custom Error type `InvalidPowerScale` with signature `InvalidPowerScale()` and selector `0xf162efca` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidPowerScale", abi = "InvalidPowerScale()")] - pub struct InvalidPowerScale; - ///Custom Error type `InvalidSubmissionPeriod` with signature `InvalidSubmissionPeriod()` and selector `0x312f8e05` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidSubmissionPeriod", abi = "InvalidSubmissionPeriod()")] - pub struct InvalidSubmissionPeriod; - ///Custom Error type `NoBytecodeAtAddress` with signature `NoBytecodeAtAddress(address,string)` and selector `0x919834b9` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "NoBytecodeAtAddress", - abi = "NoBytecodeAtAddress(address,string)" - )] - pub struct NoBytecodeAtAddress { - pub contract_address: ::ethers::core::types::Address, - pub message: ::std::string::String, - } - ///Custom Error type `NoSelectorsProvidedForFacetForCut` with signature `NoSelectorsProvidedForFacetForCut(address)` and selector `0xe767f91f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "NoSelectorsProvidedForFacetForCut", - abi = "NoSelectorsProvidedForFacetForCut(address)" - )] - pub struct NoSelectorsProvidedForFacetForCut { - pub facet_address: ::ethers::core::types::Address, - } - ///Custom Error type `NotGateway` with signature `NotGateway()` and selector `0xe7e601db` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotGateway", abi = "NotGateway()")] - pub struct NotGateway; - ///Custom Error type `RemoveFacetAddressMustBeZeroAddress` with signature `RemoveFacetAddressMustBeZeroAddress(address)` and selector `0xd091bc81` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "RemoveFacetAddressMustBeZeroAddress", - abi = "RemoveFacetAddressMustBeZeroAddress(address)" - )] - pub struct RemoveFacetAddressMustBeZeroAddress { - pub facet_address: ::ethers::core::types::Address, - } - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorDiamondErrors { - CannotAddFunctionToDiamondThatAlreadyExists( - CannotAddFunctionToDiamondThatAlreadyExists, - ), - CannotAddSelectorsToZeroAddress(CannotAddSelectorsToZeroAddress), - CannotRemoveFunctionThatDoesNotExist(CannotRemoveFunctionThatDoesNotExist), - CannotRemoveImmutableFunction(CannotRemoveImmutableFunction), - CannotReplaceFunctionThatDoesNotExists(CannotReplaceFunctionThatDoesNotExists), - CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet, - ), - CannotReplaceFunctionsFromFacetWithZeroAddress( - CannotReplaceFunctionsFromFacetWithZeroAddress, - ), - CannotReplaceImmutableFunction(CannotReplaceImmutableFunction), - FunctionNotFound(FunctionNotFound), - GatewayCannotBeZero(GatewayCannotBeZero), - IncorrectFacetCutAction(IncorrectFacetCutAction), - InitializationFunctionReverted(InitializationFunctionReverted), - InvalidCollateral(InvalidCollateral), - InvalidMajorityPercentage(InvalidMajorityPercentage), - InvalidPowerScale(InvalidPowerScale), - InvalidSubmissionPeriod(InvalidSubmissionPeriod), - NoBytecodeAtAddress(NoBytecodeAtAddress), - NoSelectorsProvidedForFacetForCut(NoSelectorsProvidedForFacetForCut), - NotGateway(NotGateway), - RemoveFacetAddressMustBeZeroAddress(RemoveFacetAddressMustBeZeroAddress), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorDiamondErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotAddFunctionToDiamondThatAlreadyExists(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotAddSelectorsToZeroAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotRemoveFunctionThatDoesNotExist(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotRemoveImmutableFunction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceFunctionThatDoesNotExists(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok( - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - decoded, - ), - ); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceFunctionsFromFacetWithZeroAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceImmutableFunction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FunctionNotFound(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GatewayCannotBeZero(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::IncorrectFacetCutAction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InitializationFunctionReverted(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidCollateral(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidMajorityPercentage(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidPowerScale(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidSubmissionPeriod(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NoBytecodeAtAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NoSelectorsProvidedForFacetForCut(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotGateway(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::RemoveFacetAddressMustBeZeroAddress(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorDiamondErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotAddSelectorsToZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotRemoveFunctionThatDoesNotExist(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotRemoveImmutableFunction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceFunctionThatDoesNotExists(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - element, - ) => ::ethers::core::abi::AbiEncode::encode(element), - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceImmutableFunction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FunctionNotFound(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GatewayCannotBeZero(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::IncorrectFacetCutAction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InitializationFunctionReverted(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidCollateral(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidMajorityPercentage(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidPowerScale(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidSubmissionPeriod(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NoBytecodeAtAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NoSelectorsProvidedForFacetForCut(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotGateway(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RemoveFacetAddressMustBeZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for SubnetActorDiamondErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for SubnetActorDiamondErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotAddSelectorsToZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotRemoveFunctionThatDoesNotExist(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotRemoveImmutableFunction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceFunctionThatDoesNotExists(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - element, - ) => ::core::fmt::Display::fmt(element, f), - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceImmutableFunction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::FunctionNotFound(element) => ::core::fmt::Display::fmt(element, f), - Self::GatewayCannotBeZero(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::IncorrectFacetCutAction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InitializationFunctionReverted(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidCollateral(element) => ::core::fmt::Display::fmt(element, f), - Self::InvalidMajorityPercentage(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidPowerScale(element) => ::core::fmt::Display::fmt(element, f), - Self::InvalidSubmissionPeriod(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NoBytecodeAtAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NoSelectorsProvidedForFacetForCut(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotGateway(element) => ::core::fmt::Display::fmt(element, f), - Self::RemoveFacetAddressMustBeZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for SubnetActorDiamondErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: CannotAddFunctionToDiamondThatAlreadyExists) -> Self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: CannotAddSelectorsToZeroAddress) -> Self { - Self::CannotAddSelectorsToZeroAddress(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: CannotRemoveFunctionThatDoesNotExist) -> Self { - Self::CannotRemoveFunctionThatDoesNotExist(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: CannotRemoveImmutableFunction) -> Self { - Self::CannotRemoveImmutableFunction(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: CannotReplaceFunctionThatDoesNotExists) -> Self { - Self::CannotReplaceFunctionThatDoesNotExists(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from( - value: CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet, - ) -> Self { - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: CannotReplaceFunctionsFromFacetWithZeroAddress) -> Self { - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: CannotReplaceImmutableFunction) -> Self { - Self::CannotReplaceImmutableFunction(value) - } - } - impl ::core::convert::From for SubnetActorDiamondErrors { - fn from(value: FunctionNotFound) -> Self { - Self::FunctionNotFound(value) - } - } - impl ::core::convert::From for SubnetActorDiamondErrors { - fn from(value: GatewayCannotBeZero) -> Self { - Self::GatewayCannotBeZero(value) - } - } - impl ::core::convert::From for SubnetActorDiamondErrors { - fn from(value: IncorrectFacetCutAction) -> Self { - Self::IncorrectFacetCutAction(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: InitializationFunctionReverted) -> Self { - Self::InitializationFunctionReverted(value) - } - } - impl ::core::convert::From for SubnetActorDiamondErrors { - fn from(value: InvalidCollateral) -> Self { - Self::InvalidCollateral(value) - } - } - impl ::core::convert::From for SubnetActorDiamondErrors { - fn from(value: InvalidMajorityPercentage) -> Self { - Self::InvalidMajorityPercentage(value) - } - } - impl ::core::convert::From for SubnetActorDiamondErrors { - fn from(value: InvalidPowerScale) -> Self { - Self::InvalidPowerScale(value) - } - } - impl ::core::convert::From for SubnetActorDiamondErrors { - fn from(value: InvalidSubmissionPeriod) -> Self { - Self::InvalidSubmissionPeriod(value) - } - } - impl ::core::convert::From for SubnetActorDiamondErrors { - fn from(value: NoBytecodeAtAddress) -> Self { - Self::NoBytecodeAtAddress(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: NoSelectorsProvidedForFacetForCut) -> Self { - Self::NoSelectorsProvidedForFacetForCut(value) - } - } - impl ::core::convert::From for SubnetActorDiamondErrors { - fn from(value: NotGateway) -> Self { - Self::NotGateway(value) - } - } - impl ::core::convert::From - for SubnetActorDiamondErrors { - fn from(value: RemoveFacetAddressMustBeZeroAddress) -> Self { - Self::RemoveFacetAddressMustBeZeroAddress(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "DiamondCut", - abi = "DiamondCut((address,uint8,bytes4[])[],address,bytes)" - )] - pub struct DiamondCutFilter { - pub diamond_cut: ::std::vec::Vec, - pub init: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "OwnershipTransferred", - abi = "OwnershipTransferred(address,address)" - )] - pub struct OwnershipTransferredFilter { - pub old_owner: ::ethers::core::types::Address, - pub new_owner: ::ethers::core::types::Address, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorDiamondEvents { - DiamondCutFilter(DiamondCutFilter), - OwnershipTransferredFilter(OwnershipTransferredFilter), - } - impl ::ethers::contract::EthLogDecode for SubnetActorDiamondEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = DiamondCutFilter::decode_log(log) { - return Ok(SubnetActorDiamondEvents::DiamondCutFilter(decoded)); - } - if let Ok(decoded) = OwnershipTransferredFilter::decode_log(log) { - return Ok(SubnetActorDiamondEvents::OwnershipTransferredFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for SubnetActorDiamondEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::DiamondCutFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::OwnershipTransferredFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for SubnetActorDiamondEvents { - fn from(value: DiamondCutFilter) -> Self { - Self::DiamondCutFilter(value) - } - } - impl ::core::convert::From for SubnetActorDiamondEvents { - fn from(value: OwnershipTransferredFilter) -> Self { - Self::OwnershipTransferredFilter(value) - } - } - ///`Asset(uint8,address)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Asset { - pub kind: u8, - pub token_address: ::ethers::core::types::Address, - } - ///`FacetCut(address,uint8,bytes4[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FacetCut { - pub facet_address: ::ethers::core::types::Address, - pub action: u8, - pub function_selectors: ::std::vec::Vec<[u8; 4]>, - } - ///`ConstructorParams(uint256,uint64,uint64,address,uint16,uint8,uint8,int8,uint8,(uint8,address),(uint8,address),(uint64,address[]),address,address)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ConstructorParams { - pub min_activation_collateral: ::ethers::core::types::U256, - pub min_validators: u64, - pub bottom_up_check_period: u64, - pub ipc_gateway_addr: ::ethers::core::types::Address, - pub active_validators_limit: u16, - pub majority_percentage: u8, - pub consensus: u8, - pub power_scale: i8, - pub permission_mode: u8, - pub supply_source: Asset, - pub collateral_source: Asset, - pub parent_id: SubnetID, - pub validator_gater: ::ethers::core::types::Address, - pub validator_rewarder: ::ethers::core::types::Address, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } -} diff --git a/crates/binding/src/subnet_actor_getter_facet.rs b/crates/binding/src/subnet_actor_getter_facet.rs deleted file mode 100644 index 334585ea4..000000000 --- a/crates/binding/src/subnet_actor_getter_facet.rs +++ /dev/null @@ -1,3034 +0,0 @@ -pub use subnet_actor_getter_facet::*; -/// 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 subnet_actor_getter_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("activeValidatorsLimit"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "activeValidatorsLimit", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(16usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint16"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("bootstrapped"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("bootstrapped"), - inputs: ::std::vec![], - 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::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("bottomUpCheckPeriod"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "bottomUpCheckPeriod", - ), - 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("bottomUpCheckpointAtEpoch"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "bottomUpCheckpointAtEpoch", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("epoch"), - 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::borrow::ToOwned::to_owned("exists"), - kind: ::ethers::core::abi::ethabi::ParamType::Bool, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bool"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("checkpoint"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - ], - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct BottomUpCheckpoint", - ), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("bottomUpCheckpointHashAtEpoch"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "bottomUpCheckpointHashAtEpoch", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("epoch"), - 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"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("collateralSource"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("collateralSource"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("supply"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct Asset"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("consensus"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("consensus"), - 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("enum ConsensusType"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("crossMsgsHash"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("crossMsgsHash"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("messages"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct IpcEnvelope[]"), - ), - }, - ], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes32"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Pure, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("genesisBalances"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("genesisBalances"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("genesisCircSupply"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("genesisCircSupply"), - 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("genesisValidators"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("genesisValidators"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct Validator[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getActiveValidators"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getActiveValidators", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("getActiveValidatorsNumber"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getActiveValidatorsNumber", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(16usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint16"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getBootstrapNodes"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getBootstrapNodes"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("getConfigurationNumbers"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getConfigurationNumbers", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getParent"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getParent"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct SubnetID"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getPower"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getPower"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("validator"), - 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("getTotalCollateral"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getTotalCollateral"), - 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("getTotalConfirmedCollateral"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getTotalConfirmedCollateral", - ), - 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("getTotalValidatorCollateral"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getTotalValidatorCollateral", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("validator"), - 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("getTotalValidatorsNumber"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getTotalValidatorsNumber", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(16usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint16"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getValidator"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("validatorAddress"), - 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::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct ValidatorInfo"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getWaitingValidators"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getWaitingValidators", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("ipcGatewayAddr"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("ipcGatewayAddr"), - 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("isActiveValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("isActiveValidator"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("validator"), - 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::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::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("isWaitingValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("isWaitingValidator"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("validator"), - 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::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::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("killed"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("killed"), - inputs: ::std::vec![], - 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::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("lastBottomUpCheckpointHeight"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "lastBottomUpCheckpointHeight", - ), - 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("majorityPercentage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("majorityPercentage"), - 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("minActivationCollateral"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "minActivationCollateral", - ), - 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("minValidators"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("minValidators"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("permissionMode"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("permissionMode"), - 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("enum PermissionMode"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("powerScale"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("powerScale"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Int(8usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("int8"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("supplySource"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("supplySource"), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("supply"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct Asset"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ]), - events: ::std::collections::BTreeMap::new(), - errors: ::std::collections::BTreeMap::new(), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static SUBNETACTORGETTERFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct SubnetActorGetterFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for SubnetActorGetterFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for SubnetActorGetterFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for SubnetActorGetterFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for SubnetActorGetterFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(SubnetActorGetterFacet)) - .field(&self.address()) - .finish() - } - } - impl SubnetActorGetterFacet { - /// 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(), - SUBNETACTORGETTERFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `activeValidatorsLimit` (0x3354c3e1) function - pub fn active_validators_limit( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([51, 84, 195, 225], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `bootstrapped` (0x35142c8c) function - pub fn bootstrapped( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([53, 20, 44, 140], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `bottomUpCheckPeriod` (0x06c46853) function - pub fn bottom_up_check_period( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([6, 196, 104, 83], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `bottomUpCheckpointAtEpoch` (0x4b27aa72) function - pub fn bottom_up_checkpoint_at_epoch( - &self, - epoch: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([75, 39, 170, 114], epoch) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `bottomUpCheckpointHashAtEpoch` (0x4b0694e2) function - pub fn bottom_up_checkpoint_hash_at_epoch( - &self, - epoch: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([75, 6, 148, 226], epoch) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `collateralSource` (0xb6797d3c) function - pub fn collateral_source( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([182, 121, 125, 60], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `consensus` (0x8ef3f761) function - pub fn consensus(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([142, 243, 247, 97], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `crossMsgsHash` (0x6b84e383) function - pub fn cross_msgs_hash( - &self, - messages: ::std::vec::Vec, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([107, 132, 227, 131], messages) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `genesisBalances` (0x903e6930) function - pub fn genesis_balances( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ( - ::std::vec::Vec<::ethers::core::types::Address>, - ::std::vec::Vec<::ethers::core::types::U256>, - ), - > { - self.0 - .method_hash([144, 62, 105, 48], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `genesisCircSupply` (0x948628a9) function - pub fn genesis_circ_supply( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([148, 134, 40, 169], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `genesisValidators` (0xd92e8f12) function - pub fn genesis_validators( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([217, 46, 143, 18], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getActiveValidators` (0x9de70258) function - pub fn get_active_validators( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::std::vec::Vec<::ethers::core::types::Address>, - > { - self.0 - .method_hash([157, 231, 2, 88], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getActiveValidatorsNumber` (0xc7cda762) function - pub fn get_active_validators_number( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([199, 205, 167, 98], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getBootstrapNodes` (0x9754b29e) function - pub fn get_bootstrap_nodes( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::std::vec::Vec<::std::string::String>, - > { - self.0 - .method_hash([151, 84, 178, 158], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getConfigurationNumbers` (0x38a210b3) function - pub fn get_configuration_numbers( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([56, 162, 16, 179], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getParent` (0x80f76021) function - pub fn get_parent( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([128, 247, 96, 33], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getPower` (0x5dd9147c) function - pub fn get_power( - &self, - validator: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([93, 217, 20, 124], validator) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getTotalCollateral` (0xd6eb5910) function - pub fn get_total_collateral( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([214, 235, 89, 16], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getTotalConfirmedCollateral` (0x332a5ac9) function - pub fn get_total_confirmed_collateral( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([51, 42, 90, 201], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getTotalValidatorCollateral` (0x1597bf7e) function - pub fn get_total_validator_collateral( - &self, - validator: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([21, 151, 191, 126], validator) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getTotalValidatorsNumber` (0x52d182d1) function - pub fn get_total_validators_number( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([82, 209, 130, 209], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getValidator` (0x1904bb2e) function - pub fn get_validator( - &self, - validator_address: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([25, 4, 187, 46], validator_address) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getWaitingValidators` (0x6ad04c79) function - pub fn get_waiting_validators( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::std::vec::Vec<::ethers::core::types::Address>, - > { - self.0 - .method_hash([106, 208, 76, 121], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `ipcGatewayAddr` (0xcfca2824) function - pub fn ipc_gateway_addr( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([207, 202, 40, 36], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `isActiveValidator` (0x40550a1c) function - pub fn is_active_validator( - &self, - validator: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([64, 85, 10, 28], validator) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `isWaitingValidator` (0xd081be03) function - pub fn is_waiting_validator( - &self, - validator: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([208, 129, 190, 3], validator) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `killed` (0x1f3a0e41) function - pub fn killed(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([31, 58, 14, 65], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `lastBottomUpCheckpointHeight` (0x72d0a0e0) function - pub fn last_bottom_up_checkpoint_height( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([114, 208, 160, 224], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `majorityPercentage` (0x599c7bd1) function - pub fn majority_percentage( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([89, 156, 123, 209], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `minActivationCollateral` (0x9e33bd02) function - pub fn min_activation_collateral( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([158, 51, 189, 2], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `minValidators` (0xc5ab2241) function - pub fn min_validators( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([197, 171, 34, 65], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `permissionMode` (0xf0cf6c96) function - pub fn permission_mode( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([240, 207, 108, 150], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `powerScale` (0xad81e4d6) function - pub fn power_scale(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([173, 129, 228, 214], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `supplySource` (0x80875df7) function - pub fn supply_source( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([128, 135, 93, 247], ()) - .expect("method not found (this should never happen)") - } - } - impl From<::ethers::contract::Contract> - for SubnetActorGetterFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Container type for all input parameters for the `activeValidatorsLimit` function with signature `activeValidatorsLimit()` and selector `0x3354c3e1` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "activeValidatorsLimit", abi = "activeValidatorsLimit()")] - pub struct ActiveValidatorsLimitCall; - ///Container type for all input parameters for the `bootstrapped` function with signature `bootstrapped()` and selector `0x35142c8c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "bootstrapped", abi = "bootstrapped()")] - pub struct BootstrappedCall; - ///Container type for all input parameters for the `bottomUpCheckPeriod` function with signature `bottomUpCheckPeriod()` and selector `0x06c46853` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "bottomUpCheckPeriod", abi = "bottomUpCheckPeriod()")] - pub struct BottomUpCheckPeriodCall; - ///Container type for all input parameters for the `bottomUpCheckpointAtEpoch` function with signature `bottomUpCheckpointAtEpoch(uint256)` and selector `0x4b27aa72` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "bottomUpCheckpointAtEpoch", - abi = "bottomUpCheckpointAtEpoch(uint256)" - )] - pub struct BottomUpCheckpointAtEpochCall { - pub epoch: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `bottomUpCheckpointHashAtEpoch` function with signature `bottomUpCheckpointHashAtEpoch(uint256)` and selector `0x4b0694e2` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "bottomUpCheckpointHashAtEpoch", - abi = "bottomUpCheckpointHashAtEpoch(uint256)" - )] - pub struct BottomUpCheckpointHashAtEpochCall { - pub epoch: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `collateralSource` function with signature `collateralSource()` and selector `0xb6797d3c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "collateralSource", abi = "collateralSource()")] - pub struct CollateralSourceCall; - ///Container type for all input parameters for the `consensus` function with signature `consensus()` and selector `0x8ef3f761` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "consensus", abi = "consensus()")] - pub struct ConsensusCall; - ///Container type for all input parameters for the `crossMsgsHash` function with signature `crossMsgsHash((uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[])` and selector `0x6b84e383` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "crossMsgsHash", - abi = "crossMsgsHash((uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[])" - )] - pub struct CrossMsgsHashCall { - pub messages: ::std::vec::Vec, - } - ///Container type for all input parameters for the `genesisBalances` function with signature `genesisBalances()` and selector `0x903e6930` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "genesisBalances", abi = "genesisBalances()")] - pub struct GenesisBalancesCall; - ///Container type for all input parameters for the `genesisCircSupply` function with signature `genesisCircSupply()` and selector `0x948628a9` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "genesisCircSupply", abi = "genesisCircSupply()")] - pub struct GenesisCircSupplyCall; - ///Container type for all input parameters for the `genesisValidators` function with signature `genesisValidators()` and selector `0xd92e8f12` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "genesisValidators", abi = "genesisValidators()")] - pub struct GenesisValidatorsCall; - ///Container type for all input parameters for the `getActiveValidators` function with signature `getActiveValidators()` and selector `0x9de70258` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getActiveValidators", abi = "getActiveValidators()")] - pub struct GetActiveValidatorsCall; - ///Container type for all input parameters for the `getActiveValidatorsNumber` function with signature `getActiveValidatorsNumber()` and selector `0xc7cda762` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getActiveValidatorsNumber", abi = "getActiveValidatorsNumber()")] - pub struct GetActiveValidatorsNumberCall; - ///Container type for all input parameters for the `getBootstrapNodes` function with signature `getBootstrapNodes()` and selector `0x9754b29e` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getBootstrapNodes", abi = "getBootstrapNodes()")] - pub struct GetBootstrapNodesCall; - ///Container type for all input parameters for the `getConfigurationNumbers` function with signature `getConfigurationNumbers()` and selector `0x38a210b3` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getConfigurationNumbers", abi = "getConfigurationNumbers()")] - pub struct GetConfigurationNumbersCall; - ///Container type for all input parameters for the `getParent` function with signature `getParent()` and selector `0x80f76021` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getParent", abi = "getParent()")] - pub struct GetParentCall; - ///Container type for all input parameters for the `getPower` function with signature `getPower(address)` and selector `0x5dd9147c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getPower", abi = "getPower(address)")] - pub struct GetPowerCall { - pub validator: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `getTotalCollateral` function with signature `getTotalCollateral()` and selector `0xd6eb5910` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getTotalCollateral", abi = "getTotalCollateral()")] - pub struct GetTotalCollateralCall; - ///Container type for all input parameters for the `getTotalConfirmedCollateral` function with signature `getTotalConfirmedCollateral()` and selector `0x332a5ac9` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getTotalConfirmedCollateral", - abi = "getTotalConfirmedCollateral()" - )] - pub struct GetTotalConfirmedCollateralCall; - ///Container type for all input parameters for the `getTotalValidatorCollateral` function with signature `getTotalValidatorCollateral(address)` and selector `0x1597bf7e` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getTotalValidatorCollateral", - abi = "getTotalValidatorCollateral(address)" - )] - pub struct GetTotalValidatorCollateralCall { - pub validator: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `getTotalValidatorsNumber` function with signature `getTotalValidatorsNumber()` and selector `0x52d182d1` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getTotalValidatorsNumber", abi = "getTotalValidatorsNumber()")] - pub struct GetTotalValidatorsNumberCall; - ///Container type for all input parameters for the `getValidator` function with signature `getValidator(address)` and selector `0x1904bb2e` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getValidator", abi = "getValidator(address)")] - pub struct GetValidatorCall { - pub validator_address: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `getWaitingValidators` function with signature `getWaitingValidators()` and selector `0x6ad04c79` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getWaitingValidators", abi = "getWaitingValidators()")] - pub struct GetWaitingValidatorsCall; - ///Container type for all input parameters for the `ipcGatewayAddr` function with signature `ipcGatewayAddr()` and selector `0xcfca2824` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "ipcGatewayAddr", abi = "ipcGatewayAddr()")] - pub struct IpcGatewayAddrCall; - ///Container type for all input parameters for the `isActiveValidator` function with signature `isActiveValidator(address)` and selector `0x40550a1c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "isActiveValidator", abi = "isActiveValidator(address)")] - pub struct IsActiveValidatorCall { - pub validator: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `isWaitingValidator` function with signature `isWaitingValidator(address)` and selector `0xd081be03` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "isWaitingValidator", abi = "isWaitingValidator(address)")] - pub struct IsWaitingValidatorCall { - pub validator: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `killed` function with signature `killed()` and selector `0x1f3a0e41` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "killed", abi = "killed()")] - pub struct KilledCall; - ///Container type for all input parameters for the `lastBottomUpCheckpointHeight` function with signature `lastBottomUpCheckpointHeight()` and selector `0x72d0a0e0` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "lastBottomUpCheckpointHeight", - abi = "lastBottomUpCheckpointHeight()" - )] - pub struct LastBottomUpCheckpointHeightCall; - ///Container type for all input parameters for the `majorityPercentage` function with signature `majorityPercentage()` and selector `0x599c7bd1` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "majorityPercentage", abi = "majorityPercentage()")] - pub struct MajorityPercentageCall; - ///Container type for all input parameters for the `minActivationCollateral` function with signature `minActivationCollateral()` and selector `0x9e33bd02` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "minActivationCollateral", abi = "minActivationCollateral()")] - pub struct MinActivationCollateralCall; - ///Container type for all input parameters for the `minValidators` function with signature `minValidators()` and selector `0xc5ab2241` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "minValidators", abi = "minValidators()")] - pub struct MinValidatorsCall; - ///Container type for all input parameters for the `permissionMode` function with signature `permissionMode()` and selector `0xf0cf6c96` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "permissionMode", abi = "permissionMode()")] - pub struct PermissionModeCall; - ///Container type for all input parameters for the `powerScale` function with signature `powerScale()` and selector `0xad81e4d6` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "powerScale", abi = "powerScale()")] - pub struct PowerScaleCall; - ///Container type for all input parameters for the `supplySource` function with signature `supplySource()` and selector `0x80875df7` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "supplySource", abi = "supplySource()")] - pub struct SupplySourceCall; - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorGetterFacetCalls { - ActiveValidatorsLimit(ActiveValidatorsLimitCall), - Bootstrapped(BootstrappedCall), - BottomUpCheckPeriod(BottomUpCheckPeriodCall), - BottomUpCheckpointAtEpoch(BottomUpCheckpointAtEpochCall), - BottomUpCheckpointHashAtEpoch(BottomUpCheckpointHashAtEpochCall), - CollateralSource(CollateralSourceCall), - Consensus(ConsensusCall), - CrossMsgsHash(CrossMsgsHashCall), - GenesisBalances(GenesisBalancesCall), - GenesisCircSupply(GenesisCircSupplyCall), - GenesisValidators(GenesisValidatorsCall), - GetActiveValidators(GetActiveValidatorsCall), - GetActiveValidatorsNumber(GetActiveValidatorsNumberCall), - GetBootstrapNodes(GetBootstrapNodesCall), - GetConfigurationNumbers(GetConfigurationNumbersCall), - GetParent(GetParentCall), - GetPower(GetPowerCall), - GetTotalCollateral(GetTotalCollateralCall), - GetTotalConfirmedCollateral(GetTotalConfirmedCollateralCall), - GetTotalValidatorCollateral(GetTotalValidatorCollateralCall), - GetTotalValidatorsNumber(GetTotalValidatorsNumberCall), - GetValidator(GetValidatorCall), - GetWaitingValidators(GetWaitingValidatorsCall), - IpcGatewayAddr(IpcGatewayAddrCall), - IsActiveValidator(IsActiveValidatorCall), - IsWaitingValidator(IsWaitingValidatorCall), - Killed(KilledCall), - LastBottomUpCheckpointHeight(LastBottomUpCheckpointHeightCall), - MajorityPercentage(MajorityPercentageCall), - MinActivationCollateral(MinActivationCollateralCall), - MinValidators(MinValidatorsCall), - PermissionMode(PermissionModeCall), - PowerScale(PowerScaleCall), - SupplySource(SupplySourceCall), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorGetterFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ActiveValidatorsLimit(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Bootstrapped(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::BottomUpCheckPeriod(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::BottomUpCheckpointAtEpoch(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::BottomUpCheckpointHashAtEpoch(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CollateralSource(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Consensus(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CrossMsgsHash(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GenesisBalances(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GenesisCircSupply(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GenesisValidators(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetActiveValidators(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetActiveValidatorsNumber(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetBootstrapNodes(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetConfigurationNumbers(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetParent(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetPower(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetTotalCollateral(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetTotalConfirmedCollateral(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetTotalValidatorCollateral(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetTotalValidatorsNumber(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetValidator(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetWaitingValidators(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::IpcGatewayAddr(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::IsActiveValidator(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::IsWaitingValidator(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Killed(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::LastBottomUpCheckpointHeight(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MajorityPercentage(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MinActivationCollateral(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MinValidators(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PermissionMode(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PowerScale(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SupplySource(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorGetterFacetCalls { - fn encode(self) -> Vec { - match self { - Self::ActiveValidatorsLimit(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Bootstrapped(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::BottomUpCheckPeriod(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::BottomUpCheckpointAtEpoch(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::BottomUpCheckpointHashAtEpoch(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CollateralSource(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Consensus(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CrossMsgsHash(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GenesisBalances(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GenesisCircSupply(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GenesisValidators(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetActiveValidators(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetActiveValidatorsNumber(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetBootstrapNodes(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetConfigurationNumbers(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetParent(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetPower(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetTotalCollateral(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetTotalConfirmedCollateral(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetTotalValidatorCollateral(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetTotalValidatorsNumber(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetValidator(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetWaitingValidators(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::IpcGatewayAddr(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::IsActiveValidator(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::IsWaitingValidator(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Killed(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::LastBottomUpCheckpointHeight(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MajorityPercentage(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MinActivationCollateral(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MinValidators(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::PermissionMode(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::PowerScale(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SupplySource(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for SubnetActorGetterFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::ActiveValidatorsLimit(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::Bootstrapped(element) => ::core::fmt::Display::fmt(element, f), - Self::BottomUpCheckPeriod(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::BottomUpCheckpointAtEpoch(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::BottomUpCheckpointHashAtEpoch(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CollateralSource(element) => ::core::fmt::Display::fmt(element, f), - Self::Consensus(element) => ::core::fmt::Display::fmt(element, f), - Self::CrossMsgsHash(element) => ::core::fmt::Display::fmt(element, f), - Self::GenesisBalances(element) => ::core::fmt::Display::fmt(element, f), - Self::GenesisCircSupply(element) => ::core::fmt::Display::fmt(element, f), - Self::GenesisValidators(element) => ::core::fmt::Display::fmt(element, f), - Self::GetActiveValidators(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetActiveValidatorsNumber(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetBootstrapNodes(element) => ::core::fmt::Display::fmt(element, f), - Self::GetConfigurationNumbers(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetParent(element) => ::core::fmt::Display::fmt(element, f), - Self::GetPower(element) => ::core::fmt::Display::fmt(element, f), - Self::GetTotalCollateral(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetTotalConfirmedCollateral(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetTotalValidatorCollateral(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetTotalValidatorsNumber(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetValidator(element) => ::core::fmt::Display::fmt(element, f), - Self::GetWaitingValidators(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::IpcGatewayAddr(element) => ::core::fmt::Display::fmt(element, f), - Self::IsActiveValidator(element) => ::core::fmt::Display::fmt(element, f), - Self::IsWaitingValidator(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::Killed(element) => ::core::fmt::Display::fmt(element, f), - Self::LastBottomUpCheckpointHeight(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MajorityPercentage(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MinActivationCollateral(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MinValidators(element) => ::core::fmt::Display::fmt(element, f), - Self::PermissionMode(element) => ::core::fmt::Display::fmt(element, f), - Self::PowerScale(element) => ::core::fmt::Display::fmt(element, f), - Self::SupplySource(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: ActiveValidatorsLimitCall) -> Self { - Self::ActiveValidatorsLimit(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: BootstrappedCall) -> Self { - Self::Bootstrapped(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: BottomUpCheckPeriodCall) -> Self { - Self::BottomUpCheckPeriod(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: BottomUpCheckpointAtEpochCall) -> Self { - Self::BottomUpCheckpointAtEpoch(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: BottomUpCheckpointHashAtEpochCall) -> Self { - Self::BottomUpCheckpointHashAtEpoch(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: CollateralSourceCall) -> Self { - Self::CollateralSource(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: ConsensusCall) -> Self { - Self::Consensus(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: CrossMsgsHashCall) -> Self { - Self::CrossMsgsHash(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: GenesisBalancesCall) -> Self { - Self::GenesisBalances(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: GenesisCircSupplyCall) -> Self { - Self::GenesisCircSupply(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: GenesisValidatorsCall) -> Self { - Self::GenesisValidators(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: GetActiveValidatorsCall) -> Self { - Self::GetActiveValidators(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: GetActiveValidatorsNumberCall) -> Self { - Self::GetActiveValidatorsNumber(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: GetBootstrapNodesCall) -> Self { - Self::GetBootstrapNodes(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: GetConfigurationNumbersCall) -> Self { - Self::GetConfigurationNumbers(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: GetParentCall) -> Self { - Self::GetParent(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: GetPowerCall) -> Self { - Self::GetPower(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: GetTotalCollateralCall) -> Self { - Self::GetTotalCollateral(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: GetTotalConfirmedCollateralCall) -> Self { - Self::GetTotalConfirmedCollateral(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: GetTotalValidatorCollateralCall) -> Self { - Self::GetTotalValidatorCollateral(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: GetTotalValidatorsNumberCall) -> Self { - Self::GetTotalValidatorsNumber(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: GetValidatorCall) -> Self { - Self::GetValidator(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: GetWaitingValidatorsCall) -> Self { - Self::GetWaitingValidators(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: IpcGatewayAddrCall) -> Self { - Self::IpcGatewayAddr(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: IsActiveValidatorCall) -> Self { - Self::IsActiveValidator(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: IsWaitingValidatorCall) -> Self { - Self::IsWaitingValidator(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: KilledCall) -> Self { - Self::Killed(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: LastBottomUpCheckpointHeightCall) -> Self { - Self::LastBottomUpCheckpointHeight(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: MajorityPercentageCall) -> Self { - Self::MajorityPercentage(value) - } - } - impl ::core::convert::From - for SubnetActorGetterFacetCalls { - fn from(value: MinActivationCollateralCall) -> Self { - Self::MinActivationCollateral(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: MinValidatorsCall) -> Self { - Self::MinValidators(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: PermissionModeCall) -> Self { - Self::PermissionMode(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: PowerScaleCall) -> Self { - Self::PowerScale(value) - } - } - impl ::core::convert::From for SubnetActorGetterFacetCalls { - fn from(value: SupplySourceCall) -> Self { - Self::SupplySource(value) - } - } - ///Container type for all return fields from the `activeValidatorsLimit` function with signature `activeValidatorsLimit()` and selector `0x3354c3e1` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ActiveValidatorsLimitReturn(pub u16); - ///Container type for all return fields from the `bootstrapped` function with signature `bootstrapped()` and selector `0x35142c8c` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BootstrappedReturn(pub bool); - ///Container type for all return fields from the `bottomUpCheckPeriod` function with signature `bottomUpCheckPeriod()` and selector `0x06c46853` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpCheckPeriodReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `bottomUpCheckpointAtEpoch` function with signature `bottomUpCheckpointAtEpoch(uint256)` and selector `0x4b27aa72` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpCheckpointAtEpochReturn { - pub exists: bool, - pub checkpoint: BottomUpCheckpoint, - } - ///Container type for all return fields from the `bottomUpCheckpointHashAtEpoch` function with signature `bottomUpCheckpointHashAtEpoch(uint256)` and selector `0x4b0694e2` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpCheckpointHashAtEpochReturn(pub bool, pub [u8; 32]); - ///Container type for all return fields from the `collateralSource` function with signature `collateralSource()` and selector `0xb6797d3c` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CollateralSourceReturn { - pub supply: Asset, - } - ///Container type for all return fields from the `consensus` function with signature `consensus()` and selector `0x8ef3f761` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ConsensusReturn(pub u8); - ///Container type for all return fields from the `crossMsgsHash` function with signature `crossMsgsHash((uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[])` and selector `0x6b84e383` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CrossMsgsHashReturn(pub [u8; 32]); - ///Container type for all return fields from the `genesisBalances` function with signature `genesisBalances()` and selector `0x903e6930` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GenesisBalancesReturn( - pub ::std::vec::Vec<::ethers::core::types::Address>, - pub ::std::vec::Vec<::ethers::core::types::U256>, - ); - ///Container type for all return fields from the `genesisCircSupply` function with signature `genesisCircSupply()` and selector `0x948628a9` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GenesisCircSupplyReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `genesisValidators` function with signature `genesisValidators()` and selector `0xd92e8f12` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GenesisValidatorsReturn(pub ::std::vec::Vec); - ///Container type for all return fields from the `getActiveValidators` function with signature `getActiveValidators()` and selector `0x9de70258` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetActiveValidatorsReturn( - pub ::std::vec::Vec<::ethers::core::types::Address>, - ); - ///Container type for all return fields from the `getActiveValidatorsNumber` function with signature `getActiveValidatorsNumber()` and selector `0xc7cda762` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetActiveValidatorsNumberReturn(pub u16); - ///Container type for all return fields from the `getBootstrapNodes` function with signature `getBootstrapNodes()` and selector `0x9754b29e` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetBootstrapNodesReturn(pub ::std::vec::Vec<::std::string::String>); - ///Container type for all return fields from the `getConfigurationNumbers` function with signature `getConfigurationNumbers()` and selector `0x38a210b3` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetConfigurationNumbersReturn(pub u64, pub u64); - ///Container type for all return fields from the `getParent` function with signature `getParent()` and selector `0x80f76021` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetParentReturn(pub SubnetID); - ///Container type for all return fields from the `getPower` function with signature `getPower(address)` and selector `0x5dd9147c` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetPowerReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `getTotalCollateral` function with signature `getTotalCollateral()` and selector `0xd6eb5910` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetTotalCollateralReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `getTotalConfirmedCollateral` function with signature `getTotalConfirmedCollateral()` and selector `0x332a5ac9` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetTotalConfirmedCollateralReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `getTotalValidatorCollateral` function with signature `getTotalValidatorCollateral(address)` and selector `0x1597bf7e` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetTotalValidatorCollateralReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `getTotalValidatorsNumber` function with signature `getTotalValidatorsNumber()` and selector `0x52d182d1` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetTotalValidatorsNumberReturn(pub u16); - ///Container type for all return fields from the `getValidator` function with signature `getValidator(address)` and selector `0x1904bb2e` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetValidatorReturn { - pub validator: ValidatorInfo, - } - ///Container type for all return fields from the `getWaitingValidators` function with signature `getWaitingValidators()` and selector `0x6ad04c79` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetWaitingValidatorsReturn( - pub ::std::vec::Vec<::ethers::core::types::Address>, - ); - ///Container type for all return fields from the `ipcGatewayAddr` function with signature `ipcGatewayAddr()` and selector `0xcfca2824` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IpcGatewayAddrReturn(pub ::ethers::core::types::Address); - ///Container type for all return fields from the `isActiveValidator` function with signature `isActiveValidator(address)` and selector `0x40550a1c` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IsActiveValidatorReturn(pub bool); - ///Container type for all return fields from the `isWaitingValidator` function with signature `isWaitingValidator(address)` and selector `0xd081be03` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IsWaitingValidatorReturn(pub bool); - ///Container type for all return fields from the `killed` function with signature `killed()` and selector `0x1f3a0e41` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct KilledReturn(pub bool); - ///Container type for all return fields from the `lastBottomUpCheckpointHeight` function with signature `lastBottomUpCheckpointHeight()` and selector `0x72d0a0e0` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct LastBottomUpCheckpointHeightReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `majorityPercentage` function with signature `majorityPercentage()` and selector `0x599c7bd1` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct MajorityPercentageReturn(pub u8); - ///Container type for all return fields from the `minActivationCollateral` function with signature `minActivationCollateral()` and selector `0x9e33bd02` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct MinActivationCollateralReturn(pub ::ethers::core::types::U256); - ///Container type for all return fields from the `minValidators` function with signature `minValidators()` and selector `0xc5ab2241` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct MinValidatorsReturn(pub u64); - ///Container type for all return fields from the `permissionMode` function with signature `permissionMode()` and selector `0xf0cf6c96` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct PermissionModeReturn(pub u8); - ///Container type for all return fields from the `powerScale` function with signature `powerScale()` and selector `0xad81e4d6` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct PowerScaleReturn(pub i8); - ///Container type for all return fields from the `supplySource` function with signature `supplySource()` and selector `0x80875df7` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SupplySourceReturn { - pub supply: Asset, - } - ///`Asset(uint8,address)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Asset { - pub kind: u8, - pub token_address: ::ethers::core::types::Address, - } - ///`BottomUpCheckpoint((uint64,address[]),uint256,bytes32,uint64,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[],(((uint64,uint64),bytes32)))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct BottomUpCheckpoint { - pub subnet_id: SubnetID, - pub block_height: ::ethers::core::types::U256, - pub block_hash: [u8; 32], - pub next_configuration_number: u64, - pub msgs: ::std::vec::Vec, - pub activity: CompressedActivityRollup, - } - ///`CompressedActivityRollup(((uint64,uint64),bytes32))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CompressedActivityRollup { - pub consensus: CompressedSummary, - } - ///`AggregatedStats(uint64,uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct AggregatedStats { - pub total_active_validators: u64, - pub total_num_blocks_committed: u64, - } - ///`CompressedSummary((uint64,uint64),bytes32)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CompressedSummary { - pub stats: AggregatedStats, - pub data_root_commitment: [u8; 32], - } - ///`FvmAddress(uint8,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FvmAddress { - pub addr_type: u8, - pub payload: ::ethers::core::types::Bytes, - } - ///`Ipcaddress((uint64,address[]),(uint8,bytes))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Ipcaddress { - pub subnet_id: SubnetID, - pub raw_address: FvmAddress, - } - ///`IpcEnvelope(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IpcEnvelope { - pub kind: u8, - pub local_nonce: u64, - pub original_nonce: u64, - pub value: ::ethers::core::types::U256, - pub to: Ipcaddress, - pub from: Ipcaddress, - pub message: ::ethers::core::types::Bytes, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } - ///`Validator(uint256,address,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Validator { - pub weight: ::ethers::core::types::U256, - pub addr: ::ethers::core::types::Address, - pub metadata: ::ethers::core::types::Bytes, - } - ///`ValidatorInfo(uint256,uint256,uint256,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ValidatorInfo { - pub federated_power: ::ethers::core::types::U256, - pub confirmed_collateral: ::ethers::core::types::U256, - pub total_collateral: ::ethers::core::types::U256, - pub metadata: ::ethers::core::types::Bytes, - } -} diff --git a/crates/binding/src/subnet_actor_manager_facet.rs b/crates/binding/src/subnet_actor_manager_facet.rs deleted file mode 100644 index 761f583a6..000000000 --- a/crates/binding/src/subnet_actor_manager_facet.rs +++ /dev/null @@ -1,2934 +0,0 @@ -pub use subnet_actor_manager_facet::*; -/// 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 subnet_actor_manager_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("addBootstrapNode"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("addBootstrapNode"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("netAddress"), - 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("join"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("join"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("publicKey"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes"), - ), - }, - ::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::Payable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("kill"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("kill"), - inputs: ::std::vec![], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("leave"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("leave"), - inputs: ::std::vec![], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("preFund"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("preFund"), - 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"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("preRelease"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("preRelease"), - 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"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("setFederatedPower"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("setFederatedPower"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("validators"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("publicKeys"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Bytes, - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes[]"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("powers"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::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("setValidatorGater"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("setValidatorGater"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("gater"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("stake"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("stake"), - 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"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::Payable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("unstake"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("unstake"), - 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"), - ), - }, - ], - 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("ActiveValidatorCollateralUpdated"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActiveValidatorCollateralUpdated", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newPower"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ActiveValidatorLeft"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActiveValidatorLeft", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ActiveValidatorReplaced"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActiveValidatorReplaced", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("oldValidator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newValidator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewActiveValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("NewActiveValidator"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("power"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewBootstrapNode"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("NewBootstrapNode"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("netAddress"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("owner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewStakingChangeRequest"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewStakingChangeRequest", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("op"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("payload"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned( - "configurationNumber", - ), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewWaitingValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewWaitingValidator", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("power"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("Paused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Paused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SubnetBootstrapped"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("SubnetBootstrapped"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("Unpaused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Unpaused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ValidatorGaterUpdated"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ValidatorGaterUpdated", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("oldGater"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newGater"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "WaitingValidatorCollateralUpdated", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "WaitingValidatorCollateralUpdated", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newPower"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("WaitingValidatorLeft"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "WaitingValidatorLeft", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("AddressEmptyCode"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("AddressEmptyCode"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("target"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("AddressInsufficientBalance"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "AddressInsufficientBalance", - ), - 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"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("AddressShouldBeValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "AddressShouldBeValidator", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotReleaseZero"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("CannotReleaseZero"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CollateralIsZero"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("CollateralIsZero"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("DuplicatedGenesisValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "DuplicatedGenesisValidator", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("EmptyAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("EmptyAddress"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("EnforcedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("EnforcedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ExpectedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ExpectedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FailedInnerCall"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FailedInnerCall"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidFederationPayload"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidFederationPayload", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidPublicKeyLength"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidPublicKeyLength", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MethodNotAllowed"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("MethodNotAllowed"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("reason"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotAllValidatorsHaveLeft"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NotAllValidatorsHaveLeft", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEnoughBalance"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotEnoughBalance"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEnoughCollateral"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NotEnoughCollateral", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEnoughFunds"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotEnoughFunds"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEnoughGenesisValidators"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NotEnoughGenesisValidators", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotOwner"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotOwner"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotOwnerOfPublicKey"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NotOwnerOfPublicKey", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotValidator"), - inputs: ::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"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("PQDoesNotContainAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "PQDoesNotContainAddress", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("PQEmpty"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("PQEmpty"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ReentrancyError"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ReentrancyError"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SafeERC20FailedOperation"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "SafeERC20FailedOperation", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("token"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SubnetAlreadyBootstrapped"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "SubnetAlreadyBootstrapped", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SubnetAlreadyKilled"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "SubnetAlreadyKilled", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("SubnetNotBootstrapped"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "SubnetNotBootstrapped", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("WithdrawExceedingCollateral"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "WithdrawExceedingCollateral", - ), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static SUBNETACTORMANAGERFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct SubnetActorManagerFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for SubnetActorManagerFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for SubnetActorManagerFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for SubnetActorManagerFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for SubnetActorManagerFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(SubnetActorManagerFacet)) - .field(&self.address()) - .finish() - } - } - impl SubnetActorManagerFacet { - /// 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(), - SUBNETACTORMANAGERFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `addBootstrapNode` (0x10fd4261) function - pub fn add_bootstrap_node( - &self, - net_address: ::std::string::String, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([16, 253, 66, 97], net_address) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `join` (0x3ae24713) function - pub fn join( - &self, - public_key: ::ethers::core::types::Bytes, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([58, 226, 71, 19], (public_key, amount)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `kill` (0x41c0e1b5) function - pub fn kill(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([65, 192, 225, 181], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `leave` (0xd66d9e19) function - pub fn leave(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([214, 109, 158, 25], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `preFund` (0x4d9013a1) function - pub fn pre_fund( - &self, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([77, 144, 19, 161], amount) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `preRelease` (0x66783c9b) function - pub fn pre_release( - &self, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([102, 120, 60, 155], amount) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `setFederatedPower` (0xda5d09ee) function - pub fn set_federated_power( - &self, - validators: ::std::vec::Vec<::ethers::core::types::Address>, - public_keys: ::std::vec::Vec<::ethers::core::types::Bytes>, - powers: ::std::vec::Vec<::ethers::core::types::U256>, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([218, 93, 9, 238], (validators, public_keys, powers)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `setValidatorGater` (0xdcda8973) function - pub fn set_validator_gater( - &self, - gater: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([220, 218, 137, 115], gater) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `stake` (0xa694fc3a) function - pub fn stake( - &self, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([166, 148, 252, 58], amount) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `unstake` (0x2e17de78) function - pub fn unstake( - &self, - amount: ::ethers::core::types::U256, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([46, 23, 222, 120], amount) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `ActiveValidatorCollateralUpdated` event - pub fn active_validator_collateral_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActiveValidatorCollateralUpdatedFilter, - > { - self.0.event() - } - ///Gets the contract's `ActiveValidatorLeft` event - pub fn active_validator_left_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActiveValidatorLeftFilter, - > { - self.0.event() - } - ///Gets the contract's `ActiveValidatorReplaced` event - pub fn active_validator_replaced_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActiveValidatorReplacedFilter, - > { - self.0.event() - } - ///Gets the contract's `NewActiveValidator` event - pub fn new_active_validator_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewActiveValidatorFilter, - > { - self.0.event() - } - ///Gets the contract's `NewBootstrapNode` event - pub fn new_bootstrap_node_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewBootstrapNodeFilter, - > { - self.0.event() - } - ///Gets the contract's `NewStakingChangeRequest` event - pub fn new_staking_change_request_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewStakingChangeRequestFilter, - > { - self.0.event() - } - ///Gets the contract's `NewWaitingValidator` event - pub fn new_waiting_validator_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewWaitingValidatorFilter, - > { - self.0.event() - } - ///Gets the contract's `Paused` event - pub fn paused_filter( - &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, PausedFilter> { - self.0.event() - } - ///Gets the contract's `SubnetBootstrapped` event - pub fn subnet_bootstrapped_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - SubnetBootstrappedFilter, - > { - self.0.event() - } - ///Gets the contract's `Unpaused` event - pub fn unpaused_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - UnpausedFilter, - > { - self.0.event() - } - ///Gets the contract's `ValidatorGaterUpdated` event - pub fn validator_gater_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ValidatorGaterUpdatedFilter, - > { - self.0.event() - } - ///Gets the contract's `WaitingValidatorCollateralUpdated` event - pub fn waiting_validator_collateral_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - WaitingValidatorCollateralUpdatedFilter, - > { - self.0.event() - } - ///Gets the contract's `WaitingValidatorLeft` event - pub fn waiting_validator_left_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - WaitingValidatorLeftFilter, - > { - 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, - SubnetActorManagerFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for SubnetActorManagerFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `AddressEmptyCode` with signature `AddressEmptyCode(address)` and selector `0x9996b315` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "AddressEmptyCode", abi = "AddressEmptyCode(address)")] - pub struct AddressEmptyCode { - pub target: ::ethers::core::types::Address, - } - ///Custom Error type `AddressInsufficientBalance` with signature `AddressInsufficientBalance(address)` and selector `0xcd786059` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "AddressInsufficientBalance", - abi = "AddressInsufficientBalance(address)" - )] - pub struct AddressInsufficientBalance { - pub account: ::ethers::core::types::Address, - } - ///Custom Error type `AddressShouldBeValidator` with signature `AddressShouldBeValidator()` and selector `0x2a55ca53` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "AddressShouldBeValidator", abi = "AddressShouldBeValidator()")] - pub struct AddressShouldBeValidator; - ///Custom Error type `CannotReleaseZero` with signature `CannotReleaseZero()` and selector `0xc79cad7b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "CannotReleaseZero", abi = "CannotReleaseZero()")] - pub struct CannotReleaseZero; - ///Custom Error type `CollateralIsZero` with signature `CollateralIsZero()` and selector `0xb4f18b02` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "CollateralIsZero", abi = "CollateralIsZero()")] - pub struct CollateralIsZero; - ///Custom Error type `DuplicatedGenesisValidator` with signature `DuplicatedGenesisValidator()` and selector `0x472b3530` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "DuplicatedGenesisValidator", - abi = "DuplicatedGenesisValidator()" - )] - pub struct DuplicatedGenesisValidator; - ///Custom Error type `EmptyAddress` with signature `EmptyAddress()` and selector `0x7138356f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "EmptyAddress", abi = "EmptyAddress()")] - pub struct EmptyAddress; - ///Custom Error type `EnforcedPause` with signature `EnforcedPause()` and selector `0xd93c0665` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "EnforcedPause", abi = "EnforcedPause()")] - pub struct EnforcedPause; - ///Custom Error type `ExpectedPause` with signature `ExpectedPause()` and selector `0x8dfc202b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ExpectedPause", abi = "ExpectedPause()")] - pub struct ExpectedPause; - ///Custom Error type `FailedInnerCall` with signature `FailedInnerCall()` and selector `0x1425ea42` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FailedInnerCall", abi = "FailedInnerCall()")] - pub struct FailedInnerCall; - ///Custom Error type `InvalidFederationPayload` with signature `InvalidFederationPayload()` and selector `0x7e659359` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidFederationPayload", abi = "InvalidFederationPayload()")] - pub struct InvalidFederationPayload; - ///Custom Error type `InvalidPublicKeyLength` with signature `InvalidPublicKeyLength()` and selector `0x637297a4` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InvalidPublicKeyLength", abi = "InvalidPublicKeyLength()")] - pub struct InvalidPublicKeyLength; - ///Custom Error type `MethodNotAllowed` with signature `MethodNotAllowed(string)` and selector `0x015538b1` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "MethodNotAllowed", abi = "MethodNotAllowed(string)")] - pub struct MethodNotAllowed { - pub reason: ::std::string::String, - } - ///Custom Error type `NotAllValidatorsHaveLeft` with signature `NotAllValidatorsHaveLeft()` and selector `0xd6c44aa2` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotAllValidatorsHaveLeft", abi = "NotAllValidatorsHaveLeft()")] - pub struct NotAllValidatorsHaveLeft; - ///Custom Error type `NotEnoughBalance` with signature `NotEnoughBalance()` and selector `0xad3a8b9e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotEnoughBalance", abi = "NotEnoughBalance()")] - pub struct NotEnoughBalance; - ///Custom Error type `NotEnoughCollateral` with signature `NotEnoughCollateral()` and selector `0x34477cc0` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotEnoughCollateral", abi = "NotEnoughCollateral()")] - pub struct NotEnoughCollateral; - ///Custom Error type `NotEnoughFunds` with signature `NotEnoughFunds()` and selector `0x81b5ad68` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotEnoughFunds", abi = "NotEnoughFunds()")] - pub struct NotEnoughFunds; - ///Custom Error type `NotEnoughGenesisValidators` with signature `NotEnoughGenesisValidators()` and selector `0x62901620` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "NotEnoughGenesisValidators", - abi = "NotEnoughGenesisValidators()" - )] - pub struct NotEnoughGenesisValidators; - ///Custom Error type `NotOwner` with signature `NotOwner()` and selector `0x30cd7471` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotOwner", abi = "NotOwner()")] - pub struct NotOwner; - ///Custom Error type `NotOwnerOfPublicKey` with signature `NotOwnerOfPublicKey()` and selector `0x97d24a3a` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotOwnerOfPublicKey", abi = "NotOwnerOfPublicKey()")] - pub struct NotOwnerOfPublicKey; - ///Custom Error type `NotValidator` with signature `NotValidator(address)` and selector `0xed3db8ac` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotValidator", abi = "NotValidator(address)")] - pub struct NotValidator(pub ::ethers::core::types::Address); - ///Custom Error type `PQDoesNotContainAddress` with signature `PQDoesNotContainAddress()` and selector `0xf2755e37` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "PQDoesNotContainAddress", abi = "PQDoesNotContainAddress()")] - pub struct PQDoesNotContainAddress; - ///Custom Error type `PQEmpty` with signature `PQEmpty()` and selector `0x40d9b011` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "PQEmpty", abi = "PQEmpty()")] - pub struct PQEmpty; - ///Custom Error type `ReentrancyError` with signature `ReentrancyError()` and selector `0x29f745a7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ReentrancyError", abi = "ReentrancyError()")] - pub struct ReentrancyError; - ///Custom Error type `SafeERC20FailedOperation` with signature `SafeERC20FailedOperation(address)` and selector `0x5274afe7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "SafeERC20FailedOperation", - abi = "SafeERC20FailedOperation(address)" - )] - pub struct SafeERC20FailedOperation { - pub token: ::ethers::core::types::Address, - } - ///Custom Error type `SubnetAlreadyBootstrapped` with signature `SubnetAlreadyBootstrapped()` and selector `0x3673e5e6` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "SubnetAlreadyBootstrapped", abi = "SubnetAlreadyBootstrapped()")] - pub struct SubnetAlreadyBootstrapped; - ///Custom Error type `SubnetAlreadyKilled` with signature `SubnetAlreadyKilled()` and selector `0x49191df6` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "SubnetAlreadyKilled", abi = "SubnetAlreadyKilled()")] - pub struct SubnetAlreadyKilled; - ///Custom Error type `SubnetNotBootstrapped` with signature `SubnetNotBootstrapped()` and selector `0xdfd06d8f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "SubnetNotBootstrapped", abi = "SubnetNotBootstrapped()")] - pub struct SubnetNotBootstrapped; - ///Custom Error type `WithdrawExceedingCollateral` with signature `WithdrawExceedingCollateral()` and selector `0xac693603` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "WithdrawExceedingCollateral", - abi = "WithdrawExceedingCollateral()" - )] - pub struct WithdrawExceedingCollateral; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorManagerFacetErrors { - AddressEmptyCode(AddressEmptyCode), - AddressInsufficientBalance(AddressInsufficientBalance), - AddressShouldBeValidator(AddressShouldBeValidator), - CannotReleaseZero(CannotReleaseZero), - CollateralIsZero(CollateralIsZero), - DuplicatedGenesisValidator(DuplicatedGenesisValidator), - EmptyAddress(EmptyAddress), - EnforcedPause(EnforcedPause), - ExpectedPause(ExpectedPause), - FailedInnerCall(FailedInnerCall), - InvalidFederationPayload(InvalidFederationPayload), - InvalidPublicKeyLength(InvalidPublicKeyLength), - MethodNotAllowed(MethodNotAllowed), - NotAllValidatorsHaveLeft(NotAllValidatorsHaveLeft), - NotEnoughBalance(NotEnoughBalance), - NotEnoughCollateral(NotEnoughCollateral), - NotEnoughFunds(NotEnoughFunds), - NotEnoughGenesisValidators(NotEnoughGenesisValidators), - NotOwner(NotOwner), - NotOwnerOfPublicKey(NotOwnerOfPublicKey), - NotValidator(NotValidator), - PQDoesNotContainAddress(PQDoesNotContainAddress), - PQEmpty(PQEmpty), - ReentrancyError(ReentrancyError), - SafeERC20FailedOperation(SafeERC20FailedOperation), - SubnetAlreadyBootstrapped(SubnetAlreadyBootstrapped), - SubnetAlreadyKilled(SubnetAlreadyKilled), - SubnetNotBootstrapped(SubnetNotBootstrapped), - WithdrawExceedingCollateral(WithdrawExceedingCollateral), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorManagerFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressEmptyCode(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressInsufficientBalance(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressShouldBeValidator(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReleaseZero(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CollateralIsZero(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::DuplicatedGenesisValidator(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::EmptyAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::EnforcedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ExpectedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FailedInnerCall(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidFederationPayload(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidPublicKeyLength(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::MethodNotAllowed(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotAllValidatorsHaveLeft(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEnoughBalance(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEnoughCollateral(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEnoughFunds(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEnoughGenesisValidators(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotOwner(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotOwnerOfPublicKey(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotValidator(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PQDoesNotContainAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PQEmpty(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ReentrancyError(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SafeERC20FailedOperation(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SubnetAlreadyBootstrapped(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SubnetAlreadyKilled(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SubnetNotBootstrapped(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::WithdrawExceedingCollateral(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorManagerFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::AddressEmptyCode(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::AddressInsufficientBalance(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::AddressShouldBeValidator(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReleaseZero(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CollateralIsZero(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::DuplicatedGenesisValidator(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::EmptyAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::EnforcedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ExpectedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FailedInnerCall(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidFederationPayload(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidPublicKeyLength(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::MethodNotAllowed(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotAllValidatorsHaveLeft(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEnoughBalance(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEnoughCollateral(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEnoughFunds(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEnoughGenesisValidators(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotOwner(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotOwnerOfPublicKey(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotValidator(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::PQDoesNotContainAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::PQEmpty(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::ReentrancyError(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SafeERC20FailedOperation(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SubnetAlreadyBootstrapped(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SubnetAlreadyKilled(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SubnetNotBootstrapped(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::WithdrawExceedingCollateral(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for SubnetActorManagerFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for SubnetActorManagerFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::AddressEmptyCode(element) => ::core::fmt::Display::fmt(element, f), - Self::AddressInsufficientBalance(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::AddressShouldBeValidator(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReleaseZero(element) => ::core::fmt::Display::fmt(element, f), - Self::CollateralIsZero(element) => ::core::fmt::Display::fmt(element, f), - Self::DuplicatedGenesisValidator(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::EmptyAddress(element) => ::core::fmt::Display::fmt(element, f), - Self::EnforcedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::ExpectedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::FailedInnerCall(element) => ::core::fmt::Display::fmt(element, f), - Self::InvalidFederationPayload(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidPublicKeyLength(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MethodNotAllowed(element) => ::core::fmt::Display::fmt(element, f), - Self::NotAllValidatorsHaveLeft(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotEnoughBalance(element) => ::core::fmt::Display::fmt(element, f), - Self::NotEnoughCollateral(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotEnoughFunds(element) => ::core::fmt::Display::fmt(element, f), - Self::NotEnoughGenesisValidators(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotOwner(element) => ::core::fmt::Display::fmt(element, f), - Self::NotOwnerOfPublicKey(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotValidator(element) => ::core::fmt::Display::fmt(element, f), - Self::PQDoesNotContainAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::PQEmpty(element) => ::core::fmt::Display::fmt(element, f), - Self::ReentrancyError(element) => ::core::fmt::Display::fmt(element, f), - Self::SafeERC20FailedOperation(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::SubnetAlreadyBootstrapped(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::SubnetAlreadyKilled(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::SubnetNotBootstrapped(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::WithdrawExceedingCollateral(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for SubnetActorManagerFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: AddressEmptyCode) -> Self { - Self::AddressEmptyCode(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: AddressInsufficientBalance) -> Self { - Self::AddressInsufficientBalance(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: AddressShouldBeValidator) -> Self { - Self::AddressShouldBeValidator(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: CannotReleaseZero) -> Self { - Self::CannotReleaseZero(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: CollateralIsZero) -> Self { - Self::CollateralIsZero(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: DuplicatedGenesisValidator) -> Self { - Self::DuplicatedGenesisValidator(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: EmptyAddress) -> Self { - Self::EmptyAddress(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: EnforcedPause) -> Self { - Self::EnforcedPause(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: ExpectedPause) -> Self { - Self::ExpectedPause(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: FailedInnerCall) -> Self { - Self::FailedInnerCall(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: InvalidFederationPayload) -> Self { - Self::InvalidFederationPayload(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: InvalidPublicKeyLength) -> Self { - Self::InvalidPublicKeyLength(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: MethodNotAllowed) -> Self { - Self::MethodNotAllowed(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: NotAllValidatorsHaveLeft) -> Self { - Self::NotAllValidatorsHaveLeft(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: NotEnoughBalance) -> Self { - Self::NotEnoughBalance(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: NotEnoughCollateral) -> Self { - Self::NotEnoughCollateral(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: NotEnoughFunds) -> Self { - Self::NotEnoughFunds(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: NotEnoughGenesisValidators) -> Self { - Self::NotEnoughGenesisValidators(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: NotOwner) -> Self { - Self::NotOwner(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: NotOwnerOfPublicKey) -> Self { - Self::NotOwnerOfPublicKey(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: NotValidator) -> Self { - Self::NotValidator(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: PQDoesNotContainAddress) -> Self { - Self::PQDoesNotContainAddress(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: PQEmpty) -> Self { - Self::PQEmpty(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: ReentrancyError) -> Self { - Self::ReentrancyError(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: SafeERC20FailedOperation) -> Self { - Self::SafeERC20FailedOperation(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: SubnetAlreadyBootstrapped) -> Self { - Self::SubnetAlreadyBootstrapped(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: SubnetAlreadyKilled) -> Self { - Self::SubnetAlreadyKilled(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetErrors { - fn from(value: SubnetNotBootstrapped) -> Self { - Self::SubnetNotBootstrapped(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetErrors { - fn from(value: WithdrawExceedingCollateral) -> Self { - Self::WithdrawExceedingCollateral(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ActiveValidatorCollateralUpdated", - abi = "ActiveValidatorCollateralUpdated(address,uint256)" - )] - pub struct ActiveValidatorCollateralUpdatedFilter { - pub validator: ::ethers::core::types::Address, - pub new_power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "ActiveValidatorLeft", abi = "ActiveValidatorLeft(address)")] - pub struct ActiveValidatorLeftFilter { - pub validator: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ActiveValidatorReplaced", - abi = "ActiveValidatorReplaced(address,address)" - )] - pub struct ActiveValidatorReplacedFilter { - pub old_validator: ::ethers::core::types::Address, - pub new_validator: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "NewActiveValidator", abi = "NewActiveValidator(address,uint256)")] - pub struct NewActiveValidatorFilter { - pub validator: ::ethers::core::types::Address, - pub power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "NewBootstrapNode", abi = "NewBootstrapNode(string,address)")] - pub struct NewBootstrapNodeFilter { - pub net_address: ::std::string::String, - pub owner: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewStakingChangeRequest", - abi = "NewStakingChangeRequest(uint8,address,bytes,uint64)" - )] - pub struct NewStakingChangeRequestFilter { - pub op: u8, - pub validator: ::ethers::core::types::Address, - pub payload: ::ethers::core::types::Bytes, - pub configuration_number: u64, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewWaitingValidator", - abi = "NewWaitingValidator(address,uint256)" - )] - pub struct NewWaitingValidatorFilter { - pub validator: ::ethers::core::types::Address, - pub power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Paused", abi = "Paused(address)")] - pub struct PausedFilter { - pub account: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "SubnetBootstrapped", - abi = "SubnetBootstrapped((uint256,address,bytes)[])" - )] - pub struct SubnetBootstrappedFilter(pub ::std::vec::Vec); - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Unpaused", abi = "Unpaused(address)")] - pub struct UnpausedFilter { - pub account: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ValidatorGaterUpdated", - abi = "ValidatorGaterUpdated(address,address)" - )] - pub struct ValidatorGaterUpdatedFilter { - pub old_gater: ::ethers::core::types::Address, - pub new_gater: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "WaitingValidatorCollateralUpdated", - abi = "WaitingValidatorCollateralUpdated(address,uint256)" - )] - pub struct WaitingValidatorCollateralUpdatedFilter { - pub validator: ::ethers::core::types::Address, - pub new_power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "WaitingValidatorLeft", abi = "WaitingValidatorLeft(address)")] - pub struct WaitingValidatorLeftFilter { - pub validator: ::ethers::core::types::Address, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorManagerFacetEvents { - ActiveValidatorCollateralUpdatedFilter(ActiveValidatorCollateralUpdatedFilter), - ActiveValidatorLeftFilter(ActiveValidatorLeftFilter), - ActiveValidatorReplacedFilter(ActiveValidatorReplacedFilter), - NewActiveValidatorFilter(NewActiveValidatorFilter), - NewBootstrapNodeFilter(NewBootstrapNodeFilter), - NewStakingChangeRequestFilter(NewStakingChangeRequestFilter), - NewWaitingValidatorFilter(NewWaitingValidatorFilter), - PausedFilter(PausedFilter), - SubnetBootstrappedFilter(SubnetBootstrappedFilter), - UnpausedFilter(UnpausedFilter), - ValidatorGaterUpdatedFilter(ValidatorGaterUpdatedFilter), - WaitingValidatorCollateralUpdatedFilter(WaitingValidatorCollateralUpdatedFilter), - WaitingValidatorLeftFilter(WaitingValidatorLeftFilter), - } - impl ::ethers::contract::EthLogDecode for SubnetActorManagerFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = ActiveValidatorCollateralUpdatedFilter::decode_log( - log, - ) { - return Ok( - SubnetActorManagerFacetEvents::ActiveValidatorCollateralUpdatedFilter( - decoded, - ), - ); - } - if let Ok(decoded) = ActiveValidatorLeftFilter::decode_log(log) { - return Ok( - SubnetActorManagerFacetEvents::ActiveValidatorLeftFilter(decoded), - ); - } - if let Ok(decoded) = ActiveValidatorReplacedFilter::decode_log(log) { - return Ok( - SubnetActorManagerFacetEvents::ActiveValidatorReplacedFilter(decoded), - ); - } - if let Ok(decoded) = NewActiveValidatorFilter::decode_log(log) { - return Ok( - SubnetActorManagerFacetEvents::NewActiveValidatorFilter(decoded), - ); - } - if let Ok(decoded) = NewBootstrapNodeFilter::decode_log(log) { - return Ok( - SubnetActorManagerFacetEvents::NewBootstrapNodeFilter(decoded), - ); - } - if let Ok(decoded) = NewStakingChangeRequestFilter::decode_log(log) { - return Ok( - SubnetActorManagerFacetEvents::NewStakingChangeRequestFilter(decoded), - ); - } - if let Ok(decoded) = NewWaitingValidatorFilter::decode_log(log) { - return Ok( - SubnetActorManagerFacetEvents::NewWaitingValidatorFilter(decoded), - ); - } - if let Ok(decoded) = PausedFilter::decode_log(log) { - return Ok(SubnetActorManagerFacetEvents::PausedFilter(decoded)); - } - if let Ok(decoded) = SubnetBootstrappedFilter::decode_log(log) { - return Ok( - SubnetActorManagerFacetEvents::SubnetBootstrappedFilter(decoded), - ); - } - if let Ok(decoded) = UnpausedFilter::decode_log(log) { - return Ok(SubnetActorManagerFacetEvents::UnpausedFilter(decoded)); - } - if let Ok(decoded) = ValidatorGaterUpdatedFilter::decode_log(log) { - return Ok( - SubnetActorManagerFacetEvents::ValidatorGaterUpdatedFilter(decoded), - ); - } - if let Ok(decoded) = WaitingValidatorCollateralUpdatedFilter::decode_log( - log, - ) { - return Ok( - SubnetActorManagerFacetEvents::WaitingValidatorCollateralUpdatedFilter( - decoded, - ), - ); - } - if let Ok(decoded) = WaitingValidatorLeftFilter::decode_log(log) { - return Ok( - SubnetActorManagerFacetEvents::WaitingValidatorLeftFilter(decoded), - ); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for SubnetActorManagerFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::ActiveValidatorCollateralUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ActiveValidatorLeftFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ActiveValidatorReplacedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewActiveValidatorFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewBootstrapNodeFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewStakingChangeRequestFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewWaitingValidatorFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::PausedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::SubnetBootstrappedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::UnpausedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::ValidatorGaterUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::WaitingValidatorCollateralUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::WaitingValidatorLeftFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: ActiveValidatorCollateralUpdatedFilter) -> Self { - Self::ActiveValidatorCollateralUpdatedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: ActiveValidatorLeftFilter) -> Self { - Self::ActiveValidatorLeftFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: ActiveValidatorReplacedFilter) -> Self { - Self::ActiveValidatorReplacedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: NewActiveValidatorFilter) -> Self { - Self::NewActiveValidatorFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: NewBootstrapNodeFilter) -> Self { - Self::NewBootstrapNodeFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: NewStakingChangeRequestFilter) -> Self { - Self::NewStakingChangeRequestFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: NewWaitingValidatorFilter) -> Self { - Self::NewWaitingValidatorFilter(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetEvents { - fn from(value: PausedFilter) -> Self { - Self::PausedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: SubnetBootstrappedFilter) -> Self { - Self::SubnetBootstrappedFilter(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetEvents { - fn from(value: UnpausedFilter) -> Self { - Self::UnpausedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: ValidatorGaterUpdatedFilter) -> Self { - Self::ValidatorGaterUpdatedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: WaitingValidatorCollateralUpdatedFilter) -> Self { - Self::WaitingValidatorCollateralUpdatedFilter(value) - } - } - impl ::core::convert::From - for SubnetActorManagerFacetEvents { - fn from(value: WaitingValidatorLeftFilter) -> Self { - Self::WaitingValidatorLeftFilter(value) - } - } - ///Container type for all input parameters for the `addBootstrapNode` function with signature `addBootstrapNode(string)` and selector `0x10fd4261` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "addBootstrapNode", abi = "addBootstrapNode(string)")] - pub struct AddBootstrapNodeCall { - pub net_address: ::std::string::String, - } - ///Container type for all input parameters for the `join` function with signature `join(bytes,uint256)` and selector `0x3ae24713` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "join", abi = "join(bytes,uint256)")] - pub struct JoinCall { - pub public_key: ::ethers::core::types::Bytes, - pub amount: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `kill` function with signature `kill()` and selector `0x41c0e1b5` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "kill", abi = "kill()")] - pub struct KillCall; - ///Container type for all input parameters for the `leave` function with signature `leave()` and selector `0xd66d9e19` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "leave", abi = "leave()")] - pub struct LeaveCall; - ///Container type for all input parameters for the `preFund` function with signature `preFund(uint256)` and selector `0x4d9013a1` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "preFund", abi = "preFund(uint256)")] - pub struct PreFundCall { - pub amount: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `preRelease` function with signature `preRelease(uint256)` and selector `0x66783c9b` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "preRelease", abi = "preRelease(uint256)")] - pub struct PreReleaseCall { - pub amount: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `setFederatedPower` function with signature `setFederatedPower(address[],bytes[],uint256[])` and selector `0xda5d09ee` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "setFederatedPower", - abi = "setFederatedPower(address[],bytes[],uint256[])" - )] - pub struct SetFederatedPowerCall { - pub validators: ::std::vec::Vec<::ethers::core::types::Address>, - pub public_keys: ::std::vec::Vec<::ethers::core::types::Bytes>, - pub powers: ::std::vec::Vec<::ethers::core::types::U256>, - } - ///Container type for all input parameters for the `setValidatorGater` function with signature `setValidatorGater(address)` and selector `0xdcda8973` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "setValidatorGater", abi = "setValidatorGater(address)")] - pub struct SetValidatorGaterCall { - pub gater: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `stake` function with signature `stake(uint256)` and selector `0xa694fc3a` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "stake", abi = "stake(uint256)")] - pub struct StakeCall { - pub amount: ::ethers::core::types::U256, - } - ///Container type for all input parameters for the `unstake` function with signature `unstake(uint256)` and selector `0x2e17de78` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "unstake", abi = "unstake(uint256)")] - pub struct UnstakeCall { - pub amount: ::ethers::core::types::U256, - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorManagerFacetCalls { - AddBootstrapNode(AddBootstrapNodeCall), - Join(JoinCall), - Kill(KillCall), - Leave(LeaveCall), - PreFund(PreFundCall), - PreRelease(PreReleaseCall), - SetFederatedPower(SetFederatedPowerCall), - SetValidatorGater(SetValidatorGaterCall), - Stake(StakeCall), - Unstake(UnstakeCall), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorManagerFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddBootstrapNode(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Join(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Kill(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Leave(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PreFund(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PreRelease(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SetFederatedPower(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::SetValidatorGater(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Stake(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Unstake(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorManagerFacetCalls { - fn encode(self) -> Vec { - match self { - Self::AddBootstrapNode(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Join(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Kill(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Leave(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::PreFund(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::PreRelease(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SetFederatedPower(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::SetValidatorGater(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::Stake(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Unstake(element) => ::ethers::core::abi::AbiEncode::encode(element), - } - } - } - impl ::core::fmt::Display for SubnetActorManagerFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::AddBootstrapNode(element) => ::core::fmt::Display::fmt(element, f), - Self::Join(element) => ::core::fmt::Display::fmt(element, f), - Self::Kill(element) => ::core::fmt::Display::fmt(element, f), - Self::Leave(element) => ::core::fmt::Display::fmt(element, f), - Self::PreFund(element) => ::core::fmt::Display::fmt(element, f), - Self::PreRelease(element) => ::core::fmt::Display::fmt(element, f), - Self::SetFederatedPower(element) => ::core::fmt::Display::fmt(element, f), - Self::SetValidatorGater(element) => ::core::fmt::Display::fmt(element, f), - Self::Stake(element) => ::core::fmt::Display::fmt(element, f), - Self::Unstake(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: AddBootstrapNodeCall) -> Self { - Self::AddBootstrapNode(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: JoinCall) -> Self { - Self::Join(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: KillCall) -> Self { - Self::Kill(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: LeaveCall) -> Self { - Self::Leave(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: PreFundCall) -> Self { - Self::PreFund(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: PreReleaseCall) -> Self { - Self::PreRelease(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: SetFederatedPowerCall) -> Self { - Self::SetFederatedPower(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: SetValidatorGaterCall) -> Self { - Self::SetValidatorGater(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: StakeCall) -> Self { - Self::Stake(value) - } - } - impl ::core::convert::From for SubnetActorManagerFacetCalls { - fn from(value: UnstakeCall) -> Self { - Self::Unstake(value) - } - } - ///`Validator(uint256,address,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Validator { - pub weight: ::ethers::core::types::U256, - pub addr: ::ethers::core::types::Address, - pub metadata: ::ethers::core::types::Bytes, - } -} diff --git a/crates/binding/src/subnet_actor_pause_facet.rs b/crates/binding/src/subnet_actor_pause_facet.rs deleted file mode 100644 index db2cdd3c5..000000000 --- a/crates/binding/src/subnet_actor_pause_facet.rs +++ /dev/null @@ -1,595 +0,0 @@ -pub use subnet_actor_pause_facet::*; -/// 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 subnet_actor_pause_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("pause"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("pause"), - inputs: ::std::vec![], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("paused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("paused"), - inputs: ::std::vec![], - 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::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("unpause"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("unpause"), - inputs: ::std::vec![], - 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("Paused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Paused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("Unpaused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Unpaused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("EnforcedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("EnforcedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ExpectedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ExpectedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotOwner"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotOwner"), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static SUBNETACTORPAUSEFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x16Wa\x02\r\x90\x81a\0\x1B\x829\xF3[_\x80\xFD\xFE`@`\x80\x81R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1C\x80c?K\xA8:\x14a\x01\nW\x80c\\\x97Z\xBB\x14a\0\xC8Wc\x84V\xCBY\x14a\0;W_\x80\xFD[4a\0\xC4W_6`\x03\x19\x01\x12a\0\xC4Wa\0Sa\x01\x92V[\x7F\xC4Q\xC9B\x9C'\xDBh\xF2\x86\xAB\x8Ah\xF3\x11\xF1\xDC\xCA\xB7\x03\xBA\x94#\xAE\xD2\x9C\xD3\x97\xAEc\xF8c\x80T`\xFF\x81\x16a\0\xB3W`\xFF\x19\x16`\x01\x17\x90UQ3\x81R\x7Fb\xE7\x8C\xEA\x01\xBE\xE3 \xCDNB\x02p\xB5\xEAt\0\r\x11\xB0\xC9\xF7GT\xEB\xDB\xFCTK\x05\xA2X\x90` \x90\xA1\0[\x82Qc\xD9<\x06e`\xE0\x1B\x81R`\x04\x90\xFD[_\x80\xFD[P4a\0\xC4W_6`\x03\x19\x01\x12a\0\xC4W` \x90`\xFF\x7F\xC4Q\xC9B\x9C'\xDBh\xF2\x86\xAB\x8Ah\xF3\x11\xF1\xDC\xCA\xB7\x03\xBA\x94#\xAE\xD2\x9C\xD3\x97\xAEc\xF8cT\x16\x90Q\x90\x15\x15\x81R\xF3[P4a\0\xC4W_6`\x03\x19\x01\x12a\0\xC4Wa\x01#a\x01\x92V[\x7F\xC4Q\xC9B\x9C'\xDBh\xF2\x86\xAB\x8Ah\xF3\x11\xF1\xDC\xCA\xB7\x03\xBA\x94#\xAE\xD2\x9C\xD3\x97\xAEc\xF8c\x80T`\xFF\x81\x16\x15a\x01\x81W`\xFF\x19\x16\x90UQ3\x81R\x7F]\xB9\xEE\nI[\xF2\xE6\xFF\x9C\x91\xA7\x83L\x1B\xA4\xFD\xD2D\xA5\xE8\xAANS{\xD3\x8A\xEA\xE4\xB0s\xAA\x90` \x90\xA1\0[\x82Qc\x8D\xFC +`\xE0\x1B\x81R`\x04\x90\xFD[\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5T`\x01`\x01`\xA0\x1B\x03\x163\x03a\x01\xC5WV[`@Qc0\xCDtq`\xE0\x1B\x81R`\x04\x90\xFD\xFE\xA2dipfsX\"\x12 \x8Ef\xA5\xE0\x8C\xEE\xA6\xC3\xEE\x1E\xDC\xBAO\x06\xFCZ.M`b\x07\xFF\x08)\xC2j\xAEs\xF7W\x93!dsolcC\0\x08\x17\x003"; - /// The bytecode of the contract. - pub static SUBNETACTORPAUSEFACET_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"`@`\x80\x81R`\x046\x10\x15a\0\x12W_\x80\xFD[_5`\xE0\x1C\x80c?K\xA8:\x14a\x01\nW\x80c\\\x97Z\xBB\x14a\0\xC8Wc\x84V\xCBY\x14a\0;W_\x80\xFD[4a\0\xC4W_6`\x03\x19\x01\x12a\0\xC4Wa\0Sa\x01\x92V[\x7F\xC4Q\xC9B\x9C'\xDBh\xF2\x86\xAB\x8Ah\xF3\x11\xF1\xDC\xCA\xB7\x03\xBA\x94#\xAE\xD2\x9C\xD3\x97\xAEc\xF8c\x80T`\xFF\x81\x16a\0\xB3W`\xFF\x19\x16`\x01\x17\x90UQ3\x81R\x7Fb\xE7\x8C\xEA\x01\xBE\xE3 \xCDNB\x02p\xB5\xEAt\0\r\x11\xB0\xC9\xF7GT\xEB\xDB\xFCTK\x05\xA2X\x90` \x90\xA1\0[\x82Qc\xD9<\x06e`\xE0\x1B\x81R`\x04\x90\xFD[_\x80\xFD[P4a\0\xC4W_6`\x03\x19\x01\x12a\0\xC4W` \x90`\xFF\x7F\xC4Q\xC9B\x9C'\xDBh\xF2\x86\xAB\x8Ah\xF3\x11\xF1\xDC\xCA\xB7\x03\xBA\x94#\xAE\xD2\x9C\xD3\x97\xAEc\xF8cT\x16\x90Q\x90\x15\x15\x81R\xF3[P4a\0\xC4W_6`\x03\x19\x01\x12a\0\xC4Wa\x01#a\x01\x92V[\x7F\xC4Q\xC9B\x9C'\xDBh\xF2\x86\xAB\x8Ah\xF3\x11\xF1\xDC\xCA\xB7\x03\xBA\x94#\xAE\xD2\x9C\xD3\x97\xAEc\xF8c\x80T`\xFF\x81\x16\x15a\x01\x81W`\xFF\x19\x16\x90UQ3\x81R\x7F]\xB9\xEE\nI[\xF2\xE6\xFF\x9C\x91\xA7\x83L\x1B\xA4\xFD\xD2D\xA5\xE8\xAANS{\xD3\x8A\xEA\xE4\xB0s\xAA\x90` \x90\xA1\0[\x82Qc\x8D\xFC +`\xE0\x1B\x81R`\x04\x90\xFD[\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5T`\x01`\x01`\xA0\x1B\x03\x163\x03a\x01\xC5WV[`@Qc0\xCDtq`\xE0\x1B\x81R`\x04\x90\xFD\xFE\xA2dipfsX\"\x12 \x8Ef\xA5\xE0\x8C\xEE\xA6\xC3\xEE\x1E\xDC\xBAO\x06\xFCZ.M`b\x07\xFF\x08)\xC2j\xAEs\xF7W\x93!dsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static SUBNETACTORPAUSEFACET_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct SubnetActorPauseFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for SubnetActorPauseFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for SubnetActorPauseFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for SubnetActorPauseFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for SubnetActorPauseFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(SubnetActorPauseFacet)) - .field(&self.address()) - .finish() - } - } - impl SubnetActorPauseFacet { - /// 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(), - SUBNETACTORPAUSEFACET_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( - SUBNETACTORPAUSEFACET_ABI.clone(), - SUBNETACTORPAUSEFACET_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Calls the contract's `pause` (0x8456cb59) function - pub fn pause(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([132, 86, 203, 89], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `paused` (0x5c975abb) function - pub fn paused(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([92, 151, 90, 187], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `unpause` (0x3f4ba83a) function - pub fn unpause(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([63, 75, 168, 58], ()) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `Paused` event - pub fn paused_filter( - &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, PausedFilter> { - self.0.event() - } - ///Gets the contract's `Unpaused` event - pub fn unpaused_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - UnpausedFilter, - > { - 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, - SubnetActorPauseFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for SubnetActorPauseFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `EnforcedPause` with signature `EnforcedPause()` and selector `0xd93c0665` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "EnforcedPause", abi = "EnforcedPause()")] - pub struct EnforcedPause; - ///Custom Error type `ExpectedPause` with signature `ExpectedPause()` and selector `0x8dfc202b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ExpectedPause", abi = "ExpectedPause()")] - pub struct ExpectedPause; - ///Custom Error type `NotOwner` with signature `NotOwner()` and selector `0x30cd7471` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotOwner", abi = "NotOwner()")] - pub struct NotOwner; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorPauseFacetErrors { - EnforcedPause(EnforcedPause), - ExpectedPause(ExpectedPause), - NotOwner(NotOwner), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorPauseFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::EnforcedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ExpectedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotOwner(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorPauseFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::EnforcedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ExpectedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotOwner(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for SubnetActorPauseFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ => false, - } - } - } - impl ::core::fmt::Display for SubnetActorPauseFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::EnforcedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::ExpectedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::NotOwner(element) => ::core::fmt::Display::fmt(element, f), - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for SubnetActorPauseFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for SubnetActorPauseFacetErrors { - fn from(value: EnforcedPause) -> Self { - Self::EnforcedPause(value) - } - } - impl ::core::convert::From for SubnetActorPauseFacetErrors { - fn from(value: ExpectedPause) -> Self { - Self::ExpectedPause(value) - } - } - impl ::core::convert::From for SubnetActorPauseFacetErrors { - fn from(value: NotOwner) -> Self { - Self::NotOwner(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Paused", abi = "Paused(address)")] - pub struct PausedFilter { - pub account: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Unpaused", abi = "Unpaused(address)")] - pub struct UnpausedFilter { - pub account: ::ethers::core::types::Address, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorPauseFacetEvents { - PausedFilter(PausedFilter), - UnpausedFilter(UnpausedFilter), - } - impl ::ethers::contract::EthLogDecode for SubnetActorPauseFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = PausedFilter::decode_log(log) { - return Ok(SubnetActorPauseFacetEvents::PausedFilter(decoded)); - } - if let Ok(decoded) = UnpausedFilter::decode_log(log) { - return Ok(SubnetActorPauseFacetEvents::UnpausedFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for SubnetActorPauseFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::PausedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::UnpausedFilter(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for SubnetActorPauseFacetEvents { - fn from(value: PausedFilter) -> Self { - Self::PausedFilter(value) - } - } - impl ::core::convert::From for SubnetActorPauseFacetEvents { - fn from(value: UnpausedFilter) -> Self { - Self::UnpausedFilter(value) - } - } - ///Container type for all input parameters for the `pause` function with signature `pause()` and selector `0x8456cb59` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "pause", abi = "pause()")] - pub struct PauseCall; - ///Container type for all input parameters for the `paused` function with signature `paused()` and selector `0x5c975abb` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "paused", abi = "paused()")] - pub struct PausedCall; - ///Container type for all input parameters for the `unpause` function with signature `unpause()` and selector `0x3f4ba83a` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "unpause", abi = "unpause()")] - pub struct UnpauseCall; - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorPauseFacetCalls { - Pause(PauseCall), - Paused(PausedCall), - Unpause(UnpauseCall), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorPauseFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Pause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Paused(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::Unpause(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorPauseFacetCalls { - fn encode(self) -> Vec { - match self { - Self::Pause(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Paused(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::Unpause(element) => ::ethers::core::abi::AbiEncode::encode(element), - } - } - } - impl ::core::fmt::Display for SubnetActorPauseFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::Pause(element) => ::core::fmt::Display::fmt(element, f), - Self::Paused(element) => ::core::fmt::Display::fmt(element, f), - Self::Unpause(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From for SubnetActorPauseFacetCalls { - fn from(value: PauseCall) -> Self { - Self::Pause(value) - } - } - impl ::core::convert::From for SubnetActorPauseFacetCalls { - fn from(value: PausedCall) -> Self { - Self::Paused(value) - } - } - impl ::core::convert::From for SubnetActorPauseFacetCalls { - fn from(value: UnpauseCall) -> Self { - Self::Unpause(value) - } - } - ///Container type for all return fields from the `paused` function with signature `paused()` and selector `0x5c975abb` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct PausedReturn(pub bool); -} diff --git a/crates/binding/src/subnet_actor_reward_facet.rs b/crates/binding/src/subnet_actor_reward_facet.rs deleted file mode 100644 index e108f313d..000000000 --- a/crates/binding/src/subnet_actor_reward_facet.rs +++ /dev/null @@ -1,601 +0,0 @@ -pub use subnet_actor_reward_facet::*; -/// 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 subnet_actor_reward_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("claim"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("claim"), - inputs: ::std::vec![], - 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("CollateralClaimed"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("CollateralClaimed"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::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("Paused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Paused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("Unpaused"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("Unpaused"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("account"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("EnforcedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("EnforcedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ExpectedPause"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ExpectedPause"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NoCollateralToWithdraw"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NoCollateralToWithdraw", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotEnoughBalance"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotEnoughBalance"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ReentrancyError"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("ReentrancyError"), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static SUBNETACTORREWARDFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x16Wa\x04_\x90\x81a\0\x1B\x829\xF3[_\x80\xFD\xFE`\x80`@\x81\x81R`\x04\x91\x826\x10\x15a\0\x15W_\x80\xFD[_5`\xE0\x1CcNq\xD9-\x14a\0(W_\x80\xFD[4a\x02TW_6`\x03\x19\x01\x12a\x02TW`\x01\x92\x7Fi\x1B\xB0?\xFC\x16\xC5o\xC9k\x82\xFD\x16\xCD\x1B7\x15\xF0\xBC<\xDCd\x07\0_I\xBBb\x05\x86\0\x95\x91\x84\x83T\x14a\x02HWP\x83\x82U`\xFF\x7F\xC4Q\xC9B\x9C'\xDBh\xF2\x86\xAB\x8Ah\xF3\x11\xF1\xDC\xCA\xB7\x03\xBA\x94#\xAE\xD2\x9C\xD3\x97\xAEc\xF8cT\x16a\x02:W3_\x90\x81R`\x17` R`@\x90 \x92\x83T\x93a\xFF\xFF\x95\x86\x86\x16\x95\x86\x15a\x02*W\x87\x90`\x10\x1C\x16\x90\x86\x90\x80_\x98\x81\x86\x01\x91[a\x01\x99W[PPPc\xFF\xFF\0\0\x93\x94\x95\x96\x97\x83T\x91\x16\x93\x84\x92`\x10\x1B\x16\x90c\xFF\xFF\xFF\xFF\x19\x16\x17\x17\x90U\x15a\x01\x85W[\x80Q3\x81R` \x81\x01\x85\x90R\x7F\x19|XcS\xEA\xED\n\x1CS\xE6\xE5@D[\x94\xBE\xFA\xB8\xF92\xC8\x11]\x11!\x15\xEC\xBE\xEE\xD5\x14\x90`@\x90\xA1\x83a\x01/W[_\x83U\0[Q\x90a\x01:\x82a\x02XV[`\x08T\x90`\xFF\x82\x16\x90`\x02\x82\x10\x15a\x01rWP\x82R`\x08\x1C`\x01`\x01`\xA0\x1B\x03\x16` \x82\x01R_\x92a\x01m\x913\x90a\x02\xAAV[a\x01*V[`!\x90cNH{q`\xE0\x1B_RR`$_\xFD[3_\x90\x81R`\x17` R`@\x81 Ua\0\xF2V[\x90\x91\x92\x93\x8A\x81\x16\x99\x82\x8B\x10\x15a\x02!W\x8A_R` \x90\x84\x82R\x81\x89_ \x8AQa\x01\xC1\x81a\x02XV[\x88\x82T\x92\x83\x83R\x01T\x92\x83\x91\x01RC\x10a\x02\x16W\x81\x01\x80\x91\x11a\x02\x03W\x85\x85\x94\x93\x81\x96\x8F\x94\x85\x94\x9F_RR_\x82\x8C\x82 \x82\x81U\x01U\x01\x16\x95_\x19\x01\x16\x93a\0\xC3V[`\x11\x8AcNH{q`\xE0\x1B_RR`$_\xFD[P\x9APP\x93\x92a\0\xC8V[\x99P\x93\x92a\0\xC8V[PPPQcd\xB0U\x7F`\xE0\x1B\x81R\xFD[\x82Qc\xD9<\x06e`\xE0\x1B\x81R\xFD[c)\xF7E\xA7`\xE0\x1B\x81R\xFD[_\x80\xFD[`@\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x02tW`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x02tW`@RV[_\x90``\x90\x80Q`\x02\x81\x10\x15a\x03\xD6Wa\x03\x1CWPPP\x81G\x10a\x03\nW_\x91\x82\x91\x82\x91\x82\x91`\x01`\x01`\xA0\x1B\x03\x16Z\xF1\x90a\x02\xE4a\x03\xEAV[P`@Q\x91` \x83\x01\x83\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x02tW`@R_\x83R\x91\x90V[`@QcV\x9DE\xCF`\xE1\x1B\x81R`\x04\x90\xFD[\x90\x93\x91\x94\x92\x81Q`\x02\x81\x10\x15a\x03\xD6W`\x01\x14a\x038WPPPV[` \x91\x82\x01Q`@\x80Q`\x01`\x01`\xA0\x1B\x03\x93\x84\x16\x81\x86\x01R\x80\x82\x01\x95\x90\x95R\x84R\x93\x95P\x90\x92\x16\x92Pa\x03m``\x82a\x02\x88V[`@Q\x90` \x82\x01\x92c\xA9\x05\x9C\xBB`\xE0\x1B\x84R\x81Q\x91_[\x83\x81\x10a\x03\xC2WPPP\x91_\x82a\x03\xB2`$\x82\x84\x98\x96\x97\x85\x98\x01\x85\x83\x82\x01R\x03`\x04\x81\x01\x84R\x01\x82a\x02\x88V[Q\x92Z\xF1\x90a\x03\xBFa\x03\xEAV[\x90V[\x81\x81\x01\x83\x01Q\x85\x82\x01`$\x01R\x82\x01a\x03\x85V[cNH{q`\xE0\x1B_R`!`\x04R`$_\xFD[=\x15a\x04$W=\x90g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11a\x02tW`@Q\x91a\x04\x19`\x1F\x82\x01`\x1F\x19\x16` \x01\x84a\x02\x88V[\x82R=_` \x84\x01>V[``\x90V\xFE\xA2dipfsX\"\x12 3\xCF\x8D\xB2\xB54:\xA9\xA7)\xBA\xF7\xFC\xBE\x13zC+}\xC2]\xA3\xC8\x86\xF3v\xA8x)\x9B\xB8,dsolcC\0\x08\x17\x003"; - /// The bytecode of the contract. - pub static SUBNETACTORREWARDFACET_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@\x81\x81R`\x04\x91\x826\x10\x15a\0\x15W_\x80\xFD[_5`\xE0\x1CcNq\xD9-\x14a\0(W_\x80\xFD[4a\x02TW_6`\x03\x19\x01\x12a\x02TW`\x01\x92\x7Fi\x1B\xB0?\xFC\x16\xC5o\xC9k\x82\xFD\x16\xCD\x1B7\x15\xF0\xBC<\xDCd\x07\0_I\xBBb\x05\x86\0\x95\x91\x84\x83T\x14a\x02HWP\x83\x82U`\xFF\x7F\xC4Q\xC9B\x9C'\xDBh\xF2\x86\xAB\x8Ah\xF3\x11\xF1\xDC\xCA\xB7\x03\xBA\x94#\xAE\xD2\x9C\xD3\x97\xAEc\xF8cT\x16a\x02:W3_\x90\x81R`\x17` R`@\x90 \x92\x83T\x93a\xFF\xFF\x95\x86\x86\x16\x95\x86\x15a\x02*W\x87\x90`\x10\x1C\x16\x90\x86\x90\x80_\x98\x81\x86\x01\x91[a\x01\x99W[PPPc\xFF\xFF\0\0\x93\x94\x95\x96\x97\x83T\x91\x16\x93\x84\x92`\x10\x1B\x16\x90c\xFF\xFF\xFF\xFF\x19\x16\x17\x17\x90U\x15a\x01\x85W[\x80Q3\x81R` \x81\x01\x85\x90R\x7F\x19|XcS\xEA\xED\n\x1CS\xE6\xE5@D[\x94\xBE\xFA\xB8\xF92\xC8\x11]\x11!\x15\xEC\xBE\xEE\xD5\x14\x90`@\x90\xA1\x83a\x01/W[_\x83U\0[Q\x90a\x01:\x82a\x02XV[`\x08T\x90`\xFF\x82\x16\x90`\x02\x82\x10\x15a\x01rWP\x82R`\x08\x1C`\x01`\x01`\xA0\x1B\x03\x16` \x82\x01R_\x92a\x01m\x913\x90a\x02\xAAV[a\x01*V[`!\x90cNH{q`\xE0\x1B_RR`$_\xFD[3_\x90\x81R`\x17` R`@\x81 Ua\0\xF2V[\x90\x91\x92\x93\x8A\x81\x16\x99\x82\x8B\x10\x15a\x02!W\x8A_R` \x90\x84\x82R\x81\x89_ \x8AQa\x01\xC1\x81a\x02XV[\x88\x82T\x92\x83\x83R\x01T\x92\x83\x91\x01RC\x10a\x02\x16W\x81\x01\x80\x91\x11a\x02\x03W\x85\x85\x94\x93\x81\x96\x8F\x94\x85\x94\x9F_RR_\x82\x8C\x82 \x82\x81U\x01U\x01\x16\x95_\x19\x01\x16\x93a\0\xC3V[`\x11\x8AcNH{q`\xE0\x1B_RR`$_\xFD[P\x9APP\x93\x92a\0\xC8V[\x99P\x93\x92a\0\xC8V[PPPQcd\xB0U\x7F`\xE0\x1B\x81R\xFD[\x82Qc\xD9<\x06e`\xE0\x1B\x81R\xFD[c)\xF7E\xA7`\xE0\x1B\x81R\xFD[_\x80\xFD[`@\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x02tW`@RV[cNH{q`\xE0\x1B_R`A`\x04R`$_\xFD[\x90`\x1F\x80\x19\x91\x01\x16\x81\x01\x90\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x02tW`@RV[_\x90``\x90\x80Q`\x02\x81\x10\x15a\x03\xD6Wa\x03\x1CWPPP\x81G\x10a\x03\nW_\x91\x82\x91\x82\x91\x82\x91`\x01`\x01`\xA0\x1B\x03\x16Z\xF1\x90a\x02\xE4a\x03\xEAV[P`@Q\x91` \x83\x01\x83\x81\x10g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11\x17a\x02tW`@R_\x83R\x91\x90V[`@QcV\x9DE\xCF`\xE1\x1B\x81R`\x04\x90\xFD[\x90\x93\x91\x94\x92\x81Q`\x02\x81\x10\x15a\x03\xD6W`\x01\x14a\x038WPPPV[` \x91\x82\x01Q`@\x80Q`\x01`\x01`\xA0\x1B\x03\x93\x84\x16\x81\x86\x01R\x80\x82\x01\x95\x90\x95R\x84R\x93\x95P\x90\x92\x16\x92Pa\x03m``\x82a\x02\x88V[`@Q\x90` \x82\x01\x92c\xA9\x05\x9C\xBB`\xE0\x1B\x84R\x81Q\x91_[\x83\x81\x10a\x03\xC2WPPP\x91_\x82a\x03\xB2`$\x82\x84\x98\x96\x97\x85\x98\x01\x85\x83\x82\x01R\x03`\x04\x81\x01\x84R\x01\x82a\x02\x88V[Q\x92Z\xF1\x90a\x03\xBFa\x03\xEAV[\x90V[\x81\x81\x01\x83\x01Q\x85\x82\x01`$\x01R\x82\x01a\x03\x85V[cNH{q`\xE0\x1B_R`!`\x04R`$_\xFD[=\x15a\x04$W=\x90g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x82\x11a\x02tW`@Q\x91a\x04\x19`\x1F\x82\x01`\x1F\x19\x16` \x01\x84a\x02\x88V[\x82R=_` \x84\x01>V[``\x90V\xFE\xA2dipfsX\"\x12 3\xCF\x8D\xB2\xB54:\xA9\xA7)\xBA\xF7\xFC\xBE\x13zC+}\xC2]\xA3\xC8\x86\xF3v\xA8x)\x9B\xB8,dsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static SUBNETACTORREWARDFACET_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct SubnetActorRewardFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for SubnetActorRewardFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for SubnetActorRewardFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for SubnetActorRewardFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for SubnetActorRewardFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(SubnetActorRewardFacet)) - .field(&self.address()) - .finish() - } - } - impl SubnetActorRewardFacet { - /// 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(), - SUBNETACTORREWARDFACET_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( - SUBNETACTORREWARDFACET_ABI.clone(), - SUBNETACTORREWARDFACET_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Calls the contract's `claim` (0x4e71d92d) function - pub fn claim(&self) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([78, 113, 217, 45], ()) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `CollateralClaimed` event - pub fn collateral_claimed_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - CollateralClaimedFilter, - > { - self.0.event() - } - ///Gets the contract's `Paused` event - pub fn paused_filter( - &self, - ) -> ::ethers::contract::builders::Event<::std::sync::Arc, M, PausedFilter> { - self.0.event() - } - ///Gets the contract's `Unpaused` event - pub fn unpaused_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - UnpausedFilter, - > { - 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, - SubnetActorRewardFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for SubnetActorRewardFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `EnforcedPause` with signature `EnforcedPause()` and selector `0xd93c0665` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "EnforcedPause", abi = "EnforcedPause()")] - pub struct EnforcedPause; - ///Custom Error type `ExpectedPause` with signature `ExpectedPause()` and selector `0x8dfc202b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ExpectedPause", abi = "ExpectedPause()")] - pub struct ExpectedPause; - ///Custom Error type `NoCollateralToWithdraw` with signature `NoCollateralToWithdraw()` and selector `0x64b0557f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NoCollateralToWithdraw", abi = "NoCollateralToWithdraw()")] - pub struct NoCollateralToWithdraw; - ///Custom Error type `NotEnoughBalance` with signature `NotEnoughBalance()` and selector `0xad3a8b9e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotEnoughBalance", abi = "NotEnoughBalance()")] - pub struct NotEnoughBalance; - ///Custom Error type `ReentrancyError` with signature `ReentrancyError()` and selector `0x29f745a7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "ReentrancyError", abi = "ReentrancyError()")] - pub struct ReentrancyError; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorRewardFacetErrors { - EnforcedPause(EnforcedPause), - ExpectedPause(ExpectedPause), - NoCollateralToWithdraw(NoCollateralToWithdraw), - NotEnoughBalance(NotEnoughBalance), - ReentrancyError(ReentrancyError), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for SubnetActorRewardFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::EnforcedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ExpectedPause(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NoCollateralToWithdraw(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotEnoughBalance(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ReentrancyError(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetActorRewardFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::EnforcedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ExpectedPause(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NoCollateralToWithdraw(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotEnoughBalance(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::ReentrancyError(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for SubnetActorRewardFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for SubnetActorRewardFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::EnforcedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::ExpectedPause(element) => ::core::fmt::Display::fmt(element, f), - Self::NoCollateralToWithdraw(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotEnoughBalance(element) => ::core::fmt::Display::fmt(element, f), - Self::ReentrancyError(element) => ::core::fmt::Display::fmt(element, f), - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for SubnetActorRewardFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for SubnetActorRewardFacetErrors { - fn from(value: EnforcedPause) -> Self { - Self::EnforcedPause(value) - } - } - impl ::core::convert::From for SubnetActorRewardFacetErrors { - fn from(value: ExpectedPause) -> Self { - Self::ExpectedPause(value) - } - } - impl ::core::convert::From for SubnetActorRewardFacetErrors { - fn from(value: NoCollateralToWithdraw) -> Self { - Self::NoCollateralToWithdraw(value) - } - } - impl ::core::convert::From for SubnetActorRewardFacetErrors { - fn from(value: NotEnoughBalance) -> Self { - Self::NotEnoughBalance(value) - } - } - impl ::core::convert::From for SubnetActorRewardFacetErrors { - fn from(value: ReentrancyError) -> Self { - Self::ReentrancyError(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "CollateralClaimed", abi = "CollateralClaimed(address,uint256)")] - pub struct CollateralClaimedFilter { - pub validator: ::ethers::core::types::Address, - pub amount: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Paused", abi = "Paused(address)")] - pub struct PausedFilter { - pub account: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "Unpaused", abi = "Unpaused(address)")] - pub struct UnpausedFilter { - pub account: ::ethers::core::types::Address, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetActorRewardFacetEvents { - CollateralClaimedFilter(CollateralClaimedFilter), - PausedFilter(PausedFilter), - UnpausedFilter(UnpausedFilter), - } - impl ::ethers::contract::EthLogDecode for SubnetActorRewardFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = CollateralClaimedFilter::decode_log(log) { - return Ok( - SubnetActorRewardFacetEvents::CollateralClaimedFilter(decoded), - ); - } - if let Ok(decoded) = PausedFilter::decode_log(log) { - return Ok(SubnetActorRewardFacetEvents::PausedFilter(decoded)); - } - if let Ok(decoded) = UnpausedFilter::decode_log(log) { - return Ok(SubnetActorRewardFacetEvents::UnpausedFilter(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for SubnetActorRewardFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::CollateralClaimedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::PausedFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::UnpausedFilter(element) => ::core::fmt::Display::fmt(element, f), - } - } - } - impl ::core::convert::From - for SubnetActorRewardFacetEvents { - fn from(value: CollateralClaimedFilter) -> Self { - Self::CollateralClaimedFilter(value) - } - } - impl ::core::convert::From for SubnetActorRewardFacetEvents { - fn from(value: PausedFilter) -> Self { - Self::PausedFilter(value) - } - } - impl ::core::convert::From for SubnetActorRewardFacetEvents { - fn from(value: UnpausedFilter) -> Self { - Self::UnpausedFilter(value) - } - } - ///Container type for all input parameters for the `claim` function with signature `claim()` and selector `0x4e71d92d` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "claim", abi = "claim()")] - pub struct ClaimCall; -} diff --git a/crates/binding/src/subnet_getter_facet.rs b/crates/binding/src/subnet_getter_facet.rs deleted file mode 100644 index a0b8eec90..000000000 --- a/crates/binding/src/subnet_getter_facet.rs +++ /dev/null @@ -1,1561 +0,0 @@ -pub use subnet_getter_facet::*; -/// 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 subnet_getter_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("getGateway"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getGateway"), - 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("getSubnetActorCheckpointerFacet"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorCheckpointerFacet", - ), - 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( - "getSubnetActorCheckpointerSelectors", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorCheckpointerSelectors", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getSubnetActorGetterFacet"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorGetterFacet", - ), - 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("getSubnetActorGetterSelectors"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorGetterSelectors", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getSubnetActorManagerFacet"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorManagerFacet", - ), - 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("getSubnetActorManagerSelectors"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorManagerSelectors", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getSubnetActorPauserFacet"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorPauserFacet", - ), - 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("getSubnetActorPauserSelectors"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorPauserSelectors", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getSubnetActorRewarderFacet"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorRewarderFacet", - ), - 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("getSubnetActorRewarderSelectors"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetActorRewarderSelectors", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getSubnetDeployedByNonce"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getSubnetDeployedByNonce", - ), - 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("nonce"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnet"), - 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("getUserLastNonce"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("getUserLastNonce"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("user"), - 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::borrow::ToOwned::to_owned("nonce"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("latestSubnetDeployed"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "latestSubnetDeployed", - ), - 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"), - ), - }, - ], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("subnet"), - 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("updateReferenceSubnetContract"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "updateReferenceSubnetContract", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("newGetterFacet"), - 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("newManagerFacet"), - 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( - "newSubnetGetterSelectors", - ), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned( - "newSubnetManagerSelectors", - ), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - outputs: ::std::vec![], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ]), - events: ::std::collections::BTreeMap::new(), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("CannotFindSubnet"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("CannotFindSubnet"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FacetCannotBeZero"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FacetCannotBeZero"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotOwner"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotOwner"), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static SUBNETGETTERFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80\x80`@R4a\0\x16Wa\x0F%\x90\x81a\0\x1B\x829\xF3[_\x80\xFD\xFE`\x80`@\x81\x81R`\x04\x90\x816\x10\x15a\0\x15W_\x80\xFD[`\xE0\x92_5\x84\x1C\x90\x81c\x03\x0F`Q\x14a\r\xB5WP\x80c\x0B\xE0a\x11\x14a\r\x8DW\x80c\x0FXI\xD1\x14a\x0CoW\x80c\x11c\xDC\xA5\x14a\x0B\xF8W\x80c\x1B\x07f\xC3\x14a\n\xDAW\x80cB\xBF<\xC1\x14a\n\xB3W\x80cMq\x15\x14\x14a\n\x8BW\x80cT\x0BZ\xD6\x14a\ncW\x80cT\xA4\xED\xDB\x14a\t2W\x80cb\xC9\xD7\xFB\x14a\t\x0BW\x80c\x89\xBB\xA2\x99\x14a\x07\xDAW\x80c\x96{\xA57\x14a\x05\xBCW\x80c\x986\xB7_\x14a\x05:W\x80c\xA3r\xBF0\x14a\x05\x12Wc\xA4m\x04M\x14a\0\xC6W_\x80\xFD[4a\x05\x0EW`\x806`\x03\x19\x01\x12a\x05\x0EWa\0\xDFa\x0E\x0EV[`\x01`\x01`\xA0\x1B\x03\x90`$5\x82\x81\x16\x91\x90\x82\x90\x03a\x05\x0EWg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x94`D5\x86\x81\x11a\x05\x0EWa\x01\x18\x906\x90\x83\x01a\x0EiV[\x96`d5\x81\x81\x11a\x05\x0EWa\x010\x906\x90\x85\x01a\x0EiV[\x96\x90\x94\x81\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5T\x163\x03a\x04\xFEW\x16\x96\x87\x15a\x04\xEFW\x85\x15a\x04\xEFWPk\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\xA0\x1B\x94`\x01\x97\x86\x89T\x16\x17\x88U`\x02\x95\x86T\x16\x17\x85U\x80\x88\x11a\x04\xDCWh\x01\0\0\0\0\0\0\0\0\x91\x82\x89\x11a\x04\xC9W`\nT\x89`\nU\x80\x8A\x10a\x04FW[P`\n_R\x88`\x03\x1C_[\x81\x81\x10a\x03\xF8WP`\x07\x19\x99\x80\x8B\x16\x90\x03\x80a\x03\x8EW[PPP\x85\x11a\x03{W\x84\x11a\x03hWP`\x0BT\x83`\x0BU\x80\x84\x10a\x02\xE5W[P\x90`\x0B_R\x82`\x03\x1C\x94_[\x86\x81\x10a\x02\x84WP\x83\x16\x80\x84\x03\x93\x03a\x02\x1BW\0[\x94_\x93\x92\x91\x93\x95_\x91[\x83\x83\x10a\x02FWPPPPPP_\x80Q` a\x0E\xD0\x839\x81Q\x91R\x01U_\x80\xF3[\x90\x91\x92\x93` a\x02w\x87\x99a\x02[\x84\x99a\x0E\x9AV[\x85\x1C\x90\x87\x87\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x98\x01\x95\x94\x93\x01\x91\x90a\x02%V[\x85\x90_\x80[`\x08\x81\x10a\x02\xA9WP\x81_\x80Q` a\x0E\xD0\x839\x81Q\x91R\x01U\x01a\x02\x06V[\x95\x91\x92\x90a\x02\xD8` \x91a\x02\xBC\x85a\x0E\x9AV[\x8D\x1C\x90\x89\x89\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x92\x01\x95\x01\x90\x87\x92\x91a\x02\x89V[`\x07\x84\x01`\x03\x1C`\x07_\x80Q` a\x0E\xD0\x839\x81Q\x91R\x92\x01`\x03\x1C\x82\x01\x91`\x1C\x86\x86\x1B\x16\x80a\x03.W[P\x86\x91\x01[\x82\x81\x10a\x03#WPPa\x01\xF9V[_\x81U\x01\x85\x90a\x03\x15V[\x7F\x01u\xB7\xA68Bw\x03\xF0\xDB\xE7\xBB\x9B\xBF\x98z%Qq{4\xE7\x9F3\xB5\xB1\0\x8D\x1F\xA0\x1D\xB8\x83\x01\x90\x81T\x90_\x19\x90` \x03`\x03\x1B\x1C\x16\x90U_a\x03\x10V[`A\x90cNH{q`\xE0\x1B_RR`$_\xFD[`A\x82cNH{q`\xE0\x1B_RR`$_\xFD[_\x92\x90\x83\x8B\x8A\x8F[\x84\x84\x10a\x03\xBBWPPPPPP_\x80Q` a\x0E\xB0\x839\x81Q\x91R\x01U_\x80\x80a\x01\xDAV[\x90\x85\x97\x84a\x03\xEB\x93a\x03\xD1` \x96\x97\x98\x99a\x0E\x9AV[\x90\x1C\x92\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x95\x01\x92\x91\x01\x8B\x8A\x8Fa\x03\x96V[\x89\x90_\x80\x8A\x8F[`\x08\x83\x10a\x04!WPPP\x81_\x80Q` a\x0E\xB0\x839\x81Q\x91R\x01U\x01a\x01\xC3V[\x90\x87\x94\x95\x93\x83a\x047\x93a\x03\xD1` \x96\x9Ba\x0E\x9AV[\x92\x01\x94\x01\x90\x8B\x92\x91\x8A\x8Fa\x03\xFFV[`\x07\x8A\x01`\x03\x1C`\x07_\x80Q` a\x0E\xB0\x839\x81Q\x91R\x92\x01`\x03\x1C\x82\x01\x91`\x1C\x8C\x8A\x1B\x16\x80a\x04\x8FW[P\x8A\x91\x01[\x82\x81\x10a\x04\x84WPPa\x01\xB8V[_\x81U\x01\x89\x90a\x04vV[\x7F\xC6Z{\xB8\xD65\x1C\x1C\xF7\x0C\x95\xA3\x16\xCCj\x92\x83\x9C\x98f\x82\xD9\x8B\xC3_\x95\x8FH\x83\xF9\xD2\xA7\x83\x01\x90\x81T\x90_\x19\x90` \x03`\x03\x1B\x1C\x16\x90U_a\x04qV[`A\x84cNH{q`\xE0\x1B_RR`$_\xFD[`A\x83cNH{q`\xE0\x1B_RR`$_\xFD[Qc\x07\xA0CQ`\xE5\x1B\x81R\x83\x90\xFD[\x88Qc0\xCDtq`\xE0\x1B\x81R\x85\x90\xFD[_\x80\xFD[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW`\x02T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P4a\x05\x0EW\x80`\x03\x196\x01\x12a\x05\x0EWa\x05Sa\x0E\x0EV[`$5g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x16\x80\x91\x03a\x05\x0EW\x80\x15a\x05\xADW`\x01\x80`\xA0\x1B\x03\x80\x92\x16_R`\x13` R\x82_ \x90_R` R\x81_ T\x16\x90\x81\x15a\x05\x9EW` \x92PQ\x90\x81R\xF3[Qc'nt\xA7`\xE1\x1B\x81R\x90P\xFD[PPQc'nt\xA7`\xE1\x1B\x81R\xFD[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\rT\x90\x81\x83R` \x80\x93\x01\x91`\r_R\x7F\xD7\xB6\x99\x01\x05q\x91\x01\xDA\xBE\xB7qD\xF2\xA38\\\x803\xAC\xD3\xAF\x97\xE9B:i^\x81\xAD\x1E\xB5\x84_\x91[\x83`\x07\x84\x01\x10a\x07lWT\x93\x83\x83\x10a\x07OW[P\x82\x82\x10a\x071W[\x82\x82\x10a\x07\x13W[\x82\x82\x10a\x06\xF5W[\x82\x82\x10a\x06\xD7W[\x82\x82\x10a\x06\xBBW[\x82\x82\x10a\x06\x9FW[P\x10a\x06\x8BW[P\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x03\x90\xF3[`\x01`\x01`\xE0\x1B\x03\x19\x16\x81R\x01\x80\x85a\x06UV[\x83\x81\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06NV[\x83\x87\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06FV[``\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06>V[`\x80\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x066V[`\xA0\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06.V[`\xC0\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06&V[\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84\x89a\x06\x1DV[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\x06\tV[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\x0ET\x90\x81\x83R` \x80\x93\x01\x91`\x0E_R\x7F\xBB{JEM\xC3I9#H/\x07\x82#)\xED\x19\xE8$N\xFFX,\xC2\x04\xF8UL6 \xC3\xFD\x84_\x91[\x83`\x07\x84\x01\x10a\x08\x9DWT\x93\x83\x83\x10a\x07OWP\x82\x82\x10a\x071W\x82\x82\x10a\x07\x13W\x82\x82\x10a\x06\xF5W\x82\x82\x10a\x06\xD7W\x82\x82\x10a\x06\xBBW\x82\x82\x10a\x06\x9FWP\x10a\x06\x8BWP\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\x08'V[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x90T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\x0CT\x90\x81\x83R` \x80\x93\x01\x91`\x0C_R\x7F\xDFif\xC9q\x05\x1C=T\xECY\x16&\x06S\x14\x93\xA5\x14\x04\xA0\x02\x84/V\0\x9D~\\\xF4\xA8\xC7\x84_\x91[\x83`\x07\x84\x01\x10a\t\xF5WT\x93\x83\x83\x10a\x07OWP\x82\x82\x10a\x071W\x82\x82\x10a\x07\x13W\x82\x82\x10a\x06\xF5W\x82\x82\x10a\x06\xD7W\x82\x82\x10a\x06\xBBW\x82\x82\x10a\x06\x9FWP\x10a\x06\x8BWP\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\t\x7FV[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW`\x03T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW`\x05T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW_T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\nT\x90\x81\x83R` \x80\x93\x01\x91`\n_R_\x80Q` a\x0E\xB0\x839\x81Q\x91R\x84_\x91[\x83`\x07\x84\x01\x10a\x0B\x8AWT\x93\x83\x83\x10a\x07OWP\x82\x82\x10a\x071W\x82\x82\x10a\x07\x13W\x82\x82\x10a\x06\xF5W\x82\x82\x10a\x06\xD7W\x82\x82\x10a\x06\xBBW\x82\x82\x10a\x06\x9FWP\x10a\x06\x8BWP\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\x0B\x14V[P4a\x05\x0EW` 6`\x03\x19\x01\x12a\x05\x0EW`\x01`\x01`\xA0\x1B\x03\x80a\x0C\x1Ba\x0E\x0EV[\x16\x80_R`\x14` Rg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83_ T\x16\x90\x81\x15a\x0C_W_R`\x13` R\x82_ \x90_R` R\x81_ T\x16\x90\x81\x15a\x05\x9EW` \x92PQ\x90\x81R\xF3[PPPQc'nt\xA7`\xE1\x1B\x81R\xFD[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\x0BT\x90\x81\x83R` \x80\x93\x01\x91`\x0B_R_\x80Q` a\x0E\xD0\x839\x81Q\x91R\x84_\x91[\x83`\x07\x84\x01\x10a\r\x1FWT\x93\x83\x83\x10a\x07OWP\x82\x82\x10a\x071W\x82\x82\x10a\x07\x13W\x82\x82\x10a\x06\xF5W\x82\x82\x10a\x06\xD7W\x82\x82\x10a\x06\xBBW\x82\x82\x10a\x06\x9FWP\x10a\x06\x8BWP\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\x0C\xA9V[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW`\x01T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[\x91\x90P4a\x05\x0EW` 6`\x03\x19\x01\x12a\x05\x0EW`\x01`\x01`\xA0\x1B\x03a\r\xD9a\x0E\x0EV[\x16_R`\x14` Rg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81_ T\x16\x91\x82\x15a\x0E\0W` \x83\x83Q\x90\x81R\xF3[c'nt\xA7`\xE1\x1B\x81R\x83\x90\xFD[`\x045\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\x05\x0EWV[` \x90` `@\x81\x83\x01\x92\x82\x81R\x85Q\x80\x94R\x01\x93\x01\x91_[\x82\x81\x10a\x0EKWPPPP\x90V[\x83Q`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x93\x81\x01\x93\x92\x81\x01\x92`\x01\x01a\x0E=V[\x91\x81`\x1F\x84\x01\x12\x15a\x05\x0EW\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x05\x0EW` \x80\x85\x01\x94\x84`\x05\x1B\x01\x01\x11a\x05\x0EWV[5`\x01`\x01`\xE0\x1B\x03\x19\x81\x16\x81\x03a\x05\x0EW\x90V\xFE\xC6Z{\xB8\xD65\x1C\x1C\xF7\x0C\x95\xA3\x16\xCCj\x92\x83\x9C\x98f\x82\xD9\x8B\xC3_\x95\x8FH\x83\xF9\xD2\xA8\x01u\xB7\xA68Bw\x03\xF0\xDB\xE7\xBB\x9B\xBF\x98z%Qq{4\xE7\x9F3\xB5\xB1\0\x8D\x1F\xA0\x1D\xB9\xA2dipfsX\"\x12 \xCC+z\xF4\xE6i\xDB\xAA\x7Fv\xE9V\xB7\x17\x1E\xAC13\xF9\x87\x07\x88*w\x99&g\rm\x1F\x7F3dsolcC\0\x08\x17\x003"; - /// The bytecode of the contract. - pub static SUBNETGETTERFACET_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@\x81\x81R`\x04\x90\x816\x10\x15a\0\x15W_\x80\xFD[`\xE0\x92_5\x84\x1C\x90\x81c\x03\x0F`Q\x14a\r\xB5WP\x80c\x0B\xE0a\x11\x14a\r\x8DW\x80c\x0FXI\xD1\x14a\x0CoW\x80c\x11c\xDC\xA5\x14a\x0B\xF8W\x80c\x1B\x07f\xC3\x14a\n\xDAW\x80cB\xBF<\xC1\x14a\n\xB3W\x80cMq\x15\x14\x14a\n\x8BW\x80cT\x0BZ\xD6\x14a\ncW\x80cT\xA4\xED\xDB\x14a\t2W\x80cb\xC9\xD7\xFB\x14a\t\x0BW\x80c\x89\xBB\xA2\x99\x14a\x07\xDAW\x80c\x96{\xA57\x14a\x05\xBCW\x80c\x986\xB7_\x14a\x05:W\x80c\xA3r\xBF0\x14a\x05\x12Wc\xA4m\x04M\x14a\0\xC6W_\x80\xFD[4a\x05\x0EW`\x806`\x03\x19\x01\x12a\x05\x0EWa\0\xDFa\x0E\x0EV[`\x01`\x01`\xA0\x1B\x03\x90`$5\x82\x81\x16\x91\x90\x82\x90\x03a\x05\x0EWg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x94`D5\x86\x81\x11a\x05\x0EWa\x01\x18\x906\x90\x83\x01a\x0EiV[\x96`d5\x81\x81\x11a\x05\x0EWa\x010\x906\x90\x85\x01a\x0EiV[\x96\x90\x94\x81\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5T\x163\x03a\x04\xFEW\x16\x96\x87\x15a\x04\xEFW\x85\x15a\x04\xEFWPk\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF`\xA0\x1B\x94`\x01\x97\x86\x89T\x16\x17\x88U`\x02\x95\x86T\x16\x17\x85U\x80\x88\x11a\x04\xDCWh\x01\0\0\0\0\0\0\0\0\x91\x82\x89\x11a\x04\xC9W`\nT\x89`\nU\x80\x8A\x10a\x04FW[P`\n_R\x88`\x03\x1C_[\x81\x81\x10a\x03\xF8WP`\x07\x19\x99\x80\x8B\x16\x90\x03\x80a\x03\x8EW[PPP\x85\x11a\x03{W\x84\x11a\x03hWP`\x0BT\x83`\x0BU\x80\x84\x10a\x02\xE5W[P\x90`\x0B_R\x82`\x03\x1C\x94_[\x86\x81\x10a\x02\x84WP\x83\x16\x80\x84\x03\x93\x03a\x02\x1BW\0[\x94_\x93\x92\x91\x93\x95_\x91[\x83\x83\x10a\x02FWPPPPPP_\x80Q` a\x0E\xD0\x839\x81Q\x91R\x01U_\x80\xF3[\x90\x91\x92\x93` a\x02w\x87\x99a\x02[\x84\x99a\x0E\x9AV[\x85\x1C\x90\x87\x87\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x98\x01\x95\x94\x93\x01\x91\x90a\x02%V[\x85\x90_\x80[`\x08\x81\x10a\x02\xA9WP\x81_\x80Q` a\x0E\xD0\x839\x81Q\x91R\x01U\x01a\x02\x06V[\x95\x91\x92\x90a\x02\xD8` \x91a\x02\xBC\x85a\x0E\x9AV[\x8D\x1C\x90\x89\x89\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x92\x01\x95\x01\x90\x87\x92\x91a\x02\x89V[`\x07\x84\x01`\x03\x1C`\x07_\x80Q` a\x0E\xD0\x839\x81Q\x91R\x92\x01`\x03\x1C\x82\x01\x91`\x1C\x86\x86\x1B\x16\x80a\x03.W[P\x86\x91\x01[\x82\x81\x10a\x03#WPPa\x01\xF9V[_\x81U\x01\x85\x90a\x03\x15V[\x7F\x01u\xB7\xA68Bw\x03\xF0\xDB\xE7\xBB\x9B\xBF\x98z%Qq{4\xE7\x9F3\xB5\xB1\0\x8D\x1F\xA0\x1D\xB8\x83\x01\x90\x81T\x90_\x19\x90` \x03`\x03\x1B\x1C\x16\x90U_a\x03\x10V[`A\x90cNH{q`\xE0\x1B_RR`$_\xFD[`A\x82cNH{q`\xE0\x1B_RR`$_\xFD[_\x92\x90\x83\x8B\x8A\x8F[\x84\x84\x10a\x03\xBBWPPPPPP_\x80Q` a\x0E\xB0\x839\x81Q\x91R\x01U_\x80\x80a\x01\xDAV[\x90\x85\x97\x84a\x03\xEB\x93a\x03\xD1` \x96\x97\x98\x99a\x0E\x9AV[\x90\x1C\x92\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x95\x01\x92\x91\x01\x8B\x8A\x8Fa\x03\x96V[\x89\x90_\x80\x8A\x8F[`\x08\x83\x10a\x04!WPPP\x81_\x80Q` a\x0E\xB0\x839\x81Q\x91R\x01U\x01a\x01\xC3V[\x90\x87\x94\x95\x93\x83a\x047\x93a\x03\xD1` \x96\x9Ba\x0E\x9AV[\x92\x01\x94\x01\x90\x8B\x92\x91\x8A\x8Fa\x03\xFFV[`\x07\x8A\x01`\x03\x1C`\x07_\x80Q` a\x0E\xB0\x839\x81Q\x91R\x92\x01`\x03\x1C\x82\x01\x91`\x1C\x8C\x8A\x1B\x16\x80a\x04\x8FW[P\x8A\x91\x01[\x82\x81\x10a\x04\x84WPPa\x01\xB8V[_\x81U\x01\x89\x90a\x04vV[\x7F\xC6Z{\xB8\xD65\x1C\x1C\xF7\x0C\x95\xA3\x16\xCCj\x92\x83\x9C\x98f\x82\xD9\x8B\xC3_\x95\x8FH\x83\xF9\xD2\xA7\x83\x01\x90\x81T\x90_\x19\x90` \x03`\x03\x1B\x1C\x16\x90U_a\x04qV[`A\x84cNH{q`\xE0\x1B_RR`$_\xFD[`A\x83cNH{q`\xE0\x1B_RR`$_\xFD[Qc\x07\xA0CQ`\xE5\x1B\x81R\x83\x90\xFD[\x88Qc0\xCDtq`\xE0\x1B\x81R\x85\x90\xFD[_\x80\xFD[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW`\x02T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P4a\x05\x0EW\x80`\x03\x196\x01\x12a\x05\x0EWa\x05Sa\x0E\x0EV[`$5g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81\x16\x80\x91\x03a\x05\x0EW\x80\x15a\x05\xADW`\x01\x80`\xA0\x1B\x03\x80\x92\x16_R`\x13` R\x82_ \x90_R` R\x81_ T\x16\x90\x81\x15a\x05\x9EW` \x92PQ\x90\x81R\xF3[Qc'nt\xA7`\xE1\x1B\x81R\x90P\xFD[PPQc'nt\xA7`\xE1\x1B\x81R\xFD[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\rT\x90\x81\x83R` \x80\x93\x01\x91`\r_R\x7F\xD7\xB6\x99\x01\x05q\x91\x01\xDA\xBE\xB7qD\xF2\xA38\\\x803\xAC\xD3\xAF\x97\xE9B:i^\x81\xAD\x1E\xB5\x84_\x91[\x83`\x07\x84\x01\x10a\x07lWT\x93\x83\x83\x10a\x07OW[P\x82\x82\x10a\x071W[\x82\x82\x10a\x07\x13W[\x82\x82\x10a\x06\xF5W[\x82\x82\x10a\x06\xD7W[\x82\x82\x10a\x06\xBBW[\x82\x82\x10a\x06\x9FW[P\x10a\x06\x8BW[P\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x03\x90\xF3[`\x01`\x01`\xE0\x1B\x03\x19\x16\x81R\x01\x80\x85a\x06UV[\x83\x81\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06NV[\x83\x87\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06FV[``\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06>V[`\x80\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x066V[`\xA0\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06.V[`\xC0\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84a\x06&V[\x84\x90\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x90\x93\x01\x92`\x01\x01\x84\x89a\x06\x1DV[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\x06\tV[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\x0ET\x90\x81\x83R` \x80\x93\x01\x91`\x0E_R\x7F\xBB{JEM\xC3I9#H/\x07\x82#)\xED\x19\xE8$N\xFFX,\xC2\x04\xF8UL6 \xC3\xFD\x84_\x91[\x83`\x07\x84\x01\x10a\x08\x9DWT\x93\x83\x83\x10a\x07OWP\x82\x82\x10a\x071W\x82\x82\x10a\x07\x13W\x82\x82\x10a\x06\xF5W\x82\x82\x10a\x06\xD7W\x82\x82\x10a\x06\xBBW\x82\x82\x10a\x06\x9FWP\x10a\x06\x8BWP\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\x08'V[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x90T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\x0CT\x90\x81\x83R` \x80\x93\x01\x91`\x0C_R\x7F\xDFif\xC9q\x05\x1C=T\xECY\x16&\x06S\x14\x93\xA5\x14\x04\xA0\x02\x84/V\0\x9D~\\\xF4\xA8\xC7\x84_\x91[\x83`\x07\x84\x01\x10a\t\xF5WT\x93\x83\x83\x10a\x07OWP\x82\x82\x10a\x071W\x82\x82\x10a\x07\x13W\x82\x82\x10a\x06\xF5W\x82\x82\x10a\x06\xD7W\x82\x82\x10a\x06\xBBW\x82\x82\x10a\x06\x9FWP\x10a\x06\x8BWP\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\t\x7FV[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW`\x03T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW`\x05T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW_T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\nT\x90\x81\x83R` \x80\x93\x01\x91`\n_R_\x80Q` a\x0E\xB0\x839\x81Q\x91R\x84_\x91[\x83`\x07\x84\x01\x10a\x0B\x8AWT\x93\x83\x83\x10a\x07OWP\x82\x82\x10a\x071W\x82\x82\x10a\x07\x13W\x82\x82\x10a\x06\xF5W\x82\x82\x10a\x06\xD7W\x82\x82\x10a\x06\xBBW\x82\x82\x10a\x06\x9FWP\x10a\x06\x8BWP\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\x0B\x14V[P4a\x05\x0EW` 6`\x03\x19\x01\x12a\x05\x0EW`\x01`\x01`\xA0\x1B\x03\x80a\x0C\x1Ba\x0E\x0EV[\x16\x80_R`\x14` Rg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83_ T\x16\x90\x81\x15a\x0C_W_R`\x13` R\x82_ \x90_R` R\x81_ T\x16\x90\x81\x15a\x05\x9EW` \x92PQ\x90\x81R\xF3[PPPQc'nt\xA7`\xE1\x1B\x81R\xFD[P\x82\x904a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW\x80Q\x80\x92`\x0BT\x90\x81\x83R` \x80\x93\x01\x91`\x0B_R_\x80Q` a\x0E\xD0\x839\x81Q\x91R\x84_\x91[\x83`\x07\x84\x01\x10a\r\x1FWT\x93\x83\x83\x10a\x07OWP\x82\x82\x10a\x071W\x82\x82\x10a\x07\x13W\x82\x82\x10a\x06\xF5W\x82\x82\x10a\x06\xD7W\x82\x82\x10a\x06\xBBW\x82\x82\x10a\x06\x9FWP\x10a\x06\x8BWP\x83\x90\x03`\x1F\x01`\x1F\x19\x16\x83\x01\x93\x90Pg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x84\x11\x83\x85\x10\x17a\x03hWP\x82\x91\x82a\x06\x87\x92R\x82a\x0E$V[\x94`\x08\x91Pa\x01\0`\x01\x91\x87Tc\xFF\xFF\xFF\xFF`\xE0\x1B\x90\x81\x81\x8A\x1B\x16\x83R`\xC0\x82\x82\x82\x1B\x16\x8C\x85\x01R\x8C\x83\x83`\xA0\x92\x82\x82\x85\x1B\x16\x81\x89\x01R``\x83\x83`\x80\x92\x82\x82\x85\x1B\x16\x81\x8D\x01R\x1B\x16\x90\x89\x01R\x1B\x16\x90\x85\x01R\x82\x82\x8D\x1B\x16\x90\x84\x01R\x16\x87\x82\x01R\x01\x95\x01\x91\x01\x90\x85\x90a\x0C\xA9V[P4a\x05\x0EW_6`\x03\x19\x01\x12a\x05\x0EW`\x01T\x90Q`\x01`\x01`\xA0\x1B\x03\x90\x91\x16\x81R` \x90\xF3[\x91\x90P4a\x05\x0EW` 6`\x03\x19\x01\x12a\x05\x0EW`\x01`\x01`\xA0\x1B\x03a\r\xD9a\x0E\x0EV[\x16_R`\x14` Rg\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x81_ T\x16\x91\x82\x15a\x0E\0W` \x83\x83Q\x90\x81R\xF3[c'nt\xA7`\xE1\x1B\x81R\x83\x90\xFD[`\x045\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03a\x05\x0EWV[` \x90` `@\x81\x83\x01\x92\x82\x81R\x85Q\x80\x94R\x01\x93\x01\x91_[\x82\x81\x10a\x0EKWPPPP\x90V[\x83Q`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x93\x81\x01\x93\x92\x81\x01\x92`\x01\x01a\x0E=V[\x91\x81`\x1F\x84\x01\x12\x15a\x05\x0EW\x825\x91g\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\x83\x11a\x05\x0EW` \x80\x85\x01\x94\x84`\x05\x1B\x01\x01\x11a\x05\x0EWV[5`\x01`\x01`\xE0\x1B\x03\x19\x81\x16\x81\x03a\x05\x0EW\x90V\xFE\xC6Z{\xB8\xD65\x1C\x1C\xF7\x0C\x95\xA3\x16\xCCj\x92\x83\x9C\x98f\x82\xD9\x8B\xC3_\x95\x8FH\x83\xF9\xD2\xA8\x01u\xB7\xA68Bw\x03\xF0\xDB\xE7\xBB\x9B\xBF\x98z%Qq{4\xE7\x9F3\xB5\xB1\0\x8D\x1F\xA0\x1D\xB9\xA2dipfsX\"\x12 \xCC+z\xF4\xE6i\xDB\xAA\x7Fv\xE9V\xB7\x17\x1E\xAC13\xF9\x87\x07\x88*w\x99&g\rm\x1F\x7F3dsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static SUBNETGETTERFACET_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct SubnetGetterFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for SubnetGetterFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for SubnetGetterFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for SubnetGetterFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for SubnetGetterFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(SubnetGetterFacet)) - .field(&self.address()) - .finish() - } - } - impl SubnetGetterFacet { - /// 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(), - SUBNETGETTERFACET_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( - SUBNETGETTERFACET_ABI.clone(), - SUBNETGETTERFACET_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Calls the contract's `getGateway` (0x42bf3cc1) function - pub fn get_gateway( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([66, 191, 60, 193], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorCheckpointerFacet` (0x62c9d7fb) function - pub fn get_subnet_actor_checkpointer_facet( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([98, 201, 215, 251], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorCheckpointerSelectors` (0x967ba537) function - pub fn get_subnet_actor_checkpointer_selectors( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([150, 123, 165, 55], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorGetterFacet` (0x0be06111) function - pub fn get_subnet_actor_getter_facet( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([11, 224, 97, 17], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorGetterSelectors` (0x1b0766c3) function - pub fn get_subnet_actor_getter_selectors( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([27, 7, 102, 195], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorManagerFacet` (0xa372bf30) function - pub fn get_subnet_actor_manager_facet( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([163, 114, 191, 48], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorManagerSelectors` (0x0f5849d1) function - pub fn get_subnet_actor_manager_selectors( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([15, 88, 73, 209], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorPauserFacet` (0x4d711514) function - pub fn get_subnet_actor_pauser_facet( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([77, 113, 21, 20], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorPauserSelectors` (0x89bba299) function - pub fn get_subnet_actor_pauser_selectors( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([137, 187, 162, 153], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorRewarderFacet` (0x540b5ad6) function - pub fn get_subnet_actor_rewarder_facet( - &self, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([84, 11, 90, 214], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetActorRewarderSelectors` (0x54a4eddb) function - pub fn get_subnet_actor_rewarder_selectors( - &self, - ) -> ::ethers::contract::builders::ContractCall> { - self.0 - .method_hash([84, 164, 237, 219], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getSubnetDeployedByNonce` (0x9836b75f) function - pub fn get_subnet_deployed_by_nonce( - &self, - owner: ::ethers::core::types::Address, - nonce: u64, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([152, 54, 183, 95], (owner, nonce)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getUserLastNonce` (0x030f6051) function - pub fn get_user_last_nonce( - &self, - user: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([3, 15, 96, 81], user) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `latestSubnetDeployed` (0x1163dca5) function - pub fn latest_subnet_deployed( - &self, - owner: ::ethers::core::types::Address, - ) -> ::ethers::contract::builders::ContractCall< - M, - ::ethers::core::types::Address, - > { - self.0 - .method_hash([17, 99, 220, 165], owner) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `updateReferenceSubnetContract` (0xa46d044d) function - pub fn update_reference_subnet_contract( - &self, - new_getter_facet: ::ethers::core::types::Address, - new_manager_facet: ::ethers::core::types::Address, - new_subnet_getter_selectors: ::std::vec::Vec<[u8; 4]>, - new_subnet_manager_selectors: ::std::vec::Vec<[u8; 4]>, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash( - [164, 109, 4, 77], - ( - new_getter_facet, - new_manager_facet, - new_subnet_getter_selectors, - new_subnet_manager_selectors, - ), - ) - .expect("method not found (this should never happen)") - } - } - impl From<::ethers::contract::Contract> - for SubnetGetterFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `CannotFindSubnet` with signature `CannotFindSubnet()` and selector `0x4edce94e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "CannotFindSubnet", abi = "CannotFindSubnet()")] - pub struct CannotFindSubnet; - ///Custom Error type `FacetCannotBeZero` with signature `FacetCannotBeZero()` and selector `0xf4086a20` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FacetCannotBeZero", abi = "FacetCannotBeZero()")] - pub struct FacetCannotBeZero; - ///Custom Error type `NotOwner` with signature `NotOwner()` and selector `0x30cd7471` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotOwner", abi = "NotOwner()")] - pub struct NotOwner; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetGetterFacetErrors { - CannotFindSubnet(CannotFindSubnet), - FacetCannotBeZero(FacetCannotBeZero), - NotOwner(NotOwner), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for SubnetGetterFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotFindSubnet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FacetCannotBeZero(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotOwner(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetGetterFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::CannotFindSubnet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FacetCannotBeZero(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotOwner(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for SubnetGetterFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ => false, - } - } - } - impl ::core::fmt::Display for SubnetGetterFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::CannotFindSubnet(element) => ::core::fmt::Display::fmt(element, f), - Self::FacetCannotBeZero(element) => ::core::fmt::Display::fmt(element, f), - Self::NotOwner(element) => ::core::fmt::Display::fmt(element, f), - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for SubnetGetterFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for SubnetGetterFacetErrors { - fn from(value: CannotFindSubnet) -> Self { - Self::CannotFindSubnet(value) - } - } - impl ::core::convert::From for SubnetGetterFacetErrors { - fn from(value: FacetCannotBeZero) -> Self { - Self::FacetCannotBeZero(value) - } - } - impl ::core::convert::From for SubnetGetterFacetErrors { - fn from(value: NotOwner) -> Self { - Self::NotOwner(value) - } - } - ///Container type for all input parameters for the `getGateway` function with signature `getGateway()` and selector `0x42bf3cc1` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getGateway", abi = "getGateway()")] - pub struct GetGatewayCall; - ///Container type for all input parameters for the `getSubnetActorCheckpointerFacet` function with signature `getSubnetActorCheckpointerFacet()` and selector `0x62c9d7fb` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getSubnetActorCheckpointerFacet", - abi = "getSubnetActorCheckpointerFacet()" - )] - pub struct GetSubnetActorCheckpointerFacetCall; - ///Container type for all input parameters for the `getSubnetActorCheckpointerSelectors` function with signature `getSubnetActorCheckpointerSelectors()` and selector `0x967ba537` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getSubnetActorCheckpointerSelectors", - abi = "getSubnetActorCheckpointerSelectors()" - )] - pub struct GetSubnetActorCheckpointerSelectorsCall; - ///Container type for all input parameters for the `getSubnetActorGetterFacet` function with signature `getSubnetActorGetterFacet()` and selector `0x0be06111` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getSubnetActorGetterFacet", abi = "getSubnetActorGetterFacet()")] - pub struct GetSubnetActorGetterFacetCall; - ///Container type for all input parameters for the `getSubnetActorGetterSelectors` function with signature `getSubnetActorGetterSelectors()` and selector `0x1b0766c3` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getSubnetActorGetterSelectors", - abi = "getSubnetActorGetterSelectors()" - )] - pub struct GetSubnetActorGetterSelectorsCall; - ///Container type for all input parameters for the `getSubnetActorManagerFacet` function with signature `getSubnetActorManagerFacet()` and selector `0xa372bf30` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getSubnetActorManagerFacet", abi = "getSubnetActorManagerFacet()")] - pub struct GetSubnetActorManagerFacetCall; - ///Container type for all input parameters for the `getSubnetActorManagerSelectors` function with signature `getSubnetActorManagerSelectors()` and selector `0x0f5849d1` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getSubnetActorManagerSelectors", - abi = "getSubnetActorManagerSelectors()" - )] - pub struct GetSubnetActorManagerSelectorsCall; - ///Container type for all input parameters for the `getSubnetActorPauserFacet` function with signature `getSubnetActorPauserFacet()` and selector `0x4d711514` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getSubnetActorPauserFacet", abi = "getSubnetActorPauserFacet()")] - pub struct GetSubnetActorPauserFacetCall; - ///Container type for all input parameters for the `getSubnetActorPauserSelectors` function with signature `getSubnetActorPauserSelectors()` and selector `0x89bba299` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getSubnetActorPauserSelectors", - abi = "getSubnetActorPauserSelectors()" - )] - pub struct GetSubnetActorPauserSelectorsCall; - ///Container type for all input parameters for the `getSubnetActorRewarderFacet` function with signature `getSubnetActorRewarderFacet()` and selector `0x540b5ad6` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getSubnetActorRewarderFacet", - abi = "getSubnetActorRewarderFacet()" - )] - pub struct GetSubnetActorRewarderFacetCall; - ///Container type for all input parameters for the `getSubnetActorRewarderSelectors` function with signature `getSubnetActorRewarderSelectors()` and selector `0x54a4eddb` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getSubnetActorRewarderSelectors", - abi = "getSubnetActorRewarderSelectors()" - )] - pub struct GetSubnetActorRewarderSelectorsCall; - ///Container type for all input parameters for the `getSubnetDeployedByNonce` function with signature `getSubnetDeployedByNonce(address,uint64)` and selector `0x9836b75f` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getSubnetDeployedByNonce", - abi = "getSubnetDeployedByNonce(address,uint64)" - )] - pub struct GetSubnetDeployedByNonceCall { - pub owner: ::ethers::core::types::Address, - pub nonce: u64, - } - ///Container type for all input parameters for the `getUserLastNonce` function with signature `getUserLastNonce(address)` and selector `0x030f6051` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "getUserLastNonce", abi = "getUserLastNonce(address)")] - pub struct GetUserLastNonceCall { - pub user: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `latestSubnetDeployed` function with signature `latestSubnetDeployed(address)` and selector `0x1163dca5` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "latestSubnetDeployed", abi = "latestSubnetDeployed(address)")] - pub struct LatestSubnetDeployedCall { - pub owner: ::ethers::core::types::Address, - } - ///Container type for all input parameters for the `updateReferenceSubnetContract` function with signature `updateReferenceSubnetContract(address,address,bytes4[],bytes4[])` and selector `0xa46d044d` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "updateReferenceSubnetContract", - abi = "updateReferenceSubnetContract(address,address,bytes4[],bytes4[])" - )] - pub struct UpdateReferenceSubnetContractCall { - pub new_getter_facet: ::ethers::core::types::Address, - pub new_manager_facet: ::ethers::core::types::Address, - pub new_subnet_getter_selectors: ::std::vec::Vec<[u8; 4]>, - pub new_subnet_manager_selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetGetterFacetCalls { - GetGateway(GetGatewayCall), - GetSubnetActorCheckpointerFacet(GetSubnetActorCheckpointerFacetCall), - GetSubnetActorCheckpointerSelectors(GetSubnetActorCheckpointerSelectorsCall), - GetSubnetActorGetterFacet(GetSubnetActorGetterFacetCall), - GetSubnetActorGetterSelectors(GetSubnetActorGetterSelectorsCall), - GetSubnetActorManagerFacet(GetSubnetActorManagerFacetCall), - GetSubnetActorManagerSelectors(GetSubnetActorManagerSelectorsCall), - GetSubnetActorPauserFacet(GetSubnetActorPauserFacetCall), - GetSubnetActorPauserSelectors(GetSubnetActorPauserSelectorsCall), - GetSubnetActorRewarderFacet(GetSubnetActorRewarderFacetCall), - GetSubnetActorRewarderSelectors(GetSubnetActorRewarderSelectorsCall), - GetSubnetDeployedByNonce(GetSubnetDeployedByNonceCall), - GetUserLastNonce(GetUserLastNonceCall), - LatestSubnetDeployed(LatestSubnetDeployedCall), - UpdateReferenceSubnetContract(UpdateReferenceSubnetContractCall), - } - impl ::ethers::core::abi::AbiDecode for SubnetGetterFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetGateway(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorCheckpointerFacet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorCheckpointerSelectors(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorGetterFacet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorGetterSelectors(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorManagerFacet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorManagerSelectors(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorPauserFacet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorPauserSelectors(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorRewarderFacet(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetActorRewarderSelectors(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetSubnetDeployedByNonce(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetUserLastNonce(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::LatestSubnetDeployed(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::UpdateReferenceSubnetContract(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetGetterFacetCalls { - fn encode(self) -> Vec { - match self { - Self::GetGateway(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorCheckpointerFacet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorCheckpointerSelectors(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorGetterFacet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorGetterSelectors(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorManagerFacet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorManagerSelectors(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorPauserFacet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorPauserSelectors(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorRewarderFacet(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetActorRewarderSelectors(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetSubnetDeployedByNonce(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetUserLastNonce(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::LatestSubnetDeployed(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::UpdateReferenceSubnetContract(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for SubnetGetterFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::GetGateway(element) => ::core::fmt::Display::fmt(element, f), - Self::GetSubnetActorCheckpointerFacet(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetActorCheckpointerSelectors(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetActorGetterFacet(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetActorGetterSelectors(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetActorManagerFacet(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetActorManagerSelectors(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetActorPauserFacet(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetActorPauserSelectors(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetActorRewarderFacet(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetActorRewarderSelectors(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetSubnetDeployedByNonce(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetUserLastNonce(element) => ::core::fmt::Display::fmt(element, f), - Self::LatestSubnetDeployed(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::UpdateReferenceSubnetContract(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for SubnetGetterFacetCalls { - fn from(value: GetGatewayCall) -> Self { - Self::GetGateway(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorCheckpointerFacetCall) -> Self { - Self::GetSubnetActorCheckpointerFacet(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorCheckpointerSelectorsCall) -> Self { - Self::GetSubnetActorCheckpointerSelectors(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorGetterFacetCall) -> Self { - Self::GetSubnetActorGetterFacet(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorGetterSelectorsCall) -> Self { - Self::GetSubnetActorGetterSelectors(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorManagerFacetCall) -> Self { - Self::GetSubnetActorManagerFacet(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorManagerSelectorsCall) -> Self { - Self::GetSubnetActorManagerSelectors(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorPauserFacetCall) -> Self { - Self::GetSubnetActorPauserFacet(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorPauserSelectorsCall) -> Self { - Self::GetSubnetActorPauserSelectors(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorRewarderFacetCall) -> Self { - Self::GetSubnetActorRewarderFacet(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: GetSubnetActorRewarderSelectorsCall) -> Self { - Self::GetSubnetActorRewarderSelectors(value) - } - } - impl ::core::convert::From for SubnetGetterFacetCalls { - fn from(value: GetSubnetDeployedByNonceCall) -> Self { - Self::GetSubnetDeployedByNonce(value) - } - } - impl ::core::convert::From for SubnetGetterFacetCalls { - fn from(value: GetUserLastNonceCall) -> Self { - Self::GetUserLastNonce(value) - } - } - impl ::core::convert::From for SubnetGetterFacetCalls { - fn from(value: LatestSubnetDeployedCall) -> Self { - Self::LatestSubnetDeployed(value) - } - } - impl ::core::convert::From - for SubnetGetterFacetCalls { - fn from(value: UpdateReferenceSubnetContractCall) -> Self { - Self::UpdateReferenceSubnetContract(value) - } - } - ///Container type for all return fields from the `getGateway` function with signature `getGateway()` and selector `0x42bf3cc1` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetGatewayReturn(pub ::ethers::core::types::Address); - ///Container type for all return fields from the `getSubnetActorCheckpointerFacet` function with signature `getSubnetActorCheckpointerFacet()` and selector `0x62c9d7fb` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorCheckpointerFacetReturn(pub ::ethers::core::types::Address); - ///Container type for all return fields from the `getSubnetActorCheckpointerSelectors` function with signature `getSubnetActorCheckpointerSelectors()` and selector `0x967ba537` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorCheckpointerSelectorsReturn(pub ::std::vec::Vec<[u8; 4]>); - ///Container type for all return fields from the `getSubnetActorGetterFacet` function with signature `getSubnetActorGetterFacet()` and selector `0x0be06111` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorGetterFacetReturn(pub ::ethers::core::types::Address); - ///Container type for all return fields from the `getSubnetActorGetterSelectors` function with signature `getSubnetActorGetterSelectors()` and selector `0x1b0766c3` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorGetterSelectorsReturn(pub ::std::vec::Vec<[u8; 4]>); - ///Container type for all return fields from the `getSubnetActorManagerFacet` function with signature `getSubnetActorManagerFacet()` and selector `0xa372bf30` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorManagerFacetReturn(pub ::ethers::core::types::Address); - ///Container type for all return fields from the `getSubnetActorManagerSelectors` function with signature `getSubnetActorManagerSelectors()` and selector `0x0f5849d1` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorManagerSelectorsReturn(pub ::std::vec::Vec<[u8; 4]>); - ///Container type for all return fields from the `getSubnetActorPauserFacet` function with signature `getSubnetActorPauserFacet()` and selector `0x4d711514` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorPauserFacetReturn(pub ::ethers::core::types::Address); - ///Container type for all return fields from the `getSubnetActorPauserSelectors` function with signature `getSubnetActorPauserSelectors()` and selector `0x89bba299` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorPauserSelectorsReturn(pub ::std::vec::Vec<[u8; 4]>); - ///Container type for all return fields from the `getSubnetActorRewarderFacet` function with signature `getSubnetActorRewarderFacet()` and selector `0x540b5ad6` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorRewarderFacetReturn(pub ::ethers::core::types::Address); - ///Container type for all return fields from the `getSubnetActorRewarderSelectors` function with signature `getSubnetActorRewarderSelectors()` and selector `0x54a4eddb` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetActorRewarderSelectorsReturn(pub ::std::vec::Vec<[u8; 4]>); - ///Container type for all return fields from the `getSubnetDeployedByNonce` function with signature `getSubnetDeployedByNonce(address,uint64)` and selector `0x9836b75f` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetSubnetDeployedByNonceReturn { - pub subnet: ::ethers::core::types::Address, - } - ///Container type for all return fields from the `getUserLastNonce` function with signature `getUserLastNonce(address)` and selector `0x030f6051` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetUserLastNonceReturn { - pub nonce: u64, - } - ///Container type for all return fields from the `latestSubnetDeployed` function with signature `latestSubnetDeployed(address)` and selector `0x1163dca5` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct LatestSubnetDeployedReturn { - pub subnet: ::ethers::core::types::Address, - } -} diff --git a/crates/binding/src/subnet_registry_diamond.rs b/crates/binding/src/subnet_registry_diamond.rs deleted file mode 100644 index 0fb0ba4f9..000000000 --- a/crates/binding/src/subnet_registry_diamond.rs +++ /dev/null @@ -1,1456 +0,0 @@ -pub use subnet_registry_diamond::*; -/// 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 subnet_registry_diamond { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::Some(::ethers::core::abi::ethabi::Constructor { - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_diamondCut"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct IDiamond.FacetCut[]", - ), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("params"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct SubnetRegistryDiamond.ConstructorParams", - ), - ), - }, - ], - }), - functions: ::std::collections::BTreeMap::new(), - events: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("DiamondCut"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("DiamondCut"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_diamondCut"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - ], - ), - ), - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_init"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("OwnershipTransferred"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "OwnershipTransferred", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("oldOwner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newOwner"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned( - "CannotAddFunctionToDiamondThatAlreadyExists", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotAddFunctionToDiamondThatAlreadyExists", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotAddSelectorsToZeroAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotAddSelectorsToZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selectors"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotRemoveFunctionThatDoesNotExist", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotRemoveFunctionThatDoesNotExist", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotRemoveImmutableFunction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotRemoveImmutableFunction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionThatDoesNotExists", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionThatDoesNotExists", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionsFromFacetWithZeroAddress", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceFunctionsFromFacetWithZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selectors"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::FixedBytes(4usize), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4[]"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotReplaceImmutableFunction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotReplaceImmutableFunction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_selector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FacetCannotBeZero"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FacetCannotBeZero"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("FunctionNotFound"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("FunctionNotFound"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_functionSelector"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 4usize, - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes4"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("GatewayCannotBeZero"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "GatewayCannotBeZero", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("IncorrectFacetCutAction"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "IncorrectFacetCutAction", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_action"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "enum IDiamond.FacetCutAction", - ), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InitializationFunctionReverted"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InitializationFunctionReverted", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned( - "_initializationContractAddress", - ), - 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("_calldata"), - kind: ::ethers::core::abi::ethabi::ParamType::Bytes, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bytes"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NoBytecodeAtAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NoBytecodeAtAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_contractAddress"), - 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("_message"), - kind: ::ethers::core::abi::ethabi::ParamType::String, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("string"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "NoSelectorsProvidedForFacetForCut", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "NoSelectorsProvidedForFacetForCut", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_facetAddress"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "RemoveFacetAddressMustBeZeroAddress", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "RemoveFacetAddressMustBeZeroAddress", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("_facetAddress"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("address"), - ), - }, - ], - }, - ], - ), - ]), - receive: true, - fallback: true, - } - } - ///The parsed JSON ABI of the contract. - pub static SUBNETREGISTRYDIAMOND_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - #[rustfmt::skip] - const __BYTECODE: &[u8] = b"`\x80`@R4b\0\x1BeWb\0\x1F\xAC\x808\x03\x90\x81b\0\0\x1E\x81b\0\x1CKV[\x91\x829`@\x81\x83\x81\x01\x03\x12b\0\x1BeW\x80Q`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeW\x81\x01\x91\x80\x82\x01`\x1F\x84\x01\x12\x15b\0\x1BeW\x82Q\x90b\0\0hb\0\0b\x83b\0\x1CqV[b\0\x1CKV[\x93` \x85\x84\x81R\x01` \x81\x94`\x05\x1B\x83\x01\x01\x91\x83\x86\x01\x83\x11b\0\x1BeW` \x81\x01\x91[\x83\x83\x10b\0\x1BiWPPPP` \x83\x01Q\x91`\x01`\x01`@\x1B\x03\x83\x11b\0\x1BeWa\x02\x80\x94\x85\x84\x86\x01\x84\x87\x01\x03\x12b\0\x1BeW`@Q\x95\x86\x01`\x01`\x01`@\x1B\x03\x81\x11\x87\x82\x10\x17b\0\x0B\xB3W`@Rb\0\0\xE7\x84\x86\x01b\0\x1C\x89V[\x86Rb\0\0\xF9` \x85\x87\x01\x01b\0\x1C\x89V[` \x87\x01Rb\0\x01\x0E`@\x85\x87\x01\x01b\0\x1C\x89V[`@\x87\x01Rb\0\x01#``\x85\x87\x01\x01b\0\x1C\x89V[``\x87\x01Rb\0\x018`\x80\x85\x87\x01\x01b\0\x1C\x89V[`\x80\x87\x01Rb\0\x01M`\xA0\x85\x87\x01\x01b\0\x1C\x89V[`\xA0\x87\x01Rb\0\x01b`\xC0\x85\x87\x01\x01b\0\x1C\x89V[`\xC0\x87\x01Rb\0\x01w`\xE0\x85\x87\x01\x01b\0\x1C\x89V[`\xE0\x87\x01Ra\x01\0b\0\x01\x8E\x81\x86\x88\x01\x01b\0\x1C\x89V[\x81\x88\x01Ra\x01 \x90b\0\x01\xA5\x82\x87\x89\x01\x01b\0\x1C\x89V[\x82\x89\x01Ra\x01@\x86\x88\x01\x81\x01Q\x90\x93\x90`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeWb\0\x01\xD7\x90\x87\x8A\x01\x90\x89\x8B\x01\x01b\0\x1C\x9EV[\x84\x8A\x01Ra\x01`\x87\x89\x01\x81\x01Q\x90\x95\x90`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeWb\0\x02\t\x90\x88\x8B\x01\x90\x8A\x8C\x01\x01b\0\x1C\x9EV[\x8A\x87\x01R\x88\x88\x01a\x01\x80\x01Q`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeWb\0\x027\x90\x88\x8B\x01\x90\x8A\x8C\x01\x01b\0\x1C\x9EV[a\x01\x80\x8B\x01Ra\x01\xA0\x88\x8A\x01\x81\x01Q\x90\x97\x90`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeWb\0\x02k\x90\x82\x8C\x01\x90\x8B\x8D\x01\x01b\0\x1C\x9EV[\x88\x8C\x01Ra\x01\xC0\x89\x8B\x01\x81\x01Q\x90\x99\x90`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeW\x8Bb\0\x02\x9D\x91\x83\x85\x83\x01\x92\x01\x01b\0\x1C\x9EV[\x8A\x8D\x01Ra\x01\xE0\x8B\x82\x01\x81\x01Q\x90\x9B\x90`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeW\x8Cb\0\x02\xD1\x8F\x92\x86\x85\x01\x90\x86\x86\x01\x01b\0\x1C\x9EV[\x91\x01R\x80\x82\x01a\x02\0\x01Q`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeWa\x02\0b\0\x03\x02\x8F\x92\x86\x85\x01\x90\x86\x86\x01\x01b\0\x1C\x9EV[\x91\x01R\x80\x82\x01a\x02 \x01Q`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeWa\x02 b\0\x033\x8F\x92\x86\x85\x01\x90\x86\x86\x01\x01b\0\x1C\x9EV[\x91\x01R\x80\x82\x01a\x02@\x01Q\x92`\x01`\x01`@\x1B\x03\x84\x11b\0\x1BeWa\x02@b\0\x03i\x8F\x92\x95a\x02`\x96\x85\x01\x90\x86\x86\x01\x01b\0\x1C\x9EV[\x91\x01R\x01\x01Q`\x02\x81\x10\x15b\0\x1BeWa\x02`\x8B\x01R\x89Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BSW` \x8A\x01Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BAW`@\x8A\x01Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BAW``\x8A\x01Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BAW`\x80\x8A\x01Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BAW`\xA0\x8A\x01Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BAW`\xC0\x8A\x01Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BAW`\xE0\x8A\x01Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BAW\x89\x83\x01Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BAW\x89\x84\x01Q`\x01`\x01`\xA0\x1B\x03\x16\x15b\0\x1BAW\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD5\x80T3`\x01`\x01`\xA0\x1B\x03\x19\x82\x16\x81\x17\x90\x92U`@\x80Q`\x01`\x01`\xA0\x1B\x03\x90\x92\x16\x82R` \x82\x01\x92\x90\x92R\x7F\x8B\xE0\x07\x9CS\x16Y\x14\x13D\xCD\x1F\xD0\xA4\xF2\x84\x19I\x7F\x97\"\xA3\xDA\xAF\xE3\xB4\x18okdW\xE0\x91\x90\xA1`@Q`\x01`\x01`@\x1B\x03` \x82\x01\x90\x81\x11\x90\x82\x11\x17b\0\x0B\xB3W` \x81\x01`@R_\x81R\x82Q_[\x81\x81\x10b\0\x14\xEDWPP`@Q\x92``\x84\x01\x90``\x85RQ\x80\x91R`\x80\x84\x01\x90`\x80\x81`\x05\x1B\x86\x01\x01\x93\x91_\x90[\x82\x82\x10b\0\x14\x93WPPPP\x91b\0\x05S\x81\x92\x7F\x8F\xAAp\x87\x86q\xCC\xD2\x12\xD2\x07q\xB7\x95\xC5\n\xF8\xFD?\xF6\xCF'\xF4\xBD\xE5~]M\xE0\xAE\xB6s\x94_` \x85\x01R\x83\x82\x03`@\x85\x01Rb\0\x1D\x84V[\x03\x90\xA1\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD4` \x90\x81R\x7F}\xFDH\xDD\x9D\xEF\0/\xA9\xB4\xA0[\xD6\xB7&\xA6\xC3\x13\xC3b\xD3\xF3\xE8A=zu \xF0\t\r%\x80T`\xFF\x19\x90\x81\x16`\x01\x90\x81\x17\x90\x92U\x7FM\x7FL\x8A/\xB5\xB3\\\xA3\xC2w\xC98\x88\xB4\x7F\x0F\")\xBD\xCC\xCFfPM\x1B\xA4\x8E\x88\xB8\x81d\x80T\x82\x16\x83\x17\x90UcH\xE2\xB0\x93`\xE0\x1B_\x90\x81R\x7FY\xBAM\xB4\xA2\x13\xE8\x16\x1D\xE5\x97\xB8\xC1\r\xB0\xE7\xE7\xBAZ\xCE\\&\x8E67\x9E$\x9Am-B\xC9\x80T\x90\x92\x16\x83\x17\x90\x91U\x8AQ\x81T`\x01`\x01`\xA0\x1B\x03\x19\x90\x81\x16`\x01`\x01`\xA0\x1B\x03\x92\x83\x16\x17\x90\x92U\x92\x8B\x01Q\x82T\x82\x16\x90\x84\x16\x17\x90\x91U`@\x8A\x01Q`\x02\x80T\x83\x16\x91\x84\x16\x91\x90\x91\x17\x90U``\x8A\x01Q`\x03\x80T\x83\x16\x91\x84\x16\x91\x90\x91\x17\x90U`\x80\x8A\x01Q`\x04\x80T\x83\x16\x91\x84\x16\x91\x90\x91\x17\x90U`\xA0\x8A\x01Q`\x05\x80T\x83\x16\x91\x84\x16\x91\x90\x91\x17\x90U`\xC0\x8A\x01Q`\x06\x80T\x83\x16\x91\x84\x16\x91\x90\x91\x17\x90U`\xE0\x8A\x01Q`\x07\x80T\x83\x16\x91\x84\x16\x91\x90\x91\x17\x90U\x91\x89\x01Q`\x08\x80T\x84\x16\x91\x83\x16\x91\x90\x91\x17\x90U\x91\x88\x01Q`\t\x80T\x90\x92\x16\x92\x16\x91\x90\x91\x17\x90U\x85\x01Q\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11b\0\x0B\xB3Wh\x01\0\0\0\0\0\0\0\0\x82\x11b\0\x0B\xB3W`\nT\x82`\nU\x80\x83\x10b\0\x14\rW[P` \x01\x90`\n_R` _ \x90_[\x81`\x03\x1C\x81\x10b\0\x13\xBEWP`\x07\x19\x81\x16\x80\x82\x03b\0\x13fW[PPPP\x84\x01Q\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11b\0\x0B\xB3Wh\x01\0\0\0\0\0\0\0\0\x82\x11b\0\x0B\xB3W`\x0BT\x82`\x0BU\x80\x83\x10b\0\x12\xE0W[P` \x01\x90`\x0B_R` _ \x90_[\x81`\x03\x1C\x81\x10b\0\x12\x91WP`\x07\x19\x81\x16\x80\x82\x03b\0\x129W[PPPPa\x01\x80\x84\x01Q\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11b\0\x0B\xB3Wh\x01\0\0\0\0\0\0\0\0\x82\x11b\0\x0B\xB3W`\x0CT\x82`\x0CU\x80\x83\x10b\0\x11\xB3W[P` \x01\x90`\x0C_R` _ \x90_[\x81`\x03\x1C\x81\x10b\0\x11dWP`\x07\x19\x81\x16\x80\x82\x03b\0\x11\x0CW[PPPP\x83\x01Q\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11b\0\x0B\xB3Wh\x01\0\0\0\0\0\0\0\0\x82\x11b\0\x0B\xB3W`\rT\x82`\rU\x80\x83\x10b\0\x10\x86W[P` \x01\x90`\r_R` _ \x90_[\x81`\x03\x1C\x81\x10b\0\x107WP`\x07\x19\x81\x16\x80\x82\x03b\0\x0F\xDFW[PPPP\x82\x01Q\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11b\0\x0B\xB3Wh\x01\0\0\0\0\0\0\0\0\x82\x11b\0\x0B\xB3W`\x0ET\x82`\x0EU\x80\x83\x10b\0\x0F\x80W[P` \x01\x90`\x0E_R` _ \x90_[\x81`\x03\x1C\x81\x10b\0\x0F1WP`\x07\x19\x81\x16\x80\x82\x03b\0\x0E\xD9W[PPPP\x81\x01Q\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11b\0\x0B\xB3Wh\x01\0\0\0\0\0\0\0\0\x82\x11b\0\x0B\xB3W`\x0FT\x82`\x0FU\x80\x83\x10b\0\x0EzW[P` \x01\x90`\x0F_R` _ \x90_[\x81`\x03\x1C\x81\x10b\0\x0E+WP`\x07\x19\x81\x16\x80\x82\x03b\0\r\xD3W[PPPPa\x02\0\x81\x01Q\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11b\0\x0B\xB3Wh\x01\0\0\0\0\0\0\0\0\x82\x11b\0\x0B\xB3W`\x10T\x82`\x10U\x80\x83\x10b\0\rtW[P` \x01\x90`\x10_R` _ \x90_[\x81`\x03\x1C\x81\x10b\0\r%WP`\x07\x19\x81\x16\x80\x82\x03b\0\x0C\xCDW[PPPPa\x02 \x81\x01Q\x80Q\x90`\x01`\x01`@\x1B\x03\x82\x11b\0\x0B\xB3Wh\x01\0\0\0\0\0\0\0\0\x82\x11b\0\x0B\xB3W`\x11T\x82`\x11U\x80\x83\x10b\0\x0CnW[P` \x01\x90`\x11_R` _ \x90_[\x81`\x03\x1C\x81\x10b\0\x0C\x1FWP`\x07\x19\x81\x16\x80\x82\x03b\0\x0B\xC7W[PPPPa\x02@\x81\x01Q\x80Q\x91\x90`\x01`\x01`@\x1B\x03\x83\x11b\0\x0B\xB3Wh\x01\0\0\0\0\0\0\0\0\x83\x11b\0\x0B\xB3W`\x12T\x83`\x12U\x80\x84\x10b\0\x0BTW[P` \x01\x91`\x12_R` _ \x81`\x03\x1C\x90_[\x82\x81\x10b\0\x0B\x05WP`\x07\x19\x83\x16\x90\x92\x03\x91\x82b\0\n\xAFW[PPPa\x02`\x91P\x01Q`\x02\x81\x10\x15b\0\n\x9BW`\xFF\x80\x19`\x15T\x16\x91\x16\x17`\x15U`@Qa\x016\x90\x81b\0\x1E6\x829\xF3[cNH{q`\xE0\x1B_R`!`\x04R`$_\xFD[_\x94\x85\x93[\x80\x87\x10b\0\n\xCEWPPa\x02`\x94P\x01U_\x80\x80b\0\niV[\x90\x93` b\0\n\xF9`\x01\x92\x87Q`\xE0\x1C\x90\x8A`\x02\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x95\x01\x96\x01\x95\x90b\0\n\xB4V[_\x80[`\x08\x81\x10b\0\x0B\x1FWP\x82\x82\x01U`\x01\x01b\0\nPV[\x96\x90` b\0\x0BJ`\x01\x92\x84Q`\xE0\x1C\x90\x8B`\x02\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x92\x01\x97\x01b\0\x0B\x08V[`\x12_R` _ `\x07\x80\x86\x01`\x03\x1C\x82\x01\x92\x01`\x03\x1C\x01\x90`\x1C\x85`\x02\x1B\x16\x80b\0\x0B\x98W[P[\x81\x81\x10b\0\x0B\x8CWPb\0\nV[_\x81U`\x01\x01b\0\x10\xC5V[_\x19\x90\x81`\x07\x87\x01`\x03\x1C\x84\x01\x01\x91\x82T\x91` \x03`\x03\x1B\x1C\x16\x90U_b\0\x10\xBAV[\x92_\x93_[\x81\x84\x03\x81\x10b\0\x11-WPPP`\x03\x1C\x01U_\x80\x80\x80b\0\x08\x04V[\x90\x91\x94` b\0\x11Y`\x01\x92\x88Q`\xE0\x1C\x90\x85`\x02\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x96\x01\x92\x91\x01b\0\x11\x11V[_\x80[`\x08\x81\x10b\0\x11~WP\x83\x82\x01U`\x01\x01b\0\x07\xEAV[\x94\x90` b\0\x11\xA9`\x01\x92\x84Q`\xE0\x1C\x90\x89`\x02\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x92\x01\x95\x01b\0\x11gV[`\x0C_R\x7F\xDFif\xC9q\x05\x1C=T\xECY\x16&\x06S\x14\x93\xA5\x14\x04\xA0\x02\x84/V\0\x9D~\\\xF4\xA8\xC7`\x02\x84\x90\x1B`\x1C\x16\x80b\0\x12\x16W[P`\x07\x84\x01`\x03\x1C\x81\x01[`\x07\x83\x01`\x03\x1C\x82\x01\x81\x10b\0\x12\nWPPb\0\x07\xDAV[_\x81U`\x01\x01b\0\x11\xF2V[_\x19\x90\x81`\x07\x87\x01`\x03\x1C\x84\x01\x01\x91\x82T\x91` \x03`\x03\x1B\x1C\x16\x90U_b\0\x11\xE7V[\x92_\x93_[\x81\x84\x03\x81\x10b\0\x12ZWPPP`\x03\x1C\x01U_\x80\x80\x80b\0\x07\x9DV[\x90\x91\x94` b\0\x12\x86`\x01\x92\x88Q`\xE0\x1C\x90\x85`\x02\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x96\x01\x92\x91\x01b\0\x12>V[_\x80[`\x08\x81\x10b\0\x12\xABWP\x83\x82\x01U`\x01\x01b\0\x07\x83V[\x94\x90` b\0\x12\xD6`\x01\x92\x84Q`\xE0\x1C\x90\x89`\x02\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x92\x01\x95\x01b\0\x12\x94V[`\x0B_R\x7F\x01u\xB7\xA68Bw\x03\xF0\xDB\xE7\xBB\x9B\xBF\x98z%Qq{4\xE7\x9F3\xB5\xB1\0\x8D\x1F\xA0\x1D\xB9`\x02\x84\x90\x1B`\x1C\x16\x80b\0\x13CW[P`\x07\x84\x01`\x03\x1C\x81\x01[`\x07\x83\x01`\x03\x1C\x82\x01\x81\x10b\0\x137WPPb\0\x07sV[_\x81U`\x01\x01b\0\x13\x1FV[_\x19\x90\x81`\x07\x87\x01`\x03\x1C\x84\x01\x01\x91\x82T\x91` \x03`\x03\x1B\x1C\x16\x90U_b\0\x13\x14V[\x92_\x93_[\x81\x84\x03\x81\x10b\0\x13\x87WPPP`\x03\x1C\x01U_\x80\x80\x80b\0\x079V[\x90\x91\x94` b\0\x13\xB3`\x01\x92\x88Q`\xE0\x1C\x90\x85`\x02\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x96\x01\x92\x91\x01b\0\x13kV[_\x80[`\x08\x81\x10b\0\x13\xD8WP\x83\x82\x01U`\x01\x01b\0\x07\x1FV[\x94\x90` b\0\x14\x03`\x01\x92\x84Q`\xE0\x1C\x90\x89`\x02\x1B`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x92\x01\x95\x01b\0\x13\xC1V[`\n_R\x7F\xC6Z{\xB8\xD65\x1C\x1C\xF7\x0C\x95\xA3\x16\xCCj\x92\x83\x9C\x98f\x82\xD9\x8B\xC3_\x95\x8FH\x83\xF9\xD2\xA8`\x02\x84\x90\x1B`\x1C\x16\x80b\0\x14pW[P`\x07\x84\x01`\x03\x1C\x81\x01[`\x07\x83\x01`\x03\x1C\x82\x01\x81\x10b\0\x14dWPPb\0\x07\x0FV[_\x81U`\x01\x01b\0\x14LV[_\x19\x90\x81`\x07\x87\x01`\x03\x1C\x84\x01\x01\x91\x82T\x91` \x03`\x03\x1B\x1C\x16\x90U_b\0\x14AV[\x90\x91\x92\x94` \x80b\0\x14\xDE`\x01\x93`\x7F\x19\x8B\x82\x03\x01\x86R```@\x8BQ\x87\x80`\xA0\x1B\x03\x81Q\x16\x84Rb\0\x14\xCD\x86\x82\x01Q\x87\x86\x01\x90b\0\x1D7V[\x01Q\x91\x81`@\x82\x01R\x01\x90b\0\x1DEV[\x97\x01\x92\x01\x92\x01\x90\x92\x91b\0\x05\nV[`@b\0\x14\xFB\x82\x87b\0\x1D\x0EV[Q\x01Q`\x01`\x01`\xA0\x1B\x03b\0\x15\x12\x83\x88b\0\x1D\x0EV[QQ\x16\x90\x80Q\x15b\0\x1B(W` b\0\x15,\x84\x89b\0\x1D\x0EV[Q\x01Q`\x03\x81\x10\x15b\0\n\x9BW\x80b\0\x17\\WP\x81\x15b\0\x171Wa\xFF\xFF_\x80Q` b\0\x1Fl\x839\x81Q\x91RT\x16b\0\x15\xA4b\0\x15ib\0\x1C+V[`!\x81R\x7FdiamondCut: Add facet has no cod` \x82\x01R`e`\xF8\x1B`@\x82\x01R\x84b\0\x1D\xF3V[\x81Q\x91_\x91[\x83\x83\x10b\0\x15\xC2WPPPPP`\x01\x90[\x01b\0\x04\xDCV[b\0\x15\xCE\x83\x83b\0\x1D\x0EV[Q`\x01`\x01`\xE0\x1B\x03\x19\x81\x16_\x90\x81R_\x80Q` b\0\x1F\x8C\x839\x81Q\x91R` R`@\x90 T\x90\x91\x90`\x01`\x01`\xA0\x1B\x03\x16b\0\x17\x0FWb\0\x16~b\0\x16\x14b\0\x1C\x0BV[\x87\x81Ra\xFF\xFF\x92\x90\x92\x16` \x80\x84\x01\x82\x81R`\x01`\x01`\xE0\x1B\x03\x19\x86\x16_\x90\x81R_\x80Q` b\0\x1F\x8C\x839\x81Q\x91R\x90\x92R`@\x90\x91 \x93Q\x84T\x91Q`\x01`\x01`\xB0\x1B\x03\x19\x90\x92\x16`\x01`\x01`\xA0\x1B\x03\x91\x90\x91\x16\x17`\xA0\x91\x90\x91\x1Ba\xFF\xFF`\xA0\x1B\x16\x17\x90\x92UV[_\x80Q` b\0\x1Fl\x839\x81Q\x91RT\x91h\x01\0\0\0\0\0\0\0\0\x83\x10\x15b\0\x0B\xB3Wb\0\x16\xE4b\0\x16\xC5`\x01\x94\x85\x81\x01_\x80Q` b\0\x1Fl\x839\x81Q\x91RUb\0\x1D\xC4V[\x90\x92`\xE0\x1C\x90\x83T\x90`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x90Ua\xFF\xFF\x81\x14b\0\x16\xFBW\x81\x01\x92\x01\x91b\0\x15\xAAV[cNH{q`\xE0\x1B_R`\x11`\x04R`$_\xFD[`@Qc\xEB\xBF]\x07`\xE0\x1B\x81R`\x01`\x01`\xE0\x1B\x03\x19\x83\x16`\x04\x82\x01R`$\x90\xFD[`@Qc\x02\xB8\xDA\x07`\xE2\x1B\x81R` `\x04\x82\x01R\x90\x81\x90b\0\x17X\x90`$\x83\x01\x90b\0\x1DEV[\x03\x90\xFD[`\x01\x81\x03b\0\x18\xCCWP\x81\x15b\0\x18\xA5Wb\0\x17\xBDb\0\x17{b\0\x1C+V[`(\x81R\x7FLibDiamondCut: Replace facet has` \x82\x01Rg no code`\xC0\x1B`@\x82\x01R\x83b\0\x1D\xF3V[\x80Q\x90_[\x82\x81\x10b\0\x17\xD7WPPPP`\x01\x90b\0\x15\xBBV[`\x01`\x01`\xE0\x1B\x03\x19b\0\x17\xEC\x82\x84b\0\x1D\x0EV[Q\x16_\x81\x81R_\x80Q` b\0\x1F\x8C\x839\x81Q\x91R` R`@\x90 T`\x01`\x01`\xA0\x1B\x03\x160\x81\x14b\0\x18\x8CW\x85\x81\x14b\0\x18sW\x15b\0\x18[W_\x90\x81R_\x80Q` b\0\x1F\x8C\x839\x81Q\x91R` R`@\x90 \x80T`\x01`\x01`\xA0\x1B\x03\x19\x16\x85\x17\x90U`\x01\x01b\0\x17\xC2V[`$\x90`@Q\x90cty\xF99`\xE0\x1B\x82R`\x04\x82\x01R\xFD[`@Qc\x1A\xC6\xCE\x8D`\xE1\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc)\x01\x80m`\xE1\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc\xCD\x98\xA9o`\xE0\x1B\x81R` `\x04\x82\x01R\x90\x81\x90b\0\x17X\x90`$\x83\x01\x90b\0\x1DEV[`\x02\x81\x03b\0\x1B\x06WP_\x80Q` b\0\x1Fl\x839\x81Q\x91RT\x91\x80b\0\x1A\xEEWP\x80Q\x90_[\x82\x81\x10b\0\x19\x08WPPPP`\x01\x90b\0\x15\xBBV[`\x01`\x01`\xE0\x1B\x03\x19b\0\x19\x1D\x82\x84b\0\x1D\x0EV[Q\x16\x90\x81_R_\x80Q` b\0\x1F\x8C\x839\x81Q\x91R` R`@_ \x94b\0\x19Db\0\x1C\x0BV[\x95T`\x01`\x01`\xA0\x1B\x03\x81\x16\x80\x88R`\xA0\x91\x90\x91\x1Ca\xFF\xFF\x16` \x88\x01R\x15b\0\x1A\xD5W\x85Q`\x01`\x01`\xA0\x1B\x03\x160\x14b\0\x1A\xBCW\x80\x15b\0\x16\xFBW_\x19\x01\x94\x85a\xFF\xFF` \x83\x01Q\x16\x03b\0\x1A\x15W[P_\x80Q` b\0\x1Fl\x839\x81Q\x91RT\x91\x82\x15b\0\x1A\x01W`\x01\x92_\x19\x01b\0\x19\xC0\x81b\0\x1D\xC4V[c\xFF\xFF\xFF\xFF\x82T\x91`\x03\x1B\x1B\x19\x16\x90U_\x80Q` b\0\x1Fl\x839\x81Q\x91RU_R_\x80Q` b\0\x1F\x8C\x839\x81Q\x91R` R_`@\x81 U\x01b\0\x18\xF3V[cNH{q`\xE0\x1B_R`1`\x04R`$_\xFD[b\0\x1A\xB5\x90a\xFF\xFF` b\0\x1A*\x89b\0\x1D\xC4V[\x90T\x90`\x03\x1B\x1C\x92b\0\x1Ajb\0\x1AF\x84\x84\x84\x01Q\x16b\0\x1D\xC4V[c\xFF\xFF\xFF\xFF\x87\x93\x92\x93\x16\x90\x83T\x90`\x03\x1B\x91c\xFF\xFF\xFF\xFF\x80\x91\x16\x83\x1B\x92\x1B\x19\x16\x17\x90V[\x90U\x01Q`\xE0\x92\x90\x92\x1B`\x01`\x01`\xE0\x1B\x03\x19\x16_\x90\x81R_\x80Q` b\0\x1F\x8C\x839\x81Q\x91R` R`@\x90 \x80Ta\xFF\xFF`\xA0\x1B\x19\x16\x91\x90\x92\x16`\xA0\x1Ba\xFF\xFF`\xA0\x1B\x16\x17\x90UV[_b\0\x19\x96V[`@Qc\r\xF5\xFDa`\xE3\x1B\x81R`\x04\x81\x01\x84\x90R`$\x90\xFD[`@Qcz\x08\xA2-`\xE0\x1B\x81R`\x04\x81\x01\x84\x90R`$\x90\xFD[`$\x90`@Q\x90c\xD0\x91\xBC\x81`\xE0\x1B\x82R`\x04\x82\x01R\xFD[`@Qc?\xF4\xD2\x0F`\xE1\x1B\x81R`$\x91b\0\x1B&\x90`\x04\x83\x01\x90b\0\x1D7V[\xFD[`@Qc\xE7g\xF9\x1F`\xE0\x1B\x81R`\x04\x81\x01\x83\x90R`$\x90\xFD[`@Qc\x07\xA0CQ`\xE5\x1B\x81R`\x04\x90\xFD[`@Qc\x8B=\xDC3`\xE0\x1B\x81R`\x04\x90\xFD[_\x80\xFD[\x82Q`\x01`\x01`@\x1B\x03\x81\x11b\0\x1BeW\x82\x01``\x91\x82`\x1F\x19\x83\x89\x8C\x01\x03\x01\x12b\0\x1BeW`@Q\x92\x80\x84\x01`\x01`\x01`@\x1B\x03\x81\x11\x85\x82\x10\x17b\0\x0B\xB3W`@Rb\0\x1B\xBA` \x84\x01b\0\x1C\x89V[\x84R`@\x83\x01Q`\x03\x81\x10\x15b\0\x1BeW` \x85\x01R\x82\x01Q\x92`\x01`\x01`@\x1B\x03\x84\x11b\0\x1BeWb\0\x1B\xFA` \x94\x93\x85\x80\x95\x8B\x8E\x01\x92\x01\x01b\0\x1C\x9EV[`@\x82\x01R\x81R\x01\x92\x01\x91b\0\0\x8BV[`@\x80Q\x91\x90\x82\x01`\x01`\x01`@\x1B\x03\x81\x11\x83\x82\x10\x17b\0\x0B\xB3W`@RV[`@Q\x90``\x82\x01`\x01`\x01`@\x1B\x03\x81\x11\x83\x82\x10\x17b\0\x0B\xB3W`@RV[`@Q\x91\x90`\x1F\x01`\x1F\x19\x16\x82\x01`\x01`\x01`@\x1B\x03\x81\x11\x83\x82\x10\x17b\0\x0B\xB3W`@RV[`\x01`\x01`@\x1B\x03\x81\x11b\0\x0B\xB3W`\x05\x1B` \x01\x90V[Q\x90`\x01`\x01`\xA0\x1B\x03\x82\x16\x82\x03b\0\x1BeWV[\x90\x80`\x1F\x83\x01\x12\x15b\0\x1BeW\x81Q\x90` \x91b\0\x1C\xC0b\0\0b\x82b\0\x1CqV[\x93` \x80\x86\x84\x81R\x01\x92`\x05\x1B\x82\x01\x01\x92\x83\x11b\0\x1BeW` \x01\x90[\x82\x82\x10b\0\x1C\xECWPPPP\x90V[\x81Q`\x01`\x01`\xE0\x1B\x03\x19\x81\x16\x81\x03b\0\x1BeW\x81R\x90\x83\x01\x90\x83\x01b\0\x1C\xDDV[\x80Q\x82\x10\x15b\0\x1D#W` \x91`\x05\x1B\x01\x01\x90V[cNH{q`\xE0\x1B_R`2`\x04R`$_\xFD[\x90`\x03\x82\x10\x15b\0\n\x9BWRV[\x90\x81Q\x80\x82R` \x80\x80\x93\x01\x93\x01\x91_[\x82\x81\x10b\0\x1DeWPPPP\x90V[\x83Q`\x01`\x01`\xE0\x1B\x03\x19\x16\x85R\x93\x81\x01\x93\x92\x81\x01\x92`\x01\x01b\0\x1DVV[\x91\x90\x82Q\x92\x83\x82R_[\x84\x81\x10b\0\x1D\xAFWPP\x82_` \x80\x94\x95\x84\x01\x01R`\x1F\x80\x19\x91\x01\x16\x01\x01\x90V[` \x81\x83\x01\x81\x01Q\x84\x83\x01\x82\x01R\x01b\0\x1D\x8EV[\x90_\x80Q` b\0\x1Fl\x839\x81Q\x91R\x80T\x83\x10\x15b\0\x1D#W_R`\x1C` _ \x83`\x03\x1C\x01\x92`\x02\x1B\x16\x90V[\x80;\x15b\0\x1D\xFFWPPV[`@\x80Qc\x91\x984\xB9`\xE0\x1B\x81R`\x01`\x01`\xA0\x1B\x03\x90\x92\x16`\x04\x83\x01R`$\x82\x01R\x90\x81\x90b\0\x17X\x90`D\x83\x01\x90b\0\x1D\x84V\xFE`\x80`@R6\x15a\0\x89W_\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x90\x91 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\0qW_\x80\x836\x82\x807\x816\x91Z\xF4=_\x80>\x15a\0mW=_\xF3[=_\xFD[`$\x90`@Q\x90c\n\x82\xDDs`\xE3\x1B\x82R`\x04\x82\x01R\xFD[_\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x90\x91 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\0\xECW_\x80\x836\x82\x807\x816\x91Z\xF4=_\x80>\x15a\0mW=_\xF3[c\n\x82\xDDs`\xE3\x1B`\x80R`\x84R`$`\x80\xFD\xFE\xA2dipfsX\"\x12 G:nm\xF7\xEF\xE8\xE7\xA2\xDB\x06\xD8\x87t\x03\xC6\\\x07F\x91\xAB\x8Aa\xBB\xA0\x100}2'\xDECdsolcC\0\x08\x17\x003\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD3\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2"; - /// The bytecode of the contract. - pub static SUBNETREGISTRYDIAMOND_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __BYTECODE, - ); - #[rustfmt::skip] - const __DEPLOYED_BYTECODE: &[u8] = b"`\x80`@R6\x15a\0\x89W_\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x90\x91 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\0qW_\x80\x836\x82\x807\x816\x91Z\xF4=_\x80>\x15a\0mW=_\xF3[=_\xFD[`$\x90`@Q\x90c\n\x82\xDDs`\xE3\x1B\x82R`\x04\x82\x01R\xFD[_\x805`\x01`\x01`\xE0\x1B\x03\x19\x16\x80\x82R\x7F\x80n\x0C\xBB\x9F\xCE)k\xBC3jH\xF4+\xF1\xDB\xC6\x97\"\xD1\x8D\x90\xD6\xFEp[u\x82\xC2\xBBK\xD2` R`@\x90\x91 T`\x01`\x01`\xA0\x1B\x03\x16\x90\x81\x15a\0\xECW_\x80\x836\x82\x807\x816\x91Z\xF4=_\x80>\x15a\0mW=_\xF3[c\n\x82\xDDs`\xE3\x1B`\x80R`\x84R`$`\x80\xFD\xFE\xA2dipfsX\"\x12 G:nm\xF7\xEF\xE8\xE7\xA2\xDB\x06\xD8\x87t\x03\xC6\\\x07F\x91\xAB\x8Aa\xBB\xA0\x100}2'\xDECdsolcC\0\x08\x17\x003"; - /// The deployed bytecode of the contract. - pub static SUBNETREGISTRYDIAMOND_DEPLOYED_BYTECODE: ::ethers::core::types::Bytes = ::ethers::core::types::Bytes::from_static( - __DEPLOYED_BYTECODE, - ); - pub struct SubnetRegistryDiamond(::ethers::contract::Contract); - impl ::core::clone::Clone for SubnetRegistryDiamond { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for SubnetRegistryDiamond { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for SubnetRegistryDiamond { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for SubnetRegistryDiamond { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(SubnetRegistryDiamond)) - .field(&self.address()) - .finish() - } - } - impl SubnetRegistryDiamond { - /// 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(), - SUBNETREGISTRYDIAMOND_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( - SUBNETREGISTRYDIAMOND_ABI.clone(), - SUBNETREGISTRYDIAMOND_BYTECODE.clone().into(), - client, - ); - let deployer = factory.deploy(constructor_args)?; - let deployer = ::ethers::contract::ContractDeployer::new(deployer); - Ok(deployer) - } - ///Gets the contract's `DiamondCut` event - pub fn diamond_cut_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - DiamondCutFilter, - > { - 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() - } - /// Returns an `Event` builder for all the events of this contract. - pub fn events( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - SubnetRegistryDiamondEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for SubnetRegistryDiamond { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `CannotAddFunctionToDiamondThatAlreadyExists` with signature `CannotAddFunctionToDiamondThatAlreadyExists(bytes4)` and selector `0xebbf5d07` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotAddFunctionToDiamondThatAlreadyExists", - abi = "CannotAddFunctionToDiamondThatAlreadyExists(bytes4)" - )] - pub struct CannotAddFunctionToDiamondThatAlreadyExists { - pub selector: [u8; 4], - } - ///Custom Error type `CannotAddSelectorsToZeroAddress` with signature `CannotAddSelectorsToZeroAddress(bytes4[])` and selector `0x0ae3681c` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotAddSelectorsToZeroAddress", - abi = "CannotAddSelectorsToZeroAddress(bytes4[])" - )] - pub struct CannotAddSelectorsToZeroAddress { - pub selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Custom Error type `CannotRemoveFunctionThatDoesNotExist` with signature `CannotRemoveFunctionThatDoesNotExist(bytes4)` and selector `0x7a08a22d` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotRemoveFunctionThatDoesNotExist", - abi = "CannotRemoveFunctionThatDoesNotExist(bytes4)" - )] - pub struct CannotRemoveFunctionThatDoesNotExist { - pub selector: [u8; 4], - } - ///Custom Error type `CannotRemoveImmutableFunction` with signature `CannotRemoveImmutableFunction(bytes4)` and selector `0x6fafeb08` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotRemoveImmutableFunction", - abi = "CannotRemoveImmutableFunction(bytes4)" - )] - pub struct CannotRemoveImmutableFunction { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionThatDoesNotExists` with signature `CannotReplaceFunctionThatDoesNotExists(bytes4)` and selector `0x7479f939` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionThatDoesNotExists", - abi = "CannotReplaceFunctionThatDoesNotExists(bytes4)" - )] - pub struct CannotReplaceFunctionThatDoesNotExists { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet` with signature `CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)` and selector `0x358d9d1a` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet", - abi = "CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(bytes4)" - )] - pub struct CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet { - pub selector: [u8; 4], - } - ///Custom Error type `CannotReplaceFunctionsFromFacetWithZeroAddress` with signature `CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])` and selector `0xcd98a96f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceFunctionsFromFacetWithZeroAddress", - abi = "CannotReplaceFunctionsFromFacetWithZeroAddress(bytes4[])" - )] - pub struct CannotReplaceFunctionsFromFacetWithZeroAddress { - pub selectors: ::std::vec::Vec<[u8; 4]>, - } - ///Custom Error type `CannotReplaceImmutableFunction` with signature `CannotReplaceImmutableFunction(bytes4)` and selector `0x520300da` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotReplaceImmutableFunction", - abi = "CannotReplaceImmutableFunction(bytes4)" - )] - pub struct CannotReplaceImmutableFunction { - pub selector: [u8; 4], - } - ///Custom Error type `FacetCannotBeZero` with signature `FacetCannotBeZero()` and selector `0xf4086a20` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FacetCannotBeZero", abi = "FacetCannotBeZero()")] - pub struct FacetCannotBeZero; - ///Custom Error type `FunctionNotFound` with signature `FunctionNotFound(bytes4)` and selector `0x5416eb98` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "FunctionNotFound", abi = "FunctionNotFound(bytes4)")] - pub struct FunctionNotFound { - pub function_selector: [u8; 4], - } - ///Custom Error type `GatewayCannotBeZero` with signature `GatewayCannotBeZero()` and selector `0x8b3ddc33` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "GatewayCannotBeZero", abi = "GatewayCannotBeZero()")] - pub struct GatewayCannotBeZero; - ///Custom Error type `IncorrectFacetCutAction` with signature `IncorrectFacetCutAction(uint8)` and selector `0x7fe9a41e` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "IncorrectFacetCutAction", abi = "IncorrectFacetCutAction(uint8)")] - pub struct IncorrectFacetCutAction { - pub action: u8, - } - ///Custom Error type `InitializationFunctionReverted` with signature `InitializationFunctionReverted(address,bytes)` and selector `0x192105d7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "InitializationFunctionReverted", - abi = "InitializationFunctionReverted(address,bytes)" - )] - pub struct InitializationFunctionReverted { - pub initialization_contract_address: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - ///Custom Error type `NoBytecodeAtAddress` with signature `NoBytecodeAtAddress(address,string)` and selector `0x919834b9` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "NoBytecodeAtAddress", - abi = "NoBytecodeAtAddress(address,string)" - )] - pub struct NoBytecodeAtAddress { - pub contract_address: ::ethers::core::types::Address, - pub message: ::std::string::String, - } - ///Custom Error type `NoSelectorsProvidedForFacetForCut` with signature `NoSelectorsProvidedForFacetForCut(address)` and selector `0xe767f91f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "NoSelectorsProvidedForFacetForCut", - abi = "NoSelectorsProvidedForFacetForCut(address)" - )] - pub struct NoSelectorsProvidedForFacetForCut { - pub facet_address: ::ethers::core::types::Address, - } - ///Custom Error type `RemoveFacetAddressMustBeZeroAddress` with signature `RemoveFacetAddressMustBeZeroAddress(address)` and selector `0xd091bc81` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "RemoveFacetAddressMustBeZeroAddress", - abi = "RemoveFacetAddressMustBeZeroAddress(address)" - )] - pub struct RemoveFacetAddressMustBeZeroAddress { - pub facet_address: ::ethers::core::types::Address, - } - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetRegistryDiamondErrors { - CannotAddFunctionToDiamondThatAlreadyExists( - CannotAddFunctionToDiamondThatAlreadyExists, - ), - CannotAddSelectorsToZeroAddress(CannotAddSelectorsToZeroAddress), - CannotRemoveFunctionThatDoesNotExist(CannotRemoveFunctionThatDoesNotExist), - CannotRemoveImmutableFunction(CannotRemoveImmutableFunction), - CannotReplaceFunctionThatDoesNotExists(CannotReplaceFunctionThatDoesNotExists), - CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet, - ), - CannotReplaceFunctionsFromFacetWithZeroAddress( - CannotReplaceFunctionsFromFacetWithZeroAddress, - ), - CannotReplaceImmutableFunction(CannotReplaceImmutableFunction), - FacetCannotBeZero(FacetCannotBeZero), - FunctionNotFound(FunctionNotFound), - GatewayCannotBeZero(GatewayCannotBeZero), - IncorrectFacetCutAction(IncorrectFacetCutAction), - InitializationFunctionReverted(InitializationFunctionReverted), - NoBytecodeAtAddress(NoBytecodeAtAddress), - NoSelectorsProvidedForFacetForCut(NoSelectorsProvidedForFacetForCut), - RemoveFacetAddressMustBeZeroAddress(RemoveFacetAddressMustBeZeroAddress), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for SubnetRegistryDiamondErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotAddFunctionToDiamondThatAlreadyExists(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotAddSelectorsToZeroAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotRemoveFunctionThatDoesNotExist(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotRemoveImmutableFunction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceFunctionThatDoesNotExists(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok( - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - decoded, - ), - ); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceFunctionsFromFacetWithZeroAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotReplaceImmutableFunction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FacetCannotBeZero(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::FunctionNotFound(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GatewayCannotBeZero(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::IncorrectFacetCutAction(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InitializationFunctionReverted(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NoBytecodeAtAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NoSelectorsProvidedForFacetForCut(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::RemoveFacetAddressMustBeZeroAddress(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for SubnetRegistryDiamondErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotAddSelectorsToZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotRemoveFunctionThatDoesNotExist(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotRemoveImmutableFunction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceFunctionThatDoesNotExists(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - element, - ) => ::ethers::core::abi::AbiEncode::encode(element), - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotReplaceImmutableFunction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FacetCannotBeZero(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::FunctionNotFound(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GatewayCannotBeZero(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::IncorrectFacetCutAction(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InitializationFunctionReverted(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NoBytecodeAtAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NoSelectorsProvidedForFacetForCut(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RemoveFacetAddressMustBeZeroAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for SubnetRegistryDiamondErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for SubnetRegistryDiamondErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotAddSelectorsToZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotRemoveFunctionThatDoesNotExist(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotRemoveImmutableFunction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceFunctionThatDoesNotExists(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet( - element, - ) => ::core::fmt::Display::fmt(element, f), - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotReplaceImmutableFunction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::FacetCannotBeZero(element) => ::core::fmt::Display::fmt(element, f), - Self::FunctionNotFound(element) => ::core::fmt::Display::fmt(element, f), - Self::GatewayCannotBeZero(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::IncorrectFacetCutAction(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InitializationFunctionReverted(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NoBytecodeAtAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NoSelectorsProvidedForFacetForCut(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RemoveFacetAddressMustBeZeroAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for SubnetRegistryDiamondErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: CannotAddFunctionToDiamondThatAlreadyExists) -> Self { - Self::CannotAddFunctionToDiamondThatAlreadyExists(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: CannotAddSelectorsToZeroAddress) -> Self { - Self::CannotAddSelectorsToZeroAddress(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: CannotRemoveFunctionThatDoesNotExist) -> Self { - Self::CannotRemoveFunctionThatDoesNotExist(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: CannotRemoveImmutableFunction) -> Self { - Self::CannotRemoveImmutableFunction(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: CannotReplaceFunctionThatDoesNotExists) -> Self { - Self::CannotReplaceFunctionThatDoesNotExists(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from( - value: CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet, - ) -> Self { - Self::CannotReplaceFunctionWithTheSameFunctionFromTheSameFacet(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: CannotReplaceFunctionsFromFacetWithZeroAddress) -> Self { - Self::CannotReplaceFunctionsFromFacetWithZeroAddress(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: CannotReplaceImmutableFunction) -> Self { - Self::CannotReplaceImmutableFunction(value) - } - } - impl ::core::convert::From for SubnetRegistryDiamondErrors { - fn from(value: FacetCannotBeZero) -> Self { - Self::FacetCannotBeZero(value) - } - } - impl ::core::convert::From for SubnetRegistryDiamondErrors { - fn from(value: FunctionNotFound) -> Self { - Self::FunctionNotFound(value) - } - } - impl ::core::convert::From for SubnetRegistryDiamondErrors { - fn from(value: GatewayCannotBeZero) -> Self { - Self::GatewayCannotBeZero(value) - } - } - impl ::core::convert::From for SubnetRegistryDiamondErrors { - fn from(value: IncorrectFacetCutAction) -> Self { - Self::IncorrectFacetCutAction(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: InitializationFunctionReverted) -> Self { - Self::InitializationFunctionReverted(value) - } - } - impl ::core::convert::From for SubnetRegistryDiamondErrors { - fn from(value: NoBytecodeAtAddress) -> Self { - Self::NoBytecodeAtAddress(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: NoSelectorsProvidedForFacetForCut) -> Self { - Self::NoSelectorsProvidedForFacetForCut(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondErrors { - fn from(value: RemoveFacetAddressMustBeZeroAddress) -> Self { - Self::RemoveFacetAddressMustBeZeroAddress(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "DiamondCut", - abi = "DiamondCut((address,uint8,bytes4[])[],address,bytes)" - )] - pub struct DiamondCutFilter { - pub diamond_cut: ::std::vec::Vec, - pub init: ::ethers::core::types::Address, - pub calldata: ::ethers::core::types::Bytes, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "OwnershipTransferred", - abi = "OwnershipTransferred(address,address)" - )] - pub struct OwnershipTransferredFilter { - pub old_owner: ::ethers::core::types::Address, - pub new_owner: ::ethers::core::types::Address, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum SubnetRegistryDiamondEvents { - DiamondCutFilter(DiamondCutFilter), - OwnershipTransferredFilter(OwnershipTransferredFilter), - } - impl ::ethers::contract::EthLogDecode for SubnetRegistryDiamondEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = DiamondCutFilter::decode_log(log) { - return Ok(SubnetRegistryDiamondEvents::DiamondCutFilter(decoded)); - } - if let Ok(decoded) = OwnershipTransferredFilter::decode_log(log) { - return Ok( - SubnetRegistryDiamondEvents::OwnershipTransferredFilter(decoded), - ); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for SubnetRegistryDiamondEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::DiamondCutFilter(element) => ::core::fmt::Display::fmt(element, f), - Self::OwnershipTransferredFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for SubnetRegistryDiamondEvents { - fn from(value: DiamondCutFilter) -> Self { - Self::DiamondCutFilter(value) - } - } - impl ::core::convert::From - for SubnetRegistryDiamondEvents { - fn from(value: OwnershipTransferredFilter) -> Self { - Self::OwnershipTransferredFilter(value) - } - } - ///`FacetCut(address,uint8,bytes4[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FacetCut { - pub facet_address: ::ethers::core::types::Address, - pub action: u8, - pub function_selectors: ::std::vec::Vec<[u8; 4]>, - } - ///`ConstructorParams(address,address,address,address,address,address,address,address,address,address,bytes4[],bytes4[],bytes4[],bytes4[],bytes4[],bytes4[],bytes4[],bytes4[],bytes4[],uint8)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ConstructorParams { - pub gateway: ::ethers::core::types::Address, - pub getter_facet: ::ethers::core::types::Address, - pub manager_facet: ::ethers::core::types::Address, - pub rewarder_facet: ::ethers::core::types::Address, - pub checkpointer_facet: ::ethers::core::types::Address, - pub pauser_facet: ::ethers::core::types::Address, - pub diamond_cut_facet: ::ethers::core::types::Address, - pub diamond_loupe_facet: ::ethers::core::types::Address, - pub ownership_facet: ::ethers::core::types::Address, - pub activity_facet: ::ethers::core::types::Address, - pub subnet_actor_getter_selectors: ::std::vec::Vec<[u8; 4]>, - pub subnet_actor_manager_selectors: ::std::vec::Vec<[u8; 4]>, - pub subnet_actor_rewarder_selectors: ::std::vec::Vec<[u8; 4]>, - pub subnet_actor_checkpointer_selectors: ::std::vec::Vec<[u8; 4]>, - pub subnet_actor_pauser_selectors: ::std::vec::Vec<[u8; 4]>, - pub subnet_actor_diamond_cut_selectors: ::std::vec::Vec<[u8; 4]>, - pub subnet_actor_diamond_loupe_selectors: ::std::vec::Vec<[u8; 4]>, - pub subnet_actor_ownership_selectors: ::std::vec::Vec<[u8; 4]>, - pub subnet_actor_activity_selectors: ::std::vec::Vec<[u8; 4]>, - pub creation_privileges: u8, - } -} diff --git a/crates/binding/src/top_down_finality_facet.rs b/crates/binding/src/top_down_finality_facet.rs deleted file mode 100644 index ca7a39cfb..000000000 --- a/crates/binding/src/top_down_finality_facet.rs +++ /dev/null @@ -1,1480 +0,0 @@ -pub use top_down_finality_facet::*; -/// 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 top_down_finality_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("applyFinalityChanges"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "applyFinalityChanges", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("commitParentFinality"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "commitParentFinality", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("finality"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct ParentFinality"), - ), - }, - ], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned( - "hasCommittedBefore", - ), - kind: ::ethers::core::abi::ethabi::ParamType::Bool, - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("bool"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("previousFinality"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::FixedBytes(32usize), - ], - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct ParentFinality"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::NonPayable, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("getTrackerConfigurationNumbers"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "getTrackerConfigurationNumbers", - ), - inputs: ::std::vec![], - outputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ::ethers::core::abi::ethabi::Param { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("uint64"), - ), - }, - ], - constant: ::core::option::Option::None, - state_mutability: ::ethers::core::abi::ethabi::StateMutability::View, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("storeValidatorChanges"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned( - "storeValidatorChanges", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("changeRequests"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ::ethers::core::abi::ethabi::ParamType::Address, - ], - ), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned( - "struct StakingChangeRequest[]", - ), - ), - }, - ], - 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("ActiveValidatorCollateralUpdated"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActiveValidatorCollateralUpdated", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newPower"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ActiveValidatorLeft"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActiveValidatorLeft", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ActiveValidatorReplaced"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "ActiveValidatorReplaced", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("oldValidator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newValidator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MembershipUpdated"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("MembershipUpdated"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::string::String::new(), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Address, - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ], - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewActiveValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("NewActiveValidator"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("power"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewWaitingValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewWaitingValidator", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("power"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned( - "WaitingValidatorCollateralUpdated", - ), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "WaitingValidatorCollateralUpdated", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("newPower"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("WaitingValidatorLeft"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "WaitingValidatorLeft", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("validator"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("AddressShouldBeValidator"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "AddressShouldBeValidator", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("CannotConfirmFutureChanges"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "CannotConfirmFutureChanges", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InvalidConfigurationNumber"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "InvalidConfigurationNumber", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotSystemActor"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotSystemActor"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("OldConfigurationNumber"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "OldConfigurationNumber", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("PQDoesNotContainAddress"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "PQDoesNotContainAddress", - ), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("PQEmpty"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("PQEmpty"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("ParentFinalityAlreadyCommitted"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned( - "ParentFinalityAlreadyCommitted", - ), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static TOPDOWNFINALITYFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct TopDownFinalityFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for TopDownFinalityFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for TopDownFinalityFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for TopDownFinalityFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for TopDownFinalityFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(TopDownFinalityFacet)) - .field(&self.address()) - .finish() - } - } - impl TopDownFinalityFacet { - /// 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(), - TOPDOWNFINALITYFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `applyFinalityChanges` (0x0df14461) function - pub fn apply_finality_changes( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([13, 241, 68, 97], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `commitParentFinality` (0x11196974) function - pub fn commit_parent_finality( - &self, - finality: ParentFinality, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([17, 25, 105, 116], (finality,)) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `getTrackerConfigurationNumbers` (0x8fbe0b7c) function - pub fn get_tracker_configuration_numbers( - &self, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([143, 190, 11, 124], ()) - .expect("method not found (this should never happen)") - } - ///Calls the contract's `storeValidatorChanges` (0xe49a547d) function - pub fn store_validator_changes( - &self, - change_requests: ::std::vec::Vec, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([228, 154, 84, 125], change_requests) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `ActiveValidatorCollateralUpdated` event - pub fn active_validator_collateral_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActiveValidatorCollateralUpdatedFilter, - > { - self.0.event() - } - ///Gets the contract's `ActiveValidatorLeft` event - pub fn active_validator_left_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActiveValidatorLeftFilter, - > { - self.0.event() - } - ///Gets the contract's `ActiveValidatorReplaced` event - pub fn active_validator_replaced_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - ActiveValidatorReplacedFilter, - > { - self.0.event() - } - ///Gets the contract's `MembershipUpdated` event - pub fn membership_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - MembershipUpdatedFilter, - > { - self.0.event() - } - ///Gets the contract's `NewActiveValidator` event - pub fn new_active_validator_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewActiveValidatorFilter, - > { - self.0.event() - } - ///Gets the contract's `NewWaitingValidator` event - pub fn new_waiting_validator_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewWaitingValidatorFilter, - > { - self.0.event() - } - ///Gets the contract's `WaitingValidatorCollateralUpdated` event - pub fn waiting_validator_collateral_updated_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - WaitingValidatorCollateralUpdatedFilter, - > { - self.0.event() - } - ///Gets the contract's `WaitingValidatorLeft` event - pub fn waiting_validator_left_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - WaitingValidatorLeftFilter, - > { - 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, - TopDownFinalityFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for TopDownFinalityFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `AddressShouldBeValidator` with signature `AddressShouldBeValidator()` and selector `0x2a55ca53` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "AddressShouldBeValidator", abi = "AddressShouldBeValidator()")] - pub struct AddressShouldBeValidator; - ///Custom Error type `CannotConfirmFutureChanges` with signature `CannotConfirmFutureChanges()` and selector `0x0815540a` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "CannotConfirmFutureChanges", - abi = "CannotConfirmFutureChanges()" - )] - pub struct CannotConfirmFutureChanges; - ///Custom Error type `InvalidConfigurationNumber` with signature `InvalidConfigurationNumber()` and selector `0x6ae94ca4` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "InvalidConfigurationNumber", - abi = "InvalidConfigurationNumber()" - )] - pub struct InvalidConfigurationNumber; - ///Custom Error type `NotSystemActor` with signature `NotSystemActor()` and selector `0xf0d97f3b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotSystemActor", abi = "NotSystemActor()")] - pub struct NotSystemActor; - ///Custom Error type `OldConfigurationNumber` with signature `OldConfigurationNumber()` and selector `0x6e8d7c4a` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "OldConfigurationNumber", abi = "OldConfigurationNumber()")] - pub struct OldConfigurationNumber; - ///Custom Error type `PQDoesNotContainAddress` with signature `PQDoesNotContainAddress()` and selector `0xf2755e37` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "PQDoesNotContainAddress", abi = "PQDoesNotContainAddress()")] - pub struct PQDoesNotContainAddress; - ///Custom Error type `PQEmpty` with signature `PQEmpty()` and selector `0x40d9b011` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "PQEmpty", abi = "PQEmpty()")] - pub struct PQEmpty; - ///Custom Error type `ParentFinalityAlreadyCommitted` with signature `ParentFinalityAlreadyCommitted()` and selector `0x2a75b082` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror( - name = "ParentFinalityAlreadyCommitted", - abi = "ParentFinalityAlreadyCommitted()" - )] - pub struct ParentFinalityAlreadyCommitted; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum TopDownFinalityFacetErrors { - AddressShouldBeValidator(AddressShouldBeValidator), - CannotConfirmFutureChanges(CannotConfirmFutureChanges), - InvalidConfigurationNumber(InvalidConfigurationNumber), - NotSystemActor(NotSystemActor), - OldConfigurationNumber(OldConfigurationNumber), - PQDoesNotContainAddress(PQDoesNotContainAddress), - PQEmpty(PQEmpty), - ParentFinalityAlreadyCommitted(ParentFinalityAlreadyCommitted), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for TopDownFinalityFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::AddressShouldBeValidator(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CannotConfirmFutureChanges(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InvalidConfigurationNumber(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotSystemActor(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::OldConfigurationNumber(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PQDoesNotContainAddress(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::PQEmpty(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ParentFinalityAlreadyCommitted(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for TopDownFinalityFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::AddressShouldBeValidator(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CannotConfirmFutureChanges(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InvalidConfigurationNumber(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotSystemActor(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::OldConfigurationNumber(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::PQDoesNotContainAddress(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::PQEmpty(element) => ::ethers::core::abi::AbiEncode::encode(element), - Self::ParentFinalityAlreadyCommitted(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for TopDownFinalityFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for TopDownFinalityFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::AddressShouldBeValidator(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CannotConfirmFutureChanges(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::InvalidConfigurationNumber(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NotSystemActor(element) => ::core::fmt::Display::fmt(element, f), - Self::OldConfigurationNumber(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::PQDoesNotContainAddress(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::PQEmpty(element) => ::core::fmt::Display::fmt(element, f), - Self::ParentFinalityAlreadyCommitted(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for TopDownFinalityFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for TopDownFinalityFacetErrors { - fn from(value: AddressShouldBeValidator) -> Self { - Self::AddressShouldBeValidator(value) - } - } - impl ::core::convert::From - for TopDownFinalityFacetErrors { - fn from(value: CannotConfirmFutureChanges) -> Self { - Self::CannotConfirmFutureChanges(value) - } - } - impl ::core::convert::From - for TopDownFinalityFacetErrors { - fn from(value: InvalidConfigurationNumber) -> Self { - Self::InvalidConfigurationNumber(value) - } - } - impl ::core::convert::From for TopDownFinalityFacetErrors { - fn from(value: NotSystemActor) -> Self { - Self::NotSystemActor(value) - } - } - impl ::core::convert::From for TopDownFinalityFacetErrors { - fn from(value: OldConfigurationNumber) -> Self { - Self::OldConfigurationNumber(value) - } - } - impl ::core::convert::From for TopDownFinalityFacetErrors { - fn from(value: PQDoesNotContainAddress) -> Self { - Self::PQDoesNotContainAddress(value) - } - } - impl ::core::convert::From for TopDownFinalityFacetErrors { - fn from(value: PQEmpty) -> Self { - Self::PQEmpty(value) - } - } - impl ::core::convert::From - for TopDownFinalityFacetErrors { - fn from(value: ParentFinalityAlreadyCommitted) -> Self { - Self::ParentFinalityAlreadyCommitted(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ActiveValidatorCollateralUpdated", - abi = "ActiveValidatorCollateralUpdated(address,uint256)" - )] - pub struct ActiveValidatorCollateralUpdatedFilter { - pub validator: ::ethers::core::types::Address, - pub new_power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "ActiveValidatorLeft", abi = "ActiveValidatorLeft(address)")] - pub struct ActiveValidatorLeftFilter { - pub validator: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "ActiveValidatorReplaced", - abi = "ActiveValidatorReplaced(address,address)" - )] - pub struct ActiveValidatorReplacedFilter { - pub old_validator: ::ethers::core::types::Address, - pub new_validator: ::ethers::core::types::Address, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "MembershipUpdated", - abi = "MembershipUpdated(((uint256,address,bytes)[],uint64))" - )] - pub struct MembershipUpdatedFilter(pub Membership); - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "NewActiveValidator", abi = "NewActiveValidator(address,uint256)")] - pub struct NewActiveValidatorFilter { - pub validator: ::ethers::core::types::Address, - pub power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewWaitingValidator", - abi = "NewWaitingValidator(address,uint256)" - )] - pub struct NewWaitingValidatorFilter { - pub validator: ::ethers::core::types::Address, - pub power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "WaitingValidatorCollateralUpdated", - abi = "WaitingValidatorCollateralUpdated(address,uint256)" - )] - pub struct WaitingValidatorCollateralUpdatedFilter { - pub validator: ::ethers::core::types::Address, - pub new_power: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "WaitingValidatorLeft", abi = "WaitingValidatorLeft(address)")] - pub struct WaitingValidatorLeftFilter { - pub validator: ::ethers::core::types::Address, - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum TopDownFinalityFacetEvents { - ActiveValidatorCollateralUpdatedFilter(ActiveValidatorCollateralUpdatedFilter), - ActiveValidatorLeftFilter(ActiveValidatorLeftFilter), - ActiveValidatorReplacedFilter(ActiveValidatorReplacedFilter), - MembershipUpdatedFilter(MembershipUpdatedFilter), - NewActiveValidatorFilter(NewActiveValidatorFilter), - NewWaitingValidatorFilter(NewWaitingValidatorFilter), - WaitingValidatorCollateralUpdatedFilter(WaitingValidatorCollateralUpdatedFilter), - WaitingValidatorLeftFilter(WaitingValidatorLeftFilter), - } - impl ::ethers::contract::EthLogDecode for TopDownFinalityFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = ActiveValidatorCollateralUpdatedFilter::decode_log( - log, - ) { - return Ok( - TopDownFinalityFacetEvents::ActiveValidatorCollateralUpdatedFilter( - decoded, - ), - ); - } - if let Ok(decoded) = ActiveValidatorLeftFilter::decode_log(log) { - return Ok( - TopDownFinalityFacetEvents::ActiveValidatorLeftFilter(decoded), - ); - } - if let Ok(decoded) = ActiveValidatorReplacedFilter::decode_log(log) { - return Ok( - TopDownFinalityFacetEvents::ActiveValidatorReplacedFilter(decoded), - ); - } - if let Ok(decoded) = MembershipUpdatedFilter::decode_log(log) { - return Ok(TopDownFinalityFacetEvents::MembershipUpdatedFilter(decoded)); - } - if let Ok(decoded) = NewActiveValidatorFilter::decode_log(log) { - return Ok(TopDownFinalityFacetEvents::NewActiveValidatorFilter(decoded)); - } - if let Ok(decoded) = NewWaitingValidatorFilter::decode_log(log) { - return Ok( - TopDownFinalityFacetEvents::NewWaitingValidatorFilter(decoded), - ); - } - if let Ok(decoded) = WaitingValidatorCollateralUpdatedFilter::decode_log( - log, - ) { - return Ok( - TopDownFinalityFacetEvents::WaitingValidatorCollateralUpdatedFilter( - decoded, - ), - ); - } - if let Ok(decoded) = WaitingValidatorLeftFilter::decode_log(log) { - return Ok( - TopDownFinalityFacetEvents::WaitingValidatorLeftFilter(decoded), - ); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for TopDownFinalityFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::ActiveValidatorCollateralUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ActiveValidatorLeftFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::ActiveValidatorReplacedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MembershipUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewActiveValidatorFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewWaitingValidatorFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::WaitingValidatorCollateralUpdatedFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::WaitingValidatorLeftFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From - for TopDownFinalityFacetEvents { - fn from(value: ActiveValidatorCollateralUpdatedFilter) -> Self { - Self::ActiveValidatorCollateralUpdatedFilter(value) - } - } - impl ::core::convert::From - for TopDownFinalityFacetEvents { - fn from(value: ActiveValidatorLeftFilter) -> Self { - Self::ActiveValidatorLeftFilter(value) - } - } - impl ::core::convert::From - for TopDownFinalityFacetEvents { - fn from(value: ActiveValidatorReplacedFilter) -> Self { - Self::ActiveValidatorReplacedFilter(value) - } - } - impl ::core::convert::From for TopDownFinalityFacetEvents { - fn from(value: MembershipUpdatedFilter) -> Self { - Self::MembershipUpdatedFilter(value) - } - } - impl ::core::convert::From for TopDownFinalityFacetEvents { - fn from(value: NewActiveValidatorFilter) -> Self { - Self::NewActiveValidatorFilter(value) - } - } - impl ::core::convert::From - for TopDownFinalityFacetEvents { - fn from(value: NewWaitingValidatorFilter) -> Self { - Self::NewWaitingValidatorFilter(value) - } - } - impl ::core::convert::From - for TopDownFinalityFacetEvents { - fn from(value: WaitingValidatorCollateralUpdatedFilter) -> Self { - Self::WaitingValidatorCollateralUpdatedFilter(value) - } - } - impl ::core::convert::From - for TopDownFinalityFacetEvents { - fn from(value: WaitingValidatorLeftFilter) -> Self { - Self::WaitingValidatorLeftFilter(value) - } - } - ///Container type for all input parameters for the `applyFinalityChanges` function with signature `applyFinalityChanges()` and selector `0x0df14461` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall(name = "applyFinalityChanges", abi = "applyFinalityChanges()")] - pub struct ApplyFinalityChangesCall; - ///Container type for all input parameters for the `commitParentFinality` function with signature `commitParentFinality((uint256,bytes32))` and selector `0x11196974` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "commitParentFinality", - abi = "commitParentFinality((uint256,bytes32))" - )] - pub struct CommitParentFinalityCall { - pub finality: ParentFinality, - } - ///Container type for all input parameters for the `getTrackerConfigurationNumbers` function with signature `getTrackerConfigurationNumbers()` and selector `0x8fbe0b7c` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "getTrackerConfigurationNumbers", - abi = "getTrackerConfigurationNumbers()" - )] - pub struct GetTrackerConfigurationNumbersCall; - ///Container type for all input parameters for the `storeValidatorChanges` function with signature `storeValidatorChanges(((uint8,bytes,address),uint64)[])` and selector `0xe49a547d` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "storeValidatorChanges", - abi = "storeValidatorChanges(((uint8,bytes,address),uint64)[])" - )] - pub struct StoreValidatorChangesCall { - pub change_requests: ::std::vec::Vec, - } - ///Container type for all of the contract's call - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum TopDownFinalityFacetCalls { - ApplyFinalityChanges(ApplyFinalityChangesCall), - CommitParentFinality(CommitParentFinalityCall), - GetTrackerConfigurationNumbers(GetTrackerConfigurationNumbersCall), - StoreValidatorChanges(StoreValidatorChangesCall), - } - impl ::ethers::core::abi::AbiDecode for TopDownFinalityFacetCalls { - fn decode( - data: impl AsRef<[u8]>, - ) -> ::core::result::Result { - let data = data.as_ref(); - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::ApplyFinalityChanges(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CommitParentFinality(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::GetTrackerConfigurationNumbers(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::StoreValidatorChanges(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for TopDownFinalityFacetCalls { - fn encode(self) -> Vec { - match self { - Self::ApplyFinalityChanges(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::CommitParentFinality(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::GetTrackerConfigurationNumbers(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::StoreValidatorChanges(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - } - } - } - impl ::core::fmt::Display for TopDownFinalityFacetCalls { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::ApplyFinalityChanges(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::CommitParentFinality(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::GetTrackerConfigurationNumbers(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::StoreValidatorChanges(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From for TopDownFinalityFacetCalls { - fn from(value: ApplyFinalityChangesCall) -> Self { - Self::ApplyFinalityChanges(value) - } - } - impl ::core::convert::From for TopDownFinalityFacetCalls { - fn from(value: CommitParentFinalityCall) -> Self { - Self::CommitParentFinality(value) - } - } - impl ::core::convert::From - for TopDownFinalityFacetCalls { - fn from(value: GetTrackerConfigurationNumbersCall) -> Self { - Self::GetTrackerConfigurationNumbers(value) - } - } - impl ::core::convert::From for TopDownFinalityFacetCalls { - fn from(value: StoreValidatorChangesCall) -> Self { - Self::StoreValidatorChanges(value) - } - } - ///Container type for all return fields from the `applyFinalityChanges` function with signature `applyFinalityChanges()` and selector `0x0df14461` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ApplyFinalityChangesReturn(pub u64); - ///Container type for all return fields from the `commitParentFinality` function with signature `commitParentFinality((uint256,bytes32))` and selector `0x11196974` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct CommitParentFinalityReturn { - pub has_committed_before: bool, - pub previous_finality: ParentFinality, - } - ///Container type for all return fields from the `getTrackerConfigurationNumbers` function with signature `getTrackerConfigurationNumbers()` and selector `0x8fbe0b7c` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct GetTrackerConfigurationNumbersReturn(pub u64, pub u64); - ///`Membership((uint256,address,bytes)[],uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Membership { - pub validators: ::std::vec::Vec, - pub configuration_number: u64, - } - ///`ParentFinality(uint256,bytes32)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct ParentFinality { - pub height: ::ethers::core::types::U256, - pub block_hash: [u8; 32], - } - ///`StakingChange(uint8,bytes,address)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct StakingChange { - pub op: u8, - pub payload: ::ethers::core::types::Bytes, - pub validator: ::ethers::core::types::Address, - } - ///`StakingChangeRequest((uint8,bytes,address),uint64)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct StakingChangeRequest { - pub change: StakingChange, - pub configuration_number: u64, - } - ///`Validator(uint256,address,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Validator { - pub weight: ::ethers::core::types::U256, - pub addr: ::ethers::core::types::Address, - pub metadata: ::ethers::core::types::Bytes, - } -} diff --git a/crates/binding/src/xnet_messaging_facet.rs b/crates/binding/src/xnet_messaging_facet.rs deleted file mode 100644 index 4b1cbaeac..000000000 --- a/crates/binding/src/xnet_messaging_facet.rs +++ /dev/null @@ -1,794 +0,0 @@ -pub use xnet_messaging_facet::*; -/// 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 xnet_messaging_facet { - #[allow(deprecated)] - fn __abi() -> ::ethers::core::abi::Abi { - ::ethers::core::abi::ethabi::Contract { - constructor: ::core::option::Option::None, - functions: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("applyCrossMessages"), - ::std::vec![ - ::ethers::core::abi::ethabi::Function { - name: ::std::borrow::ToOwned::to_owned("applyCrossMessages"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::Param { - name: ::std::borrow::ToOwned::to_owned("crossMsgs"), - kind: ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ), - ), - internal_type: ::core::option::Option::Some( - ::std::borrow::ToOwned::to_owned("struct IpcEnvelope[]"), - ), - }, - ], - 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("MessagePropagatedFromPostbox"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "MessagePropagatedFromPostbox", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: false, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("MessageStoredInPostbox"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "MessageStoredInPostbox", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewBottomUpMsgBatch"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "NewBottomUpMsgBatch", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("epoch"), - kind: ::ethers::core::abi::ethabi::ParamType::Uint( - 256usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned("NewTopDownMessage"), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("subnet"), - kind: ::ethers::core::abi::ethabi::ParamType::Address, - indexed: true, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("message"), - kind: ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Uint(256usize), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(64usize), - ::ethers::core::abi::ethabi::ParamType::Array( - ::std::boxed::Box::new( - ::ethers::core::abi::ethabi::ParamType::Address, - ), - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Tuple( - ::std::vec![ - ::ethers::core::abi::ethabi::ParamType::Uint(8usize), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - ], - ), - ::ethers::core::abi::ethabi::ParamType::Bytes, - ], - ), - indexed: false, - }, - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("QueuedBottomUpMessage"), - ::std::vec![ - ::ethers::core::abi::ethabi::Event { - name: ::std::borrow::ToOwned::to_owned( - "QueuedBottomUpMessage", - ), - inputs: ::std::vec![ - ::ethers::core::abi::ethabi::EventParam { - name: ::std::borrow::ToOwned::to_owned("id"), - kind: ::ethers::core::abi::ethabi::ParamType::FixedBytes( - 32usize, - ), - indexed: true, - }, - ], - anonymous: false, - }, - ], - ), - ]), - errors: ::core::convert::From::from([ - ( - ::std::borrow::ToOwned::to_owned("CallFailed"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("CallFailed"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("InsufficientFunds"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("InsufficientFunds"), - inputs: ::std::vec![], - }, - ], - ), - ( - ::std::borrow::ToOwned::to_owned("NotSystemActor"), - ::std::vec![ - ::ethers::core::abi::ethabi::AbiError { - name: ::std::borrow::ToOwned::to_owned("NotSystemActor"), - inputs: ::std::vec![], - }, - ], - ), - ]), - receive: false, - fallback: false, - } - } - ///The parsed JSON ABI of the contract. - pub static XNETMESSAGINGFACET_ABI: ::ethers::contract::Lazy< - ::ethers::core::abi::Abi, - > = ::ethers::contract::Lazy::new(__abi); - pub struct XnetMessagingFacet(::ethers::contract::Contract); - impl ::core::clone::Clone for XnetMessagingFacet { - fn clone(&self) -> Self { - Self(::core::clone::Clone::clone(&self.0)) - } - } - impl ::core::ops::Deref for XnetMessagingFacet { - type Target = ::ethers::contract::Contract; - fn deref(&self) -> &Self::Target { - &self.0 - } - } - impl ::core::ops::DerefMut for XnetMessagingFacet { - fn deref_mut(&mut self) -> &mut Self::Target { - &mut self.0 - } - } - impl ::core::fmt::Debug for XnetMessagingFacet { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(::core::stringify!(XnetMessagingFacet)) - .field(&self.address()) - .finish() - } - } - impl XnetMessagingFacet { - /// 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(), - XNETMESSAGINGFACET_ABI.clone(), - client, - ), - ) - } - ///Calls the contract's `applyCrossMessages` (0x007cf1ec) function - pub fn apply_cross_messages( - &self, - cross_msgs: ::std::vec::Vec, - ) -> ::ethers::contract::builders::ContractCall { - self.0 - .method_hash([0, 124, 241, 236], cross_msgs) - .expect("method not found (this should never happen)") - } - ///Gets the contract's `MessagePropagatedFromPostbox` event - pub fn message_propagated_from_postbox_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - MessagePropagatedFromPostboxFilter, - > { - self.0.event() - } - ///Gets the contract's `MessageStoredInPostbox` event - pub fn message_stored_in_postbox_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - MessageStoredInPostboxFilter, - > { - self.0.event() - } - ///Gets the contract's `NewBottomUpMsgBatch` event - pub fn new_bottom_up_msg_batch_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewBottomUpMsgBatchFilter, - > { - self.0.event() - } - ///Gets the contract's `NewTopDownMessage` event - pub fn new_top_down_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - NewTopDownMessageFilter, - > { - self.0.event() - } - ///Gets the contract's `QueuedBottomUpMessage` event - pub fn queued_bottom_up_message_filter( - &self, - ) -> ::ethers::contract::builders::Event< - ::std::sync::Arc, - M, - QueuedBottomUpMessageFilter, - > { - 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, - XnetMessagingFacetEvents, - > { - self.0.event_with_filter(::core::default::Default::default()) - } - } - impl From<::ethers::contract::Contract> - for XnetMessagingFacet { - fn from(contract: ::ethers::contract::Contract) -> Self { - Self::new(contract.address(), contract.client()) - } - } - ///Custom Error type `CallFailed` with signature `CallFailed()` and selector `0x3204506f` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "CallFailed", abi = "CallFailed()")] - pub struct CallFailed; - ///Custom Error type `InsufficientFunds` with signature `InsufficientFunds()` and selector `0x356680b7` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "InsufficientFunds", abi = "InsufficientFunds()")] - pub struct InsufficientFunds; - ///Custom Error type `NotSystemActor` with signature `NotSystemActor()` and selector `0xf0d97f3b` - #[derive( - Clone, - ::ethers::contract::EthError, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[etherror(name = "NotSystemActor", abi = "NotSystemActor()")] - pub struct NotSystemActor; - ///Container type for all of the contract's custom errors - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum XnetMessagingFacetErrors { - CallFailed(CallFailed), - InsufficientFunds(InsufficientFunds), - NotSystemActor(NotSystemActor), - /// The standard solidity revert string, with selector - /// Error(string) -- 0x08c379a0 - RevertString(::std::string::String), - } - impl ::ethers::core::abi::AbiDecode for XnetMessagingFacetErrors { - fn decode( - 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, - ) { - return Ok(Self::RevertString(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::CallFailed(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::InsufficientFunds(decoded)); - } - if let Ok(decoded) = ::decode( - data, - ) { - return Ok(Self::NotSystemActor(decoded)); - } - Err(::ethers::core::abi::Error::InvalidData.into()) - } - } - impl ::ethers::core::abi::AbiEncode for XnetMessagingFacetErrors { - fn encode(self) -> ::std::vec::Vec { - match self { - Self::CallFailed(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::InsufficientFunds(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::NotSystemActor(element) => { - ::ethers::core::abi::AbiEncode::encode(element) - } - Self::RevertString(s) => ::ethers::core::abi::AbiEncode::encode(s), - } - } - } - impl ::ethers::contract::ContractRevert for XnetMessagingFacetErrors { - fn valid_selector(selector: [u8; 4]) -> bool { - match selector { - [0x08, 0xc3, 0x79, 0xa0] => true, - _ if selector - == ::selector() => true, - _ if selector - == ::selector() => { - true - } - _ if selector - == ::selector() => { - true - } - _ => false, - } - } - } - impl ::core::fmt::Display for XnetMessagingFacetErrors { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::CallFailed(element) => ::core::fmt::Display::fmt(element, f), - Self::InsufficientFunds(element) => ::core::fmt::Display::fmt(element, f), - Self::NotSystemActor(element) => ::core::fmt::Display::fmt(element, f), - Self::RevertString(s) => ::core::fmt::Display::fmt(s, f), - } - } - } - impl ::core::convert::From<::std::string::String> for XnetMessagingFacetErrors { - fn from(value: String) -> Self { - Self::RevertString(value) - } - } - impl ::core::convert::From for XnetMessagingFacetErrors { - fn from(value: CallFailed) -> Self { - Self::CallFailed(value) - } - } - impl ::core::convert::From for XnetMessagingFacetErrors { - fn from(value: InsufficientFunds) -> Self { - Self::InsufficientFunds(value) - } - } - impl ::core::convert::From for XnetMessagingFacetErrors { - fn from(value: NotSystemActor) -> Self { - Self::NotSystemActor(value) - } - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "MessagePropagatedFromPostbox", - abi = "MessagePropagatedFromPostbox(bytes32)" - )] - pub struct MessagePropagatedFromPostboxFilter { - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "MessageStoredInPostbox", abi = "MessageStoredInPostbox(bytes32)")] - pub struct MessageStoredInPostboxFilter { - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "NewBottomUpMsgBatch", abi = "NewBottomUpMsgBatch(uint256)")] - pub struct NewBottomUpMsgBatchFilter { - #[ethevent(indexed)] - pub epoch: ::ethers::core::types::U256, - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent( - name = "NewTopDownMessage", - abi = "NewTopDownMessage(address,(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes),bytes32)" - )] - pub struct NewTopDownMessageFilter { - #[ethevent(indexed)] - pub subnet: ::ethers::core::types::Address, - pub message: IpcEnvelope, - #[ethevent(indexed)] - pub id: [u8; 32], - } - #[derive( - Clone, - ::ethers::contract::EthEvent, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethevent(name = "QueuedBottomUpMessage", abi = "QueuedBottomUpMessage(bytes32)")] - pub struct QueuedBottomUpMessageFilter { - #[ethevent(indexed)] - pub id: [u8; 32], - } - ///Container type for all of the contract's events - #[derive(Clone, ::ethers::contract::EthAbiType, Debug, PartialEq, Eq, Hash)] - pub enum XnetMessagingFacetEvents { - MessagePropagatedFromPostboxFilter(MessagePropagatedFromPostboxFilter), - MessageStoredInPostboxFilter(MessageStoredInPostboxFilter), - NewBottomUpMsgBatchFilter(NewBottomUpMsgBatchFilter), - NewTopDownMessageFilter(NewTopDownMessageFilter), - QueuedBottomUpMessageFilter(QueuedBottomUpMessageFilter), - } - impl ::ethers::contract::EthLogDecode for XnetMessagingFacetEvents { - fn decode_log( - log: &::ethers::core::abi::RawLog, - ) -> ::core::result::Result { - if let Ok(decoded) = MessagePropagatedFromPostboxFilter::decode_log(log) { - return Ok( - XnetMessagingFacetEvents::MessagePropagatedFromPostboxFilter(decoded), - ); - } - if let Ok(decoded) = MessageStoredInPostboxFilter::decode_log(log) { - return Ok( - XnetMessagingFacetEvents::MessageStoredInPostboxFilter(decoded), - ); - } - if let Ok(decoded) = NewBottomUpMsgBatchFilter::decode_log(log) { - return Ok(XnetMessagingFacetEvents::NewBottomUpMsgBatchFilter(decoded)); - } - if let Ok(decoded) = NewTopDownMessageFilter::decode_log(log) { - return Ok(XnetMessagingFacetEvents::NewTopDownMessageFilter(decoded)); - } - if let Ok(decoded) = QueuedBottomUpMessageFilter::decode_log(log) { - return Ok( - XnetMessagingFacetEvents::QueuedBottomUpMessageFilter(decoded), - ); - } - Err(::ethers::core::abi::Error::InvalidData) - } - } - impl ::core::fmt::Display for XnetMessagingFacetEvents { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - match self { - Self::MessagePropagatedFromPostboxFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::MessageStoredInPostboxFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewBottomUpMsgBatchFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::NewTopDownMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - Self::QueuedBottomUpMessageFilter(element) => { - ::core::fmt::Display::fmt(element, f) - } - } - } - } - impl ::core::convert::From - for XnetMessagingFacetEvents { - fn from(value: MessagePropagatedFromPostboxFilter) -> Self { - Self::MessagePropagatedFromPostboxFilter(value) - } - } - impl ::core::convert::From - for XnetMessagingFacetEvents { - fn from(value: MessageStoredInPostboxFilter) -> Self { - Self::MessageStoredInPostboxFilter(value) - } - } - impl ::core::convert::From for XnetMessagingFacetEvents { - fn from(value: NewBottomUpMsgBatchFilter) -> Self { - Self::NewBottomUpMsgBatchFilter(value) - } - } - impl ::core::convert::From for XnetMessagingFacetEvents { - fn from(value: NewTopDownMessageFilter) -> Self { - Self::NewTopDownMessageFilter(value) - } - } - impl ::core::convert::From - for XnetMessagingFacetEvents { - fn from(value: QueuedBottomUpMessageFilter) -> Self { - Self::QueuedBottomUpMessageFilter(value) - } - } - ///Container type for all input parameters for the `applyCrossMessages` function with signature `applyCrossMessages((uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[])` and selector `0x007cf1ec` - #[derive( - Clone, - ::ethers::contract::EthCall, - ::ethers::contract::EthDisplay, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - #[ethcall( - name = "applyCrossMessages", - abi = "applyCrossMessages((uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)[])" - )] - pub struct ApplyCrossMessagesCall { - pub cross_msgs: ::std::vec::Vec, - } - ///`FvmAddress(uint8,bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct FvmAddress { - pub addr_type: u8, - pub payload: ::ethers::core::types::Bytes, - } - ///`Ipcaddress((uint64,address[]),(uint8,bytes))` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct Ipcaddress { - pub subnet_id: SubnetID, - pub raw_address: FvmAddress, - } - ///`IpcEnvelope(uint8,uint64,uint64,uint256,((uint64,address[]),(uint8,bytes)),((uint64,address[]),(uint8,bytes)),bytes)` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct IpcEnvelope { - pub kind: u8, - pub local_nonce: u64, - pub original_nonce: u64, - pub value: ::ethers::core::types::U256, - pub to: Ipcaddress, - pub from: Ipcaddress, - pub message: ::ethers::core::types::Bytes, - } - ///`SubnetID(uint64,address[])` - #[derive( - Clone, - ::ethers::contract::EthAbiType, - ::ethers::contract::EthAbiCodec, - Default, - Debug, - PartialEq, - Eq, - Hash - )] - pub struct SubnetID { - pub root: u64, - pub route: ::std::vec::Vec<::ethers::core::types::Address>, - } -} diff --git a/crates/bindings/.gitignore b/crates/bindings/.gitignore new file mode 100644 index 000000000..66c2ce44f --- /dev/null +++ b/crates/bindings/.gitignore @@ -0,0 +1 @@ +src/gen diff --git a/crates/binding/Cargo.toml b/crates/bindings/Cargo.toml similarity index 100% rename from crates/binding/Cargo.toml rename to crates/bindings/Cargo.toml diff --git a/crates/binding/build.rs b/crates/bindings/build.rs similarity index 88% rename from crates/binding/build.rs rename to crates/bindings/build.rs index 391b97ce2..151ccb5cc 100644 --- a/crates/binding/build.rs +++ b/crates/bindings/build.rs @@ -18,14 +18,19 @@ fn main() -> color_eyre::Result<()> { println!("cargo:rerun-if-env-changed={}", SKIP_ENV_VAR_NAME); println!("cargo:rerun-if-changed=build.rs"); let out = std::env::var("OUTPUT").unwrap_or_else(|_| "out".to_owned()); - // PathBuf::from(std::env::var("OUT_DIR")?); println!("cargo:rerun-if-changed={}", out); let crate_dir = std::env::var("CARGO_MANIFEST_DIR").expect("Building with cargo provides this"); let crate_dir = PathBuf::from(crate_dir); - let lib_path = crate_dir.join("src").join("lib.rs"); - println!("cargo:rerun-if-changed={}", lib_path.display()); + // Where to place the generated binding files + // TODO `OUT_DIR` would be a even better place + // TODO and then using `include_bytes!` from `lib.rs` + // PathBuf::from(std::env::var("OUT_DIR")?); + let gen_dir = crate_dir.join("src").join("gen"); + let mod_path = gen_dir.join("mod.rs"); + println!("cargo:rerun-if-changed={}", mod_path.display()); + // Maybe we want to skip the build and use the files as-is, could be imported as crate. // Enabled by default so that in the monorepo we don't have to worry about stale code. if let Ok(val) = std::env::var(SKIP_ENV_VAR_NAME) { @@ -51,19 +56,14 @@ fn main() -> color_eyre::Result<()> { let contracts_dir = workspace_dir.join("contracts"); - // Where to place the generated binding files - let gen_dir = crate_dir.join("src"); fs_err::create_dir_all(&gen_dir)?; - - let mut lib = fs_err::File::create(&lib_path)?; + let mut mod_f = fs_err::File::create(&mod_path)?; writeln!( - lib, + mod_f, "//! This file was generated by build.rs and will be overriden" )?; - writeln!(lib)?; - writeln!(lib, "#[macro_use]")?; - writeln!(lib, "mod convert;")?; + writeln!(mod_f)?; // The list of actors we need bindings for, based on how the ipc-actor uses `abigen!`. // With the diamond pattern, there is a contract that holds state, and there are these facets which have the code, @@ -113,12 +113,12 @@ fn main() -> color_eyre::Result<()> { .generate()? .write_to_file(output_path)?; - writeln!(lib, "#[allow(clippy::all)]")?; - writeln!(lib, "pub mod {module_name};")?; + writeln!(mod_f, "#[allow(clippy::all)]")?; + writeln!(mod_f, "pub mod {module_name};")?; } - writeln!(lib)?; + writeln!(mod_f)?; writeln!( - lib, + mod_f, "// The list of contracts need to convert FvmAddress to fvm_shared::Address" )?; let fvm_address_conversion = vec![ @@ -134,13 +134,13 @@ fn main() -> color_eyre::Result<()> { let modules = fvm_address_conversion.into_iter().map(camel_to_snake); for module in modules { - writeln!(lib, "fvm_address_conversion!({module});")?; + writeln!(mod_f, "fvm_address_conversion!({module});")?; } - writeln!(lib)?; + writeln!(mod_f)?; writeln!( - lib, + mod_f, "// The list of contracts that need to convert common types between each other" )?; let common_type_conversion = vec![ @@ -149,22 +149,22 @@ fn main() -> color_eyre::Result<()> { ]; for (contract1, contract2) in common_type_conversion { writeln!( - lib, + mod_f, "common_type_conversion!({}, {});", camel_to_snake(contract1), camel_to_snake(contract2) )?; } - lib.flush()?; - lib.sync_all()?; + mod_f.flush()?; + mod_f.sync_all()?; // format file without host tooling // TODO use tempfile to make the formatting atomic - let unformatted = fs_err::read_to_string(&lib_path)?; + let unformatted = fs_err::read_to_string(&mod_path)?; let f = syn::parse_str(&unformatted)?; let c = prettyplease::unparse(&f); - fs_err::write(&lib_path, c.as_bytes())?; + fs_err::write(&mod_path, c.as_bytes())?; Ok(()) } diff --git a/crates/binding/src/convert.rs b/crates/bindings/src/convert.rs similarity index 100% rename from crates/binding/src/convert.rs rename to crates/bindings/src/convert.rs diff --git a/crates/bindings/src/lib.rs b/crates/bindings/src/lib.rs new file mode 100644 index 000000000..9cf098a36 --- /dev/null +++ b/crates/bindings/src/lib.rs @@ -0,0 +1,5 @@ +#[macro_use] +mod convert; + +mod gen; +pub use self::gen::*; diff --git a/crates/client/README.md b/crates/client/README.md index 3097146d5..0be1dc241 100644 --- a/crates/client/README.md +++ b/crates/client/README.md @@ -36,7 +36,7 @@ make e2e ## IPC Solidity Actors -We generate Rust bindings for the Solidity actors we need to invoke from the [contracts](../contracts/) folder, some of which are deployed during the genesis process. The bindings live in [contracts/binding/](../contracts/binding), and are generated automatically during the build, or with the following command: +We generate Rust bindings for the Solidity actors we need to invoke from the [contracts](../contracts/) folder, some of which are deployed during the genesis process. The bindings live in [contracts/bindings/](../contracts/binding), and are generated automatically during the build, or with the following command: ```bash make gen @@ -44,7 +44,7 @@ make gen To run it, you will have to install [forge](https://book.getfoundry.sh/getting-started/installation). -The list of contracts for which we generate Rust bindings are in [build.rs](../contracts/binding/build.rs) and needs to be maintained by hand, for example if a new "diamond facet" is added to a contract, it has to be added here. Diamond facets also have to be added manually in [ipc.rs](./vm/actor_interface/src/ipc.rs) where the contracts which need to be deployed during genesis are described. These facets cannot be divined from the ABI description, so they have to be maintained explicitly. +The list of contracts for which we generate Rust bindings are in [build.rs](../contracts/bindings/build.rs) and needs to be maintained by hand, for example if a new "diamond facet" is added to a contract, it has to be added here. Diamond facets also have to be added manually in [ipc.rs](./vm/actor_interface/src/ipc.rs) where the contracts which need to be deployed during genesis are described. These facets cannot be divined from the ABI description, so they have to be maintained explicitly. To test whether the genesis process works, we can run the following unit test: diff --git a/crates/client/testing/materializer/Cargo.toml b/crates/client/testing/materializer/Cargo.toml index b5c6eee0f..139b6f90c 100644 --- a/crates/client/testing/materializer/Cargo.toml +++ b/crates/client/testing/materializer/Cargo.toml @@ -36,7 +36,7 @@ quickcheck = { workspace = true, optional = true } ipc-api = { path = "../../../ipc/api" } ipc-provider = { path = "../../../ipc/provider" } -ipc_actors_abis = { path = "../../../binding" } +ipc_actors_abis = { path = "../../../bindings" } fendermint_crypto = { path = "../../crypto" } fendermint_vm_actor_interface = { path = "../../vm/actor_interface" } diff --git a/docs-gitbook/reference/troubleshooting.md b/docs-gitbook/reference/troubleshooting.md index 5a9e04778..933905f4f 100644 --- a/docs-gitbook/reference/troubleshooting.md +++ b/docs-gitbook/reference/troubleshooting.md @@ -33,7 +33,7 @@ This error can happen for example when upgrading to a new major/minor FVM versio When upgrading FVM dependency (from 4.0 to 4.1) it resulted in our `fendermint/actors/build.rs` script to fail due Cargo including multiple new dependencies in the `wasm32` target which did not occur before and caused build errors since these new dependencies did not support Wasm target. -By running `cargo tree` we saw that these dependencies were pulled in from the `filecoin-proofs-api` required by `fvm_shared`. This dependency is pulled in when requiring `fvm_shared` with the `crypto` feature. Looking at our different Cargo.toml files, we noticed that `contracts/binding/Cargo.toml` file was the only one setting that feature. We needed to remove the `crypto` feature, compile, and then add it back in for the wasm build (and tests) to succeed. +By running `cargo tree` we saw that these dependencies were pulled in from the `filecoin-proofs-api` required by `fvm_shared`. This dependency is pulled in when requiring `fvm_shared` with the `crypto` feature. Looking at our different Cargo.toml files, we noticed that `contracts/bindings/Cargo.toml` file was the only one setting that feature. We needed to remove the `crypto` feature, compile, and then add it back in for the wasm build (and tests) to succeed. ## Troubleshooting Misc Cargo related issues diff --git a/docs/ipc/developers.md b/docs/ipc/developers.md index 8dcb93dd9..4869e11a4 100644 --- a/docs/ipc/developers.md +++ b/docs/ipc/developers.md @@ -38,7 +38,7 @@ This error can happen for example when upgrading to a new major/minor FVM versio When upgrading FVM dependency (from 4.0 to 4.1) it resulted in our `fendermint/actors/build.rs` script to fail due Cargo including multiple new dependencies in the `wasm32` target which did not occur before and caused build errors since these new dependencies did not support Wasm target. -By running `cargo tree` we saw that these dependencies were pulled in from the `filecoin-proofs-api` required by `fvm_shared`. This dependency is pulled in when requiring `fvm_shared` with the `crypto` feature. Looking at our different Cargo.toml files, we noticed that `contracts/binding/Cargo.toml` file was the only one setting that feature. We needed to remove the `crypto` feature, compile, and then add it back in for the wasm build (and tests) to succeed. +By running `cargo tree` we saw that these dependencies were pulled in from the `filecoin-proofs-api` required by `fvm_shared`. This dependency is pulled in when requiring `fvm_shared` with the `crypto` feature. Looking at our different Cargo.toml files, we noticed that `contracts/bindings/Cargo.toml` file was the only one setting that feature. We needed to remove the `crypto` feature, compile, and then add it back in for the wasm build (and tests) to succeed. ## Troubleshooting Misc Cargo related issues diff --git a/rustfmt.toml b/rustfmt.toml index 6ac931e6e..81d75cacd 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,4 +1,4 @@ edition = "2021" # Ignore auto-generated files. -ignore = ["crates/binding/src"] +ignore = ["crates/bindings/src"] diff --git a/scripts/add_license.sh b/scripts/add_license.sh index f22e6eb0d..63fc2d0b9 100755 --- a/scripts/add_license.sh +++ b/scripts/add_license.sh @@ -13,7 +13,7 @@ LINES=4 # Ignore auto-generated code. IGNORE=( - "crates/binding" "crates/patched_external" + "crates/bindings" "crates/patched_external" ); ignore() {