From 9ca8c6f4722ef7af940a05d0efafe5e09d95f613 Mon Sep 17 00:00:00 2001 From: leonardotc Date: Fri, 26 Apr 2024 10:32:14 +0200 Subject: [PATCH] Fix getModulesPaginated interface --- packages/protocol-kit/src/Safe.ts | 5 +- .../Safe/v1.0.0/SafeContract_v1_0_0.ts | 2 +- .../src/managers/moduleManager.ts | 21 +- .../protocol-kit/src/types/safeProvider.ts | 5 + .../tests/e2e/moduleManager.test.ts | 41 +- .../src/ethers-v6/v1.0.0/Gnosis_safe.ts | 761 ++++++++++++ .../src/ethers-v6/v1.0.0/Proxy_factory.ts | 155 +++ .../typechain/src/ethers-v6/v1.0.0/common.ts | 102 ++ .../v1.0.0/factories/Gnosis_safe__factory.ts | 794 ++++++++++++ .../factories/Proxy_factory__factory.ts | 109 ++ .../src/ethers-v6/v1.0.0/factories/index.ts | 5 + .../typechain/src/ethers-v6/v1.0.0/index.ts | 8 + .../src/ethers-v6/v1.1.1/Gnosis_safe.ts | 939 ++++++++++++++ .../src/ethers-v6/v1.1.1/Multi_send.ts | 80 ++ .../src/ethers-v6/v1.1.1/Proxy_factory.ts | 206 ++++ .../typechain/src/ethers-v6/v1.1.1/common.ts | 102 ++ .../v1.1.1/factories/Gnosis_safe__factory.ts | 996 +++++++++++++++ .../v1.1.1/factories/Multi_send__factory.ts | 40 + .../factories/Proxy_factory__factory.ts | 186 +++ .../src/ethers-v6/v1.1.1/factories/index.ts | 6 + .../typechain/src/ethers-v6/v1.1.1/index.ts | 10 + .../src/ethers-v6/v1.2.0/Gnosis_safe.ts | 947 ++++++++++++++ .../typechain/src/ethers-v6/v1.2.0/common.ts | 102 ++ .../v1.2.0/factories/Gnosis_safe__factory.ts | 1017 +++++++++++++++ .../src/ethers-v6/v1.2.0/factories/index.ts | 4 + .../typechain/src/ethers-v6/v1.2.0/index.ts | 6 + .../v1.3.0/Compatibility_fallback_handler.ts | 274 +++++ .../src/ethers-v6/v1.3.0/Create_call.ts | 139 +++ .../src/ethers-v6/v1.3.0/Gnosis_safe.ts | 1088 +++++++++++++++++ .../src/ethers-v6/v1.3.0/Multi_send.ts | 80 ++ .../ethers-v6/v1.3.0/Multi_send_call_only.ts | 80 ++ .../src/ethers-v6/v1.3.0/Proxy_factory.ts | 207 ++++ .../src/ethers-v6/v1.3.0/Sign_message_lib.ts | 122 ++ .../ethers-v6/v1.3.0/Simulate_tx_accessor.ts | 103 ++ .../typechain/src/ethers-v6/v1.3.0/common.ts | 102 ++ ...Compatibility_fallback_handler__factory.ts | 345 ++++++ .../v1.3.0/factories/Create_call__factory.ts | 85 ++ .../v1.3.0/factories/Gnosis_safe__factory.ts | 1050 ++++++++++++++++ .../v1.3.0/factories/Multi_send__factory.ts | 37 + .../Multi_send_call_only__factory.ts | 32 + .../factories/Proxy_factory__factory.ts | 180 +++ .../factories/Sign_message_lib__factory.ts | 64 + .../Simulate_tx_accessor__factory.ts | 68 ++ .../src/ethers-v6/v1.3.0/factories/index.ts | 11 + .../typechain/src/ethers-v6/v1.3.0/index.ts | 20 + .../v1.4.1/Compatibility_fallback_handler.ts | 277 +++++ .../src/ethers-v6/v1.4.1/Create_call.ts | 139 +++ .../src/ethers-v6/v1.4.1/Multi_send.ts | 80 ++ .../ethers-v6/v1.4.1/Multi_send_call_only.ts | 80 ++ .../typechain/src/ethers-v6/v1.4.1/Safe.ts | 1069 ++++++++++++++++ .../ethers-v6/v1.4.1/Safe_proxy_factory.ts | 195 +++ .../src/ethers-v6/v1.4.1/Sign_message_lib.ts | 122 ++ .../ethers-v6/v1.4.1/Simulate_tx_accessor.ts | 103 ++ .../typechain/src/ethers-v6/v1.4.1/common.ts | 102 ++ ...Compatibility_fallback_handler__factory.ts | 343 ++++++ .../v1.4.1/factories/Create_call__factory.ts | 85 ++ .../v1.4.1/factories/Multi_send__factory.ts | 37 + .../Multi_send_call_only__factory.ts | 32 + .../v1.4.1/factories/Safe__factory.ts | 1016 +++++++++++++++ .../factories/Safe_proxy_factory__factory.ts | 156 +++ .../factories/Sign_message_lib__factory.ts | 64 + .../Simulate_tx_accessor__factory.ts | 68 ++ .../src/ethers-v6/v1.4.1/factories/index.ts | 11 + .../typechain/src/ethers-v6/v1.4.1/index.ts | 20 + .../src/web3-v1/v1.0.0/Gnosis_safe.ts | 231 ++++ .../src/web3-v1/v1.0.0/Proxy_factory.ts | 54 + .../typechain/src/web3-v1/v1.0.0/index.ts | 5 + .../typechain/src/web3-v1/v1.0.0/types.ts | 64 + .../src/web3-v1/v1.1.1/Gnosis_safe.ts | 316 +++++ .../src/web3-v1/v1.1.1/Multi_send.ts | 33 + .../src/web3-v1/v1.1.1/Proxy_factory.ts | 67 + .../typechain/src/web3-v1/v1.1.1/index.ts | 6 + .../typechain/src/web3-v1/v1.1.1/types.ts | 64 + .../src/web3-v1/v1.2.0/Gnosis_safe.ts | 318 +++++ .../typechain/src/web3-v1/v1.2.0/index.ts | 4 + .../typechain/src/web3-v1/v1.2.0/types.ts | 64 + .../v1.3.0/Compatibility_fallback_handler.ts | 97 ++ .../src/web3-v1/v1.3.0/Create_call.ts | 53 + .../src/web3-v1/v1.3.0/Gnosis_safe.ts | 377 ++++++ .../src/web3-v1/v1.3.0/Multi_send.ts | 33 + .../web3-v1/v1.3.0/Multi_send_call_only.ts | 37 + .../src/web3-v1/v1.3.0/Proxy_factory.ts | 69 ++ .../src/web3-v1/v1.3.0/Sign_message_lib.ts | 46 + .../web3-v1/v1.3.0/Simulate_tx_accessor.ts | 49 + .../typechain/src/web3-v1/v1.3.0/index.ts | 11 + .../typechain/src/web3-v1/v1.3.0/types.ts | 64 + .../v1.4.1/Compatibility_fallback_handler.ts | 98 ++ .../src/web3-v1/v1.4.1/Create_call.ts | 53 + .../src/web3-v1/v1.4.1/Multi_send.ts | 33 + .../web3-v1/v1.4.1/Multi_send_call_only.ts | 37 + .../typechain/src/web3-v1/v1.4.1/Safe.ts | 370 ++++++ .../src/web3-v1/v1.4.1/Safe_proxy_factory.ts | 67 + .../src/web3-v1/v1.4.1/Sign_message_lib.ts | 46 + .../web3-v1/v1.4.1/Simulate_tx_accessor.ts | 49 + .../typechain/src/web3-v1/v1.4.1/index.ts | 11 + .../typechain/src/web3-v1/v1.4.1/types.ts | 64 + .../v1.2.0/@openzeppelin/contracts/index.ts | 5 + .../contracts/token/ERC20/ERC20Mintable.ts | 337 +++++ .../contracts/token/ERC20/index.ts | 4 + .../@openzeppelin/contracts/token/index.ts | 5 + .../ethers-v6/v1.2.0/@openzeppelin/index.ts | 5 + .../tests/ethers-v6/v1.2.0/common.ts | 102 ++ .../tests/ethers-v6/v1.2.0/contracts/index.ts | 5 + .../v1.2.0/contracts/safe_V1_2_0/index.ts | 5 + .../modules/SocialRecoveryModule.ts | 231 ++++ .../contracts/safe_V1_2_0/modules/index.ts | 4 + .../@openzeppelin/contracts/index.ts | 4 + .../token/ERC20/ERC20Mintable__factory.ts | 403 ++++++ .../contracts/token/ERC20/index.ts | 4 + .../@openzeppelin/contracts/token/index.ts | 4 + .../v1.2.0/factories/@openzeppelin/index.ts | 4 + .../v1.2.0/factories/contracts/index.ts | 4 + .../factories/contracts/safe_V1_2_0/index.ts | 4 + .../modules/SocialRecoveryModule__factory.ts | 338 +++++ .../contracts/safe_V1_2_0/modules/index.ts | 4 + .../tests/ethers-v6/v1.2.0/factories/index.ts | 5 + .../typechain/tests/ethers-v6/v1.2.0/index.ts | 12 + .../ethers-v6/v1.3.0/DebugTransactionGuard.ts | 248 ++++ .../tests/ethers-v6/v1.3.0/common.ts | 102 ++ .../DebugTransactionGuard__factory.ts | 255 ++++ .../tests/ethers-v6/v1.3.0/factories/index.ts | 4 + .../typechain/tests/ethers-v6/v1.3.0/index.ts | 6 + .../ethers-v6/v1.4.1/DebugTransactionGuard.ts | 261 ++++ .../tests/ethers-v6/v1.4.1/common.ts | 102 ++ .../DebugTransactionGuard__factory.ts | 286 +++++ .../tests/ethers-v6/v1.4.1/factories/index.ts | 4 + .../typechain/tests/ethers-v6/v1.4.1/index.ts | 6 + .../v1.2.0/@openzeppelin/contracts/index.ts | 5 + .../contracts/token/ERC20/ERC20Mintable.ts | 114 ++ .../contracts/token/ERC20/index.ts | 4 + .../@openzeppelin/contracts/token/index.ts | 5 + .../web3-v1/v1.2.0/@openzeppelin/index.ts | 5 + .../tests/web3-v1/v1.2.0/contracts/index.ts | 5 + .../v1.2.0/contracts/safe_V1_2_0/index.ts | 5 + .../modules/SocialRecoveryModule.ts | 78 ++ .../contracts/safe_V1_2_0/modules/index.ts | 4 + .../typechain/tests/web3-v1/v1.2.0/index.ts | 7 + .../typechain/tests/web3-v1/v1.2.0/types.ts | 64 + .../web3-v1/v1.3.0/DebugTransactionGuard.ts | 99 ++ .../typechain/tests/web3-v1/v1.3.0/index.ts | 4 + .../typechain/tests/web3-v1/v1.3.0/types.ts | 64 + .../web3-v1/v1.4.1/DebugTransactionGuard.ts | 105 ++ .../typechain/tests/web3-v1/v1.4.1/index.ts | 4 + .../typechain/tests/web3-v1/v1.4.1/types.ts | 64 + 144 files changed, 21000 insertions(+), 24 deletions(-) create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/Gnosis_safe.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/Proxy_factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/common.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/Gnosis_safe__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/Proxy_factory__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/index.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/index.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Gnosis_safe.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Multi_send.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Proxy_factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/common.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Gnosis_safe__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Multi_send__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Proxy_factory__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/index.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/index.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/Gnosis_safe.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/common.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/factories/Gnosis_safe__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/factories/index.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/index.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Compatibility_fallback_handler.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Create_call.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Gnosis_safe.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Multi_send.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Multi_send_call_only.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Proxy_factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Sign_message_lib.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Simulate_tx_accessor.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/common.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Compatibility_fallback_handler__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Create_call__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Gnosis_safe__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Multi_send__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Multi_send_call_only__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Proxy_factory__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Sign_message_lib__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Simulate_tx_accessor__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/index.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/index.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Compatibility_fallback_handler.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Create_call.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Multi_send.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Multi_send_call_only.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Safe.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Safe_proxy_factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Sign_message_lib.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Simulate_tx_accessor.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/common.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Compatibility_fallback_handler__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Create_call__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Multi_send__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Multi_send_call_only__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Safe__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Safe_proxy_factory__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Sign_message_lib__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Simulate_tx_accessor__factory.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/index.ts create mode 100644 packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/index.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.0.0/Gnosis_safe.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.0.0/Proxy_factory.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.0.0/index.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.0.0/types.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Gnosis_safe.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Multi_send.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Proxy_factory.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.1.1/index.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.1.1/types.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.2.0/Gnosis_safe.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.2.0/index.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.2.0/types.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Compatibility_fallback_handler.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Create_call.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Gnosis_safe.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Multi_send.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Multi_send_call_only.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Proxy_factory.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Sign_message_lib.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Simulate_tx_accessor.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/index.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.3.0/types.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Compatibility_fallback_handler.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Create_call.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Multi_send.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Multi_send_call_only.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Safe.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Safe_proxy_factory.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Sign_message_lib.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Simulate_tx_accessor.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/index.ts create mode 100644 packages/protocol-kit/typechain/src/web3-v1/v1.4.1/types.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/common.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/common.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/factories/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/common.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/factories/index.ts create mode 100644 packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/types.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/types.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/index.ts create mode 100644 packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/types.ts diff --git a/packages/protocol-kit/src/Safe.ts b/packages/protocol-kit/src/Safe.ts index d5224508e..5fdcf7854 100644 --- a/packages/protocol-kit/src/Safe.ts +++ b/packages/protocol-kit/src/Safe.ts @@ -37,7 +37,8 @@ import { SafeConfigProps, SigningMethod, SigningMethodType, - SwapOwnerTxParams + SwapOwnerTxParams, + SafeModulesPaginated } from './types' import { EthSafeSignature, @@ -406,7 +407,7 @@ class Safe { * @param pageSize - The size of the page. It will be the max length of the returning array. Must be greater then 0. * @returns The list of addresses of all the enabled Safe modules */ - async getModulesPaginated(start: string, pageSize: number = 10): Promise { + async getModulesPaginated(start: string, pageSize: number = 10): Promise { return this.#moduleManager.getModulesPaginated(start, pageSize) } diff --git a/packages/protocol-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts b/packages/protocol-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts index 2f96ac43b..636332a89 100644 --- a/packages/protocol-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts +++ b/packages/protocol-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts @@ -250,7 +250,7 @@ class SafeContract_v1_0_0 return toTxResult(txResponse, options) } - async getModulesPaginated(start: string, pageSize: bigint): Promise { + async getModulesPaginated([start, pageSize]: [string, bigint]): Promise { if (pageSize <= 0) throw new Error('Invalid page size for fetching paginated modules') const [array] = await this.getModules() diff --git a/packages/protocol-kit/src/managers/moduleManager.ts b/packages/protocol-kit/src/managers/moduleManager.ts index ef036492c..0e91160d7 100644 --- a/packages/protocol-kit/src/managers/moduleManager.ts +++ b/packages/protocol-kit/src/managers/moduleManager.ts @@ -1,6 +1,9 @@ import { isRestrictedAddress, sameString } from '@safe-global/protocol-kit/utils/address' import { SENTINEL_ADDRESS } from '@safe-global/protocol-kit/utils/constants' -import { SafeContractImplementationType } from '@safe-global/protocol-kit/types' +import { + SafeContractImplementationType, + SafeModulesPaginated +} from '@safe-global/protocol-kit/types' import SafeProvider from '../SafeProvider' class ModuleManager { @@ -46,17 +49,13 @@ class ModuleManager { return [...modules] } - //TODO: Implement getModulesPaginated in the new code - async getModulesPaginated(start: string, pageSize: number): Promise { - console.log('getModulesPaginated', start, pageSize) - return [] - // if (!this.#safeContract) { - // throw new Error('Safe is not deployed') - // } - - // const [modules] = await this.#safeContract.getModulesPaginated(start, pageSize) + async getModulesPaginated(start: string, pageSize: number): Promise { + if (!this.#safeContract) { + throw new Error('Safe is not deployed') + } - // return [...modules] + const [modules, next] = await this.#safeContract.getModulesPaginated([start, BigInt(pageSize)]) + return { modules: modules as string[], next } } async isModuleEnabled(moduleAddress: string): Promise { diff --git a/packages/protocol-kit/src/types/safeProvider.ts b/packages/protocol-kit/src/types/safeProvider.ts index 3e99c279c..af47b84bb 100644 --- a/packages/protocol-kit/src/types/safeProvider.ts +++ b/packages/protocol-kit/src/types/safeProvider.ts @@ -29,3 +29,8 @@ export type SafeProviderTransaction = { maxFeePerGas?: number | string maxPriorityFeePerGas?: number | string } + +export type SafeModulesPaginated = { + modules: string[] + next: string +} diff --git a/packages/protocol-kit/tests/e2e/moduleManager.test.ts b/packages/protocol-kit/tests/e2e/moduleManager.test.ts index bb0e53b82..627d969a1 100644 --- a/packages/protocol-kit/tests/e2e/moduleManager.test.ts +++ b/packages/protocol-kit/tests/e2e/moduleManager.test.ts @@ -108,11 +108,17 @@ describe('Safe modules manager', () => { safeAddress, contractNetworks }) - chai.expect((await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10)).length).to.be.eq(0) + + const emptyModuleList = await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10) const tx = await safeSdk.createEnableModuleTx(await dailyLimitModule.getAddress()) const txResponse = await safeSdk.executeTransaction(tx) await waitSafeTxReceipt(txResponse) - chai.expect((await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10)).length).to.be.eq(1) + const moduleList = await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10) + + chai.expect(emptyModuleList.modules.length).to.be.eq(0) + chai.expect(emptyModuleList.next).to.be.eq(SENTINEL_ADDRESS) + chai.expect(moduleList.modules.length).to.be.eq(1) + chai.expect(emptyModuleList.next).to.be.eq(SENTINEL_ADDRESS) }) it('should constraint returned modules by pageSize', async () => { @@ -127,7 +133,9 @@ describe('Safe modules manager', () => { contractNetworks }) - chai.expect((await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10)).length).to.be.eq(0) + chai + .expect((await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10)).modules.length) + .to.be.eq(0) const txDailyLimits = await safeSdk.createEnableModuleTx(dailyLimitsAddress) const dailyLimitsResponse = await safeSdk.executeTransaction(txDailyLimits) await waitSafeTxReceipt(dailyLimitsResponse) @@ -135,9 +143,18 @@ describe('Safe modules manager', () => { const soecialRecoveryResponse = await safeSdk.executeTransaction(txSocialRecovery) await waitSafeTxReceipt(soecialRecoveryResponse) - chai.expect((await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10)).length).to.be.eq(2) - chai.expect((await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 1)).length).to.be.eq(1) - chai.expect((await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 1)).length).to.be.eq(1) + const modules1 = await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10) + const modules2 = await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 1) + const modules3 = await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 2) + + chai.expect(modules1.modules.length).to.be.eq(2) + chai.expect(modules1.next).to.be.eq(SENTINEL_ADDRESS) + + chai.expect(modules2.modules.length).to.be.eq(1) + chai.expect(modules2.next).to.be.eq(socialRecoveryAddress) + + chai.expect(modules3.modules.length).to.be.eq(2) + chai.expect(modules3.next).to.be.eq(SENTINEL_ADDRESS) }) it('should offset the returned modules', async () => { @@ -159,11 +176,15 @@ describe('Safe modules manager', () => { const soecialRecoveryResponse = await safeSdk.executeTransaction(txSocialRecovery) await waitSafeTxReceipt(soecialRecoveryResponse) - const [firstModule, secondModule] = await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10) + const { + modules: [firstModule, secondModule] + } = await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10) - chai.expect((await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10)).length).to.be.eq(2) - chai.expect((await safeSdk.getModulesPaginated(firstModule, 10)).length).to.be.eq(1) - chai.expect((await safeSdk.getModulesPaginated(secondModule, 10)).length).to.be.eq(0) + chai + .expect((await safeSdk.getModulesPaginated(SENTINEL_ADDRESS, 10)).modules.length) + .to.be.eq(2) + chai.expect((await safeSdk.getModulesPaginated(firstModule, 10)).modules.length).to.be.eq(1) + chai.expect((await safeSdk.getModulesPaginated(secondModule, 10)).modules.length).to.be.eq(0) }) it('should fail if pageSize is invalid', async () => { diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/Gnosis_safe.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/Gnosis_safe.ts new file mode 100644 index 000000000..a5fb480ba --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/Gnosis_safe.ts @@ -0,0 +1,761 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Gnosis_safeInterface extends Interface { + getFunction( + nameOrSignature: + | 'addOwnerWithThreshold' + | 'DOMAIN_SEPARATOR_TYPEHASH' + | 'isOwner' + | 'execTransactionFromModule' + | 'signedMessages' + | 'enableModule' + | 'changeThreshold' + | 'approvedHashes' + | 'changeMasterCopy' + | 'SENTINEL_MODULES' + | 'SENTINEL_OWNERS' + | 'getOwners' + | 'NAME' + | 'nonce' + | 'getModules' + | 'SAFE_MSG_TYPEHASH' + | 'SAFE_TX_TYPEHASH' + | 'disableModule' + | 'swapOwner' + | 'getThreshold' + | 'domainSeparator' + | 'removeOwner' + | 'VERSION' + | 'setup' + | 'execTransaction' + | 'requiredTxGas' + | 'approveHash' + | 'signMessage' + | 'isValidSignature' + | 'getMessageHash' + | 'encodeTransactionData' + | 'getTransactionHash' + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'ExecutionFailed' + | 'AddedOwner' + | 'RemovedOwner' + | 'ChangedThreshold' + | 'EnabledModule' + | 'DisabledModule' + | 'ContractCreation' + ): EventFragment + + encodeFunctionData( + functionFragment: 'addOwnerWithThreshold', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'DOMAIN_SEPARATOR_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeMasterCopy', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'SENTINEL_MODULES', values?: undefined): string + encodeFunctionData(functionFragment: 'SENTINEL_OWNERS', values?: undefined): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_MSG_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_TX_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData( + functionFragment: 'swapOwner', + values: [AddressLike, AddressLike, AddressLike] + ): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData( + functionFragment: 'removeOwner', + values: [AddressLike, AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData( + functionFragment: 'setup', + values: [ + AddressLike[], + BigNumberish, + AddressLike, + BytesLike, + AddressLike, + BigNumberish, + AddressLike + ] + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike + ] + ): string + encodeFunctionData( + functionFragment: 'requiredTxGas', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'DOMAIN_SEPARATOR_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeMasterCopy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SENTINEL_MODULES', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SENTINEL_OWNERS', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_MSG_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_TX_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'requiredTxGas', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result +} + +export namespace ExecutionFailedEvent { + export type InputTuple = [txHash: BytesLike] + export type OutputTuple = [txHash: string] + export interface OutputObject { + txHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ContractCreationEvent { + export type InputTuple = [newContract: AddressLike] + export type OutputTuple = [newContract: string] + export interface OutputObject { + newContract: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Gnosis_safe extends BaseContract { + connect(runner?: ContractRunner | null): Gnosis_safe + waitForDeployment(): Promise + + interface: Gnosis_safeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + addOwnerWithThreshold: TypedContractMethod< + [owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + DOMAIN_SEPARATOR_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeMasterCopy: TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + + SENTINEL_MODULES: TypedContractMethod<[], [string], 'view'> + + SENTINEL_OWNERS: TypedContractMethod<[], [string], 'view'> + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + NAME: TypedContractMethod<[], [string], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + getModules: TypedContractMethod<[], [string[]], 'view'> + + SAFE_MSG_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + SAFE_TX_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + disableModule: TypedContractMethod< + [prevModule: AddressLike, module: AddressLike], + [void], + 'nonpayable' + > + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + VERSION: TypedContractMethod<[], [string], 'view'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'nonpayable' + > + + requiredTxGas: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + isValidSignature: TypedContractMethod< + [_data: BytesLike, _signature: BytesLike], + [string], + 'nonpayable' + > + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'addOwnerWithThreshold' + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'DOMAIN_SEPARATOR_TYPEHASH' + ): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'isOwner' + ): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'execTransactionFromModule' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'signedMessages' + ): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'enableModule' + ): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'changeThreshold' + ): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes' + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'changeMasterCopy' + ): TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'SENTINEL_MODULES'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SENTINEL_OWNERS'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction(nameOrSignature: 'SAFE_MSG_TYPEHASH'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SAFE_TX_TYPEHASH'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'disableModule' + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'swapOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'removeOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'setup' + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransaction' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'requiredTxGas' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + getFunction( + nameOrSignature: 'approveHash' + ): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'signMessage' + ): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'isValidSignature' + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'getMessageHash' + ): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'encodeTransactionData' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'getTransactionHash' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + getEvent( + key: 'ExecutionFailed' + ): TypedContractEvent< + ExecutionFailedEvent.InputTuple, + ExecutionFailedEvent.OutputTuple, + ExecutionFailedEvent.OutputObject + > + getEvent( + key: 'AddedOwner' + ): TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + getEvent( + key: 'RemovedOwner' + ): TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + getEvent( + key: 'ChangedThreshold' + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'EnabledModule' + ): TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + getEvent( + key: 'DisabledModule' + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'ContractCreation' + ): TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + + filters: { + 'ExecutionFailed(bytes32)': TypedContractEvent< + ExecutionFailedEvent.InputTuple, + ExecutionFailedEvent.OutputTuple, + ExecutionFailedEvent.OutputObject + > + ExecutionFailed: TypedContractEvent< + ExecutionFailedEvent.InputTuple, + ExecutionFailedEvent.OutputTuple, + ExecutionFailedEvent.OutputObject + > + + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'ContractCreation(address)': TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + ContractCreation: TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/Proxy_factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/Proxy_factory.ts new file mode 100644 index 000000000..34d745c40 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/Proxy_factory.ts @@ -0,0 +1,155 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Proxy_factoryInterface extends Interface { + getFunction( + nameOrSignature: + | 'createProxyWithNonce' + | 'proxyCreationCode' + | 'createProxy' + | 'proxyRuntimeCode' + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ProxyCreation'): EventFragment + + encodeFunctionData( + functionFragment: 'createProxyWithNonce', + values: [AddressLike, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'proxyCreationCode', values?: undefined): string + encodeFunctionData(functionFragment: 'createProxy', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'proxyRuntimeCode', values?: undefined): string + + decodeFunctionResult(functionFragment: 'createProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyCreationCode', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyRuntimeCode', data: BytesLike): Result +} + +export namespace ProxyCreationEvent { + export type InputTuple = [proxy: AddressLike] + export type OutputTuple = [proxy: string] + export interface OutputObject { + proxy: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Proxy_factory extends BaseContract { + connect(runner?: ContractRunner | null): Proxy_factory + waitForDeployment(): Promise + + interface: Proxy_factoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + createProxyWithNonce: TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + proxyCreationCode: TypedContractMethod<[], [string], 'view'> + + createProxy: TypedContractMethod< + [masterCopy: AddressLike, data: BytesLike], + [string], + 'nonpayable' + > + + proxyRuntimeCode: TypedContractMethod<[], [string], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'createProxyWithNonce' + ): TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction(nameOrSignature: 'proxyCreationCode'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'createProxy' + ): TypedContractMethod<[masterCopy: AddressLike, data: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'proxyRuntimeCode'): TypedContractMethod<[], [string], 'view'> + + getEvent( + key: 'ProxyCreation' + ): TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + + filters: { + 'ProxyCreation(address)': TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + ProxyCreation: TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/common.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/common.ts new file mode 100644 index 000000000..28d619618 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/common.ts @@ -0,0 +1,102 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription +} from 'ethers' + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + ( + ...args: Partial + ): TypedDeferredTopicFilter> + name: string + fragment: EventFragment + getFragment(...args: Partial): EventFragment +} + +type __TypechainAOutputTuple = T extends TypedContractEvent ? W : never +type __TypechainOutputObject = T extends TypedContractEvent + ? V + : never + +export interface TypedEventLog extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export type TypedListener = ( + ...listenerArg: [...__TypechainAOutputTuple, TypedEventLog, ...undefined[]] +) => void + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise +} + +export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never + +export type StateMutability = 'nonpayable' | 'payable' | 'view' + +export type BaseOverrides = Omit +export type NonPayableOverrides = Omit +export type PayableOverrides = Omit +export type ViewOverrides = Omit +export type Overrides = S extends 'nonpayable' + ? NonPayableOverrides + : S extends 'payable' + ? PayableOverrides + : ViewOverrides + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides] +export type ContractMethodArgs, S extends StateMutability> = PostfixOverrides< + { [I in keyof A]-?: A[I] | Typed }, + S +> + +export type DefaultReturnType = R extends Array ? R[0] : R + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = 'payable' +> { + ( + ...args: ContractMethodArgs + ): S extends 'view' ? Promise> : Promise + + name: string + + fragment: FunctionFragment + + getFragment(...args: ContractMethodArgs): FunctionFragment + + populateTransaction(...args: ContractMethodArgs): Promise + staticCall(...args: ContractMethodArgs): Promise> + send(...args: ContractMethodArgs): Promise + estimateGas(...args: ContractMethodArgs): Promise + staticCallResult(...args: ContractMethodArgs): Promise +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/Gnosis_safe__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/Gnosis_safe__factory.ts new file mode 100644 index 000000000..32058a3be --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/Gnosis_safe__factory.ts @@ -0,0 +1,794 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Gnosis_safe, Gnosis_safeInterface } from '../Gnosis_safe' + +const _abi = [ + { + constant: false, + inputs: [ + { + name: 'owner', + type: 'address' + }, + { + name: '_threshold', + type: 'uint256' + } + ], + name: 'addOwnerWithThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'DOMAIN_SEPARATOR_TYPEHASH', + outputs: [ + { + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + name: 'owner', + type: 'address' + } + ], + name: 'isOwner', + outputs: [ + { + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: 'to', + type: 'address' + }, + { + name: 'value', + type: 'uint256' + }, + { + name: 'data', + type: 'bytes' + }, + { + name: 'operation', + type: 'uint8' + } + ], + name: 'execTransactionFromModule', + outputs: [ + { + name: 'success', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + name: '', + type: 'bytes32' + } + ], + name: 'signedMessages', + outputs: [ + { + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: 'module', + type: 'address' + } + ], + name: 'enableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: '_threshold', + type: 'uint256' + } + ], + name: 'changeThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + name: '', + type: 'address' + }, + { + name: '', + type: 'bytes32' + } + ], + name: 'approvedHashes', + outputs: [ + { + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: '_masterCopy', + type: 'address' + } + ], + name: 'changeMasterCopy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'SENTINEL_MODULES', + outputs: [ + { + name: '', + type: 'address' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'SENTINEL_OWNERS', + outputs: [ + { + name: '', + type: 'address' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'getOwners', + outputs: [ + { + name: '', + type: 'address[]' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'NAME', + outputs: [ + { + name: '', + type: 'string' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'nonce', + outputs: [ + { + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'getModules', + outputs: [ + { + name: '', + type: 'address[]' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'SAFE_MSG_TYPEHASH', + outputs: [ + { + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'SAFE_TX_TYPEHASH', + outputs: [ + { + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: 'prevModule', + type: 'address' + }, + { + name: 'module', + type: 'address' + } + ], + name: 'disableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: 'prevOwner', + type: 'address' + }, + { + name: 'oldOwner', + type: 'address' + }, + { + name: 'newOwner', + type: 'address' + } + ], + name: 'swapOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'getThreshold', + outputs: [ + { + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'domainSeparator', + outputs: [ + { + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: 'prevOwner', + type: 'address' + }, + { + name: 'owner', + type: 'address' + }, + { + name: '_threshold', + type: 'uint256' + } + ], + name: 'removeOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'VERSION', + outputs: [ + { + name: '', + type: 'string' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + payable: true, + stateMutability: 'payable', + type: 'fallback' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'txHash', + type: 'bytes32' + } + ], + name: 'ExecutionFailed', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'owner', + type: 'address' + } + ], + name: 'AddedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'owner', + type: 'address' + } + ], + name: 'RemovedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'threshold', + type: 'uint256' + } + ], + name: 'ChangedThreshold', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'module', + type: 'address' + } + ], + name: 'EnabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'module', + type: 'address' + } + ], + name: 'DisabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'newContract', + type: 'address' + } + ], + name: 'ContractCreation', + type: 'event' + }, + { + constant: false, + inputs: [ + { + name: '_owners', + type: 'address[]' + }, + { + name: '_threshold', + type: 'uint256' + }, + { + name: 'to', + type: 'address' + }, + { + name: 'data', + type: 'bytes' + }, + { + name: 'paymentToken', + type: 'address' + }, + { + name: 'payment', + type: 'uint256' + }, + { + name: 'paymentReceiver', + type: 'address' + } + ], + name: 'setup', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: 'to', + type: 'address' + }, + { + name: 'value', + type: 'uint256' + }, + { + name: 'data', + type: 'bytes' + }, + { + name: 'operation', + type: 'uint8' + }, + { + name: 'safeTxGas', + type: 'uint256' + }, + { + name: 'baseGas', + type: 'uint256' + }, + { + name: 'gasPrice', + type: 'uint256' + }, + { + name: 'gasToken', + type: 'address' + }, + { + name: 'refundReceiver', + type: 'address' + }, + { + name: 'signatures', + type: 'bytes' + } + ], + name: 'execTransaction', + outputs: [ + { + name: 'success', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: 'to', + type: 'address' + }, + { + name: 'value', + type: 'uint256' + }, + { + name: 'data', + type: 'bytes' + }, + { + name: 'operation', + type: 'uint8' + } + ], + name: 'requiredTxGas', + outputs: [ + { + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: 'hashToApprove', + type: 'bytes32' + } + ], + name: 'approveHash', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: '_data', + type: 'bytes' + } + ], + name: 'signMessage', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: '_data', + type: 'bytes' + }, + { + name: '_signature', + type: 'bytes' + } + ], + name: 'isValidSignature', + outputs: [ + { + name: '', + type: 'bytes4' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + name: 'message', + type: 'bytes' + } + ], + name: 'getMessageHash', + outputs: [ + { + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + name: 'to', + type: 'address' + }, + { + name: 'value', + type: 'uint256' + }, + { + name: 'data', + type: 'bytes' + }, + { + name: 'operation', + type: 'uint8' + }, + { + name: 'safeTxGas', + type: 'uint256' + }, + { + name: 'baseGas', + type: 'uint256' + }, + { + name: 'gasPrice', + type: 'uint256' + }, + { + name: 'gasToken', + type: 'address' + }, + { + name: 'refundReceiver', + type: 'address' + }, + { + name: '_nonce', + type: 'uint256' + } + ], + name: 'encodeTransactionData', + outputs: [ + { + name: '', + type: 'bytes' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + name: 'to', + type: 'address' + }, + { + name: 'value', + type: 'uint256' + }, + { + name: 'data', + type: 'bytes' + }, + { + name: 'operation', + type: 'uint8' + }, + { + name: 'safeTxGas', + type: 'uint256' + }, + { + name: 'baseGas', + type: 'uint256' + }, + { + name: 'gasPrice', + type: 'uint256' + }, + { + name: 'gasToken', + type: 'address' + }, + { + name: 'refundReceiver', + type: 'address' + }, + { + name: '_nonce', + type: 'uint256' + } + ], + name: 'getTransactionHash', + outputs: [ + { + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + } +] as const + +export class Gnosis_safe__factory { + static readonly abi = _abi + static createInterface(): Gnosis_safeInterface { + return new Interface(_abi) as Gnosis_safeInterface + } + static connect(address: string, runner?: ContractRunner | null): Gnosis_safe { + return new Contract(address, _abi, runner) as unknown as Gnosis_safe + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/Proxy_factory__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/Proxy_factory__factory.ts new file mode 100644 index 000000000..ce36d65b5 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/Proxy_factory__factory.ts @@ -0,0 +1,109 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Proxy_factory, Proxy_factoryInterface } from '../Proxy_factory' + +const _abi = [ + { + constant: false, + inputs: [ + { + name: '_mastercopy', + type: 'address' + }, + { + name: 'initializer', + type: 'bytes' + }, + { + name: 'saltNonce', + type: 'uint256' + } + ], + name: 'createProxyWithNonce', + outputs: [ + { + name: 'proxy', + type: 'address' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'proxyCreationCode', + outputs: [ + { + name: '', + type: 'bytes' + } + ], + payable: false, + stateMutability: 'pure', + type: 'function' + }, + { + constant: false, + inputs: [ + { + name: 'masterCopy', + type: 'address' + }, + { + name: 'data', + type: 'bytes' + } + ], + name: 'createProxy', + outputs: [ + { + name: 'proxy', + type: 'address' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'proxyRuntimeCode', + outputs: [ + { + name: '', + type: 'bytes' + } + ], + payable: false, + stateMutability: 'pure', + type: 'function' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'proxy', + type: 'address' + } + ], + name: 'ProxyCreation', + type: 'event' + } +] as const + +export class Proxy_factory__factory { + static readonly abi = _abi + static createInterface(): Proxy_factoryInterface { + return new Interface(_abi) as Proxy_factoryInterface + } + static connect(address: string, runner?: ContractRunner | null): Proxy_factory { + return new Contract(address, _abi, runner) as unknown as Proxy_factory + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/index.ts new file mode 100644 index 000000000..e6cea5922 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/factories/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Gnosis_safe__factory } from './Gnosis_safe__factory' +export { Proxy_factory__factory } from './Proxy_factory__factory' diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/index.ts new file mode 100644 index 000000000..d1c6869ef --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.0.0/index.ts @@ -0,0 +1,8 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Gnosis_safe } from './Gnosis_safe' +export type { Proxy_factory } from './Proxy_factory' +export * as factories from './factories' +export { Gnosis_safe__factory } from './factories/Gnosis_safe__factory' +export { Proxy_factory__factory } from './factories/Proxy_factory__factory' diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Gnosis_safe.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Gnosis_safe.ts new file mode 100644 index 000000000..c9abf8052 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Gnosis_safe.ts @@ -0,0 +1,939 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Gnosis_safeInterface extends Interface { + getFunction( + nameOrSignature: + | 'NAME' + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approvedHashes' + | 'changeMasterCopy' + | 'changeThreshold' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getModules' + | 'getModulesPaginated' + | 'getOwners' + | 'getThreshold' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'setFallbackHandler' + | 'signedMessages' + | 'swapOwner' + | 'setup' + | 'execTransaction' + | 'requiredTxGas' + | 'approveHash' + | 'signMessage' + | 'isValidSignature' + | 'getMessageHash' + | 'encodeTransactionData' + | 'getTransactionHash' + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedMasterCopy' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SignMsg' + ): EventFragment + + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData( + functionFragment: 'addOwnerWithThreshold', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeMasterCopy', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData( + functionFragment: 'getModulesPaginated', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData( + functionFragment: 'removeOwner', + values: [AddressLike, AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'swapOwner', + values: [AddressLike, AddressLike, AddressLike] + ): string + encodeFunctionData( + functionFragment: 'setup', + values: [ + AddressLike[], + BigNumberish, + AddressLike, + BytesLike, + AddressLike, + AddressLike, + BigNumberish, + AddressLike + ] + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike + ] + ): string + encodeFunctionData( + functionFragment: 'requiredTxGas', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeMasterCopy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult( + functionFragment: 'execTransactionFromModuleReturnData', + data: BytesLike + ): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'requiredTxGas', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [masterCopy: AddressLike] + export type OutputTuple = [masterCopy: string] + export interface OutputObject { + masterCopy: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Gnosis_safe extends BaseContract { + connect(runner?: ContractRunner | null): Gnosis_safe + waitForDeployment(): Promise + + interface: Gnosis_safeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod< + [owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeMasterCopy: TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + disableModule: TypedContractMethod< + [prevModule: AddressLike, module: AddressLike], + [void], + 'nonpayable' + > + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getModules: TypedContractMethod<[], [string[]], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'nonpayable' + > + + requiredTxGas: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + isValidSignature: TypedContractMethod< + [_data: BytesLike, _signature: BytesLike], + [string], + 'nonpayable' + > + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold' + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes' + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'changeMasterCopy' + ): TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'changeThreshold' + ): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'disableModule' + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'enableModule' + ): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'execTransactionFromModule' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated' + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'isOwner' + ): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'setFallbackHandler' + ): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'signedMessages' + ): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'swapOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'setup' + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransaction' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'requiredTxGas' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + getFunction( + nameOrSignature: 'approveHash' + ): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'signMessage' + ): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'isValidSignature' + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'getMessageHash' + ): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'encodeTransactionData' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'getTransactionHash' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + getEvent( + key: 'AddedOwner' + ): TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + getEvent( + key: 'ApproveHash' + ): TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + getEvent( + key: 'ChangedMasterCopy' + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + getEvent( + key: 'ChangedThreshold' + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule' + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule' + ): TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + getEvent( + key: 'ExecutionFailure' + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure' + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess' + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess' + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner' + ): TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + getEvent( + key: 'SignMsg' + ): TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SignMsg(bytes32)': TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + SignMsg: TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Multi_send.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Multi_send.ts new file mode 100644 index 000000000..ee6a0f2b5 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Multi_send.ts @@ -0,0 +1,80 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod +} from './common' + +export interface Multi_sendInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send + waitForDeployment(): Promise + + interface: Multi_sendInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'multiSend' + ): TypedContractMethod<[transactions: BytesLike], [void], 'nonpayable'> + + filters: {} +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Proxy_factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Proxy_factory.ts new file mode 100644 index 000000000..aa3ba7cac --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/Proxy_factory.ts @@ -0,0 +1,206 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Proxy_factoryInterface extends Interface { + getFunction( + nameOrSignature: + | 'createProxy' + | 'proxyRuntimeCode' + | 'proxyCreationCode' + | 'createProxyWithNonce' + | 'createProxyWithCallback' + | 'calculateCreateProxyWithNonceAddress' + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ProxyCreation'): EventFragment + + encodeFunctionData(functionFragment: 'createProxy', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'proxyRuntimeCode', values?: undefined): string + encodeFunctionData(functionFragment: 'proxyCreationCode', values?: undefined): string + encodeFunctionData( + functionFragment: 'createProxyWithNonce', + values: [AddressLike, BytesLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'createProxyWithCallback', + values: [AddressLike, BytesLike, BigNumberish, AddressLike] + ): string + encodeFunctionData( + functionFragment: 'calculateCreateProxyWithNonceAddress', + values: [AddressLike, BytesLike, BigNumberish] + ): string + + decodeFunctionResult(functionFragment: 'createProxy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyRuntimeCode', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyCreationCode', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithCallback', data: BytesLike): Result + decodeFunctionResult( + functionFragment: 'calculateCreateProxyWithNonceAddress', + data: BytesLike + ): Result +} + +export namespace ProxyCreationEvent { + export type InputTuple = [proxy: AddressLike] + export type OutputTuple = [proxy: string] + export interface OutputObject { + proxy: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Proxy_factory extends BaseContract { + connect(runner?: ContractRunner | null): Proxy_factory + waitForDeployment(): Promise + + interface: Proxy_factoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + createProxy: TypedContractMethod< + [masterCopy: AddressLike, data: BytesLike], + [string], + 'nonpayable' + > + + proxyRuntimeCode: TypedContractMethod<[], [string], 'view'> + + proxyCreationCode: TypedContractMethod<[], [string], 'view'> + + createProxyWithNonce: TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + createProxyWithCallback: TypedContractMethod< + [ + _mastercopy: AddressLike, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: AddressLike + ], + [string], + 'nonpayable' + > + + calculateCreateProxyWithNonceAddress: TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'createProxy' + ): TypedContractMethod<[masterCopy: AddressLike, data: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'proxyRuntimeCode'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'proxyCreationCode'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'createProxyWithNonce' + ): TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithCallback' + ): TypedContractMethod< + [ + _mastercopy: AddressLike, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: AddressLike + ], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'calculateCreateProxyWithNonceAddress' + ): TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + getEvent( + key: 'ProxyCreation' + ): TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + + filters: { + 'ProxyCreation(address)': TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + ProxyCreation: TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/common.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/common.ts new file mode 100644 index 000000000..28d619618 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/common.ts @@ -0,0 +1,102 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription +} from 'ethers' + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + ( + ...args: Partial + ): TypedDeferredTopicFilter> + name: string + fragment: EventFragment + getFragment(...args: Partial): EventFragment +} + +type __TypechainAOutputTuple = T extends TypedContractEvent ? W : never +type __TypechainOutputObject = T extends TypedContractEvent + ? V + : never + +export interface TypedEventLog extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export type TypedListener = ( + ...listenerArg: [...__TypechainAOutputTuple, TypedEventLog, ...undefined[]] +) => void + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise +} + +export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never + +export type StateMutability = 'nonpayable' | 'payable' | 'view' + +export type BaseOverrides = Omit +export type NonPayableOverrides = Omit +export type PayableOverrides = Omit +export type ViewOverrides = Omit +export type Overrides = S extends 'nonpayable' + ? NonPayableOverrides + : S extends 'payable' + ? PayableOverrides + : ViewOverrides + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides] +export type ContractMethodArgs, S extends StateMutability> = PostfixOverrides< + { [I in keyof A]-?: A[I] | Typed }, + S +> + +export type DefaultReturnType = R extends Array ? R[0] : R + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = 'payable' +> { + ( + ...args: ContractMethodArgs + ): S extends 'view' ? Promise> : Promise + + name: string + + fragment: FunctionFragment + + getFragment(...args: ContractMethodArgs): FunctionFragment + + populateTransaction(...args: ContractMethodArgs): Promise + staticCall(...args: ContractMethodArgs): Promise> + send(...args: ContractMethodArgs): Promise + estimateGas(...args: ContractMethodArgs): Promise + staticCallResult(...args: ContractMethodArgs): Promise +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Gnosis_safe__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Gnosis_safe__factory.ts new file mode 100644 index 000000000..f2525c35c --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Gnosis_safe__factory.ts @@ -0,0 +1,996 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Gnosis_safe, Gnosis_safeInterface } from '../Gnosis_safe' + +const _abi = [ + { + inputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'constructor' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'AddedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'approvedHash', + type: 'bytes32' + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'ApproveHash', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'masterCopy', + type: 'address' + } + ], + name: 'ChangedMasterCopy', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256' + } + ], + name: 'ChangedThreshold', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract Module', + name: 'module', + type: 'address' + } + ], + name: 'DisabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract Module', + name: 'module', + type: 'address' + } + ], + name: 'EnabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256' + } + ], + name: 'ExecutionFailure', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'ExecutionFromModuleFailure', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'ExecutionFromModuleSuccess', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256' + } + ], + name: 'ExecutionSuccess', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'RemovedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32' + } + ], + name: 'SignMsg', + type: 'event' + }, + { + payable: true, + stateMutability: 'payable', + type: 'fallback' + }, + { + constant: true, + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'addOwnerWithThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'approvedHashes', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_masterCopy', + type: 'address' + } + ], + name: 'changeMasterCopy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'changeThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'contract Module', + name: 'prevModule', + type: 'address' + }, + { + internalType: 'contract Module', + name: 'module', + type: 'address' + } + ], + name: 'disableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'contract Module', + name: 'module', + type: 'address' + } + ], + name: 'enableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address' + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256' + } + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]' + }, + { + internalType: 'address', + name: 'next', + type: 'address' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'removeOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address' + } + ], + name: 'setFallbackHandler', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address' + } + ], + name: 'swapOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + }, + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address' + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address' + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256' + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address' + } + ], + name: 'setup', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + } + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'requiredTxGas', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes32', + name: 'hashToApprove', + type: 'bytes32' + } + ], + name: 'approveHash', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes' + } + ], + name: 'signMessage', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes' + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes' + } + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes' + } + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256' + } + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256' + } + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + } +] as const + +export class Gnosis_safe__factory { + static readonly abi = _abi + static createInterface(): Gnosis_safeInterface { + return new Interface(_abi) as Gnosis_safeInterface + } + static connect(address: string, runner?: ContractRunner | null): Gnosis_safe { + return new Contract(address, _abi, runner) as unknown as Gnosis_safe + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Multi_send__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Multi_send__factory.ts new file mode 100644 index 000000000..55b97697c --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Multi_send__factory.ts @@ -0,0 +1,40 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Multi_send, Multi_sendInterface } from '../Multi_send' + +const _abi = [ + { + inputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'constructor' + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes' + } + ], + name: 'multiSend', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + } +] as const + +export class Multi_send__factory { + static readonly abi = _abi + static createInterface(): Multi_sendInterface { + return new Interface(_abi) as Multi_sendInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send { + return new Contract(address, _abi, runner) as unknown as Multi_send + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Proxy_factory__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Proxy_factory__factory.ts new file mode 100644 index 000000000..f673229b7 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/Proxy_factory__factory.ts @@ -0,0 +1,186 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Proxy_factory, Proxy_factoryInterface } from '../Proxy_factory' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + } + ], + name: 'ProxyCreation', + type: 'event' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'masterCopy', + type: 'address' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + } + ], + name: 'createProxy', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'proxyRuntimeCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + payable: false, + stateMutability: 'pure', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'proxyCreationCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + payable: false, + stateMutability: 'pure', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_mastercopy', + type: 'address' + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256' + } + ], + name: 'createProxyWithNonce', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_mastercopy', + type: 'address' + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256' + }, + { + internalType: 'contract IProxyCreationCallback', + name: 'callback', + type: 'address' + } + ], + name: 'createProxyWithCallback', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_mastercopy', + type: 'address' + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256' + } + ], + name: 'calculateCreateProxyWithNonceAddress', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + } +] as const + +export class Proxy_factory__factory { + static readonly abi = _abi + static createInterface(): Proxy_factoryInterface { + return new Interface(_abi) as Proxy_factoryInterface + } + static connect(address: string, runner?: ContractRunner | null): Proxy_factory { + return new Contract(address, _abi, runner) as unknown as Proxy_factory + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/index.ts new file mode 100644 index 000000000..375513aca --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/factories/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Gnosis_safe__factory } from './Gnosis_safe__factory' +export { Multi_send__factory } from './Multi_send__factory' +export { Proxy_factory__factory } from './Proxy_factory__factory' diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/index.ts new file mode 100644 index 000000000..aa7667771 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.1.1/index.ts @@ -0,0 +1,10 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Gnosis_safe } from './Gnosis_safe' +export type { Multi_send } from './Multi_send' +export type { Proxy_factory } from './Proxy_factory' +export * as factories from './factories' +export { Gnosis_safe__factory } from './factories/Gnosis_safe__factory' +export { Proxy_factory__factory } from './factories/Proxy_factory__factory' +export { Multi_send__factory } from './factories/Multi_send__factory' diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/Gnosis_safe.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/Gnosis_safe.ts new file mode 100644 index 000000000..566a2457d --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/Gnosis_safe.ts @@ -0,0 +1,947 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Gnosis_safeInterface extends Interface { + getFunction( + nameOrSignature: + | 'NAME' + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approvedHashes' + | 'changeMasterCopy' + | 'changeThreshold' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getModules' + | 'getModulesPaginated' + | 'getOwners' + | 'getThreshold' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'setFallbackHandler' + | 'signedMessages' + | 'swapOwner' + | 'setup' + | 'execTransaction' + | 'requiredTxGas' + | 'approveHash' + | 'signMessage' + | 'isValidSignature' + | 'getMessageHash' + | 'encodeTransactionData' + | 'getTransactionHash' + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedMasterCopy' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SignMsg' + ): EventFragment + + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData( + functionFragment: 'addOwnerWithThreshold', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeMasterCopy', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData( + functionFragment: 'getModulesPaginated', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData( + functionFragment: 'removeOwner', + values: [AddressLike, AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'swapOwner', + values: [AddressLike, AddressLike, AddressLike] + ): string + encodeFunctionData( + functionFragment: 'setup', + values: [ + AddressLike[], + BigNumberish, + AddressLike, + BytesLike, + AddressLike, + AddressLike, + BigNumberish, + AddressLike + ] + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike + ] + ): string + encodeFunctionData( + functionFragment: 'requiredTxGas', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeMasterCopy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult( + functionFragment: 'execTransactionFromModuleReturnData', + data: BytesLike + ): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isModuleEnabled', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'requiredTxGas', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [masterCopy: AddressLike] + export type OutputTuple = [masterCopy: string] + export interface OutputObject { + masterCopy: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Gnosis_safe extends BaseContract { + connect(runner?: ContractRunner | null): Gnosis_safe + waitForDeployment(): Promise + + interface: Gnosis_safeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod< + [owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeMasterCopy: TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + disableModule: TypedContractMethod< + [prevModule: AddressLike, module: AddressLike], + [void], + 'nonpayable' + > + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getModules: TypedContractMethod<[], [string[]], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'payable' + > + + requiredTxGas: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + isValidSignature: TypedContractMethod< + [_data: BytesLike, _signature: BytesLike], + [string], + 'nonpayable' + > + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold' + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes' + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'changeMasterCopy' + ): TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'changeThreshold' + ): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'disableModule' + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'enableModule' + ): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'execTransactionFromModule' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated' + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'isModuleEnabled' + ): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'isOwner' + ): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'setFallbackHandler' + ): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'signedMessages' + ): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'swapOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'setup' + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransaction' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'requiredTxGas' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + getFunction( + nameOrSignature: 'approveHash' + ): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'signMessage' + ): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'isValidSignature' + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'getMessageHash' + ): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'encodeTransactionData' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'getTransactionHash' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + getEvent( + key: 'AddedOwner' + ): TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + getEvent( + key: 'ApproveHash' + ): TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + getEvent( + key: 'ChangedMasterCopy' + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + getEvent( + key: 'ChangedThreshold' + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule' + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule' + ): TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + getEvent( + key: 'ExecutionFailure' + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure' + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess' + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess' + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner' + ): TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + getEvent( + key: 'SignMsg' + ): TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SignMsg(bytes32)': TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + SignMsg: TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/common.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/common.ts new file mode 100644 index 000000000..28d619618 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/common.ts @@ -0,0 +1,102 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription +} from 'ethers' + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + ( + ...args: Partial + ): TypedDeferredTopicFilter> + name: string + fragment: EventFragment + getFragment(...args: Partial): EventFragment +} + +type __TypechainAOutputTuple = T extends TypedContractEvent ? W : never +type __TypechainOutputObject = T extends TypedContractEvent + ? V + : never + +export interface TypedEventLog extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export type TypedListener = ( + ...listenerArg: [...__TypechainAOutputTuple, TypedEventLog, ...undefined[]] +) => void + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise +} + +export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never + +export type StateMutability = 'nonpayable' | 'payable' | 'view' + +export type BaseOverrides = Omit +export type NonPayableOverrides = Omit +export type PayableOverrides = Omit +export type ViewOverrides = Omit +export type Overrides = S extends 'nonpayable' + ? NonPayableOverrides + : S extends 'payable' + ? PayableOverrides + : ViewOverrides + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides] +export type ContractMethodArgs, S extends StateMutability> = PostfixOverrides< + { [I in keyof A]-?: A[I] | Typed }, + S +> + +export type DefaultReturnType = R extends Array ? R[0] : R + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = 'payable' +> { + ( + ...args: ContractMethodArgs + ): S extends 'view' ? Promise> : Promise + + name: string + + fragment: FunctionFragment + + getFragment(...args: ContractMethodArgs): FunctionFragment + + populateTransaction(...args: ContractMethodArgs): Promise + staticCall(...args: ContractMethodArgs): Promise> + send(...args: ContractMethodArgs): Promise + estimateGas(...args: ContractMethodArgs): Promise + staticCallResult(...args: ContractMethodArgs): Promise +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/factories/Gnosis_safe__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/factories/Gnosis_safe__factory.ts new file mode 100644 index 000000000..9d31fccb2 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/factories/Gnosis_safe__factory.ts @@ -0,0 +1,1017 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Gnosis_safe, Gnosis_safeInterface } from '../Gnosis_safe' + +const _abi = [ + { + inputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'constructor' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'AddedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'approvedHash', + type: 'bytes32' + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'ApproveHash', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'masterCopy', + type: 'address' + } + ], + name: 'ChangedMasterCopy', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256' + } + ], + name: 'ChangedThreshold', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract Module', + name: 'module', + type: 'address' + } + ], + name: 'DisabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract Module', + name: 'module', + type: 'address' + } + ], + name: 'EnabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256' + } + ], + name: 'ExecutionFailure', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'ExecutionFromModuleFailure', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'ExecutionFromModuleSuccess', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256' + } + ], + name: 'ExecutionSuccess', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'RemovedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32' + } + ], + name: 'SignMsg', + type: 'event' + }, + { + payable: true, + stateMutability: 'payable', + type: 'fallback' + }, + { + constant: true, + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'addOwnerWithThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'approvedHashes', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_masterCopy', + type: 'address' + } + ], + name: 'changeMasterCopy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'changeThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'contract Module', + name: 'prevModule', + type: 'address' + }, + { + internalType: 'contract Module', + name: 'module', + type: 'address' + } + ], + name: 'disableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'contract Module', + name: 'module', + type: 'address' + } + ], + name: 'enableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address' + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256' + } + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]' + }, + { + internalType: 'address', + name: 'next', + type: 'address' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'contract Module', + name: 'module', + type: 'address' + } + ], + name: 'isModuleEnabled', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'removeOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address' + } + ], + name: 'setFallbackHandler', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address' + } + ], + name: 'swapOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + }, + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address' + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address' + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256' + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address' + } + ], + name: 'setup', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + } + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + payable: true, + stateMutability: 'payable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'requiredTxGas', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes32', + name: 'hashToApprove', + type: 'bytes32' + } + ], + name: 'approveHash', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes' + } + ], + name: 'signMessage', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes' + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes' + } + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes' + } + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256' + } + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256' + } + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + } +] as const + +export class Gnosis_safe__factory { + static readonly abi = _abi + static createInterface(): Gnosis_safeInterface { + return new Interface(_abi) as Gnosis_safeInterface + } + static connect(address: string, runner?: ContractRunner | null): Gnosis_safe { + return new Contract(address, _abi, runner) as unknown as Gnosis_safe + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/factories/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/factories/index.ts new file mode 100644 index 000000000..3a6d6c2a8 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/factories/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Gnosis_safe__factory } from './Gnosis_safe__factory' diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/index.ts new file mode 100644 index 000000000..7c9c3bc19 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.2.0/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Gnosis_safe } from './Gnosis_safe' +export * as factories from './factories' +export { Gnosis_safe__factory } from './factories/Gnosis_safe__factory' diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Compatibility_fallback_handler.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Compatibility_fallback_handler.ts new file mode 100644 index 000000000..df73d94dd --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Compatibility_fallback_handler.ts @@ -0,0 +1,274 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod +} from './common' + +export interface Compatibility_fallback_handlerInterface extends Interface { + getFunction( + nameOrSignature: + | 'NAME' + | 'VERSION' + | 'getMessageHash' + | 'getMessageHashForSafe' + | 'getModules' + | 'isValidSignature(bytes32,bytes)' + | 'isValidSignature(bytes,bytes)' + | 'onERC1155BatchReceived' + | 'onERC1155Received' + | 'onERC721Received' + | 'simulate' + | 'supportsInterface' + | 'tokensReceived' + ): FunctionFragment + + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'getMessageHashForSafe', + values: [AddressLike, BytesLike] + ): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData( + functionFragment: 'isValidSignature(bytes32,bytes)', + values: [BytesLike, BytesLike] + ): string + encodeFunctionData( + functionFragment: 'isValidSignature(bytes,bytes)', + values: [BytesLike, BytesLike] + ): string + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike] + ): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike] + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike] + ): string + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'tokensReceived', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike, BytesLike] + ): string + + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHashForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes32,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155BatchReceived', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC721Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'tokensReceived', data: BytesLike): Result +} + +export interface Compatibility_fallback_handler extends BaseContract { + connect(runner?: ContractRunner | null): Compatibility_fallback_handler + waitForDeployment(): Promise + + interface: Compatibility_fallback_handlerInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + getMessageHashForSafe: TypedContractMethod< + [safe: AddressLike, message: BytesLike], + [string], + 'view' + > + + getModules: TypedContractMethod<[], [string[]], 'view'> + + 'isValidSignature(bytes32,bytes)': TypedContractMethod< + [_dataHash: BytesLike, _signature: BytesLike], + [string], + 'view' + > + + 'isValidSignature(bytes,bytes)': TypedContractMethod< + [_data: BytesLike, _signature: BytesLike], + [string], + 'view' + > + + onERC1155BatchReceived: TypedContractMethod< + [ + arg0: AddressLike, + arg1: AddressLike, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike + ], + [string], + 'view' + > + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + + simulate: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [string], + 'nonpayable' + > + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + tokensReceived: TypedContractMethod< + [ + arg0: AddressLike, + arg1: AddressLike, + arg2: AddressLike, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike + ], + [void], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'getMessageHash' + ): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'getMessageHashForSafe' + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes32,bytes)' + ): TypedContractMethod<[_dataHash: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes,bytes)' + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'onERC1155BatchReceived' + ): TypedContractMethod< + [ + arg0: AddressLike, + arg1: AddressLike, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC1155Received' + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC721Received' + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'simulate' + ): TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'supportsInterface' + ): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'tokensReceived' + ): TypedContractMethod< + [ + arg0: AddressLike, + arg1: AddressLike, + arg2: AddressLike, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike + ], + [void], + 'view' + > + + filters: {} +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Create_call.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Create_call.ts new file mode 100644 index 000000000..a3753f4b3 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Create_call.ts @@ -0,0 +1,139 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Create_callInterface extends Interface { + getFunction(nameOrSignature: 'performCreate' | 'performCreate2'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ContractCreation'): EventFragment + + encodeFunctionData(functionFragment: 'performCreate', values: [BigNumberish, BytesLike]): string + encodeFunctionData( + functionFragment: 'performCreate2', + values: [BigNumberish, BytesLike, BytesLike] + ): string + + decodeFunctionResult(functionFragment: 'performCreate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'performCreate2', data: BytesLike): Result +} + +export namespace ContractCreationEvent { + export type InputTuple = [newContract: AddressLike] + export type OutputTuple = [newContract: string] + export interface OutputObject { + newContract: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Create_call extends BaseContract { + connect(runner?: ContractRunner | null): Create_call + waitForDeployment(): Promise + + interface: Create_callInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + performCreate: TypedContractMethod< + [value: BigNumberish, deploymentData: BytesLike], + [string], + 'nonpayable' + > + + performCreate2: TypedContractMethod< + [value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], + [string], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'performCreate' + ): TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'performCreate2' + ): TypedContractMethod< + [value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], + [string], + 'nonpayable' + > + + getEvent( + key: 'ContractCreation' + ): TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + + filters: { + 'ContractCreation(address)': TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + ContractCreation: TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Gnosis_safe.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Gnosis_safe.ts new file mode 100644 index 000000000..33099fc92 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Gnosis_safe.ts @@ -0,0 +1,1088 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Gnosis_safeInterface extends Interface { + getFunction( + nameOrSignature: + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approveHash' + | 'approvedHashes' + | 'changeThreshold' + | 'checkNSignatures' + | 'checkSignatures' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'encodeTransactionData' + | 'execTransaction' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getChainId' + | 'getModulesPaginated' + | 'getOwners' + | 'getStorageAt' + | 'getThreshold' + | 'getTransactionHash' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'requiredTxGas' + | 'setFallbackHandler' + | 'setGuard' + | 'setup' + | 'signedMessages' + | 'simulateAndRevert' + | 'swapOwner' + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedFallbackHandler' + | 'ChangedGuard' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SafeReceived' + | 'SafeSetup' + | 'SignMsg' + ): EventFragment + + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData( + functionFragment: 'addOwnerWithThreshold', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData( + functionFragment: 'checkNSignatures', + values: [BytesLike, BytesLike, BytesLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'checkSignatures', + values: [BytesLike, BytesLike, BytesLike] + ): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike + ] + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData( + functionFragment: 'getModulesPaginated', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getStorageAt', values: [BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData( + functionFragment: 'removeOwner', + values: [AddressLike, AddressLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'requiredTxGas', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setGuard', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [ + AddressLike[], + BigNumberish, + AddressLike, + BytesLike, + AddressLike, + AddressLike, + BigNumberish, + AddressLike + ] + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'simulateAndRevert', + values: [AddressLike, BytesLike] + ): string + encodeFunctionData( + functionFragment: 'swapOwner', + values: [AddressLike, AddressLike, AddressLike] + ): string + + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult( + functionFragment: 'execTransactionFromModuleReturnData', + data: BytesLike + ): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getStorageAt', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isModuleEnabled', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'requiredTxGas', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setGuard', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulateAndRevert', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedFallbackHandlerEvent { + export type InputTuple = [handler: AddressLike] + export type OutputTuple = [handler: string] + export interface OutputObject { + handler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedGuardEvent { + export type InputTuple = [guard: AddressLike] + export type OutputTuple = [guard: string] + export interface OutputObject { + guard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeReceivedEvent { + export type InputTuple = [sender: AddressLike, value: BigNumberish] + export type OutputTuple = [sender: string, value: bigint] + export interface OutputObject { + sender: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeSetupEvent { + export type InputTuple = [ + initiator: AddressLike, + owners: AddressLike[], + threshold: BigNumberish, + initializer: AddressLike, + fallbackHandler: AddressLike + ] + export type OutputTuple = [ + initiator: string, + owners: string[], + threshold: bigint, + initializer: string, + fallbackHandler: string + ] + export interface OutputObject { + initiator: string + owners: string[] + threshold: bigint + initializer: string + fallbackHandler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Gnosis_safe extends BaseContract { + connect(runner?: ContractRunner | null): Gnosis_safe + waitForDeployment(): Promise + + interface: Gnosis_safeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod< + [owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + checkNSignatures: TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + checkSignatures: TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike], + [void], + 'view' + > + + disableModule: TypedContractMethod< + [prevModule: AddressLike, module: AddressLike], + [void], + 'nonpayable' + > + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'payable' + > + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getStorageAt: TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + requiredTxGas: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + setGuard: TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + simulateAndRevert: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold' + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approveHash' + ): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes' + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'changeThreshold' + ): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkNSignatures' + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkSignatures' + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike], + [void], + 'view' + > + getFunction( + nameOrSignature: 'disableModule' + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'enableModule' + ): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'encodeTransactionData' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'execTransaction' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'execTransactionFromModule' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated' + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getStorageAt' + ): TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getTransactionHash' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'isModuleEnabled' + ): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'isOwner' + ): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'requiredTxGas' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + getFunction( + nameOrSignature: 'setFallbackHandler' + ): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setGuard' + ): TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup' + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'signedMessages' + ): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'simulateAndRevert' + ): TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'swapOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getEvent( + key: 'AddedOwner' + ): TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + getEvent( + key: 'ApproveHash' + ): TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + getEvent( + key: 'ChangedFallbackHandler' + ): TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + getEvent( + key: 'ChangedGuard' + ): TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + getEvent( + key: 'ChangedThreshold' + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule' + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule' + ): TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + getEvent( + key: 'ExecutionFailure' + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure' + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess' + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess' + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner' + ): TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + getEvent( + key: 'SafeReceived' + ): TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + getEvent( + key: 'SafeSetup' + ): TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + getEvent( + key: 'SignMsg' + ): TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedFallbackHandler(address)': TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + ChangedFallbackHandler: TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + + 'ChangedGuard(address)': TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + ChangedGuard: TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SafeReceived(address,uint256)': TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + SafeReceived: TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + + 'SafeSetup(address,address[],uint256,address,address)': TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + SafeSetup: TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + + 'SignMsg(bytes32)': TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + SignMsg: TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Multi_send.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Multi_send.ts new file mode 100644 index 000000000..2f2ac3123 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Multi_send.ts @@ -0,0 +1,80 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod +} from './common' + +export interface Multi_sendInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send + waitForDeployment(): Promise + + interface: Multi_sendInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'multiSend' + ): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Multi_send_call_only.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Multi_send_call_only.ts new file mode 100644 index 000000000..aa41153a5 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Multi_send_call_only.ts @@ -0,0 +1,80 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod +} from './common' + +export interface Multi_send_call_onlyInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send_call_only extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send_call_only + waitForDeployment(): Promise + + interface: Multi_send_call_onlyInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'multiSend' + ): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Proxy_factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Proxy_factory.ts new file mode 100644 index 000000000..f5046a116 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Proxy_factory.ts @@ -0,0 +1,207 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Proxy_factoryInterface extends Interface { + getFunction( + nameOrSignature: + | 'calculateCreateProxyWithNonceAddress' + | 'createProxy' + | 'createProxyWithCallback' + | 'createProxyWithNonce' + | 'proxyCreationCode' + | 'proxyRuntimeCode' + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ProxyCreation'): EventFragment + + encodeFunctionData( + functionFragment: 'calculateCreateProxyWithNonceAddress', + values: [AddressLike, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'createProxy', values: [AddressLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'createProxyWithCallback', + values: [AddressLike, BytesLike, BigNumberish, AddressLike] + ): string + encodeFunctionData( + functionFragment: 'createProxyWithNonce', + values: [AddressLike, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'proxyCreationCode', values?: undefined): string + encodeFunctionData(functionFragment: 'proxyRuntimeCode', values?: undefined): string + + decodeFunctionResult( + functionFragment: 'calculateCreateProxyWithNonceAddress', + data: BytesLike + ): Result + decodeFunctionResult(functionFragment: 'createProxy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithCallback', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyCreationCode', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyRuntimeCode', data: BytesLike): Result +} + +export namespace ProxyCreationEvent { + export type InputTuple = [proxy: AddressLike, singleton: AddressLike] + export type OutputTuple = [proxy: string, singleton: string] + export interface OutputObject { + proxy: string + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Proxy_factory extends BaseContract { + connect(runner?: ContractRunner | null): Proxy_factory + waitForDeployment(): Promise + + interface: Proxy_factoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + calculateCreateProxyWithNonceAddress: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + createProxy: TypedContractMethod< + [singleton: AddressLike, data: BytesLike], + [string], + 'nonpayable' + > + + createProxyWithCallback: TypedContractMethod< + [ + _singleton: AddressLike, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: AddressLike + ], + [string], + 'nonpayable' + > + + createProxyWithNonce: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + proxyCreationCode: TypedContractMethod<[], [string], 'view'> + + proxyRuntimeCode: TypedContractMethod<[], [string], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'calculateCreateProxyWithNonceAddress' + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxy' + ): TypedContractMethod<[singleton: AddressLike, data: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'createProxyWithCallback' + ): TypedContractMethod< + [ + _singleton: AddressLike, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: AddressLike + ], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithNonce' + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction(nameOrSignature: 'proxyCreationCode'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'proxyRuntimeCode'): TypedContractMethod<[], [string], 'view'> + + getEvent( + key: 'ProxyCreation' + ): TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + + filters: { + 'ProxyCreation(address,address)': TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + ProxyCreation: TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Sign_message_lib.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Sign_message_lib.ts new file mode 100644 index 000000000..2cf679436 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Sign_message_lib.ts @@ -0,0 +1,122 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Sign_message_libInterface extends Interface { + getFunction(nameOrSignature: 'getMessageHash' | 'signMessage'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'SignMsg'): EventFragment + + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Sign_message_lib extends BaseContract { + connect(runner?: ContractRunner | null): Sign_message_lib + waitForDeployment(): Promise + + interface: Sign_message_libInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'getMessageHash' + ): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'signMessage' + ): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getEvent( + key: 'SignMsg' + ): TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + + filters: { + 'SignMsg(bytes32)': TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + SignMsg: TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Simulate_tx_accessor.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Simulate_tx_accessor.ts new file mode 100644 index 000000000..1f94322bc --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/Simulate_tx_accessor.ts @@ -0,0 +1,103 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod +} from './common' + +export interface Simulate_tx_accessorInterface extends Interface { + getFunction(nameOrSignature: 'simulate'): FunctionFragment + + encodeFunctionData( + functionFragment: 'simulate', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result +} + +export interface Simulate_tx_accessor extends BaseContract { + connect(runner?: ContractRunner | null): Simulate_tx_accessor + waitForDeployment(): Promise + + interface: Simulate_tx_accessorInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + simulate: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + } + ], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'simulate'): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + } + ], + 'nonpayable' + > + + filters: {} +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/common.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/common.ts new file mode 100644 index 000000000..28d619618 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/common.ts @@ -0,0 +1,102 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription +} from 'ethers' + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + ( + ...args: Partial + ): TypedDeferredTopicFilter> + name: string + fragment: EventFragment + getFragment(...args: Partial): EventFragment +} + +type __TypechainAOutputTuple = T extends TypedContractEvent ? W : never +type __TypechainOutputObject = T extends TypedContractEvent + ? V + : never + +export interface TypedEventLog extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export type TypedListener = ( + ...listenerArg: [...__TypechainAOutputTuple, TypedEventLog, ...undefined[]] +) => void + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise +} + +export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never + +export type StateMutability = 'nonpayable' | 'payable' | 'view' + +export type BaseOverrides = Omit +export type NonPayableOverrides = Omit +export type PayableOverrides = Omit +export type ViewOverrides = Omit +export type Overrides = S extends 'nonpayable' + ? NonPayableOverrides + : S extends 'payable' + ? PayableOverrides + : ViewOverrides + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides] +export type ContractMethodArgs, S extends StateMutability> = PostfixOverrides< + { [I in keyof A]-?: A[I] | Typed }, + S +> + +export type DefaultReturnType = R extends Array ? R[0] : R + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = 'payable' +> { + ( + ...args: ContractMethodArgs + ): S extends 'view' ? Promise> : Promise + + name: string + + fragment: FunctionFragment + + getFragment(...args: ContractMethodArgs): FunctionFragment + + populateTransaction(...args: ContractMethodArgs): Promise + staticCall(...args: ContractMethodArgs): Promise> + send(...args: ContractMethodArgs): Promise + estimateGas(...args: ContractMethodArgs): Promise + staticCallResult(...args: ContractMethodArgs): Promise +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Compatibility_fallback_handler__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Compatibility_fallback_handler__factory.ts new file mode 100644 index 000000000..40ae746f0 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Compatibility_fallback_handler__factory.ts @@ -0,0 +1,345 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Compatibility_fallback_handler, + Compatibility_fallback_handlerInterface +} from '../Compatibility_fallback_handler' + +const _abi = [ + { + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes' + } + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'contract GnosisSafe', + name: 'safe', + type: 'address' + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes' + } + ], + name: 'getMessageHashForSafe', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '_dataHash', + type: 'bytes32' + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes' + } + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes' + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes' + } + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]' + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + name: 'onERC1155BatchReceived', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'pure', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'uint256', + name: '', + type: 'uint256' + }, + { + internalType: 'uint256', + name: '', + type: 'uint256' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + name: 'onERC1155Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'pure', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'uint256', + name: '', + type: 'uint256' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + name: 'onERC721Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'pure', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address' + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes' + } + ], + name: 'simulate', + outputs: [ + { + internalType: 'bytes', + name: 'response', + type: 'bytes' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4' + } + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'uint256', + name: '', + type: 'uint256' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + name: 'tokensReceived', + outputs: [], + stateMutability: 'pure', + type: 'function' + } +] as const + +export class Compatibility_fallback_handler__factory { + static readonly abi = _abi + static createInterface(): Compatibility_fallback_handlerInterface { + return new Interface(_abi) as Compatibility_fallback_handlerInterface + } + static connect(address: string, runner?: ContractRunner | null): Compatibility_fallback_handler { + return new Contract(address, _abi, runner) as unknown as Compatibility_fallback_handler + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Create_call__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Create_call__factory.ts new file mode 100644 index 000000000..3283b635c --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Create_call__factory.ts @@ -0,0 +1,85 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Create_call, Create_callInterface } from '../Create_call' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'newContract', + type: 'address' + } + ], + name: 'ContractCreation', + type: 'event' + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes' + } + ], + name: 'performCreate', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes' + }, + { + internalType: 'bytes32', + name: 'salt', + type: 'bytes32' + } + ], + name: 'performCreate2', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + } +] as const + +export class Create_call__factory { + static readonly abi = _abi + static createInterface(): Create_callInterface { + return new Interface(_abi) as Create_callInterface + } + static connect(address: string, runner?: ContractRunner | null): Create_call { + return new Contract(address, _abi, runner) as unknown as Create_call + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Gnosis_safe__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Gnosis_safe__factory.ts new file mode 100644 index 000000000..b3ca26b98 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Gnosis_safe__factory.ts @@ -0,0 +1,1050 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Gnosis_safe, Gnosis_safeInterface } from '../Gnosis_safe' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'AddedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'approvedHash', + type: 'bytes32' + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'ApproveHash', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'handler', + type: 'address' + } + ], + name: 'ChangedFallbackHandler', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'guard', + type: 'address' + } + ], + name: 'ChangedGuard', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256' + } + ], + name: 'ChangedThreshold', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'DisabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'EnabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256' + } + ], + name: 'ExecutionFailure', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'ExecutionFromModuleFailure', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'ExecutionFromModuleSuccess', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256' + } + ], + name: 'ExecutionSuccess', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'RemovedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address' + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256' + } + ], + name: 'SafeReceived', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'initiator', + type: 'address' + }, + { + indexed: false, + internalType: 'address[]', + name: 'owners', + type: 'address[]' + }, + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256' + }, + { + indexed: false, + internalType: 'address', + name: 'initializer', + type: 'address' + }, + { + indexed: false, + internalType: 'address', + name: 'fallbackHandler', + type: 'address' + } + ], + name: 'SafeSetup', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32' + } + ], + name: 'SignMsg', + type: 'event' + }, + { + stateMutability: 'nonpayable', + type: 'fallback' + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'addOwnerWithThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'hashToApprove', + type: 'bytes32' + } + ], + name: 'approveHash', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'approvedHashes', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'changeThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'requiredSignatures', + type: 'uint256' + } + ], + name: 'checkNSignatures', + outputs: [], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + } + ], + name: 'checkSignatures', + outputs: [], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevModule', + type: 'address' + }, + { + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'disableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'enableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256' + } + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + } + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + stateMutability: 'payable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address' + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256' + } + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]' + }, + { + internalType: 'address', + name: 'next', + type: 'address' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'offset', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'length', + type: 'uint256' + } + ], + name: 'getStorageAt', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256' + } + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'isModuleEnabled', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'removeOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'requiredTxGas', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address' + } + ], + name: 'setFallbackHandler', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'guard', + type: 'address' + } + ], + name: 'setGuard', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + }, + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address' + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address' + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256' + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address' + } + ], + name: 'setup', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address' + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes' + } + ], + name: 'simulateAndRevert', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address' + } + ], + name: 'swapOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + stateMutability: 'payable', + type: 'receive' + } +] as const + +export class Gnosis_safe__factory { + static readonly abi = _abi + static createInterface(): Gnosis_safeInterface { + return new Interface(_abi) as Gnosis_safeInterface + } + static connect(address: string, runner?: ContractRunner | null): Gnosis_safe { + return new Contract(address, _abi, runner) as unknown as Gnosis_safe + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Multi_send__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Multi_send__factory.ts new file mode 100644 index 000000000..fac54be7d --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Multi_send__factory.ts @@ -0,0 +1,37 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Multi_send, Multi_sendInterface } from '../Multi_send' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor' + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes' + } + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function' + } +] as const + +export class Multi_send__factory { + static readonly abi = _abi + static createInterface(): Multi_sendInterface { + return new Interface(_abi) as Multi_sendInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send { + return new Contract(address, _abi, runner) as unknown as Multi_send + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Multi_send_call_only__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Multi_send_call_only__factory.ts new file mode 100644 index 000000000..698d0ff9d --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Multi_send_call_only__factory.ts @@ -0,0 +1,32 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Multi_send_call_only, Multi_send_call_onlyInterface } from '../Multi_send_call_only' + +const _abi = [ + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes' + } + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function' + } +] as const + +export class Multi_send_call_only__factory { + static readonly abi = _abi + static createInterface(): Multi_send_call_onlyInterface { + return new Interface(_abi) as Multi_send_call_onlyInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send_call_only { + return new Contract(address, _abi, runner) as unknown as Multi_send_call_only + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Proxy_factory__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Proxy_factory__factory.ts new file mode 100644 index 000000000..28278d2da --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Proxy_factory__factory.ts @@ -0,0 +1,180 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Proxy_factory, Proxy_factoryInterface } from '../Proxy_factory' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + }, + { + indexed: false, + internalType: 'address', + name: 'singleton', + type: 'address' + } + ], + name: 'ProxyCreation', + type: 'event' + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address' + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256' + } + ], + name: 'calculateCreateProxyWithNonceAddress', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'singleton', + type: 'address' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + } + ], + name: 'createProxy', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address' + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256' + }, + { + internalType: 'contract IProxyCreationCallback', + name: 'callback', + type: 'address' + } + ], + name: 'createProxyWithCallback', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address' + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256' + } + ], + name: 'createProxyWithNonce', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [], + name: 'proxyCreationCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + stateMutability: 'pure', + type: 'function' + }, + { + inputs: [], + name: 'proxyRuntimeCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + stateMutability: 'pure', + type: 'function' + } +] as const + +export class Proxy_factory__factory { + static readonly abi = _abi + static createInterface(): Proxy_factoryInterface { + return new Interface(_abi) as Proxy_factoryInterface + } + static connect(address: string, runner?: ContractRunner | null): Proxy_factory { + return new Contract(address, _abi, runner) as unknown as Proxy_factory + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Sign_message_lib__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Sign_message_lib__factory.ts new file mode 100644 index 000000000..8bb680db0 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Sign_message_lib__factory.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Sign_message_lib, Sign_message_libInterface } from '../Sign_message_lib' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32' + } + ], + name: 'SignMsg', + type: 'event' + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes' + } + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes' + } + ], + name: 'signMessage', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + } +] as const + +export class Sign_message_lib__factory { + static readonly abi = _abi + static createInterface(): Sign_message_libInterface { + return new Interface(_abi) as Sign_message_libInterface + } + static connect(address: string, runner?: ContractRunner | null): Sign_message_lib { + return new Contract(address, _abi, runner) as unknown as Sign_message_lib + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Simulate_tx_accessor__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Simulate_tx_accessor__factory.ts new file mode 100644 index 000000000..09dcb0ff4 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/Simulate_tx_accessor__factory.ts @@ -0,0 +1,68 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Simulate_tx_accessor, Simulate_tx_accessorInterface } from '../Simulate_tx_accessor' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'simulate', + outputs: [ + { + internalType: 'uint256', + name: 'estimate', + type: 'uint256' + }, + { + internalType: 'bool', + name: 'success', + type: 'bool' + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes' + } + ], + stateMutability: 'nonpayable', + type: 'function' + } +] as const + +export class Simulate_tx_accessor__factory { + static readonly abi = _abi + static createInterface(): Simulate_tx_accessorInterface { + return new Interface(_abi) as Simulate_tx_accessorInterface + } + static connect(address: string, runner?: ContractRunner | null): Simulate_tx_accessor { + return new Contract(address, _abi, runner) as unknown as Simulate_tx_accessor + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/index.ts new file mode 100644 index 000000000..a4ff2a032 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/factories/index.ts @@ -0,0 +1,11 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Compatibility_fallback_handler__factory } from './Compatibility_fallback_handler__factory' +export { Create_call__factory } from './Create_call__factory' +export { Gnosis_safe__factory } from './Gnosis_safe__factory' +export { Multi_send__factory } from './Multi_send__factory' +export { Multi_send_call_only__factory } from './Multi_send_call_only__factory' +export { Proxy_factory__factory } from './Proxy_factory__factory' +export { Sign_message_lib__factory } from './Sign_message_lib__factory' +export { Simulate_tx_accessor__factory } from './Simulate_tx_accessor__factory' diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/index.ts new file mode 100644 index 000000000..227b3b356 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.3.0/index.ts @@ -0,0 +1,20 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Compatibility_fallback_handler } from './Compatibility_fallback_handler' +export type { Create_call } from './Create_call' +export type { Gnosis_safe } from './Gnosis_safe' +export type { Multi_send } from './Multi_send' +export type { Multi_send_call_only } from './Multi_send_call_only' +export type { Proxy_factory } from './Proxy_factory' +export type { Sign_message_lib } from './Sign_message_lib' +export type { Simulate_tx_accessor } from './Simulate_tx_accessor' +export * as factories from './factories' +export { Gnosis_safe__factory } from './factories/Gnosis_safe__factory' +export { Proxy_factory__factory } from './factories/Proxy_factory__factory' +export { Multi_send__factory } from './factories/Multi_send__factory' +export { Multi_send_call_only__factory } from './factories/Multi_send_call_only__factory' +export { Compatibility_fallback_handler__factory } from './factories/Compatibility_fallback_handler__factory' +export { Sign_message_lib__factory } from './factories/Sign_message_lib__factory' +export { Create_call__factory } from './factories/Create_call__factory' +export { Simulate_tx_accessor__factory } from './factories/Simulate_tx_accessor__factory' diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Compatibility_fallback_handler.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Compatibility_fallback_handler.ts new file mode 100644 index 000000000..a3b0fc2a2 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Compatibility_fallback_handler.ts @@ -0,0 +1,277 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod +} from './common' + +export interface Compatibility_fallback_handlerInterface extends Interface { + getFunction( + nameOrSignature: + | 'encodeMessageDataForSafe' + | 'getMessageHash' + | 'getMessageHashForSafe' + | 'getModules' + | 'isValidSignature(bytes32,bytes)' + | 'isValidSignature(bytes,bytes)' + | 'onERC1155BatchReceived' + | 'onERC1155Received' + | 'onERC721Received' + | 'simulate' + | 'supportsInterface' + | 'tokensReceived' + ): FunctionFragment + + encodeFunctionData( + functionFragment: 'encodeMessageDataForSafe', + values: [AddressLike, BytesLike] + ): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'getMessageHashForSafe', + values: [AddressLike, BytesLike] + ): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData( + functionFragment: 'isValidSignature(bytes32,bytes)', + values: [BytesLike, BytesLike] + ): string + encodeFunctionData( + functionFragment: 'isValidSignature(bytes,bytes)', + values: [BytesLike, BytesLike] + ): string + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike] + ): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike] + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike] + ): string + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'tokensReceived', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike, BytesLike] + ): string + + decodeFunctionResult(functionFragment: 'encodeMessageDataForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHashForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes32,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155BatchReceived', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC721Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'tokensReceived', data: BytesLike): Result +} + +export interface Compatibility_fallback_handler extends BaseContract { + connect(runner?: ContractRunner | null): Compatibility_fallback_handler + waitForDeployment(): Promise + + interface: Compatibility_fallback_handlerInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + encodeMessageDataForSafe: TypedContractMethod< + [safe: AddressLike, message: BytesLike], + [string], + 'view' + > + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + getMessageHashForSafe: TypedContractMethod< + [safe: AddressLike, message: BytesLike], + [string], + 'view' + > + + getModules: TypedContractMethod<[], [string[]], 'view'> + + 'isValidSignature(bytes32,bytes)': TypedContractMethod< + [_dataHash: BytesLike, _signature: BytesLike], + [string], + 'view' + > + + 'isValidSignature(bytes,bytes)': TypedContractMethod< + [_data: BytesLike, _signature: BytesLike], + [string], + 'view' + > + + onERC1155BatchReceived: TypedContractMethod< + [ + arg0: AddressLike, + arg1: AddressLike, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike + ], + [string], + 'view' + > + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + + simulate: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [string], + 'nonpayable' + > + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + tokensReceived: TypedContractMethod< + [ + arg0: AddressLike, + arg1: AddressLike, + arg2: AddressLike, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike + ], + [void], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'encodeMessageDataForSafe' + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'getMessageHash' + ): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'getMessageHashForSafe' + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes32,bytes)' + ): TypedContractMethod<[_dataHash: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes,bytes)' + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'onERC1155BatchReceived' + ): TypedContractMethod< + [ + arg0: AddressLike, + arg1: AddressLike, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC1155Received' + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC721Received' + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'simulate' + ): TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'supportsInterface' + ): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'tokensReceived' + ): TypedContractMethod< + [ + arg0: AddressLike, + arg1: AddressLike, + arg2: AddressLike, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike + ], + [void], + 'view' + > + + filters: {} +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Create_call.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Create_call.ts new file mode 100644 index 000000000..a3753f4b3 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Create_call.ts @@ -0,0 +1,139 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Create_callInterface extends Interface { + getFunction(nameOrSignature: 'performCreate' | 'performCreate2'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ContractCreation'): EventFragment + + encodeFunctionData(functionFragment: 'performCreate', values: [BigNumberish, BytesLike]): string + encodeFunctionData( + functionFragment: 'performCreate2', + values: [BigNumberish, BytesLike, BytesLike] + ): string + + decodeFunctionResult(functionFragment: 'performCreate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'performCreate2', data: BytesLike): Result +} + +export namespace ContractCreationEvent { + export type InputTuple = [newContract: AddressLike] + export type OutputTuple = [newContract: string] + export interface OutputObject { + newContract: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Create_call extends BaseContract { + connect(runner?: ContractRunner | null): Create_call + waitForDeployment(): Promise + + interface: Create_callInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + performCreate: TypedContractMethod< + [value: BigNumberish, deploymentData: BytesLike], + [string], + 'nonpayable' + > + + performCreate2: TypedContractMethod< + [value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], + [string], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'performCreate' + ): TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'performCreate2' + ): TypedContractMethod< + [value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], + [string], + 'nonpayable' + > + + getEvent( + key: 'ContractCreation' + ): TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + + filters: { + 'ContractCreation(address)': TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + ContractCreation: TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Multi_send.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Multi_send.ts new file mode 100644 index 000000000..2f2ac3123 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Multi_send.ts @@ -0,0 +1,80 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod +} from './common' + +export interface Multi_sendInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send + waitForDeployment(): Promise + + interface: Multi_sendInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'multiSend' + ): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Multi_send_call_only.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Multi_send_call_only.ts new file mode 100644 index 000000000..aa41153a5 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Multi_send_call_only.ts @@ -0,0 +1,80 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod +} from './common' + +export interface Multi_send_call_onlyInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send_call_only extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send_call_only + waitForDeployment(): Promise + + interface: Multi_send_call_onlyInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'multiSend' + ): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Safe.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Safe.ts new file mode 100644 index 000000000..cfbe982c3 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Safe.ts @@ -0,0 +1,1069 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface SafeInterface extends Interface { + getFunction( + nameOrSignature: + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approveHash' + | 'approvedHashes' + | 'changeThreshold' + | 'checkNSignatures' + | 'checkSignatures' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'encodeTransactionData' + | 'execTransaction' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getChainId' + | 'getModulesPaginated' + | 'getOwners' + | 'getStorageAt' + | 'getThreshold' + | 'getTransactionHash' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'setFallbackHandler' + | 'setGuard' + | 'setup' + | 'signedMessages' + | 'simulateAndRevert' + | 'swapOwner' + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedFallbackHandler' + | 'ChangedGuard' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SafeReceived' + | 'SafeSetup' + | 'SignMsg' + ): EventFragment + + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData( + functionFragment: 'addOwnerWithThreshold', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData( + functionFragment: 'checkNSignatures', + values: [BytesLike, BytesLike, BytesLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'checkSignatures', + values: [BytesLike, BytesLike, BytesLike] + ): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike + ] + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData( + functionFragment: 'getModulesPaginated', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getStorageAt', values: [BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish + ] + ): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData( + functionFragment: 'removeOwner', + values: [AddressLike, AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setGuard', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [ + AddressLike[], + BigNumberish, + AddressLike, + BytesLike, + AddressLike, + AddressLike, + BigNumberish, + AddressLike + ] + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'simulateAndRevert', + values: [AddressLike, BytesLike] + ): string + encodeFunctionData( + functionFragment: 'swapOwner', + values: [AddressLike, AddressLike, AddressLike] + ): string + + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult( + functionFragment: 'execTransactionFromModuleReturnData', + data: BytesLike + ): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getStorageAt', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isModuleEnabled', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setGuard', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulateAndRevert', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedFallbackHandlerEvent { + export type InputTuple = [handler: AddressLike] + export type OutputTuple = [handler: string] + export interface OutputObject { + handler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedGuardEvent { + export type InputTuple = [guard: AddressLike] + export type OutputTuple = [guard: string] + export interface OutputObject { + guard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeReceivedEvent { + export type InputTuple = [sender: AddressLike, value: BigNumberish] + export type OutputTuple = [sender: string, value: bigint] + export interface OutputObject { + sender: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeSetupEvent { + export type InputTuple = [ + initiator: AddressLike, + owners: AddressLike[], + threshold: BigNumberish, + initializer: AddressLike, + fallbackHandler: AddressLike + ] + export type OutputTuple = [ + initiator: string, + owners: string[], + threshold: bigint, + initializer: string, + fallbackHandler: string + ] + export interface OutputObject { + initiator: string + owners: string[] + threshold: bigint + initializer: string + fallbackHandler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe extends BaseContract { + connect(runner?: ContractRunner | null): Safe + waitForDeployment(): Promise + + interface: SafeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod< + [owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + checkNSignatures: TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + checkSignatures: TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike], + [void], + 'view' + > + + disableModule: TypedContractMethod< + [prevModule: AddressLike, module: AddressLike], + [void], + 'nonpayable' + > + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'payable' + > + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getStorageAt: TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + setGuard: TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + simulateAndRevert: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold' + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approveHash' + ): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes' + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'changeThreshold' + ): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkNSignatures' + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkSignatures' + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike], + [void], + 'view' + > + getFunction( + nameOrSignature: 'disableModule' + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'enableModule' + ): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'encodeTransactionData' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'execTransaction' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'execTransactionFromModule' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData' + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated' + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getStorageAt' + ): TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getTransactionHash' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'isModuleEnabled' + ): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'isOwner' + ): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'setFallbackHandler' + ): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setGuard' + ): TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup' + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'signedMessages' + ): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'simulateAndRevert' + ): TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'swapOwner' + ): TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getEvent( + key: 'AddedOwner' + ): TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + getEvent( + key: 'ApproveHash' + ): TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + getEvent( + key: 'ChangedFallbackHandler' + ): TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + getEvent( + key: 'ChangedGuard' + ): TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + getEvent( + key: 'ChangedThreshold' + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule' + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule' + ): TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + getEvent( + key: 'ExecutionFailure' + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure' + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess' + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess' + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner' + ): TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + getEvent( + key: 'SafeReceived' + ): TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + getEvent( + key: 'SafeSetup' + ): TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + getEvent( + key: 'SignMsg' + ): TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedFallbackHandler(address)': TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + ChangedFallbackHandler: TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + + 'ChangedGuard(address)': TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + ChangedGuard: TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SafeReceived(address,uint256)': TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + SafeReceived: TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + + 'SafeSetup(address,address[],uint256,address,address)': TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + SafeSetup: TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + + 'SignMsg(bytes32)': TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + SignMsg: TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Safe_proxy_factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Safe_proxy_factory.ts new file mode 100644 index 000000000..7fc218fc1 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Safe_proxy_factory.ts @@ -0,0 +1,195 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Safe_proxy_factoryInterface extends Interface { + getFunction( + nameOrSignature: + | 'createChainSpecificProxyWithNonce' + | 'createProxyWithCallback' + | 'createProxyWithNonce' + | 'getChainId' + | 'proxyCreationCode' + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ProxyCreation'): EventFragment + + encodeFunctionData( + functionFragment: 'createChainSpecificProxyWithNonce', + values: [AddressLike, BytesLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'createProxyWithCallback', + values: [AddressLike, BytesLike, BigNumberish, AddressLike] + ): string + encodeFunctionData( + functionFragment: 'createProxyWithNonce', + values: [AddressLike, BytesLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData(functionFragment: 'proxyCreationCode', values?: undefined): string + + decodeFunctionResult( + functionFragment: 'createChainSpecificProxyWithNonce', + data: BytesLike + ): Result + decodeFunctionResult(functionFragment: 'createProxyWithCallback', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyCreationCode', data: BytesLike): Result +} + +export namespace ProxyCreationEvent { + export type InputTuple = [proxy: AddressLike, singleton: AddressLike] + export type OutputTuple = [proxy: string, singleton: string] + export interface OutputObject { + proxy: string + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_proxy_factory extends BaseContract { + connect(runner?: ContractRunner | null): Safe_proxy_factory + waitForDeployment(): Promise + + interface: Safe_proxy_factoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + createChainSpecificProxyWithNonce: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + createProxyWithCallback: TypedContractMethod< + [ + _singleton: AddressLike, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: AddressLike + ], + [string], + 'nonpayable' + > + + createProxyWithNonce: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + proxyCreationCode: TypedContractMethod<[], [string], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'createChainSpecificProxyWithNonce' + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithCallback' + ): TypedContractMethod< + [ + _singleton: AddressLike, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: AddressLike + ], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithNonce' + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'proxyCreationCode'): TypedContractMethod<[], [string], 'view'> + + getEvent( + key: 'ProxyCreation' + ): TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + + filters: { + 'ProxyCreation(address,address)': TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + ProxyCreation: TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Sign_message_lib.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Sign_message_lib.ts new file mode 100644 index 000000000..2cf679436 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Sign_message_lib.ts @@ -0,0 +1,122 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface Sign_message_libInterface extends Interface { + getFunction(nameOrSignature: 'getMessageHash' | 'signMessage'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'SignMsg'): EventFragment + + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Sign_message_lib extends BaseContract { + connect(runner?: ContractRunner | null): Sign_message_lib + waitForDeployment(): Promise + + interface: Sign_message_libInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'getMessageHash' + ): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'signMessage' + ): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getEvent( + key: 'SignMsg' + ): TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + + filters: { + 'SignMsg(bytes32)': TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + SignMsg: TypedContractEvent< + SignMsgEvent.InputTuple, + SignMsgEvent.OutputTuple, + SignMsgEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Simulate_tx_accessor.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Simulate_tx_accessor.ts new file mode 100644 index 000000000..1f94322bc --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/Simulate_tx_accessor.ts @@ -0,0 +1,103 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod +} from './common' + +export interface Simulate_tx_accessorInterface extends Interface { + getFunction(nameOrSignature: 'simulate'): FunctionFragment + + encodeFunctionData( + functionFragment: 'simulate', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish] + ): string + + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result +} + +export interface Simulate_tx_accessor extends BaseContract { + connect(runner?: ContractRunner | null): Simulate_tx_accessor + waitForDeployment(): Promise + + interface: Simulate_tx_accessorInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + simulate: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + } + ], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'simulate'): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + } + ], + 'nonpayable' + > + + filters: {} +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/common.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/common.ts new file mode 100644 index 000000000..28d619618 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/common.ts @@ -0,0 +1,102 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription +} from 'ethers' + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + ( + ...args: Partial + ): TypedDeferredTopicFilter> + name: string + fragment: EventFragment + getFragment(...args: Partial): EventFragment +} + +type __TypechainAOutputTuple = T extends TypedContractEvent ? W : never +type __TypechainOutputObject = T extends TypedContractEvent + ? V + : never + +export interface TypedEventLog extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export type TypedListener = ( + ...listenerArg: [...__TypechainAOutputTuple, TypedEventLog, ...undefined[]] +) => void + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise +} + +export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never + +export type StateMutability = 'nonpayable' | 'payable' | 'view' + +export type BaseOverrides = Omit +export type NonPayableOverrides = Omit +export type PayableOverrides = Omit +export type ViewOverrides = Omit +export type Overrides = S extends 'nonpayable' + ? NonPayableOverrides + : S extends 'payable' + ? PayableOverrides + : ViewOverrides + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides] +export type ContractMethodArgs, S extends StateMutability> = PostfixOverrides< + { [I in keyof A]-?: A[I] | Typed }, + S +> + +export type DefaultReturnType = R extends Array ? R[0] : R + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = 'payable' +> { + ( + ...args: ContractMethodArgs + ): S extends 'view' ? Promise> : Promise + + name: string + + fragment: FunctionFragment + + getFragment(...args: ContractMethodArgs): FunctionFragment + + populateTransaction(...args: ContractMethodArgs): Promise + staticCall(...args: ContractMethodArgs): Promise> + send(...args: ContractMethodArgs): Promise + estimateGas(...args: ContractMethodArgs): Promise + staticCallResult(...args: ContractMethodArgs): Promise +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Compatibility_fallback_handler__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Compatibility_fallback_handler__factory.ts new file mode 100644 index 000000000..0e7c3f74f --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Compatibility_fallback_handler__factory.ts @@ -0,0 +1,343 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Compatibility_fallback_handler, + Compatibility_fallback_handlerInterface +} from '../Compatibility_fallback_handler' + +const _abi = [ + { + inputs: [ + { + internalType: 'contract Safe', + name: 'safe', + type: 'address' + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes' + } + ], + name: 'encodeMessageDataForSafe', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes' + } + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'contract Safe', + name: 'safe', + type: 'address' + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes' + } + ], + name: 'getMessageHashForSafe', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '_dataHash', + type: 'bytes32' + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes' + } + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes' + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes' + } + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]' + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + name: 'onERC1155BatchReceived', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'pure', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'uint256', + name: '', + type: 'uint256' + }, + { + internalType: 'uint256', + name: '', + type: 'uint256' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + name: 'onERC1155Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'pure', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'uint256', + name: '', + type: 'uint256' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + name: 'onERC721Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4' + } + ], + stateMutability: 'pure', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address' + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes' + } + ], + name: 'simulate', + outputs: [ + { + internalType: 'bytes', + name: 'response', + type: 'bytes' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4' + } + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'uint256', + name: '', + type: 'uint256' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + name: 'tokensReceived', + outputs: [], + stateMutability: 'pure', + type: 'function' + } +] as const + +export class Compatibility_fallback_handler__factory { + static readonly abi = _abi + static createInterface(): Compatibility_fallback_handlerInterface { + return new Interface(_abi) as Compatibility_fallback_handlerInterface + } + static connect(address: string, runner?: ContractRunner | null): Compatibility_fallback_handler { + return new Contract(address, _abi, runner) as unknown as Compatibility_fallback_handler + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Create_call__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Create_call__factory.ts new file mode 100644 index 000000000..0c168804c --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Create_call__factory.ts @@ -0,0 +1,85 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Create_call, Create_callInterface } from '../Create_call' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'newContract', + type: 'address' + } + ], + name: 'ContractCreation', + type: 'event' + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes' + } + ], + name: 'performCreate', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes' + }, + { + internalType: 'bytes32', + name: 'salt', + type: 'bytes32' + } + ], + name: 'performCreate2', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + } +] as const + +export class Create_call__factory { + static readonly abi = _abi + static createInterface(): Create_callInterface { + return new Interface(_abi) as Create_callInterface + } + static connect(address: string, runner?: ContractRunner | null): Create_call { + return new Contract(address, _abi, runner) as unknown as Create_call + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Multi_send__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Multi_send__factory.ts new file mode 100644 index 000000000..fac54be7d --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Multi_send__factory.ts @@ -0,0 +1,37 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Multi_send, Multi_sendInterface } from '../Multi_send' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor' + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes' + } + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function' + } +] as const + +export class Multi_send__factory { + static readonly abi = _abi + static createInterface(): Multi_sendInterface { + return new Interface(_abi) as Multi_sendInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send { + return new Contract(address, _abi, runner) as unknown as Multi_send + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Multi_send_call_only__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Multi_send_call_only__factory.ts new file mode 100644 index 000000000..698d0ff9d --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Multi_send_call_only__factory.ts @@ -0,0 +1,32 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Multi_send_call_only, Multi_send_call_onlyInterface } from '../Multi_send_call_only' + +const _abi = [ + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes' + } + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function' + } +] as const + +export class Multi_send_call_only__factory { + static readonly abi = _abi + static createInterface(): Multi_send_call_onlyInterface { + return new Interface(_abi) as Multi_send_call_onlyInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send_call_only { + return new Contract(address, _abi, runner) as unknown as Multi_send_call_only + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Safe__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Safe__factory.ts new file mode 100644 index 000000000..695898723 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Safe__factory.ts @@ -0,0 +1,1016 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Safe, SafeInterface } from '../Safe' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'AddedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'approvedHash', + type: 'bytes32' + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'ApproveHash', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'handler', + type: 'address' + } + ], + name: 'ChangedFallbackHandler', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'guard', + type: 'address' + } + ], + name: 'ChangedGuard', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256' + } + ], + name: 'ChangedThreshold', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'DisabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'EnabledModule', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256' + } + ], + name: 'ExecutionFailure', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'ExecutionFromModuleFailure', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'ExecutionFromModuleSuccess', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256' + } + ], + name: 'ExecutionSuccess', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'RemovedOwner', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address' + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256' + } + ], + name: 'SafeReceived', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'initiator', + type: 'address' + }, + { + indexed: false, + internalType: 'address[]', + name: 'owners', + type: 'address[]' + }, + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256' + }, + { + indexed: false, + internalType: 'address', + name: 'initializer', + type: 'address' + }, + { + indexed: false, + internalType: 'address', + name: 'fallbackHandler', + type: 'address' + } + ], + name: 'SafeSetup', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32' + } + ], + name: 'SignMsg', + type: 'event' + }, + { + stateMutability: 'nonpayable', + type: 'fallback' + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'addOwnerWithThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'hashToApprove', + type: 'bytes32' + } + ], + name: 'approveHash', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'approvedHashes', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'changeThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'requiredSignatures', + type: 'uint256' + } + ], + name: 'checkNSignatures', + outputs: [], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + } + ], + name: 'checkSignatures', + outputs: [], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevModule', + type: 'address' + }, + { + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'disableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'enableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256' + } + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + } + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + stateMutability: 'payable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool' + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address' + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256' + } + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]' + }, + { + internalType: 'address', + name: 'next', + type: 'address' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'offset', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'length', + type: 'uint256' + } + ], + name: 'getStorageAt', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256' + } + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address' + } + ], + name: 'isModuleEnabled', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address' + } + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'removeOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address' + } + ], + name: 'setFallbackHandler', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'guard', + type: 'address' + } + ], + name: 'setGuard', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + }, + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address' + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address' + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256' + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address' + } + ], + name: 'setup', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address' + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes' + } + ], + name: 'simulateAndRevert', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address' + } + ], + name: 'swapOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + stateMutability: 'payable', + type: 'receive' + } +] as const + +export class Safe__factory { + static readonly abi = _abi + static createInterface(): SafeInterface { + return new Interface(_abi) as SafeInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe { + return new Contract(address, _abi, runner) as unknown as Safe + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Safe_proxy_factory__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Safe_proxy_factory__factory.ts new file mode 100644 index 000000000..d257acdf2 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Safe_proxy_factory__factory.ts @@ -0,0 +1,156 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Safe_proxy_factory, Safe_proxy_factoryInterface } from '../Safe_proxy_factory' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address' + }, + { + indexed: false, + internalType: 'address', + name: 'singleton', + type: 'address' + } + ], + name: 'ProxyCreation', + type: 'event' + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address' + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256' + } + ], + name: 'createChainSpecificProxyWithNonce', + outputs: [ + { + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address' + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256' + }, + { + internalType: 'contract IProxyCreationCallback', + name: 'callback', + type: 'address' + } + ], + name: 'createProxyWithCallback', + outputs: [ + { + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address' + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes' + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256' + } + ], + name: 'createProxyWithNonce', + outputs: [ + { + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address' + } + ], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [], + name: 'proxyCreationCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes' + } + ], + stateMutability: 'pure', + type: 'function' + } +] as const + +export class Safe_proxy_factory__factory { + static readonly abi = _abi + static createInterface(): Safe_proxy_factoryInterface { + return new Interface(_abi) as Safe_proxy_factoryInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe_proxy_factory { + return new Contract(address, _abi, runner) as unknown as Safe_proxy_factory + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Sign_message_lib__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Sign_message_lib__factory.ts new file mode 100644 index 000000000..8bb680db0 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Sign_message_lib__factory.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Sign_message_lib, Sign_message_libInterface } from '../Sign_message_lib' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32' + } + ], + name: 'SignMsg', + type: 'event' + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes' + } + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes' + } + ], + name: 'signMessage', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + } +] as const + +export class Sign_message_lib__factory { + static readonly abi = _abi + static createInterface(): Sign_message_libInterface { + return new Interface(_abi) as Sign_message_libInterface + } + static connect(address: string, runner?: ContractRunner | null): Sign_message_lib { + return new Contract(address, _abi, runner) as unknown as Sign_message_lib + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Simulate_tx_accessor__factory.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Simulate_tx_accessor__factory.ts new file mode 100644 index 000000000..09dcb0ff4 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/Simulate_tx_accessor__factory.ts @@ -0,0 +1,68 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Simulate_tx_accessor, Simulate_tx_accessorInterface } from '../Simulate_tx_accessor' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + } + ], + name: 'simulate', + outputs: [ + { + internalType: 'uint256', + name: 'estimate', + type: 'uint256' + }, + { + internalType: 'bool', + name: 'success', + type: 'bool' + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes' + } + ], + stateMutability: 'nonpayable', + type: 'function' + } +] as const + +export class Simulate_tx_accessor__factory { + static readonly abi = _abi + static createInterface(): Simulate_tx_accessorInterface { + return new Interface(_abi) as Simulate_tx_accessorInterface + } + static connect(address: string, runner?: ContractRunner | null): Simulate_tx_accessor { + return new Contract(address, _abi, runner) as unknown as Simulate_tx_accessor + } +} diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/index.ts new file mode 100644 index 000000000..ebad9aa99 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/factories/index.ts @@ -0,0 +1,11 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Compatibility_fallback_handler__factory } from './Compatibility_fallback_handler__factory' +export { Create_call__factory } from './Create_call__factory' +export { Multi_send__factory } from './Multi_send__factory' +export { Multi_send_call_only__factory } from './Multi_send_call_only__factory' +export { Safe__factory } from './Safe__factory' +export { Safe_proxy_factory__factory } from './Safe_proxy_factory__factory' +export { Sign_message_lib__factory } from './Sign_message_lib__factory' +export { Simulate_tx_accessor__factory } from './Simulate_tx_accessor__factory' diff --git a/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/index.ts b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/index.ts new file mode 100644 index 000000000..b94078999 --- /dev/null +++ b/packages/protocol-kit/typechain/src/ethers-v6/v1.4.1/index.ts @@ -0,0 +1,20 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Compatibility_fallback_handler } from './Compatibility_fallback_handler' +export type { Create_call } from './Create_call' +export type { Multi_send } from './Multi_send' +export type { Multi_send_call_only } from './Multi_send_call_only' +export type { Safe } from './Safe' +export type { Safe_proxy_factory } from './Safe_proxy_factory' +export type { Sign_message_lib } from './Sign_message_lib' +export type { Simulate_tx_accessor } from './Simulate_tx_accessor' +export * as factories from './factories' +export { Safe__factory } from './factories/Safe__factory' +export { Safe_proxy_factory__factory } from './factories/Safe_proxy_factory__factory' +export { Multi_send__factory } from './factories/Multi_send__factory' +export { Multi_send_call_only__factory } from './factories/Multi_send_call_only__factory' +export { Compatibility_fallback_handler__factory } from './factories/Compatibility_fallback_handler__factory' +export { Sign_message_lib__factory } from './factories/Sign_message_lib__factory' +export { Create_call__factory } from './factories/Create_call__factory' +export { Simulate_tx_accessor__factory } from './factories/Simulate_tx_accessor__factory' diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/Gnosis_safe.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/Gnosis_safe.ts new file mode 100644 index 000000000..ddfd901a1 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/Gnosis_safe.ts @@ -0,0 +1,231 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type ExecutionFailed = ContractEventLog<{ + txHash: string + 0: string +}> +export type AddedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type RemovedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type ChangedThreshold = ContractEventLog<{ + threshold: string + 0: string +}> +export type EnabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type DisabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type ContractCreation = ContractEventLog<{ + newContract: string + 0: string +}> + +export interface Gnosis_safe extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Gnosis_safe + clone(): Gnosis_safe + methods: { + addOwnerWithThreshold( + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + DOMAIN_SEPARATOR_TYPEHASH(): NonPayableTransactionObject + + isOwner(owner: string): NonPayableTransactionObject + + execTransactionFromModule( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject + + signedMessages(arg0: string | number[]): NonPayableTransactionObject + + enableModule(module: string): NonPayableTransactionObject + + changeThreshold(_threshold: number | string | BN): NonPayableTransactionObject + + approvedHashes(arg0: string, arg1: string | number[]): NonPayableTransactionObject + + changeMasterCopy(_masterCopy: string): NonPayableTransactionObject + + SENTINEL_MODULES(): NonPayableTransactionObject + + SENTINEL_OWNERS(): NonPayableTransactionObject + + getOwners(): NonPayableTransactionObject + + NAME(): NonPayableTransactionObject + + nonce(): NonPayableTransactionObject + + getModules(): NonPayableTransactionObject + + SAFE_MSG_TYPEHASH(): NonPayableTransactionObject + + SAFE_TX_TYPEHASH(): NonPayableTransactionObject + + disableModule(prevModule: string, module: string): NonPayableTransactionObject + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string + ): NonPayableTransactionObject + + getThreshold(): NonPayableTransactionObject + + domainSeparator(): NonPayableTransactionObject + + removeOwner( + prevOwner: string, + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + VERSION(): NonPayableTransactionObject + + setup( + _owners: string[], + _threshold: number | string | BN, + to: string, + data: string | number[], + paymentToken: string, + payment: number | string | BN, + paymentReceiver: string + ): NonPayableTransactionObject + + execTransaction( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + signatures: string | number[] + ): NonPayableTransactionObject + + requiredTxGas( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject + + approveHash(hashToApprove: string | number[]): NonPayableTransactionObject + + signMessage(_data: string | number[]): NonPayableTransactionObject + + isValidSignature( + _data: string | number[], + _signature: string | number[] + ): NonPayableTransactionObject + + getMessageHash(message: string | number[]): NonPayableTransactionObject + + encodeTransactionData( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + + getTransactionHash( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + } + events: { + ExecutionFailed(cb?: Callback): EventEmitter + ExecutionFailed(options?: EventOptions, cb?: Callback): EventEmitter + + AddedOwner(cb?: Callback): EventEmitter + AddedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + RemovedOwner(cb?: Callback): EventEmitter + RemovedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + ChangedThreshold(cb?: Callback): EventEmitter + ChangedThreshold(options?: EventOptions, cb?: Callback): EventEmitter + + EnabledModule(cb?: Callback): EventEmitter + EnabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + DisabledModule(cb?: Callback): EventEmitter + DisabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + ContractCreation(cb?: Callback): EventEmitter + ContractCreation(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'ExecutionFailed', cb: Callback): void + once(event: 'ExecutionFailed', options: EventOptions, cb: Callback): void + + once(event: 'AddedOwner', cb: Callback): void + once(event: 'AddedOwner', options: EventOptions, cb: Callback): void + + once(event: 'RemovedOwner', cb: Callback): void + once(event: 'RemovedOwner', options: EventOptions, cb: Callback): void + + once(event: 'ChangedThreshold', cb: Callback): void + once(event: 'ChangedThreshold', options: EventOptions, cb: Callback): void + + once(event: 'EnabledModule', cb: Callback): void + once(event: 'EnabledModule', options: EventOptions, cb: Callback): void + + once(event: 'DisabledModule', cb: Callback): void + once(event: 'DisabledModule', options: EventOptions, cb: Callback): void + + once(event: 'ContractCreation', cb: Callback): void + once(event: 'ContractCreation', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/Proxy_factory.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/Proxy_factory.ts new file mode 100644 index 000000000..b25ee1ecf --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/Proxy_factory.ts @@ -0,0 +1,54 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type ProxyCreation = ContractEventLog<{ + proxy: string + 0: string +}> + +export interface Proxy_factory extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Proxy_factory + clone(): Proxy_factory + methods: { + createProxyWithNonce( + _mastercopy: string, + initializer: string | number[], + saltNonce: number | string | BN + ): NonPayableTransactionObject + + proxyCreationCode(): NonPayableTransactionObject + + createProxy(masterCopy: string, data: string | number[]): NonPayableTransactionObject + + proxyRuntimeCode(): NonPayableTransactionObject + } + events: { + ProxyCreation(cb?: Callback): EventEmitter + ProxyCreation(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'ProxyCreation', cb: Callback): void + once(event: 'ProxyCreation', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/index.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/index.ts new file mode 100644 index 000000000..c76ff6f37 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Gnosis_safe } from './Gnosis_safe' +export type { Proxy_factory } from './Proxy_factory' diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/types.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/types.ts new file mode 100644 index 000000000..dd01da1f0 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.0.0/types.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type BN from 'bn.js' +import type { EventEmitter } from 'events' +import type { EventLog, PromiEvent, TransactionReceipt } from 'web3-core/types' +import type { Contract } from 'web3-eth-contract' + +export interface EstimateGasOptions { + from?: string + gas?: number + value?: number | string | BN +} + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type Callback = (error: Error, result: T) => void +export interface ContractEventLog extends EventLog { + returnValues: T +} +export interface ContractEventEmitter extends EventEmitter { + on(event: 'connected', listener: (subscriptionId: string) => void): this + on(event: 'data' | 'changed', listener: (event: ContractEventLog) => void): this + on(event: 'error', listener: (error: Error) => void): this +} + +export interface NonPayableTx { + nonce?: string | number | BN + chainId?: string | number | BN + from?: string + to?: string + data?: string + gas?: string | number | BN + maxPriorityFeePerGas?: string | number | BN + maxFeePerGas?: string | number | BN + gasPrice?: string | number | BN +} + +export interface PayableTx extends NonPayableTx { + value?: string | number | BN +} + +export interface NonPayableTransactionObject { + arguments: any[] + call(tx?: NonPayableTx, block?: BlockType): Promise + send(tx?: NonPayableTx): PromiEvent + estimateGas(tx?: NonPayableTx): Promise + encodeABI(): string +} + +export interface PayableTransactionObject { + arguments: any[] + call(tx?: PayableTx, block?: BlockType): Promise + send(tx?: PayableTx): PromiEvent + estimateGas(tx?: PayableTx): Promise + encodeABI(): string +} + +export type BlockType = 'latest' | 'pending' | 'genesis' | 'earliest' | number | BN +export type BaseContract = Omit diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Gnosis_safe.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Gnosis_safe.ts new file mode 100644 index 000000000..ed083221d --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Gnosis_safe.ts @@ -0,0 +1,316 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type AddedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type ApproveHash = ContractEventLog<{ + approvedHash: string + owner: string + 0: string + 1: string +}> +export type ChangedMasterCopy = ContractEventLog<{ + masterCopy: string + 0: string +}> +export type ChangedThreshold = ContractEventLog<{ + threshold: string + 0: string +}> +export type DisabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type EnabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionFailure = ContractEventLog<{ + txHash: string + payment: string + 0: string + 1: string +}> +export type ExecutionFromModuleFailure = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionFromModuleSuccess = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionSuccess = ContractEventLog<{ + txHash: string + payment: string + 0: string + 1: string +}> +export type RemovedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type SignMsg = ContractEventLog<{ + msgHash: string + 0: string +}> + +export interface Gnosis_safe extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Gnosis_safe + clone(): Gnosis_safe + methods: { + NAME(): NonPayableTransactionObject + + VERSION(): NonPayableTransactionObject + + addOwnerWithThreshold( + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + approvedHashes(arg0: string, arg1: string | number[]): NonPayableTransactionObject + + changeMasterCopy(_masterCopy: string): NonPayableTransactionObject + + changeThreshold(_threshold: number | string | BN): NonPayableTransactionObject + + disableModule(prevModule: string, module: string): NonPayableTransactionObject + + domainSeparator(): NonPayableTransactionObject + + enableModule(module: string): NonPayableTransactionObject + + execTransactionFromModule( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject + + execTransactionFromModuleReturnData( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject<{ + success: boolean + returnData: string + 0: boolean + 1: string + }> + + getModules(): NonPayableTransactionObject + + getModulesPaginated( + start: string, + pageSize: number | string | BN + ): NonPayableTransactionObject<{ + array: string[] + next: string + 0: string[] + 1: string + }> + + getOwners(): NonPayableTransactionObject + + getThreshold(): NonPayableTransactionObject + + isOwner(owner: string): NonPayableTransactionObject + + nonce(): NonPayableTransactionObject + + removeOwner( + prevOwner: string, + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + setFallbackHandler(handler: string): NonPayableTransactionObject + + signedMessages(arg0: string | number[]): NonPayableTransactionObject + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string + ): NonPayableTransactionObject + + setup( + _owners: string[], + _threshold: number | string | BN, + to: string, + data: string | number[], + fallbackHandler: string, + paymentToken: string, + payment: number | string | BN, + paymentReceiver: string + ): NonPayableTransactionObject + + execTransaction( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + signatures: string | number[] + ): NonPayableTransactionObject + + requiredTxGas( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject + + approveHash(hashToApprove: string | number[]): NonPayableTransactionObject + + signMessage(_data: string | number[]): NonPayableTransactionObject + + isValidSignature( + _data: string | number[], + _signature: string | number[] + ): NonPayableTransactionObject + + getMessageHash(message: string | number[]): NonPayableTransactionObject + + encodeTransactionData( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + + getTransactionHash( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + } + events: { + AddedOwner(cb?: Callback): EventEmitter + AddedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + ApproveHash(cb?: Callback): EventEmitter + ApproveHash(options?: EventOptions, cb?: Callback): EventEmitter + + ChangedMasterCopy(cb?: Callback): EventEmitter + ChangedMasterCopy(options?: EventOptions, cb?: Callback): EventEmitter + + ChangedThreshold(cb?: Callback): EventEmitter + ChangedThreshold(options?: EventOptions, cb?: Callback): EventEmitter + + DisabledModule(cb?: Callback): EventEmitter + DisabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + EnabledModule(cb?: Callback): EventEmitter + EnabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + ExecutionFailure(cb?: Callback): EventEmitter + ExecutionFailure(options?: EventOptions, cb?: Callback): EventEmitter + + ExecutionFromModuleFailure(cb?: Callback): EventEmitter + ExecutionFromModuleFailure( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ExecutionFromModuleSuccess(cb?: Callback): EventEmitter + ExecutionFromModuleSuccess( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ExecutionSuccess(cb?: Callback): EventEmitter + ExecutionSuccess(options?: EventOptions, cb?: Callback): EventEmitter + + RemovedOwner(cb?: Callback): EventEmitter + RemovedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + SignMsg(cb?: Callback): EventEmitter + SignMsg(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'AddedOwner', cb: Callback): void + once(event: 'AddedOwner', options: EventOptions, cb: Callback): void + + once(event: 'ApproveHash', cb: Callback): void + once(event: 'ApproveHash', options: EventOptions, cb: Callback): void + + once(event: 'ChangedMasterCopy', cb: Callback): void + once(event: 'ChangedMasterCopy', options: EventOptions, cb: Callback): void + + once(event: 'ChangedThreshold', cb: Callback): void + once(event: 'ChangedThreshold', options: EventOptions, cb: Callback): void + + once(event: 'DisabledModule', cb: Callback): void + once(event: 'DisabledModule', options: EventOptions, cb: Callback): void + + once(event: 'EnabledModule', cb: Callback): void + once(event: 'EnabledModule', options: EventOptions, cb: Callback): void + + once(event: 'ExecutionFailure', cb: Callback): void + once(event: 'ExecutionFailure', options: EventOptions, cb: Callback): void + + once(event: 'ExecutionFromModuleFailure', cb: Callback): void + once( + event: 'ExecutionFromModuleFailure', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ExecutionFromModuleSuccess', cb: Callback): void + once( + event: 'ExecutionFromModuleSuccess', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ExecutionSuccess', cb: Callback): void + once(event: 'ExecutionSuccess', options: EventOptions, cb: Callback): void + + once(event: 'RemovedOwner', cb: Callback): void + once(event: 'RemovedOwner', options: EventOptions, cb: Callback): void + + once(event: 'SignMsg', cb: Callback): void + once(event: 'SignMsg', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Multi_send.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Multi_send.ts new file mode 100644 index 000000000..eec5706c1 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Multi_send.ts @@ -0,0 +1,33 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export interface Multi_send extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Multi_send + clone(): Multi_send + methods: { + multiSend(transactions: string | number[]): NonPayableTransactionObject + } + events: { + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Proxy_factory.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Proxy_factory.ts new file mode 100644 index 000000000..efd09350d --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/Proxy_factory.ts @@ -0,0 +1,67 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type ProxyCreation = ContractEventLog<{ + proxy: string + 0: string +}> + +export interface Proxy_factory extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Proxy_factory + clone(): Proxy_factory + methods: { + createProxy(masterCopy: string, data: string | number[]): NonPayableTransactionObject + + proxyRuntimeCode(): NonPayableTransactionObject + + proxyCreationCode(): NonPayableTransactionObject + + createProxyWithNonce( + _mastercopy: string, + initializer: string | number[], + saltNonce: number | string | BN + ): NonPayableTransactionObject + + createProxyWithCallback( + _mastercopy: string, + initializer: string | number[], + saltNonce: number | string | BN, + callback: string + ): NonPayableTransactionObject + + calculateCreateProxyWithNonceAddress( + _mastercopy: string, + initializer: string | number[], + saltNonce: number | string | BN + ): NonPayableTransactionObject + } + events: { + ProxyCreation(cb?: Callback): EventEmitter + ProxyCreation(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'ProxyCreation', cb: Callback): void + once(event: 'ProxyCreation', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/index.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/index.ts new file mode 100644 index 000000000..ad4a165cd --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Gnosis_safe } from './Gnosis_safe' +export type { Multi_send } from './Multi_send' +export type { Proxy_factory } from './Proxy_factory' diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/types.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/types.ts new file mode 100644 index 000000000..dd01da1f0 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.1.1/types.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type BN from 'bn.js' +import type { EventEmitter } from 'events' +import type { EventLog, PromiEvent, TransactionReceipt } from 'web3-core/types' +import type { Contract } from 'web3-eth-contract' + +export interface EstimateGasOptions { + from?: string + gas?: number + value?: number | string | BN +} + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type Callback = (error: Error, result: T) => void +export interface ContractEventLog extends EventLog { + returnValues: T +} +export interface ContractEventEmitter extends EventEmitter { + on(event: 'connected', listener: (subscriptionId: string) => void): this + on(event: 'data' | 'changed', listener: (event: ContractEventLog) => void): this + on(event: 'error', listener: (error: Error) => void): this +} + +export interface NonPayableTx { + nonce?: string | number | BN + chainId?: string | number | BN + from?: string + to?: string + data?: string + gas?: string | number | BN + maxPriorityFeePerGas?: string | number | BN + maxFeePerGas?: string | number | BN + gasPrice?: string | number | BN +} + +export interface PayableTx extends NonPayableTx { + value?: string | number | BN +} + +export interface NonPayableTransactionObject { + arguments: any[] + call(tx?: NonPayableTx, block?: BlockType): Promise + send(tx?: NonPayableTx): PromiEvent + estimateGas(tx?: NonPayableTx): Promise + encodeABI(): string +} + +export interface PayableTransactionObject { + arguments: any[] + call(tx?: PayableTx, block?: BlockType): Promise + send(tx?: PayableTx): PromiEvent + estimateGas(tx?: PayableTx): Promise + encodeABI(): string +} + +export type BlockType = 'latest' | 'pending' | 'genesis' | 'earliest' | number | BN +export type BaseContract = Omit diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.2.0/Gnosis_safe.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.2.0/Gnosis_safe.ts new file mode 100644 index 000000000..c4e4fbbb6 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.2.0/Gnosis_safe.ts @@ -0,0 +1,318 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type AddedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type ApproveHash = ContractEventLog<{ + approvedHash: string + owner: string + 0: string + 1: string +}> +export type ChangedMasterCopy = ContractEventLog<{ + masterCopy: string + 0: string +}> +export type ChangedThreshold = ContractEventLog<{ + threshold: string + 0: string +}> +export type DisabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type EnabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionFailure = ContractEventLog<{ + txHash: string + payment: string + 0: string + 1: string +}> +export type ExecutionFromModuleFailure = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionFromModuleSuccess = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionSuccess = ContractEventLog<{ + txHash: string + payment: string + 0: string + 1: string +}> +export type RemovedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type SignMsg = ContractEventLog<{ + msgHash: string + 0: string +}> + +export interface Gnosis_safe extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Gnosis_safe + clone(): Gnosis_safe + methods: { + NAME(): NonPayableTransactionObject + + VERSION(): NonPayableTransactionObject + + addOwnerWithThreshold( + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + approvedHashes(arg0: string, arg1: string | number[]): NonPayableTransactionObject + + changeMasterCopy(_masterCopy: string): NonPayableTransactionObject + + changeThreshold(_threshold: number | string | BN): NonPayableTransactionObject + + disableModule(prevModule: string, module: string): NonPayableTransactionObject + + domainSeparator(): NonPayableTransactionObject + + enableModule(module: string): NonPayableTransactionObject + + execTransactionFromModule( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject + + execTransactionFromModuleReturnData( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject<{ + success: boolean + returnData: string + 0: boolean + 1: string + }> + + getModules(): NonPayableTransactionObject + + getModulesPaginated( + start: string, + pageSize: number | string | BN + ): NonPayableTransactionObject<{ + array: string[] + next: string + 0: string[] + 1: string + }> + + getOwners(): NonPayableTransactionObject + + getThreshold(): NonPayableTransactionObject + + isModuleEnabled(module: string): NonPayableTransactionObject + + isOwner(owner: string): NonPayableTransactionObject + + nonce(): NonPayableTransactionObject + + removeOwner( + prevOwner: string, + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + setFallbackHandler(handler: string): NonPayableTransactionObject + + signedMessages(arg0: string | number[]): NonPayableTransactionObject + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string + ): NonPayableTransactionObject + + setup( + _owners: string[], + _threshold: number | string | BN, + to: string, + data: string | number[], + fallbackHandler: string, + paymentToken: string, + payment: number | string | BN, + paymentReceiver: string + ): NonPayableTransactionObject + + execTransaction( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + signatures: string | number[] + ): PayableTransactionObject + + requiredTxGas( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject + + approveHash(hashToApprove: string | number[]): NonPayableTransactionObject + + signMessage(_data: string | number[]): NonPayableTransactionObject + + isValidSignature( + _data: string | number[], + _signature: string | number[] + ): NonPayableTransactionObject + + getMessageHash(message: string | number[]): NonPayableTransactionObject + + encodeTransactionData( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + + getTransactionHash( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + } + events: { + AddedOwner(cb?: Callback): EventEmitter + AddedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + ApproveHash(cb?: Callback): EventEmitter + ApproveHash(options?: EventOptions, cb?: Callback): EventEmitter + + ChangedMasterCopy(cb?: Callback): EventEmitter + ChangedMasterCopy(options?: EventOptions, cb?: Callback): EventEmitter + + ChangedThreshold(cb?: Callback): EventEmitter + ChangedThreshold(options?: EventOptions, cb?: Callback): EventEmitter + + DisabledModule(cb?: Callback): EventEmitter + DisabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + EnabledModule(cb?: Callback): EventEmitter + EnabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + ExecutionFailure(cb?: Callback): EventEmitter + ExecutionFailure(options?: EventOptions, cb?: Callback): EventEmitter + + ExecutionFromModuleFailure(cb?: Callback): EventEmitter + ExecutionFromModuleFailure( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ExecutionFromModuleSuccess(cb?: Callback): EventEmitter + ExecutionFromModuleSuccess( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ExecutionSuccess(cb?: Callback): EventEmitter + ExecutionSuccess(options?: EventOptions, cb?: Callback): EventEmitter + + RemovedOwner(cb?: Callback): EventEmitter + RemovedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + SignMsg(cb?: Callback): EventEmitter + SignMsg(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'AddedOwner', cb: Callback): void + once(event: 'AddedOwner', options: EventOptions, cb: Callback): void + + once(event: 'ApproveHash', cb: Callback): void + once(event: 'ApproveHash', options: EventOptions, cb: Callback): void + + once(event: 'ChangedMasterCopy', cb: Callback): void + once(event: 'ChangedMasterCopy', options: EventOptions, cb: Callback): void + + once(event: 'ChangedThreshold', cb: Callback): void + once(event: 'ChangedThreshold', options: EventOptions, cb: Callback): void + + once(event: 'DisabledModule', cb: Callback): void + once(event: 'DisabledModule', options: EventOptions, cb: Callback): void + + once(event: 'EnabledModule', cb: Callback): void + once(event: 'EnabledModule', options: EventOptions, cb: Callback): void + + once(event: 'ExecutionFailure', cb: Callback): void + once(event: 'ExecutionFailure', options: EventOptions, cb: Callback): void + + once(event: 'ExecutionFromModuleFailure', cb: Callback): void + once( + event: 'ExecutionFromModuleFailure', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ExecutionFromModuleSuccess', cb: Callback): void + once( + event: 'ExecutionFromModuleSuccess', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ExecutionSuccess', cb: Callback): void + once(event: 'ExecutionSuccess', options: EventOptions, cb: Callback): void + + once(event: 'RemovedOwner', cb: Callback): void + once(event: 'RemovedOwner', options: EventOptions, cb: Callback): void + + once(event: 'SignMsg', cb: Callback): void + once(event: 'SignMsg', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.2.0/index.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.2.0/index.ts new file mode 100644 index 000000000..9e729a039 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.2.0/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Gnosis_safe } from './Gnosis_safe' diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.2.0/types.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.2.0/types.ts new file mode 100644 index 000000000..dd01da1f0 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.2.0/types.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type BN from 'bn.js' +import type { EventEmitter } from 'events' +import type { EventLog, PromiEvent, TransactionReceipt } from 'web3-core/types' +import type { Contract } from 'web3-eth-contract' + +export interface EstimateGasOptions { + from?: string + gas?: number + value?: number | string | BN +} + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type Callback = (error: Error, result: T) => void +export interface ContractEventLog extends EventLog { + returnValues: T +} +export interface ContractEventEmitter extends EventEmitter { + on(event: 'connected', listener: (subscriptionId: string) => void): this + on(event: 'data' | 'changed', listener: (event: ContractEventLog) => void): this + on(event: 'error', listener: (error: Error) => void): this +} + +export interface NonPayableTx { + nonce?: string | number | BN + chainId?: string | number | BN + from?: string + to?: string + data?: string + gas?: string | number | BN + maxPriorityFeePerGas?: string | number | BN + maxFeePerGas?: string | number | BN + gasPrice?: string | number | BN +} + +export interface PayableTx extends NonPayableTx { + value?: string | number | BN +} + +export interface NonPayableTransactionObject { + arguments: any[] + call(tx?: NonPayableTx, block?: BlockType): Promise + send(tx?: NonPayableTx): PromiEvent + estimateGas(tx?: NonPayableTx): Promise + encodeABI(): string +} + +export interface PayableTransactionObject { + arguments: any[] + call(tx?: PayableTx, block?: BlockType): Promise + send(tx?: PayableTx): PromiEvent + estimateGas(tx?: PayableTx): Promise + encodeABI(): string +} + +export type BlockType = 'latest' | 'pending' | 'genesis' | 'earliest' | number | BN +export type BaseContract = Omit diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Compatibility_fallback_handler.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Compatibility_fallback_handler.ts new file mode 100644 index 000000000..aa4c2ea5a --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Compatibility_fallback_handler.ts @@ -0,0 +1,97 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export interface Compatibility_fallback_handler extends BaseContract { + constructor( + jsonInterface: any[], + address?: string, + options?: ContractOptions + ): Compatibility_fallback_handler + clone(): Compatibility_fallback_handler + methods: { + NAME(): NonPayableTransactionObject + + VERSION(): NonPayableTransactionObject + + getMessageHash(message: string | number[]): NonPayableTransactionObject + + getMessageHashForSafe( + safe: string, + message: string | number[] + ): NonPayableTransactionObject + + getModules(): NonPayableTransactionObject + + 'isValidSignature(bytes32,bytes)'( + _dataHash: string | number[], + _signature: string | number[] + ): NonPayableTransactionObject + + 'isValidSignature(bytes,bytes)'( + _data: string | number[], + _signature: string | number[] + ): NonPayableTransactionObject + + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: (number | string | BN)[], + arg3: (number | string | BN)[], + arg4: string | number[] + ): NonPayableTransactionObject + + onERC1155Received( + arg0: string, + arg1: string, + arg2: number | string | BN, + arg3: number | string | BN, + arg4: string | number[] + ): NonPayableTransactionObject + + onERC721Received( + arg0: string, + arg1: string, + arg2: number | string | BN, + arg3: string | number[] + ): NonPayableTransactionObject + + simulate( + targetContract: string, + calldataPayload: string | number[] + ): NonPayableTransactionObject + + supportsInterface(interfaceId: string | number[]): NonPayableTransactionObject + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: number | string | BN, + arg4: string | number[], + arg5: string | number[] + ): NonPayableTransactionObject + } + events: { + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Create_call.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Create_call.ts new file mode 100644 index 000000000..569fb583c --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Create_call.ts @@ -0,0 +1,53 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type ContractCreation = ContractEventLog<{ + newContract: string + 0: string +}> + +export interface Create_call extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Create_call + clone(): Create_call + methods: { + performCreate( + value: number | string | BN, + deploymentData: string | number[] + ): NonPayableTransactionObject + + performCreate2( + value: number | string | BN, + deploymentData: string | number[], + salt: string | number[] + ): NonPayableTransactionObject + } + events: { + ContractCreation(cb?: Callback): EventEmitter + ContractCreation(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'ContractCreation', cb: Callback): void + once(event: 'ContractCreation', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Gnosis_safe.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Gnosis_safe.ts new file mode 100644 index 000000000..c370d371b --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Gnosis_safe.ts @@ -0,0 +1,377 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type AddedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type ApproveHash = ContractEventLog<{ + approvedHash: string + owner: string + 0: string + 1: string +}> +export type ChangedFallbackHandler = ContractEventLog<{ + handler: string + 0: string +}> +export type ChangedGuard = ContractEventLog<{ + guard: string + 0: string +}> +export type ChangedThreshold = ContractEventLog<{ + threshold: string + 0: string +}> +export type DisabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type EnabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionFailure = ContractEventLog<{ + txHash: string + payment: string + 0: string + 1: string +}> +export type ExecutionFromModuleFailure = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionFromModuleSuccess = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionSuccess = ContractEventLog<{ + txHash: string + payment: string + 0: string + 1: string +}> +export type RemovedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type SafeReceived = ContractEventLog<{ + sender: string + value: string + 0: string + 1: string +}> +export type SafeSetup = ContractEventLog<{ + initiator: string + owners: string[] + threshold: string + initializer: string + fallbackHandler: string + 0: string + 1: string[] + 2: string + 3: string + 4: string +}> +export type SignMsg = ContractEventLog<{ + msgHash: string + 0: string +}> + +export interface Gnosis_safe extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Gnosis_safe + clone(): Gnosis_safe + methods: { + VERSION(): NonPayableTransactionObject + + addOwnerWithThreshold( + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + approveHash(hashToApprove: string | number[]): NonPayableTransactionObject + + approvedHashes(arg0: string, arg1: string | number[]): NonPayableTransactionObject + + changeThreshold(_threshold: number | string | BN): NonPayableTransactionObject + + checkNSignatures( + dataHash: string | number[], + data: string | number[], + signatures: string | number[], + requiredSignatures: number | string | BN + ): NonPayableTransactionObject + + checkSignatures( + dataHash: string | number[], + data: string | number[], + signatures: string | number[] + ): NonPayableTransactionObject + + disableModule(prevModule: string, module: string): NonPayableTransactionObject + + domainSeparator(): NonPayableTransactionObject + + enableModule(module: string): NonPayableTransactionObject + + encodeTransactionData( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + + execTransaction( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + signatures: string | number[] + ): PayableTransactionObject + + execTransactionFromModule( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject + + execTransactionFromModuleReturnData( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject<{ + success: boolean + returnData: string + 0: boolean + 1: string + }> + + getChainId(): NonPayableTransactionObject + + getModulesPaginated( + start: string, + pageSize: number | string | BN + ): NonPayableTransactionObject<{ + array: string[] + next: string + 0: string[] + 1: string + }> + + getOwners(): NonPayableTransactionObject + + getStorageAt( + offset: number | string | BN, + length: number | string | BN + ): NonPayableTransactionObject + + getThreshold(): NonPayableTransactionObject + + getTransactionHash( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + + isModuleEnabled(module: string): NonPayableTransactionObject + + isOwner(owner: string): NonPayableTransactionObject + + nonce(): NonPayableTransactionObject + + removeOwner( + prevOwner: string, + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + requiredTxGas( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject + + setFallbackHandler(handler: string): NonPayableTransactionObject + + setGuard(guard: string): NonPayableTransactionObject + + setup( + _owners: string[], + _threshold: number | string | BN, + to: string, + data: string | number[], + fallbackHandler: string, + paymentToken: string, + payment: number | string | BN, + paymentReceiver: string + ): NonPayableTransactionObject + + signedMessages(arg0: string | number[]): NonPayableTransactionObject + + simulateAndRevert( + targetContract: string, + calldataPayload: string | number[] + ): NonPayableTransactionObject + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string + ): NonPayableTransactionObject + } + events: { + AddedOwner(cb?: Callback): EventEmitter + AddedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + ApproveHash(cb?: Callback): EventEmitter + ApproveHash(options?: EventOptions, cb?: Callback): EventEmitter + + ChangedFallbackHandler(cb?: Callback): EventEmitter + ChangedFallbackHandler( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ChangedGuard(cb?: Callback): EventEmitter + ChangedGuard(options?: EventOptions, cb?: Callback): EventEmitter + + ChangedThreshold(cb?: Callback): EventEmitter + ChangedThreshold(options?: EventOptions, cb?: Callback): EventEmitter + + DisabledModule(cb?: Callback): EventEmitter + DisabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + EnabledModule(cb?: Callback): EventEmitter + EnabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + ExecutionFailure(cb?: Callback): EventEmitter + ExecutionFailure(options?: EventOptions, cb?: Callback): EventEmitter + + ExecutionFromModuleFailure(cb?: Callback): EventEmitter + ExecutionFromModuleFailure( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ExecutionFromModuleSuccess(cb?: Callback): EventEmitter + ExecutionFromModuleSuccess( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ExecutionSuccess(cb?: Callback): EventEmitter + ExecutionSuccess(options?: EventOptions, cb?: Callback): EventEmitter + + RemovedOwner(cb?: Callback): EventEmitter + RemovedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + SafeReceived(cb?: Callback): EventEmitter + SafeReceived(options?: EventOptions, cb?: Callback): EventEmitter + + SafeSetup(cb?: Callback): EventEmitter + SafeSetup(options?: EventOptions, cb?: Callback): EventEmitter + + SignMsg(cb?: Callback): EventEmitter + SignMsg(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'AddedOwner', cb: Callback): void + once(event: 'AddedOwner', options: EventOptions, cb: Callback): void + + once(event: 'ApproveHash', cb: Callback): void + once(event: 'ApproveHash', options: EventOptions, cb: Callback): void + + once(event: 'ChangedFallbackHandler', cb: Callback): void + once( + event: 'ChangedFallbackHandler', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ChangedGuard', cb: Callback): void + once(event: 'ChangedGuard', options: EventOptions, cb: Callback): void + + once(event: 'ChangedThreshold', cb: Callback): void + once(event: 'ChangedThreshold', options: EventOptions, cb: Callback): void + + once(event: 'DisabledModule', cb: Callback): void + once(event: 'DisabledModule', options: EventOptions, cb: Callback): void + + once(event: 'EnabledModule', cb: Callback): void + once(event: 'EnabledModule', options: EventOptions, cb: Callback): void + + once(event: 'ExecutionFailure', cb: Callback): void + once(event: 'ExecutionFailure', options: EventOptions, cb: Callback): void + + once(event: 'ExecutionFromModuleFailure', cb: Callback): void + once( + event: 'ExecutionFromModuleFailure', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ExecutionFromModuleSuccess', cb: Callback): void + once( + event: 'ExecutionFromModuleSuccess', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ExecutionSuccess', cb: Callback): void + once(event: 'ExecutionSuccess', options: EventOptions, cb: Callback): void + + once(event: 'RemovedOwner', cb: Callback): void + once(event: 'RemovedOwner', options: EventOptions, cb: Callback): void + + once(event: 'SafeReceived', cb: Callback): void + once(event: 'SafeReceived', options: EventOptions, cb: Callback): void + + once(event: 'SafeSetup', cb: Callback): void + once(event: 'SafeSetup', options: EventOptions, cb: Callback): void + + once(event: 'SignMsg', cb: Callback): void + once(event: 'SignMsg', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Multi_send.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Multi_send.ts new file mode 100644 index 000000000..2def2b6a9 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Multi_send.ts @@ -0,0 +1,33 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export interface Multi_send extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Multi_send + clone(): Multi_send + methods: { + multiSend(transactions: string | number[]): PayableTransactionObject + } + events: { + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Multi_send_call_only.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Multi_send_call_only.ts new file mode 100644 index 000000000..13272f54d --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Multi_send_call_only.ts @@ -0,0 +1,37 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export interface Multi_send_call_only extends BaseContract { + constructor( + jsonInterface: any[], + address?: string, + options?: ContractOptions + ): Multi_send_call_only + clone(): Multi_send_call_only + methods: { + multiSend(transactions: string | number[]): PayableTransactionObject + } + events: { + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Proxy_factory.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Proxy_factory.ts new file mode 100644 index 000000000..8e6669cb2 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Proxy_factory.ts @@ -0,0 +1,69 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type ProxyCreation = ContractEventLog<{ + proxy: string + singleton: string + 0: string + 1: string +}> + +export interface Proxy_factory extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Proxy_factory + clone(): Proxy_factory + methods: { + calculateCreateProxyWithNonceAddress( + _singleton: string, + initializer: string | number[], + saltNonce: number | string | BN + ): NonPayableTransactionObject + + createProxy(singleton: string, data: string | number[]): NonPayableTransactionObject + + createProxyWithCallback( + _singleton: string, + initializer: string | number[], + saltNonce: number | string | BN, + callback: string + ): NonPayableTransactionObject + + createProxyWithNonce( + _singleton: string, + initializer: string | number[], + saltNonce: number | string | BN + ): NonPayableTransactionObject + + proxyCreationCode(): NonPayableTransactionObject + + proxyRuntimeCode(): NonPayableTransactionObject + } + events: { + ProxyCreation(cb?: Callback): EventEmitter + ProxyCreation(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'ProxyCreation', cb: Callback): void + once(event: 'ProxyCreation', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Sign_message_lib.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Sign_message_lib.ts new file mode 100644 index 000000000..40a19b265 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Sign_message_lib.ts @@ -0,0 +1,46 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type SignMsg = ContractEventLog<{ + msgHash: string + 0: string +}> + +export interface Sign_message_lib extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Sign_message_lib + clone(): Sign_message_lib + methods: { + getMessageHash(message: string | number[]): NonPayableTransactionObject + + signMessage(_data: string | number[]): NonPayableTransactionObject + } + events: { + SignMsg(cb?: Callback): EventEmitter + SignMsg(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'SignMsg', cb: Callback): void + once(event: 'SignMsg', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Simulate_tx_accessor.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Simulate_tx_accessor.ts new file mode 100644 index 000000000..9adc18b36 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/Simulate_tx_accessor.ts @@ -0,0 +1,49 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export interface Simulate_tx_accessor extends BaseContract { + constructor( + jsonInterface: any[], + address?: string, + options?: ContractOptions + ): Simulate_tx_accessor + clone(): Simulate_tx_accessor + methods: { + simulate( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject<{ + estimate: string + success: boolean + returnData: string + 0: string + 1: boolean + 2: string + }> + } + events: { + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/index.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/index.ts new file mode 100644 index 000000000..636510858 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/index.ts @@ -0,0 +1,11 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Compatibility_fallback_handler } from './Compatibility_fallback_handler' +export type { Create_call } from './Create_call' +export type { Gnosis_safe } from './Gnosis_safe' +export type { Multi_send } from './Multi_send' +export type { Multi_send_call_only } from './Multi_send_call_only' +export type { Proxy_factory } from './Proxy_factory' +export type { Sign_message_lib } from './Sign_message_lib' +export type { Simulate_tx_accessor } from './Simulate_tx_accessor' diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/types.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/types.ts new file mode 100644 index 000000000..dd01da1f0 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.3.0/types.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type BN from 'bn.js' +import type { EventEmitter } from 'events' +import type { EventLog, PromiEvent, TransactionReceipt } from 'web3-core/types' +import type { Contract } from 'web3-eth-contract' + +export interface EstimateGasOptions { + from?: string + gas?: number + value?: number | string | BN +} + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type Callback = (error: Error, result: T) => void +export interface ContractEventLog extends EventLog { + returnValues: T +} +export interface ContractEventEmitter extends EventEmitter { + on(event: 'connected', listener: (subscriptionId: string) => void): this + on(event: 'data' | 'changed', listener: (event: ContractEventLog) => void): this + on(event: 'error', listener: (error: Error) => void): this +} + +export interface NonPayableTx { + nonce?: string | number | BN + chainId?: string | number | BN + from?: string + to?: string + data?: string + gas?: string | number | BN + maxPriorityFeePerGas?: string | number | BN + maxFeePerGas?: string | number | BN + gasPrice?: string | number | BN +} + +export interface PayableTx extends NonPayableTx { + value?: string | number | BN +} + +export interface NonPayableTransactionObject { + arguments: any[] + call(tx?: NonPayableTx, block?: BlockType): Promise + send(tx?: NonPayableTx): PromiEvent + estimateGas(tx?: NonPayableTx): Promise + encodeABI(): string +} + +export interface PayableTransactionObject { + arguments: any[] + call(tx?: PayableTx, block?: BlockType): Promise + send(tx?: PayableTx): PromiEvent + estimateGas(tx?: PayableTx): Promise + encodeABI(): string +} + +export type BlockType = 'latest' | 'pending' | 'genesis' | 'earliest' | number | BN +export type BaseContract = Omit diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Compatibility_fallback_handler.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Compatibility_fallback_handler.ts new file mode 100644 index 000000000..f0f2ed9d7 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Compatibility_fallback_handler.ts @@ -0,0 +1,98 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export interface Compatibility_fallback_handler extends BaseContract { + constructor( + jsonInterface: any[], + address?: string, + options?: ContractOptions + ): Compatibility_fallback_handler + clone(): Compatibility_fallback_handler + methods: { + encodeMessageDataForSafe( + safe: string, + message: string | number[] + ): NonPayableTransactionObject + + getMessageHash(message: string | number[]): NonPayableTransactionObject + + getMessageHashForSafe( + safe: string, + message: string | number[] + ): NonPayableTransactionObject + + getModules(): NonPayableTransactionObject + + 'isValidSignature(bytes32,bytes)'( + _dataHash: string | number[], + _signature: string | number[] + ): NonPayableTransactionObject + + 'isValidSignature(bytes,bytes)'( + _data: string | number[], + _signature: string | number[] + ): NonPayableTransactionObject + + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: (number | string | BN)[], + arg3: (number | string | BN)[], + arg4: string | number[] + ): NonPayableTransactionObject + + onERC1155Received( + arg0: string, + arg1: string, + arg2: number | string | BN, + arg3: number | string | BN, + arg4: string | number[] + ): NonPayableTransactionObject + + onERC721Received( + arg0: string, + arg1: string, + arg2: number | string | BN, + arg3: string | number[] + ): NonPayableTransactionObject + + simulate( + targetContract: string, + calldataPayload: string | number[] + ): NonPayableTransactionObject + + supportsInterface(interfaceId: string | number[]): NonPayableTransactionObject + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: number | string | BN, + arg4: string | number[], + arg5: string | number[] + ): NonPayableTransactionObject + } + events: { + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Create_call.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Create_call.ts new file mode 100644 index 000000000..569fb583c --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Create_call.ts @@ -0,0 +1,53 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type ContractCreation = ContractEventLog<{ + newContract: string + 0: string +}> + +export interface Create_call extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Create_call + clone(): Create_call + methods: { + performCreate( + value: number | string | BN, + deploymentData: string | number[] + ): NonPayableTransactionObject + + performCreate2( + value: number | string | BN, + deploymentData: string | number[], + salt: string | number[] + ): NonPayableTransactionObject + } + events: { + ContractCreation(cb?: Callback): EventEmitter + ContractCreation(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'ContractCreation', cb: Callback): void + once(event: 'ContractCreation', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Multi_send.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Multi_send.ts new file mode 100644 index 000000000..2def2b6a9 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Multi_send.ts @@ -0,0 +1,33 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export interface Multi_send extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Multi_send + clone(): Multi_send + methods: { + multiSend(transactions: string | number[]): PayableTransactionObject + } + events: { + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Multi_send_call_only.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Multi_send_call_only.ts new file mode 100644 index 000000000..13272f54d --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Multi_send_call_only.ts @@ -0,0 +1,37 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export interface Multi_send_call_only extends BaseContract { + constructor( + jsonInterface: any[], + address?: string, + options?: ContractOptions + ): Multi_send_call_only + clone(): Multi_send_call_only + methods: { + multiSend(transactions: string | number[]): PayableTransactionObject + } + events: { + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Safe.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Safe.ts new file mode 100644 index 000000000..b1f0d8adf --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Safe.ts @@ -0,0 +1,370 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type AddedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type ApproveHash = ContractEventLog<{ + approvedHash: string + owner: string + 0: string + 1: string +}> +export type ChangedFallbackHandler = ContractEventLog<{ + handler: string + 0: string +}> +export type ChangedGuard = ContractEventLog<{ + guard: string + 0: string +}> +export type ChangedThreshold = ContractEventLog<{ + threshold: string + 0: string +}> +export type DisabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type EnabledModule = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionFailure = ContractEventLog<{ + txHash: string + payment: string + 0: string + 1: string +}> +export type ExecutionFromModuleFailure = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionFromModuleSuccess = ContractEventLog<{ + module: string + 0: string +}> +export type ExecutionSuccess = ContractEventLog<{ + txHash: string + payment: string + 0: string + 1: string +}> +export type RemovedOwner = ContractEventLog<{ + owner: string + 0: string +}> +export type SafeReceived = ContractEventLog<{ + sender: string + value: string + 0: string + 1: string +}> +export type SafeSetup = ContractEventLog<{ + initiator: string + owners: string[] + threshold: string + initializer: string + fallbackHandler: string + 0: string + 1: string[] + 2: string + 3: string + 4: string +}> +export type SignMsg = ContractEventLog<{ + msgHash: string + 0: string +}> + +export interface Safe extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Safe + clone(): Safe + methods: { + VERSION(): NonPayableTransactionObject + + addOwnerWithThreshold( + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + approveHash(hashToApprove: string | number[]): NonPayableTransactionObject + + approvedHashes(arg0: string, arg1: string | number[]): NonPayableTransactionObject + + changeThreshold(_threshold: number | string | BN): NonPayableTransactionObject + + checkNSignatures( + dataHash: string | number[], + data: string | number[], + signatures: string | number[], + requiredSignatures: number | string | BN + ): NonPayableTransactionObject + + checkSignatures( + dataHash: string | number[], + data: string | number[], + signatures: string | number[] + ): NonPayableTransactionObject + + disableModule(prevModule: string, module: string): NonPayableTransactionObject + + domainSeparator(): NonPayableTransactionObject + + enableModule(module: string): NonPayableTransactionObject + + encodeTransactionData( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + + execTransaction( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + signatures: string | number[] + ): PayableTransactionObject + + execTransactionFromModule( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject + + execTransactionFromModuleReturnData( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject<{ + success: boolean + returnData: string + 0: boolean + 1: string + }> + + getChainId(): NonPayableTransactionObject + + getModulesPaginated( + start: string, + pageSize: number | string | BN + ): NonPayableTransactionObject<{ + array: string[] + next: string + 0: string[] + 1: string + }> + + getOwners(): NonPayableTransactionObject + + getStorageAt( + offset: number | string | BN, + length: number | string | BN + ): NonPayableTransactionObject + + getThreshold(): NonPayableTransactionObject + + getTransactionHash( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + _nonce: number | string | BN + ): NonPayableTransactionObject + + isModuleEnabled(module: string): NonPayableTransactionObject + + isOwner(owner: string): NonPayableTransactionObject + + nonce(): NonPayableTransactionObject + + removeOwner( + prevOwner: string, + owner: string, + _threshold: number | string | BN + ): NonPayableTransactionObject + + setFallbackHandler(handler: string): NonPayableTransactionObject + + setGuard(guard: string): NonPayableTransactionObject + + setup( + _owners: string[], + _threshold: number | string | BN, + to: string, + data: string | number[], + fallbackHandler: string, + paymentToken: string, + payment: number | string | BN, + paymentReceiver: string + ): NonPayableTransactionObject + + signedMessages(arg0: string | number[]): NonPayableTransactionObject + + simulateAndRevert( + targetContract: string, + calldataPayload: string | number[] + ): NonPayableTransactionObject + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string + ): NonPayableTransactionObject + } + events: { + AddedOwner(cb?: Callback): EventEmitter + AddedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + ApproveHash(cb?: Callback): EventEmitter + ApproveHash(options?: EventOptions, cb?: Callback): EventEmitter + + ChangedFallbackHandler(cb?: Callback): EventEmitter + ChangedFallbackHandler( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ChangedGuard(cb?: Callback): EventEmitter + ChangedGuard(options?: EventOptions, cb?: Callback): EventEmitter + + ChangedThreshold(cb?: Callback): EventEmitter + ChangedThreshold(options?: EventOptions, cb?: Callback): EventEmitter + + DisabledModule(cb?: Callback): EventEmitter + DisabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + EnabledModule(cb?: Callback): EventEmitter + EnabledModule(options?: EventOptions, cb?: Callback): EventEmitter + + ExecutionFailure(cb?: Callback): EventEmitter + ExecutionFailure(options?: EventOptions, cb?: Callback): EventEmitter + + ExecutionFromModuleFailure(cb?: Callback): EventEmitter + ExecutionFromModuleFailure( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ExecutionFromModuleSuccess(cb?: Callback): EventEmitter + ExecutionFromModuleSuccess( + options?: EventOptions, + cb?: Callback + ): EventEmitter + + ExecutionSuccess(cb?: Callback): EventEmitter + ExecutionSuccess(options?: EventOptions, cb?: Callback): EventEmitter + + RemovedOwner(cb?: Callback): EventEmitter + RemovedOwner(options?: EventOptions, cb?: Callback): EventEmitter + + SafeReceived(cb?: Callback): EventEmitter + SafeReceived(options?: EventOptions, cb?: Callback): EventEmitter + + SafeSetup(cb?: Callback): EventEmitter + SafeSetup(options?: EventOptions, cb?: Callback): EventEmitter + + SignMsg(cb?: Callback): EventEmitter + SignMsg(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'AddedOwner', cb: Callback): void + once(event: 'AddedOwner', options: EventOptions, cb: Callback): void + + once(event: 'ApproveHash', cb: Callback): void + once(event: 'ApproveHash', options: EventOptions, cb: Callback): void + + once(event: 'ChangedFallbackHandler', cb: Callback): void + once( + event: 'ChangedFallbackHandler', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ChangedGuard', cb: Callback): void + once(event: 'ChangedGuard', options: EventOptions, cb: Callback): void + + once(event: 'ChangedThreshold', cb: Callback): void + once(event: 'ChangedThreshold', options: EventOptions, cb: Callback): void + + once(event: 'DisabledModule', cb: Callback): void + once(event: 'DisabledModule', options: EventOptions, cb: Callback): void + + once(event: 'EnabledModule', cb: Callback): void + once(event: 'EnabledModule', options: EventOptions, cb: Callback): void + + once(event: 'ExecutionFailure', cb: Callback): void + once(event: 'ExecutionFailure', options: EventOptions, cb: Callback): void + + once(event: 'ExecutionFromModuleFailure', cb: Callback): void + once( + event: 'ExecutionFromModuleFailure', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ExecutionFromModuleSuccess', cb: Callback): void + once( + event: 'ExecutionFromModuleSuccess', + options: EventOptions, + cb: Callback + ): void + + once(event: 'ExecutionSuccess', cb: Callback): void + once(event: 'ExecutionSuccess', options: EventOptions, cb: Callback): void + + once(event: 'RemovedOwner', cb: Callback): void + once(event: 'RemovedOwner', options: EventOptions, cb: Callback): void + + once(event: 'SafeReceived', cb: Callback): void + once(event: 'SafeReceived', options: EventOptions, cb: Callback): void + + once(event: 'SafeSetup', cb: Callback): void + once(event: 'SafeSetup', options: EventOptions, cb: Callback): void + + once(event: 'SignMsg', cb: Callback): void + once(event: 'SignMsg', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Safe_proxy_factory.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Safe_proxy_factory.ts new file mode 100644 index 000000000..9bdfdc9b2 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Safe_proxy_factory.ts @@ -0,0 +1,67 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type ProxyCreation = ContractEventLog<{ + proxy: string + singleton: string + 0: string + 1: string +}> + +export interface Safe_proxy_factory extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Safe_proxy_factory + clone(): Safe_proxy_factory + methods: { + createChainSpecificProxyWithNonce( + _singleton: string, + initializer: string | number[], + saltNonce: number | string | BN + ): NonPayableTransactionObject + + createProxyWithCallback( + _singleton: string, + initializer: string | number[], + saltNonce: number | string | BN, + callback: string + ): NonPayableTransactionObject + + createProxyWithNonce( + _singleton: string, + initializer: string | number[], + saltNonce: number | string | BN + ): NonPayableTransactionObject + + getChainId(): NonPayableTransactionObject + + proxyCreationCode(): NonPayableTransactionObject + } + events: { + ProxyCreation(cb?: Callback): EventEmitter + ProxyCreation(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'ProxyCreation', cb: Callback): void + once(event: 'ProxyCreation', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Sign_message_lib.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Sign_message_lib.ts new file mode 100644 index 000000000..40a19b265 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Sign_message_lib.ts @@ -0,0 +1,46 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type SignMsg = ContractEventLog<{ + msgHash: string + 0: string +}> + +export interface Sign_message_lib extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): Sign_message_lib + clone(): Sign_message_lib + methods: { + getMessageHash(message: string | number[]): NonPayableTransactionObject + + signMessage(_data: string | number[]): NonPayableTransactionObject + } + events: { + SignMsg(cb?: Callback): EventEmitter + SignMsg(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'SignMsg', cb: Callback): void + once(event: 'SignMsg', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Simulate_tx_accessor.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Simulate_tx_accessor.ts new file mode 100644 index 000000000..9adc18b36 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/Simulate_tx_accessor.ts @@ -0,0 +1,49 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export interface Simulate_tx_accessor extends BaseContract { + constructor( + jsonInterface: any[], + address?: string, + options?: ContractOptions + ): Simulate_tx_accessor + clone(): Simulate_tx_accessor + methods: { + simulate( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN + ): NonPayableTransactionObject<{ + estimate: string + success: boolean + returnData: string + 0: string + 1: boolean + 2: string + }> + } + events: { + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } +} diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/index.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/index.ts new file mode 100644 index 000000000..c54b76ae6 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/index.ts @@ -0,0 +1,11 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Compatibility_fallback_handler } from './Compatibility_fallback_handler' +export type { Create_call } from './Create_call' +export type { Multi_send } from './Multi_send' +export type { Multi_send_call_only } from './Multi_send_call_only' +export type { Safe } from './Safe' +export type { Safe_proxy_factory } from './Safe_proxy_factory' +export type { Sign_message_lib } from './Sign_message_lib' +export type { Simulate_tx_accessor } from './Simulate_tx_accessor' diff --git a/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/types.ts b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/types.ts new file mode 100644 index 000000000..dd01da1f0 --- /dev/null +++ b/packages/protocol-kit/typechain/src/web3-v1/v1.4.1/types.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type BN from 'bn.js' +import type { EventEmitter } from 'events' +import type { EventLog, PromiEvent, TransactionReceipt } from 'web3-core/types' +import type { Contract } from 'web3-eth-contract' + +export interface EstimateGasOptions { + from?: string + gas?: number + value?: number | string | BN +} + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type Callback = (error: Error, result: T) => void +export interface ContractEventLog extends EventLog { + returnValues: T +} +export interface ContractEventEmitter extends EventEmitter { + on(event: 'connected', listener: (subscriptionId: string) => void): this + on(event: 'data' | 'changed', listener: (event: ContractEventLog) => void): this + on(event: 'error', listener: (error: Error) => void): this +} + +export interface NonPayableTx { + nonce?: string | number | BN + chainId?: string | number | BN + from?: string + to?: string + data?: string + gas?: string | number | BN + maxPriorityFeePerGas?: string | number | BN + maxFeePerGas?: string | number | BN + gasPrice?: string | number | BN +} + +export interface PayableTx extends NonPayableTx { + value?: string | number | BN +} + +export interface NonPayableTransactionObject { + arguments: any[] + call(tx?: NonPayableTx, block?: BlockType): Promise + send(tx?: NonPayableTx): PromiEvent + estimateGas(tx?: NonPayableTx): Promise + encodeABI(): string +} + +export interface PayableTransactionObject { + arguments: any[] + call(tx?: PayableTx, block?: BlockType): Promise + send(tx?: PayableTx): PromiEvent + estimateGas(tx?: PayableTx): Promise + encodeABI(): string +} + +export type BlockType = 'latest' | 'pending' | 'genesis' | 'earliest' | number | BN +export type BaseContract = Omit diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.ts new file mode 100644 index 000000000..c932af8c4 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as token from './token' +export type { token } diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.ts new file mode 100644 index 000000000..5db1c3e20 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.ts @@ -0,0 +1,337 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from '../../../../common' + +export interface ERC20MintableInterface extends Interface { + getFunction( + nameOrSignature: + | 'addMinter' + | 'allowance' + | 'approve' + | 'balanceOf' + | 'decreaseAllowance' + | 'increaseAllowance' + | 'isMinter' + | 'mint' + | 'renounceMinter' + | 'totalSupply' + | 'transfer' + | 'transferFrom' + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: 'Approval' | 'MinterAdded' | 'MinterRemoved' | 'Transfer' + ): EventFragment + + encodeFunctionData(functionFragment: 'addMinter', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'allowance', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'approve', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'balanceOf', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'decreaseAllowance', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData( + functionFragment: 'increaseAllowance', + values: [AddressLike, BigNumberish] + ): string + encodeFunctionData(functionFragment: 'isMinter', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'mint', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'renounceMinter', values?: undefined): string + encodeFunctionData(functionFragment: 'totalSupply', values?: undefined): string + encodeFunctionData(functionFragment: 'transfer', values: [AddressLike, BigNumberish]): string + encodeFunctionData( + functionFragment: 'transferFrom', + values: [AddressLike, AddressLike, BigNumberish] + ): string + + decodeFunctionResult(functionFragment: 'addMinter', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'allowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approve', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'balanceOf', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'decreaseAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'increaseAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isMinter', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'mint', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'renounceMinter', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'totalSupply', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'transfer', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'transferFrom', data: BytesLike): Result +} + +export namespace ApprovalEvent { + export type InputTuple = [owner: AddressLike, spender: AddressLike, value: BigNumberish] + export type OutputTuple = [owner: string, spender: string, value: bigint] + export interface OutputObject { + owner: string + spender: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace MinterAddedEvent { + export type InputTuple = [account: AddressLike] + export type OutputTuple = [account: string] + export interface OutputObject { + account: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace MinterRemovedEvent { + export type InputTuple = [account: AddressLike] + export type OutputTuple = [account: string] + export interface OutputObject { + account: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace TransferEvent { + export type InputTuple = [from: AddressLike, to: AddressLike, value: BigNumberish] + export type OutputTuple = [from: string, to: string, value: bigint] + export interface OutputObject { + from: string + to: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface ERC20Mintable extends BaseContract { + connect(runner?: ContractRunner | null): ERC20Mintable + waitForDeployment(): Promise + + interface: ERC20MintableInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + addMinter: TypedContractMethod<[account: AddressLike], [void], 'nonpayable'> + + allowance: TypedContractMethod<[owner: AddressLike, spender: AddressLike], [bigint], 'view'> + + approve: TypedContractMethod< + [spender: AddressLike, amount: BigNumberish], + [boolean], + 'nonpayable' + > + + balanceOf: TypedContractMethod<[account: AddressLike], [bigint], 'view'> + + decreaseAllowance: TypedContractMethod< + [spender: AddressLike, subtractedValue: BigNumberish], + [boolean], + 'nonpayable' + > + + increaseAllowance: TypedContractMethod< + [spender: AddressLike, addedValue: BigNumberish], + [boolean], + 'nonpayable' + > + + isMinter: TypedContractMethod<[account: AddressLike], [boolean], 'view'> + + mint: TypedContractMethod<[account: AddressLike, amount: BigNumberish], [boolean], 'nonpayable'> + + renounceMinter: TypedContractMethod<[], [void], 'nonpayable'> + + totalSupply: TypedContractMethod<[], [bigint], 'view'> + + transfer: TypedContractMethod< + [recipient: AddressLike, amount: BigNumberish], + [boolean], + 'nonpayable' + > + + transferFrom: TypedContractMethod< + [sender: AddressLike, recipient: AddressLike, amount: BigNumberish], + [boolean], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'addMinter' + ): TypedContractMethod<[account: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'allowance' + ): TypedContractMethod<[owner: AddressLike, spender: AddressLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'approve' + ): TypedContractMethod<[spender: AddressLike, amount: BigNumberish], [boolean], 'nonpayable'> + getFunction( + nameOrSignature: 'balanceOf' + ): TypedContractMethod<[account: AddressLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'decreaseAllowance' + ): TypedContractMethod< + [spender: AddressLike, subtractedValue: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'increaseAllowance' + ): TypedContractMethod<[spender: AddressLike, addedValue: BigNumberish], [boolean], 'nonpayable'> + getFunction( + nameOrSignature: 'isMinter' + ): TypedContractMethod<[account: AddressLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'mint' + ): TypedContractMethod<[account: AddressLike, amount: BigNumberish], [boolean], 'nonpayable'> + getFunction(nameOrSignature: 'renounceMinter'): TypedContractMethod<[], [void], 'nonpayable'> + getFunction(nameOrSignature: 'totalSupply'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'transfer' + ): TypedContractMethod<[recipient: AddressLike, amount: BigNumberish], [boolean], 'nonpayable'> + getFunction( + nameOrSignature: 'transferFrom' + ): TypedContractMethod< + [sender: AddressLike, recipient: AddressLike, amount: BigNumberish], + [boolean], + 'nonpayable' + > + + getEvent( + key: 'Approval' + ): TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + > + getEvent( + key: 'MinterAdded' + ): TypedContractEvent< + MinterAddedEvent.InputTuple, + MinterAddedEvent.OutputTuple, + MinterAddedEvent.OutputObject + > + getEvent( + key: 'MinterRemoved' + ): TypedContractEvent< + MinterRemovedEvent.InputTuple, + MinterRemovedEvent.OutputTuple, + MinterRemovedEvent.OutputObject + > + getEvent( + key: 'Transfer' + ): TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + > + + filters: { + 'Approval(address,address,uint256)': TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + > + Approval: TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + > + + 'MinterAdded(address)': TypedContractEvent< + MinterAddedEvent.InputTuple, + MinterAddedEvent.OutputTuple, + MinterAddedEvent.OutputObject + > + MinterAdded: TypedContractEvent< + MinterAddedEvent.InputTuple, + MinterAddedEvent.OutputTuple, + MinterAddedEvent.OutputObject + > + + 'MinterRemoved(address)': TypedContractEvent< + MinterRemovedEvent.InputTuple, + MinterRemovedEvent.OutputTuple, + MinterRemovedEvent.OutputObject + > + MinterRemoved: TypedContractEvent< + MinterRemovedEvent.InputTuple, + MinterRemovedEvent.OutputTuple, + MinterRemovedEvent.OutputObject + > + + 'Transfer(address,address,uint256)': TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + > + Transfer: TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.ts new file mode 100644 index 000000000..d63fd7fb9 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/ERC20/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { ERC20Mintable } from './ERC20Mintable' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.ts new file mode 100644 index 000000000..8db12d2f1 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/contracts/token/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as erc20 from './ERC20' +export type { erc20 } diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.ts new file mode 100644 index 000000000..eb7a38b1c --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/@openzeppelin/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as contracts from './contracts' +export type { contracts } diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/common.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/common.ts new file mode 100644 index 000000000..28d619618 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/common.ts @@ -0,0 +1,102 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription +} from 'ethers' + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + ( + ...args: Partial + ): TypedDeferredTopicFilter> + name: string + fragment: EventFragment + getFragment(...args: Partial): EventFragment +} + +type __TypechainAOutputTuple = T extends TypedContractEvent ? W : never +type __TypechainOutputObject = T extends TypedContractEvent + ? V + : never + +export interface TypedEventLog extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export type TypedListener = ( + ...listenerArg: [...__TypechainAOutputTuple, TypedEventLog, ...undefined[]] +) => void + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise +} + +export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never + +export type StateMutability = 'nonpayable' | 'payable' | 'view' + +export type BaseOverrides = Omit +export type NonPayableOverrides = Omit +export type PayableOverrides = Omit +export type ViewOverrides = Omit +export type Overrides = S extends 'nonpayable' + ? NonPayableOverrides + : S extends 'payable' + ? PayableOverrides + : ViewOverrides + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides] +export type ContractMethodArgs, S extends StateMutability> = PostfixOverrides< + { [I in keyof A]-?: A[I] | Typed }, + S +> + +export type DefaultReturnType = R extends Array ? R[0] : R + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = 'payable' +> { + ( + ...args: ContractMethodArgs + ): S extends 'view' ? Promise> : Promise + + name: string + + fragment: FunctionFragment + + getFragment(...args: ContractMethodArgs): FunctionFragment + + populateTransaction(...args: ContractMethodArgs): Promise + staticCall(...args: ContractMethodArgs): Promise> + send(...args: ContractMethodArgs): Promise + estimateGas(...args: ContractMethodArgs): Promise + staticCallResult(...args: ContractMethodArgs): Promise +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/index.ts new file mode 100644 index 000000000..50af0791b --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as safeV120 from './safe_V1_2_0' +export type { safeV120 } diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.ts new file mode 100644 index 000000000..c26a7d442 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as modules from './modules' +export type { modules } diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.ts new file mode 100644 index 000000000..794129e3e --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.ts @@ -0,0 +1,231 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from '../../../common' + +export interface SocialRecoveryModuleInterface extends Interface { + getFunction( + nameOrSignature: + | 'NAME' + | 'VERSION' + | 'changeMasterCopy' + | 'confirmTransaction' + | 'friends' + | 'getDataHash' + | 'isConfirmed' + | 'isConfirmedByRequiredFriends' + | 'isExecuted' + | 'isFriend' + | 'manager' + | 'recoverAccess' + | 'setup' + | 'threshold' + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ChangedMasterCopy'): EventFragment + + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'changeMasterCopy', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'confirmTransaction', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'friends', values: [BigNumberish]): string + encodeFunctionData(functionFragment: 'getDataHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'isConfirmed', values: [BytesLike, AddressLike]): string + encodeFunctionData(functionFragment: 'isConfirmedByRequiredFriends', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'isExecuted', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'isFriend', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'manager', values?: undefined): string + encodeFunctionData( + functionFragment: 'recoverAccess', + values: [AddressLike, AddressLike, AddressLike] + ): string + encodeFunctionData(functionFragment: 'setup', values: [AddressLike[], BigNumberish]): string + encodeFunctionData(functionFragment: 'threshold', values?: undefined): string + + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeMasterCopy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'confirmTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'friends', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getDataHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isConfirmed', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isConfirmedByRequiredFriends', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isExecuted', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isFriend', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'manager', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'recoverAccess', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'threshold', data: BytesLike): Result +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [masterCopy: AddressLike] + export type OutputTuple = [masterCopy: string] + export interface OutputObject { + masterCopy: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface SocialRecoveryModule extends BaseContract { + connect(runner?: ContractRunner | null): SocialRecoveryModule + waitForDeployment(): Promise + + interface: SocialRecoveryModuleInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + changeMasterCopy: TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + + confirmTransaction: TypedContractMethod<[dataHash: BytesLike], [void], 'nonpayable'> + + friends: TypedContractMethod<[arg0: BigNumberish], [string], 'view'> + + getDataHash: TypedContractMethod<[data: BytesLike], [string], 'view'> + + isConfirmed: TypedContractMethod<[arg0: BytesLike, arg1: AddressLike], [boolean], 'view'> + + isConfirmedByRequiredFriends: TypedContractMethod<[dataHash: BytesLike], [boolean], 'view'> + + isExecuted: TypedContractMethod<[arg0: BytesLike], [boolean], 'view'> + + isFriend: TypedContractMethod<[arg0: AddressLike], [boolean], 'view'> + + manager: TypedContractMethod<[], [string], 'view'> + + recoverAccess: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + setup: TypedContractMethod< + [_friends: AddressLike[], _threshold: BigNumberish], + [void], + 'nonpayable' + > + + threshold: TypedContractMethod<[], [bigint], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'changeMasterCopy' + ): TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'confirmTransaction' + ): TypedContractMethod<[dataHash: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'friends' + ): TypedContractMethod<[arg0: BigNumberish], [string], 'view'> + getFunction( + nameOrSignature: 'getDataHash' + ): TypedContractMethod<[data: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'isConfirmed' + ): TypedContractMethod<[arg0: BytesLike, arg1: AddressLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'isConfirmedByRequiredFriends' + ): TypedContractMethod<[dataHash: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'isExecuted' + ): TypedContractMethod<[arg0: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'isFriend' + ): TypedContractMethod<[arg0: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'manager'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'recoverAccess' + ): TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'setup' + ): TypedContractMethod<[_friends: AddressLike[], _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'threshold'): TypedContractMethod<[], [bigint], 'view'> + + getEvent( + key: 'ChangedMasterCopy' + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + filters: { + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.ts new file mode 100644 index 000000000..6288736f2 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/contracts/safe_V1_2_0/modules/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { SocialRecoveryModule } from './SocialRecoveryModule' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.ts new file mode 100644 index 000000000..7981de8a2 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as token from './token' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.ts new file mode 100644 index 000000000..c22242f2b --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory.ts @@ -0,0 +1,403 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Contract, ContractFactory, ContractTransactionResponse, Interface } from 'ethers' +import type { Signer, ContractDeployTransaction, ContractRunner } from 'ethers' +import type { NonPayableOverrides } from '../../../../../common' +import type { + ERC20Mintable, + ERC20MintableInterface +} from '../../../../../@openzeppelin/contracts/token/ERC20/ERC20Mintable' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + indexed: true, + internalType: 'address', + name: 'spender', + type: 'address' + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256' + } + ], + name: 'Approval', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'account', + type: 'address' + } + ], + name: 'MinterAdded', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'account', + type: 'address' + } + ], + name: 'MinterRemoved', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'from', + type: 'address' + }, + { + indexed: true, + internalType: 'address', + name: 'to', + type: 'address' + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256' + } + ], + name: 'Transfer', + type: 'event' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'account', + type: 'address' + } + ], + name: 'addMinter', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address' + }, + { + internalType: 'address', + name: 'spender', + type: 'address' + } + ], + name: 'allowance', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'spender', + type: 'address' + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256' + } + ], + name: 'approve', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'account', + type: 'address' + } + ], + name: 'balanceOf', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'spender', + type: 'address' + }, + { + internalType: 'uint256', + name: 'subtractedValue', + type: 'uint256' + } + ], + name: 'decreaseAllowance', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'spender', + type: 'address' + }, + { + internalType: 'uint256', + name: 'addedValue', + type: 'uint256' + } + ], + name: 'increaseAllowance', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'account', + type: 'address' + } + ], + name: 'isMinter', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'account', + type: 'address' + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256' + } + ], + name: 'mint', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [], + name: 'renounceMinter', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'totalSupply', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'recipient', + type: 'address' + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256' + } + ], + name: 'transfer', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'sender', + type: 'address' + }, + { + internalType: 'address', + name: 'recipient', + type: 'address' + }, + { + internalType: 'uint256', + name: 'amount', + type: 'uint256' + } + ], + name: 'transferFrom', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + } +] as const + +const _bytecode = + '0x608060405262000024620000186200002a60201b60201c565b6200003260201b60201c565b62000257565b600033905090565b6200004d8160036200009360201b620012a81790919060201c565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b620000a582826200017760201b60201c565b1562000119576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000200576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180620018506022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6115e980620002676000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c8063983b2d5611610071578063983b2d56146102e7578063986502751461032b578063a457c2d714610335578063a9059cbb1461039b578063aa271e1a14610401578063dd62ed3e1461045d576100b4565b8063095ea7b3146100b957806318160ddd1461011f57806323b872dd1461013d57806339509351146101c357806340c10f191461022957806370a082311461028f575b600080fd5b610105600480360360408110156100cf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506104d5565b604051808215151515815260200191505060405180910390f35b6101276104f3565b6040518082815260200191505060405180910390f35b6101a96004803603606081101561015357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506104fd565b604051808215151515815260200191505060405180910390f35b61020f600480360360408110156101d957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506105d6565b604051808215151515815260200191505060405180910390f35b6102756004803603604081101561023f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610689565b604051808215151515815260200191505060405180910390f35b6102d1600480360360208110156102a557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610704565b6040518082815260200191505060405180910390f35b610329600480360360208110156102fd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061074c565b005b6103336107bd565b005b6103816004803603604081101561034b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506107cf565b604051808215151515815260200191505060405180910390f35b6103e7600480360360408110156103b157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061089c565b604051808215151515815260200191505060405180910390f35b6104436004803603602081101561041757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108ba565b604051808215151515815260200191505060405180910390f35b6104bf6004803603604081101561047357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108d7565b6040518082815260200191505060405180910390f35b60006104e96104e261095e565b8484610966565b6001905092915050565b6000600254905090565b600061050a848484610b5d565b6105cb8461051661095e565b6105c6856040518060600160405280602881526020016114fd60289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600061057c61095e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e139092919063ffffffff16565b610966565b600190509392505050565b600061067f6105e361095e565b8461067a85600160006105f461095e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ed390919063ffffffff16565b610966565b6001905092915050565b600061069b61069661095e565b6108ba565b6106f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806114ac6030913960400191505060405180910390fd5b6106fa8383610f5b565b6001905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61075c61075761095e565b6108ba565b6107b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806114ac6030913960400191505060405180910390fd5b6107ba81611116565b50565b6107cd6107c861095e565b611170565b565b60006108926107dc61095e565b8461088d85604051806060016040528060258152602001611590602591396001600061080661095e565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e139092919063ffffffff16565b610966565b6001905092915050565b60006108b06108a961095e565b8484610b5d565b6001905092915050565b60006108d08260036111ca90919063ffffffff16565b9050919050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109ec576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061156c6024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610a72576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806114646022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610be3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806115476025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610c69576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806114416023913960400191505060405180910390fd5b610cd481604051806060016040528060268152602001611486602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e139092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610d67816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ed390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290610ec0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610e85578082015181840152602081019050610e6a565b50505050905090810190601f168015610eb25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b600080828401905083811015610f51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ffe576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b61101381600254610ed390919063ffffffff16565b60028190555061106a816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ed390919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b61112a8160036112a890919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167f6ae172837ea30b801fbfcdd4108aa1d5bf8ff775444fd70256b44e6bf3dfc3f660405160405180910390a250565b61118481600361138390919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167fe94479a9f7e1952cc78f2d6baab678adc1b772d936c6583def489e524cb6669260405160405180910390a250565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611251576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806115256022913960400191505060405180910390fd5b8260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6112b282826111ca565b15611325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f526f6c65733a206163636f756e7420616c72656164792068617320726f6c650081525060200191505060405180910390fd5b60018260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b61138d82826111ca565b6113e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806114dc6021913960400191505060405180910390fd5b60008260000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e63654d696e746572526f6c653a2063616c6c657220646f6573206e6f74206861766520746865204d696e74657220726f6c65526f6c65733a206163636f756e7420646f6573206e6f74206861766520726f6c6545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365526f6c65733a206163636f756e7420697320746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa265627a7a7231582095f7c9903fa11102307ea5a8a3e3ad8d119c831c0e5807306775ace78d6af8aa64736f6c63430005110032526f6c65733a206163636f756e7420697320746865207a65726f2061646472657373' + +type ERC20MintableConstructorParams = + | [signer?: Signer] + | ConstructorParameters + +const isSuperArgs = ( + xs: ERC20MintableConstructorParams +): xs is ConstructorParameters => xs.length > 1 + +export class ERC20Mintable__factory extends ContractFactory { + constructor(...args: ERC20MintableConstructorParams) { + if (isSuperArgs(args)) { + super(...args) + } else { + super(_abi, _bytecode, args[0]) + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}) + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + ERC20Mintable & { + deploymentTransaction(): ContractTransactionResponse + } + > + } + override connect(runner: ContractRunner | null): ERC20Mintable__factory { + return super.connect(runner) as ERC20Mintable__factory + } + + static readonly bytecode = _bytecode + static readonly abi = _abi + static createInterface(): ERC20MintableInterface { + return new Interface(_abi) as ERC20MintableInterface + } + static connect(address: string, runner?: ContractRunner | null): ERC20Mintable { + return new Contract(address, _abi, runner) as unknown as ERC20Mintable + } +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.ts new file mode 100644 index 000000000..137a621f1 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/ERC20/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { ERC20Mintable__factory } from './ERC20Mintable__factory' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.ts new file mode 100644 index 000000000..4773b0e79 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/contracts/token/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as erc20 from './ERC20' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.ts new file mode 100644 index 000000000..48df511fa --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/@openzeppelin/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as contracts from './contracts' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.ts new file mode 100644 index 000000000..22fd6d5a8 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as safeV120 from './safe_V1_2_0' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.ts new file mode 100644 index 000000000..c84973522 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as modules from './modules' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.ts new file mode 100644 index 000000000..2b4d0cf86 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory.ts @@ -0,0 +1,338 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Contract, ContractFactory, ContractTransactionResponse, Interface } from 'ethers' +import type { Signer, ContractDeployTransaction, ContractRunner } from 'ethers' +import type { NonPayableOverrides } from '../../../../common' +import type { + SocialRecoveryModule, + SocialRecoveryModuleInterface +} from '../../../../contracts/safe_V1_2_0/modules/SocialRecoveryModule' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'masterCopy', + type: 'address' + } + ], + name: 'ChangedMasterCopy', + type: 'event' + }, + { + constant: true, + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_masterCopy', + type: 'address' + } + ], + name: 'changeMasterCopy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32' + } + ], + name: 'confirmTransaction', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + name: 'friends', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + } + ], + name: 'getDataHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + payable: false, + stateMutability: 'pure', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + }, + { + internalType: 'address', + name: '', + type: 'address' + } + ], + name: 'isConfirmed', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32' + } + ], + name: 'isConfirmedByRequiredFriends', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'isExecuted', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: '', + type: 'address' + } + ], + name: 'isFriend', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'manager', + outputs: [ + { + internalType: 'contract ModuleManager', + name: '', + type: 'address' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address' + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address' + } + ], + name: 'recoverAccess', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: false, + inputs: [ + { + internalType: 'address[]', + name: '_friends', + type: 'address[]' + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256' + } + ], + name: 'setup', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function' + }, + { + constant: true, + inputs: [], + name: 'threshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + payable: false, + stateMutability: 'view', + type: 'function' + } +] as const + +const _bytecode = + '0x608060405234801561001057600080fd5b506116fe806100206000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c80639ca89d0d1161008c578063b79ffaff11610066578063b79ffaff14610503578063ce14682814610569578063e52cb36a146105d7578063ffa1ad741461061d576100ea565b80639ca89d0d1461036b578063a3f4df7e146103b1578063ae68b05614610434576100ea565b806368125a1b116100c857806368125a1b1461021957806377231eaa1461027557806379716e43146102f95780637de7edef14610327576100ea565b806342cde4e8146100ef578063481c6a751461010d5780634ab8842714610157575b600080fd5b6100f76106a0565b6040518082815260200191505060405180910390f35b6101156106a6565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102176004803603604081101561016d57600080fd5b810190808035906020019064010000000081111561018a57600080fd5b82018360208201111561019c57600080fd5b803590602001918460208302840111640100000000831117156101be57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f820116905080830192505050505050509192919290803590602001909291905050506106cc565b005b61025b6004803603602081101561022f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061099b565b604051808215151515815260200191505060405180910390f35b6102f76004803603606081101561028b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109bb565b005b6103256004803603602081101561030f57600080fd5b8101908080359060200190929190505050610eb2565b005b6103696004803603602081101561033d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611054565b005b6103976004803603602081101561038157600080fd5b8101908080359060200190929190505050611226565b604051808215151515815260200191505060405180910390f35b6103b961130d565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103f95780820151818401526020810190506103de565b50505050905090810190601f1680156104265780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6104ed6004803603602081101561044a57600080fd5b810190808035906020019064010000000081111561046757600080fd5b82018360208201111561047957600080fd5b8035906020019184600183028401116401000000008311171561049b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611346565b6040518082815260200191505060405180910390f35b61054f6004803603604081101561051957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611357565b604051808215151515815260200191505060405180910390f35b6105956004803603602081101561057f57600080fd5b8101908080359060200190929190505050611386565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610603600480360360208110156105ed57600080fd5b81019080803590602001909291905050506113c2565b604051808215151515815260200191505060405180910390f35b6106256113e2565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561066557808201518184015260208101905061064a565b50505050905090810190601f1680156106925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60025481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b8151811115610726576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260258152602001806116356025913960400191505060405180910390fd5b600281101561079d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f4174206c65617374203220667269656e6473207265717569726564000000000081525060200191505060405180910390fd5b6107a561141b565b60008090505b82518110156109785760008382815181106107c257fe5b60200260200101519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561086f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f496e76616c696420667269656e6420616464726573732070726f76696465640081525060200191505060405180910390fd5b600460008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610912576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806116146021913960400191505060405180910390fd5b6001600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505080806001019150506107ab565b50816003908051906020019061098f929190611522565b50806002819055505050565b60046020528060005260406000206000915054906101000a900460ff1681565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610a5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061165a6025913960400191505060405180910390fd5b6060838383604051602401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200193505050506040516020818303038152906040527fe318b52b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090506000610b8e82611346565b90506005600082815260200190815260200160002060009054906101000a900460ff1615610c24576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f5265636f7665727920616c72656164792065786563757465640000000000000081525060200191505060405180910390fd5b610c2d81611226565b610c82576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061167f6025913960400191505060405180910390fd5b60016005600083815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663468721a7600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660008560006040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200184815260200180602001836001811115610d6f57fe5b60ff168152602001828103825284818151815260200191508051906020019080838360005b83811015610daf578082015181840152602081019050610d94565b50505050905090810190601f168015610ddc5780820380516001836020036101000a031916815260200191505b5095505050505050602060405180830381600087803b158015610dfe57600080fd5b505af1158015610e12573d6000803e3d6000fd5b505050506040513d6020811015610e2857600080fd5b8101908080519060200190929190505050610eab576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f436f756c64206e6f742065786563757465207265636f7665727900000000000081525060200191505060405180910390fd5b5050505050565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16610f54576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061165a6025913960400191505060405180910390fd5b6005600082815260200190815260200160002060009054906101000a900460ff1615610fe8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f5265636f7665727920616c72656164792065786563757465640000000000000081525060200191505060405180910390fd5b60016006600083815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146110fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806116a46026913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611180576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806115f06024913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f75e41bc35ff1bf14d81d1d2f649c0084a0f974f9289c803ec9898eeec4c8d0b881604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150565b60008060008090505b600380549050811015611301576006600085815260200190815260200160002060006003838154811061125e57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156112df5781806001019250505b6002548214156112f457600192505050611308565b808060010191505061122f565b5060009150505b919050565b6040518060400160405280601681526020017f536f6369616c205265636f76657279204d6f64756c650000000000000000000081525081565b600081805190602001209050919050565b60066020528160005260406000206020528060005260406000206000915091509054906101000a900460ff1681565b6003818154811061139357fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60056020528060005260406000206000915054906101000a900460ff1681565b6040518060400160405280600581526020017f302e312e3000000000000000000000000000000000000000000000000000000081525081565b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146114df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601c8152602001807f4d616e616765722068617320616c7265616479206265656e207365740000000081525060200191505060405180910390fd5b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b82805482825590600052602060002090810192821561159b579160200282015b8281111561159a5782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555091602001919060010190611542565b5b5090506115a891906115ac565b5090565b6115ec91905b808211156115e857600081816101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055506001016115b2565b5090565b9056fe496e76616c6964206d617374657220636f707920616464726573732070726f76696465644475706c696361746520667269656e6420616464726573732070726f76696465645468726573686f6c642063616e6e6f742065786365656420667269656e647320636f756e744d6574686f642063616e206f6e6c792062652063616c6c6564206279206120667269656e645265636f7665727920686173206e6f7420656e6f75676820636f6e6669726d6174696f6e734d6574686f642063616e206f6e6c792062652063616c6c65642066726f6d206d616e61676572a265627a7a7231582028149f3337d2a37307c7f46a330cee785cfb9521767758dd47872b22378d23bb64736f6c63430005110032' + +type SocialRecoveryModuleConstructorParams = + | [signer?: Signer] + | ConstructorParameters + +const isSuperArgs = ( + xs: SocialRecoveryModuleConstructorParams +): xs is ConstructorParameters => xs.length > 1 + +export class SocialRecoveryModule__factory extends ContractFactory { + constructor(...args: SocialRecoveryModuleConstructorParams) { + if (isSuperArgs(args)) { + super(...args) + } else { + super(_abi, _bytecode, args[0]) + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}) + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + SocialRecoveryModule & { + deploymentTransaction(): ContractTransactionResponse + } + > + } + override connect(runner: ContractRunner | null): SocialRecoveryModule__factory { + return super.connect(runner) as SocialRecoveryModule__factory + } + + static readonly bytecode = _bytecode + static readonly abi = _abi + static createInterface(): SocialRecoveryModuleInterface { + return new Interface(_abi) as SocialRecoveryModuleInterface + } + static connect(address: string, runner?: ContractRunner | null): SocialRecoveryModule { + return new Contract(address, _abi, runner) as unknown as SocialRecoveryModule + } +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.ts new file mode 100644 index 000000000..431a3c411 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/contracts/safe_V1_2_0/modules/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { SocialRecoveryModule__factory } from './SocialRecoveryModule__factory' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/index.ts new file mode 100644 index 000000000..1bafde344 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/factories/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as openzeppelin from './@openzeppelin' +export * as contracts from './contracts' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/index.ts new file mode 100644 index 000000000..dcf06a791 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.2.0/index.ts @@ -0,0 +1,12 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as openzeppelin from './@openzeppelin' +export type { openzeppelin } +import type * as contracts from './contracts' +export type { contracts } +export * as factories from './factories' +export type { SocialRecoveryModule } from './contracts/safe_V1_2_0/modules/SocialRecoveryModule' +export { SocialRecoveryModule__factory } from './factories/contracts/safe_V1_2_0/modules/SocialRecoveryModule__factory' +export type { ERC20Mintable } from './@openzeppelin/contracts/token/ERC20/ERC20Mintable' +export { ERC20Mintable__factory } from './factories/@openzeppelin/contracts/token/ERC20/ERC20Mintable__factory' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.ts new file mode 100644 index 000000000..4b60e310c --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/DebugTransactionGuard.ts @@ -0,0 +1,248 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface DebugTransactionGuardInterface extends Interface { + getFunction( + nameOrSignature: 'checkAfterExecution' | 'checkTransaction' | 'txNonces' + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'GasUsage' | 'TransactionDetails'): EventFragment + + encodeFunctionData(functionFragment: 'checkAfterExecution', values: [BytesLike, boolean]): string + encodeFunctionData( + functionFragment: 'checkTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + AddressLike + ] + ): string + encodeFunctionData(functionFragment: 'txNonces', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'checkAfterExecution', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'txNonces', data: BytesLike): Result +} + +export namespace GasUsageEvent { + export type InputTuple = [ + safe: AddressLike, + txHash: BytesLike, + nonce: BigNumberish, + success: boolean + ] + export type OutputTuple = [safe: string, txHash: string, nonce: bigint, success: boolean] + export interface OutputObject { + safe: string + txHash: string + nonce: bigint + success: boolean + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace TransactionDetailsEvent { + export type InputTuple = [ + safe: AddressLike, + txHash: BytesLike, + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + usesRefund: boolean, + nonce: BigNumberish + ] + export type OutputTuple = [ + safe: string, + txHash: string, + to: string, + value: bigint, + data: string, + operation: bigint, + safeTxGas: bigint, + usesRefund: boolean, + nonce: bigint + ] + export interface OutputObject { + safe: string + txHash: string + to: string + value: bigint + data: string + operation: bigint + safeTxGas: bigint + usesRefund: boolean + nonce: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface DebugTransactionGuard extends BaseContract { + connect(runner?: ContractRunner | null): DebugTransactionGuard + waitForDeployment(): Promise + + interface: DebugTransactionGuardInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + checkAfterExecution: TypedContractMethod< + [txHash: BytesLike, success: boolean], + [void], + 'nonpayable' + > + + checkTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + arg9: BytesLike, + arg10: AddressLike + ], + [void], + 'nonpayable' + > + + txNonces: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'checkAfterExecution' + ): TypedContractMethod<[txHash: BytesLike, success: boolean], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkTransaction' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + arg9: BytesLike, + arg10: AddressLike + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'txNonces'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + getEvent( + key: 'GasUsage' + ): TypedContractEvent< + GasUsageEvent.InputTuple, + GasUsageEvent.OutputTuple, + GasUsageEvent.OutputObject + > + getEvent( + key: 'TransactionDetails' + ): TypedContractEvent< + TransactionDetailsEvent.InputTuple, + TransactionDetailsEvent.OutputTuple, + TransactionDetailsEvent.OutputObject + > + + filters: { + 'GasUsage(address,bytes32,uint256,bool)': TypedContractEvent< + GasUsageEvent.InputTuple, + GasUsageEvent.OutputTuple, + GasUsageEvent.OutputObject + > + GasUsage: TypedContractEvent< + GasUsageEvent.InputTuple, + GasUsageEvent.OutputTuple, + GasUsageEvent.OutputObject + > + + 'TransactionDetails(address,bytes32,address,uint256,bytes,uint8,uint256,bool,uint256)': TypedContractEvent< + TransactionDetailsEvent.InputTuple, + TransactionDetailsEvent.OutputTuple, + TransactionDetailsEvent.OutputObject + > + TransactionDetails: TypedContractEvent< + TransactionDetailsEvent.InputTuple, + TransactionDetailsEvent.OutputTuple, + TransactionDetailsEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/common.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/common.ts new file mode 100644 index 000000000..28d619618 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/common.ts @@ -0,0 +1,102 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription +} from 'ethers' + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + ( + ...args: Partial + ): TypedDeferredTopicFilter> + name: string + fragment: EventFragment + getFragment(...args: Partial): EventFragment +} + +type __TypechainAOutputTuple = T extends TypedContractEvent ? W : never +type __TypechainOutputObject = T extends TypedContractEvent + ? V + : never + +export interface TypedEventLog extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export type TypedListener = ( + ...listenerArg: [...__TypechainAOutputTuple, TypedEventLog, ...undefined[]] +) => void + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise +} + +export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never + +export type StateMutability = 'nonpayable' | 'payable' | 'view' + +export type BaseOverrides = Omit +export type NonPayableOverrides = Omit +export type PayableOverrides = Omit +export type ViewOverrides = Omit +export type Overrides = S extends 'nonpayable' + ? NonPayableOverrides + : S extends 'payable' + ? PayableOverrides + : ViewOverrides + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides] +export type ContractMethodArgs, S extends StateMutability> = PostfixOverrides< + { [I in keyof A]-?: A[I] | Typed }, + S +> + +export type DefaultReturnType = R extends Array ? R[0] : R + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = 'payable' +> { + ( + ...args: ContractMethodArgs + ): S extends 'view' ? Promise> : Promise + + name: string + + fragment: FunctionFragment + + getFragment(...args: ContractMethodArgs): FunctionFragment + + populateTransaction(...args: ContractMethodArgs): Promise + staticCall(...args: ContractMethodArgs): Promise> + send(...args: ContractMethodArgs): Promise + estimateGas(...args: ContractMethodArgs): Promise + staticCallResult(...args: ContractMethodArgs): Promise +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.ts new file mode 100644 index 000000000..4dc1023a2 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/factories/DebugTransactionGuard__factory.ts @@ -0,0 +1,255 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Contract, ContractFactory, ContractTransactionResponse, Interface } from 'ethers' +import type { Signer, ContractDeployTransaction, ContractRunner } from 'ethers' +import type { NonPayableOverrides } from '../common' +import type { + DebugTransactionGuard, + DebugTransactionGuardInterface +} from '../DebugTransactionGuard' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address' + }, + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: true, + internalType: 'uint256', + name: 'nonce', + type: 'uint256' + }, + { + indexed: false, + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + name: 'GasUsage', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address' + }, + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'address', + name: 'to', + type: 'address' + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + indexed: false, + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + indexed: false, + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + indexed: false, + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + indexed: false, + internalType: 'bool', + name: 'usesRefund', + type: 'bool' + }, + { + indexed: false, + internalType: 'uint256', + name: 'nonce', + type: 'uint256' + } + ], + name: 'TransactionDetails', + type: 'event' + }, + { + stateMutability: 'nonpayable', + type: 'fallback' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + name: 'checkAfterExecution', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'bytes', + name: '', + type: 'bytes' + }, + { + internalType: 'address', + name: '', + type: 'address' + } + ], + name: 'checkTransaction', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'txNonces', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + } +] as const + +const _bytecode = + '0x608060405234801561001057600080fd5b5061075e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100455760003560e01c806375f0bb52146100485780639327136814610250578063ddbdba631461028a57610046565b5b005b61024e600480360361016081101561005f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156100a657600080fd5b8201836020820111156100b857600080fd5b803590602001918460018302840111640100000000831117156100da57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156101a857600080fd5b8201836020820111156101ba57600080fd5b803590602001918460018302840111640100000000831117156101dc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506102cc565b005b6102886004803603604081101561026657600080fd5b8101908080359060200190929190803515159060200190929190505050610613565b005b6102b6600480360360208110156102a057600080fd5b8101908080359060200190929190505050610710565b6040518082815260200191505060405180910390f35b600080600033905060018173ffffffffffffffffffffffffffffffffffffffff1663affed0e06040518163ffffffff1660e01b815260040160206040518083038186803b15801561031c57600080fd5b505afa158015610330573d6000803e3d6000fd5b505050506040513d602081101561034657600080fd5b81019080805190602001909291905050500392508073ffffffffffffffffffffffffffffffffffffffff1663d8d11f788f8f8f8f8f8f8f8f8f8d6040518b63ffffffff1660e01b8152600401808b73ffffffffffffffffffffffffffffffffffffffff1681526020018a8152602001806020018960018111156103c557fe5b81526020018881526020018781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182810382528a818151815260200191508051906020019080838360005b83811015610452578082015181840152602081019050610437565b50505050905090810190601f16801561047f5780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060206040518083038186803b1580156104a557600080fd5b505afa1580156104b9573d6000803e3d6000fd5b505050506040513d60208110156104cf57600080fd5b8101908080519060200190929190505050915050803373ffffffffffffffffffffffffffffffffffffffff167f1b68334da83afaffd8348d6c85c5146d8e7de31a6c034d2d522be12d615c4f7b8f8f8f8f8f60008f118a604051808873ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018060200186600181111561055c57fe5b81526020018581526020018415158152602001838152602001828103825287818151815260200191508051906020019080838360005b838110156105ad578082015181840152602081019050610592565b50505050905090810190601f1680156105da5780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390a3816000808381526020019081526020016000208190555050505050505050505050505050565b600080600084815260200190815260200160002054905060008114156106a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f436f756c64206e6f7420676574206e6f6e63650000000000000000000000000081525060200191505060405180910390fd5b60008060008581526020019081526020016000208190555080833373ffffffffffffffffffffffffffffffffffffffff167f0dcc0fb56a30b6fe6b188f45b47369bc7f3c928a9748e245a79fc3f54ddd05688560405180821515815260200191505060405180910390a4505050565b6000602052806000526040600020600091509050548156fea26469706673582212203d9744d3d3cc44b54b7478cf053b7ae087d0ccebb0335c3e3ba60e8338d6d25964736f6c63430007060033' + +type DebugTransactionGuardConstructorParams = + | [signer?: Signer] + | ConstructorParameters + +const isSuperArgs = ( + xs: DebugTransactionGuardConstructorParams +): xs is ConstructorParameters => xs.length > 1 + +export class DebugTransactionGuard__factory extends ContractFactory { + constructor(...args: DebugTransactionGuardConstructorParams) { + if (isSuperArgs(args)) { + super(...args) + } else { + super(_abi, _bytecode, args[0]) + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}) + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + DebugTransactionGuard & { + deploymentTransaction(): ContractTransactionResponse + } + > + } + override connect(runner: ContractRunner | null): DebugTransactionGuard__factory { + return super.connect(runner) as DebugTransactionGuard__factory + } + + static readonly bytecode = _bytecode + static readonly abi = _abi + static createInterface(): DebugTransactionGuardInterface { + return new Interface(_abi) as DebugTransactionGuardInterface + } + static connect(address: string, runner?: ContractRunner | null): DebugTransactionGuard { + return new Contract(address, _abi, runner) as unknown as DebugTransactionGuard + } +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/factories/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/factories/index.ts new file mode 100644 index 000000000..0898e23dd --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/factories/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { DebugTransactionGuard__factory } from './DebugTransactionGuard__factory' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/index.ts new file mode 100644 index 000000000..ffdf5ddad --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.3.0/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { DebugTransactionGuard } from './DebugTransactionGuard' +export * as factories from './factories' +export { DebugTransactionGuard__factory } from './factories/DebugTransactionGuard__factory' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.ts new file mode 100644 index 000000000..2a72713a1 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/DebugTransactionGuard.ts @@ -0,0 +1,261 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod +} from './common' + +export interface DebugTransactionGuardInterface extends Interface { + getFunction( + nameOrSignature: 'checkAfterExecution' | 'checkTransaction' | 'supportsInterface' | 'txNonces' + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'GasUsage' | 'TransactionDetails'): EventFragment + + encodeFunctionData(functionFragment: 'checkAfterExecution', values: [BytesLike, boolean]): string + encodeFunctionData( + functionFragment: 'checkTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + AddressLike + ] + ): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'txNonces', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'checkAfterExecution', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'txNonces', data: BytesLike): Result +} + +export namespace GasUsageEvent { + export type InputTuple = [ + safe: AddressLike, + txHash: BytesLike, + nonce: BigNumberish, + success: boolean + ] + export type OutputTuple = [safe: string, txHash: string, nonce: bigint, success: boolean] + export interface OutputObject { + safe: string + txHash: string + nonce: bigint + success: boolean + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace TransactionDetailsEvent { + export type InputTuple = [ + safe: AddressLike, + txHash: BytesLike, + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + usesRefund: boolean, + nonce: BigNumberish, + signatures: BytesLike, + executor: AddressLike + ] + export type OutputTuple = [ + safe: string, + txHash: string, + to: string, + value: bigint, + data: string, + operation: bigint, + safeTxGas: bigint, + usesRefund: boolean, + nonce: bigint, + signatures: string, + executor: string + ] + export interface OutputObject { + safe: string + txHash: string + to: string + value: bigint + data: string + operation: bigint + safeTxGas: bigint + usesRefund: boolean + nonce: bigint + signatures: string + executor: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface DebugTransactionGuard extends BaseContract { + connect(runner?: ContractRunner | null): DebugTransactionGuard + waitForDeployment(): Promise + + interface: DebugTransactionGuardInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>> + + on( + event: TCEvent, + listener: TypedListener + ): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + once( + event: TCEvent, + listener: TypedListener + ): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise + + listeners( + event: TCEvent + ): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + checkAfterExecution: TypedContractMethod< + [txHash: BytesLike, success: boolean], + [void], + 'nonpayable' + > + + checkTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + executor: AddressLike + ], + [void], + 'nonpayable' + > + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + txNonces: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'checkAfterExecution' + ): TypedContractMethod<[txHash: BytesLike, success: boolean], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkTransaction' + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + executor: AddressLike + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'supportsInterface' + ): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + getFunction(nameOrSignature: 'txNonces'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + getEvent( + key: 'GasUsage' + ): TypedContractEvent< + GasUsageEvent.InputTuple, + GasUsageEvent.OutputTuple, + GasUsageEvent.OutputObject + > + getEvent( + key: 'TransactionDetails' + ): TypedContractEvent< + TransactionDetailsEvent.InputTuple, + TransactionDetailsEvent.OutputTuple, + TransactionDetailsEvent.OutputObject + > + + filters: { + 'GasUsage(address,bytes32,uint256,bool)': TypedContractEvent< + GasUsageEvent.InputTuple, + GasUsageEvent.OutputTuple, + GasUsageEvent.OutputObject + > + GasUsage: TypedContractEvent< + GasUsageEvent.InputTuple, + GasUsageEvent.OutputTuple, + GasUsageEvent.OutputObject + > + + 'TransactionDetails(address,bytes32,address,uint256,bytes,uint8,uint256,bool,uint256,bytes,address)': TypedContractEvent< + TransactionDetailsEvent.InputTuple, + TransactionDetailsEvent.OutputTuple, + TransactionDetailsEvent.OutputObject + > + TransactionDetails: TypedContractEvent< + TransactionDetailsEvent.InputTuple, + TransactionDetailsEvent.OutputTuple, + TransactionDetailsEvent.OutputObject + > + } +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/common.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/common.ts new file mode 100644 index 000000000..28d619618 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/common.ts @@ -0,0 +1,102 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription +} from 'ethers' + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> + extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any +> { + ( + ...args: Partial + ): TypedDeferredTopicFilter> + name: string + fragment: EventFragment + getFragment(...args: Partial): EventFragment +} + +type __TypechainAOutputTuple = T extends TypedContractEvent ? W : never +type __TypechainOutputObject = T extends TypedContractEvent + ? V + : never + +export interface TypedEventLog extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export interface TypedLogDescription + extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export type TypedListener = ( + ...listenerArg: [...__TypechainAOutputTuple, TypedEventLog, ...undefined[]] +) => void + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise +} + +export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never + +export type StateMutability = 'nonpayable' | 'payable' | 'view' + +export type BaseOverrides = Omit +export type NonPayableOverrides = Omit +export type PayableOverrides = Omit +export type ViewOverrides = Omit +export type Overrides = S extends 'nonpayable' + ? NonPayableOverrides + : S extends 'payable' + ? PayableOverrides + : ViewOverrides + +export type PostfixOverrides, S extends StateMutability> = + | A + | [...A, Overrides] +export type ContractMethodArgs, S extends StateMutability> = PostfixOverrides< + { [I in keyof A]-?: A[I] | Typed }, + S +> + +export type DefaultReturnType = R extends Array ? R[0] : R + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = 'payable' +> { + ( + ...args: ContractMethodArgs + ): S extends 'view' ? Promise> : Promise + + name: string + + fragment: FunctionFragment + + getFragment(...args: ContractMethodArgs): FunctionFragment + + populateTransaction(...args: ContractMethodArgs): Promise + staticCall(...args: ContractMethodArgs): Promise> + send(...args: ContractMethodArgs): Promise + estimateGas(...args: ContractMethodArgs): Promise + staticCallResult(...args: ContractMethodArgs): Promise +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.ts new file mode 100644 index 000000000..d31106923 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/factories/DebugTransactionGuard__factory.ts @@ -0,0 +1,286 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Contract, ContractFactory, ContractTransactionResponse, Interface } from 'ethers' +import type { Signer, ContractDeployTransaction, ContractRunner } from 'ethers' +import type { NonPayableOverrides } from '../common' +import type { + DebugTransactionGuard, + DebugTransactionGuardInterface +} from '../DebugTransactionGuard' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address' + }, + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: true, + internalType: 'uint256', + name: 'nonce', + type: 'uint256' + }, + { + indexed: false, + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + name: 'GasUsage', + type: 'event' + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address' + }, + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + indexed: false, + internalType: 'address', + name: 'to', + type: 'address' + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + indexed: false, + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + indexed: false, + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + indexed: false, + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + indexed: false, + internalType: 'bool', + name: 'usesRefund', + type: 'bool' + }, + { + indexed: false, + internalType: 'uint256', + name: 'nonce', + type: 'uint256' + }, + { + indexed: false, + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + }, + { + indexed: false, + internalType: 'address', + name: 'executor', + type: 'address' + } + ], + name: 'TransactionDetails', + type: 'event' + }, + { + stateMutability: 'nonpayable', + type: 'fallback' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32' + }, + { + internalType: 'bool', + name: 'success', + type: 'bool' + } + ], + name: 'checkAfterExecution', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address' + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256' + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes' + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8' + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256' + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256' + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address' + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address' + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes' + }, + { + internalType: 'address', + name: 'executor', + type: 'address' + } + ], + name: 'checkTransaction', + outputs: [], + stateMutability: 'nonpayable', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4' + } + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool' + } + ], + stateMutability: 'view', + type: 'function' + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32' + } + ], + name: 'txNonces', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256' + } + ], + stateMutability: 'view', + type: 'function' + } +] as const + +const _bytecode = + '0x608060405234801561001057600080fd5b50610929806100206000396000f3fe608060405234801561001057600080fd5b50600436106100505760003560e01c806301ffc9a71461005357806375f0bb52146100b657806393271368146102be578063ddbdba63146102f857610051565b5b005b61009e6004803603602081101561006957600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061033a565b60405180821515815260200191505060405180910390f35b6102bc60048036036101608110156100cd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561011457600080fd5b82018360208201111561012657600080fd5b8035906020019184600183028401116401000000008311171561014857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561021657600080fd5b82018360208201111561022857600080fd5b8035906020019184600183028401116401000000008311171561024a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061040c565b005b6102f6600480360360408110156102d457600080fd5b81019080803590602001909291908035151590602001909291905050506107de565b005b6103246004803603602081101561030e57600080fd5b81019080803590602001909291905050506108db565b6040518082815260200191505060405180910390f35b60007fe6d7a83a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061040557507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600080600033905060018173ffffffffffffffffffffffffffffffffffffffff1663affed0e06040518163ffffffff1660e01b815260040160206040518083038186803b15801561045c57600080fd5b505afa158015610470573d6000803e3d6000fd5b505050506040513d602081101561048657600080fd5b81019080805190602001909291905050500392508073ffffffffffffffffffffffffffffffffffffffff1663d8d11f788f8f8f8f8f8f8f8f8f8d6040518b63ffffffff1660e01b8152600401808b73ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018060200189600181111561050557fe5b81526020018881526020018781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182810382528a818151815260200191508051906020019080838360005b83811015610592578082015181840152602081019050610577565b50505050905090810190601f1680156105bf5780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060206040518083038186803b1580156105e557600080fd5b505afa1580156105f9573d6000803e3d6000fd5b505050506040513d602081101561060f57600080fd5b8101908080519060200190929190505050915050803373ffffffffffffffffffffffffffffffffffffffff167fa65fef32cd19a6639a4bf7a6d196f132c151e4f0bbd2706f7f831b3a778e1ac08f8f8f8f8f60008f118a8d8d604051808a73ffffffffffffffffffffffffffffffffffffffff1681526020018981526020018060200188600181111561069e57fe5b81526020018781526020018615158152602001858152602001806020018473ffffffffffffffffffffffffffffffffffffffff16815260200183810383528a818151815260200191508051906020019080838360005b8381101561070f5780820151818401526020810190506106f4565b50505050905090810190601f16801561073c5780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b8381101561077557808201518184015260208101905061075a565b50505050905090810190601f1680156107a25780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060405180910390a3816000808381526020019081526020016000208190555050505050505050505050505050565b6000806000848152602001908152602001600020549050600081141561086c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f436f756c64206e6f7420676574206e6f6e63650000000000000000000000000081525060200191505060405180910390fd5b60008060008581526020019081526020016000208190555080833373ffffffffffffffffffffffffffffffffffffffff167f0dcc0fb56a30b6fe6b188f45b47369bc7f3c928a9748e245a79fc3f54ddd05688560405180821515815260200191505060405180910390a4505050565b6000602052806000526040600020600091509050548156fea26469706673582212206b4220320ac3fc43010ac2089f4931c4c383ca9873db22b0040a28af93142dd864736f6c63430007060033' + +type DebugTransactionGuardConstructorParams = + | [signer?: Signer] + | ConstructorParameters + +const isSuperArgs = ( + xs: DebugTransactionGuardConstructorParams +): xs is ConstructorParameters => xs.length > 1 + +export class DebugTransactionGuard__factory extends ContractFactory { + constructor(...args: DebugTransactionGuardConstructorParams) { + if (isSuperArgs(args)) { + super(...args) + } else { + super(_abi, _bytecode, args[0]) + } + } + + override getDeployTransaction( + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(overrides || {}) + } + override deploy(overrides?: NonPayableOverrides & { from?: string }) { + return super.deploy(overrides || {}) as Promise< + DebugTransactionGuard & { + deploymentTransaction(): ContractTransactionResponse + } + > + } + override connect(runner: ContractRunner | null): DebugTransactionGuard__factory { + return super.connect(runner) as DebugTransactionGuard__factory + } + + static readonly bytecode = _bytecode + static readonly abi = _abi + static createInterface(): DebugTransactionGuardInterface { + return new Interface(_abi) as DebugTransactionGuardInterface + } + static connect(address: string, runner?: ContractRunner | null): DebugTransactionGuard { + return new Contract(address, _abi, runner) as unknown as DebugTransactionGuard + } +} diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/factories/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/factories/index.ts new file mode 100644 index 000000000..0898e23dd --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/factories/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { DebugTransactionGuard__factory } from './DebugTransactionGuard__factory' diff --git a/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/index.ts b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/index.ts new file mode 100644 index 000000000..ffdf5ddad --- /dev/null +++ b/packages/protocol-kit/typechain/tests/ethers-v6/v1.4.1/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { DebugTransactionGuard } from './DebugTransactionGuard' +export * as factories from './factories' +export { DebugTransactionGuard__factory } from './factories/DebugTransactionGuard__factory' diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.ts new file mode 100644 index 000000000..c932af8c4 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as token from './token' +export type { token } diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.ts new file mode 100644 index 000000000..f40440bdb --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/ERC20Mintable.ts @@ -0,0 +1,114 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from '../../../../types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type Approval = ContractEventLog<{ + owner: string + spender: string + value: string + 0: string + 1: string + 2: string +}> +export type MinterAdded = ContractEventLog<{ + account: string + 0: string +}> +export type MinterRemoved = ContractEventLog<{ + account: string + 0: string +}> +export type Transfer = ContractEventLog<{ + from: string + to: string + value: string + 0: string + 1: string + 2: string +}> + +export interface ERC20Mintable extends BaseContract { + constructor(jsonInterface: any[], address?: string, options?: ContractOptions): ERC20Mintable + clone(): ERC20Mintable + methods: { + addMinter(account: string): NonPayableTransactionObject + + allowance(owner: string, spender: string): NonPayableTransactionObject + + approve(spender: string, amount: number | string | BN): NonPayableTransactionObject + + balanceOf(account: string): NonPayableTransactionObject + + decreaseAllowance( + spender: string, + subtractedValue: number | string | BN + ): NonPayableTransactionObject + + increaseAllowance( + spender: string, + addedValue: number | string | BN + ): NonPayableTransactionObject + + isMinter(account: string): NonPayableTransactionObject + + mint(account: string, amount: number | string | BN): NonPayableTransactionObject + + renounceMinter(): NonPayableTransactionObject + + totalSupply(): NonPayableTransactionObject + + transfer(recipient: string, amount: number | string | BN): NonPayableTransactionObject + + transferFrom( + sender: string, + recipient: string, + amount: number | string | BN + ): NonPayableTransactionObject + } + events: { + Approval(cb?: Callback): EventEmitter + Approval(options?: EventOptions, cb?: Callback): EventEmitter + + MinterAdded(cb?: Callback): EventEmitter + MinterAdded(options?: EventOptions, cb?: Callback): EventEmitter + + MinterRemoved(cb?: Callback): EventEmitter + MinterRemoved(options?: EventOptions, cb?: Callback): EventEmitter + + Transfer(cb?: Callback): EventEmitter + Transfer(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'Approval', cb: Callback): void + once(event: 'Approval', options: EventOptions, cb: Callback): void + + once(event: 'MinterAdded', cb: Callback): void + once(event: 'MinterAdded', options: EventOptions, cb: Callback): void + + once(event: 'MinterRemoved', cb: Callback): void + once(event: 'MinterRemoved', options: EventOptions, cb: Callback): void + + once(event: 'Transfer', cb: Callback): void + once(event: 'Transfer', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.ts new file mode 100644 index 000000000..d63fd7fb9 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/ERC20/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { ERC20Mintable } from './ERC20Mintable' diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.ts new file mode 100644 index 000000000..8db12d2f1 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/contracts/token/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as erc20 from './ERC20' +export type { erc20 } diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.ts new file mode 100644 index 000000000..eb7a38b1c --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/@openzeppelin/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as contracts from './contracts' +export type { contracts } diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/index.ts new file mode 100644 index 000000000..50af0791b --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as safeV120 from './safe_V1_2_0' +export type { safeV120 } diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.ts new file mode 100644 index 000000000..c26a7d442 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as modules from './modules' +export type { modules } diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.ts new file mode 100644 index 000000000..50f8f01b1 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/SocialRecoveryModule.ts @@ -0,0 +1,78 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from '../../../types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type ChangedMasterCopy = ContractEventLog<{ + masterCopy: string + 0: string +}> + +export interface SocialRecoveryModule extends BaseContract { + constructor( + jsonInterface: any[], + address?: string, + options?: ContractOptions + ): SocialRecoveryModule + clone(): SocialRecoveryModule + methods: { + NAME(): NonPayableTransactionObject + + VERSION(): NonPayableTransactionObject + + changeMasterCopy(_masterCopy: string): NonPayableTransactionObject + + confirmTransaction(dataHash: string | number[]): NonPayableTransactionObject + + friends(arg0: number | string | BN): NonPayableTransactionObject + + getDataHash(data: string | number[]): NonPayableTransactionObject + + isConfirmed(arg0: string | number[], arg1: string): NonPayableTransactionObject + + isConfirmedByRequiredFriends(dataHash: string | number[]): NonPayableTransactionObject + + isExecuted(arg0: string | number[]): NonPayableTransactionObject + + isFriend(arg0: string): NonPayableTransactionObject + + manager(): NonPayableTransactionObject + + recoverAccess( + prevOwner: string, + oldOwner: string, + newOwner: string + ): NonPayableTransactionObject + + setup(_friends: string[], _threshold: number | string | BN): NonPayableTransactionObject + + threshold(): NonPayableTransactionObject + } + events: { + ChangedMasterCopy(cb?: Callback): EventEmitter + ChangedMasterCopy(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'ChangedMasterCopy', cb: Callback): void + once(event: 'ChangedMasterCopy', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.ts new file mode 100644 index 000000000..6288736f2 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/contracts/safe_V1_2_0/modules/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { SocialRecoveryModule } from './SocialRecoveryModule' diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/index.ts new file mode 100644 index 000000000..0ff7e8f46 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as openzeppelin from './@openzeppelin' +export type { openzeppelin } +import type * as contracts from './contracts' +export type { contracts } diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/types.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/types.ts new file mode 100644 index 000000000..dd01da1f0 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.2.0/types.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type BN from 'bn.js' +import type { EventEmitter } from 'events' +import type { EventLog, PromiEvent, TransactionReceipt } from 'web3-core/types' +import type { Contract } from 'web3-eth-contract' + +export interface EstimateGasOptions { + from?: string + gas?: number + value?: number | string | BN +} + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type Callback = (error: Error, result: T) => void +export interface ContractEventLog extends EventLog { + returnValues: T +} +export interface ContractEventEmitter extends EventEmitter { + on(event: 'connected', listener: (subscriptionId: string) => void): this + on(event: 'data' | 'changed', listener: (event: ContractEventLog) => void): this + on(event: 'error', listener: (error: Error) => void): this +} + +export interface NonPayableTx { + nonce?: string | number | BN + chainId?: string | number | BN + from?: string + to?: string + data?: string + gas?: string | number | BN + maxPriorityFeePerGas?: string | number | BN + maxFeePerGas?: string | number | BN + gasPrice?: string | number | BN +} + +export interface PayableTx extends NonPayableTx { + value?: string | number | BN +} + +export interface NonPayableTransactionObject { + arguments: any[] + call(tx?: NonPayableTx, block?: BlockType): Promise + send(tx?: NonPayableTx): PromiEvent + estimateGas(tx?: NonPayableTx): Promise + encodeABI(): string +} + +export interface PayableTransactionObject { + arguments: any[] + call(tx?: PayableTx, block?: BlockType): Promise + send(tx?: PayableTx): PromiEvent + estimateGas(tx?: PayableTx): Promise + encodeABI(): string +} + +export type BlockType = 'latest' | 'pending' | 'genesis' | 'earliest' | number | BN +export type BaseContract = Omit diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.ts new file mode 100644 index 000000000..370f08889 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/DebugTransactionGuard.ts @@ -0,0 +1,99 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type GasUsage = ContractEventLog<{ + safe: string + txHash: string + nonce: string + success: boolean + 0: string + 1: string + 2: string + 3: boolean +}> +export type TransactionDetails = ContractEventLog<{ + safe: string + txHash: string + to: string + value: string + data: string + operation: string + safeTxGas: string + usesRefund: boolean + nonce: string + 0: string + 1: string + 2: string + 3: string + 4: string + 5: string + 6: string + 7: boolean + 8: string +}> + +export interface DebugTransactionGuard extends BaseContract { + constructor( + jsonInterface: any[], + address?: string, + options?: ContractOptions + ): DebugTransactionGuard + clone(): DebugTransactionGuard + methods: { + checkAfterExecution( + txHash: string | number[], + success: boolean + ): NonPayableTransactionObject + + checkTransaction( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + arg9: string | number[], + arg10: string + ): NonPayableTransactionObject + + txNonces(arg0: string | number[]): NonPayableTransactionObject + } + events: { + GasUsage(cb?: Callback): EventEmitter + GasUsage(options?: EventOptions, cb?: Callback): EventEmitter + + TransactionDetails(cb?: Callback): EventEmitter + TransactionDetails(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'GasUsage', cb: Callback): void + once(event: 'GasUsage', options: EventOptions, cb: Callback): void + + once(event: 'TransactionDetails', cb: Callback): void + once(event: 'TransactionDetails', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/index.ts new file mode 100644 index 000000000..fa85e18a8 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { DebugTransactionGuard } from './DebugTransactionGuard' diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/types.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/types.ts new file mode 100644 index 000000000..dd01da1f0 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.3.0/types.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type BN from 'bn.js' +import type { EventEmitter } from 'events' +import type { EventLog, PromiEvent, TransactionReceipt } from 'web3-core/types' +import type { Contract } from 'web3-eth-contract' + +export interface EstimateGasOptions { + from?: string + gas?: number + value?: number | string | BN +} + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type Callback = (error: Error, result: T) => void +export interface ContractEventLog extends EventLog { + returnValues: T +} +export interface ContractEventEmitter extends EventEmitter { + on(event: 'connected', listener: (subscriptionId: string) => void): this + on(event: 'data' | 'changed', listener: (event: ContractEventLog) => void): this + on(event: 'error', listener: (error: Error) => void): this +} + +export interface NonPayableTx { + nonce?: string | number | BN + chainId?: string | number | BN + from?: string + to?: string + data?: string + gas?: string | number | BN + maxPriorityFeePerGas?: string | number | BN + maxFeePerGas?: string | number | BN + gasPrice?: string | number | BN +} + +export interface PayableTx extends NonPayableTx { + value?: string | number | BN +} + +export interface NonPayableTransactionObject { + arguments: any[] + call(tx?: NonPayableTx, block?: BlockType): Promise + send(tx?: NonPayableTx): PromiEvent + estimateGas(tx?: NonPayableTx): Promise + encodeABI(): string +} + +export interface PayableTransactionObject { + arguments: any[] + call(tx?: PayableTx, block?: BlockType): Promise + send(tx?: PayableTx): PromiEvent + estimateGas(tx?: PayableTx): Promise + encodeABI(): string +} + +export type BlockType = 'latest' | 'pending' | 'genesis' | 'earliest' | number | BN +export type BaseContract = Omit diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.ts new file mode 100644 index 000000000..560b31359 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/DebugTransactionGuard.ts @@ -0,0 +1,105 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import type BN from 'bn.js' +import type { ContractOptions } from 'web3-eth-contract' +import type { EventLog } from 'web3-core' +import type { EventEmitter } from 'events' +import type { + Callback, + PayableTransactionObject, + NonPayableTransactionObject, + BlockType, + ContractEventLog, + BaseContract +} from './types' + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type GasUsage = ContractEventLog<{ + safe: string + txHash: string + nonce: string + success: boolean + 0: string + 1: string + 2: string + 3: boolean +}> +export type TransactionDetails = ContractEventLog<{ + safe: string + txHash: string + to: string + value: string + data: string + operation: string + safeTxGas: string + usesRefund: boolean + nonce: string + signatures: string + executor: string + 0: string + 1: string + 2: string + 3: string + 4: string + 5: string + 6: string + 7: boolean + 8: string + 9: string + 10: string +}> + +export interface DebugTransactionGuard extends BaseContract { + constructor( + jsonInterface: any[], + address?: string, + options?: ContractOptions + ): DebugTransactionGuard + clone(): DebugTransactionGuard + methods: { + checkAfterExecution( + txHash: string | number[], + success: boolean + ): NonPayableTransactionObject + + checkTransaction( + to: string, + value: number | string | BN, + data: string | number[], + operation: number | string | BN, + safeTxGas: number | string | BN, + baseGas: number | string | BN, + gasPrice: number | string | BN, + gasToken: string, + refundReceiver: string, + signatures: string | number[], + executor: string + ): NonPayableTransactionObject + + supportsInterface(interfaceId: string | number[]): NonPayableTransactionObject + + txNonces(arg0: string | number[]): NonPayableTransactionObject + } + events: { + GasUsage(cb?: Callback): EventEmitter + GasUsage(options?: EventOptions, cb?: Callback): EventEmitter + + TransactionDetails(cb?: Callback): EventEmitter + TransactionDetails(options?: EventOptions, cb?: Callback): EventEmitter + + allEvents(options?: EventOptions, cb?: Callback): EventEmitter + } + + once(event: 'GasUsage', cb: Callback): void + once(event: 'GasUsage', options: EventOptions, cb: Callback): void + + once(event: 'TransactionDetails', cb: Callback): void + once(event: 'TransactionDetails', options: EventOptions, cb: Callback): void +} diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/index.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/index.ts new file mode 100644 index 000000000..fa85e18a8 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { DebugTransactionGuard } from './DebugTransactionGuard' diff --git a/packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/types.ts b/packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/types.ts new file mode 100644 index 000000000..dd01da1f0 --- /dev/null +++ b/packages/protocol-kit/typechain/tests/web3-v1/v1.4.1/types.ts @@ -0,0 +1,64 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type BN from 'bn.js' +import type { EventEmitter } from 'events' +import type { EventLog, PromiEvent, TransactionReceipt } from 'web3-core/types' +import type { Contract } from 'web3-eth-contract' + +export interface EstimateGasOptions { + from?: string + gas?: number + value?: number | string | BN +} + +export interface EventOptions { + filter?: object + fromBlock?: BlockType + topics?: string[] +} + +export type Callback = (error: Error, result: T) => void +export interface ContractEventLog extends EventLog { + returnValues: T +} +export interface ContractEventEmitter extends EventEmitter { + on(event: 'connected', listener: (subscriptionId: string) => void): this + on(event: 'data' | 'changed', listener: (event: ContractEventLog) => void): this + on(event: 'error', listener: (error: Error) => void): this +} + +export interface NonPayableTx { + nonce?: string | number | BN + chainId?: string | number | BN + from?: string + to?: string + data?: string + gas?: string | number | BN + maxPriorityFeePerGas?: string | number | BN + maxFeePerGas?: string | number | BN + gasPrice?: string | number | BN +} + +export interface PayableTx extends NonPayableTx { + value?: string | number | BN +} + +export interface NonPayableTransactionObject { + arguments: any[] + call(tx?: NonPayableTx, block?: BlockType): Promise + send(tx?: NonPayableTx): PromiEvent + estimateGas(tx?: NonPayableTx): Promise + encodeABI(): string +} + +export interface PayableTransactionObject { + arguments: any[] + call(tx?: PayableTx, block?: BlockType): Promise + send(tx?: PayableTx): PromiEvent + estimateGas(tx?: PayableTx): Promise + encodeABI(): string +} + +export type BlockType = 'latest' | 'pending' | 'genesis' | 'earliest' | number | BN +export type BaseContract = Omit