From d151ca5021adcec004a5aa72dad880a94046e0c5 Mon Sep 17 00:00:00 2001 From: David Colon <38386583+Da-Colon@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:44:16 -0400 Subject: [PATCH 1/2] add SafeL2 typechain types --- .../safe/@openzeppelin/contracts/index.ts | 7 + .../@openzeppelin/contracts/proxy/Proxy.ts | 55 + .../contracts/proxy/UpgradeableProxy.ts | 69 + .../@openzeppelin/contracts/proxy/index.ts | 5 + .../contracts/token/ERC20/ERC20.ts | 444 +++++ .../contracts/token/ERC20/IERC20.ts | 322 ++++ .../contracts/token/ERC20/index.ts | 5 + .../@openzeppelin/contracts/token/index.ts | 5 + .../safe/@openzeppelin/index.ts | 5 + .../safe/@safe-global/index.ts | 5 + .../MockContract.sol/MockContract.ts | 1180 ++++++++++++ .../MockContract.sol/MockInterface.ts | 1042 +++++++++++ .../contracts/MockContract.sol/index.ts | 5 + .../mock-contract/contracts/index.ts | 5 + .../safe/@safe-global/mock-contract/index.ts | 5 + src/assets/typechain-types/safe/common.ts | 44 + .../typechain-types/safe/contracts/Safe.ts | 1500 ++++++++++++++++ .../typechain-types/safe/contracts/SafeL2.ts | 1594 +++++++++++++++++ .../contracts/accessors/SimulateTxAccessor.ts | 123 ++ .../safe/contracts/accessors/index.ts | 4 + .../safe/contracts/base/FallbackManager.ts | 130 ++ .../base/GuardManager.sol/BaseGuard.ts | 300 ++++ .../contracts/base/GuardManager.sol/Guard.ts | 300 ++++ .../base/GuardManager.sol/GuardManager.ts | 113 ++ .../contracts/base/GuardManager.sol/index.ts | 6 + .../safe/contracts/base/ModuleManager.ts | 430 +++++ .../safe/contracts/base/OwnerManager.ts | 332 ++++ .../safe/contracts/base/index.ts | 8 + .../common/NativeCurrencyPaymentFallback.ts | 77 + .../contracts/common/StorageAccessible.ts | 151 ++ .../safe/contracts/common/index.ts | 5 + .../examples/guards/DebugTransactionGuard.ts | 448 +++++ .../guards/DelegateCallTransactionGuard.ts | 318 ++++ .../examples/guards/OnlyOwnersGuard.ts | 300 ++++ .../guards/ReentrancyTransactionGuard.ts | 300 ++++ .../safe/contracts/examples/guards/index.ts | 7 + .../safe/contracts/examples/index.ts | 7 + .../Migrate_1_3_0_to_1_2_0.sol/Migration.ts | 160 ++ .../Migrate_1_3_0_to_1_2_0.sol/index.ts | 4 + .../contracts/examples/libraries/index.ts | 5 + .../handler/CompatibilityFallbackHandler.ts | 587 ++++++ .../contracts/handler/TokenCallbackHandler.ts | 326 ++++ .../safe/contracts/handler/index.ts | 5 + .../typechain-types/safe/contracts/index.ts | 23 + .../interfaces/ERC1155TokenReceiver.ts | 181 ++ .../interfaces/ERC721TokenReceiver.ts | 120 ++ .../interfaces/ERC777TokensRecipient.ts | 130 ++ .../safe/contracts/interfaces/IERC165.ts | 102 ++ .../contracts/interfaces/IFallbackManager.ts | 130 ++ .../contracts/interfaces/IGuardManager.ts | 113 ++ .../contracts/interfaces/IModuleManager.ts | 430 +++++ .../contracts/interfaces/IOwnerManager.ts | 332 ++++ .../safe/contracts/interfaces/ISafe.ts | 1401 +++++++++++++++ .../interfaces/ISignatureValidator.ts | 107 ++ .../interfaces/ViewStorageAccessible.ts | 104 ++ .../safe/contracts/interfaces/index.ts | 14 + .../safe/contracts/libraries/CreateCall.ts | 180 ++ .../safe/contracts/libraries/MultiSend.ts | 101 ++ .../contracts/libraries/MultiSendCallOnly.ts | 101 ++ .../libraries/Safe130To141Migration.ts | 258 +++ .../contracts/libraries/Safe150Migration.ts | 414 +++++ .../contracts/libraries/SafeToL2Migration.ts | 280 +++ .../contracts/libraries/SignMessageLib.ts | 155 ++ .../safe/contracts/libraries/index.ts | 10 + .../proxies/IProxyCreationCallback.ts | 120 ++ .../contracts/proxies/SafeProxy.sol/IProxy.ts | 84 + .../proxies/SafeProxy.sol/SafeProxy.ts | 55 + .../contracts/proxies/SafeProxy.sol/index.ts | 5 + .../contracts/proxies/SafeProxyFactory.ts | 278 +++ .../safe/contracts/proxies/index.ts | 7 + .../safe/contracts/test/DelegateCaller.ts | 109 ++ .../safe/contracts/test/ERC1155Token.ts | 209 +++ .../safe/contracts/test/ERC20Token.ts | 444 +++++ .../Test4337ModuleAndHandler.sol/ISafe.ts | 153 ++ .../Test4337ModuleAndHandler.ts | 264 +++ .../Test4337ModuleAndHandler.sol/index.ts | 5 + .../safe/contracts/test/TestHandler.ts | 87 + .../contracts/test/TestNativeTokenReceiver.ts | 82 + .../safe/contracts/test/Token.ts | 107 ++ .../safe/contracts/test/index.ts | 11 + .../@openzeppelin/contracts/index.ts | 5 + .../contracts/proxy/Proxy__factory.ts | 31 + .../proxy/UpgradeableProxy__factory.ts | 114 ++ .../@openzeppelin/contracts/proxy/index.ts | 5 + .../contracts/token/ERC20/ERC20__factory.ts | 349 ++++ .../contracts/token/ERC20/IERC20__factory.ts | 206 +++ .../contracts/token/ERC20/index.ts | 5 + .../@openzeppelin/contracts/token/index.ts | 4 + .../safe/factories/@openzeppelin/index.ts | 4 + .../safe/factories/@safe-global/index.ts | 4 + .../MockContract.sol/MockContract__factory.ts | 563 ++++++ .../MockInterface__factory.ts | 431 +++++ .../contracts/MockContract.sol/index.ts | 5 + .../mock-contract/contracts/index.ts | 4 + .../@safe-global/mock-contract/index.ts | 4 + .../factories/contracts/SafeL2__factory.ts | 1097 ++++++++++++ .../safe/factories/contracts/Safe__factory.ts | 992 ++++++++++ .../accessors/SimulateTxAccessor__factory.ts | 111 ++ .../factories/contracts/accessors/index.ts | 4 + .../base/FallbackManager__factory.ts | 56 + .../GuardManager.sol/BaseGuard__factory.ts | 165 ++ .../GuardManager.sol/GuardManager__factory.ts | 52 + .../base/GuardManager.sol/Guard__factory.ts | 162 ++ .../contracts/base/GuardManager.sol/index.ts | 6 + .../contracts/base/ModuleManager__factory.ts | 256 +++ .../contracts/base/OwnerManager__factory.ts | 187 ++ .../safe/factories/contracts/base/index.ts | 7 + .../NativeCurrencyPaymentFallback__factory.ts | 53 + .../common/StorageAccessible__factory.ts | 68 + .../safe/factories/contracts/common/index.ts | 5 + .../guards/DebugTransactionGuard__factory.ts | 375 ++++ .../DelegateCallTransactionGuard__factory.ts | 238 +++ .../guards/OnlyOwnersGuard__factory.ts | 210 +++ .../ReentrancyTransactionGuard__factory.ts | 209 +++ .../contracts/examples/guards/index.ts | 7 + .../factories/contracts/examples/index.ts | 5 + .../Migration__factory.ts | 121 ++ .../Migrate_1_3_0_to_1_2_0.sol/index.ts | 4 + .../contracts/examples/libraries/index.ts | 4 + .../CompatibilityFallbackHandler__factory.ts | 393 ++++ .../handler/TokenCallbackHandler__factory.ts | 235 +++ .../safe/factories/contracts/handler/index.ts | 5 + .../safe/factories/contracts/index.ts | 14 + .../ERC1155TokenReceiver__factory.ts | 108 ++ .../ERC721TokenReceiver__factory.ts | 60 + .../ERC777TokensRecipient__factory.ts | 68 + .../contracts/interfaces/IERC165__factory.ts | 45 + .../interfaces/IFallbackManager__factory.ts | 52 + .../interfaces/IGuardManager__factory.ts | 52 + .../interfaces/IModuleManager__factory.ts | 256 +++ .../interfaces/IOwnerManager__factory.ts | 187 ++ .../contracts/interfaces/ISafe__factory.ts | 887 +++++++++ .../ISignatureValidator__factory.ts | 50 + .../ViewStorageAccessible__factory.ts | 54 + .../factories/contracts/interfaces/index.ts | 14 + .../libraries/CreateCall__factory.ts | 128 ++ .../libraries/MultiSendCallOnly__factory.ts | 75 + .../contracts/libraries/MultiSend__factory.ts | 80 + .../Safe130To141Migration__factory.ts | 151 ++ .../libraries/Safe150Migration__factory.ts | 199 ++ .../libraries/SafeToL2Migration__factory.ts | 234 +++ .../libraries/SignMessageLib__factory.ts | 107 ++ .../factories/contracts/libraries/index.ts | 10 + .../IProxyCreationCallback__factory.ts | 58 + .../proxies/SafeProxy.sol/IProxy__factory.ts | 36 + .../SafeProxy.sol/SafeProxy__factory.ts | 79 + .../contracts/proxies/SafeProxy.sol/index.ts | 5 + .../proxies/SafeProxyFactory__factory.ts | 199 ++ .../safe/factories/contracts/proxies/index.ts | 6 + .../contracts/test/DelegateCaller__factory.ts | 91 + .../contracts/test/ERC1155Token__factory.ts | 147 ++ .../contracts/test/ERC20Token__factory.ts | 337 ++++ .../ISafe__factory.ts | 70 + .../Test4337ModuleAndHandler__factory.ts | 224 +++ .../Test4337ModuleAndHandler.sol/index.ts | 5 + .../contracts/test/TestHandler__factory.ts | 80 + .../test/TestNativeTokenReceiver__factory.ts | 95 + .../contracts/test/Token__factory.ts | 44 + .../safe/factories/contracts/test/index.ts | 10 + .../typechain-types/safe/factories/index.ts | 6 + src/assets/typechain-types/safe/hardhat.d.ts | 519 ++++++ 161 files changed, 29052 insertions(+) create mode 100644 src/assets/typechain-types/safe/@openzeppelin/contracts/index.ts create mode 100644 src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/Proxy.ts create mode 100644 src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/UpgradeableProxy.ts create mode 100644 src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/index.ts create mode 100644 src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/ERC20.ts create mode 100644 src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/IERC20.ts create mode 100644 src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/index.ts create mode 100644 src/assets/typechain-types/safe/@openzeppelin/contracts/token/index.ts create mode 100644 src/assets/typechain-types/safe/@openzeppelin/index.ts create mode 100644 src/assets/typechain-types/safe/@safe-global/index.ts create mode 100644 src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/MockContract.ts create mode 100644 src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/MockInterface.ts create mode 100644 src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/index.ts create mode 100644 src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/index.ts create mode 100644 src/assets/typechain-types/safe/@safe-global/mock-contract/index.ts create mode 100644 src/assets/typechain-types/safe/common.ts create mode 100644 src/assets/typechain-types/safe/contracts/Safe.ts create mode 100644 src/assets/typechain-types/safe/contracts/SafeL2.ts create mode 100644 src/assets/typechain-types/safe/contracts/accessors/SimulateTxAccessor.ts create mode 100644 src/assets/typechain-types/safe/contracts/accessors/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/base/FallbackManager.ts create mode 100644 src/assets/typechain-types/safe/contracts/base/GuardManager.sol/BaseGuard.ts create mode 100644 src/assets/typechain-types/safe/contracts/base/GuardManager.sol/Guard.ts create mode 100644 src/assets/typechain-types/safe/contracts/base/GuardManager.sol/GuardManager.ts create mode 100644 src/assets/typechain-types/safe/contracts/base/GuardManager.sol/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/base/ModuleManager.ts create mode 100644 src/assets/typechain-types/safe/contracts/base/OwnerManager.ts create mode 100644 src/assets/typechain-types/safe/contracts/base/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/common/NativeCurrencyPaymentFallback.ts create mode 100644 src/assets/typechain-types/safe/contracts/common/StorageAccessible.ts create mode 100644 src/assets/typechain-types/safe/contracts/common/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/examples/guards/DebugTransactionGuard.ts create mode 100644 src/assets/typechain-types/safe/contracts/examples/guards/DelegateCallTransactionGuard.ts create mode 100644 src/assets/typechain-types/safe/contracts/examples/guards/OnlyOwnersGuard.ts create mode 100644 src/assets/typechain-types/safe/contracts/examples/guards/ReentrancyTransactionGuard.ts create mode 100644 src/assets/typechain-types/safe/contracts/examples/guards/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/examples/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/Migration.ts create mode 100644 src/assets/typechain-types/safe/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/examples/libraries/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/handler/CompatibilityFallbackHandler.ts create mode 100644 src/assets/typechain-types/safe/contracts/handler/TokenCallbackHandler.ts create mode 100644 src/assets/typechain-types/safe/contracts/handler/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/ERC1155TokenReceiver.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/ERC721TokenReceiver.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/ERC777TokensRecipient.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/IERC165.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/IFallbackManager.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/IGuardManager.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/IModuleManager.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/IOwnerManager.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/ISafe.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/ISignatureValidator.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/ViewStorageAccessible.ts create mode 100644 src/assets/typechain-types/safe/contracts/interfaces/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/libraries/CreateCall.ts create mode 100644 src/assets/typechain-types/safe/contracts/libraries/MultiSend.ts create mode 100644 src/assets/typechain-types/safe/contracts/libraries/MultiSendCallOnly.ts create mode 100644 src/assets/typechain-types/safe/contracts/libraries/Safe130To141Migration.ts create mode 100644 src/assets/typechain-types/safe/contracts/libraries/Safe150Migration.ts create mode 100644 src/assets/typechain-types/safe/contracts/libraries/SafeToL2Migration.ts create mode 100644 src/assets/typechain-types/safe/contracts/libraries/SignMessageLib.ts create mode 100644 src/assets/typechain-types/safe/contracts/libraries/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/proxies/IProxyCreationCallback.ts create mode 100644 src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/IProxy.ts create mode 100644 src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/SafeProxy.ts create mode 100644 src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/proxies/SafeProxyFactory.ts create mode 100644 src/assets/typechain-types/safe/contracts/proxies/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/DelegateCaller.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/ERC1155Token.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/ERC20Token.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/ISafe.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/Test4337ModuleAndHandler.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/index.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/TestHandler.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/TestNativeTokenReceiver.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/Token.ts create mode 100644 src/assets/typechain-types/safe/contracts/test/index.ts create mode 100644 src/assets/typechain-types/safe/factories/@openzeppelin/contracts/index.ts create mode 100644 src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/UpgradeableProxy__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/index.ts create mode 100644 src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/index.ts create mode 100644 src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/index.ts create mode 100644 src/assets/typechain-types/safe/factories/@openzeppelin/index.ts create mode 100644 src/assets/typechain-types/safe/factories/@safe-global/index.ts create mode 100644 src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/MockContract__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/MockInterface__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/index.ts create mode 100644 src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/index.ts create mode 100644 src/assets/typechain-types/safe/factories/@safe-global/mock-contract/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/SafeL2__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/Safe__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/accessors/SimulateTxAccessor__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/accessors/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/base/FallbackManager__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/BaseGuard__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/GuardManager__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/Guard__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/base/ModuleManager__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/base/OwnerManager__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/base/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/common/NativeCurrencyPaymentFallback__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/common/StorageAccessible__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/common/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/examples/guards/DebugTransactionGuard__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/examples/guards/DelegateCallTransactionGuard__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/examples/guards/OnlyOwnersGuard__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/examples/guards/ReentrancyTransactionGuard__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/examples/guards/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/examples/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/Migration__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/examples/libraries/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/handler/CompatibilityFallbackHandler__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/handler/TokenCallbackHandler__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/handler/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/ERC1155TokenReceiver__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/ERC721TokenReceiver__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/ERC777TokensRecipient__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/IERC165__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/IFallbackManager__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/IGuardManager__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/IModuleManager__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/IOwnerManager__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/ISafe__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/ISignatureValidator__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/ViewStorageAccessible__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/interfaces/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/libraries/CreateCall__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/libraries/MultiSendCallOnly__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/libraries/MultiSend__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/libraries/Safe130To141Migration__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/libraries/Safe150Migration__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/libraries/SafeToL2Migration__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/libraries/SignMessageLib__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/libraries/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/proxies/IProxyCreationCallback__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/IProxy__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/SafeProxy__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxyFactory__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/proxies/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/DelegateCaller__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/ERC1155Token__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/ERC20Token__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/ISafe__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/Test4337ModuleAndHandler__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/index.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/TestHandler__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/TestNativeTokenReceiver__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/Token__factory.ts create mode 100644 src/assets/typechain-types/safe/factories/contracts/test/index.ts create mode 100644 src/assets/typechain-types/safe/factories/index.ts create mode 100644 src/assets/typechain-types/safe/hardhat.d.ts diff --git a/src/assets/typechain-types/safe/@openzeppelin/contracts/index.ts b/src/assets/typechain-types/safe/@openzeppelin/contracts/index.ts new file mode 100644 index 0000000000..c24a1631c9 --- /dev/null +++ b/src/assets/typechain-types/safe/@openzeppelin/contracts/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as proxy from "./proxy"; +export type { proxy }; +import type * as token from "./token"; +export type { token }; diff --git a/src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/Proxy.ts b/src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/Proxy.ts new file mode 100644 index 0000000000..5098b56d9e --- /dev/null +++ b/src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/Proxy.ts @@ -0,0 +1,55 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseContract, Signer, utils } from "ethers"; + +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface ProxyInterface extends utils.Interface { + functions: {}; + + events: {}; +} + +export interface Proxy extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ProxyInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: {}; + + callStatic: {}; + + filters: {}; + + estimateGas: {}; + + populateTransaction: {}; +} diff --git a/src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/UpgradeableProxy.ts b/src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/UpgradeableProxy.ts new file mode 100644 index 0000000000..2d8425cdba --- /dev/null +++ b/src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/UpgradeableProxy.ts @@ -0,0 +1,69 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseContract, Signer, utils } from "ethers"; +import type { EventFragment } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface UpgradeableProxyInterface extends utils.Interface { + functions: {}; + + events: { + "Upgraded(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "Upgraded"): EventFragment; +} + +export interface UpgradedEventObject { + implementation: string; +} +export type UpgradedEvent = TypedEvent<[string], UpgradedEventObject>; + +export type UpgradedEventFilter = TypedEventFilter; + +export interface UpgradeableProxy extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: UpgradeableProxyInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: {}; + + callStatic: {}; + + filters: { + "Upgraded(address)"(implementation?: string | null): UpgradedEventFilter; + Upgraded(implementation?: string | null): UpgradedEventFilter; + }; + + estimateGas: {}; + + populateTransaction: {}; +} diff --git a/src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/index.ts b/src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/index.ts new file mode 100644 index 0000000000..f42ab30763 --- /dev/null +++ b/src/assets/typechain-types/safe/@openzeppelin/contracts/proxy/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Proxy } from "./Proxy"; +export type { UpgradeableProxy } from "./UpgradeableProxy"; diff --git a/src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/ERC20.ts b/src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/ERC20.ts new file mode 100644 index 0000000000..c1d4bacdb4 --- /dev/null +++ b/src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/ERC20.ts @@ -0,0 +1,444 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../../common"; + +export interface ERC20Interface extends utils.Interface { + functions: { + "allowance(address,address)": FunctionFragment; + "approve(address,uint256)": FunctionFragment; + "balanceOf(address)": FunctionFragment; + "decimals()": FunctionFragment; + "decreaseAllowance(address,uint256)": FunctionFragment; + "increaseAllowance(address,uint256)": FunctionFragment; + "name()": FunctionFragment; + "symbol()": FunctionFragment; + "totalSupply()": FunctionFragment; + "transfer(address,uint256)": FunctionFragment; + "transferFrom(address,address,uint256)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "allowance" + | "approve" + | "balanceOf" + | "decimals" + | "decreaseAllowance" + | "increaseAllowance" + | "name" + | "symbol" + | "totalSupply" + | "transfer" + | "transferFrom" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "allowance", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "approve", + values: [string, BigNumberish] + ): string; + encodeFunctionData(functionFragment: "balanceOf", values: [string]): string; + encodeFunctionData(functionFragment: "decimals", values?: undefined): string; + encodeFunctionData( + functionFragment: "decreaseAllowance", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "increaseAllowance", + values: [string, BigNumberish] + ): string; + encodeFunctionData(functionFragment: "name", values?: undefined): string; + encodeFunctionData(functionFragment: "symbol", values?: undefined): string; + encodeFunctionData( + functionFragment: "totalSupply", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "transfer", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [string, string, BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "decreaseAllowance", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "increaseAllowance", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "totalSupply", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + + events: { + "Approval(address,address,uint256)": EventFragment; + "Transfer(address,address,uint256)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; + getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; +} + +export interface ApprovalEventObject { + owner: string; + spender: string; + value: BigNumber; +} +export type ApprovalEvent = TypedEvent< + [string, string, BigNumber], + ApprovalEventObject +>; + +export type ApprovalEventFilter = TypedEventFilter; + +export interface TransferEventObject { + from: string; + to: string; + value: BigNumber; +} +export type TransferEvent = TypedEvent< + [string, string, BigNumber], + TransferEventObject +>; + +export type TransferEventFilter = TypedEventFilter; + +export interface ERC20 extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ERC20Interface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>; + + decimals(overrides?: CallOverrides): Promise<[number]>; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + name(overrides?: CallOverrides): Promise<[string]>; + + symbol(overrides?: CallOverrides): Promise<[string]>; + + totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise; + + decimals(overrides?: CallOverrides): Promise; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise; + + decimals(overrides?: CallOverrides): Promise; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: CallOverrides + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: CallOverrides + ): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "Approval(address,address,uint256)"( + owner?: string | null, + spender?: string | null, + value?: null + ): ApprovalEventFilter; + Approval( + owner?: string | null, + spender?: string | null, + value?: null + ): ApprovalEventFilter; + + "Transfer(address,address,uint256)"( + from?: string | null, + to?: string | null, + value?: null + ): TransferEventFilter; + Transfer( + from?: string | null, + to?: string | null, + value?: null + ): TransferEventFilter; + }; + + estimateGas: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise; + + decimals(overrides?: CallOverrides): Promise; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf( + account: string, + overrides?: CallOverrides + ): Promise; + + decimals(overrides?: CallOverrides): Promise; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/IERC20.ts b/src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/IERC20.ts new file mode 100644 index 0000000000..d8b22e8050 --- /dev/null +++ b/src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/IERC20.ts @@ -0,0 +1,322 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../../common"; + +export interface IERC20Interface extends utils.Interface { + functions: { + "allowance(address,address)": FunctionFragment; + "approve(address,uint256)": FunctionFragment; + "balanceOf(address)": FunctionFragment; + "totalSupply()": FunctionFragment; + "transfer(address,uint256)": FunctionFragment; + "transferFrom(address,address,uint256)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "allowance" + | "approve" + | "balanceOf" + | "totalSupply" + | "transfer" + | "transferFrom" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "allowance", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "approve", + values: [string, BigNumberish] + ): string; + encodeFunctionData(functionFragment: "balanceOf", values: [string]): string; + encodeFunctionData( + functionFragment: "totalSupply", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "transfer", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [string, string, BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "totalSupply", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + + events: { + "Approval(address,address,uint256)": EventFragment; + "Transfer(address,address,uint256)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; + getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; +} + +export interface ApprovalEventObject { + owner: string; + spender: string; + value: BigNumber; +} +export type ApprovalEvent = TypedEvent< + [string, string, BigNumber], + ApprovalEventObject +>; + +export type ApprovalEventFilter = TypedEventFilter; + +export interface TransferEventObject { + from: string; + to: string; + value: BigNumber; +} +export type TransferEvent = TypedEvent< + [string, string, BigNumber], + TransferEventObject +>; + +export type TransferEventFilter = TypedEventFilter; + +export interface IERC20 extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IERC20Interface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>; + + totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "Approval(address,address,uint256)"( + owner?: string | null, + spender?: string | null, + value?: null + ): ApprovalEventFilter; + Approval( + owner?: string | null, + spender?: string | null, + value?: null + ): ApprovalEventFilter; + + "Transfer(address,address,uint256)"( + from?: string | null, + to?: string | null, + value?: null + ): TransferEventFilter; + Transfer( + from?: string | null, + to?: string | null, + value?: null + ): TransferEventFilter; + }; + + estimateGas: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf( + account: string, + overrides?: CallOverrides + ): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/index.ts b/src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/index.ts new file mode 100644 index 0000000000..7c3fec44d0 --- /dev/null +++ b/src/assets/typechain-types/safe/@openzeppelin/contracts/token/ERC20/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { ERC20 } from "./ERC20"; +export type { IERC20 } from "./IERC20"; diff --git a/src/assets/typechain-types/safe/@openzeppelin/contracts/token/index.ts b/src/assets/typechain-types/safe/@openzeppelin/contracts/token/index.ts new file mode 100644 index 0000000000..5c4062a9ca --- /dev/null +++ b/src/assets/typechain-types/safe/@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/src/assets/typechain-types/safe/@openzeppelin/index.ts b/src/assets/typechain-types/safe/@openzeppelin/index.ts new file mode 100644 index 0000000000..a11e4ca299 --- /dev/null +++ b/src/assets/typechain-types/safe/@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/src/assets/typechain-types/safe/@safe-global/index.ts b/src/assets/typechain-types/safe/@safe-global/index.ts new file mode 100644 index 0000000000..2b7685fa37 --- /dev/null +++ b/src/assets/typechain-types/safe/@safe-global/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as mockContract from "./mock-contract"; +export type { mockContract }; diff --git a/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/MockContract.ts b/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/MockContract.ts new file mode 100644 index 0000000000..2cd39aa1ed --- /dev/null +++ b/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/MockContract.ts @@ -0,0 +1,1180 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../../common"; + +export interface MockContractInterface extends utils.Interface { + functions: { + "DEFAULT_FALLBACK_VALUE()": FunctionFragment; + "MOCKS_LIST_END()": FunctionFragment; + "MOCKS_LIST_END_HASH()": FunctionFragment; + "MOCKS_LIST_START()": FunctionFragment; + "SENTINEL_ANY_MOCKS()": FunctionFragment; + "givenAnyReturn(bytes)": FunctionFragment; + "givenAnyReturnAddress(address)": FunctionFragment; + "givenAnyReturnBool(bool)": FunctionFragment; + "givenAnyReturnUint(uint256)": FunctionFragment; + "givenAnyRevert()": FunctionFragment; + "givenAnyRevertWithMessage(string)": FunctionFragment; + "givenAnyRunOutOfGas()": FunctionFragment; + "givenCalldataReturn(bytes,bytes)": FunctionFragment; + "givenCalldataReturnAddress(bytes,address)": FunctionFragment; + "givenCalldataReturnBool(bytes,bool)": FunctionFragment; + "givenCalldataReturnBytes32(bytes,bytes32)": FunctionFragment; + "givenCalldataReturnUint(bytes,uint256)": FunctionFragment; + "givenCalldataRevert(bytes)": FunctionFragment; + "givenCalldataRevertWithMessage(bytes,string)": FunctionFragment; + "givenCalldataRunOutOfGas(bytes)": FunctionFragment; + "givenMethodReturn(bytes,bytes)": FunctionFragment; + "givenMethodReturnAddress(bytes,address)": FunctionFragment; + "givenMethodReturnBool(bytes,bool)": FunctionFragment; + "givenMethodReturnBytes32(bytes,bytes32)": FunctionFragment; + "givenMethodReturnUint(bytes,uint256)": FunctionFragment; + "givenMethodRevert(bytes)": FunctionFragment; + "givenMethodRevertWithMessage(bytes,string)": FunctionFragment; + "givenMethodRunOutOfGas(bytes)": FunctionFragment; + "invocationCount()": FunctionFragment; + "invocationCountForCalldata(bytes)": FunctionFragment; + "invocationCountForMethod(bytes)": FunctionFragment; + "reset()": FunctionFragment; + "updateInvocationCount(bytes4,bytes)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "DEFAULT_FALLBACK_VALUE" + | "MOCKS_LIST_END" + | "MOCKS_LIST_END_HASH" + | "MOCKS_LIST_START" + | "SENTINEL_ANY_MOCKS" + | "givenAnyReturn" + | "givenAnyReturnAddress" + | "givenAnyReturnBool" + | "givenAnyReturnUint" + | "givenAnyRevert" + | "givenAnyRevertWithMessage" + | "givenAnyRunOutOfGas" + | "givenCalldataReturn" + | "givenCalldataReturnAddress" + | "givenCalldataReturnBool" + | "givenCalldataReturnBytes32" + | "givenCalldataReturnUint" + | "givenCalldataRevert" + | "givenCalldataRevertWithMessage" + | "givenCalldataRunOutOfGas" + | "givenMethodReturn" + | "givenMethodReturnAddress" + | "givenMethodReturnBool" + | "givenMethodReturnBytes32" + | "givenMethodReturnUint" + | "givenMethodRevert" + | "givenMethodRevertWithMessage" + | "givenMethodRunOutOfGas" + | "invocationCount" + | "invocationCountForCalldata" + | "invocationCountForMethod" + | "reset" + | "updateInvocationCount" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "DEFAULT_FALLBACK_VALUE", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "MOCKS_LIST_END", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "MOCKS_LIST_END_HASH", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "MOCKS_LIST_START", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "SENTINEL_ANY_MOCKS", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "givenAnyReturn", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenAnyReturnAddress", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "givenAnyReturnBool", + values: [boolean] + ): string; + encodeFunctionData( + functionFragment: "givenAnyReturnUint", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "givenAnyRevert", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "givenAnyRevertWithMessage", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "givenAnyRunOutOfGas", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturn", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturnAddress", + values: [BytesLike, string] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturnBool", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturnBytes32", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturnUint", + values: [BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataRevert", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataRevertWithMessage", + values: [BytesLike, string] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataRunOutOfGas", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturn", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturnAddress", + values: [BytesLike, string] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturnBool", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturnBytes32", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturnUint", + values: [BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "givenMethodRevert", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenMethodRevertWithMessage", + values: [BytesLike, string] + ): string; + encodeFunctionData( + functionFragment: "givenMethodRunOutOfGas", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "invocationCount", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "invocationCountForCalldata", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "invocationCountForMethod", + values: [BytesLike] + ): string; + encodeFunctionData(functionFragment: "reset", values?: undefined): string; + encodeFunctionData( + functionFragment: "updateInvocationCount", + values: [BytesLike, BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "DEFAULT_FALLBACK_VALUE", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "MOCKS_LIST_END", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "MOCKS_LIST_END_HASH", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "MOCKS_LIST_START", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "SENTINEL_ANY_MOCKS", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyReturn", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyReturnAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyReturnBool", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyReturnUint", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyRevert", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyRevertWithMessage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyRunOutOfGas", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturn", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturnAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturnBool", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturnBytes32", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturnUint", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataRevert", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataRevertWithMessage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataRunOutOfGas", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturn", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturnAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturnBool", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturnBytes32", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturnUint", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodRevert", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodRevertWithMessage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodRunOutOfGas", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "invocationCount", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "invocationCountForCalldata", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "invocationCountForMethod", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "reset", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "updateInvocationCount", + data: BytesLike + ): Result; + + events: {}; +} + +export interface MockContract extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: MockContractInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + DEFAULT_FALLBACK_VALUE(overrides?: CallOverrides): Promise<[string]>; + + MOCKS_LIST_END(overrides?: CallOverrides): Promise<[string]>; + + MOCKS_LIST_END_HASH(overrides?: CallOverrides): Promise<[string]>; + + MOCKS_LIST_START(overrides?: CallOverrides): Promise<[string]>; + + SENTINEL_ANY_MOCKS(overrides?: CallOverrides): Promise<[string]>; + + givenAnyReturn( + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevert( + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRunOutOfGas( + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCount(overrides?: CallOverrides): Promise<[BigNumber]>; + + invocationCountForCalldata( + call: BytesLike, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + invocationCountForMethod( + call: BytesLike, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + reset( + overrides?: Overrides & { from?: string } + ): Promise; + + updateInvocationCount( + methodId: BytesLike, + originalMsgData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + DEFAULT_FALLBACK_VALUE(overrides?: CallOverrides): Promise; + + MOCKS_LIST_END(overrides?: CallOverrides): Promise; + + MOCKS_LIST_END_HASH(overrides?: CallOverrides): Promise; + + MOCKS_LIST_START(overrides?: CallOverrides): Promise; + + SENTINEL_ANY_MOCKS(overrides?: CallOverrides): Promise; + + givenAnyReturn( + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevert( + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRunOutOfGas( + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCount(overrides?: CallOverrides): Promise; + + invocationCountForCalldata( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + invocationCountForMethod( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + reset( + overrides?: Overrides & { from?: string } + ): Promise; + + updateInvocationCount( + methodId: BytesLike, + originalMsgData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + DEFAULT_FALLBACK_VALUE(overrides?: CallOverrides): Promise; + + MOCKS_LIST_END(overrides?: CallOverrides): Promise; + + MOCKS_LIST_END_HASH(overrides?: CallOverrides): Promise; + + MOCKS_LIST_START(overrides?: CallOverrides): Promise; + + SENTINEL_ANY_MOCKS(overrides?: CallOverrides): Promise; + + givenAnyReturn( + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: CallOverrides + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: CallOverrides + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: CallOverrides + ): Promise; + + givenAnyRevert(overrides?: CallOverrides): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: CallOverrides + ): Promise; + + givenAnyRunOutOfGas(overrides?: CallOverrides): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: CallOverrides + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: CallOverrides + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: CallOverrides + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: CallOverrides + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenMethodReturn( + call: BytesLike, + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenMethodReturnAddress( + call: BytesLike, + response: string, + overrides?: CallOverrides + ): Promise; + + givenMethodReturnBool( + call: BytesLike, + response: boolean, + overrides?: CallOverrides + ): Promise; + + givenMethodReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenMethodReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: CallOverrides + ): Promise; + + givenMethodRevert( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenMethodRevertWithMessage( + call: BytesLike, + message: string, + overrides?: CallOverrides + ): Promise; + + givenMethodRunOutOfGas( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + invocationCount(overrides?: CallOverrides): Promise; + + invocationCountForCalldata( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + invocationCountForMethod( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + reset(overrides?: CallOverrides): Promise; + + updateInvocationCount( + methodId: BytesLike, + originalMsgData: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + DEFAULT_FALLBACK_VALUE(overrides?: CallOverrides): Promise; + + MOCKS_LIST_END(overrides?: CallOverrides): Promise; + + MOCKS_LIST_END_HASH(overrides?: CallOverrides): Promise; + + MOCKS_LIST_START(overrides?: CallOverrides): Promise; + + SENTINEL_ANY_MOCKS(overrides?: CallOverrides): Promise; + + givenAnyReturn( + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevert( + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRunOutOfGas( + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCount(overrides?: CallOverrides): Promise; + + invocationCountForCalldata( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + invocationCountForMethod( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + reset(overrides?: Overrides & { from?: string }): Promise; + + updateInvocationCount( + methodId: BytesLike, + originalMsgData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + DEFAULT_FALLBACK_VALUE( + overrides?: CallOverrides + ): Promise; + + MOCKS_LIST_END(overrides?: CallOverrides): Promise; + + MOCKS_LIST_END_HASH( + overrides?: CallOverrides + ): Promise; + + MOCKS_LIST_START(overrides?: CallOverrides): Promise; + + SENTINEL_ANY_MOCKS( + overrides?: CallOverrides + ): Promise; + + givenAnyReturn( + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevert( + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRunOutOfGas( + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCount(overrides?: CallOverrides): Promise; + + invocationCountForCalldata( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + invocationCountForMethod( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + reset( + overrides?: Overrides & { from?: string } + ): Promise; + + updateInvocationCount( + methodId: BytesLike, + originalMsgData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/MockInterface.ts b/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/MockInterface.ts new file mode 100644 index 0000000000..0166a3d2cd --- /dev/null +++ b/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/MockInterface.ts @@ -0,0 +1,1042 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../../common"; + +export interface MockInterfaceInterface extends utils.Interface { + functions: { + "givenAnyReturn(bytes)": FunctionFragment; + "givenAnyReturnAddress(address)": FunctionFragment; + "givenAnyReturnBool(bool)": FunctionFragment; + "givenAnyReturnUint(uint256)": FunctionFragment; + "givenAnyRevert()": FunctionFragment; + "givenAnyRevertWithMessage(string)": FunctionFragment; + "givenAnyRunOutOfGas()": FunctionFragment; + "givenCalldataReturn(bytes,bytes)": FunctionFragment; + "givenCalldataReturnAddress(bytes,address)": FunctionFragment; + "givenCalldataReturnBool(bytes,bool)": FunctionFragment; + "givenCalldataReturnBytes32(bytes,bytes32)": FunctionFragment; + "givenCalldataReturnUint(bytes,uint256)": FunctionFragment; + "givenCalldataRevert(bytes)": FunctionFragment; + "givenCalldataRevertWithMessage(bytes,string)": FunctionFragment; + "givenCalldataRunOutOfGas(bytes)": FunctionFragment; + "givenMethodReturn(bytes,bytes)": FunctionFragment; + "givenMethodReturnAddress(bytes,address)": FunctionFragment; + "givenMethodReturnBool(bytes,bool)": FunctionFragment; + "givenMethodReturnBytes32(bytes,bytes32)": FunctionFragment; + "givenMethodReturnUint(bytes,uint256)": FunctionFragment; + "givenMethodRevert(bytes)": FunctionFragment; + "givenMethodRevertWithMessage(bytes,string)": FunctionFragment; + "givenMethodRunOutOfGas(bytes)": FunctionFragment; + "invocationCount()": FunctionFragment; + "invocationCountForCalldata(bytes)": FunctionFragment; + "invocationCountForMethod(bytes)": FunctionFragment; + "reset()": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "givenAnyReturn" + | "givenAnyReturnAddress" + | "givenAnyReturnBool" + | "givenAnyReturnUint" + | "givenAnyRevert" + | "givenAnyRevertWithMessage" + | "givenAnyRunOutOfGas" + | "givenCalldataReturn" + | "givenCalldataReturnAddress" + | "givenCalldataReturnBool" + | "givenCalldataReturnBytes32" + | "givenCalldataReturnUint" + | "givenCalldataRevert" + | "givenCalldataRevertWithMessage" + | "givenCalldataRunOutOfGas" + | "givenMethodReturn" + | "givenMethodReturnAddress" + | "givenMethodReturnBool" + | "givenMethodReturnBytes32" + | "givenMethodReturnUint" + | "givenMethodRevert" + | "givenMethodRevertWithMessage" + | "givenMethodRunOutOfGas" + | "invocationCount" + | "invocationCountForCalldata" + | "invocationCountForMethod" + | "reset" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "givenAnyReturn", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenAnyReturnAddress", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "givenAnyReturnBool", + values: [boolean] + ): string; + encodeFunctionData( + functionFragment: "givenAnyReturnUint", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "givenAnyRevert", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "givenAnyRevertWithMessage", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "givenAnyRunOutOfGas", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturn", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturnAddress", + values: [BytesLike, string] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturnBool", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturnBytes32", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataReturnUint", + values: [BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataRevert", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataRevertWithMessage", + values: [BytesLike, string] + ): string; + encodeFunctionData( + functionFragment: "givenCalldataRunOutOfGas", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturn", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturnAddress", + values: [BytesLike, string] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturnBool", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturnBytes32", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenMethodReturnUint", + values: [BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "givenMethodRevert", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "givenMethodRevertWithMessage", + values: [BytesLike, string] + ): string; + encodeFunctionData( + functionFragment: "givenMethodRunOutOfGas", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "invocationCount", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "invocationCountForCalldata", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "invocationCountForMethod", + values: [BytesLike] + ): string; + encodeFunctionData(functionFragment: "reset", values?: undefined): string; + + decodeFunctionResult( + functionFragment: "givenAnyReturn", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyReturnAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyReturnBool", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyReturnUint", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyRevert", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyRevertWithMessage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenAnyRunOutOfGas", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturn", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturnAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturnBool", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturnBytes32", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataReturnUint", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataRevert", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataRevertWithMessage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenCalldataRunOutOfGas", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturn", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturnAddress", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturnBool", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturnBytes32", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodReturnUint", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodRevert", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodRevertWithMessage", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "givenMethodRunOutOfGas", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "invocationCount", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "invocationCountForCalldata", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "invocationCountForMethod", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "reset", data: BytesLike): Result; + + events: {}; +} + +export interface MockInterface extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: MockInterfaceInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + givenAnyReturn( + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevert( + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRunOutOfGas( + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturn( + method: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnAddress( + method: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBool( + method: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBytes32( + method: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnUint( + method: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevert( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevertWithMessage( + method: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRunOutOfGas( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCount( + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCountForCalldata( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCountForMethod( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + reset( + overrides?: Overrides & { from?: string } + ): Promise; + }; + + givenAnyReturn( + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevert( + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRunOutOfGas( + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturn( + method: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnAddress( + method: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBool( + method: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBytes32( + method: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnUint( + method: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevert( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevertWithMessage( + method: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRunOutOfGas( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCount( + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCountForCalldata( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCountForMethod( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + reset( + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + givenAnyReturn( + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: CallOverrides + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: CallOverrides + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: CallOverrides + ): Promise; + + givenAnyRevert(overrides?: CallOverrides): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: CallOverrides + ): Promise; + + givenAnyRunOutOfGas(overrides?: CallOverrides): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: CallOverrides + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: CallOverrides + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: CallOverrides + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: CallOverrides + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenMethodReturn( + method: BytesLike, + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenMethodReturnAddress( + method: BytesLike, + response: string, + overrides?: CallOverrides + ): Promise; + + givenMethodReturnBool( + method: BytesLike, + response: boolean, + overrides?: CallOverrides + ): Promise; + + givenMethodReturnBytes32( + method: BytesLike, + response: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenMethodReturnUint( + method: BytesLike, + response: BigNumberish, + overrides?: CallOverrides + ): Promise; + + givenMethodRevert( + method: BytesLike, + overrides?: CallOverrides + ): Promise; + + givenMethodRevertWithMessage( + method: BytesLike, + message: string, + overrides?: CallOverrides + ): Promise; + + givenMethodRunOutOfGas( + method: BytesLike, + overrides?: CallOverrides + ): Promise; + + invocationCount(overrides?: CallOverrides): Promise; + + invocationCountForCalldata( + call: BytesLike, + overrides?: CallOverrides + ): Promise; + + invocationCountForMethod( + method: BytesLike, + overrides?: CallOverrides + ): Promise; + + reset(overrides?: CallOverrides): Promise; + }; + + filters: {}; + + estimateGas: { + givenAnyReturn( + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevert( + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRunOutOfGas( + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturn( + method: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnAddress( + method: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBool( + method: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBytes32( + method: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnUint( + method: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevert( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevertWithMessage( + method: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRunOutOfGas( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCount( + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCountForCalldata( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCountForMethod( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + reset(overrides?: Overrides & { from?: string }): Promise; + }; + + populateTransaction: { + givenAnyReturn( + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnAddress( + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnBool( + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyReturnUint( + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevert( + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRevertWithMessage( + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenAnyRunOutOfGas( + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturn( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnAddress( + call: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBool( + call: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnBytes32( + call: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataReturnUint( + call: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevert( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRevertWithMessage( + call: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenCalldataRunOutOfGas( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturn( + method: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnAddress( + method: BytesLike, + response: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBool( + method: BytesLike, + response: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnBytes32( + method: BytesLike, + response: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodReturnUint( + method: BytesLike, + response: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevert( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRevertWithMessage( + method: BytesLike, + message: string, + overrides?: Overrides & { from?: string } + ): Promise; + + givenMethodRunOutOfGas( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCount( + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCountForCalldata( + call: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + invocationCountForMethod( + method: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + reset( + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/index.ts b/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/index.ts new file mode 100644 index 0000000000..40db29812c --- /dev/null +++ b/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/MockContract.sol/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { MockContract } from "./MockContract"; +export type { MockInterface } from "./MockInterface"; diff --git a/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/index.ts b/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/index.ts new file mode 100644 index 0000000000..ef8ac5c0af --- /dev/null +++ b/src/assets/typechain-types/safe/@safe-global/mock-contract/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as mockContractSol from "./MockContract.sol"; +export type { mockContractSol }; diff --git a/src/assets/typechain-types/safe/@safe-global/mock-contract/index.ts b/src/assets/typechain-types/safe/@safe-global/mock-contract/index.ts new file mode 100644 index 0000000000..a11e4ca299 --- /dev/null +++ b/src/assets/typechain-types/safe/@safe-global/mock-contract/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/src/assets/typechain-types/safe/common.ts b/src/assets/typechain-types/safe/common.ts new file mode 100644 index 0000000000..2fc40c7fb1 --- /dev/null +++ b/src/assets/typechain-types/safe/common.ts @@ -0,0 +1,44 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { Listener } from "@ethersproject/providers"; +import type { Event, EventFilter } from "ethers"; + +export interface TypedEvent< + TArgsArray extends Array = any, + TArgsObject = any +> extends Event { + args: TArgsArray & TArgsObject; +} + +export interface TypedEventFilter<_TEvent extends TypedEvent> + extends EventFilter {} + +export interface TypedListener { + (...listenerArg: [...__TypechainArgsArray, TEvent]): void; +} + +type __TypechainArgsArray = T extends TypedEvent ? U : never; + +export interface OnEvent { + ( + eventFilter: TypedEventFilter, + listener: TypedListener + ): TRes; + (eventName: string, listener: Listener): TRes; +} + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise; +}; + +export type GetContractTypeFromFactory = F extends MinEthersFactory< + infer C, + any +> + ? C + : never; + +export type GetARGsTypeFromFactory = F extends MinEthersFactory + ? Parameters + : never; diff --git a/src/assets/typechain-types/safe/contracts/Safe.ts b/src/assets/typechain-types/safe/contracts/Safe.ts new file mode 100644 index 0000000000..d67875f00c --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/Safe.ts @@ -0,0 +1,1500 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../common"; + +export interface SafeInterface extends utils.Interface { + functions: { + "VERSION()": FunctionFragment; + "addOwnerWithThreshold(address,uint256)": FunctionFragment; + "approveHash(bytes32)": FunctionFragment; + "approvedHashes(address,bytes32)": FunctionFragment; + "changeThreshold(uint256)": FunctionFragment; + "checkNSignatures(address,bytes32,bytes,uint256)": FunctionFragment; + "checkSignatures(bytes32,bytes,bytes)": FunctionFragment; + "checkSignatures(bytes32,bytes)": FunctionFragment; + "disableModule(address,address)": FunctionFragment; + "domainSeparator()": FunctionFragment; + "enableModule(address)": FunctionFragment; + "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": FunctionFragment; + "execTransactionFromModule(address,uint256,bytes,uint8)": FunctionFragment; + "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": FunctionFragment; + "getModulesPaginated(address,uint256)": FunctionFragment; + "getOwners()": FunctionFragment; + "getStorageAt(uint256,uint256)": FunctionFragment; + "getThreshold()": FunctionFragment; + "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": FunctionFragment; + "isModuleEnabled(address)": FunctionFragment; + "isOwner(address)": FunctionFragment; + "nonce()": FunctionFragment; + "removeOwner(address,address,uint256)": FunctionFragment; + "setFallbackHandler(address)": FunctionFragment; + "setGuard(address)": FunctionFragment; + "setup(address[],uint256,address,bytes,address,address,uint256,address)": FunctionFragment; + "signedMessages(bytes32)": FunctionFragment; + "simulateAndRevert(address,bytes)": FunctionFragment; + "swapOwner(address,address,address)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "VERSION" + | "addOwnerWithThreshold" + | "approveHash" + | "approvedHashes" + | "changeThreshold" + | "checkNSignatures" + | "checkSignatures(bytes32,bytes,bytes)" + | "checkSignatures(bytes32,bytes)" + | "disableModule" + | "domainSeparator" + | "enableModule" + | "execTransaction" + | "execTransactionFromModule" + | "execTransactionFromModuleReturnData" + | "getModulesPaginated" + | "getOwners" + | "getStorageAt" + | "getThreshold" + | "getTransactionHash" + | "isModuleEnabled" + | "isOwner" + | "nonce" + | "removeOwner" + | "setFallbackHandler" + | "setGuard" + | "setup" + | "signedMessages" + | "simulateAndRevert" + | "swapOwner" + ): FunctionFragment; + + encodeFunctionData(functionFragment: "VERSION", values?: undefined): string; + encodeFunctionData( + functionFragment: "addOwnerWithThreshold", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "approveHash", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "approvedHashes", + values: [string, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "changeThreshold", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "checkNSignatures", + values: [string, BytesLike, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "checkSignatures(bytes32,bytes,bytes)", + values: [BytesLike, BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "checkSignatures(bytes32,bytes)", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "disableModule", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "domainSeparator", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "enableModule", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "execTransaction", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BytesLike + ] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModule", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModuleReturnData", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getModulesPaginated", + values: [string, 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: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BigNumberish + ] + ): string; + encodeFunctionData( + functionFragment: "isModuleEnabled", + values: [string] + ): string; + encodeFunctionData(functionFragment: "isOwner", values: [string]): string; + encodeFunctionData(functionFragment: "nonce", values?: undefined): string; + encodeFunctionData( + functionFragment: "removeOwner", + values: [string, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setFallbackHandler", + values: [string] + ): string; + encodeFunctionData(functionFragment: "setGuard", values: [string]): string; + encodeFunctionData( + functionFragment: "setup", + values: [ + string[], + BigNumberish, + string, + BytesLike, + string, + string, + BigNumberish, + string + ] + ): string; + encodeFunctionData( + functionFragment: "signedMessages", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "simulateAndRevert", + values: [string, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "swapOwner", + values: [string, string, string] + ): 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(bytes32,bytes,bytes)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkSignatures(bytes32,bytes)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "disableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "domainSeparator", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "enableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModuleReturnData", + 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; + + events: { + "AddedOwner(address)": EventFragment; + "ApproveHash(bytes32,address)": EventFragment; + "ChangedFallbackHandler(address)": EventFragment; + "ChangedGuard(address)": EventFragment; + "ChangedThreshold(uint256)": EventFragment; + "DisabledModule(address)": EventFragment; + "EnabledModule(address)": EventFragment; + "ExecutionFailure(bytes32,uint256)": EventFragment; + "ExecutionFromModuleFailure(address)": EventFragment; + "ExecutionFromModuleSuccess(address)": EventFragment; + "ExecutionSuccess(bytes32,uint256)": EventFragment; + "RemovedOwner(address)": EventFragment; + "SafeReceived(address,uint256)": EventFragment; + "SafeSetup(address,address[],uint256,address,address)": EventFragment; + "SignMsg(bytes32)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "AddedOwner"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ApproveHash"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedFallbackHandler"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedGuard"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedThreshold"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DisabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "EnabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFailure"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleFailure"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleSuccess"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionSuccess"): EventFragment; + getEvent(nameOrSignatureOrTopic: "RemovedOwner"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SafeReceived"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SafeSetup"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SignMsg"): EventFragment; +} + +export interface AddedOwnerEventObject { + owner: string; +} +export type AddedOwnerEvent = TypedEvent<[string], AddedOwnerEventObject>; + +export type AddedOwnerEventFilter = TypedEventFilter; + +export interface ApproveHashEventObject { + approvedHash: string; + owner: string; +} +export type ApproveHashEvent = TypedEvent< + [string, string], + ApproveHashEventObject +>; + +export type ApproveHashEventFilter = TypedEventFilter; + +export interface ChangedFallbackHandlerEventObject { + handler: string; +} +export type ChangedFallbackHandlerEvent = TypedEvent< + [string], + ChangedFallbackHandlerEventObject +>; + +export type ChangedFallbackHandlerEventFilter = + TypedEventFilter; + +export interface ChangedGuardEventObject { + guard: string; +} +export type ChangedGuardEvent = TypedEvent<[string], ChangedGuardEventObject>; + +export type ChangedGuardEventFilter = TypedEventFilter; + +export interface ChangedThresholdEventObject { + threshold: BigNumber; +} +export type ChangedThresholdEvent = TypedEvent< + [BigNumber], + ChangedThresholdEventObject +>; + +export type ChangedThresholdEventFilter = + TypedEventFilter; + +export interface DisabledModuleEventObject { + module: string; +} +export type DisabledModuleEvent = TypedEvent< + [string], + DisabledModuleEventObject +>; + +export type DisabledModuleEventFilter = TypedEventFilter; + +export interface EnabledModuleEventObject { + module: string; +} +export type EnabledModuleEvent = TypedEvent<[string], EnabledModuleEventObject>; + +export type EnabledModuleEventFilter = TypedEventFilter; + +export interface ExecutionFailureEventObject { + txHash: string; + payment: BigNumber; +} +export type ExecutionFailureEvent = TypedEvent< + [string, BigNumber], + ExecutionFailureEventObject +>; + +export type ExecutionFailureEventFilter = + TypedEventFilter; + +export interface ExecutionFromModuleFailureEventObject { + module: string; +} +export type ExecutionFromModuleFailureEvent = TypedEvent< + [string], + ExecutionFromModuleFailureEventObject +>; + +export type ExecutionFromModuleFailureEventFilter = + TypedEventFilter; + +export interface ExecutionFromModuleSuccessEventObject { + module: string; +} +export type ExecutionFromModuleSuccessEvent = TypedEvent< + [string], + ExecutionFromModuleSuccessEventObject +>; + +export type ExecutionFromModuleSuccessEventFilter = + TypedEventFilter; + +export interface ExecutionSuccessEventObject { + txHash: string; + payment: BigNumber; +} +export type ExecutionSuccessEvent = TypedEvent< + [string, BigNumber], + ExecutionSuccessEventObject +>; + +export type ExecutionSuccessEventFilter = + TypedEventFilter; + +export interface RemovedOwnerEventObject { + owner: string; +} +export type RemovedOwnerEvent = TypedEvent<[string], RemovedOwnerEventObject>; + +export type RemovedOwnerEventFilter = TypedEventFilter; + +export interface SafeReceivedEventObject { + sender: string; + value: BigNumber; +} +export type SafeReceivedEvent = TypedEvent< + [string, BigNumber], + SafeReceivedEventObject +>; + +export type SafeReceivedEventFilter = TypedEventFilter; + +export interface SafeSetupEventObject { + initiator: string; + owners: string[]; + threshold: BigNumber; + initializer: string; + fallbackHandler: string; +} +export type SafeSetupEvent = TypedEvent< + [string, string[], BigNumber, string, string], + SafeSetupEventObject +>; + +export type SafeSetupEventFilter = TypedEventFilter; + +export interface SignMsgEventObject { + msgHash: string; +} +export type SignMsgEvent = TypedEvent<[string], SignMsgEventObject>; + +export type SignMsgEventFilter = TypedEventFilter; + +export interface Safe extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: SafeInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + VERSION(overrides?: CallOverrides): Promise<[string]>; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise<[void]>; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise<[void]>; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise<[void]>; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise<[string]>; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + getOwners(overrides?: CallOverrides): Promise<[string[]]>; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + getThreshold(overrides?: CallOverrides): Promise<[BigNumber]>; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise<[boolean]>; + + isOwner(owner: string, overrides?: CallOverrides): Promise<[boolean]>; + + nonce(overrides?: CallOverrides): Promise<[BigNumber]>; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + getOwners(overrides?: CallOverrides): Promise; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled(module: string, overrides?: CallOverrides): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: CallOverrides + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: CallOverrides + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule(module: string, overrides?: CallOverrides): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise<[boolean, string] & { success: boolean; returnData: string }>; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + getOwners(overrides?: CallOverrides): Promise; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: CallOverrides + ): Promise; + + setGuard(guard: string, overrides?: CallOverrides): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: CallOverrides + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: CallOverrides + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "AddedOwner(address)"(owner?: string | null): AddedOwnerEventFilter; + AddedOwner(owner?: string | null): AddedOwnerEventFilter; + + "ApproveHash(bytes32,address)"( + approvedHash?: BytesLike | null, + owner?: string | null + ): ApproveHashEventFilter; + ApproveHash( + approvedHash?: BytesLike | null, + owner?: string | null + ): ApproveHashEventFilter; + + "ChangedFallbackHandler(address)"( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + ChangedFallbackHandler( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + + "ChangedGuard(address)"(guard?: string | null): ChangedGuardEventFilter; + ChangedGuard(guard?: string | null): ChangedGuardEventFilter; + + "ChangedThreshold(uint256)"(threshold?: null): ChangedThresholdEventFilter; + ChangedThreshold(threshold?: null): ChangedThresholdEventFilter; + + "DisabledModule(address)"( + module?: string | null + ): DisabledModuleEventFilter; + DisabledModule(module?: string | null): DisabledModuleEventFilter; + + "EnabledModule(address)"(module?: string | null): EnabledModuleEventFilter; + EnabledModule(module?: string | null): EnabledModuleEventFilter; + + "ExecutionFailure(bytes32,uint256)"( + txHash?: BytesLike | null, + payment?: null + ): ExecutionFailureEventFilter; + ExecutionFailure( + txHash?: BytesLike | null, + payment?: null + ): ExecutionFailureEventFilter; + + "ExecutionFromModuleFailure(address)"( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + ExecutionFromModuleFailure( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + + "ExecutionFromModuleSuccess(address)"( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + ExecutionFromModuleSuccess( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + + "ExecutionSuccess(bytes32,uint256)"( + txHash?: BytesLike | null, + payment?: null + ): ExecutionSuccessEventFilter; + ExecutionSuccess( + txHash?: BytesLike | null, + payment?: null + ): ExecutionSuccessEventFilter; + + "RemovedOwner(address)"(owner?: string | null): RemovedOwnerEventFilter; + RemovedOwner(owner?: string | null): RemovedOwnerEventFilter; + + "SafeReceived(address,uint256)"( + sender?: string | null, + value?: null + ): SafeReceivedEventFilter; + SafeReceived(sender?: string | null, value?: null): SafeReceivedEventFilter; + + "SafeSetup(address,address[],uint256,address,address)"( + initiator?: string | null, + owners?: null, + threshold?: null, + initializer?: null, + fallbackHandler?: null + ): SafeSetupEventFilter; + SafeSetup( + initiator?: string | null, + owners?: null, + threshold?: null, + initializer?: null, + fallbackHandler?: null + ): SafeSetupEventFilter; + + "SignMsg(bytes32)"(msgHash?: BytesLike | null): SignMsgEventFilter; + SignMsg(msgHash?: BytesLike | null): SignMsgEventFilter; + }; + + estimateGas: { + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + isOwner( + owner: string, + overrides?: CallOverrides + ): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/SafeL2.ts b/src/assets/typechain-types/safe/contracts/SafeL2.ts new file mode 100644 index 0000000000..e6d0e22778 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/SafeL2.ts @@ -0,0 +1,1594 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../common"; + +export interface SafeL2Interface extends utils.Interface { + functions: { + "VERSION()": FunctionFragment; + "addOwnerWithThreshold(address,uint256)": FunctionFragment; + "approveHash(bytes32)": FunctionFragment; + "approvedHashes(address,bytes32)": FunctionFragment; + "changeThreshold(uint256)": FunctionFragment; + "checkNSignatures(address,bytes32,bytes,uint256)": FunctionFragment; + "checkSignatures(bytes32,bytes,bytes)": FunctionFragment; + "checkSignatures(bytes32,bytes)": FunctionFragment; + "disableModule(address,address)": FunctionFragment; + "domainSeparator()": FunctionFragment; + "enableModule(address)": FunctionFragment; + "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": FunctionFragment; + "execTransactionFromModule(address,uint256,bytes,uint8)": FunctionFragment; + "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": FunctionFragment; + "getModulesPaginated(address,uint256)": FunctionFragment; + "getOwners()": FunctionFragment; + "getStorageAt(uint256,uint256)": FunctionFragment; + "getThreshold()": FunctionFragment; + "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": FunctionFragment; + "isModuleEnabled(address)": FunctionFragment; + "isOwner(address)": FunctionFragment; + "nonce()": FunctionFragment; + "removeOwner(address,address,uint256)": FunctionFragment; + "setFallbackHandler(address)": FunctionFragment; + "setGuard(address)": FunctionFragment; + "setup(address[],uint256,address,bytes,address,address,uint256,address)": FunctionFragment; + "signedMessages(bytes32)": FunctionFragment; + "simulateAndRevert(address,bytes)": FunctionFragment; + "swapOwner(address,address,address)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "VERSION" + | "addOwnerWithThreshold" + | "approveHash" + | "approvedHashes" + | "changeThreshold" + | "checkNSignatures" + | "checkSignatures(bytes32,bytes,bytes)" + | "checkSignatures(bytes32,bytes)" + | "disableModule" + | "domainSeparator" + | "enableModule" + | "execTransaction" + | "execTransactionFromModule" + | "execTransactionFromModuleReturnData" + | "getModulesPaginated" + | "getOwners" + | "getStorageAt" + | "getThreshold" + | "getTransactionHash" + | "isModuleEnabled" + | "isOwner" + | "nonce" + | "removeOwner" + | "setFallbackHandler" + | "setGuard" + | "setup" + | "signedMessages" + | "simulateAndRevert" + | "swapOwner" + ): FunctionFragment; + + encodeFunctionData(functionFragment: "VERSION", values?: undefined): string; + encodeFunctionData( + functionFragment: "addOwnerWithThreshold", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "approveHash", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "approvedHashes", + values: [string, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "changeThreshold", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "checkNSignatures", + values: [string, BytesLike, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "checkSignatures(bytes32,bytes,bytes)", + values: [BytesLike, BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "checkSignatures(bytes32,bytes)", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "disableModule", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "domainSeparator", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "enableModule", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "execTransaction", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BytesLike + ] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModule", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModuleReturnData", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getModulesPaginated", + values: [string, 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: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BigNumberish + ] + ): string; + encodeFunctionData( + functionFragment: "isModuleEnabled", + values: [string] + ): string; + encodeFunctionData(functionFragment: "isOwner", values: [string]): string; + encodeFunctionData(functionFragment: "nonce", values?: undefined): string; + encodeFunctionData( + functionFragment: "removeOwner", + values: [string, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setFallbackHandler", + values: [string] + ): string; + encodeFunctionData(functionFragment: "setGuard", values: [string]): string; + encodeFunctionData( + functionFragment: "setup", + values: [ + string[], + BigNumberish, + string, + BytesLike, + string, + string, + BigNumberish, + string + ] + ): string; + encodeFunctionData( + functionFragment: "signedMessages", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "simulateAndRevert", + values: [string, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "swapOwner", + values: [string, string, string] + ): 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(bytes32,bytes,bytes)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkSignatures(bytes32,bytes)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "disableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "domainSeparator", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "enableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModuleReturnData", + 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; + + events: { + "AddedOwner(address)": EventFragment; + "ApproveHash(bytes32,address)": EventFragment; + "ChangedFallbackHandler(address)": EventFragment; + "ChangedGuard(address)": EventFragment; + "ChangedThreshold(uint256)": EventFragment; + "DisabledModule(address)": EventFragment; + "EnabledModule(address)": EventFragment; + "ExecutionFailure(bytes32,uint256)": EventFragment; + "ExecutionFromModuleFailure(address)": EventFragment; + "ExecutionFromModuleSuccess(address)": EventFragment; + "ExecutionSuccess(bytes32,uint256)": EventFragment; + "RemovedOwner(address)": EventFragment; + "SafeModuleTransaction(address,address,uint256,bytes,uint8)": EventFragment; + "SafeMultiSigTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,bytes)": EventFragment; + "SafeReceived(address,uint256)": EventFragment; + "SafeSetup(address,address[],uint256,address,address)": EventFragment; + "SignMsg(bytes32)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "AddedOwner"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ApproveHash"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedFallbackHandler"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedGuard"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedThreshold"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DisabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "EnabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFailure"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleFailure"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleSuccess"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionSuccess"): EventFragment; + getEvent(nameOrSignatureOrTopic: "RemovedOwner"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SafeModuleTransaction"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SafeMultiSigTransaction"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SafeReceived"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SafeSetup"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SignMsg"): EventFragment; +} + +export interface AddedOwnerEventObject { + owner: string; +} +export type AddedOwnerEvent = TypedEvent<[string], AddedOwnerEventObject>; + +export type AddedOwnerEventFilter = TypedEventFilter; + +export interface ApproveHashEventObject { + approvedHash: string; + owner: string; +} +export type ApproveHashEvent = TypedEvent< + [string, string], + ApproveHashEventObject +>; + +export type ApproveHashEventFilter = TypedEventFilter; + +export interface ChangedFallbackHandlerEventObject { + handler: string; +} +export type ChangedFallbackHandlerEvent = TypedEvent< + [string], + ChangedFallbackHandlerEventObject +>; + +export type ChangedFallbackHandlerEventFilter = + TypedEventFilter; + +export interface ChangedGuardEventObject { + guard: string; +} +export type ChangedGuardEvent = TypedEvent<[string], ChangedGuardEventObject>; + +export type ChangedGuardEventFilter = TypedEventFilter; + +export interface ChangedThresholdEventObject { + threshold: BigNumber; +} +export type ChangedThresholdEvent = TypedEvent< + [BigNumber], + ChangedThresholdEventObject +>; + +export type ChangedThresholdEventFilter = + TypedEventFilter; + +export interface DisabledModuleEventObject { + module: string; +} +export type DisabledModuleEvent = TypedEvent< + [string], + DisabledModuleEventObject +>; + +export type DisabledModuleEventFilter = TypedEventFilter; + +export interface EnabledModuleEventObject { + module: string; +} +export type EnabledModuleEvent = TypedEvent<[string], EnabledModuleEventObject>; + +export type EnabledModuleEventFilter = TypedEventFilter; + +export interface ExecutionFailureEventObject { + txHash: string; + payment: BigNumber; +} +export type ExecutionFailureEvent = TypedEvent< + [string, BigNumber], + ExecutionFailureEventObject +>; + +export type ExecutionFailureEventFilter = + TypedEventFilter; + +export interface ExecutionFromModuleFailureEventObject { + module: string; +} +export type ExecutionFromModuleFailureEvent = TypedEvent< + [string], + ExecutionFromModuleFailureEventObject +>; + +export type ExecutionFromModuleFailureEventFilter = + TypedEventFilter; + +export interface ExecutionFromModuleSuccessEventObject { + module: string; +} +export type ExecutionFromModuleSuccessEvent = TypedEvent< + [string], + ExecutionFromModuleSuccessEventObject +>; + +export type ExecutionFromModuleSuccessEventFilter = + TypedEventFilter; + +export interface ExecutionSuccessEventObject { + txHash: string; + payment: BigNumber; +} +export type ExecutionSuccessEvent = TypedEvent< + [string, BigNumber], + ExecutionSuccessEventObject +>; + +export type ExecutionSuccessEventFilter = + TypedEventFilter; + +export interface RemovedOwnerEventObject { + owner: string; +} +export type RemovedOwnerEvent = TypedEvent<[string], RemovedOwnerEventObject>; + +export type RemovedOwnerEventFilter = TypedEventFilter; + +export interface SafeModuleTransactionEventObject { + module: string; + to: string; + value: BigNumber; + data: string; + operation: number; +} +export type SafeModuleTransactionEvent = TypedEvent< + [string, string, BigNumber, string, number], + SafeModuleTransactionEventObject +>; + +export type SafeModuleTransactionEventFilter = + TypedEventFilter; + +export interface SafeMultiSigTransactionEventObject { + to: string; + value: BigNumber; + data: string; + operation: number; + safeTxGas: BigNumber; + baseGas: BigNumber; + gasPrice: BigNumber; + gasToken: string; + refundReceiver: string; + signatures: string; + additionalInfo: string; +} +export type SafeMultiSigTransactionEvent = TypedEvent< + [ + string, + BigNumber, + string, + number, + BigNumber, + BigNumber, + BigNumber, + string, + string, + string, + string + ], + SafeMultiSigTransactionEventObject +>; + +export type SafeMultiSigTransactionEventFilter = + TypedEventFilter; + +export interface SafeReceivedEventObject { + sender: string; + value: BigNumber; +} +export type SafeReceivedEvent = TypedEvent< + [string, BigNumber], + SafeReceivedEventObject +>; + +export type SafeReceivedEventFilter = TypedEventFilter; + +export interface SafeSetupEventObject { + initiator: string; + owners: string[]; + threshold: BigNumber; + initializer: string; + fallbackHandler: string; +} +export type SafeSetupEvent = TypedEvent< + [string, string[], BigNumber, string, string], + SafeSetupEventObject +>; + +export type SafeSetupEventFilter = TypedEventFilter; + +export interface SignMsgEventObject { + msgHash: string; +} +export type SignMsgEvent = TypedEvent<[string], SignMsgEventObject>; + +export type SignMsgEventFilter = TypedEventFilter; + +export interface SafeL2 extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: SafeL2Interface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + VERSION(overrides?: CallOverrides): Promise<[string]>; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise<[void]>; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise<[void]>; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise<[void]>; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise<[string]>; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + getOwners(overrides?: CallOverrides): Promise<[string[]]>; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + getThreshold(overrides?: CallOverrides): Promise<[BigNumber]>; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise<[boolean]>; + + isOwner(owner: string, overrides?: CallOverrides): Promise<[boolean]>; + + nonce(overrides?: CallOverrides): Promise<[BigNumber]>; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + getOwners(overrides?: CallOverrides): Promise; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled(module: string, overrides?: CallOverrides): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: CallOverrides + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: CallOverrides + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule(module: string, overrides?: CallOverrides): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise<[boolean, string] & { success: boolean; returnData: string }>; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + getOwners(overrides?: CallOverrides): Promise; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: CallOverrides + ): Promise; + + setGuard(guard: string, overrides?: CallOverrides): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: CallOverrides + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: CallOverrides + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "AddedOwner(address)"(owner?: string | null): AddedOwnerEventFilter; + AddedOwner(owner?: string | null): AddedOwnerEventFilter; + + "ApproveHash(bytes32,address)"( + approvedHash?: BytesLike | null, + owner?: string | null + ): ApproveHashEventFilter; + ApproveHash( + approvedHash?: BytesLike | null, + owner?: string | null + ): ApproveHashEventFilter; + + "ChangedFallbackHandler(address)"( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + ChangedFallbackHandler( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + + "ChangedGuard(address)"(guard?: string | null): ChangedGuardEventFilter; + ChangedGuard(guard?: string | null): ChangedGuardEventFilter; + + "ChangedThreshold(uint256)"(threshold?: null): ChangedThresholdEventFilter; + ChangedThreshold(threshold?: null): ChangedThresholdEventFilter; + + "DisabledModule(address)"( + module?: string | null + ): DisabledModuleEventFilter; + DisabledModule(module?: string | null): DisabledModuleEventFilter; + + "EnabledModule(address)"(module?: string | null): EnabledModuleEventFilter; + EnabledModule(module?: string | null): EnabledModuleEventFilter; + + "ExecutionFailure(bytes32,uint256)"( + txHash?: BytesLike | null, + payment?: null + ): ExecutionFailureEventFilter; + ExecutionFailure( + txHash?: BytesLike | null, + payment?: null + ): ExecutionFailureEventFilter; + + "ExecutionFromModuleFailure(address)"( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + ExecutionFromModuleFailure( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + + "ExecutionFromModuleSuccess(address)"( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + ExecutionFromModuleSuccess( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + + "ExecutionSuccess(bytes32,uint256)"( + txHash?: BytesLike | null, + payment?: null + ): ExecutionSuccessEventFilter; + ExecutionSuccess( + txHash?: BytesLike | null, + payment?: null + ): ExecutionSuccessEventFilter; + + "RemovedOwner(address)"(owner?: string | null): RemovedOwnerEventFilter; + RemovedOwner(owner?: string | null): RemovedOwnerEventFilter; + + "SafeModuleTransaction(address,address,uint256,bytes,uint8)"( + module?: null, + to?: null, + value?: null, + data?: null, + operation?: null + ): SafeModuleTransactionEventFilter; + SafeModuleTransaction( + module?: null, + to?: null, + value?: null, + data?: null, + operation?: null + ): SafeModuleTransactionEventFilter; + + "SafeMultiSigTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,bytes)"( + to?: null, + value?: null, + data?: null, + operation?: null, + safeTxGas?: null, + baseGas?: null, + gasPrice?: null, + gasToken?: null, + refundReceiver?: null, + signatures?: null, + additionalInfo?: null + ): SafeMultiSigTransactionEventFilter; + SafeMultiSigTransaction( + to?: null, + value?: null, + data?: null, + operation?: null, + safeTxGas?: null, + baseGas?: null, + gasPrice?: null, + gasToken?: null, + refundReceiver?: null, + signatures?: null, + additionalInfo?: null + ): SafeMultiSigTransactionEventFilter; + + "SafeReceived(address,uint256)"( + sender?: string | null, + value?: null + ): SafeReceivedEventFilter; + SafeReceived(sender?: string | null, value?: null): SafeReceivedEventFilter; + + "SafeSetup(address,address[],uint256,address,address)"( + initiator?: string | null, + owners?: null, + threshold?: null, + initializer?: null, + fallbackHandler?: null + ): SafeSetupEventFilter; + SafeSetup( + initiator?: string | null, + owners?: null, + threshold?: null, + initializer?: null, + fallbackHandler?: null + ): SafeSetupEventFilter; + + "SignMsg(bytes32)"(msgHash?: BytesLike | null): SignMsgEventFilter; + SignMsg(msgHash?: BytesLike | null): SignMsgEventFilter; + }; + + estimateGas: { + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + arg0: string, + arg1: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + isOwner( + owner: string, + overrides?: CallOverrides + ): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/accessors/SimulateTxAccessor.ts b/src/assets/typechain-types/safe/contracts/accessors/SimulateTxAccessor.ts new file mode 100644 index 0000000000..4c8077deb0 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/accessors/SimulateTxAccessor.ts @@ -0,0 +1,123 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface SimulateTxAccessorInterface extends utils.Interface { + functions: { + "simulate(address,uint256,bytes,uint8)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "simulate"): FunctionFragment; + + encodeFunctionData( + functionFragment: "simulate", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "simulate", data: BytesLike): Result; + + events: {}; +} + +export interface SimulateTxAccessor extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: SimulateTxAccessorInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + simulate( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + simulate( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + simulate( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise< + [BigNumber, boolean, string] & { + estimate: BigNumber; + success: boolean; + returnData: string; + } + >; + }; + + filters: {}; + + estimateGas: { + simulate( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + simulate( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/accessors/index.ts b/src/assets/typechain-types/safe/contracts/accessors/index.ts new file mode 100644 index 0000000000..89ad454177 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/accessors/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { SimulateTxAccessor } from "./SimulateTxAccessor"; diff --git a/src/assets/typechain-types/safe/contracts/base/FallbackManager.ts b/src/assets/typechain-types/safe/contracts/base/FallbackManager.ts new file mode 100644 index 0000000000..7a5c19d88f --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/base/FallbackManager.ts @@ -0,0 +1,130 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface FallbackManagerInterface extends utils.Interface { + functions: { + "setFallbackHandler(address)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "setFallbackHandler"): FunctionFragment; + + encodeFunctionData( + functionFragment: "setFallbackHandler", + values: [string] + ): string; + + decodeFunctionResult( + functionFragment: "setFallbackHandler", + data: BytesLike + ): Result; + + events: { + "ChangedFallbackHandler(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedFallbackHandler"): EventFragment; +} + +export interface ChangedFallbackHandlerEventObject { + handler: string; +} +export type ChangedFallbackHandlerEvent = TypedEvent< + [string], + ChangedFallbackHandlerEventObject +>; + +export type ChangedFallbackHandlerEventFilter = + TypedEventFilter; + +export interface FallbackManager extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: FallbackManagerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + setFallbackHandler( + handler: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "ChangedFallbackHandler(address)"( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + ChangedFallbackHandler( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + }; + + estimateGas: { + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/BaseGuard.ts b/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/BaseGuard.ts new file mode 100644 index 0000000000..d0c3ad776e --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/BaseGuard.ts @@ -0,0 +1,300 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface BaseGuardInterface extends utils.Interface { + functions: { + "checkAfterExecution(bytes32,bool)": FunctionFragment; + "checkModuleTransaction(address,uint256,bytes,uint8,address)": FunctionFragment; + "checkTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,address)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "checkAfterExecution" + | "checkModuleTransaction" + | "checkTransaction" + | "supportsInterface" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "checkAfterExecution", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "checkModuleTransaction", + values: [string, BigNumberish, BytesLike, BigNumberish, string] + ): string; + encodeFunctionData( + functionFragment: "checkTransaction", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BytesLike, + string + ] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "checkAfterExecution", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkModuleTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + + events: {}; +} + +export interface BaseGuard extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: BaseGuardInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + }; + + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/Guard.ts b/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/Guard.ts new file mode 100644 index 0000000000..ff85a572eb --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/Guard.ts @@ -0,0 +1,300 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface GuardInterface extends utils.Interface { + functions: { + "checkAfterExecution(bytes32,bool)": FunctionFragment; + "checkModuleTransaction(address,uint256,bytes,uint8,address)": FunctionFragment; + "checkTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,address)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "checkAfterExecution" + | "checkModuleTransaction" + | "checkTransaction" + | "supportsInterface" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "checkAfterExecution", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "checkModuleTransaction", + values: [string, BigNumberish, BytesLike, BigNumberish, string] + ): string; + encodeFunctionData( + functionFragment: "checkTransaction", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BytesLike, + string + ] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "checkAfterExecution", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkModuleTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + + events: {}; +} + +export interface Guard extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: GuardInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + }; + + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + checkAfterExecution( + hash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + msgSender: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/GuardManager.ts b/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/GuardManager.ts new file mode 100644 index 0000000000..736824737d --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/GuardManager.ts @@ -0,0 +1,113 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface GuardManagerInterface extends utils.Interface { + functions: { + "setGuard(address)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "setGuard"): FunctionFragment; + + encodeFunctionData(functionFragment: "setGuard", values: [string]): string; + + decodeFunctionResult(functionFragment: "setGuard", data: BytesLike): Result; + + events: { + "ChangedGuard(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedGuard"): EventFragment; +} + +export interface ChangedGuardEventObject { + guard: string; +} +export type ChangedGuardEvent = TypedEvent<[string], ChangedGuardEventObject>; + +export type ChangedGuardEventFilter = TypedEventFilter; + +export interface GuardManager extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: GuardManagerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + setGuard(guard: string, overrides?: CallOverrides): Promise; + }; + + filters: { + "ChangedGuard(address)"(guard?: string | null): ChangedGuardEventFilter; + ChangedGuard(guard?: string | null): ChangedGuardEventFilter; + }; + + estimateGas: { + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/index.ts b/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/index.ts new file mode 100644 index 0000000000..34718be259 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/base/GuardManager.sol/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { BaseGuard } from "./BaseGuard"; +export type { Guard } from "./Guard"; +export type { GuardManager } from "./GuardManager"; diff --git a/src/assets/typechain-types/safe/contracts/base/ModuleManager.ts b/src/assets/typechain-types/safe/contracts/base/ModuleManager.ts new file mode 100644 index 0000000000..11b9afa5e1 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/base/ModuleManager.ts @@ -0,0 +1,430 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface ModuleManagerInterface extends utils.Interface { + functions: { + "disableModule(address,address)": FunctionFragment; + "enableModule(address)": FunctionFragment; + "execTransactionFromModule(address,uint256,bytes,uint8)": FunctionFragment; + "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": FunctionFragment; + "getModulesPaginated(address,uint256)": FunctionFragment; + "isModuleEnabled(address)": FunctionFragment; + "setGuard(address)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "disableModule" + | "enableModule" + | "execTransactionFromModule" + | "execTransactionFromModuleReturnData" + | "getModulesPaginated" + | "isModuleEnabled" + | "setGuard" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "disableModule", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "enableModule", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModule", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModuleReturnData", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getModulesPaginated", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "isModuleEnabled", + values: [string] + ): string; + encodeFunctionData(functionFragment: "setGuard", values: [string]): string; + + decodeFunctionResult( + functionFragment: "disableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "enableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModuleReturnData", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getModulesPaginated", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "isModuleEnabled", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "setGuard", data: BytesLike): Result; + + events: { + "ChangedGuard(address)": EventFragment; + "DisabledModule(address)": EventFragment; + "EnabledModule(address)": EventFragment; + "ExecutionFromModuleFailure(address)": EventFragment; + "ExecutionFromModuleSuccess(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedGuard"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DisabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "EnabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleFailure"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleSuccess"): EventFragment; +} + +export interface ChangedGuardEventObject { + guard: string; +} +export type ChangedGuardEvent = TypedEvent<[string], ChangedGuardEventObject>; + +export type ChangedGuardEventFilter = TypedEventFilter; + +export interface DisabledModuleEventObject { + module: string; +} +export type DisabledModuleEvent = TypedEvent< + [string], + DisabledModuleEventObject +>; + +export type DisabledModuleEventFilter = TypedEventFilter; + +export interface EnabledModuleEventObject { + module: string; +} +export type EnabledModuleEvent = TypedEvent<[string], EnabledModuleEventObject>; + +export type EnabledModuleEventFilter = TypedEventFilter; + +export interface ExecutionFromModuleFailureEventObject { + module: string; +} +export type ExecutionFromModuleFailureEvent = TypedEvent< + [string], + ExecutionFromModuleFailureEventObject +>; + +export type ExecutionFromModuleFailureEventFilter = + TypedEventFilter; + +export interface ExecutionFromModuleSuccessEventObject { + module: string; +} +export type ExecutionFromModuleSuccessEvent = TypedEvent< + [string], + ExecutionFromModuleSuccessEventObject +>; + +export type ExecutionFromModuleSuccessEventFilter = + TypedEventFilter; + +export interface ModuleManager extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ModuleManagerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise<[boolean]>; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + isModuleEnabled(module: string, overrides?: CallOverrides): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + disableModule( + prevModule: string, + module: string, + overrides?: CallOverrides + ): Promise; + + enableModule(module: string, overrides?: CallOverrides): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise<[boolean, string] & { success: boolean; returnData: string }>; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + setGuard(guard: string, overrides?: CallOverrides): Promise; + }; + + filters: { + "ChangedGuard(address)"(guard?: string | null): ChangedGuardEventFilter; + ChangedGuard(guard?: string | null): ChangedGuardEventFilter; + + "DisabledModule(address)"( + module?: string | null + ): DisabledModuleEventFilter; + DisabledModule(module?: string | null): DisabledModuleEventFilter; + + "EnabledModule(address)"(module?: string | null): EnabledModuleEventFilter; + EnabledModule(module?: string | null): EnabledModuleEventFilter; + + "ExecutionFromModuleFailure(address)"( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + ExecutionFromModuleFailure( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + + "ExecutionFromModuleSuccess(address)"( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + ExecutionFromModuleSuccess( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + }; + + estimateGas: { + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/base/OwnerManager.ts b/src/assets/typechain-types/safe/contracts/base/OwnerManager.ts new file mode 100644 index 0000000000..3caf763366 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/base/OwnerManager.ts @@ -0,0 +1,332 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface OwnerManagerInterface extends utils.Interface { + functions: { + "addOwnerWithThreshold(address,uint256)": FunctionFragment; + "changeThreshold(uint256)": FunctionFragment; + "getOwners()": FunctionFragment; + "getThreshold()": FunctionFragment; + "isOwner(address)": FunctionFragment; + "removeOwner(address,address,uint256)": FunctionFragment; + "swapOwner(address,address,address)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "addOwnerWithThreshold" + | "changeThreshold" + | "getOwners" + | "getThreshold" + | "isOwner" + | "removeOwner" + | "swapOwner" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "addOwnerWithThreshold", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "changeThreshold", + values: [BigNumberish] + ): string; + encodeFunctionData(functionFragment: "getOwners", values?: undefined): string; + encodeFunctionData( + functionFragment: "getThreshold", + values?: undefined + ): string; + encodeFunctionData(functionFragment: "isOwner", values: [string]): string; + encodeFunctionData( + functionFragment: "removeOwner", + values: [string, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "swapOwner", + values: [string, string, string] + ): string; + + decodeFunctionResult( + functionFragment: "addOwnerWithThreshold", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "changeThreshold", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "getOwners", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "getThreshold", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "isOwner", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "removeOwner", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "swapOwner", data: BytesLike): Result; + + events: { + "AddedOwner(address)": EventFragment; + "ChangedThreshold(uint256)": EventFragment; + "RemovedOwner(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "AddedOwner"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedThreshold"): EventFragment; + getEvent(nameOrSignatureOrTopic: "RemovedOwner"): EventFragment; +} + +export interface AddedOwnerEventObject { + owner: string; +} +export type AddedOwnerEvent = TypedEvent<[string], AddedOwnerEventObject>; + +export type AddedOwnerEventFilter = TypedEventFilter; + +export interface ChangedThresholdEventObject { + threshold: BigNumber; +} +export type ChangedThresholdEvent = TypedEvent< + [BigNumber], + ChangedThresholdEventObject +>; + +export type ChangedThresholdEventFilter = + TypedEventFilter; + +export interface RemovedOwnerEventObject { + owner: string; +} +export type RemovedOwnerEvent = TypedEvent<[string], RemovedOwnerEventObject>; + +export type RemovedOwnerEventFilter = TypedEventFilter; + +export interface OwnerManager extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: OwnerManagerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getOwners(overrides?: CallOverrides): Promise<[string[]]>; + + getThreshold(overrides?: CallOverrides): Promise<[BigNumber]>; + + isOwner(owner: string, overrides?: CallOverrides): Promise<[boolean]>; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "AddedOwner(address)"(owner?: string | null): AddedOwnerEventFilter; + AddedOwner(owner?: string | null): AddedOwnerEventFilter; + + "ChangedThreshold(uint256)"(threshold?: null): ChangedThresholdEventFilter; + ChangedThreshold(threshold?: null): ChangedThresholdEventFilter; + + "RemovedOwner(address)"(owner?: string | null): RemovedOwnerEventFilter; + RemovedOwner(owner?: string | null): RemovedOwnerEventFilter; + }; + + estimateGas: { + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + isOwner( + owner: string, + overrides?: CallOverrides + ): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/base/index.ts b/src/assets/typechain-types/safe/contracts/base/index.ts new file mode 100644 index 0000000000..16453f096d --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/base/index.ts @@ -0,0 +1,8 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as guardManagerSol from "./GuardManager.sol"; +export type { guardManagerSol }; +export type { FallbackManager } from "./FallbackManager"; +export type { ModuleManager } from "./ModuleManager"; +export type { OwnerManager } from "./OwnerManager"; diff --git a/src/assets/typechain-types/safe/contracts/common/NativeCurrencyPaymentFallback.ts b/src/assets/typechain-types/safe/contracts/common/NativeCurrencyPaymentFallback.ts new file mode 100644 index 0000000000..84cf00cb98 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/common/NativeCurrencyPaymentFallback.ts @@ -0,0 +1,77 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseContract, BigNumber, Signer, utils } from "ethers"; +import type { EventFragment } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface NativeCurrencyPaymentFallbackInterface + extends utils.Interface { + functions: {}; + + events: { + "SafeReceived(address,uint256)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "SafeReceived"): EventFragment; +} + +export interface SafeReceivedEventObject { + sender: string; + value: BigNumber; +} +export type SafeReceivedEvent = TypedEvent< + [string, BigNumber], + SafeReceivedEventObject +>; + +export type SafeReceivedEventFilter = TypedEventFilter; + +export interface NativeCurrencyPaymentFallback extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: NativeCurrencyPaymentFallbackInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: {}; + + callStatic: {}; + + filters: { + "SafeReceived(address,uint256)"( + sender?: string | null, + value?: null + ): SafeReceivedEventFilter; + SafeReceived(sender?: string | null, value?: null): SafeReceivedEventFilter; + }; + + estimateGas: {}; + + populateTransaction: {}; +} diff --git a/src/assets/typechain-types/safe/contracts/common/StorageAccessible.ts b/src/assets/typechain-types/safe/contracts/common/StorageAccessible.ts new file mode 100644 index 0000000000..b991637b48 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/common/StorageAccessible.ts @@ -0,0 +1,151 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface StorageAccessibleInterface extends utils.Interface { + functions: { + "getStorageAt(uint256,uint256)": FunctionFragment; + "simulateAndRevert(address,bytes)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: "getStorageAt" | "simulateAndRevert" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "getStorageAt", + values: [BigNumberish, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "simulateAndRevert", + values: [string, BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "getStorageAt", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "simulateAndRevert", + data: BytesLike + ): Result; + + events: {}; +} + +export interface StorageAccessible extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: StorageAccessibleInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + getStorageAt( + offset: BigNumberish, + length: BigNumberish, + overrides?: CallOverrides + ): Promise; + + simulateAndRevert( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/common/index.ts b/src/assets/typechain-types/safe/contracts/common/index.ts new file mode 100644 index 0000000000..d203cc1f88 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/common/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { NativeCurrencyPaymentFallback } from "./NativeCurrencyPaymentFallback"; +export type { StorageAccessible } from "./StorageAccessible"; diff --git a/src/assets/typechain-types/safe/contracts/examples/guards/DebugTransactionGuard.ts b/src/assets/typechain-types/safe/contracts/examples/guards/DebugTransactionGuard.ts new file mode 100644 index 0000000000..892b6a747f --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/examples/guards/DebugTransactionGuard.ts @@ -0,0 +1,448 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface DebugTransactionGuardInterface extends utils.Interface { + functions: { + "checkAfterExecution(bytes32,bool)": FunctionFragment; + "checkModuleTransaction(address,uint256,bytes,uint8,address)": FunctionFragment; + "checkTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,address)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + "txNonces(bytes32)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "checkAfterExecution" + | "checkModuleTransaction" + | "checkTransaction" + | "supportsInterface" + | "txNonces" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "checkAfterExecution", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "checkModuleTransaction", + values: [string, BigNumberish, BytesLike, BigNumberish, string] + ): string; + encodeFunctionData( + functionFragment: "checkTransaction", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BytesLike, + string + ] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + encodeFunctionData(functionFragment: "txNonces", values: [BytesLike]): string; + + decodeFunctionResult( + functionFragment: "checkAfterExecution", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkModuleTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "txNonces", data: BytesLike): Result; + + events: { + "GasUsage(address,bytes32,uint256,bool)": EventFragment; + "ModuleTransasctionDetails(bytes32,address,uint256,bytes,uint8,address)": EventFragment; + "TransactionDetails(address,bytes32,address,uint256,bytes,uint8,uint256,bool,uint256,bytes,address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "GasUsage"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ModuleTransasctionDetails"): EventFragment; + getEvent(nameOrSignatureOrTopic: "TransactionDetails"): EventFragment; +} + +export interface GasUsageEventObject { + safe: string; + txHash: string; + nonce: BigNumber; + success: boolean; +} +export type GasUsageEvent = TypedEvent< + [string, string, BigNumber, boolean], + GasUsageEventObject +>; + +export type GasUsageEventFilter = TypedEventFilter; + +export interface ModuleTransasctionDetailsEventObject { + txHash: string; + to: string; + value: BigNumber; + data: string; + operation: number; + module: string; +} +export type ModuleTransasctionDetailsEvent = TypedEvent< + [string, string, BigNumber, string, number, string], + ModuleTransasctionDetailsEventObject +>; + +export type ModuleTransasctionDetailsEventFilter = + TypedEventFilter; + +export interface TransactionDetailsEventObject { + safe: string; + txHash: string; + to: string; + value: BigNumber; + data: string; + operation: number; + safeTxGas: BigNumber; + usesRefund: boolean; + nonce: BigNumber; + signatures: string; + executor: string; +} +export type TransactionDetailsEvent = TypedEvent< + [ + string, + string, + string, + BigNumber, + string, + number, + BigNumber, + boolean, + BigNumber, + string, + string + ], + TransactionDetailsEventObject +>; + +export type TransactionDetailsEventFilter = + TypedEventFilter; + +export interface DebugTransactionGuard extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: DebugTransactionGuardInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + checkAfterExecution( + txHash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + executor: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + + txNonces(arg0: BytesLike, overrides?: CallOverrides): Promise<[BigNumber]>; + }; + + checkAfterExecution( + txHash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + executor: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + txNonces(arg0: BytesLike, overrides?: CallOverrides): Promise; + + callStatic: { + checkAfterExecution( + txHash: BytesLike, + success: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + executor: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + txNonces(arg0: BytesLike, overrides?: CallOverrides): Promise; + }; + + filters: { + "GasUsage(address,bytes32,uint256,bool)"( + safe?: string | null, + txHash?: BytesLike | null, + nonce?: BigNumberish | null, + success?: null + ): GasUsageEventFilter; + GasUsage( + safe?: string | null, + txHash?: BytesLike | null, + nonce?: BigNumberish | null, + success?: null + ): GasUsageEventFilter; + + "ModuleTransasctionDetails(bytes32,address,uint256,bytes,uint8,address)"( + txHash?: BytesLike | null, + to?: null, + value?: null, + data?: null, + operation?: null, + module?: null + ): ModuleTransasctionDetailsEventFilter; + ModuleTransasctionDetails( + txHash?: BytesLike | null, + to?: null, + value?: null, + data?: null, + operation?: null, + module?: null + ): ModuleTransasctionDetailsEventFilter; + + "TransactionDetails(address,bytes32,address,uint256,bytes,uint8,uint256,bool,uint256,bytes,address)"( + safe?: string | null, + txHash?: BytesLike | null, + to?: null, + value?: null, + data?: null, + operation?: null, + safeTxGas?: null, + usesRefund?: null, + nonce?: null, + signatures?: null, + executor?: null + ): TransactionDetailsEventFilter; + TransactionDetails( + safe?: string | null, + txHash?: BytesLike | null, + to?: null, + value?: null, + data?: null, + operation?: null, + safeTxGas?: null, + usesRefund?: null, + nonce?: null, + signatures?: null, + executor?: null + ): TransactionDetailsEventFilter; + }; + + estimateGas: { + checkAfterExecution( + txHash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + executor: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + txNonces(arg0: BytesLike, overrides?: CallOverrides): Promise; + }; + + populateTransaction: { + checkAfterExecution( + txHash: BytesLike, + success: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + executor: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + txNonces( + arg0: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/examples/guards/DelegateCallTransactionGuard.ts b/src/assets/typechain-types/safe/contracts/examples/guards/DelegateCallTransactionGuard.ts new file mode 100644 index 0000000000..5960382c0f --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/examples/guards/DelegateCallTransactionGuard.ts @@ -0,0 +1,318 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface DelegateCallTransactionGuardInterface extends utils.Interface { + functions: { + "ALLOWED_TARGET()": FunctionFragment; + "checkAfterExecution(bytes32,bool)": FunctionFragment; + "checkModuleTransaction(address,uint256,bytes,uint8,address)": FunctionFragment; + "checkTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,address)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "ALLOWED_TARGET" + | "checkAfterExecution" + | "checkModuleTransaction" + | "checkTransaction" + | "supportsInterface" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "ALLOWED_TARGET", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "checkAfterExecution", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "checkModuleTransaction", + values: [string, BigNumberish, BytesLike, BigNumberish, string] + ): string; + encodeFunctionData( + functionFragment: "checkTransaction", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BytesLike, + string + ] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "ALLOWED_TARGET", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkAfterExecution", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkModuleTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + + events: {}; +} + +export interface DelegateCallTransactionGuard extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: DelegateCallTransactionGuardInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + ALLOWED_TARGET(overrides?: CallOverrides): Promise<[string]>; + + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise<[void]>; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise<[string] & { moduleTxHash: string }>; + + checkTransaction( + to: string, + arg1: BigNumberish, + arg2: BytesLike, + operation: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: CallOverrides + ): Promise<[void]>; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + }; + + ALLOWED_TARGET(overrides?: CallOverrides): Promise; + + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise; + + checkTransaction( + to: string, + arg1: BigNumberish, + arg2: BytesLike, + operation: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + ALLOWED_TARGET(overrides?: CallOverrides): Promise; + + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise; + + checkTransaction( + to: string, + arg1: BigNumberish, + arg2: BytesLike, + operation: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + ALLOWED_TARGET(overrides?: CallOverrides): Promise; + + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise; + + checkTransaction( + to: string, + arg1: BigNumberish, + arg2: BytesLike, + operation: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + ALLOWED_TARGET(overrides?: CallOverrides): Promise; + + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise; + + checkTransaction( + to: string, + arg1: BigNumberish, + arg2: BytesLike, + operation: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/examples/guards/OnlyOwnersGuard.ts b/src/assets/typechain-types/safe/contracts/examples/guards/OnlyOwnersGuard.ts new file mode 100644 index 0000000000..f0eddafb0a --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/examples/guards/OnlyOwnersGuard.ts @@ -0,0 +1,300 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface OnlyOwnersGuardInterface extends utils.Interface { + functions: { + "checkAfterExecution(bytes32,bool)": FunctionFragment; + "checkModuleTransaction(address,uint256,bytes,uint8,address)": FunctionFragment; + "checkTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,address)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "checkAfterExecution" + | "checkModuleTransaction" + | "checkTransaction" + | "supportsInterface" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "checkAfterExecution", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "checkModuleTransaction", + values: [string, BigNumberish, BytesLike, BigNumberish, string] + ): string; + encodeFunctionData( + functionFragment: "checkTransaction", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BytesLike, + string + ] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "checkAfterExecution", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkModuleTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + + events: {}; +} + +export interface OnlyOwnersGuard extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: OnlyOwnersGuardInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise<[void]>; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + msgSender: string, + overrides?: CallOverrides + ): Promise<[void]>; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + }; + + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + msgSender: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + msgSender: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + msgSender: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + msgSender: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/examples/guards/ReentrancyTransactionGuard.ts b/src/assets/typechain-types/safe/contracts/examples/guards/ReentrancyTransactionGuard.ts new file mode 100644 index 0000000000..f4d184ef21 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/examples/guards/ReentrancyTransactionGuard.ts @@ -0,0 +1,300 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface ReentrancyTransactionGuardInterface extends utils.Interface { + functions: { + "checkAfterExecution(bytes32,bool)": FunctionFragment; + "checkModuleTransaction(address,uint256,bytes,uint8,address)": FunctionFragment; + "checkTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,address)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "checkAfterExecution" + | "checkModuleTransaction" + | "checkTransaction" + | "supportsInterface" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "checkAfterExecution", + values: [BytesLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "checkModuleTransaction", + values: [string, BigNumberish, BytesLike, BigNumberish, string] + ): string; + encodeFunctionData( + functionFragment: "checkTransaction", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BytesLike, + string + ] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "checkAfterExecution", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkModuleTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + + events: {}; +} + +export interface ReentrancyTransactionGuard extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ReentrancyTransactionGuardInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + }; + + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: CallOverrides + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: CallOverrides + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + checkAfterExecution( + arg0: BytesLike, + arg1: boolean, + overrides?: Overrides & { from?: string } + ): Promise; + + checkModuleTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + checkTransaction( + arg0: string, + arg1: BigNumberish, + arg2: BytesLike, + arg3: BigNumberish, + arg4: BigNumberish, + arg5: BigNumberish, + arg6: BigNumberish, + arg7: string, + arg8: string, + arg9: BytesLike, + arg10: string, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/examples/guards/index.ts b/src/assets/typechain-types/safe/contracts/examples/guards/index.ts new file mode 100644 index 0000000000..2c6fc79f9a --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/examples/guards/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { DebugTransactionGuard } from "./DebugTransactionGuard"; +export type { DelegateCallTransactionGuard } from "./DelegateCallTransactionGuard"; +export type { OnlyOwnersGuard } from "./OnlyOwnersGuard"; +export type { ReentrancyTransactionGuard } from "./ReentrancyTransactionGuard"; diff --git a/src/assets/typechain-types/safe/contracts/examples/index.ts b/src/assets/typechain-types/safe/contracts/examples/index.ts new file mode 100644 index 0000000000..f2c2d67da9 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/examples/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as guards from "./guards"; +export type { guards }; +import type * as libraries from "./libraries"; +export type { libraries }; diff --git a/src/assets/typechain-types/safe/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/Migration.ts b/src/assets/typechain-types/safe/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/Migration.ts new file mode 100644 index 0000000000..b6824f2c05 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/Migration.ts @@ -0,0 +1,160 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../../common"; + +export interface MigrationInterface extends utils.Interface { + functions: { + "MIGRATION_SINGLETON()": FunctionFragment; + "SAFE_120_SINGLETON()": FunctionFragment; + "migrate()": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "MIGRATION_SINGLETON" + | "SAFE_120_SINGLETON" + | "migrate" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "MIGRATION_SINGLETON", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "SAFE_120_SINGLETON", + values?: undefined + ): string; + encodeFunctionData(functionFragment: "migrate", values?: undefined): string; + + decodeFunctionResult( + functionFragment: "MIGRATION_SINGLETON", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "SAFE_120_SINGLETON", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "migrate", data: BytesLike): Result; + + events: { + "ChangedMasterCopy(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedMasterCopy"): EventFragment; +} + +export interface ChangedMasterCopyEventObject { + singleton: string; +} +export type ChangedMasterCopyEvent = TypedEvent< + [string], + ChangedMasterCopyEventObject +>; + +export type ChangedMasterCopyEventFilter = + TypedEventFilter; + +export interface Migration extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: MigrationInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + MIGRATION_SINGLETON(overrides?: CallOverrides): Promise<[string]>; + + SAFE_120_SINGLETON(overrides?: CallOverrides): Promise<[string]>; + + migrate( + overrides?: Overrides & { from?: string } + ): Promise; + }; + + MIGRATION_SINGLETON(overrides?: CallOverrides): Promise; + + SAFE_120_SINGLETON(overrides?: CallOverrides): Promise; + + migrate( + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + MIGRATION_SINGLETON(overrides?: CallOverrides): Promise; + + SAFE_120_SINGLETON(overrides?: CallOverrides): Promise; + + migrate(overrides?: CallOverrides): Promise; + }; + + filters: { + "ChangedMasterCopy(address)"( + singleton?: null + ): ChangedMasterCopyEventFilter; + ChangedMasterCopy(singleton?: null): ChangedMasterCopyEventFilter; + }; + + estimateGas: { + MIGRATION_SINGLETON(overrides?: CallOverrides): Promise; + + SAFE_120_SINGLETON(overrides?: CallOverrides): Promise; + + migrate(overrides?: Overrides & { from?: string }): Promise; + }; + + populateTransaction: { + MIGRATION_SINGLETON( + overrides?: CallOverrides + ): Promise; + + SAFE_120_SINGLETON( + overrides?: CallOverrides + ): Promise; + + migrate( + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/index.ts b/src/assets/typechain-types/safe/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/index.ts new file mode 100644 index 0000000000..baa8b836c7 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Migration } from "./Migration"; diff --git a/src/assets/typechain-types/safe/contracts/examples/libraries/index.ts b/src/assets/typechain-types/safe/contracts/examples/libraries/index.ts new file mode 100644 index 0000000000..0900e3b560 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/examples/libraries/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as migrate130To120Sol from "./Migrate_1_3_0_to_1_2_0.sol"; +export type { migrate130To120Sol }; diff --git a/src/assets/typechain-types/safe/contracts/handler/CompatibilityFallbackHandler.ts b/src/assets/typechain-types/safe/contracts/handler/CompatibilityFallbackHandler.ts new file mode 100644 index 0000000000..317f149cdb --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/handler/CompatibilityFallbackHandler.ts @@ -0,0 +1,587 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface CompatibilityFallbackHandlerInterface extends utils.Interface { + functions: { + "checkNSignatures(bytes32,bytes,bytes,uint256)": FunctionFragment; + "encodeMessageDataForSafe(address,bytes)": FunctionFragment; + "getMessageHash(bytes)": FunctionFragment; + "getMessageHashForSafe(address,bytes)": FunctionFragment; + "getModules()": FunctionFragment; + "isValidSignature(bytes32,bytes)": FunctionFragment; + "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": FunctionFragment; + "onERC1155Received(address,address,uint256,uint256,bytes)": FunctionFragment; + "onERC721Received(address,address,uint256,bytes)": FunctionFragment; + "simulate(address,bytes)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + "tokensReceived(address,address,address,uint256,bytes,bytes)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "checkNSignatures" + | "encodeMessageDataForSafe" + | "getMessageHash" + | "getMessageHashForSafe" + | "getModules" + | "isValidSignature" + | "onERC1155BatchReceived" + | "onERC1155Received" + | "onERC721Received" + | "simulate" + | "supportsInterface" + | "tokensReceived" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "checkNSignatures", + values: [BytesLike, BytesLike, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "encodeMessageDataForSafe", + values: [string, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "getMessageHash", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "getMessageHashForSafe", + values: [string, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "getModules", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "isValidSignature", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "onERC1155BatchReceived", + values: [string, string, BigNumberish[], BigNumberish[], BytesLike] + ): string; + encodeFunctionData( + functionFragment: "onERC1155Received", + values: [string, string, BigNumberish, BigNumberish, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "onERC721Received", + values: [string, string, BigNumberish, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "simulate", + values: [string, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "tokensReceived", + values: [string, string, string, BigNumberish, BytesLike, BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "checkNSignatures", + data: BytesLike + ): Result; + 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", + 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; + + events: {}; +} + +export interface CompatibilityFallbackHandler extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: CompatibilityFallbackHandlerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + checkNSignatures( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise<[void]>; + + encodeMessageDataForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + getMessageHashForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + getModules(overrides?: CallOverrides): Promise<[string[]]>; + + isValidSignature( + _dataHash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise<[void]>; + }; + + checkNSignatures( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + encodeMessageDataForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getMessageHashForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getModules(overrides?: CallOverrides): Promise; + + isValidSignature( + _dataHash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + checkNSignatures( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + encodeMessageDataForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getMessageHashForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getModules(overrides?: CallOverrides): Promise; + + isValidSignature( + _dataHash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + checkNSignatures( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + encodeMessageDataForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getMessageHashForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getModules(overrides?: CallOverrides): Promise; + + isValidSignature( + _dataHash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + checkNSignatures( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + encodeMessageDataForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getMessageHashForSafe( + safe: string, + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + getModules(overrides?: CallOverrides): Promise; + + isValidSignature( + _dataHash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise; + + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/handler/TokenCallbackHandler.ts b/src/assets/typechain-types/safe/contracts/handler/TokenCallbackHandler.ts new file mode 100644 index 0000000000..8a0c9fda20 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/handler/TokenCallbackHandler.ts @@ -0,0 +1,326 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface TokenCallbackHandlerInterface extends utils.Interface { + functions: { + "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": FunctionFragment; + "onERC1155Received(address,address,uint256,uint256,bytes)": FunctionFragment; + "onERC721Received(address,address,uint256,bytes)": FunctionFragment; + "supportsInterface(bytes4)": FunctionFragment; + "tokensReceived(address,address,address,uint256,bytes,bytes)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "onERC1155BatchReceived" + | "onERC1155Received" + | "onERC721Received" + | "supportsInterface" + | "tokensReceived" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "onERC1155BatchReceived", + values: [string, string, BigNumberish[], BigNumberish[], BytesLike] + ): string; + encodeFunctionData( + functionFragment: "onERC1155Received", + values: [string, string, BigNumberish, BigNumberish, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "onERC721Received", + values: [string, string, BigNumberish, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "tokensReceived", + values: [string, string, string, BigNumberish, BytesLike, BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "onERC1155BatchReceived", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "onERC1155Received", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "onERC721Received", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "tokensReceived", + data: BytesLike + ): Result; + + events: {}; +} + +export interface TokenCallbackHandler extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: TokenCallbackHandlerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise<[void]>; + }; + + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + onERC1155BatchReceived( + arg0: string, + arg1: string, + arg2: BigNumberish[], + arg3: BigNumberish[], + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BigNumberish, + arg4: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC721Received( + arg0: string, + arg1: string, + arg2: BigNumberish, + arg3: BytesLike, + overrides?: CallOverrides + ): Promise; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + tokensReceived( + arg0: string, + arg1: string, + arg2: string, + arg3: BigNumberish, + arg4: BytesLike, + arg5: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/handler/index.ts b/src/assets/typechain-types/safe/contracts/handler/index.ts new file mode 100644 index 0000000000..f910e56eb1 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/handler/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { CompatibilityFallbackHandler } from "./CompatibilityFallbackHandler"; +export type { TokenCallbackHandler } from "./TokenCallbackHandler"; diff --git a/src/assets/typechain-types/safe/contracts/index.ts b/src/assets/typechain-types/safe/contracts/index.ts new file mode 100644 index 0000000000..a3eadb7f29 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/index.ts @@ -0,0 +1,23 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as accessors from "./accessors"; +export type { accessors }; +import type * as base from "./base"; +export type { base }; +import type * as common from "./common"; +export type { common }; +import type * as examples from "./examples"; +export type { examples }; +import type * as handler from "./handler"; +export type { handler }; +import type * as interfaces from "./interfaces"; +export type { interfaces }; +import type * as libraries from "./libraries"; +export type { libraries }; +import type * as proxies from "./proxies"; +export type { proxies }; +import type * as test from "./test"; +export type { test }; +export type { Safe } from "./Safe"; +export type { SafeL2 } from "./SafeL2"; diff --git a/src/assets/typechain-types/safe/contracts/interfaces/ERC1155TokenReceiver.ts b/src/assets/typechain-types/safe/contracts/interfaces/ERC1155TokenReceiver.ts new file mode 100644 index 0000000000..463d705a88 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/ERC1155TokenReceiver.ts @@ -0,0 +1,181 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface ERC1155TokenReceiverInterface extends utils.Interface { + functions: { + "onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)": FunctionFragment; + "onERC1155Received(address,address,uint256,uint256,bytes)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: "onERC1155BatchReceived" | "onERC1155Received" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "onERC1155BatchReceived", + values: [string, string, BigNumberish[], BigNumberish[], BytesLike] + ): string; + encodeFunctionData( + functionFragment: "onERC1155Received", + values: [string, string, BigNumberish, BigNumberish, BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "onERC1155BatchReceived", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "onERC1155Received", + data: BytesLike + ): Result; + + events: {}; +} + +export interface ERC1155TokenReceiver extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ERC1155TokenReceiverInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + onERC1155BatchReceived( + _operator: string, + _from: string, + _ids: BigNumberish[], + _values: BigNumberish[], + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + onERC1155Received( + _operator: string, + _from: string, + _id: BigNumberish, + _value: BigNumberish, + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + onERC1155BatchReceived( + _operator: string, + _from: string, + _ids: BigNumberish[], + _values: BigNumberish[], + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + onERC1155Received( + _operator: string, + _from: string, + _id: BigNumberish, + _value: BigNumberish, + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + onERC1155BatchReceived( + _operator: string, + _from: string, + _ids: BigNumberish[], + _values: BigNumberish[], + _data: BytesLike, + overrides?: CallOverrides + ): Promise; + + onERC1155Received( + _operator: string, + _from: string, + _id: BigNumberish, + _value: BigNumberish, + _data: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + onERC1155BatchReceived( + _operator: string, + _from: string, + _ids: BigNumberish[], + _values: BigNumberish[], + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + onERC1155Received( + _operator: string, + _from: string, + _id: BigNumberish, + _value: BigNumberish, + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + onERC1155BatchReceived( + _operator: string, + _from: string, + _ids: BigNumberish[], + _values: BigNumberish[], + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + onERC1155Received( + _operator: string, + _from: string, + _id: BigNumberish, + _value: BigNumberish, + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/ERC721TokenReceiver.ts b/src/assets/typechain-types/safe/contracts/interfaces/ERC721TokenReceiver.ts new file mode 100644 index 0000000000..3d9a432d2d --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/ERC721TokenReceiver.ts @@ -0,0 +1,120 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface ERC721TokenReceiverInterface extends utils.Interface { + functions: { + "onERC721Received(address,address,uint256,bytes)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "onERC721Received"): FunctionFragment; + + encodeFunctionData( + functionFragment: "onERC721Received", + values: [string, string, BigNumberish, BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "onERC721Received", + data: BytesLike + ): Result; + + events: {}; +} + +export interface ERC721TokenReceiver extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ERC721TokenReceiverInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + onERC721Received( + _operator: string, + _from: string, + _tokenId: BigNumberish, + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + onERC721Received( + _operator: string, + _from: string, + _tokenId: BigNumberish, + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + onERC721Received( + _operator: string, + _from: string, + _tokenId: BigNumberish, + _data: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + onERC721Received( + _operator: string, + _from: string, + _tokenId: BigNumberish, + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + onERC721Received( + _operator: string, + _from: string, + _tokenId: BigNumberish, + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/ERC777TokensRecipient.ts b/src/assets/typechain-types/safe/contracts/interfaces/ERC777TokensRecipient.ts new file mode 100644 index 0000000000..642836ff04 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/ERC777TokensRecipient.ts @@ -0,0 +1,130 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface ERC777TokensRecipientInterface extends utils.Interface { + functions: { + "tokensReceived(address,address,address,uint256,bytes,bytes)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "tokensReceived"): FunctionFragment; + + encodeFunctionData( + functionFragment: "tokensReceived", + values: [string, string, string, BigNumberish, BytesLike, BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "tokensReceived", + data: BytesLike + ): Result; + + events: {}; +} + +export interface ERC777TokensRecipient extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ERC777TokensRecipientInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + tokensReceived( + operator: string, + from: string, + to: string, + amount: BigNumberish, + data: BytesLike, + operatorData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + tokensReceived( + operator: string, + from: string, + to: string, + amount: BigNumberish, + data: BytesLike, + operatorData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + tokensReceived( + operator: string, + from: string, + to: string, + amount: BigNumberish, + data: BytesLike, + operatorData: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + tokensReceived( + operator: string, + from: string, + to: string, + amount: BigNumberish, + data: BytesLike, + operatorData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + tokensReceived( + operator: string, + from: string, + to: string, + amount: BigNumberish, + data: BytesLike, + operatorData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/IERC165.ts b/src/assets/typechain-types/safe/contracts/interfaces/IERC165.ts new file mode 100644 index 0000000000..b87da8229e --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/IERC165.ts @@ -0,0 +1,102 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface IERC165Interface extends utils.Interface { + functions: { + "supportsInterface(bytes4)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "supportsInterface"): FunctionFragment; + + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + + events: {}; +} + +export interface IERC165 extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IERC165Interface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean]>; + }; + + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + supportsInterface( + interfaceId: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/IFallbackManager.ts b/src/assets/typechain-types/safe/contracts/interfaces/IFallbackManager.ts new file mode 100644 index 0000000000..ff2ffd6b12 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/IFallbackManager.ts @@ -0,0 +1,130 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface IFallbackManagerInterface extends utils.Interface { + functions: { + "setFallbackHandler(address)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "setFallbackHandler"): FunctionFragment; + + encodeFunctionData( + functionFragment: "setFallbackHandler", + values: [string] + ): string; + + decodeFunctionResult( + functionFragment: "setFallbackHandler", + data: BytesLike + ): Result; + + events: { + "ChangedFallbackHandler(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedFallbackHandler"): EventFragment; +} + +export interface ChangedFallbackHandlerEventObject { + handler: string; +} +export type ChangedFallbackHandlerEvent = TypedEvent< + [string], + ChangedFallbackHandlerEventObject +>; + +export type ChangedFallbackHandlerEventFilter = + TypedEventFilter; + +export interface IFallbackManager extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IFallbackManagerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + setFallbackHandler( + handler: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "ChangedFallbackHandler(address)"( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + ChangedFallbackHandler( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + }; + + estimateGas: { + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/IGuardManager.ts b/src/assets/typechain-types/safe/contracts/interfaces/IGuardManager.ts new file mode 100644 index 0000000000..c541c332be --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/IGuardManager.ts @@ -0,0 +1,113 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface IGuardManagerInterface extends utils.Interface { + functions: { + "setGuard(address)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "setGuard"): FunctionFragment; + + encodeFunctionData(functionFragment: "setGuard", values: [string]): string; + + decodeFunctionResult(functionFragment: "setGuard", data: BytesLike): Result; + + events: { + "ChangedGuard(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedGuard"): EventFragment; +} + +export interface ChangedGuardEventObject { + guard: string; +} +export type ChangedGuardEvent = TypedEvent<[string], ChangedGuardEventObject>; + +export type ChangedGuardEventFilter = TypedEventFilter; + +export interface IGuardManager extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IGuardManagerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + setGuard(guard: string, overrides?: CallOverrides): Promise; + }; + + filters: { + "ChangedGuard(address)"(guard?: string | null): ChangedGuardEventFilter; + ChangedGuard(guard?: string | null): ChangedGuardEventFilter; + }; + + estimateGas: { + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/IModuleManager.ts b/src/assets/typechain-types/safe/contracts/interfaces/IModuleManager.ts new file mode 100644 index 0000000000..82f0ea65b6 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/IModuleManager.ts @@ -0,0 +1,430 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface IModuleManagerInterface extends utils.Interface { + functions: { + "disableModule(address,address)": FunctionFragment; + "enableModule(address)": FunctionFragment; + "execTransactionFromModule(address,uint256,bytes,uint8)": FunctionFragment; + "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": FunctionFragment; + "getModulesPaginated(address,uint256)": FunctionFragment; + "isModuleEnabled(address)": FunctionFragment; + "setGuard(address)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "disableModule" + | "enableModule" + | "execTransactionFromModule" + | "execTransactionFromModuleReturnData" + | "getModulesPaginated" + | "isModuleEnabled" + | "setGuard" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "disableModule", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "enableModule", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModule", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModuleReturnData", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getModulesPaginated", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "isModuleEnabled", + values: [string] + ): string; + encodeFunctionData(functionFragment: "setGuard", values: [string]): string; + + decodeFunctionResult( + functionFragment: "disableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "enableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModuleReturnData", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getModulesPaginated", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "isModuleEnabled", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "setGuard", data: BytesLike): Result; + + events: { + "ChangedGuard(address)": EventFragment; + "DisabledModule(address)": EventFragment; + "EnabledModule(address)": EventFragment; + "ExecutionFromModuleFailure(address)": EventFragment; + "ExecutionFromModuleSuccess(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedGuard"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DisabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "EnabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleFailure"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleSuccess"): EventFragment; +} + +export interface ChangedGuardEventObject { + guard: string; +} +export type ChangedGuardEvent = TypedEvent<[string], ChangedGuardEventObject>; + +export type ChangedGuardEventFilter = TypedEventFilter; + +export interface DisabledModuleEventObject { + module: string; +} +export type DisabledModuleEvent = TypedEvent< + [string], + DisabledModuleEventObject +>; + +export type DisabledModuleEventFilter = TypedEventFilter; + +export interface EnabledModuleEventObject { + module: string; +} +export type EnabledModuleEvent = TypedEvent<[string], EnabledModuleEventObject>; + +export type EnabledModuleEventFilter = TypedEventFilter; + +export interface ExecutionFromModuleFailureEventObject { + module: string; +} +export type ExecutionFromModuleFailureEvent = TypedEvent< + [string], + ExecutionFromModuleFailureEventObject +>; + +export type ExecutionFromModuleFailureEventFilter = + TypedEventFilter; + +export interface ExecutionFromModuleSuccessEventObject { + module: string; +} +export type ExecutionFromModuleSuccessEvent = TypedEvent< + [string], + ExecutionFromModuleSuccessEventObject +>; + +export type ExecutionFromModuleSuccessEventFilter = + TypedEventFilter; + +export interface IModuleManager extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IModuleManagerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise<[boolean]>; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + isModuleEnabled(module: string, overrides?: CallOverrides): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + disableModule( + prevModule: string, + module: string, + overrides?: CallOverrides + ): Promise; + + enableModule(module: string, overrides?: CallOverrides): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise<[boolean, string] & { success: boolean; returnData: string }>; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + setGuard(guard: string, overrides?: CallOverrides): Promise; + }; + + filters: { + "ChangedGuard(address)"(guard?: string | null): ChangedGuardEventFilter; + ChangedGuard(guard?: string | null): ChangedGuardEventFilter; + + "DisabledModule(address)"( + module?: string | null + ): DisabledModuleEventFilter; + DisabledModule(module?: string | null): DisabledModuleEventFilter; + + "EnabledModule(address)"(module?: string | null): EnabledModuleEventFilter; + EnabledModule(module?: string | null): EnabledModuleEventFilter; + + "ExecutionFromModuleFailure(address)"( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + ExecutionFromModuleFailure( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + + "ExecutionFromModuleSuccess(address)"( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + ExecutionFromModuleSuccess( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + }; + + estimateGas: { + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/IOwnerManager.ts b/src/assets/typechain-types/safe/contracts/interfaces/IOwnerManager.ts new file mode 100644 index 0000000000..a4c08f56da --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/IOwnerManager.ts @@ -0,0 +1,332 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface IOwnerManagerInterface extends utils.Interface { + functions: { + "addOwnerWithThreshold(address,uint256)": FunctionFragment; + "changeThreshold(uint256)": FunctionFragment; + "getOwners()": FunctionFragment; + "getThreshold()": FunctionFragment; + "isOwner(address)": FunctionFragment; + "removeOwner(address,address,uint256)": FunctionFragment; + "swapOwner(address,address,address)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "addOwnerWithThreshold" + | "changeThreshold" + | "getOwners" + | "getThreshold" + | "isOwner" + | "removeOwner" + | "swapOwner" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "addOwnerWithThreshold", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "changeThreshold", + values: [BigNumberish] + ): string; + encodeFunctionData(functionFragment: "getOwners", values?: undefined): string; + encodeFunctionData( + functionFragment: "getThreshold", + values?: undefined + ): string; + encodeFunctionData(functionFragment: "isOwner", values: [string]): string; + encodeFunctionData( + functionFragment: "removeOwner", + values: [string, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "swapOwner", + values: [string, string, string] + ): string; + + decodeFunctionResult( + functionFragment: "addOwnerWithThreshold", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "changeThreshold", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "getOwners", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "getThreshold", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "isOwner", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "removeOwner", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "swapOwner", data: BytesLike): Result; + + events: { + "AddedOwner(address)": EventFragment; + "ChangedThreshold(uint256)": EventFragment; + "RemovedOwner(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "AddedOwner"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedThreshold"): EventFragment; + getEvent(nameOrSignatureOrTopic: "RemovedOwner"): EventFragment; +} + +export interface AddedOwnerEventObject { + owner: string; +} +export type AddedOwnerEvent = TypedEvent<[string], AddedOwnerEventObject>; + +export type AddedOwnerEventFilter = TypedEventFilter; + +export interface ChangedThresholdEventObject { + threshold: BigNumber; +} +export type ChangedThresholdEvent = TypedEvent< + [BigNumber], + ChangedThresholdEventObject +>; + +export type ChangedThresholdEventFilter = + TypedEventFilter; + +export interface RemovedOwnerEventObject { + owner: string; +} +export type RemovedOwnerEvent = TypedEvent<[string], RemovedOwnerEventObject>; + +export type RemovedOwnerEventFilter = TypedEventFilter; + +export interface IOwnerManager extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IOwnerManagerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getOwners(overrides?: CallOverrides): Promise<[string[]]>; + + getThreshold(overrides?: CallOverrides): Promise<[BigNumber]>; + + isOwner(owner: string, overrides?: CallOverrides): Promise<[boolean]>; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "AddedOwner(address)"(owner?: string | null): AddedOwnerEventFilter; + AddedOwner(owner?: string | null): AddedOwnerEventFilter; + + "ChangedThreshold(uint256)"(threshold?: null): ChangedThresholdEventFilter; + ChangedThreshold(threshold?: null): ChangedThresholdEventFilter; + + "RemovedOwner(address)"(owner?: string | null): RemovedOwnerEventFilter; + RemovedOwner(owner?: string | null): RemovedOwnerEventFilter; + }; + + estimateGas: { + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + isOwner( + owner: string, + overrides?: CallOverrides + ): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/ISafe.ts b/src/assets/typechain-types/safe/contracts/interfaces/ISafe.ts new file mode 100644 index 0000000000..9ce75f1ff1 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/ISafe.ts @@ -0,0 +1,1401 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface ISafeInterface extends utils.Interface { + functions: { + "VERSION()": FunctionFragment; + "addOwnerWithThreshold(address,uint256)": FunctionFragment; + "approveHash(bytes32)": FunctionFragment; + "approvedHashes(address,bytes32)": FunctionFragment; + "changeThreshold(uint256)": FunctionFragment; + "checkNSignatures(address,bytes32,bytes,uint256)": FunctionFragment; + "checkSignatures(bytes32,bytes,bytes)": FunctionFragment; + "checkSignatures(bytes32,bytes)": FunctionFragment; + "disableModule(address,address)": FunctionFragment; + "domainSeparator()": FunctionFragment; + "enableModule(address)": FunctionFragment; + "execTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes)": FunctionFragment; + "execTransactionFromModule(address,uint256,bytes,uint8)": FunctionFragment; + "execTransactionFromModuleReturnData(address,uint256,bytes,uint8)": FunctionFragment; + "getModulesPaginated(address,uint256)": FunctionFragment; + "getOwners()": FunctionFragment; + "getThreshold()": FunctionFragment; + "getTransactionHash(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,uint256)": FunctionFragment; + "isModuleEnabled(address)": FunctionFragment; + "isOwner(address)": FunctionFragment; + "nonce()": FunctionFragment; + "removeOwner(address,address,uint256)": FunctionFragment; + "setFallbackHandler(address)": FunctionFragment; + "setGuard(address)": FunctionFragment; + "setup(address[],uint256,address,bytes,address,address,uint256,address)": FunctionFragment; + "signedMessages(bytes32)": FunctionFragment; + "swapOwner(address,address,address)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "VERSION" + | "addOwnerWithThreshold" + | "approveHash" + | "approvedHashes" + | "changeThreshold" + | "checkNSignatures" + | "checkSignatures(bytes32,bytes,bytes)" + | "checkSignatures(bytes32,bytes)" + | "disableModule" + | "domainSeparator" + | "enableModule" + | "execTransaction" + | "execTransactionFromModule" + | "execTransactionFromModuleReturnData" + | "getModulesPaginated" + | "getOwners" + | "getThreshold" + | "getTransactionHash" + | "isModuleEnabled" + | "isOwner" + | "nonce" + | "removeOwner" + | "setFallbackHandler" + | "setGuard" + | "setup" + | "signedMessages" + | "swapOwner" + ): FunctionFragment; + + encodeFunctionData(functionFragment: "VERSION", values?: undefined): string; + encodeFunctionData( + functionFragment: "addOwnerWithThreshold", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "approveHash", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "approvedHashes", + values: [string, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "changeThreshold", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "checkNSignatures", + values: [string, BytesLike, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "checkSignatures(bytes32,bytes,bytes)", + values: [BytesLike, BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "checkSignatures(bytes32,bytes)", + values: [BytesLike, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "disableModule", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "domainSeparator", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "enableModule", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "execTransaction", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BytesLike + ] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModule", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModuleReturnData", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "getModulesPaginated", + values: [string, BigNumberish] + ): string; + encodeFunctionData(functionFragment: "getOwners", values?: undefined): string; + encodeFunctionData( + functionFragment: "getThreshold", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "getTransactionHash", + values: [ + string, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + string, + string, + BigNumberish + ] + ): string; + encodeFunctionData( + functionFragment: "isModuleEnabled", + values: [string] + ): string; + encodeFunctionData(functionFragment: "isOwner", values: [string]): string; + encodeFunctionData(functionFragment: "nonce", values?: undefined): string; + encodeFunctionData( + functionFragment: "removeOwner", + values: [string, string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "setFallbackHandler", + values: [string] + ): string; + encodeFunctionData(functionFragment: "setGuard", values: [string]): string; + encodeFunctionData( + functionFragment: "setup", + values: [ + string[], + BigNumberish, + string, + BytesLike, + string, + string, + BigNumberish, + string + ] + ): string; + encodeFunctionData( + functionFragment: "signedMessages", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "swapOwner", + values: [string, string, string] + ): 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(bytes32,bytes,bytes)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "checkSignatures(bytes32,bytes)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "disableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "domainSeparator", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "enableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModuleReturnData", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "getModulesPaginated", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "getOwners", 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: "swapOwner", data: BytesLike): Result; + + events: { + "AddedOwner(address)": EventFragment; + "ApproveHash(bytes32,address)": EventFragment; + "ChangedFallbackHandler(address)": EventFragment; + "ChangedGuard(address)": EventFragment; + "ChangedThreshold(uint256)": EventFragment; + "DisabledModule(address)": EventFragment; + "EnabledModule(address)": EventFragment; + "ExecutionFailure(bytes32,uint256)": EventFragment; + "ExecutionFromModuleFailure(address)": EventFragment; + "ExecutionFromModuleSuccess(address)": EventFragment; + "ExecutionSuccess(bytes32,uint256)": EventFragment; + "RemovedOwner(address)": EventFragment; + "SafeSetup(address,address[],uint256,address,address)": EventFragment; + "SignMsg(bytes32)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "AddedOwner"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ApproveHash"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedFallbackHandler"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedGuard"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ChangedThreshold"): EventFragment; + getEvent(nameOrSignatureOrTopic: "DisabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "EnabledModule"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFailure"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleFailure"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionFromModuleSuccess"): EventFragment; + getEvent(nameOrSignatureOrTopic: "ExecutionSuccess"): EventFragment; + getEvent(nameOrSignatureOrTopic: "RemovedOwner"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SafeSetup"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SignMsg"): EventFragment; +} + +export interface AddedOwnerEventObject { + owner: string; +} +export type AddedOwnerEvent = TypedEvent<[string], AddedOwnerEventObject>; + +export type AddedOwnerEventFilter = TypedEventFilter; + +export interface ApproveHashEventObject { + approvedHash: string; + owner: string; +} +export type ApproveHashEvent = TypedEvent< + [string, string], + ApproveHashEventObject +>; + +export type ApproveHashEventFilter = TypedEventFilter; + +export interface ChangedFallbackHandlerEventObject { + handler: string; +} +export type ChangedFallbackHandlerEvent = TypedEvent< + [string], + ChangedFallbackHandlerEventObject +>; + +export type ChangedFallbackHandlerEventFilter = + TypedEventFilter; + +export interface ChangedGuardEventObject { + guard: string; +} +export type ChangedGuardEvent = TypedEvent<[string], ChangedGuardEventObject>; + +export type ChangedGuardEventFilter = TypedEventFilter; + +export interface ChangedThresholdEventObject { + threshold: BigNumber; +} +export type ChangedThresholdEvent = TypedEvent< + [BigNumber], + ChangedThresholdEventObject +>; + +export type ChangedThresholdEventFilter = + TypedEventFilter; + +export interface DisabledModuleEventObject { + module: string; +} +export type DisabledModuleEvent = TypedEvent< + [string], + DisabledModuleEventObject +>; + +export type DisabledModuleEventFilter = TypedEventFilter; + +export interface EnabledModuleEventObject { + module: string; +} +export type EnabledModuleEvent = TypedEvent<[string], EnabledModuleEventObject>; + +export type EnabledModuleEventFilter = TypedEventFilter; + +export interface ExecutionFailureEventObject { + txHash: string; + payment: BigNumber; +} +export type ExecutionFailureEvent = TypedEvent< + [string, BigNumber], + ExecutionFailureEventObject +>; + +export type ExecutionFailureEventFilter = + TypedEventFilter; + +export interface ExecutionFromModuleFailureEventObject { + module: string; +} +export type ExecutionFromModuleFailureEvent = TypedEvent< + [string], + ExecutionFromModuleFailureEventObject +>; + +export type ExecutionFromModuleFailureEventFilter = + TypedEventFilter; + +export interface ExecutionFromModuleSuccessEventObject { + module: string; +} +export type ExecutionFromModuleSuccessEvent = TypedEvent< + [string], + ExecutionFromModuleSuccessEventObject +>; + +export type ExecutionFromModuleSuccessEventFilter = + TypedEventFilter; + +export interface ExecutionSuccessEventObject { + txHash: string; + payment: BigNumber; +} +export type ExecutionSuccessEvent = TypedEvent< + [string, BigNumber], + ExecutionSuccessEventObject +>; + +export type ExecutionSuccessEventFilter = + TypedEventFilter; + +export interface RemovedOwnerEventObject { + owner: string; +} +export type RemovedOwnerEvent = TypedEvent<[string], RemovedOwnerEventObject>; + +export type RemovedOwnerEventFilter = TypedEventFilter; + +export interface SafeSetupEventObject { + initiator: string; + owners: string[]; + threshold: BigNumber; + initializer: string; + fallbackHandler: string; +} +export type SafeSetupEvent = TypedEvent< + [string, string[], BigNumber, string, string], + SafeSetupEventObject +>; + +export type SafeSetupEventFilter = TypedEventFilter; + +export interface SignMsgEventObject { + msgHash: string; +} +export type SignMsgEvent = TypedEvent<[string], SignMsgEventObject>; + +export type SignMsgEventFilter = TypedEventFilter; + +export interface ISafe extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ISafeInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + VERSION(overrides?: CallOverrides): Promise<[string]>; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + owner: string, + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise<[void]>; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise<[void]>; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise<[void]>; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise<[string]>; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + getOwners(overrides?: CallOverrides): Promise<[string[]]>; + + getThreshold(overrides?: CallOverrides): Promise<[BigNumber]>; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise<[string]>; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise<[boolean]>; + + isOwner(owner: string, overrides?: CallOverrides): Promise<[boolean]>; + + nonce(overrides?: CallOverrides): Promise<[BigNumber]>; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + owner: string, + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled(module: string, overrides?: CallOverrides): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: CallOverrides + ): Promise; + + approvedHashes( + owner: string, + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: CallOverrides + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule(module: string, overrides?: CallOverrides): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise<[boolean, string] & { success: boolean; returnData: string }>; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise<[string[], string] & { array: string[]; next: string }>; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: CallOverrides + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: CallOverrides + ): Promise; + + setGuard(guard: string, overrides?: CallOverrides): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: CallOverrides + ): Promise; + + signedMessages( + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "AddedOwner(address)"(owner?: string | null): AddedOwnerEventFilter; + AddedOwner(owner?: string | null): AddedOwnerEventFilter; + + "ApproveHash(bytes32,address)"( + approvedHash?: BytesLike | null, + owner?: string | null + ): ApproveHashEventFilter; + ApproveHash( + approvedHash?: BytesLike | null, + owner?: string | null + ): ApproveHashEventFilter; + + "ChangedFallbackHandler(address)"( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + ChangedFallbackHandler( + handler?: string | null + ): ChangedFallbackHandlerEventFilter; + + "ChangedGuard(address)"(guard?: string | null): ChangedGuardEventFilter; + ChangedGuard(guard?: string | null): ChangedGuardEventFilter; + + "ChangedThreshold(uint256)"(threshold?: null): ChangedThresholdEventFilter; + ChangedThreshold(threshold?: null): ChangedThresholdEventFilter; + + "DisabledModule(address)"( + module?: string | null + ): DisabledModuleEventFilter; + DisabledModule(module?: string | null): DisabledModuleEventFilter; + + "EnabledModule(address)"(module?: string | null): EnabledModuleEventFilter; + EnabledModule(module?: string | null): EnabledModuleEventFilter; + + "ExecutionFailure(bytes32,uint256)"( + txHash?: BytesLike | null, + payment?: null + ): ExecutionFailureEventFilter; + ExecutionFailure( + txHash?: BytesLike | null, + payment?: null + ): ExecutionFailureEventFilter; + + "ExecutionFromModuleFailure(address)"( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + ExecutionFromModuleFailure( + module?: string | null + ): ExecutionFromModuleFailureEventFilter; + + "ExecutionFromModuleSuccess(address)"( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + ExecutionFromModuleSuccess( + module?: string | null + ): ExecutionFromModuleSuccessEventFilter; + + "ExecutionSuccess(bytes32,uint256)"( + txHash?: BytesLike | null, + payment?: null + ): ExecutionSuccessEventFilter; + ExecutionSuccess( + txHash?: BytesLike | null, + payment?: null + ): ExecutionSuccessEventFilter; + + "RemovedOwner(address)"(owner?: string | null): RemovedOwnerEventFilter; + RemovedOwner(owner?: string | null): RemovedOwnerEventFilter; + + "SafeSetup(address,address[],uint256,address,address)"( + initiator?: string | null, + owners?: null, + threshold?: null, + initializer?: null, + fallbackHandler?: null + ): SafeSetupEventFilter; + SafeSetup( + initiator?: string | null, + owners?: null, + threshold?: null, + initializer?: null, + fallbackHandler?: null + ): SafeSetupEventFilter; + + "SignMsg(bytes32)"(msgHash?: BytesLike | null): SignMsgEventFilter; + SignMsg(msgHash?: BytesLike | null): SignMsgEventFilter; + }; + + estimateGas: { + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + owner: string, + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + isOwner(owner: string, overrides?: CallOverrides): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + VERSION(overrides?: CallOverrides): Promise; + + addOwnerWithThreshold( + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + approveHash( + hashToApprove: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + approvedHashes( + owner: string, + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + changeThreshold( + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + checkNSignatures( + executor: string, + dataHash: BytesLike, + signatures: BytesLike, + requiredSignatures: BigNumberish, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes,bytes)"( + dataHash: BytesLike, + arg1: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + "checkSignatures(bytes32,bytes)"( + dataHash: BytesLike, + signatures: BytesLike, + overrides?: CallOverrides + ): Promise; + + disableModule( + prevModule: string, + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + domainSeparator(overrides?: CallOverrides): Promise; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + signatures: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModuleReturnData( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getModulesPaginated( + start: string, + pageSize: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getOwners(overrides?: CallOverrides): Promise; + + getThreshold(overrides?: CallOverrides): Promise; + + getTransactionHash( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: string, + refundReceiver: string, + _nonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + isModuleEnabled( + module: string, + overrides?: CallOverrides + ): Promise; + + isOwner( + owner: string, + overrides?: CallOverrides + ): Promise; + + nonce(overrides?: CallOverrides): Promise; + + removeOwner( + prevOwner: string, + owner: string, + _threshold: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + setFallbackHandler( + handler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + setup( + _owners: string[], + _threshold: BigNumberish, + to: string, + data: BytesLike, + fallbackHandler: string, + paymentToken: string, + payment: BigNumberish, + paymentReceiver: string, + overrides?: Overrides & { from?: string } + ): Promise; + + signedMessages( + messageHash: BytesLike, + overrides?: CallOverrides + ): Promise; + + swapOwner( + prevOwner: string, + oldOwner: string, + newOwner: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/ISignatureValidator.ts b/src/assets/typechain-types/safe/contracts/interfaces/ISignatureValidator.ts new file mode 100644 index 0000000000..2b30002e80 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/ISignatureValidator.ts @@ -0,0 +1,107 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface ISignatureValidatorInterface extends utils.Interface { + functions: { + "isValidSignature(bytes32,bytes)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "isValidSignature"): FunctionFragment; + + encodeFunctionData( + functionFragment: "isValidSignature", + values: [BytesLike, BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "isValidSignature", + data: BytesLike + ): Result; + + events: {}; +} + +export interface ISignatureValidator extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ISignatureValidatorInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + isValidSignature( + _hash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + }; + + isValidSignature( + _hash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + isValidSignature( + _hash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + isValidSignature( + _hash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + isValidSignature( + _hash: BytesLike, + _signature: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/ViewStorageAccessible.ts b/src/assets/typechain-types/safe/contracts/interfaces/ViewStorageAccessible.ts new file mode 100644 index 0000000000..3c25071fe2 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/ViewStorageAccessible.ts @@ -0,0 +1,104 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface ViewStorageAccessibleInterface extends utils.Interface { + functions: { + "simulate(address,bytes)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "simulate"): FunctionFragment; + + encodeFunctionData( + functionFragment: "simulate", + values: [string, BytesLike] + ): string; + + decodeFunctionResult(functionFragment: "simulate", data: BytesLike): Result; + + events: {}; +} + +export interface ViewStorageAccessible extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ViewStorageAccessibleInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + }; + + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: CallOverrides + ): Promise; + + callStatic: { + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + populateTransaction: { + simulate( + targetContract: string, + calldataPayload: BytesLike, + overrides?: CallOverrides + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/interfaces/index.ts b/src/assets/typechain-types/safe/contracts/interfaces/index.ts new file mode 100644 index 0000000000..1b08440928 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/interfaces/index.ts @@ -0,0 +1,14 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { ERC1155TokenReceiver } from "./ERC1155TokenReceiver"; +export type { ERC721TokenReceiver } from "./ERC721TokenReceiver"; +export type { ERC777TokensRecipient } from "./ERC777TokensRecipient"; +export type { IERC165 } from "./IERC165"; +export type { IFallbackManager } from "./IFallbackManager"; +export type { IGuardManager } from "./IGuardManager"; +export type { IModuleManager } from "./IModuleManager"; +export type { IOwnerManager } from "./IOwnerManager"; +export type { ISafe } from "./ISafe"; +export type { ISignatureValidator } from "./ISignatureValidator"; +export type { ViewStorageAccessible } from "./ViewStorageAccessible"; diff --git a/src/assets/typechain-types/safe/contracts/libraries/CreateCall.ts b/src/assets/typechain-types/safe/contracts/libraries/CreateCall.ts new file mode 100644 index 0000000000..761f01d8ab --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/libraries/CreateCall.ts @@ -0,0 +1,180 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface CreateCallInterface extends utils.Interface { + functions: { + "performCreate(uint256,bytes)": FunctionFragment; + "performCreate2(uint256,bytes,bytes32)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: "performCreate" | "performCreate2" + ): FunctionFragment; + + 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; + + events: { + "ContractCreation(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ContractCreation"): EventFragment; +} + +export interface ContractCreationEventObject { + newContract: string; +} +export type ContractCreationEvent = TypedEvent< + [string], + ContractCreationEventObject +>; + +export type ContractCreationEventFilter = + TypedEventFilter; + +export interface CreateCall extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: CreateCallInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + performCreate( + value: BigNumberish, + deploymentData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + performCreate2( + value: BigNumberish, + deploymentData: BytesLike, + salt: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + performCreate( + value: BigNumberish, + deploymentData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + performCreate2( + value: BigNumberish, + deploymentData: BytesLike, + salt: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + performCreate( + value: BigNumberish, + deploymentData: BytesLike, + overrides?: CallOverrides + ): Promise; + + performCreate2( + value: BigNumberish, + deploymentData: BytesLike, + salt: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "ContractCreation(address)"( + newContract?: string | null + ): ContractCreationEventFilter; + ContractCreation(newContract?: string | null): ContractCreationEventFilter; + }; + + estimateGas: { + performCreate( + value: BigNumberish, + deploymentData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + performCreate2( + value: BigNumberish, + deploymentData: BytesLike, + salt: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + performCreate( + value: BigNumberish, + deploymentData: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + performCreate2( + value: BigNumberish, + deploymentData: BytesLike, + salt: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/libraries/MultiSend.ts b/src/assets/typechain-types/safe/contracts/libraries/MultiSend.ts new file mode 100644 index 0000000000..5926931921 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/libraries/MultiSend.ts @@ -0,0 +1,101 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface MultiSendInterface extends utils.Interface { + functions: { + "multiSend(bytes)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "multiSend"): FunctionFragment; + + encodeFunctionData( + functionFragment: "multiSend", + values: [BytesLike] + ): string; + + decodeFunctionResult(functionFragment: "multiSend", data: BytesLike): Result; + + events: {}; +} + +export interface MultiSend extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: MultiSendInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + multiSend( + transactions: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + }; + + multiSend( + transactions: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + callStatic: { + multiSend( + transactions: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + multiSend( + transactions: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + multiSend( + transactions: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/libraries/MultiSendCallOnly.ts b/src/assets/typechain-types/safe/contracts/libraries/MultiSendCallOnly.ts new file mode 100644 index 0000000000..970172abd3 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/libraries/MultiSendCallOnly.ts @@ -0,0 +1,101 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface MultiSendCallOnlyInterface extends utils.Interface { + functions: { + "multiSend(bytes)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "multiSend"): FunctionFragment; + + encodeFunctionData( + functionFragment: "multiSend", + values: [BytesLike] + ): string; + + decodeFunctionResult(functionFragment: "multiSend", data: BytesLike): Result; + + events: {}; +} + +export interface MultiSendCallOnly extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: MultiSendCallOnlyInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + multiSend( + transactions: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + }; + + multiSend( + transactions: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + callStatic: { + multiSend( + transactions: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + multiSend( + transactions: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + multiSend( + transactions: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/libraries/Safe130To141Migration.ts b/src/assets/typechain-types/safe/contracts/libraries/Safe130To141Migration.ts new file mode 100644 index 0000000000..e654033709 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/libraries/Safe130To141Migration.ts @@ -0,0 +1,258 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface Safe130To141MigrationInterface extends utils.Interface { + functions: { + "SAFE_141_FALLBACK_HANDLER()": FunctionFragment; + "SAFE_141_SINGLETON()": FunctionFragment; + "SAFE_141_SINGLETON_L2()": FunctionFragment; + "migrate()": FunctionFragment; + "migrateL2()": FunctionFragment; + "migrateL2WithFallbackHandler()": FunctionFragment; + "migrateWithFallbackHandler()": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "SAFE_141_FALLBACK_HANDLER" + | "SAFE_141_SINGLETON" + | "SAFE_141_SINGLETON_L2" + | "migrate" + | "migrateL2" + | "migrateL2WithFallbackHandler" + | "migrateWithFallbackHandler" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "SAFE_141_FALLBACK_HANDLER", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "SAFE_141_SINGLETON", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "SAFE_141_SINGLETON_L2", + values?: undefined + ): string; + encodeFunctionData(functionFragment: "migrate", values?: undefined): string; + encodeFunctionData(functionFragment: "migrateL2", values?: undefined): string; + encodeFunctionData( + functionFragment: "migrateL2WithFallbackHandler", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "migrateWithFallbackHandler", + values?: undefined + ): string; + + decodeFunctionResult( + functionFragment: "SAFE_141_FALLBACK_HANDLER", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "SAFE_141_SINGLETON", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "SAFE_141_SINGLETON_L2", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "migrate", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "migrateL2", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "migrateL2WithFallbackHandler", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateWithFallbackHandler", + data: BytesLike + ): Result; + + events: { + "ChangedMasterCopy(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedMasterCopy"): EventFragment; +} + +export interface ChangedMasterCopyEventObject { + singleton: string; +} +export type ChangedMasterCopyEvent = TypedEvent< + [string], + ChangedMasterCopyEventObject +>; + +export type ChangedMasterCopyEventFilter = + TypedEventFilter; + +export interface Safe130To141Migration extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: Safe130To141MigrationInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + SAFE_141_FALLBACK_HANDLER(overrides?: CallOverrides): Promise<[string]>; + + SAFE_141_SINGLETON(overrides?: CallOverrides): Promise<[string]>; + + SAFE_141_SINGLETON_L2(overrides?: CallOverrides): Promise<[string]>; + + migrate( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + }; + + SAFE_141_FALLBACK_HANDLER(overrides?: CallOverrides): Promise; + + SAFE_141_SINGLETON(overrides?: CallOverrides): Promise; + + SAFE_141_SINGLETON_L2(overrides?: CallOverrides): Promise; + + migrate( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + SAFE_141_FALLBACK_HANDLER(overrides?: CallOverrides): Promise; + + SAFE_141_SINGLETON(overrides?: CallOverrides): Promise; + + SAFE_141_SINGLETON_L2(overrides?: CallOverrides): Promise; + + migrate(overrides?: CallOverrides): Promise; + + migrateL2(overrides?: CallOverrides): Promise; + + migrateL2WithFallbackHandler(overrides?: CallOverrides): Promise; + + migrateWithFallbackHandler(overrides?: CallOverrides): Promise; + }; + + filters: { + "ChangedMasterCopy(address)"( + singleton?: null + ): ChangedMasterCopyEventFilter; + ChangedMasterCopy(singleton?: null): ChangedMasterCopyEventFilter; + }; + + estimateGas: { + SAFE_141_FALLBACK_HANDLER(overrides?: CallOverrides): Promise; + + SAFE_141_SINGLETON(overrides?: CallOverrides): Promise; + + SAFE_141_SINGLETON_L2(overrides?: CallOverrides): Promise; + + migrate(overrides?: Overrides & { from?: string }): Promise; + + migrateL2(overrides?: Overrides & { from?: string }): Promise; + + migrateL2WithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + SAFE_141_FALLBACK_HANDLER( + overrides?: CallOverrides + ): Promise; + + SAFE_141_SINGLETON( + overrides?: CallOverrides + ): Promise; + + SAFE_141_SINGLETON_L2( + overrides?: CallOverrides + ): Promise; + + migrate( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/libraries/Safe150Migration.ts b/src/assets/typechain-types/safe/contracts/libraries/Safe150Migration.ts new file mode 100644 index 0000000000..f92614fc60 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/libraries/Safe150Migration.ts @@ -0,0 +1,414 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface Safe150MigrationInterface extends utils.Interface { + functions: { + "SAFE_150_FALLBACK_HANDLER()": FunctionFragment; + "SAFE_150_SINGLETON()": FunctionFragment; + "SAFE_150_SINGLETON_L2()": FunctionFragment; + "migrateL2Singleton()": FunctionFragment; + "migrateL2WithFallbackHandler()": FunctionFragment; + "migrateL2WithSetGuard(address)": FunctionFragment; + "migrateL2WithSetGuardAndFallbackHandler(address)": FunctionFragment; + "migrateSingleton()": FunctionFragment; + "migrateWithFallbackHandler()": FunctionFragment; + "migrateWithSetGuard(address)": FunctionFragment; + "migrateWithSetGuardAndFallbackHandler(address)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "SAFE_150_FALLBACK_HANDLER" + | "SAFE_150_SINGLETON" + | "SAFE_150_SINGLETON_L2" + | "migrateL2Singleton" + | "migrateL2WithFallbackHandler" + | "migrateL2WithSetGuard" + | "migrateL2WithSetGuardAndFallbackHandler" + | "migrateSingleton" + | "migrateWithFallbackHandler" + | "migrateWithSetGuard" + | "migrateWithSetGuardAndFallbackHandler" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "SAFE_150_FALLBACK_HANDLER", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "SAFE_150_SINGLETON", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "SAFE_150_SINGLETON_L2", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "migrateL2Singleton", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "migrateL2WithFallbackHandler", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "migrateL2WithSetGuard", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "migrateL2WithSetGuardAndFallbackHandler", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "migrateSingleton", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "migrateWithFallbackHandler", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "migrateWithSetGuard", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "migrateWithSetGuardAndFallbackHandler", + values: [string] + ): string; + + decodeFunctionResult( + functionFragment: "SAFE_150_FALLBACK_HANDLER", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "SAFE_150_SINGLETON", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "SAFE_150_SINGLETON_L2", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateL2Singleton", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateL2WithFallbackHandler", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateL2WithSetGuard", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateL2WithSetGuardAndFallbackHandler", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateSingleton", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateWithFallbackHandler", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateWithSetGuard", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateWithSetGuardAndFallbackHandler", + data: BytesLike + ): Result; + + events: { + "ChangedMasterCopy(address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedMasterCopy"): EventFragment; +} + +export interface ChangedMasterCopyEventObject { + singleton: string; +} +export type ChangedMasterCopyEvent = TypedEvent< + [string], + ChangedMasterCopyEventObject +>; + +export type ChangedMasterCopyEventFilter = + TypedEventFilter; + +export interface Safe150Migration extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: Safe150MigrationInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + SAFE_150_FALLBACK_HANDLER(overrides?: CallOverrides): Promise<[string]>; + + SAFE_150_SINGLETON(overrides?: CallOverrides): Promise<[string]>; + + SAFE_150_SINGLETON_L2(overrides?: CallOverrides): Promise<[string]>; + + migrateL2Singleton( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithSetGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithSetGuardAndFallbackHandler( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateSingleton( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithSetGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithSetGuardAndFallbackHandler( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + SAFE_150_FALLBACK_HANDLER(overrides?: CallOverrides): Promise; + + SAFE_150_SINGLETON(overrides?: CallOverrides): Promise; + + SAFE_150_SINGLETON_L2(overrides?: CallOverrides): Promise; + + migrateL2Singleton( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithSetGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithSetGuardAndFallbackHandler( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateSingleton( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithSetGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithSetGuardAndFallbackHandler( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + SAFE_150_FALLBACK_HANDLER(overrides?: CallOverrides): Promise; + + SAFE_150_SINGLETON(overrides?: CallOverrides): Promise; + + SAFE_150_SINGLETON_L2(overrides?: CallOverrides): Promise; + + migrateL2Singleton(overrides?: CallOverrides): Promise; + + migrateL2WithFallbackHandler(overrides?: CallOverrides): Promise; + + migrateL2WithSetGuard( + guard: string, + overrides?: CallOverrides + ): Promise; + + migrateL2WithSetGuardAndFallbackHandler( + guard: string, + overrides?: CallOverrides + ): Promise; + + migrateSingleton(overrides?: CallOverrides): Promise; + + migrateWithFallbackHandler(overrides?: CallOverrides): Promise; + + migrateWithSetGuard( + guard: string, + overrides?: CallOverrides + ): Promise; + + migrateWithSetGuardAndFallbackHandler( + guard: string, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "ChangedMasterCopy(address)"( + singleton?: null + ): ChangedMasterCopyEventFilter; + ChangedMasterCopy(singleton?: null): ChangedMasterCopyEventFilter; + }; + + estimateGas: { + SAFE_150_FALLBACK_HANDLER(overrides?: CallOverrides): Promise; + + SAFE_150_SINGLETON(overrides?: CallOverrides): Promise; + + SAFE_150_SINGLETON_L2(overrides?: CallOverrides): Promise; + + migrateL2Singleton( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithSetGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithSetGuardAndFallbackHandler( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateSingleton( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithSetGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithSetGuardAndFallbackHandler( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + SAFE_150_FALLBACK_HANDLER( + overrides?: CallOverrides + ): Promise; + + SAFE_150_SINGLETON( + overrides?: CallOverrides + ): Promise; + + SAFE_150_SINGLETON_L2( + overrides?: CallOverrides + ): Promise; + + migrateL2Singleton( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithSetGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateL2WithSetGuardAndFallbackHandler( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateSingleton( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithFallbackHandler( + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithSetGuard( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateWithSetGuardAndFallbackHandler( + guard: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/libraries/SafeToL2Migration.ts b/src/assets/typechain-types/safe/contracts/libraries/SafeToL2Migration.ts new file mode 100644 index 0000000000..6c0f0c5c52 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/libraries/SafeToL2Migration.ts @@ -0,0 +1,280 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface SafeToL2MigrationInterface extends utils.Interface { + functions: { + "MIGRATION_SINGLETON()": FunctionFragment; + "migrateFromV111(address,address)": FunctionFragment; + "migrateToL2(address)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "MIGRATION_SINGLETON" + | "migrateFromV111" + | "migrateToL2" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "MIGRATION_SINGLETON", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "migrateFromV111", + values: [string, string] + ): string; + encodeFunctionData(functionFragment: "migrateToL2", values: [string]): string; + + decodeFunctionResult( + functionFragment: "MIGRATION_SINGLETON", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateFromV111", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "migrateToL2", + data: BytesLike + ): Result; + + events: { + "ChangedMasterCopy(address)": EventFragment; + "SafeMultiSigTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,bytes)": EventFragment; + "SafeSetup(address,address[],uint256,address,address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ChangedMasterCopy"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SafeMultiSigTransaction"): EventFragment; + getEvent(nameOrSignatureOrTopic: "SafeSetup"): EventFragment; +} + +export interface ChangedMasterCopyEventObject { + singleton: string; +} +export type ChangedMasterCopyEvent = TypedEvent< + [string], + ChangedMasterCopyEventObject +>; + +export type ChangedMasterCopyEventFilter = + TypedEventFilter; + +export interface SafeMultiSigTransactionEventObject { + to: string; + value: BigNumber; + data: string; + operation: number; + safeTxGas: BigNumber; + baseGas: BigNumber; + gasPrice: BigNumber; + gasToken: string; + refundReceiver: string; + signatures: string; + additionalInfo: string; +} +export type SafeMultiSigTransactionEvent = TypedEvent< + [ + string, + BigNumber, + string, + number, + BigNumber, + BigNumber, + BigNumber, + string, + string, + string, + string + ], + SafeMultiSigTransactionEventObject +>; + +export type SafeMultiSigTransactionEventFilter = + TypedEventFilter; + +export interface SafeSetupEventObject { + initiator: string; + owners: string[]; + threshold: BigNumber; + initializer: string; + fallbackHandler: string; +} +export type SafeSetupEvent = TypedEvent< + [string, string[], BigNumber, string, string], + SafeSetupEventObject +>; + +export type SafeSetupEventFilter = TypedEventFilter; + +export interface SafeToL2Migration extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: SafeToL2MigrationInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + MIGRATION_SINGLETON(overrides?: CallOverrides): Promise<[string]>; + + migrateFromV111( + l2Singleton: string, + fallbackHandler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateToL2( + l2Singleton: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + MIGRATION_SINGLETON(overrides?: CallOverrides): Promise; + + migrateFromV111( + l2Singleton: string, + fallbackHandler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateToL2( + l2Singleton: string, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + MIGRATION_SINGLETON(overrides?: CallOverrides): Promise; + + migrateFromV111( + l2Singleton: string, + fallbackHandler: string, + overrides?: CallOverrides + ): Promise; + + migrateToL2(l2Singleton: string, overrides?: CallOverrides): Promise; + }; + + filters: { + "ChangedMasterCopy(address)"( + singleton?: null + ): ChangedMasterCopyEventFilter; + ChangedMasterCopy(singleton?: null): ChangedMasterCopyEventFilter; + + "SafeMultiSigTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,bytes)"( + to?: null, + value?: null, + data?: null, + operation?: null, + safeTxGas?: null, + baseGas?: null, + gasPrice?: null, + gasToken?: null, + refundReceiver?: null, + signatures?: null, + additionalInfo?: null + ): SafeMultiSigTransactionEventFilter; + SafeMultiSigTransaction( + to?: null, + value?: null, + data?: null, + operation?: null, + safeTxGas?: null, + baseGas?: null, + gasPrice?: null, + gasToken?: null, + refundReceiver?: null, + signatures?: null, + additionalInfo?: null + ): SafeMultiSigTransactionEventFilter; + + "SafeSetup(address,address[],uint256,address,address)"( + initiator?: string | null, + owners?: null, + threshold?: null, + initializer?: null, + fallbackHandler?: null + ): SafeSetupEventFilter; + SafeSetup( + initiator?: string | null, + owners?: null, + threshold?: null, + initializer?: null, + fallbackHandler?: null + ): SafeSetupEventFilter; + }; + + estimateGas: { + MIGRATION_SINGLETON(overrides?: CallOverrides): Promise; + + migrateFromV111( + l2Singleton: string, + fallbackHandler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateToL2( + l2Singleton: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + MIGRATION_SINGLETON( + overrides?: CallOverrides + ): Promise; + + migrateFromV111( + l2Singleton: string, + fallbackHandler: string, + overrides?: Overrides & { from?: string } + ): Promise; + + migrateToL2( + l2Singleton: string, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/libraries/SignMessageLib.ts b/src/assets/typechain-types/safe/contracts/libraries/SignMessageLib.ts new file mode 100644 index 0000000000..a0d1dbe842 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/libraries/SignMessageLib.ts @@ -0,0 +1,155 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface SignMessageLibInterface extends utils.Interface { + functions: { + "getMessageHash(bytes)": FunctionFragment; + "signMessage(bytes)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: "getMessageHash" | "signMessage" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "getMessageHash", + values: [BytesLike] + ): string; + encodeFunctionData( + functionFragment: "signMessage", + values: [BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "getMessageHash", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "signMessage", + data: BytesLike + ): Result; + + events: { + "SignMsg(bytes32)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "SignMsg"): EventFragment; +} + +export interface SignMsgEventObject { + msgHash: string; +} +export type SignMsgEvent = TypedEvent<[string], SignMsgEventObject>; + +export type SignMsgEventFilter = TypedEventFilter; + +export interface SignMessageLib extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: SignMessageLibInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise<[string]>; + + signMessage( + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + signMessage( + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + signMessage(_data: BytesLike, overrides?: CallOverrides): Promise; + }; + + filters: { + "SignMsg(bytes32)"(msgHash?: BytesLike | null): SignMsgEventFilter; + SignMsg(msgHash?: BytesLike | null): SignMsgEventFilter; + }; + + estimateGas: { + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + signMessage( + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + getMessageHash( + message: BytesLike, + overrides?: CallOverrides + ): Promise; + + signMessage( + _data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/libraries/index.ts b/src/assets/typechain-types/safe/contracts/libraries/index.ts new file mode 100644 index 0000000000..7e33c84a30 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/libraries/index.ts @@ -0,0 +1,10 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { CreateCall } from "./CreateCall"; +export type { MultiSend } from "./MultiSend"; +export type { MultiSendCallOnly } from "./MultiSendCallOnly"; +export type { Safe130To141Migration } from "./Safe130To141Migration"; +export type { Safe150Migration } from "./Safe150Migration"; +export type { SafeToL2Migration } from "./SafeToL2Migration"; +export type { SignMessageLib } from "./SignMessageLib"; diff --git a/src/assets/typechain-types/safe/contracts/proxies/IProxyCreationCallback.ts b/src/assets/typechain-types/safe/contracts/proxies/IProxyCreationCallback.ts new file mode 100644 index 0000000000..0eb940ef22 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/proxies/IProxyCreationCallback.ts @@ -0,0 +1,120 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface IProxyCreationCallbackInterface extends utils.Interface { + functions: { + "proxyCreated(address,address,bytes,uint256)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "proxyCreated"): FunctionFragment; + + encodeFunctionData( + functionFragment: "proxyCreated", + values: [string, string, BytesLike, BigNumberish] + ): string; + + decodeFunctionResult( + functionFragment: "proxyCreated", + data: BytesLike + ): Result; + + events: {}; +} + +export interface IProxyCreationCallback extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IProxyCreationCallbackInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + proxyCreated( + proxy: string, + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + proxyCreated( + proxy: string, + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + proxyCreated( + proxy: string, + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + proxyCreated( + proxy: string, + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + proxyCreated( + proxy: string, + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/IProxy.ts b/src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/IProxy.ts new file mode 100644 index 0000000000..ced2e1f595 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/IProxy.ts @@ -0,0 +1,84 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface IProxyInterface extends utils.Interface { + functions: { + "masterCopy()": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "masterCopy"): FunctionFragment; + + encodeFunctionData( + functionFragment: "masterCopy", + values?: undefined + ): string; + + decodeFunctionResult(functionFragment: "masterCopy", data: BytesLike): Result; + + events: {}; +} + +export interface IProxy extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: IProxyInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + masterCopy(overrides?: CallOverrides): Promise<[string]>; + }; + + masterCopy(overrides?: CallOverrides): Promise; + + callStatic: { + masterCopy(overrides?: CallOverrides): Promise; + }; + + filters: {}; + + estimateGas: { + masterCopy(overrides?: CallOverrides): Promise; + }; + + populateTransaction: { + masterCopy(overrides?: CallOverrides): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/SafeProxy.ts b/src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/SafeProxy.ts new file mode 100644 index 0000000000..76fc1bbe95 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/SafeProxy.ts @@ -0,0 +1,55 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseContract, Signer, utils } from "ethers"; + +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface SafeProxyInterface extends utils.Interface { + functions: {}; + + events: {}; +} + +export interface SafeProxy extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: SafeProxyInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: {}; + + callStatic: {}; + + filters: {}; + + estimateGas: {}; + + populateTransaction: {}; +} diff --git a/src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/index.ts b/src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/index.ts new file mode 100644 index 0000000000..4e92c54b64 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/proxies/SafeProxy.sol/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { IProxy } from "./IProxy"; +export type { SafeProxy } from "./SafeProxy"; diff --git a/src/assets/typechain-types/safe/contracts/proxies/SafeProxyFactory.ts b/src/assets/typechain-types/safe/contracts/proxies/SafeProxyFactory.ts new file mode 100644 index 0000000000..6ca74caa47 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/proxies/SafeProxyFactory.ts @@ -0,0 +1,278 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface SafeProxyFactoryInterface extends utils.Interface { + functions: { + "createChainSpecificProxyWithNonce(address,bytes,uint256)": FunctionFragment; + "createProxyWithCallback(address,bytes,uint256,address)": FunctionFragment; + "createProxyWithNonce(address,bytes,uint256)": FunctionFragment; + "getChainId()": FunctionFragment; + "proxyCreationCode()": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "createChainSpecificProxyWithNonce" + | "createProxyWithCallback" + | "createProxyWithNonce" + | "getChainId" + | "proxyCreationCode" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "createChainSpecificProxyWithNonce", + values: [string, BytesLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "createProxyWithCallback", + values: [string, BytesLike, BigNumberish, string] + ): string; + encodeFunctionData( + functionFragment: "createProxyWithNonce", + values: [string, 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; + + events: { + "ProxyCreation(address,address)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "ProxyCreation"): EventFragment; +} + +export interface ProxyCreationEventObject { + proxy: string; + singleton: string; +} +export type ProxyCreationEvent = TypedEvent< + [string, string], + ProxyCreationEventObject +>; + +export type ProxyCreationEventFilter = TypedEventFilter; + +export interface SafeProxyFactory extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: SafeProxyFactoryInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + createChainSpecificProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + createProxyWithCallback( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: string, + overrides?: Overrides & { from?: string } + ): Promise; + + createProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getChainId(overrides?: CallOverrides): Promise<[BigNumber]>; + + proxyCreationCode(overrides?: CallOverrides): Promise<[string]>; + }; + + createChainSpecificProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + createProxyWithCallback( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: string, + overrides?: Overrides & { from?: string } + ): Promise; + + createProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getChainId(overrides?: CallOverrides): Promise; + + proxyCreationCode(overrides?: CallOverrides): Promise; + + callStatic: { + createChainSpecificProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + createProxyWithCallback( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: string, + overrides?: CallOverrides + ): Promise; + + createProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: CallOverrides + ): Promise; + + getChainId(overrides?: CallOverrides): Promise; + + proxyCreationCode(overrides?: CallOverrides): Promise; + }; + + filters: { + "ProxyCreation(address,address)"( + proxy?: string | null, + singleton?: null + ): ProxyCreationEventFilter; + ProxyCreation( + proxy?: string | null, + singleton?: null + ): ProxyCreationEventFilter; + }; + + estimateGas: { + createChainSpecificProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + createProxyWithCallback( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: string, + overrides?: Overrides & { from?: string } + ): Promise; + + createProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getChainId(overrides?: CallOverrides): Promise; + + proxyCreationCode(overrides?: CallOverrides): Promise; + }; + + populateTransaction: { + createChainSpecificProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + createProxyWithCallback( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + callback: string, + overrides?: Overrides & { from?: string } + ): Promise; + + createProxyWithNonce( + _singleton: string, + initializer: BytesLike, + saltNonce: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + getChainId(overrides?: CallOverrides): Promise; + + proxyCreationCode(overrides?: CallOverrides): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/proxies/index.ts b/src/assets/typechain-types/safe/contracts/proxies/index.ts new file mode 100644 index 0000000000..9a1fd8c330 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/proxies/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as safeProxySol from "./SafeProxy.sol"; +export type { safeProxySol }; +export type { IProxyCreationCallback } from "./IProxyCreationCallback"; +export type { SafeProxyFactory } from "./SafeProxyFactory"; diff --git a/src/assets/typechain-types/safe/contracts/test/DelegateCaller.ts b/src/assets/typechain-types/safe/contracts/test/DelegateCaller.ts new file mode 100644 index 0000000000..fec3213296 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/DelegateCaller.ts @@ -0,0 +1,109 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface DelegateCallerInterface extends utils.Interface { + functions: { + "makeDelegatecall(address,bytes)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "makeDelegatecall"): FunctionFragment; + + encodeFunctionData( + functionFragment: "makeDelegatecall", + values: [string, BytesLike] + ): string; + + decodeFunctionResult( + functionFragment: "makeDelegatecall", + data: BytesLike + ): Result; + + events: {}; +} + +export interface DelegateCaller extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: DelegateCallerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + makeDelegatecall( + _called: string, + _calldata: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + makeDelegatecall( + _called: string, + _calldata: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + makeDelegatecall( + _called: string, + _calldata: BytesLike, + overrides?: CallOverrides + ): Promise<[boolean, string] & { success: boolean; returnData: string }>; + }; + + filters: {}; + + estimateGas: { + makeDelegatecall( + _called: string, + _calldata: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + makeDelegatecall( + _called: string, + _calldata: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/test/ERC1155Token.ts b/src/assets/typechain-types/safe/contracts/test/ERC1155Token.ts new file mode 100644 index 0000000000..5fb16de6dc --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/ERC1155Token.ts @@ -0,0 +1,209 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface ERC1155TokenInterface extends utils.Interface { + functions: { + "balanceOf(address,uint256)": FunctionFragment; + "mint(address,uint256,uint256,bytes)": FunctionFragment; + "safeTransferFrom(address,address,uint256,uint256,bytes)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: "balanceOf" | "mint" | "safeTransferFrom" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "balanceOf", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "mint", + values: [string, BigNumberish, BigNumberish, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "safeTransferFrom", + values: [string, string, BigNumberish, BigNumberish, BytesLike] + ): string; + + decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "safeTransferFrom", + data: BytesLike + ): Result; + + events: {}; +} + +export interface ERC1155Token extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ERC1155TokenInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + balanceOf( + owner: string, + id: BigNumberish, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + mint( + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + safeTransferFrom( + from: string, + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + balanceOf( + owner: string, + id: BigNumberish, + overrides?: CallOverrides + ): Promise; + + mint( + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + safeTransferFrom( + from: string, + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + balanceOf( + owner: string, + id: BigNumberish, + overrides?: CallOverrides + ): Promise; + + mint( + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: CallOverrides + ): Promise; + + safeTransferFrom( + from: string, + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + balanceOf( + owner: string, + id: BigNumberish, + overrides?: CallOverrides + ): Promise; + + mint( + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + safeTransferFrom( + from: string, + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + balanceOf( + owner: string, + id: BigNumberish, + overrides?: CallOverrides + ): Promise; + + mint( + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + + safeTransferFrom( + from: string, + to: string, + id: BigNumberish, + value: BigNumberish, + data: BytesLike, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/test/ERC20Token.ts b/src/assets/typechain-types/safe/contracts/test/ERC20Token.ts new file mode 100644 index 0000000000..beff8f2f2b --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/ERC20Token.ts @@ -0,0 +1,444 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { + FunctionFragment, + Result, + EventFragment, +} from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface ERC20TokenInterface extends utils.Interface { + functions: { + "allowance(address,address)": FunctionFragment; + "approve(address,uint256)": FunctionFragment; + "balanceOf(address)": FunctionFragment; + "decimals()": FunctionFragment; + "decreaseAllowance(address,uint256)": FunctionFragment; + "increaseAllowance(address,uint256)": FunctionFragment; + "name()": FunctionFragment; + "symbol()": FunctionFragment; + "totalSupply()": FunctionFragment; + "transfer(address,uint256)": FunctionFragment; + "transferFrom(address,address,uint256)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "allowance" + | "approve" + | "balanceOf" + | "decimals" + | "decreaseAllowance" + | "increaseAllowance" + | "name" + | "symbol" + | "totalSupply" + | "transfer" + | "transferFrom" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "allowance", + values: [string, string] + ): string; + encodeFunctionData( + functionFragment: "approve", + values: [string, BigNumberish] + ): string; + encodeFunctionData(functionFragment: "balanceOf", values: [string]): string; + encodeFunctionData(functionFragment: "decimals", values?: undefined): string; + encodeFunctionData( + functionFragment: "decreaseAllowance", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "increaseAllowance", + values: [string, BigNumberish] + ): string; + encodeFunctionData(functionFragment: "name", values?: undefined): string; + encodeFunctionData(functionFragment: "symbol", values?: undefined): string; + encodeFunctionData( + functionFragment: "totalSupply", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "transfer", + values: [string, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [string, string, BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "decreaseAllowance", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "increaseAllowance", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "totalSupply", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; + + events: { + "Approval(address,address,uint256)": EventFragment; + "Transfer(address,address,uint256)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment; + getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment; +} + +export interface ApprovalEventObject { + owner: string; + spender: string; + value: BigNumber; +} +export type ApprovalEvent = TypedEvent< + [string, string, BigNumber], + ApprovalEventObject +>; + +export type ApprovalEventFilter = TypedEventFilter; + +export interface TransferEventObject { + from: string; + to: string; + value: BigNumber; +} +export type TransferEvent = TypedEvent< + [string, string, BigNumber], + TransferEventObject +>; + +export type TransferEventFilter = TypedEventFilter; + +export interface ERC20Token extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ERC20TokenInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise<[BigNumber]>; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise<[BigNumber]>; + + decimals(overrides?: CallOverrides): Promise<[number]>; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + name(overrides?: CallOverrides): Promise<[string]>; + + symbol(overrides?: CallOverrides): Promise<[string]>; + + totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise; + + decimals(overrides?: CallOverrides): Promise; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise; + + decimals(overrides?: CallOverrides): Promise; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: CallOverrides + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: CallOverrides + ): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: CallOverrides + ): Promise; + }; + + filters: { + "Approval(address,address,uint256)"( + owner?: string | null, + spender?: string | null, + value?: null + ): ApprovalEventFilter; + Approval( + owner?: string | null, + spender?: string | null, + value?: null + ): ApprovalEventFilter; + + "Transfer(address,address,uint256)"( + from?: string | null, + to?: string | null, + value?: null + ): TransferEventFilter; + Transfer( + from?: string | null, + to?: string | null, + value?: null + ): TransferEventFilter; + }; + + estimateGas: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf(account: string, overrides?: CallOverrides): Promise; + + decimals(overrides?: CallOverrides): Promise; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + allowance( + owner: string, + spender: string, + overrides?: CallOverrides + ): Promise; + + approve( + spender: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + balanceOf( + account: string, + overrides?: CallOverrides + ): Promise; + + decimals(overrides?: CallOverrides): Promise; + + decreaseAllowance( + spender: string, + subtractedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + increaseAllowance( + spender: string, + addedValue: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + name(overrides?: CallOverrides): Promise; + + symbol(overrides?: CallOverrides): Promise; + + totalSupply(overrides?: CallOverrides): Promise; + + transfer( + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + transferFrom( + sender: string, + recipient: string, + amount: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/ISafe.ts b/src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/ISafe.ts new file mode 100644 index 0000000000..39d6cb6502 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/ISafe.ts @@ -0,0 +1,153 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export interface ISafeInterface extends utils.Interface { + functions: { + "enableModule(address)": FunctionFragment; + "execTransactionFromModule(address,uint256,bytes,uint8)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: "enableModule" | "execTransactionFromModule" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "enableModule", + values: [string] + ): string; + encodeFunctionData( + functionFragment: "execTransactionFromModule", + values: [string, BigNumberish, BytesLike, BigNumberish] + ): string; + + decodeFunctionResult( + functionFragment: "enableModule", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransactionFromModule", + data: BytesLike + ): Result; + + events: {}; +} + +export interface ISafe extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: ISafeInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + enableModule(module: string, overrides?: CallOverrides): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + enableModule( + module: string, + overrides?: Overrides & { from?: string } + ): Promise; + + execTransactionFromModule( + to: string, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/Test4337ModuleAndHandler.ts b/src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/Test4337ModuleAndHandler.ts new file mode 100644 index 0000000000..d31aa010e9 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/Test4337ModuleAndHandler.ts @@ -0,0 +1,264 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PayableOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../../common"; + +export type UserOperationStruct = { + sender: string; + nonce: BigNumberish; + initCode: BytesLike; + callData: BytesLike; + callGasLimit: BigNumberish; + verificationGasLimit: BigNumberish; + preVerificationGas: BigNumberish; + maxFeePerGas: BigNumberish; + maxPriorityFeePerGas: BigNumberish; + paymasterAndData: BytesLike; + signature: BytesLike; +}; + +export type UserOperationStructOutput = [ + string, + BigNumber, + string, + string, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + BigNumber, + string, + string +] & { + sender: string; + nonce: BigNumber; + initCode: string; + callData: string; + callGasLimit: BigNumber; + verificationGasLimit: BigNumber; + preVerificationGas: BigNumber; + maxFeePerGas: BigNumber; + maxPriorityFeePerGas: BigNumber; + paymasterAndData: string; + signature: string; +}; + +export interface Test4337ModuleAndHandlerInterface extends utils.Interface { + functions: { + "ENTRYPOINT()": FunctionFragment; + "MY_ADDRESS()": FunctionFragment; + "enableMyself()": FunctionFragment; + "execTransaction(address,uint256,bytes)": FunctionFragment; + "validateUserOp((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes),bytes32,uint256)": FunctionFragment; + }; + + getFunction( + nameOrSignatureOrTopic: + | "ENTRYPOINT" + | "MY_ADDRESS" + | "enableMyself" + | "execTransaction" + | "validateUserOp" + ): FunctionFragment; + + encodeFunctionData( + functionFragment: "ENTRYPOINT", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "MY_ADDRESS", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "enableMyself", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "execTransaction", + values: [string, BigNumberish, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "validateUserOp", + values: [UserOperationStruct, BytesLike, BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "ENTRYPOINT", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "MY_ADDRESS", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "enableMyself", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "execTransaction", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "validateUserOp", + data: BytesLike + ): Result; + + events: {}; +} + +export interface Test4337ModuleAndHandler extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: Test4337ModuleAndHandlerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + ENTRYPOINT(overrides?: CallOverrides): Promise<[string]>; + + MY_ADDRESS(overrides?: CallOverrides): Promise<[string]>; + + enableMyself( + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + validateUserOp( + userOp: UserOperationStruct, + arg1: BytesLike, + missingAccountFunds: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + ENTRYPOINT(overrides?: CallOverrides): Promise; + + MY_ADDRESS(overrides?: CallOverrides): Promise; + + enableMyself( + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + validateUserOp( + userOp: UserOperationStruct, + arg1: BytesLike, + missingAccountFunds: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + ENTRYPOINT(overrides?: CallOverrides): Promise; + + MY_ADDRESS(overrides?: CallOverrides): Promise; + + enableMyself(overrides?: CallOverrides): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + overrides?: CallOverrides + ): Promise; + + validateUserOp( + userOp: UserOperationStruct, + arg1: BytesLike, + missingAccountFunds: BigNumberish, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + ENTRYPOINT(overrides?: CallOverrides): Promise; + + MY_ADDRESS(overrides?: CallOverrides): Promise; + + enableMyself(overrides?: Overrides & { from?: string }): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + validateUserOp( + userOp: UserOperationStruct, + arg1: BytesLike, + missingAccountFunds: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + ENTRYPOINT(overrides?: CallOverrides): Promise; + + MY_ADDRESS(overrides?: CallOverrides): Promise; + + enableMyself( + overrides?: Overrides & { from?: string } + ): Promise; + + execTransaction( + to: string, + value: BigNumberish, + data: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise; + + validateUserOp( + userOp: UserOperationStruct, + arg1: BytesLike, + missingAccountFunds: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/index.ts b/src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/index.ts new file mode 100644 index 0000000000..bae5e7cf3b --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/Test4337ModuleAndHandler.sol/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { ISafe } from "./ISafe"; +export type { Test4337ModuleAndHandler } from "./Test4337ModuleAndHandler"; diff --git a/src/assets/typechain-types/safe/contracts/test/TestHandler.ts b/src/assets/typechain-types/safe/contracts/test/TestHandler.ts new file mode 100644 index 0000000000..63fb30f35b --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/TestHandler.ts @@ -0,0 +1,87 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BytesLike, + CallOverrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface TestHandlerInterface extends utils.Interface { + functions: { + "dudududu()": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "dudududu"): FunctionFragment; + + encodeFunctionData(functionFragment: "dudududu", values?: undefined): string; + + decodeFunctionResult(functionFragment: "dudududu", data: BytesLike): Result; + + events: {}; +} + +export interface TestHandler extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: TestHandlerInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + dudududu( + overrides?: CallOverrides + ): Promise<[string, string] & { sender: string; manager: string }>; + }; + + dudududu( + overrides?: CallOverrides + ): Promise<[string, string] & { sender: string; manager: string }>; + + callStatic: { + dudududu( + overrides?: CallOverrides + ): Promise<[string, string] & { sender: string; manager: string }>; + }; + + filters: {}; + + estimateGas: { + dudududu(overrides?: CallOverrides): Promise; + }; + + populateTransaction: { + dudududu(overrides?: CallOverrides): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/test/TestNativeTokenReceiver.ts b/src/assets/typechain-types/safe/contracts/test/TestNativeTokenReceiver.ts new file mode 100644 index 0000000000..4990b1ed48 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/TestNativeTokenReceiver.ts @@ -0,0 +1,82 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseContract, BigNumber, Signer, utils } from "ethers"; +import type { EventFragment } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface TestNativeTokenReceiverInterface extends utils.Interface { + functions: {}; + + events: { + "BreadReceived(address,uint256,uint256)": EventFragment; + }; + + getEvent(nameOrSignatureOrTopic: "BreadReceived"): EventFragment; +} + +export interface BreadReceivedEventObject { + from: string; + amount: BigNumber; + forwardedGas: BigNumber; +} +export type BreadReceivedEvent = TypedEvent< + [string, BigNumber, BigNumber], + BreadReceivedEventObject +>; + +export type BreadReceivedEventFilter = TypedEventFilter; + +export interface TestNativeTokenReceiver extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: TestNativeTokenReceiverInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: {}; + + callStatic: {}; + + filters: { + "BreadReceived(address,uint256,uint256)"( + from?: string | null, + amount?: null, + forwardedGas?: null + ): BreadReceivedEventFilter; + BreadReceived( + from?: string | null, + amount?: null, + forwardedGas?: null + ): BreadReceivedEventFilter; + }; + + estimateGas: {}; + + populateTransaction: {}; +} diff --git a/src/assets/typechain-types/safe/contracts/test/Token.ts b/src/assets/typechain-types/safe/contracts/test/Token.ts new file mode 100644 index 0000000000..e7821fd305 --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/Token.ts @@ -0,0 +1,107 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumber, + BigNumberish, + BytesLike, + CallOverrides, + ContractTransaction, + Overrides, + PopulatedTransaction, + Signer, + utils, +} from "ethers"; +import type { FunctionFragment, Result } from "@ethersproject/abi"; +import type { Listener, Provider } from "@ethersproject/providers"; +import type { + TypedEventFilter, + TypedEvent, + TypedListener, + OnEvent, +} from "../../common"; + +export interface TokenInterface extends utils.Interface { + functions: { + "transfer(address,uint256)": FunctionFragment; + }; + + getFunction(nameOrSignatureOrTopic: "transfer"): FunctionFragment; + + encodeFunctionData( + functionFragment: "transfer", + values: [string, BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; + + events: {}; +} + +export interface Token extends BaseContract { + connect(signerOrProvider: Signer | Provider | string): this; + attach(addressOrName: string): this; + deployed(): Promise; + + interface: TokenInterface; + + queryFilter( + event: TypedEventFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>; + + listeners( + eventFilter?: TypedEventFilter + ): Array>; + listeners(eventName?: string): Array; + removeAllListeners( + eventFilter: TypedEventFilter + ): this; + removeAllListeners(eventName?: string): this; + off: OnEvent; + on: OnEvent; + once: OnEvent; + removeListener: OnEvent; + + functions: { + transfer( + _to: string, + value: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + transfer( + _to: string, + value: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + + callStatic: { + transfer( + _to: string, + value: BigNumberish, + overrides?: CallOverrides + ): Promise; + }; + + filters: {}; + + estimateGas: { + transfer( + _to: string, + value: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; + + populateTransaction: { + transfer( + _to: string, + value: BigNumberish, + overrides?: Overrides & { from?: string } + ): Promise; + }; +} diff --git a/src/assets/typechain-types/safe/contracts/test/index.ts b/src/assets/typechain-types/safe/contracts/test/index.ts new file mode 100644 index 0000000000..2222136a3c --- /dev/null +++ b/src/assets/typechain-types/safe/contracts/test/index.ts @@ -0,0 +1,11 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as test4337ModuleAndHandlerSol from "./Test4337ModuleAndHandler.sol"; +export type { test4337ModuleAndHandlerSol }; +export type { DelegateCaller } from "./DelegateCaller"; +export type { ERC1155Token } from "./ERC1155Token"; +export type { ERC20Token } from "./ERC20Token"; +export type { TestHandler } from "./TestHandler"; +export type { TestNativeTokenReceiver } from "./TestNativeTokenReceiver"; +export type { Token } from "./Token"; diff --git a/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/index.ts b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/index.ts new file mode 100644 index 0000000000..23dc221d3d --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as proxy from "./proxy"; +export * as token from "./token"; diff --git a/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts new file mode 100644 index 0000000000..637fcceeca --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts @@ -0,0 +1,31 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + Proxy, + ProxyInterface, +} from "../../../../@openzeppelin/contracts/proxy/Proxy"; + +const _abi = [ + { + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", + }, +] as const; + +export class Proxy__factory { + static readonly abi = _abi; + static createInterface(): ProxyInterface { + return new utils.Interface(_abi) as ProxyInterface; + } + static connect(address: string, signerOrProvider: Signer | Provider): Proxy { + return new Contract(address, _abi, signerOrProvider) as Proxy; + } +} diff --git a/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/UpgradeableProxy__factory.ts b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/UpgradeableProxy__factory.ts new file mode 100644 index 0000000000..b172ce7c4f --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/UpgradeableProxy__factory.ts @@ -0,0 +1,114 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Signer, + utils, + Contract, + ContractFactory, + PayableOverrides, + BytesLike, +} from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + UpgradeableProxy, + UpgradeableProxyInterface, +} from "../../../../@openzeppelin/contracts/proxy/UpgradeableProxy"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_logic", + type: "address", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + stateMutability: "payable", + type: "constructor", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "implementation", + type: "address", + }, + ], + name: "Upgraded", + type: "event", + }, + { + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", + }, +] as const; + +const _bytecode = + "0x60806040526040516108383803806108388339818101604052604081101561002657600080fd5b81019080805190602001909291908051604051939291908464010000000082111561005057600080fd5b8382019150602082018581111561006657600080fd5b825186600182028301116401000000008211171561008357600080fd5b8083526020830192505050908051906020019080838360005b838110156100b757808201518184015260208101905061009c565b50505050905090810190601f1680156100e45780820380516001836020036101000a031916815260200191505b5060405250505060017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd60001c0360001b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b1461014057fe5b61014f8261017660201b60201c565b60008151111561016f5761016d828261020d60201b6100371760201c565b505b5050610459565b6101898161024060201b6100641760201c565b6101de576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260368152602001806107dc6036913960400191505060405180910390fd5b60007f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b90508181555050565b606061023883836040518060600160405280602781526020016107b56027913961025360201b60201c565b905092915050565b600080823b905060008111915050919050565b60606102648461024060201b60201c565b6102b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806108126026913960400191505060405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040518082805190602001908083835b6020831061030757805182526020820191506020810190506020830392506102e4565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d8060008114610367576040519150601f19603f3d011682016040523d82523d6000602084013e61036c565b606091505b509150915061038282828661038d60201b60201c565b925050509392505050565b6060831561039d57829050610452565b6000835111156103b05782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156104175780820151818401526020810190506103fc565b50505050905090810190601f1680156104445780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b61034d806104686000396000f3fe6080604052366100135761001161001d565b005b61001b61001d565b005b610025610077565b610035610030610079565b6100aa565b565b606061005c83836040518060600160405280602781526020016102cb602791396100d0565b905092915050565b600080823b905060008111915050919050565b565b6000807f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b9050805491505090565b3660008037600080366000845af43d6000803e80600081146100cb573d6000f35b3d6000fd5b60606100db84610064565b610130576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806102f26026913960400191505060405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16856040518082805190602001908083835b6020831061017e578051825260208201915060208101905060208303925061015b565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d80600081146101de576040519150601f19603f3d011682016040523d82523d6000602084013e6101e3565b606091505b50915091506101f38282866101fe565b925050509392505050565b6060831561020e578290506102c3565b6000835111156102215782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561028857808201518184015260208101905061026d565b50505050905090810190601f1680156102b55780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6e7472616374a264697066735822122036ffeec5964f760f8d23a72b97982be5f5ba929f68a45a43985de297419ecfc064736f6c63430007060033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c65645570677261646561626c6550726f78793a206e657720696d706c656d656e746174696f6e206973206e6f74206120636f6e7472616374416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6e7472616374"; + +type UpgradeableProxyConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: UpgradeableProxyConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class UpgradeableProxy__factory extends ContractFactory { + constructor(...args: UpgradeableProxyConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + _logic: string, + _data: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): Promise { + return super.deploy( + _logic, + _data, + overrides || {} + ) as Promise; + } + override getDeployTransaction( + _logic: string, + _data: BytesLike, + overrides?: PayableOverrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(_logic, _data, overrides || {}); + } + override attach(address: string): UpgradeableProxy { + return super.attach(address) as UpgradeableProxy; + } + override connect(signer: Signer): UpgradeableProxy__factory { + return super.connect(signer) as UpgradeableProxy__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): UpgradeableProxyInterface { + return new utils.Interface(_abi) as UpgradeableProxyInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): UpgradeableProxy { + return new Contract(address, _abi, signerOrProvider) as UpgradeableProxy; + } +} diff --git a/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/index.ts b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/index.ts new file mode 100644 index 0000000000..e39edf8339 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/proxy/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Proxy__factory } from "./Proxy__factory"; +export { UpgradeableProxy__factory } from "./UpgradeableProxy__factory"; diff --git a/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts new file mode 100644 index 0000000000..2e35875472 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts @@ -0,0 +1,349 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + ERC20, + ERC20Interface, +} from "../../../../../@openzeppelin/contracts/token/ERC20/ERC20"; + +const _abi = [ + { + inputs: [ + { + internalType: "string", + name: "name_", + type: "string", + }, + { + internalType: "string", + name: "symbol_", + type: "string", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + 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: "from", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "spender", + type: "address", + }, + ], + name: "allowance", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "approve", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "balanceOf", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "decimals", + outputs: [ + { + internalType: "uint8", + name: "", + type: "uint8", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "subtractedValue", + type: "uint256", + }, + ], + name: "decreaseAllowance", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "addedValue", + type: "uint256", + }, + ], + name: "increaseAllowance", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "recipient", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transfer", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + 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", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60806040523480156200001157600080fd5b50604051620013af380380620013af833981810160405260408110156200003757600080fd5b81019080805160405193929190846401000000008211156200005857600080fd5b838201915060208201858111156200006f57600080fd5b82518660018202830111640100000000821117156200008d57600080fd5b8083526020830192505050908051906020019080838360005b83811015620000c3578082015181840152602081019050620000a6565b50505050905090810190601f168015620000f15780820380516001836020036101000a031916815260200191505b50604052602001805160405193929190846401000000008211156200011557600080fd5b838201915060208201858111156200012c57600080fd5b82518660018202830111640100000000821117156200014a57600080fd5b8083526020830192505050908051906020019080838360005b838110156200018057808201518184015260208101905062000163565b50505050905090810190601f168015620001ae5780820380516001836020036101000a031916815260200191505b506040525050508160039080519060200190620001cd9291906200020b565b508060049080519060200190620001e69291906200020b565b506012600560006101000a81548160ff021916908360ff1602179055505050620002c1565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200024357600085556200028f565b82601f106200025e57805160ff19168380011785556200028f565b828001600101855582156200028f579182015b828111156200028e57825182559160200191906001019062000271565b5b5090506200029e9190620002a2565b5090565b5b80821115620002bd576000816000905550600101620002a3565b5090565b6110de80620002d16000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461025857806370a08231146102bc57806395d89b4114610314578063a457c2d714610397578063a9059cbb146103fb578063dd62ed3e1461045f576100a9565b806306fdde03146100ae578063095ea7b31461013157806318160ddd1461019557806323b872dd146101b3578063313ce56714610237575b600080fd5b6100b66104d7565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100f65780820151818401526020810190506100db565b50505050905090810190601f1680156101235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561014757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610579565b60405180821515815260200191505060405180910390f35b61019d610597565b6040518082815260200191505060405180910390f35b61021f600480360360608110156101c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506105a1565b60405180821515815260200191505060405180910390f35b61023f61067a565b604051808260ff16815260200191505060405180910390f35b6102a46004803603604081101561026e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610691565b60405180821515815260200191505060405180910390f35b6102fe600480360360208110156102d257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610744565b6040518082815260200191505060405180910390f35b61031c61078c565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561035c578082015181840152602081019050610341565b50505050905090810190601f1680156103895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103e3600480360360408110156103ad57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061082e565b60405180821515815260200191505060405180910390f35b6104476004803603604081101561041157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506108fb565b60405180821515815260200191505060405180910390f35b6104c16004803603604081101561047557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610919565b6040518082815260200191505060405180910390f35b606060038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561056f5780601f106105445761010080835404028352916020019161056f565b820191906000526020600020905b81548152906001019060200180831161055257829003601f168201915b5050505050905090565b600061058d6105866109a0565b84846109a8565b6001905092915050565b6000600254905090565b60006105ae848484610b9f565b61066f846105ba6109a0565b61066a8560405180606001604052806028815260200161101360289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006106206109a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e609092919063ffffffff16565b6109a8565b600190509392505050565b6000600560009054906101000a900460ff16905090565b600061073a61069e6109a0565b8461073585600160006106af6109a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f1a90919063ffffffff16565b6109a8565b6001905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b60006108f161083b6109a0565b846108ec8560405180606001604052806025815260200161108460259139600160006108656109a0565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e609092919063ffffffff16565b6109a8565b6001905092915050565b600061090f6109086109a0565b8484610b9f565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610a2e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806110606024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610ab4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180610fcb6022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610c25576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061103b6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610cab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180610fa86023913960400191505060405180910390fd5b610cb6838383610fa2565b610d2181604051806060016040528060268152602001610fed602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610e609092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610db4816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f1a90919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290610f0d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ed2578082015181840152602081019050610eb7565b50505050905090810190601f168015610eff5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b600080828401905083811015610f98576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e4dd8ddd9d95fda3dcf6c51af7ca2f806600f4b6fdba2f215e5995dfb394fd5264736f6c63430007060033"; + +type ERC20ConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: ERC20ConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class ERC20__factory extends ContractFactory { + constructor(...args: ERC20ConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + name_: string, + symbol_: string, + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(name_, symbol_, overrides || {}) as Promise; + } + override getDeployTransaction( + name_: string, + symbol_: string, + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(name_, symbol_, overrides || {}); + } + override attach(address: string): ERC20 { + return super.attach(address) as ERC20; + } + override connect(signer: Signer): ERC20__factory { + return super.connect(signer) as ERC20__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): ERC20Interface { + return new utils.Interface(_abi) as ERC20Interface; + } + static connect(address: string, signerOrProvider: Signer | Provider): ERC20 { + return new Contract(address, _abi, signerOrProvider) as ERC20; + } +} diff --git a/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts new file mode 100644 index 0000000000..888cd5905e --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts @@ -0,0 +1,206 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + IERC20, + IERC20Interface, +} from "../../../../../@openzeppelin/contracts/token/ERC20/IERC20"; + +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: "from", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "spender", + type: "address", + }, + ], + name: "allowance", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "approve", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "balanceOf", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "recipient", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transfer", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + 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", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IERC20__factory { + static readonly abi = _abi; + static createInterface(): IERC20Interface { + return new utils.Interface(_abi) as IERC20Interface; + } + static connect(address: string, signerOrProvider: Signer | Provider): IERC20 { + return new Contract(address, _abi, signerOrProvider) as IERC20; + } +} diff --git a/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/index.ts b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/index.ts new file mode 100644 index 0000000000..d931e7a32e --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/ERC20/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { ERC20__factory } from "./ERC20__factory"; +export { IERC20__factory } from "./IERC20__factory"; diff --git a/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/index.ts b/src/assets/typechain-types/safe/factories/@openzeppelin/contracts/token/index.ts new file mode 100644 index 0000000000..da1e061ebc --- /dev/null +++ b/src/assets/typechain-types/safe/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/src/assets/typechain-types/safe/factories/@openzeppelin/index.ts b/src/assets/typechain-types/safe/factories/@openzeppelin/index.ts new file mode 100644 index 0000000000..6397da096a --- /dev/null +++ b/src/assets/typechain-types/safe/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/src/assets/typechain-types/safe/factories/@safe-global/index.ts b/src/assets/typechain-types/safe/factories/@safe-global/index.ts new file mode 100644 index 0000000000..7b6a5c60b1 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@safe-global/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as mockContract from "./mock-contract"; diff --git a/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/MockContract__factory.ts b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/MockContract__factory.ts new file mode 100644 index 0000000000..33ee388a5f --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/MockContract__factory.ts @@ -0,0 +1,563 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + MockContract, + MockContractInterface, +} from "../../../../../@safe-global/mock-contract/contracts/MockContract.sol/MockContract"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + stateMutability: "payable", + type: "fallback", + }, + { + inputs: [], + name: "DEFAULT_FALLBACK_VALUE", + outputs: [ + { + internalType: "bytes", + name: "", + type: "bytes", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "MOCKS_LIST_END", + outputs: [ + { + internalType: "bytes", + name: "", + type: "bytes", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "MOCKS_LIST_END_HASH", + outputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "MOCKS_LIST_START", + outputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "SENTINEL_ANY_MOCKS", + outputs: [ + { + internalType: "bytes4", + name: "", + type: "bytes4", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + name: "givenAnyReturn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "response", + type: "address", + }, + ], + name: "givenAnyReturnAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bool", + name: "response", + type: "bool", + }, + ], + name: "givenAnyReturnBool", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "response", + type: "uint256", + }, + ], + name: "givenAnyReturnUint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "givenAnyRevert", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "string", + name: "message", + type: "string", + }, + ], + name: "givenAnyRevertWithMessage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "givenAnyRunOutOfGas", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + name: "givenCalldataReturn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "address", + name: "response", + type: "address", + }, + ], + name: "givenCalldataReturnAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "bool", + name: "response", + type: "bool", + }, + ], + name: "givenCalldataReturnBool", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "bytes32", + name: "response", + type: "bytes32", + }, + ], + name: "givenCalldataReturnBytes32", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "uint256", + name: "response", + type: "uint256", + }, + ], + name: "givenCalldataReturnUint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + ], + name: "givenCalldataRevert", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "string", + name: "message", + type: "string", + }, + ], + name: "givenCalldataRevertWithMessage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + ], + name: "givenCalldataRunOutOfGas", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + name: "givenMethodReturn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "address", + name: "response", + type: "address", + }, + ], + name: "givenMethodReturnAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "bool", + name: "response", + type: "bool", + }, + ], + name: "givenMethodReturnBool", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "bytes32", + name: "response", + type: "bytes32", + }, + ], + name: "givenMethodReturnBytes32", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "uint256", + name: "response", + type: "uint256", + }, + ], + name: "givenMethodReturnUint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + ], + name: "givenMethodRevert", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "string", + name: "message", + type: "string", + }, + ], + name: "givenMethodRevertWithMessage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + ], + name: "givenMethodRunOutOfGas", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "invocationCount", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + ], + name: "invocationCountForCalldata", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + ], + name: "invocationCountForMethod", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "reset", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes4", + name: "methodId", + type: "bytes4", + }, + { + internalType: "bytes", + name: "originalMsgData", + type: "bytes", + }, + ], + name: "updateInvocationCount", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + stateMutability: "payable", + type: "receive", + }, +] as const; + +const _bytecode = + "0x60806040526000604051602001808215158152602001915050604051602081830303815290604052600b90805190602001906200003e9291906200017e565b503480156200004c57600080fd5b506040518060400160405280600481526020017f30786666000000000000000000000000000000000000000000000000000000008152506000807f010000000000000000000000000000000000000000000000000000000000000081526020019081526020016000209080519060200190620000ca9291906200017e565b507f0100000000000000000000000000000000000000000000000000000000000000600560007f01000000000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548163ffffffff021916908360e01c021790555062000234565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620001b6576000855562000202565b82601f10620001d157805160ff191683800117855562000202565b8280016001018555821562000202579182015b8281111562000201578251825591602001919060010190620001e4565b5b50905062000211919062000215565b5090565b5b808211156200023057600081600090555060010162000216565b5090565b613c4b80620002446000396000f3fe6080604052600436106101f25760003560e01c80637cd96ee41161010d578063cf11ff5d116100a0578063e211b8a51161006f578063e211b8a514611062578063eb861f6914611079578063f07da229146110ff578063f5afa9c114611149578063fa904ee0146111d957610201565b8063cf11ff5d14610e8f578063d6fe977814610f35578063d73ca0ac14610fbb578063d826f88f1461104b57610201565b8063aa788c55116100dc578063aa788c5514610c4d578063af21ac7814610cd3578063b3901f2914610d0e578063c6ee167f14610db457610201565b80637cd96ee41461098157806387abab6514610a115780639a1dc86b14610a975780639eaeed7514610b7257610201565b8063586984a41161018557806367aad04a1161015457806367aad04a146107ed578063682b47971461081857806368ab6f2f146108695780636f400756146108ef57610201565b8063586984a4146104f557806358cbc0251461058f5780635a3855ab14610680578063619365941461071257610201565b80632ed238dc116101c15780632ed238dc146103dc57806336ff0ee5146104075780633956dc6b146104445780634937c4f61461045b57610201565b80630a20119f1461020b5780630f91beea14610236578063122aea81146102c657806321fed4d61461035657610201565b36610201576101ff611269565b005b610209611269565b005b34801561021757600080fd5b50610220611b71565b6040518082815260200191505060405180910390f35b34801561024257600080fd5b506102c46004803603604081101561025957600080fd5b810190808035906020019064010000000081111561027657600080fd5b82018360208201111561028857600080fd5b803590602001918460018302840111640100000000831117156102aa57600080fd5b909192939192939080359060200190929190505050611b7b565b005b3480156102d257600080fd5b506102db611bed565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561031b578082015181840152602081019050610300565b50505050905090810190601f1680156103485780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561036257600080fd5b506103da6004803603602081101561037957600080fd5b810190808035906020019064010000000081111561039657600080fd5b8201836020820111156103a857600080fd5b803590602001918460018302840111640100000000831117156103ca57600080fd5b9091929391929390505050611c13565b005b3480156103e857600080fd5b506103f1611cad565b6040518082815260200191505060405180910390f35b34801561041357600080fd5b506104426004803603602081101561042a57600080fd5b81019080803515159060200190929190505050611ced565b005b34801561045057600080fd5b50610459611d18565b005b34801561046757600080fd5b506104df6004803603602081101561047e57600080fd5b810190808035906020019064010000000081111561049b57600080fd5b8201836020820111156104ad57600080fd5b803590602001918460018302840111640100000000831117156104cf57600080fd5b9091929391929390505050611d3e565b6040518082815260200191505060405180910390f35b34801561050157600080fd5b506105796004803603602081101561051857600080fd5b810190808035906020019064010000000081111561053557600080fd5b82018360208201111561054757600080fd5b8035906020019184600183028401116401000000008311171561056957600080fd5b9091929391929390505050611dfc565b6040518082815260200191505060405180910390f35b34801561059b57600080fd5b5061067e600480360360408110156105b257600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190803590602001906401000000008111156105f857600080fd5b82018360208201111561060a57600080fd5b8035906020019184600183028401116401000000008311171561062c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611e53565b005b34801561068c57600080fd5b50610710600480360360408110156106a357600080fd5b81019080803590602001906401000000008111156106c057600080fd5b8201836020820111156106d257600080fd5b803590602001918460018302840111640100000000831117156106f457600080fd5b9091929391929390803515159060200190929190505050611ffa565b005b34801561071e57600080fd5b506107eb6004803603604081101561073557600080fd5b810190808035906020019064010000000081111561075257600080fd5b82018360208201111561076457600080fd5b8035906020019184600183028401116401000000008311171561078657600080fd5b9091929391929390803590602001906401000000008111156107a757600080fd5b8201836020820111156107b957600080fd5b803590602001918460018302840111640100000000831117156107db57600080fd5b909192939192939050505061206c565b005b3480156107f957600080fd5b50610802612104565b6040518082815260200191505060405180910390f35b34801561082457600080fd5b506108676004803603602081101561083b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612128565b005b34801561087557600080fd5b506108ed6004803603602081101561088c57600080fd5b81019080803590602001906401000000008111156108a957600080fd5b8201836020820111156108bb57600080fd5b803590602001918460018302840111640100000000831117156108dd57600080fd5b9091929391929390505050612152565b005b3480156108fb57600080fd5b5061097f6004803603604081101561091257600080fd5b810190808035906020019064010000000081111561092f57600080fd5b82018360208201111561094157600080fd5b8035906020019184600183028401116401000000008311171561096357600080fd5b9091929391929390803515159060200190929190505050612224565b005b34801561098d57600080fd5b50610996612296565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156109d65780820151818401526020810190506109bb565b50505050905090810190601f168015610a035780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b348015610a1d57600080fd5b50610a9560048036036020811015610a3457600080fd5b8101908080359060200190640100000000811115610a5157600080fd5b820183602082011115610a6357600080fd5b80359060200191846001830284011164010000000083111715610a8557600080fd5b90919293919293905050506122cf565b005b348015610aa357600080fd5b50610b7060048036036040811015610aba57600080fd5b8101908080359060200190640100000000811115610ad757600080fd5b820183602082011115610ae957600080fd5b80359060200191846001830284011164010000000083111715610b0b57600080fd5b909192939192939080359060200190640100000000811115610b2c57600080fd5b820183602082011115610b3e57600080fd5b80359060200191846001830284011164010000000083111715610b6057600080fd5b9091929391929390505050612309565b005b348015610b7e57600080fd5b50610c4b60048036036040811015610b9557600080fd5b8101908080359060200190640100000000811115610bb257600080fd5b820183602082011115610bc457600080fd5b80359060200191846001830284011164010000000083111715610be657600080fd5b909192939192939080359060200190640100000000811115610c0757600080fd5b820183602082011115610c1957600080fd5b80359060200191846001830284011164010000000083111715610c3b57600080fd5b909192939192939050505061243e565b005b348015610c5957600080fd5b50610cd160048036036020811015610c7057600080fd5b8101908080359060200190640100000000811115610c8d57600080fd5b820183602082011115610c9f57600080fd5b80359060200191846001830284011164010000000083111715610cc157600080fd5b9091929391929390505050612510565b005b348015610cdf57600080fd5b50610d0c60048036036020811015610cf657600080fd5b81019080803590602001909291905050506125e2565b005b348015610d1a57600080fd5b50610db260048036036040811015610d3157600080fd5b8101908080359060200190640100000000811115610d4e57600080fd5b820183602082011115610d6057600080fd5b80359060200191846001830284011164010000000083111715610d8257600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506125f6565b005b348015610dc057600080fd5b50610e8d60048036036040811015610dd757600080fd5b8101908080359060200190640100000000811115610df457600080fd5b820183602082011115610e0657600080fd5b80359060200191846001830284011164010000000083111715610e2857600080fd5b909192939192939080359060200190640100000000811115610e4957600080fd5b820183602082011115610e5b57600080fd5b80359060200191846001830284011164010000000083111715610e7d57600080fd5b9091929391929390505050612667565b005b348015610e9b57600080fd5b50610f3360048036036040811015610eb257600080fd5b8101908080359060200190640100000000811115610ecf57600080fd5b820183602082011115610ee157600080fd5b80359060200191846001830284011164010000000083111715610f0357600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506126ff565b005b348015610f4157600080fd5b50610fb960048036036020811015610f5857600080fd5b8101908080359060200190640100000000811115610f7557600080fd5b820183602082011115610f8757600080fd5b80359060200191846001830284011164010000000083111715610fa957600080fd5b9091929391929390505050612770565b005b348015610fc757600080fd5b5061104960048036036040811015610fde57600080fd5b8101908080359060200190640100000000811115610ffb57600080fd5b82018360208201111561100d57600080fd5b8035906020019184600183028401116401000000008311171561102f57600080fd5b9091929391929390803590602001909291905050506127c1565b005b34801561105757600080fd5b5061106061281c565b005b34801561106e57600080fd5b50611077613099565b005b34801561108557600080fd5b506110fd6004803603602081101561109c57600080fd5b81019080803590602001906401000000008111156110b957600080fd5b8201836020820111156110cb57600080fd5b803590602001918460018302840111640100000000831117156110ed57600080fd5b90919293919293905050506130e5565b005b34801561110b57600080fd5b506111146131c9565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b34801561115557600080fd5b506111d76004803603604081101561116c57600080fd5b810190808035906020019064010000000081111561118957600080fd5b82018360208201111561119b57600080fd5b803590602001918460018302840111640100000000831117156111bd57600080fd5b9091929391929390803590602001909291905050506131ed565b005b3480156111e557600080fd5b50611267600480360360408110156111fc57600080fd5b810190808035906020019064010000000081111561121957600080fd5b82018360208201111561122b57600080fd5b8035906020019184600183028401116401000000008311171561124d57600080fd5b909192939192939080359060200190929190505050613248565b005b600080357fffffffff000000000000000000000000000000000000000000000000000000001690506001600281111561129e57fe5b6001600036604051808383808284378083019250505092505050908152602001604051809103902060009054906101000a900460ff1660028111156112df57fe5b14156113cb57600360003660405180838380828437808301925050509250505090815260200160405180910390206040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252838181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156113bc5780601f10611391576101008083540402835291602001916113bc565b820191906000526020600020905b81548152906001019060200180831161139f57829003601f168201915b50509250505060405180910390fd5b6002808111156113d757fe5b6001600036604051808383808284378083019250505092505050908152602001604051809103902060009054906101000a900460ff16600281111561141857fe5b1415611427576114266132ba565b5b6000600260003660405180838380828437808301925050509250505090815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156114e55780601f106114ba576101008083540402835291602001916114e5565b820191906000526020600020905b8154815290600101906020018083116114c857829003601f168201915b505050505090506000815114156117f4576001600281111561150357fe5b60066000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16600281111561156d57fe5b14156116825760086000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019081526020016000206040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252838181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156116735780601f1061164857610100808354040283529160200191611673565b820191906000526020600020905b81548152906001019060200180831161165657829003601f168201915b50509250505060405180910390fd5b60028081111561168e57fe5b60066000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1660028111156116f857fe5b1415611707576117066132ba565b5b60076000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117ec5780601f106117c1576101008083540402835291602001916117ec565b820191906000526020600020905b8154815290600101906020018083116117cf57829003601f168201915b505050505090505b6000815114156119c0576001600281111561180b57fe5b600a60009054906101000a900460ff16600281111561182657fe5b14156118ec57600c6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252838181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156118dd5780601f106118b2576101008083540402835291602001916118dd565b820191906000526020600020905b8154815290600101906020018083116118c057829003601f168201915b50509250505060405180910390fd5b6002808111156118f857fe5b600a60009054906101000a900460ff16600281111561191357fe5b1415611922576119216132ba565b5b600b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156119b85780601f1061198d576101008083540402835291602001916119b8565b820191906000526020600020905b81548152906001019060200180831161199b57829003601f168201915b505050505090505b60003073ffffffffffffffffffffffffffffffffffffffff16620186a08460003660405160240180847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509450505050506040516020818303038152906040527f58cbc025000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b60208310611af25780518252602082019150602081019050602083039250611acf565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038160008787f1925050503d8060008114611b55576040519150601f19603f3d011682016040523d82523d6000602084013e611b5a565b606091505b509150506000815114611b6957fe5b815182602001f35b6000600d54905090565b611be883838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505082604051602001808281526020019150506040516020818303038152906040526132df565b505050565b600060405160200180821515815260200191505060405160208183030381529060405281565b600260018383604051808383808284378083019250505092505050908152602001604051809103902060006101000a81548160ff02191690836002811115611c5757fe5b0217905550611ca982828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506133f5565b5050565b6040518060400160405280600481526020017f30786666000000000000000000000000000000000000000000000000000000008152508051906020012081565b600081611cfb576000611cfe565b60015b60ff169050611d14611d0f826134e0565b61353b565b5050565b6002600a60006101000a81548160ff02191690836002811115611d3757fe5b0217905550565b600080611d8e84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050613579565b905060096000600e548360405160200180838152602001827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600401925050506040516020818303038152906040528051906020012081526020019081526020016000205491505092915050565b600060046000600e5485856040516020018084815260200183838082843780830192505050935050505060405160208183030381529060405280519060200120815260200190815260200160002054905092915050565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611ed7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180613beb602b913960400191505060405180910390fd5b6001600d60008282540192505081905550600160096000600e548560405160200180838152602001827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526004019250505060405160208183030381529060405280519060200120815260200190815260200160002060008282540192505081905550600160046000600e54846040516020018083815260200182805190602001908083835b60208310611f9f5780518252602082019150602081019050602083039250611f7c565b6001836020036101000a03801982511681845116808217855250505050505090500192505050604051602081830303815290604052805190602001208152602001908152602001600020600082825401925050819055505050565b60008161200857600061200b565b60015b60ff16905061206684848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612061836134e0565b6132df565b50505050565b6120fe84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506132df565b50505050565b7f010000000000000000000000000000000000000000000000000000000000000081565b61214f61214a8273ffffffffffffffffffffffffffffffffffffffff166134e0565b61353b565b50565b60006121a183838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050613579565b9050600260066000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff0219169083600281111561221157fe5b021790555061221f81613607565b505050565b600081612232576000612235565b60015b60ff16905061229084848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061228b836134e0565b61380c565b50505050565b6040518060400160405280600481526020017f307866660000000000000000000000000000000000000000000000000000000081525081565b6001600a60006101000a81548160ff021916908360028111156122ee57fe5b02179055508181600c9190612304929190613900565b505050565b600061235885858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050613579565b9050600160066000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff021916908360028111156123c857fe5b0217905550828260086000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152602001908152602001600020919061242d929190613900565b5061243781613607565b5050505050565b6001808585604051808383808284378083019250505092505050908152602001604051809103902060006101000a81548160ff0219169083600281111561248157fe5b0217905550818160038686604051808383808284378083019250505092505050908152602001604051809103902091906124bc929190613900565b5061250a84848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506133f5565b50505050565b600061255f83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050613579565b9050600160066000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff021916908360028111156125cf57fe5b02179055506125dd81613607565b505050565b6125f36125ee826134e0565b61353b565b50565b61266283838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061265d8373ffffffffffffffffffffffffffffffffffffffff166134e0565b6132df565b505050565b6126f984848080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505083838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061380c565b50505050565b61276b83838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506127668373ffffffffffffffffffffffffffffffffffffffff166134e0565b61380c565b505050565b6127bd82828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061353b565b5050565b61281783838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050612812836134e0565b6132df565b505050565b60008060007f010000000000000000000000000000000000000000000000000000000000000081526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156128e45780601f106128b9576101008083540402835291602001916128e4565b820191906000526020600020905b8154815290600101906020018083116128c757829003601f168201915b505050505090506000818051906020012090505b6040518060400160405280600481526020017f3078666600000000000000000000000000000000000000000000000000000000815250805190602001208114612bd25760006001836040518082805190602001908083835b602083106129735780518252602082019150602081019050602083039250612950565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff021916908360028111156129c157fe5b0217905550604051806020016040528060008152506002836040518082805190602001908083835b60208310612a0c57805182526020820191506020810190506020830392506129e9565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390209080519060200190612a5292919061398e565b50604051806020016040528060008152506003836040518082805190602001908083835b60208310612a995780518252602082019150602081019050602083039250612a76565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390209080519060200190612adf929190613a1c565b506000808281526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015612b865780601f10612b5b57610100808354040283529160200191612b86565b820191906000526020600020905b815481529060010190602001808311612b6957829003601f168201915b50505050509150604051806020016040528060008152506000808381526020019081526020016000209080519060200190612bc292919061398e565b50818051906020012090506128f8565b6040518060400160405280600481526020017f30786666000000000000000000000000000000000000000000000000000000008152506000807f010000000000000000000000000000000000000000000000000000000000000081526020019081526020016000209080519060200190612c4d929190613aaa565b506000600560007f01000000000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460e01b90505b7f01000000000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614612f71576000819050600060066000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690836002811115612daa57fe5b02179055506040518060200160405280600081525060076000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019081526020016000209080519060200190612e2392919061398e565b506040518060200160405280600081525060086000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019081526020016000209080519060200190612e98929190613a1c565b5060056000827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460e01b9150600060e01b60056000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548163ffffffff021916908360e01c021790555050612cd2565b7f0100000000000000000000000000000000000000000000000000000000000000600560007f01000000000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548163ffffffff021916908360e01c02179055506000604051602001808215158152602001915050604051602081830303815290604052600b9080519060200190613056929190613aaa565b506000600a60006101000a81548160ff0219169083600281111561307657fe5b02179055506000600d819055506001600e60008282540192505081905550505050565b6001600a60006101000a81548160ff021916908360028111156130b857fe5b021790555060405180602001604052806000815250600c90805190602001906130e2929190613a1c565b50565b6001808383604051808383808284378083019250505092505050908152602001604051809103902060006101000a81548160ff0219169083600281111561312857fe5b0217905550604051806020016040528060008152506003838360405180838380828437808301925050509250505090815260200160405180910390209080519060200190613177929190613a1c565b506131c582828080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506133f5565b5050565b7f010000000000000000000000000000000000000000000000000000000000000081565b61324383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061323e836134e0565b61380c565b505050565b6132b583838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050826040516020018082815260200191505060405160208183030381529060405261380c565b505050565b5b6001156132dd5760006060600060c060008060066107d05a03f19050506132bb565b565b60006001836040518082805190602001908083835b6020831061331757805182526020820191506020810190506020830392506132f4565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083600281111561336557fe5b0217905550806002836040518082805190602001908083835b602083106133a1578051825260208201915060208101905060208303925061337e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906133e7929190613aaa565b506133f1826133f5565b5050565b600081805190602001209050600080600083815260200190815260200160002080546001816001161561010002031660029004905014156134dc576000807f010000000000000000000000000000000000000000000000000000000000000081526020019081526020016000206000808381526020019081526020016000209080546001816001161561010002031660029004613493929190613b38565b50816000807f0100000000000000000000000000000000000000000000000000000000000000815260200190815260200160002090805190602001906134da929190613aaa565b505b5050565b6060602067ffffffffffffffff811180156134fa57600080fd5b506040519080825280601f01601f19166020018201604052801561352d5781602001600182028036833780820191505090505b509050816020820152919050565b6000600a60006101000a81548160ff0219169083600281111561355a57fe5b021790555080600b9080519060200190613575929190613aaa565b5050565b60008060005b60048110156135fd576008810260ff60f81b85838151811061359d57fe5b602001015160f81c60f81b167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916901c82179150808060010191505061357f565b5080915050919050565b600060e01b60056000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561380957600560007f01000000000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460e01b60056000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548163ffffffff021916908360e01c021790555080600560007f01000000000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548163ffffffff021916908360e01c02179055505b50565b600061381783613579565b9050600060066000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff0219169083600281111561388757fe5b02179055508160076000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002090805190602001906138f1929190613aaa565b506138fb81613607565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613936576000855561397d565b82601f1061394f57803560ff191683800117855561397d565b8280016001018555821561397d579182015b8281111561397c578235825591602001919060010190613961565b5b50905061398a9190613bcd565b5090565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826139c45760008555613a0b565b82601f106139dd57805160ff1916838001178555613a0b565b82800160010185558215613a0b579182015b82811115613a0a5782518255916020019190600101906139ef565b5b509050613a189190613bcd565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613a525760008555613a99565b82601f10613a6b57805160ff1916838001178555613a99565b82800160010185558215613a99579182015b82811115613a98578251825591602001919060010190613a7d565b5b509050613aa69190613bcd565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613ae05760008555613b27565b82601f10613af957805160ff1916838001178555613b27565b82800160010185558215613b27579182015b82811115613b26578251825591602001919060010190613b0b565b5b509050613b349190613bcd565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613b6e5760008555613bbc565b82601f10613b7f5780548555613bbc565b82800160010185558215613bbc57600052602060002091601f016020900482015b82811115613bbb578254825591600101919060010190613ba0565b5b509050613bc99190613bcd565b5090565b5b80821115613be6576000816000905550600101613bce565b509056fe43616e206f6e6c792062652063616c6c65642066726f6d2074686520636f6e747261637420697473656c66a26469706673582212203ef7673e579945edd502d99b36e5eddb240215c890da618cffb36e2089047e7f64736f6c63430007060033"; + +type MockContractConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: MockContractConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class MockContract__factory extends ContractFactory { + constructor(...args: MockContractConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): MockContract { + return super.attach(address) as MockContract; + } + override connect(signer: Signer): MockContract__factory { + return super.connect(signer) as MockContract__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): MockContractInterface { + return new utils.Interface(_abi) as MockContractInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockContract { + return new Contract(address, _abi, signerOrProvider) as MockContract; + } +} diff --git a/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/MockInterface__factory.ts b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/MockInterface__factory.ts new file mode 100644 index 0000000000..c743e534a5 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/MockInterface__factory.ts @@ -0,0 +1,431 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + MockInterface, + MockInterfaceInterface, +} from "../../../../../@safe-global/mock-contract/contracts/MockContract.sol/MockInterface"; + +const _abi = [ + { + inputs: [ + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + name: "givenAnyReturn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "response", + type: "address", + }, + ], + name: "givenAnyReturnAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bool", + name: "response", + type: "bool", + }, + ], + name: "givenAnyReturnBool", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "response", + type: "uint256", + }, + ], + name: "givenAnyReturnUint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "givenAnyRevert", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "string", + name: "message", + type: "string", + }, + ], + name: "givenAnyRevertWithMessage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "givenAnyRunOutOfGas", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + name: "givenCalldataReturn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "address", + name: "response", + type: "address", + }, + ], + name: "givenCalldataReturnAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "bool", + name: "response", + type: "bool", + }, + ], + name: "givenCalldataReturnBool", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "bytes32", + name: "response", + type: "bytes32", + }, + ], + name: "givenCalldataReturnBytes32", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "uint256", + name: "response", + type: "uint256", + }, + ], + name: "givenCalldataReturnUint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + ], + name: "givenCalldataRevert", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + { + internalType: "string", + name: "message", + type: "string", + }, + ], + name: "givenCalldataRevertWithMessage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + ], + name: "givenCalldataRunOutOfGas", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "method", + type: "bytes", + }, + { + internalType: "bytes", + name: "response", + type: "bytes", + }, + ], + name: "givenMethodReturn", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "method", + type: "bytes", + }, + { + internalType: "address", + name: "response", + type: "address", + }, + ], + name: "givenMethodReturnAddress", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "method", + type: "bytes", + }, + { + internalType: "bool", + name: "response", + type: "bool", + }, + ], + name: "givenMethodReturnBool", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "method", + type: "bytes", + }, + { + internalType: "bytes32", + name: "response", + type: "bytes32", + }, + ], + name: "givenMethodReturnBytes32", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "method", + type: "bytes", + }, + { + internalType: "uint256", + name: "response", + type: "uint256", + }, + ], + name: "givenMethodReturnUint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "method", + type: "bytes", + }, + ], + name: "givenMethodRevert", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "method", + type: "bytes", + }, + { + internalType: "string", + name: "message", + type: "string", + }, + ], + name: "givenMethodRevertWithMessage", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "method", + type: "bytes", + }, + ], + name: "givenMethodRunOutOfGas", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "invocationCount", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "call", + type: "bytes", + }, + ], + name: "invocationCountForCalldata", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "method", + type: "bytes", + }, + ], + name: "invocationCountForMethod", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "reset", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class MockInterface__factory { + static readonly abi = _abi; + static createInterface(): MockInterfaceInterface { + return new utils.Interface(_abi) as MockInterfaceInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MockInterface { + return new Contract(address, _abi, signerOrProvider) as MockInterface; + } +} diff --git a/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/index.ts b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/index.ts new file mode 100644 index 0000000000..c8e35c6e44 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/MockContract.sol/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { MockContract__factory } from "./MockContract__factory"; +export { MockInterface__factory } from "./MockInterface__factory"; diff --git a/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/index.ts b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/index.ts new file mode 100644 index 0000000000..4ff0ec7d21 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/contracts/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as mockContractSol from "./MockContract.sol"; diff --git a/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/index.ts b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/index.ts new file mode 100644 index 0000000000..6397da096a --- /dev/null +++ b/src/assets/typechain-types/safe/factories/@safe-global/mock-contract/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as contracts from "./contracts"; diff --git a/src/assets/typechain-types/safe/factories/contracts/SafeL2__factory.ts b/src/assets/typechain-types/safe/factories/contracts/SafeL2__factory.ts new file mode 100644 index 0000000000..b4fb0c772f --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/SafeL2__factory.ts @@ -0,0 +1,1097 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { SafeL2, SafeL2Interface } from "../../contracts/SafeL2"; + +const _abi = [ + { + 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: false, + internalType: "address", + name: "module", + type: "address", + }, + { + 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", + }, + ], + name: "SafeModuleTransaction", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + 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: "uint256", + name: "baseGas", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "gasPrice", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "gasToken", + type: "address", + }, + { + indexed: false, + internalType: "address payable", + name: "refundReceiver", + type: "address", + }, + { + indexed: false, + internalType: "bytes", + name: "signatures", + type: "bytes", + }, + { + indexed: false, + internalType: "bytes", + name: "additionalInfo", + type: "bytes", + }, + ], + name: "SafeMultiSigTransaction", + 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: "address", + name: "executor", + type: "address", + }, + { + internalType: "bytes32", + name: "dataHash", + type: "bytes32", + }, + { + 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: "", + type: "bytes", + }, + { + internalType: "bytes", + name: "signatures", + type: "bytes", + }, + ], + name: "checkSignatures", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "dataHash", + type: "bytes32", + }, + { + 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 payable", + name: "refundReceiver", + type: "address", + }, + { + internalType: "bytes", + name: "signatures", + type: "bytes", + }, + ], + name: "execTransaction", + outputs: [ + { + internalType: "bool", + name: "", + 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: [ + { + 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; + +const _bytecode = + "0x608060405234801561001057600080fd5b506001600481905550615526806100286000396000f3fe6080604052600436106101c65760003560e01c8063affed0e0116100f7578063e19a9dd911610095578063f08a032311610064578063f08a0323146113ec578063f698da251461143d578063f8dc5dd914611468578063ffa1ad74146114e35761021b565b8063e19a9dd91461120d578063e318b52b1461125e578063e75235b8146112ef578063ed516d511461131a5761021b565b8063cc2f8452116100d1578063cc2f845214610f5a578063d4d9bdcd14611027578063d8d11f7814611062578063e009cfde1461119c5761021b565b8063affed0e014610cd7578063b4faba0914610d02578063b63e800d14610dea5761021b565b80635ae6bd37116101645780636a7612021161013e5780636a761202146108d75780637d83297414610a93578063934f3a1114610b02578063a0e67e2b14610c6b5761021b565b80635ae6bd37146107fc578063610b59251461084b578063694e80c31461089c5761021b565b80632f54bf6e116101a05780632f54bf6e14610441578063468721a7146104a85780635229073f146105bd5780635624b25b1461073e5761021b565b80630d582f13146102835780631fcac7f3146102de5780632d9ad53d146103da5761021b565b3661021b573373ffffffffffffffffffffffffffffffffffffffff167f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d346040518082815260200191505060405180910390a2005b34801561022757600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5548061025457600080f35b60405136600082373360601b3682015260008060143601836000865af13d6000833e8061027f573d82fd5b3d82f35b34801561028f57600080fd5b506102dc600480360360408110156102a657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611573565b005b3480156102ea57600080fd5b506103d86004803603608081101561030157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561034857600080fd5b82018360208201111561035a57600080fd5b8035906020019184600183028401116401000000008311171561037c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001909291905050506118cd565b005b3480156103e657600080fd5b50610429600480360360208110156103fd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611cf1565b60405180821515815260200191505060405180910390f35b34801561044d57600080fd5b506104906004803603602081101561046457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dc3565b60405180821515815260200191505060405180910390f35b3480156104b457600080fd5b506105a5600480360360808110156104cb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561051257600080fd5b82018360208201111561052457600080fd5b8035906020019184600183028401116401000000008311171561054657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190505050611e93565b60405180821515815260200191505060405180910390f35b3480156105c957600080fd5b506106ba600480360360808110156105e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561062757600080fd5b82018360208201111561063957600080fd5b8035906020019184600183028401116401000000008311171561065b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190505050611f9e565b60405180831515815260200180602001828103825283818151815260200191508051906020019080838360005b838110156107025780820151818401526020810190506106e7565b50505050905090810190601f16801561072f5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561074a57600080fd5b506107816004803603604081101561076157600080fd5b810190808035906020019092919080359060200190929190505050612013565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107c15780820151818401526020810190506107a6565b50505050905090810190601f1680156107ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561080857600080fd5b506108356004803603602081101561081f57600080fd5b810190808035906020019092919050505061209a565b6040518082815260200191505060405180910390f35b34801561085757600080fd5b5061089a6004803603602081101561086e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506120b2565b005b3480156108a857600080fd5b506108d5600480360360208110156108bf57600080fd5b81019080803590602001909291905050506123b0565b005b610a7b60048036036101408110156108ee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561093557600080fd5b82018360208201111561094757600080fd5b8035906020019184600183028401116401000000008311171561096957600080fd5b9091929391929390803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156109f557600080fd5b820183602082011115610a0757600080fd5b80359060200191846001830284011164010000000083111715610a2957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612462565b60405180821515815260200191505060405180910390f35b348015610a9f57600080fd5b50610aec60048036036040811015610ab657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506126a1565b6040518082815260200191505060405180910390f35b348015610b0e57600080fd5b50610c6960048036036060811015610b2557600080fd5b810190808035906020019092919080359060200190640100000000811115610b4c57600080fd5b820183602082011115610b5e57600080fd5b80359060200191846001830284011164010000000083111715610b8057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115610be357600080fd5b820183602082011115610bf557600080fd5b80359060200191846001830284011164010000000083111715610c1757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506126c6565b005b348015610c7757600080fd5b50610c80612712565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610cc3578082015181840152602081019050610ca8565b505050509050019250505060405180910390f35b348015610ce357600080fd5b50610cec6128bb565b6040518082815260200191505060405180910390f35b348015610d0e57600080fd5b50610de860048036036040811015610d2557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610d6257600080fd5b820183602082011115610d7457600080fd5b80359060200191846001830284011164010000000083111715610d9657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506128c1565b005b348015610df657600080fd5b50610f586004803603610100811015610e0e57600080fd5b8101908080359060200190640100000000811115610e2b57600080fd5b820183602082011115610e3d57600080fd5b80359060200191846020830284011164010000000083111715610e5f57600080fd5b909192939192939080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610eaa57600080fd5b820183602082011115610ebc57600080fd5b80359060200191846001830284011164010000000083111715610ede57600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506128e8565b005b348015610f6657600080fd5b50610fb360048036036040811015610f7d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612aa6565b60405180806020018373ffffffffffffffffffffffffffffffffffffffff168152602001828103825284818151815260200191508051906020019060200280838360005b83811015611012578082015181840152602081019050610ff7565b50505050905001935050505060405180910390f35b34801561103357600080fd5b506110606004803603602081101561104a57600080fd5b8101908080359060200190929190505050612d86565b005b34801561106e57600080fd5b50611186600480360361014081101561108657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156110cd57600080fd5b8201836020820111156110df57600080fd5b8035906020019184600183028401116401000000008311171561110157600080fd5b9091929391929390803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612ee1565b6040518082815260200191505060405180910390f35b3480156111a857600080fd5b5061120b600480360360408110156111bf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612f0e565b005b34801561121957600080fd5b5061125c6004803603602081101561123057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061320b565b005b34801561126a57600080fd5b506112ed6004803603606081101561128157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506133b0565b005b3480156112fb57600080fd5b506113046138f8565b6040518082815260200191505060405180910390f35b34801561132657600080fd5b506113ea6004803603604081101561133d57600080fd5b81019080803590602001909291908035906020019064010000000081111561136457600080fd5b82018360208201111561137657600080fd5b8035906020019184600183028401116401000000008311171561139857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050613902565b005b3480156113f857600080fd5b5061143b6004803603602081101561140f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613920565b005b34801561144957600080fd5b50611452613977565b6040518082815260200191505060405180910390f35b34801561147457600080fd5b506114e16004803603606081101561148b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506139f3565b005b3480156114ef57600080fd5b506114f8613d4e565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561153857808201518184015260208101905061151d565b50505050905090810190601f1680156115655780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61157b613d87565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806115e25750600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8061161857503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15611647576116467f4753323033000000000000000000000000000000000000000000000000000000613de6565b5b600073ffffffffffffffffffffffffffffffffffffffff16600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611704576117037f4753323034000000000000000000000000000000000000000000000000000000613de6565b5b60026000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160026000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506003600081548092919060010191905055508173ffffffffffffffffffffffffffffffffffffffff167f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea2660405160405180910390a280600454146118c9576118c8816123b0565b5b5050565b6118e1604182613e2590919063ffffffff16565b82511015611913576119127f4753303230000000000000000000000000000000000000000000000000000000613de6565b5b6000808060008060005b86811015611ce55761192f8882613e5f565b8260ff16925080945081955082965050505060008414156119ac578260001c9450611964604188613e2590919063ffffffff16565b8260001c1015611998576119977f4753303231000000000000000000000000000000000000000000000000000000613de6565b5b6119a7858a8a8560001c613e8e565b611ba9565b6001841415611a7b578260001c94508473ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614158015611a4757506000600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008b815260200190815260200160002054145b15611a7657611a757f4753303235000000000000000000000000000000000000000000000000000000613de6565b5b611ba8565b601e841115611b405760018960405160200180807f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250601c018281526020019150506040516020818303038152906040528051906020012060048603858560405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611b2f573d6000803e3d6000fd5b505050602060405103519450611ba7565b60018985858560405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611b9a573d6000803e3d6000fd5b5050506020604051035194505b5b5b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16111580611c6f5750600073ffffffffffffffffffffffffffffffffffffffff16600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b80611ca65750600173ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15611cd557611cd47f4753303236000000000000000000000000000000000000000000000000000000613de6565b5b849550808060010191505061191d565b50505050505050505050565b60008173ffffffffffffffffffffffffffffffffffffffff16600173ffffffffffffffffffffffffffffffffffffffff1614158015611dbc5750600073ffffffffffffffffffffffffffffffffffffffff16600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b9050919050565b6000600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611e8b5750600073ffffffffffffffffffffffffffffffffffffffff16600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b159050919050565b60007fb648d3644f584ed1c2232d53c46d87e693586486ad0d1175f8656013110b714e3386868686604051808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200180602001836001811115611f0d57fe5b8152602001828103825284818151815260200191508051906020019080838360005b83811015611f4a578082015181840152602081019050611f2f565b50505050905090810190601f168015611f775780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a1611f94858585856140b7565b9050949350505050565b60006060600080611fb188888888614110565b91509150611fe2888888887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6143e2565b9350604051925060203d0183016040523d83523d6000602085013e61200882828661442e565b505094509492505050565b606060006020830267ffffffffffffffff8111801561203157600080fd5b506040519080825280601f01601f1916602001820160405280156120645781602001600182028036833780820191505090505b50905060005b8381101561208f5780850154806020830260208501015250808060010191505061206a565b508091505092915050565b60076020528060005260406000206000915090505481565b6120ba613d87565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614806121215750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b156121505761214f7f4753313031000000000000000000000000000000000000000000000000000000613de6565b5b600073ffffffffffffffffffffffffffffffffffffffff16600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461220d5761220c7f4753313032000000000000000000000000000000000000000000000000000000613de6565b5b60016000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060016000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844060405160405180910390a250565b6123b8613d87565b6003548111156123ec576123eb7f4753323031000000000000000000000000000000000000000000000000000000613de6565b5b600081141561241f5761241e7f4753323032000000000000000000000000000000000000000000000000000000613de6565b5b806004819055507f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c936004546040518082815260200191505060405180910390a150565b6000606060055433600454604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405160208183030381529060405290507f66753cd2356569ee081232e3be8909b950e0a76c1f8460c3a5e3c2be32b11bed8d8d8d8d8d8d8d8d8d8d8d8c604051808d73ffffffffffffffffffffffffffffffffffffffff1681526020018c8152602001806020018a600181111561251557fe5b81526020018981526020018881526020018781526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200184810384528e8e82818152602001925080828437600081840152601f19601f820116905080830192505050848103835286818151815260200191508051906020019080838360005b838110156125cf5780820151818401526020810190506125b4565b50505050905090810190601f1680156125fc5780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b8381101561263557808201518184015260208101905061261a565b50505050905090810190601f1680156126625780820380516001836020036101000a031916815260200191505b509f5050505050505050505050505050505060405180910390a161268f8d8d8d8d8d8d8d8d8d8d8d61456f565b9150509b9a5050505050505050505050565b6008602052816000526040600020602052806000526040600020600091509150505481565b600060045490506000811415612700576126ff7f4753303031000000000000000000000000000000000000000000000000000000613de6565b5b61270c338584846118cd565b50505050565b6060600060035467ffffffffffffffff8111801561272f57600080fd5b5060405190808252806020026020018201604052801561275e5781602001602082028036833780820191505090505b50905060008060026000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146128b2578083838151811061280957fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081806001019250506127c8565b82935050505090565b60055481565b600080825160208401855af46040518181523d60208201523d6000604083013e60403d0181fd5b6129338a8a80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505089614a06565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146129715761297084614dad565b5b6129bf8787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050614e31565b60008211156129d9576129d78260006001868561503b565b505b3373ffffffffffffffffffffffffffffffffffffffff167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b8960405180806020018581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281038252878782818152602001925060200280828437600081840152601f19601f820116905080830192505050965050505050505060405180910390a250505050505050505050565b60606000600173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015612aed5750612aeb84611cf1565b155b15612b1c57612b1b7f4753313035000000000000000000000000000000000000000000000000000000613de6565b5b6000831415612b4f57612b4e7f4753313036000000000000000000000000000000000000000000000000000000613de6565b5b8267ffffffffffffffff81118015612b6657600080fd5b50604051908082528060200260200182016040528015612b955781602001602082028036833780820191505090505b5091506000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015612c675750600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612c7257508381105b15612d2d5781838281518110612c8457fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508080600101915050612bfd565b600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612d7b57826001820381518110612d7057fe5b602002602001015191505b808352509250929050565b600073ffffffffffffffffffffffffffffffffffffffff16600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612e4457612e437f4753303330000000000000000000000000000000000000000000000000000000613de6565b5b6001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16817ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c60405160405180910390a350565b6000612ef68c8c8c8c8c8c8c8c8c8c8c6151ef565b8051906020012090509b9a5050505050505050505050565b612f16613d87565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480612f7d5750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15612fac57612fab7f4753313031000000000000000000000000000000000000000000000000000000613de6565b5b8073ffffffffffffffffffffffffffffffffffffffff16600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613068576130677f4753313033000000000000000000000000000000000000000000000000000000613de6565b5b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427660405160405180910390a25050565b613213613d87565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415801561331857508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f945b8148000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060206040518083038186803b1580156132db57600080fd5b505afa1580156132ef573d6000803e3d6000fd5b505050506040513d602081101561330557600080fd5b8101908080519060200190929190505050155b15613347576133467f4753333030000000000000000000000000000000000000000000000000000000613de6565b5b807f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8558073ffffffffffffffffffffffffffffffffffffffff167f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa260405160405180910390a250565b6133b8613d87565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16148061341f5750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b8061345557503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15613484576134837f4753323033000000000000000000000000000000000000000000000000000000613de6565b5b600073ffffffffffffffffffffffffffffffffffffffff16600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613541576135407f4753323034000000000000000000000000000000000000000000000000000000613de6565b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806135a85750600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b156135d7576135d67f4753323033000000000000000000000000000000000000000000000000000000613de6565b5b8173ffffffffffffffffffffffffffffffffffffffff16600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613693576136927f4753323035000000000000000000000000000000000000000000000000000000613de6565b5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf60405160405180910390a28073ffffffffffffffffffffffffffffffffffffffff167f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea2660405160405180910390a2505050565b6000600454905090565b61391c8260405180602001604052806000815250836126c6565b5050565b613928613d87565b61393181614dad565b8073ffffffffffffffffffffffffffffffffffffffff167f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b060405160405180910390a250565b6000804690507f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a7946921860001b8130604051602001808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200193505050506040516020818303038152906040528051906020012091505090565b6139fb613d87565b806001600354031015613a3257613a317f4753323031000000000000000000000000000000000000000000000000000000613de6565b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480613a995750600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15613ac857613ac77f4753323033000000000000000000000000000000000000000000000000000000613de6565b5b8173ffffffffffffffffffffffffffffffffffffffff16600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613b8457613b837f4753323035000000000000000000000000000000000000000000000000000000613de6565b5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600360008154809291906001900391905055508173ffffffffffffffffffffffffffffffffffffffff167ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf60405160405180910390a28060045414613d4957613d48816123b0565b5b505050565b6040518060400160405280600581526020017f312e342e3100000000000000000000000000000000000000000000000000000081525081565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613de457613de37f4753303331000000000000000000000000000000000000000000000000000000613de6565b5b565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260056024820152816044820152606481fd5b600080831415613e385760009050613e59565b6000828402905082848281613e4957fe5b0414613e5457600080fd5b809150505b92915050565b6000806000836041026020810186015192506040810186015191506060810186015160001a9350509250925092565b8151613ea460208361539790919063ffffffff16565b1115613ed457613ed37f4753303232000000000000000000000000000000000000000000000000000000613de6565b5b60006020828401015190508251613f0782613ef960208661539790919063ffffffff16565b61539790919063ffffffff16565b1115613f3757613f367f4753303233000000000000000000000000000000000000000000000000000000613de6565b5b60606020838501019050631626ba7e60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168673ffffffffffffffffffffffffffffffffffffffff16631626ba7e87846040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015613fdb578082015181840152602081019050613fc0565b50505050905090810190601f1680156140085780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b15801561402657600080fd5b505afa15801561403a573d6000803e3d6000fd5b505050506040513d602081101561405057600080fd5b81019080805190602001909291905050507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146140af576140ae7f4753303234000000000000000000000000000000000000000000000000000000613de6565b5b505050505050565b60008060006140c887878787614110565b915091506140f9878787877fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6143e2565b925061410682828561442e565b5050949350505050565b60008061411b6153b6565b9150600173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156141e65750600073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b614258576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260058152602001807f475331303400000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146143d9578173ffffffffffffffffffffffffffffffffffffffff1663728c297287878787336040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff168152602001858152602001806020018460018111156142f257fe5b81526020018373ffffffffffffffffffffffffffffffffffffffff168152602001828103825285818151815260200191508051906020019080838360005b8381101561434b578082015181840152602081019050614330565b50505050905090810190601f1680156143785780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561439b57600080fd5b505af11580156143af573d6000803e3d6000fd5b505050506040513d60208110156143c557600080fd5b810190808051906020019092919050505090505b94509492505050565b60006001808111156143f057fe5b8360018111156143fc57fe5b1415614415576000808551602087018986f49050614425565b600080855160208701888a87f190505b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146144d8578273ffffffffffffffffffffffffffffffffffffffff16639327136883836040518363ffffffff1660e01b815260040180838152602001821515815260200192505050600060405180830381600087803b1580156144bf57600080fd5b505af11580156144d3573d6000803e3d6000fd5b505050505b8015614526573373ffffffffffffffffffffffffffffffffffffffff167f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb860405160405180910390a261456a565b3373ffffffffffffffffffffffffffffffffffffffff167facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37560405160405180910390a25b505050565b6000806145958d8d8d8d8d8d8d8d8d8d6005600081548092919060010191905055612ee1565b90506145a18184613902565b60006145ab6153b6565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614614791578073ffffffffffffffffffffffffffffffffffffffff166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b8152600401808d73ffffffffffffffffffffffffffffffffffffffff1681526020018c8152602001806020018a600181111561464e57fe5b81526020018981526020018881526020018781526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001806020018473ffffffffffffffffffffffffffffffffffffffff16815260200183810383528d8d82818152602001925080828437600081840152601f19601f820116905080830192505050838103825285818151815260200191508051906020019080838360005b83811015614720578082015181840152602081019050614705565b50505050905090810190601f16801561474d5780820380516001836020036101000a031916815260200191505b509e505050505050505050505050505050600060405180830381600087803b15801561477857600080fd5b505af115801561478c573d6000803e3d6000fd5b505050505b6101f46147b86109c48b01603f60408d02816147a957fe5b046153df90919063ffffffff16565b015a10156147ea576147e97f4753303130000000000000000000000000000000000000000000000000000000613de6565b5b60005a90506148538f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e60008d14614848578e61484e565b6109c45a035b6143e2565b93506148685a826153f990919063ffffffff16565b905083158015614878575060008a145b80156148845750600088145b156148b3576148b27f4753303133000000000000000000000000000000000000000000000000000000613de6565b5b6000808911156148cd576148ca828b8b8b8b61503b565b90505b841561491057837f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e826040518082815260200191505060405180910390a2614949565b837f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23826040518082815260200191505060405180910390a25b5050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146149f5578073ffffffffffffffffffffffffffffffffffffffff16639327136883856040518363ffffffff1660e01b815260040180838152602001821515815260200192505050600060405180830381600087803b1580156149dc57600080fd5b505af11580156149f0573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b60006004541115614a3b57614a3a7f4753323030000000000000000000000000000000000000000000000000000000613de6565b5b8151811115614a6e57614a6d7f4753323031000000000000000000000000000000000000000000000000000000613de6565b5b6000811415614aa157614aa07f4753323032000000000000000000000000000000000000000000000000000000613de6565b5b60006001905060005b8351811015614d19576000848281518110614ac157fe5b60200260200101519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480614b325750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b80614b6857503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b80614b9e57508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15614bcd57614bcc7f4753323033000000000000000000000000000000000000000000000000000000613de6565b5b600073ffffffffffffffffffffffffffffffffffffffff16600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614c8a57614c897f4753323034000000000000000000000000000000000000000000000000000000613de6565b5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550809250508080600101915050614aaa565b506001600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550825160038190555081600481905550505050565b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614e0b57614e0a7f4753343030000000000000000000000000000000000000000000000000000000613de6565b5b807f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d55550565b600073ffffffffffffffffffffffffffffffffffffffff1660016000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614eef57614eee7f4753313030000000000000000000000000000000000000000000000000000000613de6565b5b6001806000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461503757614fab82615419565b614fd957614fd87f4753303032000000000000000000000000000000000000000000000000000000613de6565b5b6150088260008360017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6143e2565b615036576150357f4753303030000000000000000000000000000000000000000000000000000000613de6565b5b5b5050565b600080600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614615078578261507a565b325b9050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415615184576150e43a86106150c1573a6150c3565b855b6150d6888a61539790919063ffffffff16565b613e2590919063ffffffff16565b915060008173ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d8060008114615146576040519150601f19603f3d011682016040523d82523d6000602084013e61514b565b606091505b505090508061517e5761517d7f4753303131000000000000000000000000000000000000000000000000000000613de6565b5b506151e5565b6151a98561519b888a61539790919063ffffffff16565b613e2590919063ffffffff16565b91506151b684828461542c565b6151e4576151e37f4753303132000000000000000000000000000000000000000000000000000000613de6565b5b5b5095945050505050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d60405180838380828437808301925050509250505060405180910390208c8c8c8c8c8c8c604051602001808c81526020018b73ffffffffffffffffffffffffffffffffffffffff1681526020018a815260200189815260200188600181111561528057fe5b81526020018781526020018681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019b505050505050505050505050604051602081830303815290604052805190602001209050601960f81b600160f81b61530c613977565b8360405160200180857effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101847effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018381526020018281526020019450505050506040516020818303038152906040529150509b9a5050505050505050505050565b6000808284019050838110156153ac57600080fd5b8091505092915050565b60007f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c854905090565b6000818310156153ef57816153f1565b825b905092915050565b60008282111561540857600080fd5b600082840390508091505092915050565b600080823b905060008111915050919050565b60008063a9059cbb8484604051602401808373ffffffffffffffffffffffffffffffffffffffff168152602001828152602001925050506040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050602060008251602084016000896127105a03f13d600081146154d357602081146154db57600093506154e6565b8193506154e6565b600051158215171593505b505050939250505056fea2646970667358221220052b989bb74ccea35f71025484b5eefc3a4b73719e6c7c40f681aa36409c1d3164736f6c63430007060033"; + +type SafeL2ConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: SafeL2ConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class SafeL2__factory extends ContractFactory { + constructor(...args: SafeL2ConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy(overrides?: Overrides & { from?: string }): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): SafeL2 { + return super.attach(address) as SafeL2; + } + override connect(signer: Signer): SafeL2__factory { + return super.connect(signer) as SafeL2__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): SafeL2Interface { + return new utils.Interface(_abi) as SafeL2Interface; + } + static connect(address: string, signerOrProvider: Signer | Provider): SafeL2 { + return new Contract(address, _abi, signerOrProvider) as SafeL2; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/Safe__factory.ts b/src/assets/typechain-types/safe/factories/contracts/Safe__factory.ts new file mode 100644 index 0000000000..eaeeb0ca08 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/Safe__factory.ts @@ -0,0 +1,992 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { Safe, SafeInterface } from "../../contracts/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: "address", + name: "executor", + type: "address", + }, + { + internalType: "bytes32", + name: "dataHash", + type: "bytes32", + }, + { + 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: "", + type: "bytes", + }, + { + internalType: "bytes", + name: "signatures", + type: "bytes", + }, + ], + name: "checkSignatures", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "dataHash", + type: "bytes32", + }, + { + 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 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: [ + { + 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; + +const _bytecode = + "0x608060405234801561001057600080fd5b5060016004819055506151dc806100286000396000f3fe6080604052600436106101c65760003560e01c8063affed0e0116100f7578063e19a9dd911610095578063f08a032311610064578063f08a0323146113ec578063f698da251461143d578063f8dc5dd914611468578063ffa1ad74146114e35761021b565b8063e19a9dd91461120d578063e318b52b1461125e578063e75235b8146112ef578063ed516d511461131a5761021b565b8063cc2f8452116100d1578063cc2f845214610f5a578063d4d9bdcd14611027578063d8d11f7814611062578063e009cfde1461119c5761021b565b8063affed0e014610cd7578063b4faba0914610d02578063b63e800d14610dea5761021b565b80635ae6bd37116101645780636a7612021161013e5780636a761202146108d75780637d83297414610a93578063934f3a1114610b02578063a0e67e2b14610c6b5761021b565b80635ae6bd37146107fc578063610b59251461084b578063694e80c31461089c5761021b565b80632f54bf6e116101a05780632f54bf6e14610441578063468721a7146104a85780635229073f146105bd5780635624b25b1461073e5761021b565b80630d582f13146102835780631fcac7f3146102de5780632d9ad53d146103da5761021b565b3661021b573373ffffffffffffffffffffffffffffffffffffffff167f3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d346040518082815260200191505060405180910390a2005b34801561022757600080fd5b507f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d5548061025457600080f35b60405136600082373360601b3682015260008060143601836000865af13d6000833e8061027f573d82fd5b3d82f35b34801561028f57600080fd5b506102dc600480360360408110156102a657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611573565b005b3480156102ea57600080fd5b506103d86004803603608081101561030157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561034857600080fd5b82018360208201111561035a57600080fd5b8035906020019184600183028401116401000000008311171561037c57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001909291905050506118cd565b005b3480156103e657600080fd5b50610429600480360360208110156103fd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611cf1565b60405180821515815260200191505060405180910390f35b34801561044d57600080fd5b506104906004803603602081101561046457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611dc3565b60405180821515815260200191505060405180910390f35b3480156104b457600080fd5b506105a5600480360360808110156104cb57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561051257600080fd5b82018360208201111561052457600080fd5b8035906020019184600183028401116401000000008311171561054657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190505050611e93565b60405180821515815260200191505060405180910390f35b3480156105c957600080fd5b506106ba600480360360808110156105e057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561062757600080fd5b82018360208201111561063957600080fd5b8035906020019184600183028401116401000000008311171561065b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190505050611eec565b60405180831515815260200180602001828103825283818151815260200191508051906020019080838360005b838110156107025780820151818401526020810190506106e7565b50505050905090810190601f16801561072f5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b34801561074a57600080fd5b506107816004803603604081101561076157600080fd5b810190808035906020019092919080359060200190929190505050611f61565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107c15780820151818401526020810190506107a6565b50505050905090810190601f1680156107ee5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561080857600080fd5b506108356004803603602081101561081f57600080fd5b8101908080359060200190929190505050611fe8565b6040518082815260200191505060405180910390f35b34801561085757600080fd5b5061089a6004803603602081101561086e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612000565b005b3480156108a857600080fd5b506108d5600480360360208110156108bf57600080fd5b81019080803590602001909291905050506122fe565b005b610a7b60048036036101408110156108ee57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561093557600080fd5b82018360208201111561094757600080fd5b8035906020019184600183028401116401000000008311171561096957600080fd5b9091929391929390803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156109f557600080fd5b820183602082011115610a0757600080fd5b80359060200191846001830284011164010000000083111715610a2957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506123b0565b60405180821515815260200191505060405180910390f35b348015610a9f57600080fd5b50610aec60048036036040811015610ab657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612847565b6040518082815260200191505060405180910390f35b348015610b0e57600080fd5b50610c6960048036036060811015610b2557600080fd5b810190808035906020019092919080359060200190640100000000811115610b4c57600080fd5b820183602082011115610b5e57600080fd5b80359060200191846001830284011164010000000083111715610b8057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115610be357600080fd5b820183602082011115610bf557600080fd5b80359060200191846001830284011164010000000083111715610c1757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061286c565b005b348015610c7757600080fd5b50610c806128b8565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610cc3578082015181840152602081019050610ca8565b505050509050019250505060405180910390f35b348015610ce357600080fd5b50610cec612a61565b6040518082815260200191505060405180910390f35b348015610d0e57600080fd5b50610de860048036036040811015610d2557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610d6257600080fd5b820183602082011115610d7457600080fd5b80359060200191846001830284011164010000000083111715610d9657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050612a67565b005b348015610df657600080fd5b50610f586004803603610100811015610e0e57600080fd5b8101908080359060200190640100000000811115610e2b57600080fd5b820183602082011115610e3d57600080fd5b80359060200191846020830284011164010000000083111715610e5f57600080fd5b909192939192939080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610eaa57600080fd5b820183602082011115610ebc57600080fd5b80359060200191846001830284011164010000000083111715610ede57600080fd5b9091929391929390803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050612a8e565b005b348015610f6657600080fd5b50610fb360048036036040811015610f7d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050612c4c565b60405180806020018373ffffffffffffffffffffffffffffffffffffffff168152602001828103825284818151815260200191508051906020019060200280838360005b83811015611012578082015181840152602081019050610ff7565b50505050905001935050505060405180910390f35b34801561103357600080fd5b506110606004803603602081101561104a57600080fd5b8101908080359060200190929190505050612f2c565b005b34801561106e57600080fd5b50611186600480360361014081101561108657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156110cd57600080fd5b8201836020820111156110df57600080fd5b8035906020019184600183028401116401000000008311171561110157600080fd5b9091929391929390803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050613087565b6040518082815260200191505060405180910390f35b3480156111a857600080fd5b5061120b600480360360408110156111bf57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506130b4565b005b34801561121957600080fd5b5061125c6004803603602081101561123057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506133b1565b005b34801561126a57600080fd5b506112ed6004803603606081101561128157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613556565b005b3480156112fb57600080fd5b50611304613a9e565b6040518082815260200191505060405180910390f35b34801561132657600080fd5b506113ea6004803603604081101561133d57600080fd5b81019080803590602001909291908035906020019064010000000081111561136457600080fd5b82018360208201111561137657600080fd5b8035906020019184600183028401116401000000008311171561139857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050613aa8565b005b3480156113f857600080fd5b5061143b6004803603602081101561140f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050613ac6565b005b34801561144957600080fd5b50611452613b1d565b6040518082815260200191505060405180910390f35b34801561147457600080fd5b506114e16004803603606081101561148b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050613b99565b005b3480156114ef57600080fd5b506114f8613ef4565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561153857808201518184015260208101905061151d565b50505050905090810190601f1680156115655780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61157b613f2d565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806115e25750600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b8061161857503073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15611647576116467f4753323033000000000000000000000000000000000000000000000000000000613f8c565b5b600073ffffffffffffffffffffffffffffffffffffffff16600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611704576117037f4753323034000000000000000000000000000000000000000000000000000000613f8c565b5b60026000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160026000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506003600081548092919060010191905055508173ffffffffffffffffffffffffffffffffffffffff167f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea2660405160405180910390a280600454146118c9576118c8816122fe565b5b5050565b6118e1604182613fcb90919063ffffffff16565b82511015611913576119127f4753303230000000000000000000000000000000000000000000000000000000613f8c565b5b6000808060008060005b86811015611ce55761192f8882614005565b8260ff16925080945081955082965050505060008414156119ac578260001c9450611964604188613fcb90919063ffffffff16565b8260001c1015611998576119977f4753303231000000000000000000000000000000000000000000000000000000613f8c565b5b6119a7858a8a8560001c614034565b611ba9565b6001841415611a7b578260001c94508473ffffffffffffffffffffffffffffffffffffffff168a73ffffffffffffffffffffffffffffffffffffffff1614158015611a4757506000600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008b815260200190815260200160002054145b15611a7657611a757f4753303235000000000000000000000000000000000000000000000000000000613f8c565b5b611ba8565b601e841115611b405760018960405160200180807f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250601c018281526020019150506040516020818303038152906040528051906020012060048603858560405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611b2f573d6000803e3d6000fd5b505050602060405103519450611ba7565b60018985858560405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611b9a573d6000803e3d6000fd5b5050506020604051035194505b5b5b8573ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16111580611c6f5750600073ffffffffffffffffffffffffffffffffffffffff16600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b80611ca65750600173ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16145b15611cd557611cd47f4753303236000000000000000000000000000000000000000000000000000000613f8c565b5b849550808060010191505061191d565b50505050505050505050565b60008173ffffffffffffffffffffffffffffffffffffffff16600173ffffffffffffffffffffffffffffffffffffffff1614158015611dbc5750600073ffffffffffffffffffffffffffffffffffffffff16600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b9050919050565b6000600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480611e8b5750600073ffffffffffffffffffffffffffffffffffffffff16600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16145b159050919050565b6000806000611ea48787878761425d565b91509150611ed5878787877fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61452f565b9250611ee282828561457b565b5050949350505050565b60006060600080611eff8888888861425d565b91509150611f30888888887fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61452f565b9350604051925060203d0183016040523d83523d6000602085013e611f5682828661457b565b505094509492505050565b606060006020830267ffffffffffffffff81118015611f7f57600080fd5b506040519080825280601f01601f191660200182016040528015611fb25781602001600182028036833780820191505090505b50905060005b83811015611fdd57808501548060208302602085010152508080600101915050611fb8565b508091505092915050565b60076020528060005260406000206000915090505481565b612008613f2d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16148061206f5750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1561209e5761209d7f4753313031000000000000000000000000000000000000000000000000000000613f8c565b5b600073ffffffffffffffffffffffffffffffffffffffff16600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461215b5761215a7f4753313032000000000000000000000000000000000000000000000000000000613f8c565b5b60016000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060016000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fecdf3a3effea5783a3c4c2140e677577666428d44ed9d474a0b3a4c9943f844060405160405180910390a250565b612306613f2d565b60035481111561233a576123397f4753323031000000000000000000000000000000000000000000000000000000613f8c565b5b600081141561236d5761236c7f4753323032000000000000000000000000000000000000000000000000000000613f8c565b5b806004819055507f610f7ff2b304ae8903c3de74c60c6ab1f7d6226b3f52c5161905bb5ad4039c936004546040518082815260200191505060405180910390a150565b6000806123d68d8d8d8d8d8d8d8d8d8d6005600081548092919060010191905055613087565b90506123e28184613aa8565b60006123ec6146bc565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146125d2578073ffffffffffffffffffffffffffffffffffffffff166375f0bb528f8f8f8f8f8f8f8f8f8f8f336040518d63ffffffff1660e01b8152600401808d73ffffffffffffffffffffffffffffffffffffffff1681526020018c8152602001806020018a600181111561248f57fe5b81526020018981526020018881526020018781526020018673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff168152602001806020018473ffffffffffffffffffffffffffffffffffffffff16815260200183810383528d8d82818152602001925080828437600081840152601f19601f820116905080830192505050838103825285818151815260200191508051906020019080838360005b83811015612561578082015181840152602081019050612546565b50505050905090810190601f16801561258e5780820380516001836020036101000a031916815260200191505b509e505050505050505050505050505050600060405180830381600087803b1580156125b957600080fd5b505af11580156125cd573d6000803e3d6000fd5b505050505b6101f46125f96109c48b01603f60408d02816125ea57fe5b046146e590919063ffffffff16565b015a101561262b5761262a7f4753303130000000000000000000000000000000000000000000000000000000613f8c565b5b60005a90506126948f8f8f8f8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508e60008d14612689578e61268f565b6109c45a035b61452f565b93506126a95a826146ff90919063ffffffff16565b9050831580156126b9575060008a145b80156126c55750600088145b156126f4576126f37f4753303133000000000000000000000000000000000000000000000000000000613f8c565b5b60008089111561270e5761270b828b8b8b8b61471f565b90505b841561275157837f442e715f626346e8c54381002da614f62bee8d27386535b2521ec8540898556e826040518082815260200191505060405180910390a261278a565b837f23428b18acfb3ea64b08dc0c1d296ea9c09702c09083ca5272e64d115b687d23826040518082815260200191505060405180910390a25b5050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612836578073ffffffffffffffffffffffffffffffffffffffff16639327136883856040518363ffffffff1660e01b815260040180838152602001821515815260200192505050600060405180830381600087803b15801561281d57600080fd5b505af1158015612831573d6000803e3d6000fd5b505050505b50509b9a5050505050505050505050565b6008602052816000526040600020602052806000526040600020600091509150505481565b6000600454905060008114156128a6576128a57f4753303031000000000000000000000000000000000000000000000000000000613f8c565b5b6128b2338584846118cd565b50505050565b6060600060035467ffffffffffffffff811180156128d557600080fd5b506040519080825280602002602001820160405280156129045781602001602082028036833780820191505090505b50905060008060026000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505b600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612a5857808383815181106129af57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600260008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050818060010192505061296e565b82935050505090565b60055481565b600080825160208401855af46040518181523d60208201523d6000604083013e60403d0181fd5b612ad98a8a80806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050896148d3565b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612b1757612b1684614c7a565b5b612b658787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050614cfe565b6000821115612b7f57612b7d8260006001868561471f565b505b3373ffffffffffffffffffffffffffffffffffffffff167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88b8b8b8b8960405180806020018581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281038252878782818152602001925060200280828437600081840152601f19601f820116905080830192505050965050505050505060405180910390a250505050505050505050565b60606000600173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015612c935750612c9184611cf1565b155b15612cc257612cc17f4753313035000000000000000000000000000000000000000000000000000000613f8c565b5b6000831415612cf557612cf47f4753313036000000000000000000000000000000000000000000000000000000613f8c565b5b8267ffffffffffffffff81118015612d0c57600080fd5b50604051908082528060200260200182016040528015612d3b5781602001602082028036833780820191505090505b5091506000600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614158015612e0d5750600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b8015612e1857508381105b15612ed35781838281518110612e2a57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691508080600101915050612da3565b600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614612f2157826001820381518110612f1657fe5b602002602001015191505b808352509250929050565b600073ffffffffffffffffffffffffffffffffffffffff16600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612fea57612fe97f4753303330000000000000000000000000000000000000000000000000000000613f8c565b5b6001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000838152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16817ff2a0eb156472d1440255b0d7c1e19cc07115d1051fe605b0dce69acfec884d9c60405160405180910390a350565b600061309c8c8c8c8c8c8c8c8c8c8c8c614f08565b8051906020012090509b9a5050505050505050505050565b6130bc613f2d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614806131235750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b15613152576131517f4753313031000000000000000000000000000000000000000000000000000000613f8c565b5b8073ffffffffffffffffffffffffffffffffffffffff16600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161461320e5761320d7f4753313033000000000000000000000000000000000000000000000000000000613f8c565b5b600160008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167faab4fa2b463f581b2b32cb3b7e3b704b9ce37cc209b5fb4d77e593ace405427660405160405180910390a25050565b6133b9613f2d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156134be57508073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f945b8148000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060206040518083038186803b15801561348157600080fd5b505afa158015613495573d6000803e3d6000fd5b505050506040513d60208110156134ab57600080fd5b8101908080519060200190929190505050155b156134ed576134ec7f4753333030000000000000000000000000000000000000000000000000000000613f8c565b5b807f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c8558073ffffffffffffffffffffffffffffffffffffffff167f1151116914515bc0891ff9047a6cb32cf902546f83066499bcf8ba33d2353fa260405160405180910390a250565b61355e613f2d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614806135c55750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b806135fb57503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b1561362a576136297f4753323033000000000000000000000000000000000000000000000000000000613f8c565b5b600073ffffffffffffffffffffffffffffffffffffffff16600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146136e7576136e67f4753323034000000000000000000000000000000000000000000000000000000613f8c565b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148061374e5750600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1561377d5761377c7f4753323033000000000000000000000000000000000000000000000000000000613f8c565b5b8173ffffffffffffffffffffffffffffffffffffffff16600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613839576138387f4753323035000000000000000000000000000000000000000000000000000000613f8c565b5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff167ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf60405160405180910390a28073ffffffffffffffffffffffffffffffffffffffff167f9465fa0c962cc76958e6373a993326400c1c94f8be2fe3a952adfa7f60b2ea2660405160405180910390a2505050565b6000600454905090565b613ac282604051806020016040528060008152508361286c565b5050565b613ace613f2d565b613ad781614c7a565b8073ffffffffffffffffffffffffffffffffffffffff167f5ac6c46c93c8d0e53714ba3b53db3e7c046da994313d7ed0d192028bc7c228b060405160405180910390a250565b6000804690507f47e79534a245952e8b16893a336b85a3d9ea9fa8c573f3d803afb92a7946921860001b8130604051602001808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200193505050506040516020818303038152906040528051906020012091505090565b613ba1613f2d565b806001600354031015613bd857613bd77f4753323031000000000000000000000000000000000000000000000000000000613f8c565b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161480613c3f5750600173ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15613c6e57613c6d7f4753323033000000000000000000000000000000000000000000000000000000613f8c565b5b8173ffffffffffffffffffffffffffffffffffffffff16600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614613d2a57613d297f4753323035000000000000000000000000000000000000000000000000000000613f8c565b5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600360008154809291906001900391905055508173ffffffffffffffffffffffffffffffffffffffff167ff8d49fc529812e9a7c5c50e69c20f0dccc0db8fa95c98bc58cc9a4f1c1299eaf60405160405180910390a28060045414613eef57613eee816122fe565b5b505050565b6040518060400160405280600581526020017f312e342e3100000000000000000000000000000000000000000000000000000081525081565b3073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613f8a57613f897f4753303331000000000000000000000000000000000000000000000000000000613f8c565b5b565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482015260056024820152816044820152606481fd5b600080831415613fde5760009050613fff565b6000828402905082848281613fef57fe5b0414613ffa57600080fd5b809150505b92915050565b6000806000836041026020810186015192506040810186015191506060810186015160001a9350509250925092565b815161404a6020836150b090919063ffffffff16565b111561407a576140797f4753303232000000000000000000000000000000000000000000000000000000613f8c565b5b600060208284010151905082516140ad8261409f6020866150b090919063ffffffff16565b6150b090919063ffffffff16565b11156140dd576140dc7f4753303233000000000000000000000000000000000000000000000000000000613f8c565b5b60606020838501019050631626ba7e60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168673ffffffffffffffffffffffffffffffffffffffff16631626ba7e87846040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019080838360005b83811015614181578082015181840152602081019050614166565b50505050905090810190601f1680156141ae5780820380516001836020036101000a031916815260200191505b50935050505060206040518083038186803b1580156141cc57600080fd5b505afa1580156141e0573d6000803e3d6000fd5b505050506040513d60208110156141f657600080fd5b81019080805190602001909291905050507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614614255576142547f4753303234000000000000000000000000000000000000000000000000000000613f8c565b5b505050505050565b6000806142686146bc565b9150600173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141580156143335750600073ffffffffffffffffffffffffffffffffffffffff16600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614155b6143a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260058152602001807f475331303400000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614614526578173ffffffffffffffffffffffffffffffffffffffff1663728c297287878787336040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018060200184600181111561443f57fe5b81526020018373ffffffffffffffffffffffffffffffffffffffff168152602001828103825285818151815260200191508051906020019080838360005b8381101561449857808201518184015260208101905061447d565b50505050905090810190601f1680156144c55780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b1580156144e857600080fd5b505af11580156144fc573d6000803e3d6000fd5b505050506040513d602081101561451257600080fd5b810190808051906020019092919050505090505b94509492505050565b600060018081111561453d57fe5b83600181111561454957fe5b1415614562576000808551602087018986f49050614572565b600080855160208701888a87f190505b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614614625578273ffffffffffffffffffffffffffffffffffffffff16639327136883836040518363ffffffff1660e01b815260040180838152602001821515815260200192505050600060405180830381600087803b15801561460c57600080fd5b505af1158015614620573d6000803e3d6000fd5b505050505b8015614673573373ffffffffffffffffffffffffffffffffffffffff167f6895c13664aa4f67288b25d7a21d7aaa34916e355fb9b6fae0a139a9085becb860405160405180910390a26146b7565b3373ffffffffffffffffffffffffffffffffffffffff167facd2c8702804128fdb0db2bb49f6d127dd0181c13fd45dbfe16de0930e2bd37560405160405180910390a25b505050565b60007f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c854905090565b6000818310156146f557816146f7565b825b905092915050565b60008282111561470e57600080fd5b600082840390508091505092915050565b600080600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461475c578261475e565b325b9050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415614868576147c83a86106147a5573a6147a7565b855b6147ba888a6150b090919063ffffffff16565b613fcb90919063ffffffff16565b915060008173ffffffffffffffffffffffffffffffffffffffff168360405180600001905060006040518083038185875af1925050503d806000811461482a576040519150601f19603f3d011682016040523d82523d6000602084013e61482f565b606091505b5050905080614862576148617f4753303131000000000000000000000000000000000000000000000000000000613f8c565b5b506148c9565b61488d8561487f888a6150b090919063ffffffff16565b613fcb90919063ffffffff16565b915061489a8482846150cf565b6148c8576148c77f4753303132000000000000000000000000000000000000000000000000000000613f8c565b5b5b5095945050505050565b60006004541115614908576149077f4753323030000000000000000000000000000000000000000000000000000000613f8c565b5b815181111561493b5761493a7f4753323031000000000000000000000000000000000000000000000000000000613f8c565b5b600081141561496e5761496d7f4753323032000000000000000000000000000000000000000000000000000000613f8c565b5b60006001905060005b8351811015614be657600084828151811061498e57fe5b60200260200101519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614806149ff5750600173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b80614a3557503073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b80614a6b57508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16145b15614a9a57614a997f4753323033000000000000000000000000000000000000000000000000000000613f8c565b5b600073ffffffffffffffffffffffffffffffffffffffff16600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614b5757614b567f4753323034000000000000000000000000000000000000000000000000000000613f8c565b5b80600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550809250508080600101915050614977565b506001600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550825160038190555081600481905550505050565b3073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415614cd857614cd77f4753343030000000000000000000000000000000000000000000000000000000613f8c565b5b807f6c9a6c4a39284e37ed1cf53d337577d14212a4870fb976a4366c693b939918d55550565b600073ffffffffffffffffffffffffffffffffffffffff1660016000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614614dbc57614dbb7f4753313030000000000000000000000000000000000000000000000000000000613f8c565b5b6001806000600173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614614f0457614e7882615193565b614ea657614ea57f4753303032000000000000000000000000000000000000000000000000000000613f8c565b5b614ed58260008360017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61452f565b614f0357614f027f4753303030000000000000000000000000000000000000000000000000000000613f8c565b5b5b5050565b606060007fbb8310d486368db6bd6f849402fdd73ad53d316b5a4b2644ad6efe0f941286d860001b8d8d8d8d60405180838380828437808301925050509250505060405180910390208c8c8c8c8c8c8c604051602001808c81526020018b73ffffffffffffffffffffffffffffffffffffffff1681526020018a8152602001898152602001886001811115614f9957fe5b81526020018781526020018681526020018581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019b505050505050505050505050604051602081830303815290604052805190602001209050601960f81b600160f81b615025613b1d565b8360405160200180857effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101847effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018381526020018281526020019450505050506040516020818303038152906040529150509b9a5050505050505050505050565b6000808284019050838110156150c557600080fd5b8091505092915050565b60008063a9059cbb8484604051602401808373ffffffffffffffffffffffffffffffffffffffff168152602001828152602001925050506040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050602060008251602084016000896127105a03f13d60008114615176576020811461517e5760009350615189565b819350615189565b600051158215171593505b5050509392505050565b600080823b90506000811191505091905056fea26469706673582212209e4fe7fb10d62fc29a8205ab26e2d275348329a98a1a5e49e859c1c86ef9a3a764736f6c63430007060033"; + +type SafeConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: SafeConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class Safe__factory extends ContractFactory { + constructor(...args: SafeConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy(overrides?: Overrides & { from?: string }): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): Safe { + return super.attach(address) as Safe; + } + override connect(signer: Signer): Safe__factory { + return super.connect(signer) as Safe__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): SafeInterface { + return new utils.Interface(_abi) as SafeInterface; + } + static connect(address: string, signerOrProvider: Signer | Provider): Safe { + return new Contract(address, _abi, signerOrProvider) as Safe; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/accessors/SimulateTxAccessor__factory.ts b/src/assets/typechain-types/safe/factories/contracts/accessors/SimulateTxAccessor__factory.ts new file mode 100644 index 0000000000..1e1ba472a6 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/accessors/SimulateTxAccessor__factory.ts @@ -0,0 +1,111 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + SimulateTxAccessor, + SimulateTxAccessorInterface, +} from "../../../contracts/accessors/SimulateTxAccessor"; + +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; + +const _bytecode = + "0x60a060405234801561001057600080fd5b503073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505060805160601c6103526100656000398061017052506103526000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80631c5fb21114610030575b600080fd5b6100de6004803603608081101561004657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561008d57600080fd5b82018360208201111561009f57600080fd5b803590602001918460018302840111640100000000831117156100c157600080fd5b9091929391929390803560ff169060200190929190505050610169565b60405180848152602001831515815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561012c578082015181840152602081019050610111565b50505050905090810190601f1680156101595780820380516001836020036101000a031916815260200191505b5094505050505060405180910390f35b60008060607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610213576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260398152602001806102e46039913960400191505060405180910390fd5b60005a9050610269898989898080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050885a610297565b92505a8103935060405160203d0181016040523d81523d6000602083013e8092505050955095509592505050565b60006001808111156102a557fe5b8360018111156102b157fe5b14156102ca576000808551602087018986f490506102da565b600080855160208701888a87f190505b9594505050505056fe53696d756c61746554784163636573736f722073686f756c64206f6e6c792062652063616c6c6564207669612064656c656761746563616c6ca2646970667358221220fd430144adb49f3c41232dfb6304536647edd8ba193872e74bf6864e1b781cca64736f6c63430007060033"; + +type SimulateTxAccessorConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: SimulateTxAccessorConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class SimulateTxAccessor__factory extends ContractFactory { + constructor(...args: SimulateTxAccessorConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): SimulateTxAccessor { + return super.attach(address) as SimulateTxAccessor; + } + override connect(signer: Signer): SimulateTxAccessor__factory { + return super.connect(signer) as SimulateTxAccessor__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): SimulateTxAccessorInterface { + return new utils.Interface(_abi) as SimulateTxAccessorInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): SimulateTxAccessor { + return new Contract(address, _abi, signerOrProvider) as SimulateTxAccessor; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/accessors/index.ts b/src/assets/typechain-types/safe/factories/contracts/accessors/index.ts new file mode 100644 index 0000000000..1e101cf392 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/accessors/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { SimulateTxAccessor__factory } from "./SimulateTxAccessor__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/base/FallbackManager__factory.ts b/src/assets/typechain-types/safe/factories/contracts/base/FallbackManager__factory.ts new file mode 100644 index 0000000000..3ccf71ad60 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/base/FallbackManager__factory.ts @@ -0,0 +1,56 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + FallbackManager, + FallbackManagerInterface, +} from "../../../contracts/base/FallbackManager"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "handler", + type: "address", + }, + ], + name: "ChangedFallbackHandler", + type: "event", + }, + { + stateMutability: "nonpayable", + type: "fallback", + }, + { + inputs: [ + { + internalType: "address", + name: "handler", + type: "address", + }, + ], + name: "setFallbackHandler", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class FallbackManager__factory { + static readonly abi = _abi; + static createInterface(): FallbackManagerInterface { + return new utils.Interface(_abi) as FallbackManagerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): FallbackManager { + return new Contract(address, _abi, signerOrProvider) as FallbackManager; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/BaseGuard__factory.ts b/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/BaseGuard__factory.ts new file mode 100644 index 0000000000..259e3fb116 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/BaseGuard__factory.ts @@ -0,0 +1,165 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + BaseGuard, + BaseGuardInterface, +} from "../../../../contracts/base/GuardManager.sol/BaseGuard"; + +const _abi = [ + { + inputs: [ + { + internalType: "bytes32", + name: "hash", + 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: "address", + name: "module", + type: "address", + }, + ], + name: "checkModuleTransaction", + outputs: [ + { + internalType: "bytes32", + name: "moduleTxHash", + type: "bytes32", + }, + ], + 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: "msgSender", + 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", + }, +] as const; + +export class BaseGuard__factory { + static readonly abi = _abi; + static createInterface(): BaseGuardInterface { + return new utils.Interface(_abi) as BaseGuardInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): BaseGuard { + return new Contract(address, _abi, signerOrProvider) as BaseGuard; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/GuardManager__factory.ts b/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/GuardManager__factory.ts new file mode 100644 index 0000000000..a35d5d83f3 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/GuardManager__factory.ts @@ -0,0 +1,52 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + GuardManager, + GuardManagerInterface, +} from "../../../../contracts/base/GuardManager.sol/GuardManager"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "ChangedGuard", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "setGuard", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class GuardManager__factory { + static readonly abi = _abi; + static createInterface(): GuardManagerInterface { + return new utils.Interface(_abi) as GuardManagerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): GuardManager { + return new Contract(address, _abi, signerOrProvider) as GuardManager; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/Guard__factory.ts b/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/Guard__factory.ts new file mode 100644 index 0000000000..e412eeba32 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/Guard__factory.ts @@ -0,0 +1,162 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + Guard, + GuardInterface, +} from "../../../../contracts/base/GuardManager.sol/Guard"; + +const _abi = [ + { + inputs: [ + { + internalType: "bytes32", + name: "hash", + 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: "address", + name: "module", + type: "address", + }, + ], + name: "checkModuleTransaction", + outputs: [ + { + internalType: "bytes32", + name: "moduleTxHash", + type: "bytes32", + }, + ], + 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: "msgSender", + 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", + }, +] as const; + +export class Guard__factory { + static readonly abi = _abi; + static createInterface(): GuardInterface { + return new utils.Interface(_abi) as GuardInterface; + } + static connect(address: string, signerOrProvider: Signer | Provider): Guard { + return new Contract(address, _abi, signerOrProvider) as Guard; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/index.ts b/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/index.ts new file mode 100644 index 0000000000..107d4b3a08 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/base/GuardManager.sol/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { BaseGuard__factory } from "./BaseGuard__factory"; +export { Guard__factory } from "./Guard__factory"; +export { GuardManager__factory } from "./GuardManager__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/base/ModuleManager__factory.ts b/src/assets/typechain-types/safe/factories/contracts/base/ModuleManager__factory.ts new file mode 100644 index 0000000000..2d4054d782 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/base/ModuleManager__factory.ts @@ -0,0 +1,256 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + ModuleManager, + ModuleManagerInterface, +} from "../../../contracts/base/ModuleManager"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "ChangedGuard", + 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: "address", + name: "module", + type: "address", + }, + ], + name: "ExecutionFromModuleFailure", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "module", + type: "address", + }, + ], + name: "ExecutionFromModuleSuccess", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "prevModule", + type: "address", + }, + { + internalType: "address", + name: "module", + type: "address", + }, + ], + name: "disableModule", + outputs: [], + stateMutability: "nonpayable", + 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", + }, + ], + 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: [ + { + 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: [ + { + internalType: "address", + name: "module", + type: "address", + }, + ], + name: "isModuleEnabled", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "setGuard", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class ModuleManager__factory { + static readonly abi = _abi; + static createInterface(): ModuleManagerInterface { + return new utils.Interface(_abi) as ModuleManagerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ModuleManager { + return new Contract(address, _abi, signerOrProvider) as ModuleManager; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/base/OwnerManager__factory.ts b/src/assets/typechain-types/safe/factories/contracts/base/OwnerManager__factory.ts new file mode 100644 index 0000000000..acbc1e8d78 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/base/OwnerManager__factory.ts @@ -0,0 +1,187 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + OwnerManager, + OwnerManagerInterface, +} from "../../../contracts/base/OwnerManager"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "owner", + type: "address", + }, + ], + name: "AddedOwner", + 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: "owner", + type: "address", + }, + ], + name: "RemovedOwner", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "uint256", + name: "_threshold", + type: "uint256", + }, + ], + name: "addOwnerWithThreshold", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_threshold", + type: "uint256", + }, + ], + name: "changeThreshold", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "getOwners", + outputs: [ + { + internalType: "address[]", + name: "", + type: "address[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getThreshold", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + ], + name: "isOwner", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + 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: "prevOwner", + type: "address", + }, + { + internalType: "address", + name: "oldOwner", + type: "address", + }, + { + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "swapOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class OwnerManager__factory { + static readonly abi = _abi; + static createInterface(): OwnerManagerInterface { + return new utils.Interface(_abi) as OwnerManagerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): OwnerManager { + return new Contract(address, _abi, signerOrProvider) as OwnerManager; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/base/index.ts b/src/assets/typechain-types/safe/factories/contracts/base/index.ts new file mode 100644 index 0000000000..fe9144d755 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/base/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as guardManagerSol from "./GuardManager.sol"; +export { FallbackManager__factory } from "./FallbackManager__factory"; +export { ModuleManager__factory } from "./ModuleManager__factory"; +export { OwnerManager__factory } from "./OwnerManager__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/common/NativeCurrencyPaymentFallback__factory.ts b/src/assets/typechain-types/safe/factories/contracts/common/NativeCurrencyPaymentFallback__factory.ts new file mode 100644 index 0000000000..8595e82a79 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/common/NativeCurrencyPaymentFallback__factory.ts @@ -0,0 +1,53 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + NativeCurrencyPaymentFallback, + NativeCurrencyPaymentFallbackInterface, +} from "../../../contracts/common/NativeCurrencyPaymentFallback"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "sender", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "SafeReceived", + type: "event", + }, + { + stateMutability: "payable", + type: "receive", + }, +] as const; + +export class NativeCurrencyPaymentFallback__factory { + static readonly abi = _abi; + static createInterface(): NativeCurrencyPaymentFallbackInterface { + return new utils.Interface(_abi) as NativeCurrencyPaymentFallbackInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): NativeCurrencyPaymentFallback { + return new Contract( + address, + _abi, + signerOrProvider + ) as NativeCurrencyPaymentFallback; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/common/StorageAccessible__factory.ts b/src/assets/typechain-types/safe/factories/contracts/common/StorageAccessible__factory.ts new file mode 100644 index 0000000000..f76e0ddd0f --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/common/StorageAccessible__factory.ts @@ -0,0 +1,68 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + StorageAccessible, + StorageAccessibleInterface, +} from "../../../contracts/common/StorageAccessible"; + +const _abi = [ + { + 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: [ + { + internalType: "address", + name: "targetContract", + type: "address", + }, + { + internalType: "bytes", + name: "calldataPayload", + type: "bytes", + }, + ], + name: "simulateAndRevert", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class StorageAccessible__factory { + static readonly abi = _abi; + static createInterface(): StorageAccessibleInterface { + return new utils.Interface(_abi) as StorageAccessibleInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): StorageAccessible { + return new Contract(address, _abi, signerOrProvider) as StorageAccessible; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/common/index.ts b/src/assets/typechain-types/safe/factories/contracts/common/index.ts new file mode 100644 index 0000000000..5eedec602e --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/common/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { NativeCurrencyPaymentFallback__factory } from "./NativeCurrencyPaymentFallback__factory"; +export { StorageAccessible__factory } from "./StorageAccessible__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/examples/guards/DebugTransactionGuard__factory.ts b/src/assets/typechain-types/safe/factories/contracts/examples/guards/DebugTransactionGuard__factory.ts new file mode 100644 index 0000000000..d9b101f010 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/examples/guards/DebugTransactionGuard__factory.ts @@ -0,0 +1,375 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + DebugTransactionGuard, + DebugTransactionGuardInterface, +} from "../../../../contracts/examples/guards/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: "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: "address", + name: "module", + type: "address", + }, + ], + name: "ModuleTransasctionDetails", + 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: "address", + name: "module", + type: "address", + }, + ], + name: "checkModuleTransaction", + outputs: [ + { + internalType: "bytes32", + name: "moduleTxHash", + type: "bytes32", + }, + ], + 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 = + "0x608060405234801561001057600080fd5b50610c2d806100206000396000f3fe608060405234801561001057600080fd5b506004361061005b5760003560e01c806301ffc9a71461005e578063728c2972146100c157806375f0bb52146101e757806393271368146103ef578063ddbdba63146104295761005c565b5b005b6100a96004803603602081101561007457600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061046b565b60405180821515815260200191505060405180910390f35b6101d1600480360360a08110156100d757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561011e57600080fd5b82018360208201111561013057600080fd5b8035906020019184600183028401116401000000008311171561015257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061053d565b6040518082815260200191505060405180910390f35b6103ed60048036036101608110156101fe57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561024557600080fd5b82018360208201111561025757600080fd5b8035906020019184600183028401116401000000008311171561027957600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561034757600080fd5b82018360208201111561035957600080fd5b8035906020019184600183028401116401000000008311171561037b57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610710565b005b6104276004803603604081101561040557600080fd5b8101908080359060200190929190803515159060200190929190505050610ae2565b005b6104556004803603602081101561043f57600080fd5b8101908080359060200190929190505050610bdf565b6040518082815260200191505060405180910390f35b60007f945b8148000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061053657507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60008585858585604051602001808673ffffffffffffffffffffffffffffffffffffffff1660601b815260140185815260200184805190602001908083835b6020831061059f578051825260208201915060208101905060208303925061057c565b6001836020036101000a0380198251168184511680821785525050505050509050018360018111156105cd57fe5b60f81b81526001018273ffffffffffffffffffffffffffffffffffffffff1660601b815260140195505050505050604051602081830303815290604052805190602001209050807f3c6faeabb77e6f2d036d756deaa3888179c615795ab4b4329874c29b03a732c78787878787604051808673ffffffffffffffffffffffffffffffffffffffff1681526020018581526020018060200184600181111561067057fe5b81526020018373ffffffffffffffffffffffffffffffffffffffff168152602001828103825285818151815260200191508051906020019080838360005b838110156106c95780820151818401526020810190506106ae565b50505050905090810190601f1680156106f65780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a295945050505050565b600080600033905060018173ffffffffffffffffffffffffffffffffffffffff1663affed0e06040518163ffffffff1660e01b815260040160206040518083038186803b15801561076057600080fd5b505afa158015610774573d6000803e3d6000fd5b505050506040513d602081101561078a57600080fd5b81019080805190602001909291905050500392508073ffffffffffffffffffffffffffffffffffffffff1663d8d11f788f8f8f8f8f8f8f8f8f8d6040518b63ffffffff1660e01b8152600401808b73ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018060200189600181111561080957fe5b81526020018881526020018781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182810382528a818151815260200191508051906020019080838360005b8381101561089657808201518184015260208101905061087b565b50505050905090810190601f1680156108c35780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060206040518083038186803b1580156108e957600080fd5b505afa1580156108fd573d6000803e3d6000fd5b505050506040513d602081101561091357600080fd5b8101908080519060200190929190505050915050803373ffffffffffffffffffffffffffffffffffffffff167fa65fef32cd19a6639a4bf7a6d196f132c151e4f0bbd2706f7f831b3a778e1ac08f8f8f8f8f60008f118a8d8d604051808a73ffffffffffffffffffffffffffffffffffffffff168152602001898152602001806020018860018111156109a257fe5b81526020018781526020018615158152602001858152602001806020018473ffffffffffffffffffffffffffffffffffffffff16815260200183810383528a818151815260200191508051906020019080838360005b83811015610a135780820151818401526020810190506109f8565b50505050905090810190601f168015610a405780820380516001836020036101000a031916815260200191505b50838103825285818151815260200191508051906020019080838360005b83811015610a79578082015181840152602081019050610a5e565b50505050905090810190601f168015610aa65780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060405180910390a3816000808381526020019081526020016000208190555050505050505050505050505050565b60008060008481526020019081526020016000205490506000811415610b70576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f436f756c64206e6f7420676574206e6f6e63650000000000000000000000000081525060200191505060405180910390fd5b60008060008581526020019081526020016000208190555080833373ffffffffffffffffffffffffffffffffffffffff167f0dcc0fb56a30b6fe6b188f45b47369bc7f3c928a9748e245a79fc3f54ddd05688560405180821515815260200191505060405180910390a4505050565b6000602052806000526040600020600091509050548156fea2646970667358221220cd3980ea55898bdbacf99e3979878dec432bfaf1dfb8d86b046a5ac64e93b19f64736f6c63430007060033"; + +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 deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): DebugTransactionGuard { + return super.attach(address) as DebugTransactionGuard; + } + override connect(signer: Signer): DebugTransactionGuard__factory { + return super.connect(signer) as DebugTransactionGuard__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): DebugTransactionGuardInterface { + return new utils.Interface(_abi) as DebugTransactionGuardInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): DebugTransactionGuard { + return new Contract( + address, + _abi, + signerOrProvider + ) as DebugTransactionGuard; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/examples/guards/DelegateCallTransactionGuard__factory.ts b/src/assets/typechain-types/safe/factories/contracts/examples/guards/DelegateCallTransactionGuard__factory.ts new file mode 100644 index 0000000000..b25d13afaa --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/examples/guards/DelegateCallTransactionGuard__factory.ts @@ -0,0 +1,238 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + DelegateCallTransactionGuard, + DelegateCallTransactionGuardInterface, +} from "../../../../contracts/examples/guards/DelegateCallTransactionGuard"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "target", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + stateMutability: "nonpayable", + type: "fallback", + }, + { + inputs: [], + name: "ALLOWED_TARGET", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + name: "checkAfterExecution", + outputs: [], + 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: "address", + name: "module", + type: "address", + }, + ], + name: "checkModuleTransaction", + outputs: [ + { + internalType: "bytes32", + name: "moduleTxHash", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "bytes", + name: "", + type: "bytes", + }, + { + internalType: "enum Enum.Operation", + name: "operation", + type: "uint8", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "address payable", + name: "", + type: "address", + }, + { + internalType: "bytes", + name: "", + type: "bytes", + }, + { + internalType: "address", + name: "", + type: "address", + }, + ], + name: "checkTransaction", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes4", + name: "interfaceId", + type: "bytes4", + }, + ], + name: "supportsInterface", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, +] as const; + +const _bytecode = + "0x60a060405234801561001057600080fd5b506040516108e03803806108e08339818101604052602081101561003357600080fd5b81019080805190602001909291905050508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505060805160601c61083d6100a36000398061053152806105775280610736525061083d6000f3fe608060405234801561001057600080fd5b506004361061005b5760003560e01c806301ffc9a71461005e578063250d6a91146100c1578063728c2972146100f557806375f0bb521461021b57806393271368146104235761005c565b5b005b6100a96004803603602081101561007457600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061045d565b60405180821515815260200191505060405180910390f35b6100c961052f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610205600480360360a081101561010b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561015257600080fd5b82018360208201111561016457600080fd5b8035906020019184600183028401116401000000008311171561018657600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610553565b6040518082815260200191505060405180910390f35b610421600480360361016081101561023257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561027957600080fd5b82018360208201111561028b57600080fd5b803590602001918460018302840111640100000000831117156102ad57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561037b57600080fd5b82018360208201111561038d57600080fd5b803590602001918460018302840111640100000000831117156103af57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610714565b005b61045b6004803603604081101561043957600080fd5b8101908080359060200190929190803515159060200190929190505050610803565b005b60007f945b8148000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061052857507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600060018081111561056157fe5b83600181111561056d57fe5b1415806105c557507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff16145b610637576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f546869732063616c6c206973207265737472696374656400000000000000000081525060200191505060405180910390fd5b8585858585604051602001808673ffffffffffffffffffffffffffffffffffffffff1660601b815260140185815260200184805190602001908083835b602083106106975780518252602082019150602081019050602083039250610674565b6001836020036101000a0380198251168184511680821785525050505050509050018360018111156106c557fe5b60f81b81526001018273ffffffffffffffffffffffffffffffffffffffff1660601b81526014019550505050505060405160208183030381529060405280519060200120905095945050505050565b60018081111561072057fe5b88600181111561072c57fe5b14158061078457507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168b73ffffffffffffffffffffffffffffffffffffffff16145b6107f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260178152602001807f546869732063616c6c206973207265737472696374656400000000000000000081525060200191505060405180910390fd5b5050505050505050505050565b505056fea264697066735822122006b2fd379e15484c947bcc16c8d8e6285f7b969850cabeeedd207c95ec97a93e64736f6c63430007060033"; + +type DelegateCallTransactionGuardConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: DelegateCallTransactionGuardConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class DelegateCallTransactionGuard__factory extends ContractFactory { + constructor(...args: DelegateCallTransactionGuardConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + target: string, + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy( + target, + overrides || {} + ) as Promise; + } + override getDeployTransaction( + target: string, + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(target, overrides || {}); + } + override attach(address: string): DelegateCallTransactionGuard { + return super.attach(address) as DelegateCallTransactionGuard; + } + override connect(signer: Signer): DelegateCallTransactionGuard__factory { + return super.connect(signer) as DelegateCallTransactionGuard__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): DelegateCallTransactionGuardInterface { + return new utils.Interface(_abi) as DelegateCallTransactionGuardInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): DelegateCallTransactionGuard { + return new Contract( + address, + _abi, + signerOrProvider + ) as DelegateCallTransactionGuard; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/examples/guards/OnlyOwnersGuard__factory.ts b/src/assets/typechain-types/safe/factories/contracts/examples/guards/OnlyOwnersGuard__factory.ts new file mode 100644 index 0000000000..75566b8ca1 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/examples/guards/OnlyOwnersGuard__factory.ts @@ -0,0 +1,210 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + OnlyOwnersGuard, + OnlyOwnersGuardInterface, +} from "../../../../contracts/examples/guards/OnlyOwnersGuard"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + stateMutability: "nonpayable", + type: "fallback", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + name: "checkAfterExecution", + outputs: [], + 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: "address", + name: "module", + type: "address", + }, + ], + name: "checkModuleTransaction", + outputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "bytes", + name: "", + type: "bytes", + }, + { + internalType: "enum Enum.Operation", + name: "", + type: "uint8", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "address payable", + name: "", + type: "address", + }, + { + internalType: "bytes", + name: "", + type: "bytes", + }, + { + internalType: "address", + name: "msgSender", + type: "address", + }, + ], + name: "checkTransaction", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes4", + name: "interfaceId", + type: "bytes4", + }, + ], + name: "supportsInterface", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b5061065a806100206000396000f3fe608060405234801561001057600080fd5b50600436106100505760003560e01c806301ffc9a714610053578063728c2972146100b657806375f0bb52146101dc57806393271368146103e457610051565b5b005b61009e6004803603602081101561006957600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061041e565b60405180821515815260200191505060405180910390f35b6101c6600480360360a08110156100cc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561011357600080fd5b82018360208201111561012557600080fd5b8035906020019184600183028401116401000000008311171561014757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104f0565b6040518082815260200191505060405180910390f35b6103e260048036036101608110156101f357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561023a57600080fd5b82018360208201111561024c57600080fd5b8035906020019184600183028401116401000000008311171561026e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561033c57600080fd5b82018360208201111561034e57600080fd5b8035906020019184600183028401116401000000008311171561037057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104fb565b005b61041c600480360360408110156103fa57600080fd5b81019080803590602001909291908035151590602001909291905050506105ff565b005b60007f945b8148000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104e957507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600095945050505050565b3373ffffffffffffffffffffffffffffffffffffffff16632f54bf6e826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561056257600080fd5b505afa158015610576573d6000803e3d6000fd5b505050506040513d602081101561058c57600080fd5b81019080805190602001909291905050506105f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806106046021913960400191505060405180910390fd5b5050505050505050505050565b505056fe6d73672073656e646572206973206e6f7420616c6c6f77656420746f2065786563a26469706673582212208dedca9571c9495b83eb9dde8684b9d412926a8be01ae5e51631fa62ec30744d64736f6c63430007060033"; + +type OnlyOwnersGuardConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: OnlyOwnersGuardConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class OnlyOwnersGuard__factory extends ContractFactory { + constructor(...args: OnlyOwnersGuardConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): OnlyOwnersGuard { + return super.attach(address) as OnlyOwnersGuard; + } + override connect(signer: Signer): OnlyOwnersGuard__factory { + return super.connect(signer) as OnlyOwnersGuard__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): OnlyOwnersGuardInterface { + return new utils.Interface(_abi) as OnlyOwnersGuardInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): OnlyOwnersGuard { + return new Contract(address, _abi, signerOrProvider) as OnlyOwnersGuard; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/examples/guards/ReentrancyTransactionGuard__factory.ts b/src/assets/typechain-types/safe/factories/contracts/examples/guards/ReentrancyTransactionGuard__factory.ts new file mode 100644 index 0000000000..b8b2f2ca05 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/examples/guards/ReentrancyTransactionGuard__factory.ts @@ -0,0 +1,209 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + ReentrancyTransactionGuard, + ReentrancyTransactionGuardInterface, +} from "../../../../contracts/examples/guards/ReentrancyTransactionGuard"; + +const _abi = [ + { + stateMutability: "nonpayable", + type: "fallback", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + { + internalType: "bool", + name: "", + 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: "address", + name: "module", + type: "address", + }, + ], + name: "checkModuleTransaction", + outputs: [ + { + internalType: "bytes32", + name: "moduleTxHash", + type: "bytes32", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "bytes", + name: "", + type: "bytes", + }, + { + internalType: "enum Enum.Operation", + name: "", + type: "uint8", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "address", + name: "", + type: "address", + }, + { + internalType: "address payable", + name: "", + type: "address", + }, + { + internalType: "bytes", + name: "", + type: "bytes", + }, + { + internalType: "address", + name: "", + 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", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b506107c5806100206000396000f3fe608060405234801561001057600080fd5b50600436106100505760003560e01c806301ffc9a714610053578063728c2972146100b657806375f0bb52146101dc57806393271368146103e457610051565b5b005b61009e6004803603602081101561006957600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061041e565b60405180821515815260200191505060405180910390f35b6101c6600480360360a08110156100cc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561011357600080fd5b82018360208201111561012557600080fd5b8035906020019184600183028401116401000000008311171561014757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104f0565b6040518082815260200191505060405180910390f35b6103e260048036036101608110156101f357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561023a57600080fd5b82018360208201111561024c57600080fd5b8035906020019184600183028401116401000000008311171561026e57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803560ff169060200190929190803590602001909291908035906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561033c57600080fd5b82018360208201111561034e57600080fd5b8035906020019184600183028401116401000000008311171561037057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061067e565b005b61041c600480360360408110156103fa57600080fd5b810190808035906020019092919080351515906020019092919050505061073a565b005b60007f945b8148000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806104e957507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60008585858585604051602001808673ffffffffffffffffffffffffffffffffffffffff1660601b815260140185815260200184805190602001908083835b60208310610552578051825260208201915060208101905060208303925061052f565b6001836020036101000a03801982511681845116808217855250505050505090500183600181111561058057fe5b60f81b81526001018273ffffffffffffffffffffffffffffffffffffffff1660601b81526014019550505050505060405160208183030381529060405280519060200120905060006105d0610762565b90508060000160009054906101000a900460ff1615610657576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f5265656e7472616e63792064657465637465640000000000000000000000000081525060200191505060405180910390fd5b60018160000160006101000a81548160ff0219169083151502179055505095945050505050565b6000610688610762565b90508060000160009054906101000a900460ff161561070f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f5265656e7472616e63792064657465637465640000000000000000000000000081525060200191505060405180910390fd5b60018160000160006101000a81548160ff021916908315150217905550505050505050505050505050565b6000610744610762565b60000160006101000a81548160ff0219169083151502179055505050565b6000807f7c1d45961c2d0298f999d2c3d4a7a5e0f688d137f4c32466e3056a97e673b83a9050809150509056fea2646970667358221220d75f1c336205e75ff298a824b90a37716fefc8902239b531be7377a77c353e5564736f6c63430007060033"; + +type ReentrancyTransactionGuardConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: ReentrancyTransactionGuardConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class ReentrancyTransactionGuard__factory extends ContractFactory { + constructor(...args: ReentrancyTransactionGuardConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): ReentrancyTransactionGuard { + return super.attach(address) as ReentrancyTransactionGuard; + } + override connect(signer: Signer): ReentrancyTransactionGuard__factory { + return super.connect(signer) as ReentrancyTransactionGuard__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): ReentrancyTransactionGuardInterface { + return new utils.Interface(_abi) as ReentrancyTransactionGuardInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ReentrancyTransactionGuard { + return new Contract( + address, + _abi, + signerOrProvider + ) as ReentrancyTransactionGuard; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/examples/guards/index.ts b/src/assets/typechain-types/safe/factories/contracts/examples/guards/index.ts new file mode 100644 index 0000000000..ede692fcb5 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/examples/guards/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { DebugTransactionGuard__factory } from "./DebugTransactionGuard__factory"; +export { DelegateCallTransactionGuard__factory } from "./DelegateCallTransactionGuard__factory"; +export { OnlyOwnersGuard__factory } from "./OnlyOwnersGuard__factory"; +export { ReentrancyTransactionGuard__factory } from "./ReentrancyTransactionGuard__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/examples/index.ts b/src/assets/typechain-types/safe/factories/contracts/examples/index.ts new file mode 100644 index 0000000000..299026bc91 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/examples/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as guards from "./guards"; +export * as libraries from "./libraries"; diff --git a/src/assets/typechain-types/safe/factories/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/Migration__factory.ts b/src/assets/typechain-types/safe/factories/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/Migration__factory.ts new file mode 100644 index 0000000000..ce5a103c91 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/Migration__factory.ts @@ -0,0 +1,121 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + Migration, + MigrationInterface, +} from "../../../../../contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/Migration"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "targetSingleton", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "address", + name: "singleton", + type: "address", + }, + ], + name: "ChangedMasterCopy", + type: "event", + }, + { + inputs: [], + name: "MIGRATION_SINGLETON", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "SAFE_120_SINGLETON", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "migrate", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60c060405234801561001057600080fd5b506040516104d43803806104d48339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806104b26022913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250503073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505060805160601c60a05160601c61034861016a6000398060ba52806101a752508060de528061010252506103486000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806310dfd5061461004657806372f7a9561461007a5780638fd3ab80146100ae575b600080fd5b61004e6100b8565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100826100dc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100b6610100565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614156101a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806102e36030913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000006000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f035aff83d86937d35b32e04f0ddc6ff469290eef2f1b692d8a815c89404d474960001b30604051602001808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050604051602081830303815290604052805190602001206006819055507f75e41bc35ff1bf14d81d1d2f649c0084a0f974f9289c803ec9898eeec4c8d0b860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a156fe4d6967726174696f6e2073686f756c64206f6e6c792062652063616c6c6564207669612064656c656761746563616c6ca2646970667358221220439513640813d1fe3090885dc04f84edfee78da22daa5a884a788199408ed1ad64736f6c63430007060033496e76616c69642073696e676c65746f6e20616464726573732070726f7669646564"; + +type MigrationConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: MigrationConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class Migration__factory extends ContractFactory { + constructor(...args: MigrationConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + targetSingleton: string, + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(targetSingleton, overrides || {}) as Promise; + } + override getDeployTransaction( + targetSingleton: string, + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(targetSingleton, overrides || {}); + } + override attach(address: string): Migration { + return super.attach(address) as Migration; + } + override connect(signer: Signer): Migration__factory { + return super.connect(signer) as Migration__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): MigrationInterface { + return new utils.Interface(_abi) as MigrationInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): Migration { + return new Contract(address, _abi, signerOrProvider) as Migration; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/index.ts b/src/assets/typechain-types/safe/factories/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/index.ts new file mode 100644 index 0000000000..7ca3affa4e --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/examples/libraries/Migrate_1_3_0_to_1_2_0.sol/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Migration__factory } from "./Migration__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/examples/libraries/index.ts b/src/assets/typechain-types/safe/factories/contracts/examples/libraries/index.ts new file mode 100644 index 0000000000..bc3af03f3d --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/examples/libraries/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as migrate130To120Sol from "./Migrate_1_3_0_to_1_2_0.sol"; diff --git a/src/assets/typechain-types/safe/factories/contracts/handler/CompatibilityFallbackHandler__factory.ts b/src/assets/typechain-types/safe/factories/contracts/handler/CompatibilityFallbackHandler__factory.ts new file mode 100644 index 0000000000..e047acb5d7 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/handler/CompatibilityFallbackHandler__factory.ts @@ -0,0 +1,393 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + CompatibilityFallbackHandler, + CompatibilityFallbackHandlerInterface, +} from "../../../contracts/handler/CompatibilityFallbackHandler"; + +const _abi = [ + { + inputs: [ + { + internalType: "bytes32", + name: "dataHash", + type: "bytes32", + }, + { + internalType: "bytes", + name: "", + type: "bytes", + }, + { + internalType: "bytes", + name: "signatures", + type: "bytes", + }, + { + internalType: "uint256", + name: "requiredSignatures", + type: "uint256", + }, + ], + name: "checkNSignatures", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "contract ISafe", + 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 ISafe", + 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: "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; + +const _bytecode = + "0x608060405234801561001057600080fd5b506114d1806100206000396000f3fe608060405234801561001057600080fd5b50600436106100b35760003560e01c8063230316401161007157806323031640146106345780636ac2478414610788578063b2494df314610877578063bc197c81146108d6578063bd61951d14610a6c578063f23a6e6114610b7e576100b3565b806223de29146100b857806301ffc9a7146101f05780630a1028c41461025357806312fb68e014610322578063150b7a02146104885780631626ba7e1461057e575b600080fd5b6101ee600480360360c08110156100ce57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561015557600080fd5b82018360208201111561016757600080fd5b8035906020019184600183028401116401000000008311171561018957600080fd5b9091929391929390803590602001906401000000008111156101aa57600080fd5b8201836020820111156101bc57600080fd5b803590602001918460018302840111640100000000831117156101de57600080fd5b9091929391929390505050610c7e565b005b61023b6004803603602081101561020657600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610c88565b60405180821515815260200191505060405180910390f35b61030c6004803603602081101561026957600080fd5b810190808035906020019064010000000081111561028657600080fd5b82018360208201111561029857600080fd5b803590602001918460018302840111640100000000831117156102ba57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610dc2565b6040518082815260200191505060405180910390f35b6104866004803603608081101561033857600080fd5b81019080803590602001909291908035906020019064010000000081111561035f57600080fd5b82018360208201111561037157600080fd5b8035906020019184600183028401116401000000008311171561039357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001906401000000008111156103f657600080fd5b82018360208201111561040857600080fd5b8035906020019184600183028401116401000000008311171561042a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190505050610dd5565b005b6105496004803603608081101561049e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561050557600080fd5b82018360208201111561051757600080fd5b8035906020019184600183028401116401000000008311171561053957600080fd5b9091929391929390505050610ee5565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b6105ff6004803603604081101561059457600080fd5b8101908080359060200190929190803590602001906401000000008111156105bb57600080fd5b8201836020820111156105cd57600080fd5b803590602001918460018302840111640100000000831117156105ef57600080fd5b9091929391929390505050610efa565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b61070d6004803603604081101561064a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561068757600080fd5b82018360208201111561069957600080fd5b803590602001918460018302840111640100000000831117156106bb57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506110fe565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561074d578082015181840152602081019050610732565b50505050905090810190601f16801561077a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6108616004803603604081101561079e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156107db57600080fd5b8201836020820111156107ed57600080fd5b8035906020019184600183028401116401000000008311171561080f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061126a565b6040518082815260200191505060405180910390f35b61087f611285565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b838110156108c25780820151818401526020810190506108a7565b505050509050019250505060405180910390f35b610a37600480360360a08110156108ec57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561094957600080fd5b82018360208201111561095b57600080fd5b8035906020019184602083028401116401000000008311171561097d57600080fd5b90919293919293908035906020019064010000000081111561099e57600080fd5b8201836020820111156109b057600080fd5b803590602001918460208302840111640100000000831117156109d257600080fd5b9091929391929390803590602001906401000000008111156109f357600080fd5b820183602082011115610a0557600080fd5b80359060200191846001830284011164010000000083111715610a2757600080fd5b90919293919293905050506113ec565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b610b0360048036036040811015610a8257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190640100000000811115610abf57600080fd5b820183602082011115610ad157600080fd5b80359060200191846001830284011164010000000083111715610af357600080fd5b9091929391929390505050611404565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b43578082015181840152602081019050610b28565b50505050905090810190601f168015610b705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610c49600480360360a0811015610b9457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019092919080359060200190640100000000811115610c0557600080fd5b820183602082011115610c1757600080fd5b80359060200191846001830284011164010000000083111715610c3957600080fd5b909192939192939050505061146e565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b5050505050505050565b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d5357507f150b7a02000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610dbb57507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6000610dce338361126a565b9050919050565b610ddd611484565b73ffffffffffffffffffffffffffffffffffffffff16631fcac7f3610e0061148c565b8685856040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610e7a578082015181840152602081019050610e5f565b50505050905090810190601f168015610ea75780820380516001836020036101000a031916815260200191505b509550505050505060006040518083038186803b158015610ec757600080fd5b505afa158015610edb573d6000803e3d6000fd5b5050505050505050565b600063150b7a0260e01b905095945050505050565b6000803390506000610f2b8287604051602001808281526020019150506040516020818303038152906040526110fe565b9050600081805190602001209050600086869050141561104c5760008373ffffffffffffffffffffffffffffffffffffffff16635ae6bd37836040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610f9857600080fd5b505afa158015610fac573d6000803e3d6000fd5b505050506040513d6020811015610fc257600080fd5b81019080805190602001909291905050501415611047576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f48617368206e6f7420617070726f76656400000000000000000000000000000081525060200191505060405180910390fd5b6110ea565b8273ffffffffffffffffffffffffffffffffffffffff1663ed516d518288886040518463ffffffff1660e01b815260040180848152602001806020018281038252848482818152602001925080828437600081840152601f19601f82011690508083019250505094505050505060006040518083038186803b1580156110d157600080fd5b505afa1580156110e5573d6000803e3d6000fd5b505050505b631626ba7e60e01b93505050509392505050565b606060007f60b3cbf8b4a223d68d641b3b6ddf9a298e7f33710cf3d3a9d1146b5a6150fbca60001b83805190602001206040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209050601960f81b600160f81b8573ffffffffffffffffffffffffffffffffffffffff1663f698da256040518163ffffffff1660e01b815260040160206040518083038186803b1580156111ad57600080fd5b505afa1580156111c1573d6000803e3d6000fd5b505050506040513d60208110156111d757600080fd5b81019080805190602001909291905050508360405160200180857effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101847effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260010183815260200182815260200194505050505060405160208183030381529060405291505092915050565b600061127683836110fe565b80519060200120905092915050565b6060600033905060008173ffffffffffffffffffffffffffffffffffffffff1663cc2f84526001600a6040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060006040518083038186803b1580156112ff57600080fd5b505afa158015611313573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250604081101561133d57600080fd5b810190808051604051939291908464010000000082111561135d57600080fd5b8382019150602082018581111561137357600080fd5b825186602082028301116401000000008211171561139057600080fd5b8083526020830192505050908051906020019060200280838360005b838110156113c75780820151818401526020810190506113ac565b5050505090500160405260200180519060200190929190505050509050809250505090565b600063bc197c8160e01b905098975050505050505050565b60606040517fb4faba09000000000000000000000000000000000000000000000000000000008152600436036004808301376020600036836000335af15060203d036040519250808301604052806020843e60005161146557825160208401fd5b50509392505050565b600063f23a6e6160e01b90509695505050505050565b600033905090565b6000601436033560601c90509056fea26469706673582212209499f6ddbe2148eb45e6e13c46f2bdf67e2e105bfc5369426ec70bb14406fe8664736f6c63430007060033"; + +type CompatibilityFallbackHandlerConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: CompatibilityFallbackHandlerConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class CompatibilityFallbackHandler__factory extends ContractFactory { + constructor(...args: CompatibilityFallbackHandlerConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy( + overrides || {} + ) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): CompatibilityFallbackHandler { + return super.attach(address) as CompatibilityFallbackHandler; + } + override connect(signer: Signer): CompatibilityFallbackHandler__factory { + return super.connect(signer) as CompatibilityFallbackHandler__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): CompatibilityFallbackHandlerInterface { + return new utils.Interface(_abi) as CompatibilityFallbackHandlerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): CompatibilityFallbackHandler { + return new Contract( + address, + _abi, + signerOrProvider + ) as CompatibilityFallbackHandler; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/handler/TokenCallbackHandler__factory.ts b/src/assets/typechain-types/safe/factories/contracts/handler/TokenCallbackHandler__factory.ts new file mode 100644 index 0000000000..224727e816 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/handler/TokenCallbackHandler__factory.ts @@ -0,0 +1,235 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + TokenCallbackHandler, + TokenCallbackHandlerInterface, +} from "../../../contracts/handler/TokenCallbackHandler"; + +const _abi = [ + { + 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: "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; + +const _bytecode = + "0x608060405234801561001057600080fd5b5061073f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100565760003560e01c806223de291461005b57806301ffc9a714610193578063150b7a02146101f6578063bc197c81146102ec578063f23a6e6114610482575b600080fd5b610191600480360360c081101561007157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001906401000000008111156100f857600080fd5b82018360208201111561010a57600080fd5b8035906020019184600183028401116401000000008311171561012c57600080fd5b90919293919293908035906020019064010000000081111561014d57600080fd5b82018360208201111561015f57600080fd5b8035906020019184600183028401116401000000008311171561018157600080fd5b9091929391929390505050610582565b005b6101de600480360360208110156101a957600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916906020019092919050505061058c565b60405180821515815260200191505060405180910390f35b6102b76004803603608081101561020c57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561027357600080fd5b82018360208201111561028557600080fd5b803590602001918460018302840111640100000000831117156102a757600080fd5b90919293919293905050506106c6565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b61044d600480360360a081101561030257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561035f57600080fd5b82018360208201111561037157600080fd5b8035906020019184602083028401116401000000008311171561039357600080fd5b9091929391929390803590602001906401000000008111156103b457600080fd5b8201836020820111156103c657600080fd5b803590602001918460208302840111640100000000831117156103e857600080fd5b90919293919293908035906020019064010000000081111561040957600080fd5b82018360208201111561041b57600080fd5b8035906020019184600183028401116401000000008311171561043d57600080fd5b90919293919293905050506106db565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b61054d600480360360a081101561049857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019064010000000081111561050957600080fd5b82018360208201111561051b57600080fd5b8035906020019184600183028401116401000000008311171561053d57600080fd5b90919293919293905050506106f3565b60405180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060405180910390f35b5050505050505050565b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061065757507f150b7a02000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806106bf57507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600063150b7a0260e01b905095945050505050565b600063bc197c8160e01b905098975050505050505050565b600063f23a6e6160e01b9050969550505050505056fea2646970667358221220474a1784c2cabaf321b5fd89ad4a83832466956a37782c15f0c5ad9fe444469a64736f6c63430007060033"; + +type TokenCallbackHandlerConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: TokenCallbackHandlerConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class TokenCallbackHandler__factory extends ContractFactory { + constructor(...args: TokenCallbackHandlerConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): TokenCallbackHandler { + return super.attach(address) as TokenCallbackHandler; + } + override connect(signer: Signer): TokenCallbackHandler__factory { + return super.connect(signer) as TokenCallbackHandler__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): TokenCallbackHandlerInterface { + return new utils.Interface(_abi) as TokenCallbackHandlerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): TokenCallbackHandler { + return new Contract( + address, + _abi, + signerOrProvider + ) as TokenCallbackHandler; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/handler/index.ts b/src/assets/typechain-types/safe/factories/contracts/handler/index.ts new file mode 100644 index 0000000000..d228c1d9c1 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/handler/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { CompatibilityFallbackHandler__factory } from "./CompatibilityFallbackHandler__factory"; +export { TokenCallbackHandler__factory } from "./TokenCallbackHandler__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/index.ts b/src/assets/typechain-types/safe/factories/contracts/index.ts new file mode 100644 index 0000000000..037c6b55a5 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/index.ts @@ -0,0 +1,14 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as accessors from "./accessors"; +export * as base from "./base"; +export * as common from "./common"; +export * as examples from "./examples"; +export * as handler from "./handler"; +export * as interfaces from "./interfaces"; +export * as libraries from "./libraries"; +export * as proxies from "./proxies"; +export * as test from "./test"; +export { Safe__factory } from "./Safe__factory"; +export { SafeL2__factory } from "./SafeL2__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/ERC1155TokenReceiver__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/ERC1155TokenReceiver__factory.ts new file mode 100644 index 0000000000..4b7c50209a --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/ERC1155TokenReceiver__factory.ts @@ -0,0 +1,108 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + ERC1155TokenReceiver, + ERC1155TokenReceiverInterface, +} from "../../../contracts/interfaces/ERC1155TokenReceiver"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_operator", + type: "address", + }, + { + internalType: "address", + name: "_from", + type: "address", + }, + { + internalType: "uint256[]", + name: "_ids", + type: "uint256[]", + }, + { + internalType: "uint256[]", + name: "_values", + type: "uint256[]", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + name: "onERC1155BatchReceived", + outputs: [ + { + internalType: "bytes4", + name: "", + type: "bytes4", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_operator", + type: "address", + }, + { + internalType: "address", + name: "_from", + type: "address", + }, + { + internalType: "uint256", + name: "_id", + type: "uint256", + }, + { + internalType: "uint256", + name: "_value", + type: "uint256", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + name: "onERC1155Received", + outputs: [ + { + internalType: "bytes4", + name: "", + type: "bytes4", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class ERC1155TokenReceiver__factory { + static readonly abi = _abi; + static createInterface(): ERC1155TokenReceiverInterface { + return new utils.Interface(_abi) as ERC1155TokenReceiverInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ERC1155TokenReceiver { + return new Contract( + address, + _abi, + signerOrProvider + ) as ERC1155TokenReceiver; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/ERC721TokenReceiver__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/ERC721TokenReceiver__factory.ts new file mode 100644 index 0000000000..753d718bf7 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/ERC721TokenReceiver__factory.ts @@ -0,0 +1,60 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + ERC721TokenReceiver, + ERC721TokenReceiverInterface, +} from "../../../contracts/interfaces/ERC721TokenReceiver"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_operator", + type: "address", + }, + { + internalType: "address", + name: "_from", + type: "address", + }, + { + internalType: "uint256", + name: "_tokenId", + type: "uint256", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + name: "onERC721Received", + outputs: [ + { + internalType: "bytes4", + name: "", + type: "bytes4", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class ERC721TokenReceiver__factory { + static readonly abi = _abi; + static createInterface(): ERC721TokenReceiverInterface { + return new utils.Interface(_abi) as ERC721TokenReceiverInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ERC721TokenReceiver { + return new Contract(address, _abi, signerOrProvider) as ERC721TokenReceiver; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/ERC777TokensRecipient__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/ERC777TokensRecipient__factory.ts new file mode 100644 index 0000000000..3db58a84ec --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/ERC777TokensRecipient__factory.ts @@ -0,0 +1,68 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + ERC777TokensRecipient, + ERC777TokensRecipientInterface, +} from "../../../contracts/interfaces/ERC777TokensRecipient"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "operator", + type: "address", + }, + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + { + internalType: "bytes", + name: "operatorData", + type: "bytes", + }, + ], + name: "tokensReceived", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class ERC777TokensRecipient__factory { + static readonly abi = _abi; + static createInterface(): ERC777TokensRecipientInterface { + return new utils.Interface(_abi) as ERC777TokensRecipientInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ERC777TokensRecipient { + return new Contract( + address, + _abi, + signerOrProvider + ) as ERC777TokensRecipient; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/IERC165__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/IERC165__factory.ts new file mode 100644 index 0000000000..5de30570be --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/IERC165__factory.ts @@ -0,0 +1,45 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + IERC165, + IERC165Interface, +} from "../../../contracts/interfaces/IERC165"; + +const _abi = [ + { + inputs: [ + { + internalType: "bytes4", + name: "interfaceId", + type: "bytes4", + }, + ], + name: "supportsInterface", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, +] as const; + +export class IERC165__factory { + static readonly abi = _abi; + static createInterface(): IERC165Interface { + return new utils.Interface(_abi) as IERC165Interface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IERC165 { + return new Contract(address, _abi, signerOrProvider) as IERC165; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/IFallbackManager__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/IFallbackManager__factory.ts new file mode 100644 index 0000000000..990ae01530 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/IFallbackManager__factory.ts @@ -0,0 +1,52 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + IFallbackManager, + IFallbackManagerInterface, +} from "../../../contracts/interfaces/IFallbackManager"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "handler", + type: "address", + }, + ], + name: "ChangedFallbackHandler", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "handler", + type: "address", + }, + ], + name: "setFallbackHandler", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IFallbackManager__factory { + static readonly abi = _abi; + static createInterface(): IFallbackManagerInterface { + return new utils.Interface(_abi) as IFallbackManagerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IFallbackManager { + return new Contract(address, _abi, signerOrProvider) as IFallbackManager; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/IGuardManager__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/IGuardManager__factory.ts new file mode 100644 index 0000000000..a1affe7559 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/IGuardManager__factory.ts @@ -0,0 +1,52 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + IGuardManager, + IGuardManagerInterface, +} from "../../../contracts/interfaces/IGuardManager"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "ChangedGuard", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "setGuard", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IGuardManager__factory { + static readonly abi = _abi; + static createInterface(): IGuardManagerInterface { + return new utils.Interface(_abi) as IGuardManagerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IGuardManager { + return new Contract(address, _abi, signerOrProvider) as IGuardManager; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/IModuleManager__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/IModuleManager__factory.ts new file mode 100644 index 0000000000..280ac63e5d --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/IModuleManager__factory.ts @@ -0,0 +1,256 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + IModuleManager, + IModuleManagerInterface, +} from "../../../contracts/interfaces/IModuleManager"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "ChangedGuard", + 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: "address", + name: "module", + type: "address", + }, + ], + name: "ExecutionFromModuleFailure", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "module", + type: "address", + }, + ], + name: "ExecutionFromModuleSuccess", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "prevModule", + type: "address", + }, + { + internalType: "address", + name: "module", + type: "address", + }, + ], + name: "disableModule", + outputs: [], + stateMutability: "nonpayable", + 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", + }, + ], + 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: [ + { + 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: [ + { + internalType: "address", + name: "module", + type: "address", + }, + ], + name: "isModuleEnabled", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "setGuard", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IModuleManager__factory { + static readonly abi = _abi; + static createInterface(): IModuleManagerInterface { + return new utils.Interface(_abi) as IModuleManagerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IModuleManager { + return new Contract(address, _abi, signerOrProvider) as IModuleManager; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/IOwnerManager__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/IOwnerManager__factory.ts new file mode 100644 index 0000000000..9b43c8dc72 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/IOwnerManager__factory.ts @@ -0,0 +1,187 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + IOwnerManager, + IOwnerManagerInterface, +} from "../../../contracts/interfaces/IOwnerManager"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "owner", + type: "address", + }, + ], + name: "AddedOwner", + 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: "owner", + type: "address", + }, + ], + name: "RemovedOwner", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "uint256", + name: "_threshold", + type: "uint256", + }, + ], + name: "addOwnerWithThreshold", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_threshold", + type: "uint256", + }, + ], + name: "changeThreshold", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "getOwners", + outputs: [ + { + internalType: "address[]", + name: "", + type: "address[]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "getThreshold", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + ], + name: "isOwner", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + 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: "prevOwner", + type: "address", + }, + { + internalType: "address", + name: "oldOwner", + type: "address", + }, + { + internalType: "address", + name: "newOwner", + type: "address", + }, + ], + name: "swapOwner", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IOwnerManager__factory { + static readonly abi = _abi; + static createInterface(): IOwnerManagerInterface { + return new utils.Interface(_abi) as IOwnerManagerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IOwnerManager { + return new Contract(address, _abi, signerOrProvider) as IOwnerManager; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/ISafe__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/ISafe__factory.ts new file mode 100644 index 0000000000..36f6f44019 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/ISafe__factory.ts @@ -0,0 +1,887 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + ISafe, + ISafeInterface, +} from "../../../contracts/interfaces/ISafe"; + +const _abi = [ + { + 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: "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", + }, + { + 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: "owner", + type: "address", + }, + { + internalType: "bytes32", + name: "messageHash", + 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: "address", + name: "executor", + type: "address", + }, + { + internalType: "bytes32", + name: "dataHash", + type: "bytes32", + }, + { + 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: "", + type: "bytes", + }, + { + internalType: "bytes", + name: "signatures", + type: "bytes", + }, + ], + name: "checkSignatures", + outputs: [], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "dataHash", + type: "bytes32", + }, + { + 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 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: [ + { + 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: [], + 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: "messageHash", + type: "bytes32", + }, + ], + name: "signedMessages", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + 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", + }, +] as const; + +export class ISafe__factory { + static readonly abi = _abi; + static createInterface(): ISafeInterface { + return new utils.Interface(_abi) as ISafeInterface; + } + static connect(address: string, signerOrProvider: Signer | Provider): ISafe { + return new Contract(address, _abi, signerOrProvider) as ISafe; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/ISignatureValidator__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/ISignatureValidator__factory.ts new file mode 100644 index 0000000000..85010c7015 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/ISignatureValidator__factory.ts @@ -0,0 +1,50 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + ISignatureValidator, + ISignatureValidatorInterface, +} from "../../../contracts/interfaces/ISignatureValidator"; + +const _abi = [ + { + inputs: [ + { + internalType: "bytes32", + name: "_hash", + type: "bytes32", + }, + { + internalType: "bytes", + name: "_signature", + type: "bytes", + }, + ], + name: "isValidSignature", + outputs: [ + { + internalType: "bytes4", + name: "", + type: "bytes4", + }, + ], + stateMutability: "view", + type: "function", + }, +] as const; + +export class ISignatureValidator__factory { + static readonly abi = _abi; + static createInterface(): ISignatureValidatorInterface { + return new utils.Interface(_abi) as ISignatureValidatorInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ISignatureValidator { + return new Contract(address, _abi, signerOrProvider) as ISignatureValidator; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/ViewStorageAccessible__factory.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/ViewStorageAccessible__factory.ts new file mode 100644 index 0000000000..933f2382ee --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/ViewStorageAccessible__factory.ts @@ -0,0 +1,54 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + ViewStorageAccessible, + ViewStorageAccessibleInterface, +} from "../../../contracts/interfaces/ViewStorageAccessible"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "targetContract", + type: "address", + }, + { + internalType: "bytes", + name: "calldataPayload", + type: "bytes", + }, + ], + name: "simulate", + outputs: [ + { + internalType: "bytes", + name: "", + type: "bytes", + }, + ], + stateMutability: "view", + type: "function", + }, +] as const; + +export class ViewStorageAccessible__factory { + static readonly abi = _abi; + static createInterface(): ViewStorageAccessibleInterface { + return new utils.Interface(_abi) as ViewStorageAccessibleInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ViewStorageAccessible { + return new Contract( + address, + _abi, + signerOrProvider + ) as ViewStorageAccessible; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/interfaces/index.ts b/src/assets/typechain-types/safe/factories/contracts/interfaces/index.ts new file mode 100644 index 0000000000..435ff5cb7f --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/interfaces/index.ts @@ -0,0 +1,14 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { ERC1155TokenReceiver__factory } from "./ERC1155TokenReceiver__factory"; +export { ERC721TokenReceiver__factory } from "./ERC721TokenReceiver__factory"; +export { ERC777TokensRecipient__factory } from "./ERC777TokensRecipient__factory"; +export { IERC165__factory } from "./IERC165__factory"; +export { IFallbackManager__factory } from "./IFallbackManager__factory"; +export { IGuardManager__factory } from "./IGuardManager__factory"; +export { IModuleManager__factory } from "./IModuleManager__factory"; +export { IOwnerManager__factory } from "./IOwnerManager__factory"; +export { ISafe__factory } from "./ISafe__factory"; +export { ISignatureValidator__factory } from "./ISignatureValidator__factory"; +export { ViewStorageAccessible__factory } from "./ViewStorageAccessible__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/libraries/CreateCall__factory.ts b/src/assets/typechain-types/safe/factories/contracts/libraries/CreateCall__factory.ts new file mode 100644 index 0000000000..4f88d445a6 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/libraries/CreateCall__factory.ts @@ -0,0 +1,128 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + CreateCall, + CreateCallInterface, +} from "../../../contracts/libraries/CreateCall"; + +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; + +const _bytecode = + "0x608060405234801561001057600080fd5b5061044b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634847be6f1461003b5780634c8c9ea114610134575b600080fd5b6101086004803603606081101561005157600080fd5b81019080803590602001909291908035906020019064010000000081111561007857600080fd5b82018360208201111561008a57600080fd5b803590602001918460018302840111640100000000831117156100ac57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190505050610223565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101f76004803603604081101561014a57600080fd5b81019080803590602001909291908035906020019064010000000081111561017157600080fd5b82018360208201111561018357600080fd5b803590602001918460018302840111640100000000831117156101a557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061031d565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008183518460200186f59050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156102d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f436f756c64206e6f74206465706c6f7920636f6e74726163740000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167f4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b51160405160405180910390a29392505050565b600081516020830184f09050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156103cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f436f756c64206e6f74206465706c6f7920636f6e74726163740000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167f4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b51160405160405180910390a29291505056fea2646970667358221220153dfbb31f5824b1a17183b88443b5d0771b935e8acd92186d58555a02e4b41f64736f6c63430007060033"; + +type CreateCallConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: CreateCallConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class CreateCall__factory extends ContractFactory { + constructor(...args: CreateCallConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): CreateCall { + return super.attach(address) as CreateCall; + } + override connect(signer: Signer): CreateCall__factory { + return super.connect(signer) as CreateCall__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): CreateCallInterface { + return new utils.Interface(_abi) as CreateCallInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): CreateCall { + return new Contract(address, _abi, signerOrProvider) as CreateCall; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/libraries/MultiSendCallOnly__factory.ts b/src/assets/typechain-types/safe/factories/contracts/libraries/MultiSendCallOnly__factory.ts new file mode 100644 index 0000000000..14efdb2a6b --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/libraries/MultiSendCallOnly__factory.ts @@ -0,0 +1,75 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + MultiSendCallOnly, + MultiSendCallOnlyInterface, +} from "../../../contracts/libraries/MultiSendCallOnly"; + +const _abi = [ + { + inputs: [ + { + internalType: "bytes", + name: "transactions", + type: "bytes", + }, + ], + name: "multiSend", + outputs: [], + stateMutability: "payable", + type: "function", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b506101a7806100206000396000f3fe60806040526004361061001e5760003560e01c80638d80ff0a14610023575b600080fd5b6100dc6004803603602081101561003957600080fd5b810190808035906020019064010000000081111561005657600080fd5b82018360208201111561006857600080fd5b8035906020019184600183028401116401000000008311171561008a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506100de565b005b805160205b8181101561016c578083015160f81c6001820184015160601c3081150281179050601583018501516035840186015160558501870160008560008114610130576001811461014057610145565b6000808585888a5af19150610145565b600080fd5b506000811415610159573d6000803e3d6000fd5b82605501870196505050505050506100e3565b50505056fea264697066735822122000250349ea75d699aeb18c12c69612fd1acc8c66ad1710a840b49574ece9b09364736f6c63430007060033"; + +type MultiSendCallOnlyConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: MultiSendCallOnlyConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class MultiSendCallOnly__factory extends ContractFactory { + constructor(...args: MultiSendCallOnlyConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): MultiSendCallOnly { + return super.attach(address) as MultiSendCallOnly; + } + override connect(signer: Signer): MultiSendCallOnly__factory { + return super.connect(signer) as MultiSendCallOnly__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): MultiSendCallOnlyInterface { + return new utils.Interface(_abi) as MultiSendCallOnlyInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MultiSendCallOnly { + return new Contract(address, _abi, signerOrProvider) as MultiSendCallOnly; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/libraries/MultiSend__factory.ts b/src/assets/typechain-types/safe/factories/contracts/libraries/MultiSend__factory.ts new file mode 100644 index 0000000000..31a953d86d --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/libraries/MultiSend__factory.ts @@ -0,0 +1,80 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + MultiSend, + MultiSendInterface, +} from "../../../contracts/libraries/MultiSend"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [ + { + internalType: "bytes", + name: "transactions", + type: "bytes", + }, + ], + name: "multiSend", + outputs: [], + stateMutability: "payable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60a060405234801561001057600080fd5b503073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505060805160601c6102826100646000398060e052506102826000f3fe60806040526004361061001e5760003560e01c80638d80ff0a14610023575b600080fd5b6100dc6004803603602081101561003957600080fd5b810190808035906020019064010000000081111561005657600080fd5b82018360208201111561006857600080fd5b8035906020019184600183028401116401000000008311171561008a57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506100de565b005b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061021d6030913960400191505060405180910390fd5b805160205b81811015610217578083015160f81c6001820184015160601c30811502811790506015830185015160358401860151605585018701600085600081146101d557600181146101e5576101f0565b6000808585888a5af191506101f0565b6000808585895af491505b506000811415610204573d6000803e3d6000fd5b8260550187019650505050505050610188565b50505056fe4d756c746953656e642073686f756c64206f6e6c792062652063616c6c6564207669612064656c656761746563616c6ca2646970667358221220e9247725ae02281aece4e1adb50750a16d7263291351569be0013fc5e27ba8e364736f6c63430007060033"; + +type MultiSendConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: MultiSendConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class MultiSend__factory extends ContractFactory { + constructor(...args: MultiSendConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): MultiSend { + return super.attach(address) as MultiSend; + } + override connect(signer: Signer): MultiSend__factory { + return super.connect(signer) as MultiSend__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): MultiSendInterface { + return new utils.Interface(_abi) as MultiSendInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): MultiSend { + return new Contract(address, _abi, signerOrProvider) as MultiSend; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/libraries/Safe130To141Migration__factory.ts b/src/assets/typechain-types/safe/factories/contracts/libraries/Safe130To141Migration__factory.ts new file mode 100644 index 0000000000..e685aa18ae --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/libraries/Safe130To141Migration__factory.ts @@ -0,0 +1,151 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + Safe130To141Migration, + Safe130To141MigrationInterface, +} from "../../../contracts/libraries/Safe130To141Migration"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "address", + name: "singleton", + type: "address", + }, + ], + name: "ChangedMasterCopy", + type: "event", + }, + { + inputs: [], + name: "SAFE_141_FALLBACK_HANDLER", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "SAFE_141_SINGLETON", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "SAFE_141_SINGLETON_L2", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "migrate", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "migrateL2", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "migrateL2WithFallbackHandler", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "migrateWithFallbackHandler", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b506100347341675c099f32341bf84bfc5382af534df5c7461a61017e60201b60201c565b610089576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806106e86024913960400191505060405180910390fd5b6100ac7329fcb43b46531bca003ddc8fcb67ffe91900c76261017e60201b60201c565b610101576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602981526020018061070c6029913960400191505060405180910390fd5b61012473fd0732dc9e303f09fcef3a7388ad10a83459ec9961017e60201b60201c565b610179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180610735602b913960400191505060405180910390fd5b610191565b600080823b905060008111915050919050565b610548806101a06000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c80638fd3ab801161005b5780638fd3ab80146100f457806392b501b7146100fe578063ed007fc614610132578063fdd097561461013c5761007d565b80636253390f1461008257806368cb3d94146100b65780636ca63244146100c0575b600080fd5b61008a610146565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100be61015e565b005b6100c86101fd565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100fc610215565b005b6101066102e0565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61013a6102f8565b005b610144610397565b005b7341675c099f32341bf84bfc5382af534df5c7461a81565b610166610397565b3073ffffffffffffffffffffffffffffffffffffffff1663f08a032373fd0732dc9e303f09fcef3a7388ad10a83459ec996040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1580156101e357600080fd5b505af11580156101f7573d6000803e3d6000fd5b50505050565b7329fcb43b46531bca003ddc8fcb67ffe91900c76281565b61021d610462565b7341675c099f32341bf84bfc5382af534df5c7461a6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f75e41bc35ff1bf14d81d1d2f649c0084a0f974f9289c803ec9898eeec4c8d0b860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b73fd0732dc9e303f09fcef3a7388ad10a83459ec9981565b610300610215565b3073ffffffffffffffffffffffffffffffffffffffff1663f08a032373fd0732dc9e303f09fcef3a7388ad10a83459ec996040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561037d57600080fd5b505af1158015610391573d6000803e3d6000fd5b50505050565b61039f610462565b7329fcb43b46531bca003ddc8fcb67ffe91900c7626000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f75e41bc35ff1bf14d81d1d2f649c0084a0f974f9289c803ec9898eeec4c8d0b860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b61048b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff166104ff565b6104fd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f556e737570706f727465642070726f787920636f6e747261637400000000000081525060200191505060405180910390fd5b565b600080823b90506000811191505091905056fea2646970667358221220d48e3d0966b9caff984832eacaa093e3eac56372810947c97f70b91114582bf064736f6c634300070600335361666520312e342e312053696e676c65746f6e206973206e6f74206465706c6f7965645361666520312e342e312053696e676c65746f6e20284c3229206973206e6f74206465706c6f7965645361666520312e342e312046616c6c6261636b2048616e646c6572206973206e6f74206465706c6f796564"; + +type Safe130To141MigrationConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: Safe130To141MigrationConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class Safe130To141Migration__factory extends ContractFactory { + constructor(...args: Safe130To141MigrationConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): Safe130To141Migration { + return super.attach(address) as Safe130To141Migration; + } + override connect(signer: Signer): Safe130To141Migration__factory { + return super.connect(signer) as Safe130To141Migration__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): Safe130To141MigrationInterface { + return new utils.Interface(_abi) as Safe130To141MigrationInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): Safe130To141Migration { + return new Contract( + address, + _abi, + signerOrProvider + ) as Safe130To141Migration; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/libraries/Safe150Migration__factory.ts b/src/assets/typechain-types/safe/factories/contracts/libraries/Safe150Migration__factory.ts new file mode 100644 index 0000000000..c5798bce7d --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/libraries/Safe150Migration__factory.ts @@ -0,0 +1,199 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + Safe150Migration, + Safe150MigrationInterface, +} from "../../../contracts/libraries/Safe150Migration"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "address", + name: "singleton", + type: "address", + }, + ], + name: "ChangedMasterCopy", + type: "event", + }, + { + inputs: [], + name: "SAFE_150_FALLBACK_HANDLER", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "SAFE_150_SINGLETON", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "SAFE_150_SINGLETON_L2", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "migrateL2Singleton", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "migrateL2WithFallbackHandler", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "migrateL2WithSetGuard", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "migrateL2WithSetGuardAndFallbackHandler", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "migrateSingleton", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "migrateWithFallbackHandler", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "migrateWithSetGuard", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "guard", + type: "address", + }, + ], + name: "migrateWithSetGuardAndFallbackHandler", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b506100347388627c8904ecd9df96a572ef32a7ff13b199ed8d61017e60201b60201c565b610089576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526024815260200180610de66024913960400191505060405180910390fd5b6100ac730ee37514644683f7eb9745a5726c722deba77e5261017e60201b60201c565b610101576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526029815260200180610e0a6029913960400191505060405180910390fd5b610124738aa755cb169991fedc3e306751dcb71964a041c761017e60201b60201c565b610179576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180610e33602b913960400191505060405180910390fd5b610191565b600080823b905060008111915050919050565b610c46806101a06000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c8063a5e2eedc11610071578063a5e2eedc1461016e578063b7a446f3146101a2578063dc162932146101e6578063ec7b48c91461022a578063ed007fc61461026e578063f6682ab014610278576100a9565b806307f464a4146100ae5780630db9ceab146100b85780631e98bdc9146100ec57806368cb3d9414610120578063807b56d71461012a575b600080fd5b6100b6610282565b005b6100c0610355565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100f461036d565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610128610385565b005b61016c6004803603602081101561014057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061042c565b005b6101766104d5565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101e4600480360360208110156101b857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506104ed565b005b610228600480360360208110156101fc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061063a565b005b61026c6004803603602081101561024057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610787565b005b610276610830565b005b6102806108d7565b005b61028a6109aa565b610292610a2a565b730ee37514644683f7eb9745a5726c722deba77e526000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f75e41bc35ff1bf14d81d1d2f649c0084a0f974f9289c803ec9898eeec4c8d0b860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b730ee37514644683f7eb9745a5726c722deba77e5281565b738aa755cb169991fedc3e306751dcb71964a041c781565b61038d6109aa565b610395610282565b3073ffffffffffffffffffffffffffffffffffffffff1663f08a0323738aa755cb169991fedc3e306751dcb71964a041c76040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561041257600080fd5b505af1158015610426573d6000803e3d6000fd5b50505050565b6104346109aa565b61043d816104ed565b3073ffffffffffffffffffffffffffffffffffffffff1663f08a0323738aa755cb169991fedc3e306751dcb71964a041c76040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1580156104ba57600080fd5b505af11580156104ce573d6000803e3d6000fd5b5050505050565b7388627c8904ecd9df96a572ef32a7ff13b199ed8d81565b6104f56109aa565b7388627c8904ecd9df96a572ef32a7ff13b199ed8d6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f75e41bc35ff1bf14d81d1d2f649c0084a0f974f9289c803ec9898eeec4c8d0b860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a13073ffffffffffffffffffffffffffffffffffffffff1663e19a9dd9826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561061f57600080fd5b505af1158015610633573d6000803e3d6000fd5b5050505050565b6106426109aa565b730ee37514644683f7eb9745a5726c722deba77e526000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f75e41bc35ff1bf14d81d1d2f649c0084a0f974f9289c803ec9898eeec4c8d0b860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a13073ffffffffffffffffffffffffffffffffffffffff1663e19a9dd9826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561076c57600080fd5b505af1158015610780573d6000803e3d6000fd5b5050505050565b61078f6109aa565b6107988161063a565b3073ffffffffffffffffffffffffffffffffffffffff1663f08a0323738aa755cb169991fedc3e306751dcb71964a041c76040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561081557600080fd5b505af1158015610829573d6000803e3d6000fd5b5050505050565b6108386109aa565b6108406108d7565b3073ffffffffffffffffffffffffffffffffffffffff1663f08a0323738aa755cb169991fedc3e306751dcb71964a041c76040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1580156108bd57600080fd5b505af11580156108d1573d6000803e3d6000fd5b50505050565b6108df6109aa565b6108e7610a2a565b7388627c8904ecd9df96a572ef32a7ff13b199ed8d6000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f75e41bc35ff1bf14d81d1d2f649c0084a0f974f9289c803ec9898eeec4c8d0b860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b6109d360008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610bab565b610a28576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610bf06021913960400191505060405180910390fd5b565b6000610a34610bbe565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ba8578073ffffffffffffffffffffffffffffffffffffffff166301ffc9a77f945b8148000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b815260040180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200191505060206040518083038186803b158015610afa57600080fd5b505afa158015610b0e573d6000803e3d6000fd5b505050506040513d6020811015610b2457600080fd5b8101908080519060200190929190505050610ba7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260058152602001807f475333303000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b5b50565b600080823b905060008111915050919050565b6000807f4a204f620c8c5ccdca3fd54d003badd85ba500436a431f0cbda4f558c93c34c860001b905080549150509056fe547279696e6720746f206d69677261746520616e20696e76616c69642053616665a2646970667358221220b00dc4b0bb6275b40db66d53fa8129d4581db28eea56c7b12780aa585ee7525064736f6c634300070600335361666520312e342e312053696e676c65746f6e206973206e6f74206465706c6f7965645361666520312e342e312053696e676c65746f6e20284c3229206973206e6f74206465706c6f7965645361666520312e342e312046616c6c6261636b2048616e646c6572206973206e6f74206465706c6f796564"; + +type Safe150MigrationConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: Safe150MigrationConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class Safe150Migration__factory extends ContractFactory { + constructor(...args: Safe150MigrationConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): Safe150Migration { + return super.attach(address) as Safe150Migration; + } + override connect(signer: Signer): Safe150Migration__factory { + return super.connect(signer) as Safe150Migration__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): Safe150MigrationInterface { + return new utils.Interface(_abi) as Safe150MigrationInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): Safe150Migration { + return new Contract(address, _abi, signerOrProvider) as Safe150Migration; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/libraries/SafeToL2Migration__factory.ts b/src/assets/typechain-types/safe/factories/contracts/libraries/SafeToL2Migration__factory.ts new file mode 100644 index 0000000000..856b3f0a9d --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/libraries/SafeToL2Migration__factory.ts @@ -0,0 +1,234 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + SafeToL2Migration, + SafeToL2MigrationInterface, +} from "../../../contracts/libraries/SafeToL2Migration"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "address", + name: "singleton", + type: "address", + }, + ], + name: "ChangedMasterCopy", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + 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: "uint256", + name: "baseGas", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "gasPrice", + type: "uint256", + }, + { + indexed: false, + internalType: "address", + name: "gasToken", + type: "address", + }, + { + indexed: false, + internalType: "address payable", + name: "refundReceiver", + type: "address", + }, + { + indexed: false, + internalType: "bytes", + name: "signatures", + type: "bytes", + }, + { + indexed: false, + internalType: "bytes", + name: "additionalInfo", + type: "bytes", + }, + ], + name: "SafeMultiSigTransaction", + 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", + }, + { + inputs: [], + name: "MIGRATION_SINGLETON", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "l2Singleton", + type: "address", + }, + { + internalType: "address", + name: "fallbackHandler", + type: "address", + }, + ], + name: "migrateFromV111", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "l2Singleton", + type: "address", + }, + ], + name: "migrateToL2", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60a060405234801561001057600080fd5b503073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505060805160601c61166861007960003980610124528061014852806108415280610b70528061132552506116686000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806372f7a95614610046578063d9a208121461007a578063ef2624ae146100de575b600080fd5b61004e610122565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100dc6004803603604081101561009057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610146565b005b610120600480360360208110156100f457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b6e565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614156101eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806115646030913960400191505060405180910390fd5b600160055414610246576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806116116022913960400191505060405180910390fd5b61024f81611263565b6102a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806115946021913960400191505060405180910390fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b815260040160006040518083038186803b15801561030d57600080fd5b505afa158015610321573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250602081101561034b57600080fd5b810190808051604051939291908464010000000082111561036b57600080fd5b8382019150602082018581111561038157600080fd5b825186600182028301116401000000008211171561039e57600080fd5b8083526020830192505050908051906020019080838360005b838110156103d25780820151818401526020810190506103b7565b50505050905090810190601f1680156103ff5780820380516001836020036101000a031916815260200191505b506040525050506040516020018082805190602001908083835b6020831061043c5780518252602082019150602081019050602083039250610419565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405280519060200120905060405160200180807f312e312e310000000000000000000000000000000000000000000000000000008152506005019050604051602081830303815290604052805190602001208114610517576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806115b5602b913960400191505060405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b815260040160006040518083038186803b15801561055f57600080fd5b505afa158015610573573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250602081101561059d57600080fd5b81019080805160405193929190846401000000008211156105bd57600080fd5b838201915060208201858111156105d357600080fd5b82518660018202830111640100000000821117156105f057600080fd5b8083526020830192505050908051906020019080838360005b83811015610624578082015181840152602081019050610609565b50505050905090810190601f1680156106515780820380516001836020036101000a031916815260200191505b506040525050506040516020018082805190602001908083835b6020831061068e578051825260208201915060208101905060208303925061066b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405280519060200120905060405160200180807f312e332e30000000000000000000000000000000000000000000000000000000815250600501905060405160208183030381529060405280519060200120811480610764575060405160200180807f312e342e3100000000000000000000000000000000000000000000000000000081525060050190506040516020818303038152906040528051906020012081145b6107b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806115b5602b913960400191505060405180910390fd5b60003090508073ffffffffffffffffffffffffffffffffffffffff1663f08a0323856040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b15801561082757600080fd5b505af115801561083b573d6000803e3d6000fd5b505050507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff167f141df868a6331af528e38c83b7aa03edc19be66e37ae67f9285bf4f8e3c6a1a88273ffffffffffffffffffffffffffffffffffffffff1663a0e67e2b6040518163ffffffff1660e01b815260040160006040518083038186803b1580156108dd57600080fd5b505afa1580156108f1573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250602081101561091b57600080fd5b810190808051604051939291908464010000000082111561093b57600080fd5b8382019150602082018581111561095157600080fd5b825186602082028301116401000000008211171561096e57600080fd5b8083526020830192505050908051906020019060200280838360005b838110156109a557808201518184015260208101905061098a565b505050509050016040525050508373ffffffffffffffffffffffffffffffffffffffff1663e75235b86040518163ffffffff1660e01b815260040160206040518083038186803b1580156109f857600080fd5b505afa158015610a0c573d6000803e3d6000fd5b505050506040513d6020811015610a2257600080fd5b810190808051906020019092919050505060008860405180806020018581526020018473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff168152602001828103825286818151815260200191508051906020019060200280838360005b83811015610ab7578082015181840152602081019050610a9c565b505050509050019550505050505060405180910390a2600063d9a208128686604051602401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff168152602001925050506040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050610b668682611276565b505050505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161415610c13576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806115646030913960400191505060405180910390fd5b600160055414610c6e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806116116022913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610d13576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806115416023913960400191505060405180910390fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b815260040160006040518083038186803b158015610d7c57600080fd5b505afa158015610d90573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015610dba57600080fd5b8101908080516040519392919084640100000000821115610dda57600080fd5b83820191506020820185811115610df057600080fd5b8251866001820283011164010000000082111715610e0d57600080fd5b8083526020830192505050908051906020019080838360005b83811015610e41578082015181840152602081019050610e26565b50505050905090810190601f168015610e6e5780820380516001836020036101000a031916815260200191505b506040525050506040516020018082805190602001908083835b60208310610eab5780518252602082019150602081019050602083039250610e88565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405280519060200120905060008273ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b815260040160006040518083038186803b158015610f3057600080fd5b505afa158015610f44573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052506020811015610f6e57600080fd5b8101908080516040519392919084640100000000821115610f8e57600080fd5b83820191506020820185811115610fa457600080fd5b8251866001820283011164010000000082111715610fc157600080fd5b8083526020830192505050908051906020019080838360005b83811015610ff5578082015181840152602081019050610fda565b50505050905090810190601f1680156110225780820380516001836020036101000a031916815260200191505b506040525050506040516020018082805190602001908083835b6020831061105f578051825260208201915060208101905060208303925061103c565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040528051906020012090508082146110f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260318152602001806115e06031913960400191505060405180910390fd5b60405160200180807f312e332e3000000000000000000000000000000000000000000000000000000081525060050190506040516020818303038152906040528051906020012081148061118d575060405160200180807f312e342e3100000000000000000000000000000000000000000000000000000081525060050190506040516020818303038152906040528051906020012081145b6111e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806115b5602b913960400191505060405180910390fd5b600063ef2624ae84604051602401808273ffffffffffffffffffffffffffffffffffffffff1681526020019150506040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905061125d8482611276565b50505050565b600080823b905060008111915050919050565b816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008033600454604051602001808481526020018373ffffffffffffffffffffffffffffffffffffffff168152602001828152602001935050505060405160208183030381529060405290507f66753cd2356569ee081232e3be8909b950e0a76c1f8460c3a5e3c2be32b11bed7f0000000000000000000000000000000000000000000000000000000000000000600084600160008060008060008a604051808b73ffffffffffffffffffffffffffffffffffffffff1681526020018a81526020018060200189600181111561138857fe5b81526020018881526020018781526020018681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200184810384528c818151815260200191508051906020019080838360005b838110156114175780820151818401526020810190506113fc565b50505050905090810190601f1680156114445780820380516001836020036101000a031916815260200191505b50848103835260008152602001848103825285818151815260200191508051906020019080838360005b8381101561148957808201518184015260208101905061146e565b50505050905090810190601f1680156114b65780820380516001836020036101000a031916815260200191505b509d505050505050505050505050505060405180910390a17f75e41bc35ff1bf14d81d1d2f649c0084a0f974f9289c803ec9898eeec4c8d0b860008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a150505056fe5361666520697320616c7265616479207573696e67207468652073696e676c65746f6e4d6967726174696f6e2073686f756c64206f6e6c792062652063616c6c6564207669612064656c656761746563616c6c66616c6c6261636b48616e646c6572206973206e6f74206120636f6e747261637450726f76696465642073696e676c65746f6e2076657273696f6e206973206e6f7420737570706f727465644c322073696e676c65746f6e206d757374206d617463682063757272656e742076657273696f6e2073696e676c65746f6e53616665206d7573742068617665206e6f7420657865637574656420616e79207478a26469706673582212209e7602ff6f93f41fd0d07e9f6af190a443dff4fcfcfe805b1b11436c54f8e5d264736f6c63430007060033"; + +type SafeToL2MigrationConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: SafeToL2MigrationConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class SafeToL2Migration__factory extends ContractFactory { + constructor(...args: SafeToL2MigrationConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): SafeToL2Migration { + return super.attach(address) as SafeToL2Migration; + } + override connect(signer: Signer): SafeToL2Migration__factory { + return super.connect(signer) as SafeToL2Migration__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): SafeToL2MigrationInterface { + return new utils.Interface(_abi) as SafeToL2MigrationInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): SafeToL2Migration { + return new Contract(address, _abi, signerOrProvider) as SafeToL2Migration; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/libraries/SignMessageLib__factory.ts b/src/assets/typechain-types/safe/factories/contracts/libraries/SignMessageLib__factory.ts new file mode 100644 index 0000000000..68e1b3fa12 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/libraries/SignMessageLib__factory.ts @@ -0,0 +1,107 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + SignMessageLib, + SignMessageLibInterface, +} from "../../../contracts/libraries/SignMessageLib"; + +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; + +const _bytecode = + "0x608060405234801561001057600080fd5b506103c6806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80630a1028c41461003b57806385a5affe1461010a575b600080fd5b6100f46004803603602081101561005157600080fd5b810190808035906020019064010000000081111561006e57600080fd5b82018360208201111561008057600080fd5b803590602001918460018302840111640100000000831117156100a257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050610183565b6040518082815260200191505060405180910390f35b6101816004803603602081101561012057600080fd5b810190808035906020019064010000000081111561013d57600080fd5b82018360208201111561014f57600080fd5b8035906020019184600183028401116401000000008311171561017157600080fd5b90919293919293905050506102f4565b005b6000807f60b3cbf8b4a223d68d641b3b6ddf9a298e7f33710cf3d3a9d1146b5a6150fbca60001b83805190602001206040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209050601960f81b600160f81b3073ffffffffffffffffffffffffffffffffffffffff1663f698da256040518163ffffffff1660e01b815260040160206040518083038186803b15801561023157600080fd5b505afa158015610245573d6000803e3d6000fd5b505050506040513d602081101561025b57600080fd5b81019080805190602001909291905050508360405160200180857effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101847effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260010183815260200182815260200194505050505060405160208183030381529060405280519060200120915050919050565b600061034383838080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610183565b905060016007600083815260200190815260200160002081905550807fe7f4675038f4f6034dfcbbb24c4dc08e4ebf10eb9d257d3d02c0f38d122ac6e460405160405180910390a250505056fea26469706673582212200fea6091ee5ea62fc3abc8c4fd2739ab612607cea3a2badd60525ecaa656310864736f6c63430007060033"; + +type SignMessageLibConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: SignMessageLibConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class SignMessageLib__factory extends ContractFactory { + constructor(...args: SignMessageLibConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): SignMessageLib { + return super.attach(address) as SignMessageLib; + } + override connect(signer: Signer): SignMessageLib__factory { + return super.connect(signer) as SignMessageLib__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): SignMessageLibInterface { + return new utils.Interface(_abi) as SignMessageLibInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): SignMessageLib { + return new Contract(address, _abi, signerOrProvider) as SignMessageLib; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/libraries/index.ts b/src/assets/typechain-types/safe/factories/contracts/libraries/index.ts new file mode 100644 index 0000000000..2995ec0cbe --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/libraries/index.ts @@ -0,0 +1,10 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { CreateCall__factory } from "./CreateCall__factory"; +export { MultiSend__factory } from "./MultiSend__factory"; +export { MultiSendCallOnly__factory } from "./MultiSendCallOnly__factory"; +export { Safe130To141Migration__factory } from "./Safe130To141Migration__factory"; +export { Safe150Migration__factory } from "./Safe150Migration__factory"; +export { SafeToL2Migration__factory } from "./SafeToL2Migration__factory"; +export { SignMessageLib__factory } from "./SignMessageLib__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/proxies/IProxyCreationCallback__factory.ts b/src/assets/typechain-types/safe/factories/contracts/proxies/IProxyCreationCallback__factory.ts new file mode 100644 index 0000000000..01a44a2259 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/proxies/IProxyCreationCallback__factory.ts @@ -0,0 +1,58 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + IProxyCreationCallback, + IProxyCreationCallbackInterface, +} from "../../../contracts/proxies/IProxyCreationCallback"; + +const _abi = [ + { + inputs: [ + { + internalType: "contract SafeProxy", + name: "proxy", + type: "address", + }, + { + internalType: "address", + name: "_singleton", + type: "address", + }, + { + internalType: "bytes", + name: "initializer", + type: "bytes", + }, + { + internalType: "uint256", + name: "saltNonce", + type: "uint256", + }, + ], + name: "proxyCreated", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class IProxyCreationCallback__factory { + static readonly abi = _abi; + static createInterface(): IProxyCreationCallbackInterface { + return new utils.Interface(_abi) as IProxyCreationCallbackInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): IProxyCreationCallback { + return new Contract( + address, + _abi, + signerOrProvider + ) as IProxyCreationCallback; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/IProxy__factory.ts b/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/IProxy__factory.ts new file mode 100644 index 0000000000..fa803556fc --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/IProxy__factory.ts @@ -0,0 +1,36 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + IProxy, + IProxyInterface, +} from "../../../../contracts/proxies/SafeProxy.sol/IProxy"; + +const _abi = [ + { + inputs: [], + name: "masterCopy", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, +] as const; + +export class IProxy__factory { + static readonly abi = _abi; + static createInterface(): IProxyInterface { + return new utils.Interface(_abi) as IProxyInterface; + } + static connect(address: string, signerOrProvider: Signer | Provider): IProxy { + return new Contract(address, _abi, signerOrProvider) as IProxy; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/SafeProxy__factory.ts b/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/SafeProxy__factory.ts new file mode 100644 index 0000000000..73eadba852 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/SafeProxy__factory.ts @@ -0,0 +1,79 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + SafeProxy, + SafeProxyInterface, +} from "../../../../contracts/proxies/SafeProxy.sol/SafeProxy"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_singleton", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + stateMutability: "payable", + type: "fallback", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b506040516101d63803806101d68339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806101b46022913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050609b806101196000396000f3fe60806040526000547fa619486e00000000000000000000000000000000000000000000000000000000600035141560405780600c1b600c1c60005260206000f35b3660008037600080366000845af43d6000803e60008114156060573d6000fd5b3d6000f3fea2646970667358221220bfbe5e66dfccd59d80684323ec36a561ddc5ef3b39a33a941f25cabefff21eb964736f6c63430007060033496e76616c69642073696e676c65746f6e20616464726573732070726f7669646564"; + +type SafeProxyConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: SafeProxyConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class SafeProxy__factory extends ContractFactory { + constructor(...args: SafeProxyConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + _singleton: string, + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(_singleton, overrides || {}) as Promise; + } + override getDeployTransaction( + _singleton: string, + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(_singleton, overrides || {}); + } + override attach(address: string): SafeProxy { + return super.attach(address) as SafeProxy; + } + override connect(signer: Signer): SafeProxy__factory { + return super.connect(signer) as SafeProxy__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): SafeProxyInterface { + return new utils.Interface(_abi) as SafeProxyInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): SafeProxy { + return new Contract(address, _abi, signerOrProvider) as SafeProxy; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/index.ts b/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/index.ts new file mode 100644 index 0000000000..0ed0385f3f --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxy.sol/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { IProxy__factory } from "./IProxy__factory"; +export { SafeProxy__factory } from "./SafeProxy__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxyFactory__factory.ts b/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxyFactory__factory.ts new file mode 100644 index 0000000000..14c61591c3 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/proxies/SafeProxyFactory__factory.ts @@ -0,0 +1,199 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + SafeProxyFactory, + SafeProxyFactoryInterface, +} from "../../../contracts/proxies/SafeProxyFactory"; + +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; + +const _bytecode = + "0x608060405234801561001057600080fd5b50610bde806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80631688f0b91461005c5780633408e4701461016b57806353e5d93514610189578063d18af54d1461020c578063ec9e80bb1461033b575b600080fd5b61013f6004803603606081101561007257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001906401000000008111156100af57600080fd5b8201836020820111156100c157600080fd5b803590602001918460018302840111640100000000831117156100e357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192908035906020019092919050505061044a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101736104fe565b6040518082815260200191505060405180910390f35b61019161050b565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101d15780820151818401526020810190506101b6565b50505050905090810190601f1680156101fe5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61030f6004803603608081101561022257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561025f57600080fd5b82018360208201111561027157600080fd5b8035906020019184600183028401116401000000008311171561029357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610536565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61041e6004803603606081101561035157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561038e57600080fd5b8201836020820111156103a057600080fd5b803590602001918460018302840111640100000000831117156103c257600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290803590602001909291905050506106e5565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008083805190602001208360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012090506104908585836107a8565b91508173ffffffffffffffffffffffffffffffffffffffff167f4f51faf6c4561ff95f067657e43439f0f856d97c04d9ec9070a6199ad418e23586604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a2509392505050565b6000804690508091505090565b60606040518060200161051d906109c5565b6020820181038252601f19601f82011660405250905090565b6000808383604051602001808381526020018273ffffffffffffffffffffffffffffffffffffffff1660601b8152601401925050506040516020818303038152906040528051906020012060001c905061059186868361044a565b9150600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146106dc578273ffffffffffffffffffffffffffffffffffffffff16631e52b518838888886040518563ffffffff1660e01b8152600401808573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610674578082015181840152602081019050610659565b50505050905090810190601f1680156106a15780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156106c357600080fd5b505af11580156106d7573d6000803e3d6000fd5b505050505b50949350505050565b6000808380519060200120836106f96104fe565b60405160200180848152602001838152602001828152602001935050505060405160208183030381529060405280519060200120905061073a8585836107a8565b91508173ffffffffffffffffffffffffffffffffffffffff167f4f51faf6c4561ff95f067657e43439f0f856d97c04d9ec9070a6199ad418e23586604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a2509392505050565b60006107b3846109b2565b610825576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f53696e676c65746f6e20636f6e7472616374206e6f74206465706c6f7965640081525060200191505060405180910390fd5b600060405180602001610837906109c5565b6020820181038252601f19601f820116604052508573ffffffffffffffffffffffffffffffffffffffff166040516020018083805190602001908083835b602083106108985780518252602082019150602081019050602083039250610875565b6001836020036101000a038019825116818451168082178552505050505050905001828152602001925050506040516020818303038152906040529050828151826020016000f59150600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610984576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f437265617465322063616c6c206661696c65640000000000000000000000000081525060200191505060405180910390fd5b6000845111156109aa5760008060008651602088016000875af114156109a957600080fd5b5b509392505050565b600080823b905060008111915050919050565b6101d6806109d38339019056fe608060405234801561001057600080fd5b506040516101d63803806101d68339818101604052602081101561003357600080fd5b8101908080519060200190929190505050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156100ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806101b46022913960400191505060405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050609b806101196000396000f3fe60806040526000547fa619486e00000000000000000000000000000000000000000000000000000000600035141560405780600c1b600c1c60005260206000f35b3660008037600080366000845af43d6000803e60008114156060573d6000fd5b3d6000f3fea2646970667358221220bfbe5e66dfccd59d80684323ec36a561ddc5ef3b39a33a941f25cabefff21eb964736f6c63430007060033496e76616c69642073696e676c65746f6e20616464726573732070726f7669646564a26469706673582212205a3028dd8b7790d25166de34b7988adc11aadc73d1a1e3a4371767096b06342464736f6c63430007060033"; + +type SafeProxyFactoryConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: SafeProxyFactoryConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class SafeProxyFactory__factory extends ContractFactory { + constructor(...args: SafeProxyFactoryConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): SafeProxyFactory { + return super.attach(address) as SafeProxyFactory; + } + override connect(signer: Signer): SafeProxyFactory__factory { + return super.connect(signer) as SafeProxyFactory__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): SafeProxyFactoryInterface { + return new utils.Interface(_abi) as SafeProxyFactoryInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): SafeProxyFactory { + return new Contract(address, _abi, signerOrProvider) as SafeProxyFactory; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/proxies/index.ts b/src/assets/typechain-types/safe/factories/contracts/proxies/index.ts new file mode 100644 index 0000000000..30ae01722c --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/proxies/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as safeProxySol from "./SafeProxy.sol"; +export { IProxyCreationCallback__factory } from "./IProxyCreationCallback__factory"; +export { SafeProxyFactory__factory } from "./SafeProxyFactory__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/test/DelegateCaller__factory.ts b/src/assets/typechain-types/safe/factories/contracts/test/DelegateCaller__factory.ts new file mode 100644 index 0000000000..2a36d98bb7 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/DelegateCaller__factory.ts @@ -0,0 +1,91 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + DelegateCaller, + DelegateCallerInterface, +} from "../../../contracts/test/DelegateCaller"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_called", + type: "address", + }, + { + internalType: "bytes", + name: "_calldata", + type: "bytes", + }, + ], + name: "makeDelegatecall", + outputs: [ + { + internalType: "bool", + name: "success", + type: "bool", + }, + { + internalType: "bytes", + name: "returnData", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b50610296806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063e632e17214610030575b600080fd5b6101096004803603604081101561004657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019064010000000081111561008357600080fd5b82018360208201111561009557600080fd5b803590602001918460018302840111640100000000831117156100b757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061018d565b60405180831515815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610151578082015181840152602081019050610136565b50505050905090810190601f16801561017e5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b600060608373ffffffffffffffffffffffffffffffffffffffff16836040518082805190602001908083835b602083106101dc57805182526020820191506020810190506020830392506101b9565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855af49150503d806000811461023c576040519150601f19603f3d011682016040523d82523d6000602084013e610241565b606091505b50809250819350505081610259573d6000803e3d6000fd5b925092905056fea2646970667358221220588e0081c5d3e0cfad27619350765395f20d7d3c6598ac5f61dd4fb24aa8a67364736f6c63430007060033"; + +type DelegateCallerConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: DelegateCallerConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class DelegateCaller__factory extends ContractFactory { + constructor(...args: DelegateCallerConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): DelegateCaller { + return super.attach(address) as DelegateCaller; + } + override connect(signer: Signer): DelegateCaller__factory { + return super.connect(signer) as DelegateCaller__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): DelegateCallerInterface { + return new utils.Interface(_abi) as DelegateCallerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): DelegateCaller { + return new Contract(address, _abi, signerOrProvider) as DelegateCaller; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/test/ERC1155Token__factory.ts b/src/assets/typechain-types/safe/factories/contracts/test/ERC1155Token__factory.ts new file mode 100644 index 0000000000..da83ad6128 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/ERC1155Token__factory.ts @@ -0,0 +1,147 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + ERC1155Token, + ERC1155TokenInterface, +} from "../../../contracts/test/ERC1155Token"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + ], + name: "balanceOf", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "value", + type: "uint256", + }, + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "mint", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "id", + type: "uint256", + }, + { + internalType: "uint256", + name: "value", + type: "uint256", + }, + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b50610ae3806100206000396000f3fe608060405234801561001057600080fd5b50600436106100405760003560e01c8062fdd58e14610045578063731133e9146100a7578063f242432a14610154575b600080fd5b6100916004803603604081101561005b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610221565b6040518082815260200191505060405180910390f35b610152600480360360808110156100bd57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001909291908035906020019064010000000081111561010e57600080fd5b82018360208201111561012057600080fd5b8035906020019184600183028401116401000000008311171561014257600080fd5b9091929391929390505050610300565b005b61021f600480360360a081101561016a57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190803590602001906401000000008111156101db57600080fd5b8201836020820111156101ed57600080fd5b8035906020019184600183028401116401000000008311171561020f57600080fd5b9091929391929390505050610485565b005b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156102a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b8152602001806109d1602b913960400191505060405180910390fd5b60008083815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415610386576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610a5c6021913960400191505060405180910390fd5b60008085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054830160008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061047e33600087878787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506107cb565b5050505050565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561050b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260288152602001806109fc6028913960400191505060405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff1614806105d2575060011515600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515145b610627576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526038815260200180610a246038913960400191505060405180910390fd5b8260008086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020540360008086815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060008085815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054830160008086815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506107c3338787878787878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050506107cb565b505050505050565b6107d4846109bd565b156109b55763f23a6e6160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168473ffffffffffffffffffffffffffffffffffffffff1663f23a6e6188888787876040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff16815260200184815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156108b4578082015181840152602081019050610899565b50505050905090810190601f1680156108e15780820380516001836020036101000a031916815260200191505b509650505050505050602060405180830381600087803b15801561090457600080fd5b505af1158015610918573d6000803e3d6000fd5b505050506040513d602081101561092e57600080fd5b81019080805190602001909291905050507bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146109b4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526031815260200180610a7d6031913960400191505060405180910390fd5b5b505050505050565b600080823b90506000811191505091905056fe455243313135353a2062616c616e636520717565727920666f7220746865207a65726f2061646472657373455243313135353a207461726765742061646472657373206d757374206265206e6f6e2d7a65726f455243313135353a206e656564206f70657261746f7220617070726f76616c20666f7220337264207061727479207472616e73666572732e455243313135353a206d696e7420746f20746865207a65726f2061646472657373455243313135353a20676f7420756e6b6e6f776e2076616c75652066726f6d206f6e455243313135355265636569766564a264697066735822122049533ab32faee05169ec29223ecd1687274b175b3e256847f999f1971c1bc00d64736f6c63430007060033"; + +type ERC1155TokenConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: ERC1155TokenConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class ERC1155Token__factory extends ContractFactory { + constructor(...args: ERC1155TokenConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): ERC1155Token { + return super.attach(address) as ERC1155Token; + } + override connect(signer: Signer): ERC1155Token__factory { + return super.connect(signer) as ERC1155Token__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): ERC1155TokenInterface { + return new utils.Interface(_abi) as ERC1155TokenInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ERC1155Token { + return new Contract(address, _abi, signerOrProvider) as ERC1155Token; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/test/ERC20Token__factory.ts b/src/assets/typechain-types/safe/factories/contracts/test/ERC20Token__factory.ts new file mode 100644 index 0000000000..211c0c149a --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/ERC20Token__factory.ts @@ -0,0 +1,337 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + ERC20Token, + ERC20TokenInterface, +} from "../../../contracts/test/ERC20Token"; + +const _abi = [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + 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: "from", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "spender", + type: "address", + }, + ], + name: "allowance", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "approve", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "account", + type: "address", + }, + ], + name: "balanceOf", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "decimals", + outputs: [ + { + internalType: "uint8", + name: "", + type: "uint8", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "subtractedValue", + type: "uint256", + }, + ], + name: "decreaseAllowance", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "spender", + type: "address", + }, + { + internalType: "uint256", + name: "addedValue", + type: "uint256", + }, + ], + name: "increaseAllowance", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "symbol", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "totalSupply", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "recipient", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transfer", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + 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", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60806040523480156200001157600080fd5b506040518060400160405280600981526020017f54657374546f6b656e00000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f545400000000000000000000000000000000000000000000000000000000000081525081600390805190602001906200009692919062000359565b508060049080519060200190620000af92919062000359565b506012600560006101000a81548160ff021916908360ff1602179055505050620000e73366038d7ea4c68000620000ed60201b60201c565b6200040f565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141562000191576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601f8152602001807f45524332303a206d696e7420746f20746865207a65726f20616464726573730081525060200191505060405180910390fd5b620001a560008383620002cb60201b60201c565b620001c181600254620002d060201b620009a01790919060201c565b6002819055506200021f816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054620002d060201b620009a01790919060201c565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b505050565b6000808284019050838110156200034f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620003915760008555620003dd565b82601f10620003ac57805160ff1916838001178555620003dd565b82800160010185558215620003dd579182015b82811115620003dc578251825591602001919060010190620003bf565b5b509050620003ec9190620003f0565b5090565b5b808211156200040b576000816000905550600101620003f1565b5090565b6110de806200041f6000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461025857806370a08231146102bc57806395d89b4114610314578063a457c2d714610397578063a9059cbb146103fb578063dd62ed3e1461045f576100a9565b806306fdde03146100ae578063095ea7b31461013157806318160ddd1461019557806323b872dd146101b3578063313ce56714610237575b600080fd5b6100b66104d7565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100f65780820151818401526020810190506100db565b50505050905090810190601f1680156101235780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61017d6004803603604081101561014757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610579565b60405180821515815260200191505060405180910390f35b61019d610597565b6040518082815260200191505060405180910390f35b61021f600480360360608110156101c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506105a1565b60405180821515815260200191505060405180910390f35b61023f61067a565b604051808260ff16815260200191505060405180910390f35b6102a46004803603604081101561026e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610691565b60405180821515815260200191505060405180910390f35b6102fe600480360360208110156102d257600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610744565b6040518082815260200191505060405180910390f35b61031c61078c565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561035c578082015181840152602081019050610341565b50505050905090810190601f1680156103895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103e3600480360360408110156103ad57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061082e565b60405180821515815260200191505060405180910390f35b6104476004803603604081101561041157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506108fb565b60405180821515815260200191505060405180910390f35b6104c16004803603604081101561047557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610919565b6040518082815260200191505060405180910390f35b606060038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561056f5780601f106105445761010080835404028352916020019161056f565b820191906000526020600020905b81548152906001019060200180831161055257829003601f168201915b5050505050905090565b600061058d610586610a28565b8484610a30565b6001905092915050565b6000600254905090565b60006105ae848484610c27565b61066f846105ba610a28565b61066a8560405180606001604052806028815260200161101360289139600160008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000610620610a28565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ee89092919063ffffffff16565b610a30565b600190509392505050565b6000600560009054906101000a900460ff16905090565b600061073a61069e610a28565b8461073585600160006106af610a28565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109a090919063ffffffff16565b610a30565b6001905092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b606060048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156108245780601f106107f957610100808354040283529160200191610824565b820191906000526020600020905b81548152906001019060200180831161080757829003601f168201915b5050505050905090565b60006108f161083b610a28565b846108ec856040518060600160405280602581526020016110846025913960016000610865610a28565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ee89092919063ffffffff16565b610a30565b6001905092915050565b600061090f610908610a28565b8484610c27565b6001905092915050565b6000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600080828401905083811015610a1e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ab6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806110606024913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610b3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180610fcb6022913960400191505060405180910390fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925836040518082815260200191505060405180910390a3505050565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cad576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061103b6025913960400191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415610d33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526023815260200180610fa86023913960400191505060405180910390fd5b610d3e838383610fa2565b610da981604051806060016040528060268152602001610fed602691396000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610ee89092919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610e3c816000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546109a090919063ffffffff16565b6000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000838311158290610f95576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610f5a578082015181840152602081019050610f3f565b50505050905090810190601f168015610f875780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082840390509392505050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220cf162c0eb75aec5620498383551a57a1bf95abf691ad5c8a2e2f10543ccbf45e64736f6c63430007060033"; + +type ERC20TokenConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: ERC20TokenConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class ERC20Token__factory extends ContractFactory { + constructor(...args: ERC20TokenConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): ERC20Token { + return super.attach(address) as ERC20Token; + } + override connect(signer: Signer): ERC20Token__factory { + return super.connect(signer) as ERC20Token__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): ERC20TokenInterface { + return new utils.Interface(_abi) as ERC20TokenInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): ERC20Token { + return new Contract(address, _abi, signerOrProvider) as ERC20Token; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/ISafe__factory.ts b/src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/ISafe__factory.ts new file mode 100644 index 0000000000..62bd825f63 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/ISafe__factory.ts @@ -0,0 +1,70 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { + ISafe, + ISafeInterface, +} from "../../../../contracts/test/Test4337ModuleAndHandler.sol/ISafe"; + +const _abi = [ + { + 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: "uint8", + name: "operation", + type: "uint8", + }, + ], + name: "execTransactionFromModule", + outputs: [ + { + internalType: "bool", + name: "success", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class ISafe__factory { + static readonly abi = _abi; + static createInterface(): ISafeInterface { + return new utils.Interface(_abi) as ISafeInterface; + } + static connect(address: string, signerOrProvider: Signer | Provider): ISafe { + return new Contract(address, _abi, signerOrProvider) as ISafe; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/Test4337ModuleAndHandler__factory.ts b/src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/Test4337ModuleAndHandler__factory.ts new file mode 100644 index 0000000000..53b458a695 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/Test4337ModuleAndHandler__factory.ts @@ -0,0 +1,224 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + Test4337ModuleAndHandler, + Test4337ModuleAndHandlerInterface, +} from "../../../../contracts/test/Test4337ModuleAndHandler.sol/Test4337ModuleAndHandler"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "entryPointAddress", + type: "address", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [], + name: "ENTRYPOINT", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "MY_ADDRESS", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "enableMyself", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "value", + type: "uint256", + }, + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "execTransaction", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + components: [ + { + internalType: "address", + name: "sender", + type: "address", + }, + { + internalType: "uint256", + name: "nonce", + type: "uint256", + }, + { + internalType: "bytes", + name: "initCode", + type: "bytes", + }, + { + internalType: "bytes", + name: "callData", + type: "bytes", + }, + { + internalType: "uint256", + name: "callGasLimit", + type: "uint256", + }, + { + internalType: "uint256", + name: "verificationGasLimit", + type: "uint256", + }, + { + internalType: "uint256", + name: "preVerificationGas", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxFeePerGas", + type: "uint256", + }, + { + internalType: "uint256", + name: "maxPriorityFeePerGas", + type: "uint256", + }, + { + internalType: "bytes", + name: "paymasterAndData", + type: "bytes", + }, + { + internalType: "bytes", + name: "signature", + type: "bytes", + }, + ], + internalType: "struct UserOperation", + name: "userOp", + type: "tuple", + }, + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + { + internalType: "uint256", + name: "missingAccountFunds", + type: "uint256", + }, + ], + name: "validateUserOp", + outputs: [ + { + internalType: "uint256", + name: "validationData", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60c060405234801561001057600080fd5b506040516109d93803806109d9833981810160405281019061003291906100bb565b8073ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1660601b815250503073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250505061012d565b6000815190506100b581610116565b92915050565b6000602082840312156100cd57600080fd5b60006100db848285016100a6565b91505092915050565b60006100ef826100f6565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b61011f816100e4565b811461012a57600080fd5b50565b60805160601c60a05160601c6108796101606000398061017c5280610391525080610117528061023b52506108796000f3fe60806040526004361061004a5760003560e01c80633a756cec1461004f5780633a871cdd1461007a578063a798b2b1146100b7578063ab4ed83e146100ce578063e8eb3cc6146100ea575b600080fd5b34801561005b57600080fd5b50610064610115565b6040516100719190610646565b60405180910390f35b34801561008657600080fd5b506100a1600480360381019061009c919061052b565b610139565b6040516100ae9190610719565b60405180910390f35b3480156100c357600080fd5b506100cc61021d565b005b6100e860048036038101906100e39190610496565b6102aa565b005b3480156100f657600080fd5b506100ff61038f565b60405161010c9190610646565b60405180910390f35b7f000000000000000000000000000000000000000000000000000000000000000081565b60008084600001602081019061014f919061046d565b9050600081905060008414610210578073ffffffffffffffffffffffffffffffffffffffff1663468721a77f00000000000000000000000000000000000000000000000000000000000000008660006040518463ffffffff1660e01b81526004016101bc939291906106af565b602060405180830381600087803b1580156101d657600080fd5b505af11580156101ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061020e9190610502565b505b6000925050509392505050565b3073ffffffffffffffffffffffffffffffffffffffff1663610b59257f00000000000000000000000000000000000000000000000000000000000000006040518263ffffffff1660e01b81526004016102769190610646565b600060405180830381600087803b15801561029057600080fd5b505af11580156102a4573d6000803e3d6000fd5b50505050565b600033905060008190508073ffffffffffffffffffffffffffffffffffffffff1663468721a78787878760006040518663ffffffff1660e01b81526004016102f6959493929190610661565b602060405180830381600087803b15801561031057600080fd5b505af1158015610324573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103489190610502565b610387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037e906106f9565b60405180910390fd5b505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000813590506103c2816107e7565b92915050565b6000815190506103d7816107fe565b92915050565b6000813590506103ec81610815565b92915050565b60008083601f84011261040457600080fd5b8235905067ffffffffffffffff81111561041d57600080fd5b60208301915083600182028301111561043557600080fd5b9250929050565b6000610160828403121561044f57600080fd5b81905092915050565b6000813590506104678161082c565b92915050565b60006020828403121561047f57600080fd5b600061048d848285016103b3565b91505092915050565b600080600080606085870312156104ac57600080fd5b60006104ba878288016103b3565b94505060206104cb87828801610458565b935050604085013567ffffffffffffffff8111156104e857600080fd5b6104f4878288016103f2565b925092505092959194509250565b60006020828403121561051457600080fd5b6000610522848285016103c8565b91505092915050565b60008060006060848603121561054057600080fd5b600084013567ffffffffffffffff81111561055a57600080fd5b6105668682870161043c565b9350506020610577868287016103dd565b925050604061058886828701610458565b9150509250925092565b61059b81610756565b82525050565b60006105ad8385610734565b93506105ba8385846107c7565b6105c3836107d6565b840190509392505050565b6105d7816107b5565b82525050565b60006105ea600983610745565b91507f7478206661696c656400000000000000000000000000000000000000000000006000830152602082019050919050565b600061062a600083610734565b9150600082019050919050565b6106408161079e565b82525050565b600060208201905061065b6000830184610592565b92915050565b60006080820190506106766000830188610592565b6106836020830187610637565b81810360408301526106968185876105a1565b90506106a560608301846105ce565b9695505050505050565b60006080820190506106c46000830186610592565b6106d16020830185610637565b81810360408301526106e28161061d565b90506106f160608301846105ce565b949350505050565b60006020820190508181036000830152610712816105dd565b9050919050565b600060208201905061072e6000830184610637565b92915050565b600082825260208201905092915050565b600082825260208201905092915050565b60006107618261077e565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006107c0826107a8565b9050919050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6107f081610756565b81146107fb57600080fd5b50565b61080781610768565b811461081257600080fd5b50565b61081e81610774565b811461082957600080fd5b50565b6108358161079e565b811461084057600080fd5b5056fea264697066735822122077ce9f3a41b2586f42b9efe16a2fcd6ff83c8d4c03453502cc93e2e97668704c64736f6c63430007060033"; + +type Test4337ModuleAndHandlerConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: Test4337ModuleAndHandlerConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class Test4337ModuleAndHandler__factory extends ContractFactory { + constructor(...args: Test4337ModuleAndHandlerConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + entryPointAddress: string, + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy( + entryPointAddress, + overrides || {} + ) as Promise; + } + override getDeployTransaction( + entryPointAddress: string, + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(entryPointAddress, overrides || {}); + } + override attach(address: string): Test4337ModuleAndHandler { + return super.attach(address) as Test4337ModuleAndHandler; + } + override connect(signer: Signer): Test4337ModuleAndHandler__factory { + return super.connect(signer) as Test4337ModuleAndHandler__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): Test4337ModuleAndHandlerInterface { + return new utils.Interface(_abi) as Test4337ModuleAndHandlerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): Test4337ModuleAndHandler { + return new Contract( + address, + _abi, + signerOrProvider + ) as Test4337ModuleAndHandler; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/index.ts b/src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/index.ts new file mode 100644 index 0000000000..eea7a026c4 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/Test4337ModuleAndHandler.sol/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { ISafe__factory } from "./ISafe__factory"; +export { Test4337ModuleAndHandler__factory } from "./Test4337ModuleAndHandler__factory"; diff --git a/src/assets/typechain-types/safe/factories/contracts/test/TestHandler__factory.ts b/src/assets/typechain-types/safe/factories/contracts/test/TestHandler__factory.ts new file mode 100644 index 0000000000..46f8516c53 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/TestHandler__factory.ts @@ -0,0 +1,80 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + TestHandler, + TestHandlerInterface, +} from "../../../contracts/test/TestHandler"; + +const _abi = [ + { + inputs: [], + name: "dudududu", + outputs: [ + { + internalType: "address", + name: "sender", + type: "address", + }, + { + internalType: "address", + name: "manager", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, +] as const; + +const _bytecode = + "0x608060405234801561001057600080fd5b5060e08061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c806354955e5914602d575b600080fd5b6033607c565b604051808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390f35b60008060856093565b608b60a2565b915091509091565b6000601436033560601c905090565b60003390509056fea26469706673582212203bb05fdff8e545f51a34df027dbc60c2153b635de1cfa5db672db08e62d4823364736f6c63430007060033"; + +type TestHandlerConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: TestHandlerConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class TestHandler__factory extends ContractFactory { + constructor(...args: TestHandlerConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): TestHandler { + return super.attach(address) as TestHandler; + } + override connect(signer: Signer): TestHandler__factory { + return super.connect(signer) as TestHandler__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): TestHandlerInterface { + return new utils.Interface(_abi) as TestHandlerInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): TestHandler { + return new Contract(address, _abi, signerOrProvider) as TestHandler; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/test/TestNativeTokenReceiver__factory.ts b/src/assets/typechain-types/safe/factories/contracts/test/TestNativeTokenReceiver__factory.ts new file mode 100644 index 0000000000..1b8a298011 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/TestNativeTokenReceiver__factory.ts @@ -0,0 +1,95 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers"; +import type { Provider, TransactionRequest } from "@ethersproject/providers"; +import type { + TestNativeTokenReceiver, + TestNativeTokenReceiverInterface, +} from "../../../contracts/test/TestNativeTokenReceiver"; + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "from", + type: "address", + }, + { + indexed: false, + internalType: "uint256", + name: "amount", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "forwardedGas", + type: "uint256", + }, + ], + name: "BreadReceived", + type: "event", + }, + { + stateMutability: "payable", + type: "fallback", + }, +] as const; + +const _bytecode = + "0x6080604052348015600f57600080fd5b50609280601d6000396000f3fe60806040523373ffffffffffffffffffffffffffffffffffffffff167f16549311ba52796916987df5401f791fb06b998524a5a8684010010415850bb3345a604051808381526020018281526020019250505060405180910390a200fea264697066735822122035663a4184b682e3d2c1649228db3273b6a2439d885e4203ca9ef996501e7b4c64736f6c63430007060033"; + +type TestNativeTokenReceiverConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: TestNativeTokenReceiverConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class TestNativeTokenReceiver__factory extends ContractFactory { + constructor(...args: TestNativeTokenReceiverConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override deploy( + overrides?: Overrides & { from?: string } + ): Promise { + return super.deploy(overrides || {}) as Promise; + } + override getDeployTransaction( + overrides?: Overrides & { from?: string } + ): TransactionRequest { + return super.getDeployTransaction(overrides || {}); + } + override attach(address: string): TestNativeTokenReceiver { + return super.attach(address) as TestNativeTokenReceiver; + } + override connect(signer: Signer): TestNativeTokenReceiver__factory { + return super.connect(signer) as TestNativeTokenReceiver__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): TestNativeTokenReceiverInterface { + return new utils.Interface(_abi) as TestNativeTokenReceiverInterface; + } + static connect( + address: string, + signerOrProvider: Signer | Provider + ): TestNativeTokenReceiver { + return new Contract( + address, + _abi, + signerOrProvider + ) as TestNativeTokenReceiver; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/test/Token__factory.ts b/src/assets/typechain-types/safe/factories/contracts/test/Token__factory.ts new file mode 100644 index 0000000000..59a9b83a90 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/Token__factory.ts @@ -0,0 +1,44 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Signer, utils } from "ethers"; +import type { Provider } from "@ethersproject/providers"; +import type { Token, TokenInterface } from "../../../contracts/test/Token"; + +const _abi = [ + { + inputs: [ + { + internalType: "address", + name: "_to", + type: "address", + }, + { + internalType: "uint256", + name: "value", + type: "uint256", + }, + ], + name: "transfer", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +export class Token__factory { + static readonly abi = _abi; + static createInterface(): TokenInterface { + return new utils.Interface(_abi) as TokenInterface; + } + static connect(address: string, signerOrProvider: Signer | Provider): Token { + return new Contract(address, _abi, signerOrProvider) as Token; + } +} diff --git a/src/assets/typechain-types/safe/factories/contracts/test/index.ts b/src/assets/typechain-types/safe/factories/contracts/test/index.ts new file mode 100644 index 0000000000..74601ce115 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/contracts/test/index.ts @@ -0,0 +1,10 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as test4337ModuleAndHandlerSol from "./Test4337ModuleAndHandler.sol"; +export { DelegateCaller__factory } from "./DelegateCaller__factory"; +export { ERC1155Token__factory } from "./ERC1155Token__factory"; +export { ERC20Token__factory } from "./ERC20Token__factory"; +export { TestHandler__factory } from "./TestHandler__factory"; +export { TestNativeTokenReceiver__factory } from "./TestNativeTokenReceiver__factory"; +export { Token__factory } from "./Token__factory"; diff --git a/src/assets/typechain-types/safe/factories/index.ts b/src/assets/typechain-types/safe/factories/index.ts new file mode 100644 index 0000000000..6dda78a4f1 --- /dev/null +++ b/src/assets/typechain-types/safe/factories/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as openzeppelin from "./@openzeppelin"; +export * as safeGlobal from "./@safe-global"; +export * as contracts from "./contracts"; diff --git a/src/assets/typechain-types/safe/hardhat.d.ts b/src/assets/typechain-types/safe/hardhat.d.ts new file mode 100644 index 0000000000..f2c58a9938 --- /dev/null +++ b/src/assets/typechain-types/safe/hardhat.d.ts @@ -0,0 +1,519 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { ethers } from "ethers"; +import { + FactoryOptions, + HardhatEthersHelpers as HardhatEthersHelpersBase, +} from "@nomiclabs/hardhat-ethers/types"; + +import * as Contracts from "."; + +declare module "hardhat/types/runtime" { + interface HardhatEthersHelpers extends HardhatEthersHelpersBase { + getContractFactory( + name: "Proxy", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "UpgradeableProxy", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC20", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC20", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "MockContract", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "MockInterface", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "SimulateTxAccessor", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "FallbackManager", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "BaseGuard", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Guard", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "GuardManager", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ModuleManager", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "OwnerManager", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "NativeCurrencyPaymentFallback", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "StorageAccessible", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "DebugTransactionGuard", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "DelegateCallTransactionGuard", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "OnlyOwnersGuard", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ReentrancyTransactionGuard", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Migration", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "CompatibilityFallbackHandler", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "TokenCallbackHandler", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC1155TokenReceiver", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC721TokenReceiver", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC777TokensRecipient", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IERC165", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IFallbackManager", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IGuardManager", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IModuleManager", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IOwnerManager", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ISafe", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ISignatureValidator", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ViewStorageAccessible", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "CreateCall", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "MultiSend", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "MultiSendCallOnly", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Safe130To141Migration", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Safe150Migration", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "SafeToL2Migration", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "SignMessageLib", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IProxyCreationCallback", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "IProxy", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "SafeProxy", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "SafeProxyFactory", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Safe", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "SafeL2", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "DelegateCaller", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC1155Token", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ERC20Token", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "ISafe", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Test4337ModuleAndHandler", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "TestHandler", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "TestNativeTokenReceiver", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + name: "Token", + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + + getContractAt( + name: "Proxy", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "UpgradeableProxy", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC20", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC20", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "MockContract", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "MockInterface", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "SimulateTxAccessor", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "FallbackManager", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "BaseGuard", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Guard", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "GuardManager", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ModuleManager", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "OwnerManager", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "NativeCurrencyPaymentFallback", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "StorageAccessible", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "DebugTransactionGuard", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "DelegateCallTransactionGuard", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "OnlyOwnersGuard", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ReentrancyTransactionGuard", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Migration", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "CompatibilityFallbackHandler", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "TokenCallbackHandler", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC1155TokenReceiver", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC721TokenReceiver", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC777TokensRecipient", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IERC165", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IFallbackManager", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IGuardManager", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IModuleManager", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IOwnerManager", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ISafe", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ISignatureValidator", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ViewStorageAccessible", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "CreateCall", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "MultiSend", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "MultiSendCallOnly", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Safe130To141Migration", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Safe150Migration", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "SafeToL2Migration", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "SignMessageLib", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IProxyCreationCallback", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "IProxy", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "SafeProxy", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "SafeProxyFactory", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Safe", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "SafeL2", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "DelegateCaller", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC1155Token", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ERC20Token", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "ISafe", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Test4337ModuleAndHandler", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "TestHandler", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "TestNativeTokenReceiver", + address: string, + signer?: ethers.Signer + ): Promise; + getContractAt( + name: "Token", + address: string, + signer?: ethers.Signer + ): Promise; + + // default types + getContractFactory( + name: string, + signerOrOptions?: ethers.Signer | FactoryOptions + ): Promise; + getContractFactory( + abi: any[], + bytecode: ethers.utils.BytesLike, + signer?: ethers.Signer + ): Promise; + getContractAt( + nameOrAbi: string | any[], + address: string, + signer?: ethers.Signer + ): Promise; + } +} From 9686dda6c0793546ed8c9f6bf07340e7fa5e5a7d Mon Sep 17 00:00:00 2001 From: David Colon <38386583+Da-Colon@users.noreply.github.com> Date: Thu, 21 Mar 2024 23:44:48 -0400 Subject: [PATCH 2/2] update app to use new Typechain types --- .../Proposals/MultisigProposalDetails/TxActions.tsx | 4 ++-- src/hooks/DAO/loaders/useFractalFreeze.ts | 2 +- src/hooks/DAO/proposal/useSubmitProposal.ts | 4 ++-- src/hooks/safe/useSafeContracts.ts | 6 +++--- src/models/AzoriusTxBuilder.ts | 6 +++--- src/models/DaoTxBuilder.ts | 6 +++--- src/models/FreezeGuardTxBuilder.ts | 8 ++++---- src/models/MultisigTxBuilder.ts | 6 +++--- src/models/TxBuilderFactory.ts | 8 ++++---- src/models/helpers/fractalModuleData.ts | 4 ++-- src/models/helpers/safeData.ts | 4 ++-- src/types/contract.ts | 6 +++--- src/types/fractal.ts | 4 ++-- 13 files changed, 34 insertions(+), 34 deletions(-) diff --git a/src/components/Proposals/MultisigProposalDetails/TxActions.tsx b/src/components/Proposals/MultisigProposalDetails/TxActions.tsx index 9a3b96255e..bee16e30f1 100644 --- a/src/components/Proposals/MultisigProposalDetails/TxActions.tsx +++ b/src/components/Proposals/MultisigProposalDetails/TxActions.tsx @@ -5,7 +5,7 @@ import { MultisigFreezeGuard } from '@fractal-framework/fractal-contracts'; import { SafeMultisigTransactionWithTransfersResponse } from '@safe-global/safe-service-client'; import { Signer } from 'ethers'; import { useTranslation } from 'react-i18next'; -import { GnosisSafeL2__factory } from '../../../assets/typechain-types/usul/factories/@gnosis.pm/safe-contracts/contracts'; +import { SafeL2__factory } from '../../../assets/typechain-types/safe/factories/contracts'; import { BACKGROUND_SEMI_TRANSPARENT } from '../../../constants/common'; import { buildSafeTransaction, buildSignatureBytes, EIP712_SAFE_TX_TYPE } from '../../../helpers'; import { logError } from '../../../helpers/errorLogging'; @@ -122,7 +122,7 @@ export function TxActions({ if (!signerOrProvider || !safe?.address || !multisigTx.confirmations) { return; } - const safeContract = GnosisSafeL2__factory.connect(safe.address, signerOrProvider); + const safeContract = SafeL2__factory.connect(safe.address, signerOrProvider); const safeTx = buildSafeTransaction({ ...multisigTx, }); diff --git a/src/hooks/DAO/loaders/useFractalFreeze.ts b/src/hooks/DAO/loaders/useFractalFreeze.ts index 3309a382c5..fccdb6b3bb 100644 --- a/src/hooks/DAO/loaders/useFractalFreeze.ts +++ b/src/hooks/DAO/loaders/useFractalFreeze.ts @@ -101,7 +101,7 @@ export const useFractalFreeze = ({ await (freezeVotingContract!.asProvider as MultisigFreezeVoting).parentGnosisSafe(), ); const owners = await safeContract.getOwners(); - userHasVotes = owners.find(owner => owner === account) !== undefined; + userHasVotes = owners.find((owner: string) => owner === account) !== undefined; } else if (freezeVotingType === FreezeVotingType.ERC20) { const votesTokenContract = votesTokenMasterCopyContract!.asProvider.attach( await (freezeVotingContract!.asProvider as ERC20FreezeVoting).votesERC20(), diff --git a/src/hooks/DAO/proposal/useSubmitProposal.ts b/src/hooks/DAO/proposal/useSubmitProposal.ts index 49be918ada..58d22a84ee 100644 --- a/src/hooks/DAO/proposal/useSubmitProposal.ts +++ b/src/hooks/DAO/proposal/useSubmitProposal.ts @@ -5,7 +5,7 @@ import { BigNumber, Signer, utils } from 'ethers'; import { getAddress, isAddress } from 'ethers/lib/utils'; import { useCallback, useMemo, useState, useEffect } from 'react'; import { toast } from 'react-toastify'; -import { GnosisSafeL2__factory } from '../../../assets/typechain-types/usul/factories/@gnosis.pm/safe-contracts/contracts'; +import { SafeL2__factory } from '../../../assets/typechain-types/safe/factories/contracts'; import { ADDRESS_MULTISIG_METADATA } from '../../../constants/common'; import { buildSafeAPIPost, encodeMultiSend } from '../../../helpers'; import { logError } from '../../../helpers/errorLogging'; @@ -248,7 +248,7 @@ export default function useSubmitProposal() { operation = 0; } - const safeContract = GnosisSafeL2__factory.connect(safeAddress, signerOrProvider); + const safeContract = SafeL2__factory.connect(safeAddress, signerOrProvider); await axios.post( buildSafeApiUrl(safeBaseURL, `/safes/${safeAddress}/multisig-transactions/`), await buildSafeAPIPost( diff --git a/src/hooks/safe/useSafeContracts.ts b/src/hooks/safe/useSafeContracts.ts index 2ad2d8ee4a..b8606f5b57 100644 --- a/src/hooks/safe/useSafeContracts.ts +++ b/src/hooks/safe/useSafeContracts.ts @@ -17,8 +17,8 @@ import { ERC721FreezeVoting__factory, } from '@fractal-framework/fractal-contracts'; import { useMemo } from 'react'; +import { SafeL2__factory } from '../../assets/typechain-types/safe/factories/contracts'; import { MultiSend__factory } from '../../assets/typechain-types/usul'; -import { GnosisSafeL2__factory } from '../../assets/typechain-types/usul/factories/@gnosis.pm/safe-contracts/contracts'; import { useEthersProvider } from '../../providers/Ethers/hooks/useEthersProvider'; import { useNetworkConfig } from '../../providers/NetworkConfig/NetworkConfigProvider'; import useSignerOrProvider from '../utils/useSignerOrProvider'; @@ -79,8 +79,8 @@ export default function useSafeContracts() { }; const safeSingletonContract = { - asSigner: GnosisSafeL2__factory.connect(safe, signerOrProvider), - asProvider: GnosisSafeL2__factory.connect(safe, provider), + asSigner: SafeL2__factory.connect(safe, signerOrProvider), + asProvider: SafeL2__factory.connect(safe, provider), }; const zodiacModuleProxyFactoryContract = { diff --git a/src/models/AzoriusTxBuilder.ts b/src/models/AzoriusTxBuilder.ts index 068635e96b..78f16c4b18 100644 --- a/src/models/AzoriusTxBuilder.ts +++ b/src/models/AzoriusTxBuilder.ts @@ -10,7 +10,7 @@ import { } from '@fractal-framework/fractal-contracts'; import { BigNumber } from 'ethers'; import { defaultAbiCoder, getCreate2Address, solidityKeccak256 } from 'ethers/lib/utils'; -import { GnosisSafeL2 } from '../assets/typechain-types/usul/@gnosis.pm/safe-contracts/contracts'; +import { SafeL2 } from '../assets/typechain-types/safe/contracts'; import { buildContractCall, getRandomBytes } from '../helpers'; import { BaseContracts, @@ -25,7 +25,7 @@ import { BaseTxBuilder } from './BaseTxBuilder'; import { generateContractByteCodeLinear, generateSalt } from './helpers/utils'; export class AzoriusTxBuilder extends BaseTxBuilder { - private readonly safeContract: GnosisSafeL2; + private readonly safeContract: SafeL2; private readonly predictedSafeAddress: string; private encodedSetupTokenData: string | undefined; @@ -54,7 +54,7 @@ export class AzoriusTxBuilder extends BaseTxBuilder { baseContracts: BaseContracts, azoriusContracts: AzoriusContracts, daoData: AzoriusERC20DAO | AzoriusERC721DAO, - safeContract: GnosisSafeL2, + safeContract: SafeL2, predictedSafeAddress: string, parentAddress?: string, parentTokenAddress?: string, diff --git a/src/models/DaoTxBuilder.ts b/src/models/DaoTxBuilder.ts index 1290235ed0..bb104cd2bb 100644 --- a/src/models/DaoTxBuilder.ts +++ b/src/models/DaoTxBuilder.ts @@ -1,5 +1,5 @@ import { ethers } from 'ethers'; -import { GnosisSafeL2 } from '../assets/typechain-types/usul/@gnosis.pm/safe-contracts/contracts'; +import { SafeL2 } from '../assets/typechain-types/safe/contracts'; import { buildContractCall, encodeMultiSend } from '../helpers'; import { BaseContracts, @@ -24,7 +24,7 @@ export class DaoTxBuilder extends BaseTxBuilder { // Safe Data private predictedSafeAddress: string; private readonly createSafeTx: SafeTransaction; - private readonly safeContract: GnosisSafeL2; + private readonly safeContract: SafeL2; private readonly parentStrategyType?: VotingStrategyType; private readonly parentStrategyAddress?: string; @@ -42,7 +42,7 @@ export class DaoTxBuilder extends BaseTxBuilder { saltNum: string, predictedSafeAddress: string, createSafeTx: SafeTransaction, - safeContract: GnosisSafeL2, + safeContract: SafeL2, txBuilderFactory: TxBuilderFactory, parentAddress?: string, parentTokenAddress?: string, diff --git a/src/models/FreezeGuardTxBuilder.ts b/src/models/FreezeGuardTxBuilder.ts index 666c531c86..5a99accbc1 100644 --- a/src/models/FreezeGuardTxBuilder.ts +++ b/src/models/FreezeGuardTxBuilder.ts @@ -11,7 +11,7 @@ import { } from '@fractal-framework/fractal-contracts'; import { ethers } from 'ethers'; import { getCreate2Address, solidityKeccak256 } from 'ethers/lib/utils'; -import { GnosisSafeL2 } from '../assets/typechain-types/usul/@gnosis.pm/safe-contracts/contracts'; +import { SafeL2 } from '../assets/typechain-types/safe/contracts'; import { buildContractCall } from '../helpers'; import { BaseContracts, @@ -33,7 +33,7 @@ export class FreezeGuardTxBuilder extends BaseTxBuilder { private readonly saltNum; // Safe Data - private readonly safeContract: GnosisSafeL2; + private readonly safeContract: SafeL2; // Freeze Voting Data private freezeVotingType: any; @@ -55,7 +55,7 @@ export class FreezeGuardTxBuilder extends BaseTxBuilder { signerOrProvider: any, baseContracts: BaseContracts, daoData: SubDAO, - safeContract: GnosisSafeL2, + safeContract: SafeL2, saltNum: string, parentAddress: string, parentTokenAddress?: string, @@ -134,7 +134,7 @@ export class FreezeGuardTxBuilder extends BaseTxBuilder { ); } - public buildSetGuardTx(contract: GnosisSafeL2 | Azorius): SafeTransaction { + public buildSetGuardTx(contract: SafeL2 | Azorius): SafeTransaction { return buildContractCall(contract, 'setGuard', [this.freezeGuardAddress], 0, false); } diff --git a/src/models/MultisigTxBuilder.ts b/src/models/MultisigTxBuilder.ts index 89cac1fd6c..d09218c3e5 100644 --- a/src/models/MultisigTxBuilder.ts +++ b/src/models/MultisigTxBuilder.ts @@ -1,13 +1,13 @@ -import { GnosisSafeL2 } from '../assets/typechain-types/usul/@gnosis.pm/safe-contracts/contracts'; +import { SafeL2 } from '../assets/typechain-types/safe/contracts'; import { buildContractCall } from '../helpers'; import { BaseContracts, SafeMultisigDAO, SafeTransaction } from '../types'; export class MultisigTxBuilder { private baseContracts: BaseContracts; private readonly daoData: SafeMultisigDAO; - private readonly safeContract: GnosisSafeL2; + private readonly safeContract: SafeL2; - constructor(baseContracts: BaseContracts, daoData: SafeMultisigDAO, safeContract: GnosisSafeL2) { + constructor(baseContracts: BaseContracts, daoData: SafeMultisigDAO, safeContract: SafeL2) { this.baseContracts = baseContracts; this.daoData = daoData; this.safeContract = safeContract; diff --git a/src/models/TxBuilderFactory.ts b/src/models/TxBuilderFactory.ts index 392452bb2d..6dde88091d 100644 --- a/src/models/TxBuilderFactory.ts +++ b/src/models/TxBuilderFactory.ts @@ -1,6 +1,6 @@ import { ethers } from 'ethers'; -import { GnosisSafeL2 } from '../assets/typechain-types/usul/@gnosis.pm/safe-contracts/contracts'; -import { GnosisSafeL2__factory } from '../assets/typechain-types/usul/factories/@gnosis.pm/safe-contracts/contracts'; +import { SafeL2 } from '../assets/typechain-types/safe/contracts'; +import { SafeL2__factory } from '../assets/typechain-types/safe/factories/contracts'; import { getRandomBytes } from '../helpers'; import { BaseContracts, @@ -25,7 +25,7 @@ export class TxBuilderFactory extends BaseTxBuilder { // Safe Data public predictedSafeAddress: string | undefined; public createSafeTx: SafeTransaction | undefined; - private safeContract: GnosisSafeL2 | undefined; + private safeContract: SafeL2 | undefined; public fallbackHandler: string; constructor( @@ -51,7 +51,7 @@ export class TxBuilderFactory extends BaseTxBuilder { } public setSafeContract(safeAddress: string) { - const safeContract = GnosisSafeL2__factory.connect(safeAddress, this.signerOrProvider); + const safeContract = SafeL2__factory.connect(safeAddress, this.signerOrProvider); this.safeContract = safeContract; } diff --git a/src/models/helpers/fractalModuleData.ts b/src/models/helpers/fractalModuleData.ts index 9d4ede6e69..2f0dd55fc0 100644 --- a/src/models/helpers/fractalModuleData.ts +++ b/src/models/helpers/fractalModuleData.ts @@ -4,7 +4,7 @@ import { ModuleProxyFactory, } from '@fractal-framework/fractal-contracts'; import { ethers } from 'ethers'; -import { GnosisSafeL2 } from '../../assets/typechain-types/usul/@gnosis.pm/safe-contracts/contracts'; +import { SafeL2 } from '../../assets/typechain-types/safe/contracts'; import { buildContractCall } from '../../helpers/crypto'; import { SafeTransaction } from '../../types'; import { @@ -23,7 +23,7 @@ export interface FractalModuleData { export const fractalModuleData = ( fractalModuleMasterCopyContract: FractalModule, zodiacModuleProxyFactoryContract: ModuleProxyFactory, - safeContract: GnosisSafeL2, + safeContract: SafeL2, saltNum: string, parentAddress?: string, ): FractalModuleData => { diff --git a/src/models/helpers/safeData.ts b/src/models/helpers/safeData.ts index bfbcbf432c..13e00a7518 100644 --- a/src/models/helpers/safeData.ts +++ b/src/models/helpers/safeData.ts @@ -1,8 +1,8 @@ import { GnosisSafeProxyFactory } from '@fractal-framework/fractal-contracts'; import { ethers } from 'ethers'; import { getCreate2Address, solidityKeccak256 } from 'ethers/lib/utils'; +import { SafeL2 } from '../../assets/typechain-types/safe/contracts'; import { MultiSend } from '../../assets/typechain-types/usul'; -import { GnosisSafeL2 } from '../../assets/typechain-types/usul/@gnosis.pm/safe-contracts/contracts'; import { buildContractCall } from '../../helpers/crypto'; import { SafeMultisigDAO } from '../../types'; const { AddressZero, HashZero } = ethers.constants; @@ -10,7 +10,7 @@ const { AddressZero, HashZero } = ethers.constants; export const safeData = async ( multiSendContract: MultiSend, safeFactoryContract: GnosisSafeProxyFactory, - safeSingletonContract: GnosisSafeL2, + safeSingletonContract: SafeL2, daoData: SafeMultisigDAO, saltNum: string, fallbackHandler: string, diff --git a/src/types/contract.ts b/src/types/contract.ts index 59c1b54b0b..63189f6b4e 100644 --- a/src/types/contract.ts +++ b/src/types/contract.ts @@ -14,8 +14,8 @@ import { KeyValuePairs, ERC721FreezeVoting, } from '@fractal-framework/fractal-contracts'; +import { SafeL2 } from '../assets/typechain-types/safe/contracts'; import { MultiSend } from '../assets/typechain-types/usul'; -import { GnosisSafeL2 } from '../assets/typechain-types/usul/@gnosis.pm/safe-contracts/contracts'; export interface ContractEvent { blockTimestamp: number; @@ -31,7 +31,7 @@ export interface DAOContracts { safeFactoryContract: ContractConnection; fractalAzoriusMasterCopyContract: ContractConnection; linearVotingMasterCopyContract: ContractConnection; - safeSingletonContract: ContractConnection; + safeSingletonContract: ContractConnection; zodiacModuleProxyFactoryContract: ContractConnection; fractalModuleMasterCopyContract: ContractConnection; fractalRegistryContract: ContractConnection; @@ -48,7 +48,7 @@ export interface BaseContracts { fractalModuleMasterCopyContract: FractalModule; fractalRegistryContract: FractalRegistry; safeFactoryContract: GnosisSafeProxyFactory; - safeSingletonContract: GnosisSafeL2; + safeSingletonContract: SafeL2; multisigFreezeGuardMasterCopyContract: MultisigFreezeGuard; multiSendContract: MultiSend; freezeERC20VotingMasterCopyContract: ERC20FreezeVoting; diff --git a/src/types/fractal.ts b/src/types/fractal.ts index 9d8d5899fa..721a7d57ab 100644 --- a/src/types/fractal.ts +++ b/src/types/fractal.ts @@ -25,8 +25,8 @@ import { } from '@safe-global/safe-service-client'; import { BigNumber } from 'ethers'; import { Dispatch } from 'react'; +import { SafeL2 } from '../assets/typechain-types/safe/contracts'; import { MultiSend } from '../assets/typechain-types/usul'; -import { GnosisSafeL2 } from '../assets/typechain-types/usul/@gnosis.pm/safe-contracts/contracts'; import { FractalGovernanceActions } from '../providers/App/governance/action'; import { GovernanceContractActions } from '../providers/App/governanceContracts/action'; import { FractalGuardActions } from '../providers/App/guard/action'; @@ -346,7 +346,7 @@ export interface FractalContracts { fractalAzoriusMasterCopyContract: ContractConnection; linearVotingMasterCopyContract: ContractConnection; linearVotingERC721MasterCopyContract: ContractConnection; - safeSingletonContract: ContractConnection; + safeSingletonContract: ContractConnection; zodiacModuleProxyFactoryContract: ContractConnection; fractalModuleMasterCopyContract: ContractConnection; fractalRegistryContract: ContractConnection;