From 9fcf5fe9a6c40d9af61e42520bce1b27cd992734 Mon Sep 17 00:00:00 2001 From: haiifeng Date: Fri, 5 Dec 2025 11:24:48 +0800 Subject: [PATCH] feat: next upgrade tp 15.5.7 --- apps/web/next-env.d.ts | 1 + apps/web/package.json | 10 +- ...feeNotificationServiceExtension-Info.plist | 31 + ...eNotificationServiceExtension.entitlements | 10 + .../NotificationService.swift | 135 ++ .../Utils/BoolString.swift | 40 + .../Utils/CharacterSet+Hex.swift | 24 + .../Utils/ConfigurationKey.swift | 122 ++ .../Utils/Data+MultisigExtension.swift | 102 ++ .../Utils/DataString.swift | 45 + .../Utils/UInt256.swift | 19 + .../Utils/UInt256String.swift | 78 ++ .../dist/plugin/config.d.ts | 19 + .../dist/plugin/config.js | 47 + .../dist/plugin/ios.d.ts | 14 + .../dist/plugin/ios.js | 452 +++++++ .../dist/plugin/types.d.ts | 54 + .../dist/plugin/types.js | 2 + .../dist/plugin/utils.d.ts | 27 + .../dist/plugin/utils.js | 64 + .../dist/plugin/withNotifee.d.ts | 12 + .../dist/plugin/withNotifee.js | 32 + .../contracts/build/contracts/ERC20.ts | 330 +++++ .../contracts/build/contracts/ERC721.ts | 420 ++++++ .../contracts/build/contracts/index.ts | 5 + .../@openzeppelin/contracts/build/index.ts | 5 + .../@openzeppelin/contracts/index.ts | 5 + .../types/contracts/@openzeppelin/index.ts | 5 + .../src/types/contracts/@safe-global/index.ts | 7 + .../safe-deployments/dist/assets/index.ts | 15 + .../dist/assets/v1.0.0/Gnosis_safe.ts | 688 ++++++++++ .../dist/assets/v1.0.0/Proxy_factory.ts | 132 ++ .../dist/assets/v1.0.0/index.ts | 5 + .../assets/v1.1.1/Default_callback_handler.ts | 157 +++ .../dist/assets/v1.1.1/Gnosis_safe.ts | 843 ++++++++++++ .../dist/assets/v1.1.1/Multi_send.ts | 70 + .../dist/assets/v1.1.1/Proxy_factory.ts | 174 +++ .../dist/assets/v1.1.1/index.ts | 7 + .../dist/assets/v1.2.0/Gnosis_safe.ts | 849 ++++++++++++ .../dist/assets/v1.2.0/index.ts | 4 + .../v1.3.0/Compatibility_fallback_handler.ts | 207 +++ .../dist/assets/v1.3.0/Create_call.ts | 120 ++ .../dist/assets/v1.3.0/Gnosis_safe.ts | 962 ++++++++++++++ .../dist/assets/v1.3.0/Gnosis_safe_l2.ts | 1068 +++++++++++++++ .../dist/assets/v1.3.0/Multi_send.ts | 70 + .../assets/v1.3.0/Multi_send_call_only.ts | 70 + .../dist/assets/v1.3.0/Proxy_factory.ts | 175 +++ .../dist/assets/v1.3.0/Sign_message_lib.ts | 98 ++ .../assets/v1.3.0/Simulate_tx_accessor.ts | 92 ++ .../dist/assets/v1.3.0/index.ts | 12 + .../v1.4.1/Compatibility_fallback_handler.ts | 203 +++ .../dist/assets/v1.4.1/Create_call.ts | 120 ++ .../dist/assets/v1.4.1/Multi_send.ts | 70 + .../assets/v1.4.1/Multi_send_call_only.ts | 70 + .../dist/assets/v1.4.1/Safe.ts | 943 ++++++++++++++ .../dist/assets/v1.4.1/Safe_l2.ts | 1049 +++++++++++++++ .../dist/assets/v1.4.1/Safe_migration.ts | 151 +++ .../dist/assets/v1.4.1/Safe_proxy_factory.ts | 167 +++ .../assets/v1.4.1/Safe_to_l2_migration.ts | 221 ++++ .../dist/assets/v1.4.1/Safe_to_l2_setup.ts | 106 ++ .../dist/assets/v1.4.1/Sign_message_lib.ts | 98 ++ .../assets/v1.4.1/Simulate_tx_accessor.ts | 92 ++ .../dist/assets/v1.4.1/index.ts | 15 + .../v1.5.0/Compatibility_fallback_handler.ts | 243 ++++ .../dist/assets/v1.5.0/Create_call.ts | 120 ++ .../v1.5.0/Extensible_fallback_handler.ts | 348 +++++ .../dist/assets/v1.5.0/Multi_send.ts | 70 + .../assets/v1.5.0/Multi_send_call_only.ts | 70 + .../dist/assets/v1.5.0/Safe.ts | 963 ++++++++++++++ .../dist/assets/v1.5.0/Safe_l2.ts | 1069 +++++++++++++++ .../dist/assets/v1.5.0/Safe_migration.ts | 151 +++ .../dist/assets/v1.5.0/Safe_proxy_factory.ts | 256 ++++ .../dist/assets/v1.5.0/Safe_to_l2_setup.ts | 106 ++ .../dist/assets/v1.5.0/Sign_message_lib.ts | 98 ++ .../assets/v1.5.0/Simulate_tx_accessor.ts | 92 ++ .../assets/v1.5.0/Token_callback_handler.ts | 147 +++ .../dist/assets/v1.5.0/index.ts | 16 + .../safe-deployments/dist/index.ts | 5 + .../@safe-global/safe-deployments/index.ts | 5 + .../dist/assets/allowance-module/index.ts | 7 + .../v0.1.0/AllowanceModule.ts | 602 +++++++++ .../assets/allowance-module/v0.1.0/index.ts | 4 + .../v0.1.1/AllowanceModule.ts | 602 +++++++++ .../assets/allowance-module/v0.1.1/index.ts | 4 + .../dist/assets/index.ts | 11 + .../dist/assets/safe-4337-module/index.ts | 7 + .../safe-4337-module/v0.2.0/AddModulesLib.ts | 71 + .../safe-4337-module/v0.2.0/Safe4337Module.ts | 315 +++++ .../assets/safe-4337-module/v0.2.0/index.ts | 5 + .../safe-4337-module/v0.3.0/Safe4337Module.ts | 314 +++++ .../v0.3.0/SafeModuleSetup.ts | 71 + .../assets/safe-4337-module/v0.3.0/index.ts | 5 + .../dist/assets/safe-passkey-module/index.ts | 7 + .../v0.2.0/DaimoP256Verifier.ts | 50 + .../v0.2.0/FclP256Verifier.ts | 50 + .../v0.2.0/SafeWebauthnSignerFactory.ts | 136 ++ .../safe-passkey-module/v0.2.0/index.ts | 6 + .../v0.2.1/DaimoP256Verifier.ts | 50 + .../v0.2.1/FclP256Verifier.ts | 50 + .../v0.2.1/SafeWebauthnSharedSigner.ts | 159 +++ .../v0.2.1/SafeWebauthnSignerFactory.ts | 136 ++ .../safe-passkey-module/v0.2.1/index.ts | 7 + .../dist/assets/safe-recovery-module/index.ts | 5 + .../v0.1.0/SocialRecoveryModule.ts | 633 +++++++++ .../safe-recovery-module/v0.1.0/index.ts | 4 + .../safe-modules-deployments/dist/index.ts | 5 + .../safe-modules-deployments/index.ts | 5 + packages/utils/src/types/contracts/common.ts | 92 ++ .../build/contracts/ERC20__factory.ts | 356 +++++ .../build/contracts/ERC721__factory.ts | 416 ++++++ .../contracts/build/contracts/index.ts | 5 + .../@openzeppelin/contracts/build/index.ts | 4 + .../@openzeppelin/contracts/index.ts | 4 + .../factories/@openzeppelin/index.ts | 4 + .../contracts/factories/@safe-global/index.ts | 5 + .../safe-deployments/dist/assets/index.ts | 9 + .../assets/v1.0.0/Gnosis_safe__factory.ts | 797 ++++++++++++ .../assets/v1.0.0/Proxy_factory__factory.ts | 112 ++ .../dist/assets/v1.0.0/index.ts | 5 + .../Default_callback_handler__factory.ts | 210 +++ .../assets/v1.1.1/Gnosis_safe__factory.ts | 999 ++++++++++++++ .../dist/assets/v1.1.1/Multi_send__factory.ts | 43 + .../assets/v1.1.1/Proxy_factory__factory.ts | 189 +++ .../dist/assets/v1.1.1/index.ts | 7 + .../assets/v1.2.0/Gnosis_safe__factory.ts | 1020 +++++++++++++++ .../dist/assets/v1.2.0/index.ts | 4 + ...Compatibility_fallback_handler__factory.ts | 345 +++++ .../assets/v1.3.0/Create_call__factory.ts | 88 ++ .../assets/v1.3.0/Gnosis_safe__factory.ts | 1053 +++++++++++++++ .../assets/v1.3.0/Gnosis_safe_l2__factory.ts | 1158 +++++++++++++++++ .../dist/assets/v1.3.0/Multi_send__factory.ts | 40 + .../v1.3.0/Multi_send_call_only__factory.ts | 35 + .../assets/v1.3.0/Proxy_factory__factory.ts | 183 +++ .../v1.3.0/Sign_message_lib__factory.ts | 67 + .../v1.3.0/Simulate_tx_accessor__factory.ts | 71 + .../dist/assets/v1.3.0/index.ts | 12 + ...Compatibility_fallback_handler__factory.ts | 343 +++++ .../assets/v1.4.1/Create_call__factory.ts | 88 ++ .../dist/assets/v1.4.1/Multi_send__factory.ts | 40 + .../v1.4.1/Multi_send_call_only__factory.ts | 35 + .../dist/assets/v1.4.1/Safe__factory.ts | 1016 +++++++++++++++ .../dist/assets/v1.4.1/Safe_l2__factory.ts | 1124 ++++++++++++++++ .../assets/v1.4.1/Safe_migration__factory.ts | 136 ++ .../v1.4.1/Safe_proxy_factory__factory.ts | 159 +++ .../v1.4.1/Safe_to_l2_migration__factory.ts | 194 +++ .../v1.4.1/Safe_to_l2_setup__factory.ts | 53 + .../v1.4.1/Sign_message_lib__factory.ts | 67 + .../v1.4.1/Simulate_tx_accessor__factory.ts | 71 + .../dist/assets/v1.4.1/index.ts | 15 + ...Compatibility_fallback_handler__factory.ts | 383 ++++++ .../assets/v1.5.0/Create_call__factory.ts | 88 ++ .../Extensible_fallback_handler__factory.ts | 443 +++++++ .../dist/assets/v1.5.0/Multi_send__factory.ts | 40 + .../v1.5.0/Multi_send_call_only__factory.ts | 35 + .../dist/assets/v1.5.0/Safe__factory.ts | 1016 +++++++++++++++ .../dist/assets/v1.5.0/Safe_l2__factory.ts | 1124 ++++++++++++++++ .../assets/v1.5.0/Safe_migration__factory.ts | 136 ++ .../v1.5.0/Safe_proxy_factory__factory.ts | 251 ++++ .../v1.5.0/Safe_to_l2_setup__factory.ts | 53 + .../v1.5.0/Sign_message_lib__factory.ts | 67 + .../v1.5.0/Simulate_tx_accessor__factory.ts | 71 + .../v1.5.0/Token_callback_handler__factory.ts | 191 +++ .../dist/assets/v1.5.0/index.ts | 16 + .../safe-deployments/dist/index.ts | 4 + .../@safe-global/safe-deployments/index.ts | 4 + .../dist/assets/allowance-module/index.ts | 5 + .../v0.1.0/AllowanceModule__factory.ts | 720 ++++++++++ .../assets/allowance-module/v0.1.0/index.ts | 4 + .../v0.1.1/AllowanceModule__factory.ts | 720 ++++++++++ .../assets/allowance-module/v0.1.1/index.ts | 4 + .../dist/assets/index.ts | 7 + .../dist/assets/safe-4337-module/index.ts | 5 + .../v0.2.0/AddModulesLib__factory.ts | 35 + .../v0.2.0/Safe4337Module__factory.ts | 598 +++++++++ .../assets/safe-4337-module/v0.2.0/index.ts | 5 + .../v0.3.0/Safe4337Module__factory.ts | 609 +++++++++ .../v0.3.0/SafeModuleSetup__factory.ts | 35 + .../assets/safe-4337-module/v0.3.0/index.ts | 5 + .../dist/assets/safe-passkey-module/index.ts | 5 + .../v0.2.0/DaimoP256Verifier__factory.ts | 26 + .../v0.2.0/FclP256Verifier__factory.ts | 26 + .../SafeWebauthnSignerFactory__factory.ts | 168 +++ .../safe-passkey-module/v0.2.0/index.ts | 6 + .../v0.2.1/DaimoP256Verifier__factory.ts | 26 + .../v0.2.1/FclP256Verifier__factory.ts | 26 + .../SafeWebauthnSharedSigner__factory.ts | 190 +++ .../SafeWebauthnSignerFactory__factory.ts | 168 +++ .../safe-passkey-module/v0.2.1/index.ts | 7 + .../dist/assets/safe-recovery-module/index.ts | 4 + .../v0.1.0/SocialRecoveryModule__factory.ts | 731 +++++++++++ .../safe-recovery-module/v0.1.0/index.ts | 4 + .../safe-modules-deployments/dist/index.ts | 4 + .../safe-modules-deployments/index.ts | 4 + .../src/types/contracts/factories/index.ts | 5 + packages/utils/src/types/contracts/index.ts | 66 + yarn.lock | 537 ++++++-- 196 files changed, 37534 insertions(+), 137 deletions(-) create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotifeeNotificationServiceExtension-Info.plist create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotifeeNotificationServiceExtension.entitlements create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotificationService.swift create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/BoolString.swift create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/CharacterSet+Hex.swift create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/ConfigurationKey.swift create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/Data+MultisigExtension.swift create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/DataString.swift create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/UInt256.swift create mode 100644 expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/UInt256String.swift create mode 100644 expo-plugins/notification-service-ios/dist/plugin/config.d.ts create mode 100644 expo-plugins/notification-service-ios/dist/plugin/config.js create mode 100644 expo-plugins/notification-service-ios/dist/plugin/ios.d.ts create mode 100644 expo-plugins/notification-service-ios/dist/plugin/ios.js create mode 100644 expo-plugins/notification-service-ios/dist/plugin/types.d.ts create mode 100644 expo-plugins/notification-service-ios/dist/plugin/types.js create mode 100644 expo-plugins/notification-service-ios/dist/plugin/utils.d.ts create mode 100644 expo-plugins/notification-service-ios/dist/plugin/utils.js create mode 100644 expo-plugins/notification-service-ios/dist/plugin/withNotifee.d.ts create mode 100644 expo-plugins/notification-service-ios/dist/plugin/withNotifee.js create mode 100644 packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/ERC20.ts create mode 100644 packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/ERC721.ts create mode 100644 packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/index.ts create mode 100644 packages/utils/src/types/contracts/@openzeppelin/contracts/build/index.ts create mode 100644 packages/utils/src/types/contracts/@openzeppelin/contracts/index.ts create mode 100644 packages/utils/src/types/contracts/@openzeppelin/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Gnosis_safe.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Proxy_factory.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.2.0/Gnosis_safe.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.2.0/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Proxy_factory.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Compatibility_fallback_handler.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Create_call.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send_call_only.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Sign_message_lib.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Simulate_tx_accessor.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Compatibility_fallback_handler.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Create_call.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send_call_only.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_l2.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_migration.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_proxy_factory.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_to_l2_setup.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Sign_message_lib.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Simulate_tx_accessor.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-deployments/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/AllowanceModule.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/Safe4337Module.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/DaimoP256Verifier.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/FclP256Verifier.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSignerFactory.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/index.ts create mode 100644 packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/index.ts create mode 100644 packages/utils/src/types/contracts/common.ts create mode 100644 packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/ERC20__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/ERC721__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@openzeppelin/contracts/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@openzeppelin/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Gnosis_safe__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Proxy_factory__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.2.0/Gnosis_safe__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.2.0/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Proxy_factory__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Compatibility_fallback_handler__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Create_call__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send_call_only__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Sign_message_lib__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Simulate_tx_accessor__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Compatibility_fallback_handler__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Create_call__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send_call_only__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_l2__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_migration__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_proxy_factory__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_to_l2_setup__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Sign_message_lib__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Simulate_tx_accessor__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/AllowanceModule__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/Safe4337Module__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/DaimoP256Verifier__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/FclP256Verifier__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSignerFactory__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule__factory.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/index.ts create mode 100644 packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/index.ts create mode 100644 packages/utils/src/types/contracts/factories/index.ts create mode 100644 packages/utils/src/types/contracts/index.ts diff --git a/apps/web/next-env.d.ts b/apps/web/next-env.d.ts index 52e831b43..254b73c16 100644 --- a/apps/web/next-env.d.ts +++ b/apps/web/next-env.d.ts @@ -1,5 +1,6 @@ /// /// +/// // NOTE: This file should not be edited // see https://nextjs.org/docs/pages/api-reference/config/typescript for more information. diff --git a/apps/web/package.json b/apps/web/package.json index de48b9d28..96c466bbb 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -47,7 +47,7 @@ "@mui/icons-material": "^6.1.6", "@mui/material": "^6.3.0", "@mui/x-date-pickers": "^7.23.3", - "@next/third-parties": "^15.2.0", + "@next/third-parties": "^15.5.7", "@reduxjs/toolkit": "^2.5.0", "@reown/walletkit": "^1.2.1", "@safe-global/api-kit": "^2.4.6", @@ -76,7 +76,7 @@ "idb-keyval": "^6.2.1", "js-cookie": "^3.0.1", "lodash": "^4.17.21", - "next": "patch:next@15.2.3#../../.yarn/patches/next-npm-15.2.3-06a6671f62.patch", + "next": "15.5.7", "papaparse": "^5.3.2", "qrcode.react": "^3.1.0", "react": "^19.0.0", @@ -96,8 +96,8 @@ "@faker-js/faker": "^9.0.3", "@mdx-js/loader": "^3.0.1", "@mdx-js/react": "^3.0.1", - "@next/bundle-analyzer": "^15.0.4", - "@next/mdx": "^15.0.4", + "@next/bundle-analyzer": "^15.5.7", + "@next/mdx": "^15.5.7", "@openzeppelin/contracts": "^4.9.6", "@safe-global/safe-core-sdk-types": "^5.0.1", "@safe-global/test": "workspace:^", @@ -135,7 +135,7 @@ "cypress-file-upload": "^5.0.8", "cypress-visual-regression": "^5.2.2", "eslint": "^9.20.1", - "eslint-config-next": "^15.0.4", + "eslint-config-next": "^15.5.7", "eslint-config-prettier": "^9.1.0", "eslint-plugin-no-only-tests": "^3.3.0", "eslint-plugin-prettier": "^5.2.1", diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotifeeNotificationServiceExtension-Info.plist b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotifeeNotificationServiceExtension-Info.plist new file mode 100644 index 000000000..01b2b348e --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotifeeNotificationServiceExtension-Info.plist @@ -0,0 +1,31 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + NotifeeNotificationServiceExtension + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + $(PRODUCT_BUNDLE_PACKAGE_TYPE) + CFBundleShortVersionString + 1.0.0 + CFBundleVersion + 1 + NSExtension + + NSExtensionPointIdentifier + com.apple.usernotifications.service + NSExtensionPrincipalClass + $(PRODUCT_MODULE_NAME).NotificationService + + + \ No newline at end of file diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotifeeNotificationServiceExtension.entitlements b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotifeeNotificationServiceExtension.entitlements new file mode 100644 index 000000000..5366d587d --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotifeeNotificationServiceExtension.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.application-groups + + [APP_GROUPS_PLACEHOLDER] + + + \ No newline at end of file diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotificationService.swift b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotificationService.swift new file mode 100644 index 000000000..8b8cb4ac9 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/NotificationService.swift @@ -0,0 +1,135 @@ +import UserNotifications +import RNNotifeeCore +import MMKV +import SwiftCryptoTokenFormatter +import BigInt + +struct ChainInfo: Codable { + let name: String + let symbol: String + let decimals: Int +} + +struct ExtensionStore: Codable { + let chains: [String: ChainInfo] + let contacts: [String: String] +} + +func loadExtensionStore() -> ExtensionStore? { + guard let groupDir = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "[NOTIFICATION_APP_GROUP_IDENTIFIER]")?.path else { + NSLog("[NotifeeDebug] Failed to get app group directory") + return nil + } + guard let kv = MMKV(mmapID: "extension", cryptKey: nil, rootPath: groupDir, mode: .multiProcess, expectedCapacity: 0) else { + NSLog("[NotifeeDebug] Failed to open MMKV") + return nil + } + guard let json = kv.string(forKey: "notification-extension-data") else { + NSLog("[NotifeeDebug] No data found for notification-extension-data key") + return nil + } + guard let data = json.data(using: String.Encoding.utf8) else { + NSLog("[NotifeeDebug] Failed to convert json to data") + return nil + } + return try? JSONDecoder().decode(ExtensionStore.self, from: data) +} + + +func parseNotification(userInfo: [AnyHashable: Any], store: ExtensionStore) -> (String, String)? { + NSLog("[NotifeeDebug] Parsing notification with userInfo: \(userInfo)") + + guard let type = userInfo["type"] as? String else { + NSLog("[NotifeeDebug] No type found in notification") + return nil + } + NSLog("[NotifeeDebug] Notification type: \(type)") + + let chainId = userInfo["chainId"] as? String + let address = userInfo["address"] as? String + + NSLog("[NotifeeDebug] ChainId: \(chainId ?? "nil"), Address: \(address ?? "nil")") + + let chainInfo = chainId.flatMap { store.chains[$0] } + let chainName = chainInfo?.name ?? (chainId != nil ? "Chain Id \(chainId!)" : "") + let safeName = address.flatMap { store.contacts[$0] } ?? (address ?? "") + + NSLog("[NotifeeDebug] Resolved chainName: \(chainName), safeName: \(safeName)") + + switch type { + case "INCOMING_ETHER": + // Use chain symbol if available, otherwise fall back to userInfo or default + let symbol = chainInfo?.symbol ?? userInfo["symbol"] as? String ?? "ETH" + let formatter = TokenFormatter() + let value = userInfo["value"] as? String ?? "" + // Use chain decimals if available, otherwise fall back to userInfo or default + let decimals = chainInfo?.decimals ?? Int(userInfo["decimals"] as? String ?? "18") ?? 18 + let amount = formatter.string( + from: BigDecimal(BigInt(value) ?? BigInt(0), decimals), + decimalSeparator: Locale.autoupdatingCurrent.decimalSeparator ?? ".", + thousandSeparator: Locale.autoupdatingCurrent.groupingSeparator ?? ",") + + return ("Incoming \(symbol) (\(chainName))", "\(safeName): \(amount) \(symbol) received") + case "INCOMING_TOKEN": + return ("Incoming token (\(chainName))", "\(safeName): tokens received") + case "EXECUTED_MULTISIG_TRANSACTION": + let status = (userInfo["failed"] as? String) == "true" ? "failed" : "successful" + return ("Transaction \(status) (\(chainName))", "\(safeName): Transaction \(status)") + case "CONFIRMATION_REQUEST": + return ("Confirmation required (\(chainName))", "\(safeName): A transaction requires your confirmation!") + default: + return nil + } +} + +class NotificationService: UNNotificationServiceExtension { + let appGroup = "[NOTIFICATION_APP_GROUP_IDENTIFIER]" + var contentHandler: ((UNNotificationContent) -> Void)? + var bestAttemptContent: UNMutableNotificationContent? + + override init() { + super.init() + if let groupDir = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup)?.path { + MMKV.initialize(rootDir: groupDir) + } else { + NSLog("[NotifeeDebug] Failed to initialize MMKV: couldn't get app group directory") + } + } + + override func didReceive(_ request: UNNotificationRequest, withContentHandler contentHandler: @escaping (UNNotificationContent) -> Void) { + NSLog("[NotifeeDebug] Received notification request with id: \(request.identifier)") + self.contentHandler = contentHandler + self.bestAttemptContent = (request.content.mutableCopy() as? UNMutableNotificationContent) + + if let mutable = self.bestAttemptContent { + NSLog("[NotifeeDebug] Successfully created mutable content") + + if let store = loadExtensionStore() { + NSLog("[NotifeeDebug] Successfully loaded extension store") + + if let parsed = parseNotification(userInfo: request.content.userInfo, store: store) { + NSLog("[NotifeeDebug] Successfully parsed notification: title=\(parsed.0), body=\(parsed.1)") + mutable.title = parsed.0 + mutable.body = parsed.1 + mutable.badge = 1 + } else { + NSLog("[NotifeeDebug] Failed to parse notification") + } + } else { + NSLog("[NotifeeDebug] Failed to load extension store") + } + + NotifeeExtensionHelper.populateNotificationContent(request, with: mutable, withContentHandler: contentHandler) + } else { + NSLog("[NotifeeDebug] Failed to create mutable content") + contentHandler(request.content) + } + } + + override func serviceExtensionTimeWillExpire() { + NSLog("[NotifeeDebug] Service extension time will expire") + if let contentHandler = contentHandler, let bestAttemptContent = bestAttemptContent { + contentHandler(bestAttemptContent) + } + } +} diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/BoolString.swift b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/BoolString.swift new file mode 100644 index 000000000..749130421 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/BoolString.swift @@ -0,0 +1,40 @@ +// +// BoolString.swift +// Multisig +// +// Created by Dmitry Bespalov on 26.07.21. +// Copyright © 2021 Gnosis Ltd. All rights reserved. +// + +import Foundation + +struct BoolString: Hashable, Codable { + var value: Bool + + init(_ value: Bool) { + self.value = value + } + + init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + let string = try container.decode(String.self) + value = string == "true" + } + + func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + try container.encode(value ? "true" : "false") + } +} + +extension BoolString: ExpressibleByStringLiteral { + init(stringLiteral value: StringLiteralType) { + self.init(value == "true") + } +} + +extension BoolString: CustomStringConvertible { + var description: String { + String(describing: value) + } +} diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/CharacterSet+Hex.swift b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/CharacterSet+Hex.swift new file mode 100644 index 000000000..b43b8359d --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/CharacterSet+Hex.swift @@ -0,0 +1,24 @@ +// +// CharacterSet+Hex.swift +// Multisig +// +// Created by Moaaz on 5/22/20. +// Copyright © 2020 Gnosis Ltd. All rights reserved. +// + +import Foundation + +extension CharacterSet { + + static var hexadecimalNumbers: CharacterSet { + return ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"] + } + + static var hexadecimalLetters: CharacterSet { + return ["a", "b", "c", "d", "e", "f", "A", "B", "C", "D", "E", "F"] + } + + static var hexadecimals: CharacterSet { + return hexadecimalNumbers.union(hexadecimalLetters) + } +} diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/ConfigurationKey.swift b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/ConfigurationKey.swift new file mode 100644 index 000000000..993c396be --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/ConfigurationKey.swift @@ -0,0 +1,122 @@ +// +// Configuration.swift +// Multisig +// +// Created by Dmitry Bespalov on 27.05.20. +// Copyright © 2020 Gnosis Ltd. All rights reserved. +// + +import Foundation + +/// Allows to fetch a variable from the main Info.plist or override it +/// with a concrete value. +/// +/// All of the standard data types present in the Plist format +/// are supported as well, plus the URL type that is converted from String +/// value. +/// +/// The supported values conform to the `InfoPlistValueType` protocol. +/// You can conform your own types to this protocol. +/// +/// Example usage: +/// +/// struct Configuration { +/// +/// @ConfigurationKey("TERMS_URL") +/// var termsURL: URL +/// +/// @ConfigurationKey("RELAY_SERVICE_URL") +/// var relayServiceURL: URL +/// +/// } +/// +/// IMPORTANT: test your configuration values, otherwise the app will +/// crash if the value with the specified key is not found or if the value +/// cannot be converted to the supported type. +/// +@propertyWrapper +struct ConfigurationKey { + private let key: String + private var override: T? + + init(_ key: String) { + self.key = key + } + + var wrappedValue: T { + get { + if let overriden = override { return overriden } + guard let value = Bundle.main.object(forInfoDictionaryKey: key) else { + preconditionFailure("Configuration key \(key) not found in the info dictionary") + } + return T.convert(from: value) + } + set { + override = newValue + } + } + +} + +/// Value type that is used in the Info.plist dictionary +protocol InfoPlistValueType { + /// Converts value from a plist object to the protocol's implementation type + /// - Parameter value: a value from Info.plist dictionary + static func convert(from value: Any) -> Self +} + +extension URL: InfoPlistValueType { + static func convert(from value: Any) -> URL { + URL(string: value as! String)! + } +} + +extension String: InfoPlistValueType { + static func convert(from value: Any) -> Self { + value as! String + } +} + +extension Int: InfoPlistValueType { + static func convert(from value: Any) -> Self { + value as! Int + } +} + +extension Double: InfoPlistValueType { + static func convert(from value: Any) -> Self { + value as! Double + } +} + +extension Bool: InfoPlistValueType { + static func convert(from value: Any) -> Self { + if let bool = value as? Bool { return bool } + else if let nsString = value as? NSString { return nsString.boolValue } + preconditionFailure("Invalid configuration value: \(value)") + } +} + +extension Dictionary: InfoPlistValueType where Key == String, Value == Any { + static func convert(from value: Any) -> Self { + value as! [String: Any] + } +} + +extension Array: InfoPlistValueType where Element == Any { + static func convert(from value: Any) -> Self { + value as! [Any] + } +} + +extension Date: InfoPlistValueType { + static func convert(from value: Any) -> Self { + value as! Date + } +} + +extension Data: InfoPlistValueType { + static func convert(from value: Any) -> Self { + value as! Data + } +} diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/Data+MultisigExtension.swift b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/Data+MultisigExtension.swift new file mode 100644 index 000000000..7f0a736c0 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/Data+MultisigExtension.swift @@ -0,0 +1,102 @@ +// +// Copyright © 2018 Gnosis Ltd. All rights reserved. +// + +import Foundation +import CryptoSwift + +// MARK: - Hex String to Data conversion +public extension Data { + + static func value(of nibble: UInt8) -> UInt8? { + guard let letter = String(bytes: [nibble], encoding: .ascii) else { return nil } + return UInt8(letter, radix: 16) + } + + // TODO: Duplicate code. Remove and use init(hex: String) instead, when + // disambiguation with other implementations of Data.init?(hex:) has been achieved + init(hexWC: String) { + var data = Data() + let string = hexWC.hasPrefix("0x") ? String(hexWC.dropFirst(2)) : hexWC + + // Convert the string to bytes for better performance + guard + let stringData = string.data(using: .ascii, allowLossyConversion: true) + else { + self = data + return + } + + let stringBytes = Array(stringData) + for idx in stride(from: 0, to: stringBytes.count, by: 2) { + guard let high = Data.value(of: stringBytes[idx]) else { + data.removeAll() + break + } + if idx < stringBytes.count - 1, let low = Data.value(of: stringBytes[idx + 1]) { + data.append((high << 4) | low) + } else { + data.append(high) + } + } + self = data + } + + /// Creates data from hex string, padding to even byte character count from the left with 0. + /// For example, "0x1" will become "0x01". + /// + /// - Parameter ethHex: hex string. + init(ethHex: String) { + var value = ethHex + while value.hasPrefix("0x") || value.hasPrefix("0X") { value = String(value.dropFirst(2)) } + // if ethHex is not full byte, Data(hex:) adds nibble at the end, but we need it in the beginning + let paddingToByte = value.count % 2 == 1 ? "0" : "" + value = paddingToByte + value + self.init(hexWC: value) + } + + init?(exactlyHex hex: String) { + var value = hex.lowercased() + if value.hasPrefix("0x") { + value.removeFirst(2) + } + guard value.rangeOfCharacter(from: CharacterSet.hexadecimals.inverted) == nil else { + return nil + } + self.init(hexWC: value) + } + + func toHexStringWithPrefix() -> String { + "0x" + toHexString() + } + + /// Pads data with `value` from the left to total width of `count` + /// + /// - Parameters: + /// - count: total padded with= + /// - value: padding value, default is 0 + /// - Returns: padded data of size `count` + func leftPadded(to count: Int, with value: UInt8 = 0) -> Data { + if self.count >= count { return self } + return Data(repeating: value, count: count - self.count) + self + } + + func rightPadded(to count: Int, with value: UInt8 = 0) -> Data { + if self.count >= count { return self } + return self + Data(repeating: value, count: count - self.count) + } + + func endTruncated(to count: Int) -> Data { + guard self.count > count else { return self } + return prefix(count) + } + + init?(randomOfSize count: Int) { + var bytes: [UInt8] = .init(repeating: 0, count: count) + let result = SecRandomCopyBytes(kSecRandomDefault, bytes.count, &bytes) + guard result == errSecSuccess else { + return nil + } + self.init(bytes) + } +} diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/DataString.swift b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/DataString.swift new file mode 100644 index 000000000..a5641ffe3 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/DataString.swift @@ -0,0 +1,45 @@ +// +// DataString.swift +// Multisig +// +// Created by Dmitry Bespalov on 16.06.20. +// Copyright © 2020 Gnosis Ltd. All rights reserved. +// + +import Foundation + +struct DataString: Hashable, Codable { + let data: Data + + init(_ data: Data) { + self.data = data + } + + init(hex: String) { + self.data = Data(hex: hex) + } + + init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + let string = try container.decode(String.self) + data = Data(hex: string) + } + + func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + try container.encode(data.toHexStringWithPrefix()) + } + +} + +extension DataString: ExpressibleByStringLiteral { + init(stringLiteral value: StringLiteralType) { + self.init(Data(ethHex: value)) + } +} + +extension DataString: CustomStringConvertible { + var description: String { + data.toHexStringWithPrefix() + } +} diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/UInt256.swift b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/UInt256.swift new file mode 100644 index 000000000..76a4120c8 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/UInt256.swift @@ -0,0 +1,19 @@ +// +// UInt256.swift +// Multisig +// +// Created by Dmitry Bespalov on 15.06.20. +// Copyright © 2020 Gnosis Ltd. All rights reserved. +// + +import Foundation +import BigInt + +typealias UInt256 = BigUInt +typealias Int256 = BigInt + +extension UInt256 { + var data32: Data { + Data(ethHex: String(self, radix: 16)).leftPadded(to: 32).suffix(32) + } +} diff --git a/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/UInt256String.swift b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/UInt256String.swift new file mode 100644 index 000000000..75528d842 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/ios-notification-service-files/Utils/UInt256String.swift @@ -0,0 +1,78 @@ +// +// UInt256String.swift +// Multisig +// +// Created by Dmitry Bespalov on 16.06.20. +// Copyright © 2020 Gnosis Ltd. All rights reserved. +// + +import Foundation + +struct UInt256String: Hashable, Codable { + let value: UInt256 + + var data32: Data { + value.data32 + } + + init(_ value: T) where T: BinaryInteger { + self.value = UInt256(value) + } + + init(_ value: UInt256) { + self.value = value + } + + init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let string = try? container.decode(String.self) { + if string.hasPrefix("0x") { + let data = Data(ethHex: string) + value = UInt256(data) + } else if let uint256 = UInt256(string) { + value = uint256 + } else { + let context = DecodingError.Context.init( + codingPath: decoder.codingPath, + debugDescription: "Could not convert String \(string) to UInt256") + throw DecodingError.valueNotFound(UInt256.self, context) + } + } else if let uint = try? container.decode(UInt.self) { + value = UInt256(uint) + } else if let int = try? container.decode(Int.self), int >= 0 { + value = UInt256(int) + } else { + let context = DecodingError.Context.init( + codingPath: decoder.codingPath, + debugDescription: "Could not convert value to UInt256") + throw DecodingError.valueNotFound(UInt256.self, context) + } + } + + func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + try container.encode(value.description) + } +} + +extension UInt256String: ExpressibleByStringLiteral { + init(stringLiteral value: StringLiteralType) { + if let uint256Value = UInt256(value) { + self = UInt256String(uint256Value) + } else { + preconditionFailure("Invalid literal UInt256 value: \(value)") + } + } +} + +extension UInt256String: ExpressibleByIntegerLiteral { + init(integerLiteral value: UInt) { + self.init(UInt256(value)) + } +} + +extension UInt256String: CustomStringConvertible { + var description: String { + String(value) + } +} diff --git a/expo-plugins/notification-service-ios/dist/plugin/config.d.ts b/expo-plugins/notification-service-ios/dist/plugin/config.d.ts new file mode 100644 index 000000000..e72b8ba50 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/config.d.ts @@ -0,0 +1,19 @@ +/** IOS */ +export declare const DEFAULT_IOS_BUILD_NUMBER = '1' +export declare const DEFAULT_APP_VERSION = '1.0.0' +export declare const DEFAULT_IOS_DEPLOYMENT_TARGET = '13.4' +export declare const TARGET_DEVICES = '"1,2"' +export declare const EXTENSION_SERVICE_NAME = 'NotifeeNotificationServiceExtension' +export declare const EXTENSION_SERVICE_FILE = 'NotificationService.swift' +export declare const FILES_TO_ADD: string[] +export declare const PODFILE_MODIF_NEEDED = + "\n$NotifeeExtension = true\ntarget 'NotifeeNotificationServiceExtension' do\n pod 'RNNotifeeCore', :path => '../../../node_modules/@notifee/react-native/RNNotifeeCore.podspec'\n pod 'MMKV', :git => 'https://github.com/Tencent/MMKV.git', :branch => 'master'\n pod 'CryptoSwift', '~> 1.8.3'\n pod 'SwiftCryptoTokenFormatter', :git => 'https://github.com/compojoom/SwiftCryptoTokenFormatter', :branch => 'main'\n use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']\nend" +export declare const PODFILE_TARGET_STRING = "target 'NotifeeNotificationServiceExtension'" +export declare const APP_VERSION_STRING = '[IF_YOU_SEE_THIS_YOU_FORGOT_TO_ADD_APP_VERSION_IN_EXPO_CONFIG]' +export declare const BUNDLE_IDENTIFIER_STRING = + '[IF_YOU_SEE_THIS_YOU_FORGOT_TO_ADD_BUNDLE_IDENTIFIER_IN_IOS_EXPO_CONFIG]' +export declare const IOS_BUILD_NUMBER_STRING = '[IF_YOU_SEE_THIS_YOU_FORGOT_TO_ADD_BUILD_NUMBER_IN_IOS_EXPO_CONFIG]' +export declare const NOTIFICATION_APP_GROUP_IDENTIFIER_STRING = '[NOTIFICATION_APP_GROUP_IDENTIFIER]' +export declare const APP_GROUPS_PLACEHOLDER = '[APP_GROUPS_PLACEHOLDER]' +export declare const BACKGROUND_MODES_TO_ENABLE: string[] +export declare const USER_ACTIVITY_TYPES_KEYS: string[] diff --git a/expo-plugins/notification-service-ios/dist/plugin/config.js b/expo-plugins/notification-service-ios/dist/plugin/config.js new file mode 100644 index 000000000..262e60fee --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/config.js @@ -0,0 +1,47 @@ +'use strict' +Object.defineProperty(exports, '__esModule', { value: true }) +exports.USER_ACTIVITY_TYPES_KEYS = + exports.BACKGROUND_MODES_TO_ENABLE = + exports.APP_GROUPS_PLACEHOLDER = + exports.NOTIFICATION_APP_GROUP_IDENTIFIER_STRING = + exports.IOS_BUILD_NUMBER_STRING = + exports.BUNDLE_IDENTIFIER_STRING = + exports.APP_VERSION_STRING = + exports.PODFILE_TARGET_STRING = + exports.PODFILE_MODIF_NEEDED = + exports.FILES_TO_ADD = + exports.EXTENSION_SERVICE_FILE = + exports.EXTENSION_SERVICE_NAME = + exports.TARGET_DEVICES = + exports.DEFAULT_IOS_DEPLOYMENT_TARGET = + exports.DEFAULT_APP_VERSION = + exports.DEFAULT_IOS_BUILD_NUMBER = + void 0 +/** IOS */ +exports.DEFAULT_IOS_BUILD_NUMBER = '1' +exports.DEFAULT_APP_VERSION = '1.0.0' +exports.DEFAULT_IOS_DEPLOYMENT_TARGET = '13.4' +exports.TARGET_DEVICES = '"1,2"' // IPHONE / IPAD +exports.EXTENSION_SERVICE_NAME = 'NotifeeNotificationServiceExtension' +exports.EXTENSION_SERVICE_FILE = 'NotificationService.swift' +exports.FILES_TO_ADD = [ + `NotifeeNotificationServiceExtension-Info.plist`, + `NotifeeNotificationServiceExtension.entitlements`, +] +exports.PODFILE_MODIF_NEEDED = ` +$NotifeeExtension = true +target 'NotifeeNotificationServiceExtension' do + pod 'RNNotifeeCore', :path => '../../../node_modules/@notifee/react-native/RNNotifeeCore.podspec' + pod 'MMKV', :git => 'https://github.com/Tencent/MMKV.git', :branch => 'master' + pod 'CryptoSwift', '~> 1.8.3' + pod 'SwiftCryptoTokenFormatter', :git => 'https://github.com/compojoom/SwiftCryptoTokenFormatter', :branch => 'main' + use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks'] +end` +exports.PODFILE_TARGET_STRING = "target 'NotifeeNotificationServiceExtension'" +exports.APP_VERSION_STRING = '[IF_YOU_SEE_THIS_YOU_FORGOT_TO_ADD_APP_VERSION_IN_EXPO_CONFIG]' +exports.BUNDLE_IDENTIFIER_STRING = '[IF_YOU_SEE_THIS_YOU_FORGOT_TO_ADD_BUNDLE_IDENTIFIER_IN_IOS_EXPO_CONFIG]' +exports.IOS_BUILD_NUMBER_STRING = '[IF_YOU_SEE_THIS_YOU_FORGOT_TO_ADD_BUILD_NUMBER_IN_IOS_EXPO_CONFIG]' +exports.NOTIFICATION_APP_GROUP_IDENTIFIER_STRING = '[NOTIFICATION_APP_GROUP_IDENTIFIER]' +exports.APP_GROUPS_PLACEHOLDER = '[APP_GROUPS_PLACEHOLDER]' +exports.BACKGROUND_MODES_TO_ENABLE = ['remote-notification'] +exports.USER_ACTIVITY_TYPES_KEYS = ['INSendMessageIntent'] diff --git a/expo-plugins/notification-service-ios/dist/plugin/ios.d.ts b/expo-plugins/notification-service-ios/dist/plugin/ios.d.ts new file mode 100644 index 000000000..ac274cd3a --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/ios.d.ts @@ -0,0 +1,14 @@ +import { NotifeeExpoPluginProps } from './types' +import { ConfigPlugin } from '@expo/config-plugins' +declare const _default: { + setAPSEnvironment: ConfigPlugin + addCommunicationNotificationsCapability: ConfigPlugin + addBackgroundModes: ConfigPlugin + addNotificationServiceFilesToProject: ConfigPlugin + addNotifeeToPodfile: ConfigPlugin + signAppAndNotificationServiceExtension: ConfigPlugin + createAndAddNotificationServiceExtensionTarget: ConfigPlugin + addNotifeeTargetToExpoAppExtensions: ConfigPlugin + addNotificationServiceGroup: ConfigPlugin +} +export default _default diff --git a/expo-plugins/notification-service-ios/dist/plugin/ios.js b/expo-plugins/notification-service-ios/dist/plugin/ios.js new file mode 100644 index 000000000..f37da569c --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/ios.js @@ -0,0 +1,452 @@ +'use strict' +var __createBinding = + (this && this.__createBinding) || + (Object.create + ? function (o, m, k, k2) { + if (k2 === undefined) k2 = k + var desc = Object.getOwnPropertyDescriptor(m, k) + if (!desc || ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { + enumerable: true, + get: function () { + return m[k] + }, + } + } + Object.defineProperty(o, k2, desc) + } + : function (o, m, k, k2) { + if (k2 === undefined) k2 = k + o[k2] = m[k] + }) +var __setModuleDefault = + (this && this.__setModuleDefault) || + (Object.create + ? function (o, v) { + Object.defineProperty(o, 'default', { enumerable: true, value: v }) + } + : function (o, v) { + o['default'] = v + }) +var __importStar = + (this && this.__importStar) || + (function () { + var ownKeys = function (o) { + ownKeys = + Object.getOwnPropertyNames || + function (o) { + var ar = [] + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k + return ar + } + return ownKeys(o) + } + return function (mod) { + if (mod && mod.__esModule) return mod + var result = {} + if (mod != null) + for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== 'default') __createBinding(result, mod, k[i]) + __setModuleDefault(result, mod) + return result + } + })() +Object.defineProperty(exports, '__esModule', { value: true }) +const config_plugins_1 = require('@expo/config-plugins') +const fs = __importStar(require('fs')) +const path = __importStar(require('path')) +const config_1 = require('./config') +const utils_1 = require('./utils') +/** + * Adds Notifee to the iOS Podfile within an Expo project configuration. + * + * @param {object} c - The Expo configuration object. + * @returns {object} - The updated Expo configuration object after modifying the Podfile. + */ +const addNotifeeToPodfile = (c) => { + return (0, config_plugins_1.withDangerousMod)(c, [ + 'ios', + async (c) => { + const pathToPodfile = path.join(c.modRequest.projectRoot, 'ios', 'Podfile') + try { + const podfile = fs.readFileSync(pathToPodfile, 'utf8') + const hasAlreadyNeededChanges = podfile.includes(config_1.PODFILE_TARGET_STRING) + //Add at end of podfile + if (!hasAlreadyNeededChanges) { + fs.appendFileSync(pathToPodfile, config_1.PODFILE_MODIF_NEEDED) + } + ;(0, utils_1.log)('Added Notifee to Podfile') + } catch { + ;(0, utils_1.throwError)('Error when trying to add Notifee to Podfile') + } + return c + }, + ]) +} +/** + * Adds necessary notification service files to the iOS project for Notifee configuration. + * + * @param {object} c - The Expo configuration object. + * @param {NotifeeExpoPluginProps} props - The properties required for configuring Notifee-Expo-Plugin. + * @returns {object} - The updated Expo configuration object after adding the notification service files. + */ +const addNotificationServiceFilesToProject = (c, props) => { + const serviceExtensionFilesFolderPath = path.join( + require.resolve('@safe-global/notification-service-ios/package.json'), + '../ios-notification-service-files/', + ) + const updatedConfig = (0, config_plugins_1.withDangerousMod)(c, [ + 'ios', + async (config) => { + const p = path.join(config.modRequest.projectRoot, 'ios') + try { + //Create folders + fs.mkdirSync(path.join(p, config_1.EXTENSION_SERVICE_NAME), { recursive: true }) + if (!config.version) { + ;(0, utils_1.logError)("You need to define 'version' in the expo config!") + } + const appVersion = !!config.version ? config.version : config_1.DEFAULT_APP_VERSION + if (!c.ios || !c.ios.bundleIdentifier) { + ;(0, utils_1.logError)("You need to define 'bundleIdentifier' in the ios object of the expo config!") + } + const bundleIdentifier = 'group.' + config.ios?.bundleIdentifier + '.notifee' + if (!c.ios || !c.ios.bundleIdentifier) { + ;(0, utils_1.logError)("You need to define 'buildNumber' in the ios object of the expo config!") + } + const buildNumber = !!config.ios?.buildNumber ? config.ios.buildNumber : config_1.DEFAULT_IOS_BUILD_NUMBER + //Transfer files & Edit necessary values + for (const fileName of config_1.FILES_TO_ADD) { + const pathToFileToRead = path.join(serviceExtensionFilesFolderPath, fileName) + const pathWhereToWrite = path.join(p, config_1.EXTENSION_SERVICE_NAME, fileName) + let file = fs.readFileSync(pathToFileToRead, 'utf8') + if (fileName === config_1.EXTENSION_SERVICE_NAME + '-Info.plist') { + file = file.replace(config_1.APP_VERSION_STRING, appVersion) + file = file.replace(config_1.IOS_BUILD_NUMBER_STRING, buildNumber) + } else if (fileName === config_1.EXTENSION_SERVICE_NAME + '.entitlements') { + // Build the app groups array for entitlements + const defaultNotifeeGroup = bundleIdentifier + const mainAppGroup = props.appGroupIdentifier || `group.${config.ios?.bundleIdentifier}` + const additionalGroups = props.additionalAppGroups || [] + // Combine all app groups (notifee group + main app group + additional groups) + const allAppGroups = [defaultNotifeeGroup, mainAppGroup, ...additionalGroups] + // Remove duplicates + const uniqueAppGroups = Array.from(new Set(allAppGroups)) + // Generate the XML string for app groups + const appGroupsXml = uniqueAppGroups.map((group) => `\t\t${group}`).join('\n') + file = file.replace(config_1.APP_GROUPS_PLACEHOLDER, appGroupsXml) + } + fs.writeFileSync(pathWhereToWrite, file) + } + // Copy Utils folder if it exists + const sourceUtilsPath = path.join(serviceExtensionFilesFolderPath, 'Utils') + const destUtilsPath = path.join(p, config_1.EXTENSION_SERVICE_NAME, 'Utils') + if (fs.existsSync(sourceUtilsPath)) { + // Create Utils directory if it doesn't exist + fs.mkdirSync(destUtilsPath, { recursive: true }) + // Copy all files from Utils directory + const utilsFiles = fs.readdirSync(sourceUtilsPath) + for (const utilFile of utilsFiles) { + const sourcePath = path.join(sourceUtilsPath, utilFile) + const destPath = path.join(destUtilsPath, utilFile) + fs.copyFileSync(sourcePath, destPath) + } + ;(0, utils_1.log)('Copied Utils folder successfully!') + } + const notificationServicePath = !!props.customNotificationServiceFilePath + ? props.customNotificationServiceFilePath + : path.join(serviceExtensionFilesFolderPath, config_1.EXTENSION_SERVICE_FILE) + const pathWhereToWriteNotificationService = path.join( + p, + config_1.EXTENSION_SERVICE_NAME, + config_1.EXTENSION_SERVICE_FILE, + ) + // Determine the app group identifier to use + const appGroupIdentifier = props.appGroupIdentifier || `group.${config.ios?.bundleIdentifier}` + let notificationServiceFile = fs.readFileSync(notificationServicePath, 'utf8') + // Replace the app group identifier placeholder + notificationServiceFile = notificationServiceFile.replaceAll( + config_1.NOTIFICATION_APP_GROUP_IDENTIFIER_STRING, + appGroupIdentifier, + ) + fs.writeFileSync(pathWhereToWriteNotificationService, notificationServiceFile) + ;(0, utils_1.log)('Added NotificationService files!') + } catch { + ;(0, utils_1.logError)('serviceExtensionFilesFolderPath: ' + serviceExtensionFilesFolderPath) + ;(0, utils_1.logError)('Error while copying notification service files') + } + return config + }, + ]) + //Make files added before available in xcode project + return (0, config_plugins_1.withXcodeProject)(updatedConfig, (nc) => { + const x = nc.modResults + // Create the main service extension group + const mainGroup = x.addPbxGroup( + [...config_1.FILES_TO_ADD, config_1.EXTENSION_SERVICE_FILE], + config_1.EXTENSION_SERVICE_NAME, + config_1.EXTENSION_SERVICE_NAME, + ) + // Create Utils subgroup if files exist + const sourceUtilsPath = path.join(serviceExtensionFilesFolderPath, 'Utils') + if (fs.existsSync(sourceUtilsPath)) { + const utilsFiles = fs.readdirSync(sourceUtilsPath) + if (utilsFiles.length > 0) { + // Create a Utils subgroup within the main group + const utilsGroup = x.addPbxGroup(utilsFiles, 'Utils', 'Utils') + // Add the Utils group to the main group + x.addToPbxGroup(utilsGroup.uuid, mainGroup.uuid) + // Add Utils files to Sources build phase + const target = x.pbxTargetByName(config_1.EXTENSION_SERVICE_NAME) + if (target) { + const sourcesBuildPhase = x.buildPhaseObject('PBXSourcesBuildPhase', 'Sources', target.uuid) + if (sourcesBuildPhase) { + for (const utilFile of utilsFiles) { + if (utilFile.endsWith('.swift')) { + x.addToPbxBuildFileSection(`Utils/${utilFile}`) + x.addToPbxSourcesBuildPhase(`Utils/${utilFile}`, sourcesBuildPhase) + } + } + } + } + } + } + // Add the main group to the root group + const pbxs = x.hash.project.objects['PBXGroup'] + Object.keys(pbxs).forEach(function (v) { + if (typeof pbxs[v] === 'object' && !pbxs[v].name && !pbxs[v].path) { + x.addToPbxGroup(mainGroup.uuid, v) + } + }) + return nc + }) +} +/** + * Signs the main iOS app target and the notification service extension target with the specified Apple development team ID. + * + * @param {object} c - The current Expo configuration object. + * @param {NotifeeExpoPluginProps} props - The properties containing the Apple development team ID. + * @returns {object} - The updated Expo configuration object after signing targets. + */ +const signAppAndNotificationServiceExtension = (c, props) => { + if (!props.appleDevTeamId) { + return c + } + return (0, config_plugins_1.withXcodeProject)(c, (nc) => { + const xcodeProject = nc.modResults + //Sign main target + const mainTarget = xcodeProject.pbxTargetByName(c.name) + if (mainTarget) { + xcodeProject.addTargetAttribute('DevelopmentTeam', props.appleDevTeamId, mainTarget) + } + //Sign notification service extension target + const target = xcodeProject.pbxTargetByName(config_1.EXTENSION_SERVICE_NAME) + if (target) { + xcodeProject.addTargetAttribute('DevelopmentTeam', props.appleDevTeamId, target) + } + ;(0, utils_1.log)('Signed the main app and notification service extension targets with: ' + props.appleDevTeamId) + return nc + }) +} +/** + * Sets the APS Environment Entitlement in the app's entitlements plist file to specify whether to use the development or production Apple Push Notification service (APNs). + * + * @param {object} c - The current Expo configuration object. + * @param {NotifeeExpoPluginProps} props - The properties containing the APS environment mode (production or development). + * @returns {object} - The updated Expo configuration object after setting the APS environment. + */ +const setAPSEnvironment = (c, props) => { + return (0, config_plugins_1.withEntitlementsPlist)(c, (nc) => { + nc.modResults['aps-environment'] = props.apsEnvMode + ;(0, utils_1.log)('Set aps-environment to: ' + props.apsEnvMode) + return nc + }) +} +/** + * Adds the application group entitlement necessary for Notifee to the iOS project's entitlements plist. + * + * @param {object} c - The Expo configuration object. + * @returns {object} - The updated Expo configuration object with added application group entitlement. + */ +const addNotificationServiceGroup = (c) => { + return (0, config_plugins_1.withEntitlementsPlist)(c, (nc) => { + const g = 'com.apple.security.application-groups' + if (!Array.isArray(nc.modResults[g])) { + nc.modResults[g] = [] + } + const gName = `group.${nc.ios?.bundleIdentifier}` + const modResults = nc.modResults[g] + if (!modResults.includes(gName)) { + modResults.push(gName) + } + ;(0, utils_1.log)(`Added '${gName} to com.apple.security.application-groups`) + return nc + }) +} +/** + * Adds required background modes to the iOS project's Info.plist for Notifee functionality. + * + * @param {object} c - The Expo configuration object. + * @returns {object} - The updated Expo configuration object with added background modes. + */ +const addBackgroundModes = (c, props) => { + return (0, config_plugins_1.withInfoPlist)(c, (nc) => { + //Added this condition so it doesn't add background modes capability without anything selected when the user wants no background modes. + if (props.backgroundModes && props.backgroundModes.length === 0) { + return nc + } + if (!Array.isArray(nc.modResults.UIBackgroundModes)) { + nc.modResults.UIBackgroundModes = [] + } + if (!props.backgroundModes) { + props.backgroundModes = config_1.BACKGROUND_MODES_TO_ENABLE + } + for (const mode of props.backgroundModes) { + if (!nc.modResults.UIBackgroundModes.includes(mode)) { + nc.modResults.UIBackgroundModes.push(mode) + } + } + ;(0, utils_1.log)('Added background modes (' + props.backgroundModes.join(', ') + ')') + return nc + }) +} +/** + * Enables communication notifications capability for the iOS project if specified in props. + * This includes setting entitlements and adding necessary keys to Info.plist. + * + * @param {object} c - The Expo configuration object. + * @param {NotifeeExpoPluginProps} props - The properties object containing configuration options. + * @returns {object} - The updated Expo configuration object with added communication notifications capability. + */ +const addCommunicationNotificationsCapability = (c, props) => { + if (!props.enableCommunicationNotifications) { + return c + } + const updatedConfig = (0, config_plugins_1.withEntitlementsPlist)(c, (nc) => { + if (props.enableCommunicationNotifications) { + nc.modResults['com.apple.developer.usernotifications.communication'] = true + } + ;(0, utils_1.log)('Added communication notifications capability') + return nc + }) + return (0, config_plugins_1.withInfoPlist)(updatedConfig, (nc) => { + if (!Array.isArray(nc.modResults.NSUserActivityTypes)) { + nc.modResults.NSUserActivityTypes = [] + } + for (const v of config_1.USER_ACTIVITY_TYPES_KEYS) { + if (!nc.modResults.NSUserActivityTypes.includes(v)) { + nc.modResults.NSUserActivityTypes.push(v) + } + } + ;(0, utils_1.log)('Added INSendMessageIntent to NSUserActivityTypes for communication notifications') + return nc + }) +} +/** + * Creates and adds a notification service extension target to the Xcode project if it doesn't already exist. + * Configures necessary settings and build phases for the extension target. + * + * @param {object} c - The Expo configuration object. + * @param {NotifeeExpoPluginProps} props - The properties object containing configuration options. + * @returns {object} - The updated Expo configuration object with the added notification service extension target. + */ +const createAndAddNotificationServiceExtensionTarget = (c, props) => { + return (0, config_plugins_1.withXcodeProject)(c, (nc) => { + const x = nc.modResults + if (!!x.pbxTargetByName(config_1.EXTENSION_SERVICE_NAME)) { + return nc + } + /** + * Needed or project with one target won't add notification extension service target + * correctly and it will throw cannot install podfiles + */ + const po = x.hash.project.objects + po['PBXContainerItemProxy'] = po['PBXTargetDependency'] ?? {} + po['PBXTargetDependency'] = po['PBXTargetDependency'] ?? {} + // Create a new target for the notification service extension + const newTargetBundleIdentifier = c.ios?.bundleIdentifier + '.' + config_1.EXTENSION_SERVICE_NAME + const nt = x.addTarget( + config_1.EXTENSION_SERVICE_NAME, + 'app_extension', + config_1.EXTENSION_SERVICE_NAME, + newTargetBundleIdentifier, + ) + // Add necessary files to the new target + x.addBuildPhase([], 'PBXFrameworksBuildPhase', 'Frameworks', nt.uuid) + x.addBuildPhase([], 'PBXResourcesBuildPhase', 'Resources', nt.uuid) + x.addBuildPhase(['NotificationService.swift'], 'PBXSourcesBuildPhase', 'Sources', nt.uuid) + // Set the info of notification service extension target + const config = x.pbxXCBuildConfigurationSection() + for (const v in config) { + if ( + !!config[v].buildSettings && + config[v].buildSettings.PRODUCT_NAME === `"${config_1.EXTENSION_SERVICE_NAME}"` + ) { + config[v].buildSettings = { + ...config[v].buildSettings, + TARGETED_DEVICE_FAMILY: config_1.TARGET_DEVICES, + IPHONEOS_DEPLOYMENT_TARGET: props.iosDeploymentTarget ?? config_1.DEFAULT_IOS_DEPLOYMENT_TARGET, + DEVELOPMENT_TEAM: props.appleDevTeamId, + CODE_SIGN_ENTITLEMENTS: `${config_1.EXTENSION_SERVICE_NAME}/${config_1.EXTENSION_SERVICE_NAME}.entitlements`, + CODE_SIGN_STYLE: 'Automatic', + SWIFT_VERSION: '5.0', + } + } else if (!!config[v].buildSettings && config[v].buildSettings.PRODUCT_NAME === `"${c.name}"`) { + config[v].buildSettings = { + ...config[v].buildSettings, + DEVELOPMENT_TEAM: props.appleDevTeamId, + } + } + } + ;(0, utils_1.log)(`Created Notification Service Extension (${newTargetBundleIdentifier})`) + return nc + }) +} +/** + * Adds the Notifee target to the Expo app extensions configuration for EAS builds. + * Configures the target name, bundle identifier, and entitlements for the Notifee extension. + * + * @param {object} c - The Expo configuration object. + * @returns {object} - The updated Expo configuration object with Notifee target added to app extensions. + */ +const addNotifeeTargetToExpoAppExtensions = (c) => { + const bundleIdentifier = c.ios?.bundleIdentifier + '.' + config_1.EXTENSION_SERVICE_NAME + const expoAppExtension = { + targetName: config_1.EXTENSION_SERVICE_NAME, + bundleIdentifier, + entitlements: { + 'com.apple.security.application-groups': [ + `group.${c.ios?.bundleIdentifier}.notifee`, + `group.${c.ios?.bundleIdentifier}`, + ], + }, + } + return { + ...c, + extra: { + ...c.extra, + eas: { + ...c.extra?.eas, + build: { + ...c.extra?.eas?.build, + experimental: { + ...c.extra?.eas?.build?.experimental, + ios: { + ...c.extra?.eas?.build?.experimental?.ios, + appExtensions: [...(c.extra?.eas?.build?.experimental?.ios?.appExtensions ?? []), expoAppExtension], + }, + }, + }, + }, + }, + } +} +exports.default = { + setAPSEnvironment, + addCommunicationNotificationsCapability, + addBackgroundModes, + addNotificationServiceFilesToProject, + addNotifeeToPodfile, + signAppAndNotificationServiceExtension, + createAndAddNotificationServiceExtensionTarget, + addNotifeeTargetToExpoAppExtensions, + addNotificationServiceGroup, +} diff --git a/expo-plugins/notification-service-ios/dist/plugin/types.d.ts b/expo-plugins/notification-service-ios/dist/plugin/types.d.ts new file mode 100644 index 000000000..548562df2 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/types.d.ts @@ -0,0 +1,54 @@ +/** + * Defines the possible types for Notifee Android icons. + */ +export type NotifeeAndroidIconType = 'large' | 'small' +/** + * Defines the possible environments for Apple Push Notification Service (APNs). + */ +export type APSEnvironmentMode = 'production' | 'development' +/** + * Describes the properties required for configuring Notifee-Expo-Plugin in an Expo project. + */ +export type NotifeeExpoPluginProps = { + /** + * Sets the APS Environment Entitlement. Determines whether to use the development or production + * Apple Push Notification service (APNs). + */ + apsEnvMode: APSEnvironmentMode + /** + * Sets the deployment target of the notification service extension for iOS. + * This should match the deployment target of the main app. + */ + iosDeploymentTarget: string + /** + * Specifies the background modes to enable for the app. + * If not provided, the default value will be: ["remote-notification"]. + * On the other hand, an empty array [] will signal to the plugin to skip the backgroundModes step completly. + * See possible values here: https://developer.apple.com/documentation/bundleresources/information_property_list/uibackgroundmodes + */ + backgroundModes?: string[] + /** + * Enables communication notifications, which adds the necessary configurations + * for communication notifications as mentioned in https://github.com/invertase/notifee/pull/526. + */ + enableCommunicationNotifications?: boolean + /** + * Automatically signs the app and the notification service extension targets with the provided Apple developer team ID. + */ + appleDevTeamId?: string + /** + * Specifies the path to a custom notification service file, which should already include + * the necessary configurations for Notifee along with any additional customizations. + */ + customNotificationServiceFilePath?: string + /** + * Specifies the app group identifier to use for sharing data between the main app and the notification service extension. + * If not provided, defaults to the main app's bundle identifier app group (group.{bundleIdentifier}). + */ + appGroupIdentifier?: string + /** + * Specifies additional app groups that the notification service extension should have access to. + * These will be added to the entitlements in addition to the default notifee app group. + */ + additionalAppGroups?: string[] +} diff --git a/expo-plugins/notification-service-ios/dist/plugin/types.js b/expo-plugins/notification-service-ios/dist/plugin/types.js new file mode 100644 index 000000000..0a483a32d --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/types.js @@ -0,0 +1,2 @@ +'use strict' +Object.defineProperty(exports, '__esModule', { value: true }) diff --git a/expo-plugins/notification-service-ios/dist/plugin/utils.d.ts b/expo-plugins/notification-service-ios/dist/plugin/utils.d.ts new file mode 100644 index 000000000..85420a6f1 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/utils.d.ts @@ -0,0 +1,27 @@ +import { NotifeeExpoPluginProps } from './types' +/** + * Throws an error prefixed with the package name. + * + * @param {string} message - The error message. + * @throws {Error} Always throws an error. + */ +export declare const throwError: (message: string) => never +/** + * Validates the properties passed to the Notifee Expo plugin. + * + * @param {NotifeeExpoPluginProps} props - The properties to validate. + * @throws {Error} If any validation check fails. + */ +export declare const validateProps: (props: NotifeeExpoPluginProps) => void +/** + * Logs a message to the console with the package name prefixed. + * + * @param {string} message - The message to log. + */ +export declare const log: (message: string) => void +/** + * Logs an error message to the console with the package name prefixed. + * + * @param {string} message - The error message to log. + */ +export declare const logError: (message: string) => void diff --git a/expo-plugins/notification-service-ios/dist/plugin/utils.js b/expo-plugins/notification-service-ios/dist/plugin/utils.js new file mode 100644 index 000000000..566bcd283 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/utils.js @@ -0,0 +1,64 @@ +'use strict' +Object.defineProperty(exports, '__esModule', { value: true }) +exports.logError = exports.log = exports.validateProps = exports.throwError = void 0 +const errorPrefix = 'expo-plugins/notification-service-ios:' +/** + * Throws an error prefixed with the package name. + * + * @param {string} message - The error message. + * @throws {Error} Always throws an error. + */ +const throwError = (message) => { + throw new Error(errorPrefix + message) +} +exports.throwError = throwError +/** + * Validates the properties passed to the Notifee Expo plugin. + * + * @param {NotifeeExpoPluginProps} props - The properties to validate. + * @throws {Error} If any validation check fails. + */ +const validateProps = (props) => { + if (!props) { + ;(0, exports.throwError)( + "You need to pass options to this plugin! The props 'apsEnvMode' & 'iosDeploymentTarget' are required!", + ) + } + if (typeof props.iosDeploymentTarget !== 'string') { + ;(0, exports.throwError)("'iosDeploymentTarget' needs to be a string!") + } + if (typeof props.apsEnvMode !== 'string') { + ;(0, exports.throwError)("'apsEnvMode' needs to be a string!") + } + if (props.appleDevTeamId && typeof props.appleDevTeamId !== 'string') { + ;(0, exports.throwError)("'appleDevTeamId' needs to be a string!") + } + if (props.enableCommunicationNotifications && typeof props.enableCommunicationNotifications !== 'boolean') { + ;(0, exports.throwError)("'enableCommunicationNotifications' needs to be a boolean!") + } + if (props.customNotificationServiceFilePath && typeof props.customNotificationServiceFilePath !== 'string') { + ;(0, exports.throwError)("'customNotificationServiceFilePath' needs to be a string!") + } + if (props.backgroundModes && !Array.isArray(props.backgroundModes)) { + ;(0, exports.throwError)("'backgroundModes' needs to be an array!") + } +} +exports.validateProps = validateProps +/** + * Logs a message to the console with the package name prefixed. + * + * @param {string} message - The message to log. + */ +const log = (message) => { + console.log(`${errorPrefix}: ` + message) +} +exports.log = log +/** + * Logs an error message to the console with the package name prefixed. + * + * @param {string} message - The error message to log. + */ +const logError = (message) => { + console.error(`${errorPrefix}: ` + message) +} +exports.logError = logError diff --git a/expo-plugins/notification-service-ios/dist/plugin/withNotifee.d.ts b/expo-plugins/notification-service-ios/dist/plugin/withNotifee.d.ts new file mode 100644 index 000000000..a1283a3d3 --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/withNotifee.d.ts @@ -0,0 +1,12 @@ +import { ConfigPlugin } from '@expo/config-plugins' +import { NotifeeExpoPluginProps } from './types' +/** + * Configures Notifee settings for both Android and iOS platforms in an Expo project. + * + * @param {object} c - The Expo configuration object. + * @param {NotifeeExpoPluginProps} props - The properties required for configuring Notifee-Expo-Plugin. + * + * @returns {object} - The updated Expo configuration object. + */ +declare const withNotifee: ConfigPlugin +export default withNotifee diff --git a/expo-plugins/notification-service-ios/dist/plugin/withNotifee.js b/expo-plugins/notification-service-ios/dist/plugin/withNotifee.js new file mode 100644 index 000000000..aeeaa66bc --- /dev/null +++ b/expo-plugins/notification-service-ios/dist/plugin/withNotifee.js @@ -0,0 +1,32 @@ +'use strict' +var __importDefault = + (this && this.__importDefault) || + function (mod) { + return mod && mod.__esModule ? mod : { default: mod } + } +Object.defineProperty(exports, '__esModule', { value: true }) +const utils_1 = require('./utils') +const ios_1 = __importDefault(require('./ios')) +/** + * Configures Notifee settings for both Android and iOS platforms in an Expo project. + * + * @param {object} c - The Expo configuration object. + * @param {NotifeeExpoPluginProps} props - The properties required for configuring Notifee-Expo-Plugin. + * + * @returns {object} - The updated Expo configuration object. + */ +const withNotifee = (c, props) => { + ;(0, utils_1.validateProps)(props) + /** iOS Configuration */ + c = ios_1.default.setAPSEnvironment(c, props) + c = ios_1.default.addBackgroundModes(c, props) + c = ios_1.default.addCommunicationNotificationsCapability(c, props) + c = ios_1.default.addNotificationServiceGroup(c, props) + c = ios_1.default.addNotifeeToPodfile(c, props) + c = ios_1.default.addNotificationServiceFilesToProject(c, props) + c = ios_1.default.addNotifeeTargetToExpoAppExtensions(c, props) + c = ios_1.default.createAndAddNotificationServiceExtensionTarget(c, props) + c = ios_1.default.signAppAndNotificationServiceExtension(c, props) + return c +} +exports.default = withNotifee diff --git a/packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/ERC20.ts b/packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/ERC20.ts new file mode 100644 index 000000000..cba6a5a80 --- /dev/null +++ b/packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/ERC20.ts @@ -0,0 +1,330 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from "../../../../common"; + +export interface ERC20Interface extends Interface { + getFunction( + nameOrSignature: + | "allowance" + | "approve" + | "balanceOf" + | "decimals" + | "decreaseAllowance" + | "increaseAllowance" + | "name" + | "symbol" + | "totalSupply" + | "transfer" + | "transferFrom" + ): FunctionFragment; + + getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment; + + encodeFunctionData( + functionFragment: "allowance", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData( + functionFragment: "approve", + values: [AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "balanceOf", + values: [AddressLike] + ): string; + encodeFunctionData(functionFragment: "decimals", values?: undefined): string; + encodeFunctionData( + functionFragment: "decreaseAllowance", + values: [AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "increaseAllowance", + values: [AddressLike, BigNumberish] + ): string; + encodeFunctionData(functionFragment: "name", values?: undefined): string; + encodeFunctionData(functionFragment: "symbol", values?: undefined): string; + encodeFunctionData( + functionFragment: "totalSupply", + values?: undefined + ): string; + encodeFunctionData( + functionFragment: "transfer", + values: [AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "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; +} + +export namespace ApprovalEvent { + export type InputTuple = [ + owner: AddressLike, + spender: AddressLike, + value: BigNumberish + ]; + export type OutputTuple = [owner: string, spender: string, value: bigint]; + export interface OutputObject { + owner: string; + spender: string; + value: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace TransferEvent { + export type InputTuple = [ + from: AddressLike, + to: AddressLike, + value: BigNumberish + ]; + export type OutputTuple = [from: string, to: string, value: bigint]; + export interface OutputObject { + from: string; + to: string; + value: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export interface ERC20 extends BaseContract { + connect(runner?: ContractRunner | null): ERC20; + waitForDeployment(): Promise; + + interface: ERC20Interface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + allowance: TypedContractMethod< + [owner: AddressLike, spender: AddressLike], + [bigint], + "view" + >; + + approve: TypedContractMethod< + [spender: AddressLike, amount: BigNumberish], + [boolean], + "nonpayable" + >; + + balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; + + decimals: TypedContractMethod<[], [bigint], "view">; + + decreaseAllowance: TypedContractMethod< + [spender: AddressLike, subtractedValue: BigNumberish], + [boolean], + "nonpayable" + >; + + increaseAllowance: TypedContractMethod< + [spender: AddressLike, addedValue: BigNumberish], + [boolean], + "nonpayable" + >; + + name: TypedContractMethod<[], [string], "view">; + + symbol: TypedContractMethod<[], [string], "view">; + + totalSupply: TypedContractMethod<[], [bigint], "view">; + + transfer: TypedContractMethod< + [to: AddressLike, amount: BigNumberish], + [boolean], + "nonpayable" + >; + + transferFrom: TypedContractMethod< + [from: AddressLike, to: AddressLike, amount: BigNumberish], + [boolean], + "nonpayable" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "allowance" + ): TypedContractMethod< + [owner: AddressLike, spender: AddressLike], + [bigint], + "view" + >; + getFunction( + nameOrSignature: "approve" + ): TypedContractMethod< + [spender: AddressLike, amount: BigNumberish], + [boolean], + "nonpayable" + >; + getFunction( + nameOrSignature: "balanceOf" + ): TypedContractMethod<[account: AddressLike], [bigint], "view">; + getFunction( + nameOrSignature: "decimals" + ): TypedContractMethod<[], [bigint], "view">; + getFunction( + nameOrSignature: "decreaseAllowance" + ): TypedContractMethod< + [spender: AddressLike, subtractedValue: BigNumberish], + [boolean], + "nonpayable" + >; + getFunction( + nameOrSignature: "increaseAllowance" + ): TypedContractMethod< + [spender: AddressLike, addedValue: BigNumberish], + [boolean], + "nonpayable" + >; + getFunction( + nameOrSignature: "name" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "symbol" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "totalSupply" + ): TypedContractMethod<[], [bigint], "view">; + getFunction( + nameOrSignature: "transfer" + ): TypedContractMethod< + [to: AddressLike, amount: BigNumberish], + [boolean], + "nonpayable" + >; + getFunction( + nameOrSignature: "transferFrom" + ): TypedContractMethod< + [from: AddressLike, to: AddressLike, amount: BigNumberish], + [boolean], + "nonpayable" + >; + + getEvent( + key: "Approval" + ): TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + >; + getEvent( + key: "Transfer" + ): TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + + filters: { + "Approval(address,address,uint256)": TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + >; + Approval: TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + >; + + "Transfer(address,address,uint256)": TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + Transfer: TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + }; +} diff --git a/packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/ERC721.ts b/packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/ERC721.ts new file mode 100644 index 000000000..981e15df5 --- /dev/null +++ b/packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/ERC721.ts @@ -0,0 +1,420 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from "ethers"; +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from "../../../../common"; + +export interface ERC721Interface extends Interface { + getFunction( + nameOrSignature: + | "approve" + | "balanceOf" + | "getApproved" + | "isApprovedForAll" + | "name" + | "ownerOf" + | "safeTransferFrom(address,address,uint256)" + | "safeTransferFrom(address,address,uint256,bytes)" + | "setApprovalForAll" + | "supportsInterface" + | "symbol" + | "tokenURI" + | "transferFrom" + ): FunctionFragment; + + getEvent( + nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "Transfer" + ): EventFragment; + + encodeFunctionData( + functionFragment: "approve", + values: [AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "balanceOf", + values: [AddressLike] + ): string; + encodeFunctionData( + functionFragment: "getApproved", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "isApprovedForAll", + values: [AddressLike, AddressLike] + ): string; + encodeFunctionData(functionFragment: "name", values?: undefined): string; + encodeFunctionData( + functionFragment: "ownerOf", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "safeTransferFrom(address,address,uint256)", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "safeTransferFrom(address,address,uint256,bytes)", + values: [AddressLike, AddressLike, BigNumberish, BytesLike] + ): string; + encodeFunctionData( + functionFragment: "setApprovalForAll", + values: [AddressLike, boolean] + ): string; + encodeFunctionData( + functionFragment: "supportsInterface", + values: [BytesLike] + ): string; + encodeFunctionData(functionFragment: "symbol", values?: undefined): string; + encodeFunctionData( + functionFragment: "tokenURI", + values: [BigNumberish] + ): string; + encodeFunctionData( + functionFragment: "transferFrom", + values: [AddressLike, AddressLike, BigNumberish] + ): string; + + decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "getApproved", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "isApprovedForAll", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "safeTransferFrom(address,address,uint256)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "safeTransferFrom(address,address,uint256,bytes)", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "setApprovalForAll", + data: BytesLike + ): Result; + decodeFunctionResult( + functionFragment: "supportsInterface", + data: BytesLike + ): Result; + decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; + decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result; + decodeFunctionResult( + functionFragment: "transferFrom", + data: BytesLike + ): Result; +} + +export namespace ApprovalEvent { + export type InputTuple = [ + owner: AddressLike, + approved: AddressLike, + tokenId: BigNumberish + ]; + export type OutputTuple = [owner: string, approved: string, tokenId: bigint]; + export interface OutputObject { + owner: string; + approved: string; + tokenId: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace ApprovalForAllEvent { + export type InputTuple = [ + owner: AddressLike, + operator: AddressLike, + approved: boolean + ]; + export type OutputTuple = [ + owner: string, + operator: string, + approved: boolean + ]; + export interface OutputObject { + owner: string; + operator: string; + approved: boolean; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export namespace TransferEvent { + export type InputTuple = [ + from: AddressLike, + to: AddressLike, + tokenId: BigNumberish + ]; + export type OutputTuple = [from: string, to: string, tokenId: bigint]; + export interface OutputObject { + from: string; + to: string; + tokenId: bigint; + } + export type Event = TypedContractEvent; + export type Filter = TypedDeferredTopicFilter; + export type Log = TypedEventLog; + export type LogDescription = TypedLogDescription; +} + +export interface ERC721 extends BaseContract { + connect(runner?: ContractRunner | null): ERC721; + waitForDeployment(): Promise; + + interface: ERC721Interface; + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined + ): Promise>>; + + on( + event: TCEvent, + listener: TypedListener + ): Promise; + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + once( + event: TCEvent, + listener: TypedListener + ): Promise; + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener + ): Promise; + + listeners( + event: TCEvent + ): Promise>>; + listeners(eventName?: string): Promise>; + removeAllListeners( + event?: TCEvent + ): Promise; + + approve: TypedContractMethod< + [to: AddressLike, tokenId: BigNumberish], + [void], + "nonpayable" + >; + + balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">; + + getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + + isApprovedForAll: TypedContractMethod< + [owner: AddressLike, operator: AddressLike], + [boolean], + "view" + >; + + name: TypedContractMethod<[], [string], "view">; + + ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + + "safeTransferFrom(address,address,uint256)": TypedContractMethod< + [from: AddressLike, to: AddressLike, tokenId: BigNumberish], + [void], + "nonpayable" + >; + + "safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod< + [ + from: AddressLike, + to: AddressLike, + tokenId: BigNumberish, + data: BytesLike + ], + [void], + "nonpayable" + >; + + setApprovalForAll: TypedContractMethod< + [operator: AddressLike, approved: boolean], + [void], + "nonpayable" + >; + + supportsInterface: TypedContractMethod< + [interfaceId: BytesLike], + [boolean], + "view" + >; + + symbol: TypedContractMethod<[], [string], "view">; + + tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + + transferFrom: TypedContractMethod< + [from: AddressLike, to: AddressLike, tokenId: BigNumberish], + [void], + "nonpayable" + >; + + getFunction( + key: string | FunctionFragment + ): T; + + getFunction( + nameOrSignature: "approve" + ): TypedContractMethod< + [to: AddressLike, tokenId: BigNumberish], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "balanceOf" + ): TypedContractMethod<[owner: AddressLike], [bigint], "view">; + getFunction( + nameOrSignature: "getApproved" + ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + getFunction( + nameOrSignature: "isApprovedForAll" + ): TypedContractMethod< + [owner: AddressLike, operator: AddressLike], + [boolean], + "view" + >; + getFunction( + nameOrSignature: "name" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "ownerOf" + ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + getFunction( + nameOrSignature: "safeTransferFrom(address,address,uint256)" + ): TypedContractMethod< + [from: AddressLike, to: AddressLike, tokenId: BigNumberish], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)" + ): TypedContractMethod< + [ + from: AddressLike, + to: AddressLike, + tokenId: BigNumberish, + data: BytesLike + ], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "setApprovalForAll" + ): TypedContractMethod< + [operator: AddressLike, approved: boolean], + [void], + "nonpayable" + >; + getFunction( + nameOrSignature: "supportsInterface" + ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; + getFunction( + nameOrSignature: "symbol" + ): TypedContractMethod<[], [string], "view">; + getFunction( + nameOrSignature: "tokenURI" + ): TypedContractMethod<[tokenId: BigNumberish], [string], "view">; + getFunction( + nameOrSignature: "transferFrom" + ): TypedContractMethod< + [from: AddressLike, to: AddressLike, tokenId: BigNumberish], + [void], + "nonpayable" + >; + + getEvent( + key: "Approval" + ): TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + >; + getEvent( + key: "ApprovalForAll" + ): TypedContractEvent< + ApprovalForAllEvent.InputTuple, + ApprovalForAllEvent.OutputTuple, + ApprovalForAllEvent.OutputObject + >; + getEvent( + key: "Transfer" + ): TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + + filters: { + "Approval(address,address,uint256)": TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + >; + Approval: TypedContractEvent< + ApprovalEvent.InputTuple, + ApprovalEvent.OutputTuple, + ApprovalEvent.OutputObject + >; + + "ApprovalForAll(address,address,bool)": TypedContractEvent< + ApprovalForAllEvent.InputTuple, + ApprovalForAllEvent.OutputTuple, + ApprovalForAllEvent.OutputObject + >; + ApprovalForAll: TypedContractEvent< + ApprovalForAllEvent.InputTuple, + ApprovalForAllEvent.OutputTuple, + ApprovalForAllEvent.OutputObject + >; + + "Transfer(address,address,uint256)": TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + Transfer: TypedContractEvent< + TransferEvent.InputTuple, + TransferEvent.OutputTuple, + TransferEvent.OutputObject + >; + }; +} diff --git a/packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/index.ts b/packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/index.ts new file mode 100644 index 000000000..db1378f76 --- /dev/null +++ b/packages/utils/src/types/contracts/@openzeppelin/contracts/build/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { ERC20 } from "./ERC20"; +export type { ERC721 } from "./ERC721"; diff --git a/packages/utils/src/types/contracts/@openzeppelin/contracts/build/index.ts b/packages/utils/src/types/contracts/@openzeppelin/contracts/build/index.ts new file mode 100644 index 000000000..a11e4ca29 --- /dev/null +++ b/packages/utils/src/types/contracts/@openzeppelin/contracts/build/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as contracts from "./contracts"; +export type { contracts }; diff --git a/packages/utils/src/types/contracts/@openzeppelin/contracts/index.ts b/packages/utils/src/types/contracts/@openzeppelin/contracts/index.ts new file mode 100644 index 000000000..01afb08eb --- /dev/null +++ b/packages/utils/src/types/contracts/@openzeppelin/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as build from './build' +export type { build } diff --git a/packages/utils/src/types/contracts/@openzeppelin/index.ts b/packages/utils/src/types/contracts/@openzeppelin/index.ts new file mode 100644 index 000000000..eb7a38b1c --- /dev/null +++ b/packages/utils/src/types/contracts/@openzeppelin/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as contracts from './contracts' +export type { contracts } diff --git a/packages/utils/src/types/contracts/@safe-global/index.ts b/packages/utils/src/types/contracts/@safe-global/index.ts new file mode 100644 index 000000000..479915e2d --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as safeDeployments from './safe-deployments' +export type { safeDeployments } +import type * as safeModulesDeployments from './safe-modules-deployments' +export type { safeModulesDeployments } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/index.ts new file mode 100644 index 000000000..16bbb941a --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/index.ts @@ -0,0 +1,15 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as v100 from './v1.0.0' +export type { v100 } +import type * as v111 from './v1.1.1' +export type { v111 } +import type * as v120 from './v1.2.0' +export type { v120 } +import type * as v130 from './v1.3.0' +export type { v130 } +import type * as v141 from './v1.4.1' +export type { v141 } +import type * as v150 from './v1.5.0' +export type { v150 } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe.ts new file mode 100644 index 000000000..2449a9eb8 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe.ts @@ -0,0 +1,688 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Gnosis_safeInterface extends Interface { + getFunction( + nameOrSignature: + | 'addOwnerWithThreshold' + | 'DOMAIN_SEPARATOR_TYPEHASH' + | 'isOwner' + | 'execTransactionFromModule' + | 'signedMessages' + | 'enableModule' + | 'changeThreshold' + | 'approvedHashes' + | 'changeMasterCopy' + | 'SENTINEL_MODULES' + | 'SENTINEL_OWNERS' + | 'getOwners' + | 'NAME' + | 'nonce' + | 'getModules' + | 'SAFE_MSG_TYPEHASH' + | 'SAFE_TX_TYPEHASH' + | 'disableModule' + | 'swapOwner' + | 'getThreshold' + | 'domainSeparator' + | 'removeOwner' + | 'VERSION' + | 'setup' + | 'execTransaction' + | 'requiredTxGas' + | 'approveHash' + | 'signMessage' + | 'isValidSignature' + | 'getMessageHash' + | 'encodeTransactionData' + | 'getTransactionHash', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'ExecutionFailed' + | 'AddedOwner' + | 'RemovedOwner' + | 'ChangedThreshold' + | 'EnabledModule' + | 'DisabledModule' + | 'ContractCreation', + ): EventFragment + + encodeFunctionData(functionFragment: 'addOwnerWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'DOMAIN_SEPARATOR_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeMasterCopy', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'SENTINEL_MODULES', values?: undefined): string + encodeFunctionData(functionFragment: 'SENTINEL_OWNERS', values?: undefined): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_MSG_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_TX_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'swapOwner', values: [AddressLike, AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'removeOwner', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData( + functionFragment: 'setup', + values: [AddressLike[], BigNumberish, AddressLike, BytesLike, AddressLike, BigNumberish, AddressLike], + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + ], + ): string + encodeFunctionData( + functionFragment: 'requiredTxGas', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'DOMAIN_SEPARATOR_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeMasterCopy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SENTINEL_MODULES', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SENTINEL_OWNERS', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_MSG_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_TX_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'requiredTxGas', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result +} + +export namespace ExecutionFailedEvent { + export type InputTuple = [txHash: BytesLike] + export type OutputTuple = [txHash: string] + export interface OutputObject { + txHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ContractCreationEvent { + export type InputTuple = [newContract: AddressLike] + export type OutputTuple = [newContract: string] + export interface OutputObject { + newContract: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Gnosis_safe extends BaseContract { + connect(runner?: ContractRunner | null): Gnosis_safe + waitForDeployment(): Promise + + interface: Gnosis_safeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + addOwnerWithThreshold: TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + + DOMAIN_SEPARATOR_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeMasterCopy: TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + + SENTINEL_MODULES: TypedContractMethod<[], [string], 'view'> + + SENTINEL_OWNERS: TypedContractMethod<[], [string], 'view'> + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + NAME: TypedContractMethod<[], [string], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + getModules: TypedContractMethod<[], [string[]], 'view'> + + SAFE_MSG_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + SAFE_TX_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + disableModule: TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + VERSION: TypedContractMethod<[], [string], 'view'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'nonpayable' + > + + requiredTxGas: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + isValidSignature: TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'nonpayable'> + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'addOwnerWithThreshold', + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'DOMAIN_SEPARATOR_TYPEHASH'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'isOwner'): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'execTransactionFromModule', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction(nameOrSignature: 'signedMessages'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction(nameOrSignature: 'enableModule'): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'changeMasterCopy', + ): TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'SENTINEL_MODULES'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SENTINEL_OWNERS'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction(nameOrSignature: 'SAFE_MSG_TYPEHASH'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SAFE_TX_TYPEHASH'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'disableModule', + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'swapOwner', + ): TypedContractMethod<[prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'removeOwner', + ): TypedContractMethod<[prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'setup', + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransaction', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'requiredTxGas', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + getFunction(nameOrSignature: 'approveHash'): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'signMessage'): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'isValidSignature', + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'encodeTransactionData', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'getTransactionHash', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + getEvent( + key: 'ExecutionFailed', + ): TypedContractEvent< + ExecutionFailedEvent.InputTuple, + ExecutionFailedEvent.OutputTuple, + ExecutionFailedEvent.OutputObject + > + getEvent( + key: 'AddedOwner', + ): TypedContractEvent + getEvent( + key: 'RemovedOwner', + ): TypedContractEvent + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'EnabledModule', + ): TypedContractEvent + getEvent( + key: 'DisabledModule', + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'ContractCreation', + ): TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + + filters: { + 'ExecutionFailed(bytes32)': TypedContractEvent< + ExecutionFailedEvent.InputTuple, + ExecutionFailedEvent.OutputTuple, + ExecutionFailedEvent.OutputObject + > + ExecutionFailed: TypedContractEvent< + ExecutionFailedEvent.InputTuple, + ExecutionFailedEvent.OutputTuple, + ExecutionFailedEvent.OutputObject + > + + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'ContractCreation(address)': TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + ContractCreation: TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory.ts new file mode 100644 index 000000000..91d628204 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory.ts @@ -0,0 +1,132 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Proxy_factoryInterface extends Interface { + getFunction( + nameOrSignature: 'createProxyWithNonce' | 'proxyCreationCode' | 'createProxy' | 'proxyRuntimeCode', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ProxyCreation'): EventFragment + + encodeFunctionData(functionFragment: 'createProxyWithNonce', values: [AddressLike, BytesLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'proxyCreationCode', values?: undefined): string + encodeFunctionData(functionFragment: 'createProxy', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'proxyRuntimeCode', values?: undefined): string + + decodeFunctionResult(functionFragment: 'createProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyCreationCode', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyRuntimeCode', data: BytesLike): Result +} + +export namespace ProxyCreationEvent { + export type InputTuple = [proxy: AddressLike] + export type OutputTuple = [proxy: string] + export interface OutputObject { + proxy: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Proxy_factory extends BaseContract { + connect(runner?: ContractRunner | null): Proxy_factory + waitForDeployment(): Promise + + interface: Proxy_factoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + createProxyWithNonce: TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + proxyCreationCode: TypedContractMethod<[], [string], 'view'> + + createProxy: TypedContractMethod<[masterCopy: AddressLike, data: BytesLike], [string], 'nonpayable'> + + proxyRuntimeCode: TypedContractMethod<[], [string], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'createProxyWithNonce', + ): TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction(nameOrSignature: 'proxyCreationCode'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'createProxy', + ): TypedContractMethod<[masterCopy: AddressLike, data: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'proxyRuntimeCode'): TypedContractMethod<[], [string], 'view'> + + getEvent( + key: 'ProxyCreation', + ): TypedContractEvent + + filters: { + 'ProxyCreation(address)': TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + ProxyCreation: TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/index.ts new file mode 100644 index 000000000..c76ff6f37 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.0.0/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Gnosis_safe } from './Gnosis_safe' +export type { Proxy_factory } from './Proxy_factory' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler.ts new file mode 100644 index 000000000..61acd399c --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler.ts @@ -0,0 +1,157 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Default_callback_handlerInterface extends Interface { + getFunction( + nameOrSignature: + | 'NAME' + | 'VERSION' + | 'onERC1155Received' + | 'onERC1155BatchReceived' + | 'onERC721Received' + | 'tokensReceived', + ): FunctionFragment + + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'tokensReceived', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike, BytesLike], + ): string + + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155BatchReceived', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC721Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'tokensReceived', data: BytesLike): Result +} + +export interface Default_callback_handler extends BaseContract { + connect(runner?: ContractRunner | null): Default_callback_handler + waitForDeployment(): Promise + + interface: Default_callback_handlerInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'nonpayable' + > + + onERC1155BatchReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'nonpayable' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'nonpayable' + > + + tokensReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'onERC1155Received', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'onERC1155BatchReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'onERC721Received', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'tokensReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'nonpayable' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Gnosis_safe.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Gnosis_safe.ts new file mode 100644 index 000000000..42c21fb65 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Gnosis_safe.ts @@ -0,0 +1,843 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Gnosis_safeInterface extends Interface { + getFunction( + nameOrSignature: + | 'NAME' + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approvedHashes' + | 'changeMasterCopy' + | 'changeThreshold' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getModules' + | 'getModulesPaginated' + | 'getOwners' + | 'getThreshold' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'setFallbackHandler' + | 'signedMessages' + | 'swapOwner' + | 'setup' + | 'execTransaction' + | 'requiredTxGas' + | 'approveHash' + | 'signMessage' + | 'isValidSignature' + | 'getMessageHash' + | 'encodeTransactionData' + | 'getTransactionHash', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedMasterCopy' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SignMsg', + ): EventFragment + + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'addOwnerWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeMasterCopy', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData(functionFragment: 'getModulesPaginated', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'removeOwner', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'swapOwner', values: [AddressLike, AddressLike, AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [AddressLike[], BigNumberish, AddressLike, BytesLike, AddressLike, AddressLike, BigNumberish, AddressLike], + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + ], + ): string + encodeFunctionData( + functionFragment: 'requiredTxGas', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeMasterCopy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModuleReturnData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'requiredTxGas', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [masterCopy: AddressLike] + export type OutputTuple = [masterCopy: string] + export interface OutputObject { + masterCopy: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Gnosis_safe extends BaseContract { + connect(runner?: ContractRunner | null): Gnosis_safe + waitForDeployment(): Promise + + interface: Gnosis_safeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeMasterCopy: TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + disableModule: TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getModules: TypedContractMethod<[], [string[]], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'nonpayable' + > + + requiredTxGas: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + isValidSignature: TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'nonpayable'> + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold', + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'changeMasterCopy', + ): TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'disableModule', + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'enableModule'): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'execTransactionFromModule', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated', + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'isOwner'): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner', + ): TypedContractMethod<[prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setFallbackHandler'): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'signedMessages'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'swapOwner', + ): TypedContractMethod<[prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup', + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransaction', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'requiredTxGas', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + getFunction(nameOrSignature: 'approveHash'): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'signMessage'): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'isValidSignature', + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'encodeTransactionData', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'getTransactionHash', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + getEvent( + key: 'AddedOwner', + ): TypedContractEvent + getEvent( + key: 'ApproveHash', + ): TypedContractEvent + getEvent( + key: 'ChangedMasterCopy', + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule', + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule', + ): TypedContractEvent + getEvent( + key: 'ExecutionFailure', + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure', + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess', + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess', + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner', + ): TypedContractEvent + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send.ts new file mode 100644 index 000000000..12feab673 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send.ts @@ -0,0 +1,70 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Multi_sendInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send + waitForDeployment(): Promise + + interface: Multi_sendInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'multiSend'): TypedContractMethod<[transactions: BytesLike], [void], 'nonpayable'> + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Proxy_factory.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Proxy_factory.ts new file mode 100644 index 000000000..06abaebb7 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/Proxy_factory.ts @@ -0,0 +1,174 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Proxy_factoryInterface extends Interface { + getFunction( + nameOrSignature: + | 'createProxy' + | 'proxyRuntimeCode' + | 'proxyCreationCode' + | 'createProxyWithNonce' + | 'createProxyWithCallback' + | 'calculateCreateProxyWithNonceAddress', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ProxyCreation'): EventFragment + + encodeFunctionData(functionFragment: 'createProxy', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'proxyRuntimeCode', values?: undefined): string + encodeFunctionData(functionFragment: 'proxyCreationCode', values?: undefined): string + encodeFunctionData(functionFragment: 'createProxyWithNonce', values: [AddressLike, BytesLike, BigNumberish]): string + encodeFunctionData( + functionFragment: 'createProxyWithCallback', + values: [AddressLike, BytesLike, BigNumberish, AddressLike], + ): string + encodeFunctionData( + functionFragment: 'calculateCreateProxyWithNonceAddress', + values: [AddressLike, BytesLike, BigNumberish], + ): string + + decodeFunctionResult(functionFragment: 'createProxy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyRuntimeCode', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyCreationCode', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithCallback', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'calculateCreateProxyWithNonceAddress', data: BytesLike): Result +} + +export namespace ProxyCreationEvent { + export type InputTuple = [proxy: AddressLike] + export type OutputTuple = [proxy: string] + export interface OutputObject { + proxy: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Proxy_factory extends BaseContract { + connect(runner?: ContractRunner | null): Proxy_factory + waitForDeployment(): Promise + + interface: Proxy_factoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + createProxy: TypedContractMethod<[masterCopy: AddressLike, data: BytesLike], [string], 'nonpayable'> + + proxyRuntimeCode: TypedContractMethod<[], [string], 'view'> + + proxyCreationCode: TypedContractMethod<[], [string], 'view'> + + createProxyWithNonce: TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + createProxyWithCallback: TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish, callback: AddressLike], + [string], + 'nonpayable' + > + + calculateCreateProxyWithNonceAddress: TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'createProxy', + ): TypedContractMethod<[masterCopy: AddressLike, data: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'proxyRuntimeCode'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'proxyCreationCode'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'createProxyWithNonce', + ): TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithCallback', + ): TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish, callback: AddressLike], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'calculateCreateProxyWithNonceAddress', + ): TypedContractMethod< + [_mastercopy: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + getEvent( + key: 'ProxyCreation', + ): TypedContractEvent + + filters: { + 'ProxyCreation(address)': TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + ProxyCreation: TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/index.ts new file mode 100644 index 000000000..fecd734c2 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.1.1/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Default_callback_handler } from './Default_callback_handler' +export type { Gnosis_safe } from './Gnosis_safe' +export type { Multi_send } from './Multi_send' +export type { Proxy_factory } from './Proxy_factory' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.2.0/Gnosis_safe.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.2.0/Gnosis_safe.ts new file mode 100644 index 000000000..8e06b365b --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.2.0/Gnosis_safe.ts @@ -0,0 +1,849 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Gnosis_safeInterface extends Interface { + getFunction( + nameOrSignature: + | 'NAME' + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approvedHashes' + | 'changeMasterCopy' + | 'changeThreshold' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getModules' + | 'getModulesPaginated' + | 'getOwners' + | 'getThreshold' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'setFallbackHandler' + | 'signedMessages' + | 'swapOwner' + | 'setup' + | 'execTransaction' + | 'requiredTxGas' + | 'approveHash' + | 'signMessage' + | 'isValidSignature' + | 'getMessageHash' + | 'encodeTransactionData' + | 'getTransactionHash', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedMasterCopy' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SignMsg', + ): EventFragment + + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'addOwnerWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeMasterCopy', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData(functionFragment: 'getModulesPaginated', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'removeOwner', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'swapOwner', values: [AddressLike, AddressLike, AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [AddressLike[], BigNumberish, AddressLike, BytesLike, AddressLike, AddressLike, BigNumberish, AddressLike], + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + ], + ): string + encodeFunctionData( + functionFragment: 'requiredTxGas', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeMasterCopy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModuleReturnData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isModuleEnabled', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'requiredTxGas', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [masterCopy: AddressLike] + export type OutputTuple = [masterCopy: string] + export interface OutputObject { + masterCopy: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Gnosis_safe extends BaseContract { + connect(runner?: ContractRunner | null): Gnosis_safe + waitForDeployment(): Promise + + interface: Gnosis_safeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeMasterCopy: TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + disableModule: TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getModules: TypedContractMethod<[], [string[]], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + + requiredTxGas: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + isValidSignature: TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'nonpayable'> + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold', + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'changeMasterCopy', + ): TypedContractMethod<[_masterCopy: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'disableModule', + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'enableModule'): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'execTransactionFromModule', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated', + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'isModuleEnabled'): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'isOwner'): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner', + ): TypedContractMethod<[prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setFallbackHandler'): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'signedMessages'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'swapOwner', + ): TypedContractMethod<[prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup', + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransaction', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'requiredTxGas', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + getFunction(nameOrSignature: 'approveHash'): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'signMessage'): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'isValidSignature', + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'encodeTransactionData', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'getTransactionHash', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + getEvent( + key: 'AddedOwner', + ): TypedContractEvent + getEvent( + key: 'ApproveHash', + ): TypedContractEvent + getEvent( + key: 'ChangedMasterCopy', + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule', + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule', + ): TypedContractEvent + getEvent( + key: 'ExecutionFailure', + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure', + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess', + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess', + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner', + ): TypedContractEvent + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.2.0/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.2.0/index.ts new file mode 100644 index 000000000..9e729a039 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.2.0/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Gnosis_safe } from './Gnosis_safe' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler.ts new file mode 100644 index 000000000..c3f560973 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler.ts @@ -0,0 +1,207 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Compatibility_fallback_handlerInterface extends Interface { + getFunction( + nameOrSignature: + | 'NAME' + | 'VERSION' + | 'getMessageHash' + | 'getMessageHashForSafe' + | 'getModules' + | 'isValidSignature(bytes32,bytes)' + | 'isValidSignature(bytes,bytes)' + | 'onERC1155BatchReceived' + | 'onERC1155Received' + | 'onERC721Received' + | 'simulate' + | 'supportsInterface' + | 'tokensReceived', + ): FunctionFragment + + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHashForSafe', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes32,bytes)', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes,bytes)', values: [BytesLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike], + ): string + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'tokensReceived', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike, BytesLike], + ): string + + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHashForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes32,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155BatchReceived', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC721Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'tokensReceived', data: BytesLike): Result +} + +export interface Compatibility_fallback_handler extends BaseContract { + connect(runner?: ContractRunner | null): Compatibility_fallback_handler + waitForDeployment(): Promise + + interface: Compatibility_fallback_handlerInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + getMessageHashForSafe: TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + + getModules: TypedContractMethod<[], [string[]], 'view'> + + 'isValidSignature(bytes32,bytes)': TypedContractMethod< + [_dataHash: BytesLike, _signature: BytesLike], + [string], + 'view' + > + + 'isValidSignature(bytes,bytes)': TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + + onERC1155BatchReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + + simulate: TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + tokensReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'getMessageHashForSafe', + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes32,bytes)', + ): TypedContractMethod<[_dataHash: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes,bytes)', + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'onERC1155BatchReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC1155Received', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC721Received', + ): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'simulate', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'tokensReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call.ts new file mode 100644 index 000000000..2c8de50c9 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call.ts @@ -0,0 +1,120 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Create_callInterface extends Interface { + getFunction(nameOrSignature: 'performCreate' | 'performCreate2'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ContractCreation'): EventFragment + + encodeFunctionData(functionFragment: 'performCreate', values: [BigNumberish, BytesLike]): string + encodeFunctionData(functionFragment: 'performCreate2', values: [BigNumberish, BytesLike, BytesLike]): string + + decodeFunctionResult(functionFragment: 'performCreate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'performCreate2', data: BytesLike): Result +} + +export namespace ContractCreationEvent { + export type InputTuple = [newContract: AddressLike] + export type OutputTuple = [newContract: string] + export interface OutputObject { + newContract: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Create_call extends BaseContract { + connect(runner?: ContractRunner | null): Create_call + waitForDeployment(): Promise + + interface: Create_callInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + performCreate: TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike], [string], 'nonpayable'> + + performCreate2: TypedContractMethod< + [value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], + [string], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'performCreate', + ): TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'performCreate2', + ): TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], [string], 'nonpayable'> + + getEvent( + key: 'ContractCreation', + ): TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + + filters: { + 'ContractCreation(address)': TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + ContractCreation: TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe.ts new file mode 100644 index 000000000..2e9a0e52a --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe.ts @@ -0,0 +1,962 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Gnosis_safeInterface extends Interface { + getFunction( + nameOrSignature: + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approveHash' + | 'approvedHashes' + | 'changeThreshold' + | 'checkNSignatures' + | 'checkSignatures' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'encodeTransactionData' + | 'execTransaction' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getChainId' + | 'getModulesPaginated' + | 'getOwners' + | 'getStorageAt' + | 'getThreshold' + | 'getTransactionHash' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'requiredTxGas' + | 'setFallbackHandler' + | 'setGuard' + | 'setup' + | 'signedMessages' + | 'simulateAndRevert' + | 'swapOwner', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedFallbackHandler' + | 'ChangedGuard' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SafeReceived' + | 'SafeSetup' + | 'SignMsg', + ): EventFragment + + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'addOwnerWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData( + functionFragment: 'checkNSignatures', + values: [BytesLike, BytesLike, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'checkSignatures', values: [BytesLike, BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData(functionFragment: 'getModulesPaginated', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getStorageAt', values: [BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'removeOwner', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData( + functionFragment: 'requiredTxGas', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setGuard', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [AddressLike[], BigNumberish, AddressLike, BytesLike, AddressLike, AddressLike, BigNumberish, AddressLike], + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'simulateAndRevert', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'swapOwner', values: [AddressLike, AddressLike, AddressLike]): string + + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModuleReturnData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getStorageAt', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isModuleEnabled', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'requiredTxGas', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setGuard', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulateAndRevert', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedFallbackHandlerEvent { + export type InputTuple = [handler: AddressLike] + export type OutputTuple = [handler: string] + export interface OutputObject { + handler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedGuardEvent { + export type InputTuple = [guard: AddressLike] + export type OutputTuple = [guard: string] + export interface OutputObject { + guard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeReceivedEvent { + export type InputTuple = [sender: AddressLike, value: BigNumberish] + export type OutputTuple = [sender: string, value: bigint] + export interface OutputObject { + sender: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeSetupEvent { + export type InputTuple = [ + initiator: AddressLike, + owners: AddressLike[], + threshold: BigNumberish, + initializer: AddressLike, + fallbackHandler: AddressLike, + ] + export type OutputTuple = [ + initiator: string, + owners: string[], + threshold: bigint, + initializer: string, + fallbackHandler: string, + ] + export interface OutputObject { + initiator: string + owners: string[] + threshold: bigint + initializer: string + fallbackHandler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Gnosis_safe extends BaseContract { + connect(runner?: ContractRunner | null): Gnosis_safe + waitForDeployment(): Promise + + interface: Gnosis_safeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + checkNSignatures: TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + checkSignatures: TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + + disableModule: TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getStorageAt: TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + requiredTxGas: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + setGuard: TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + simulateAndRevert: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold', + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'approveHash'): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkNSignatures', + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkSignatures', + ): TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + getFunction( + nameOrSignature: 'disableModule', + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'enableModule'): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'encodeTransactionData', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'execTransaction', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'execTransactionFromModule', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated', + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getStorageAt', + ): TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getTransactionHash', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction(nameOrSignature: 'isModuleEnabled'): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'isOwner'): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner', + ): TypedContractMethod<[prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'requiredTxGas', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + getFunction(nameOrSignature: 'setFallbackHandler'): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setGuard'): TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup', + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'signedMessages'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'simulateAndRevert', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'swapOwner', + ): TypedContractMethod<[prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], [void], 'nonpayable'> + + getEvent( + key: 'AddedOwner', + ): TypedContractEvent + getEvent( + key: 'ApproveHash', + ): TypedContractEvent + getEvent( + key: 'ChangedFallbackHandler', + ): TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + getEvent( + key: 'ChangedGuard', + ): TypedContractEvent + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule', + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule', + ): TypedContractEvent + getEvent( + key: 'ExecutionFailure', + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure', + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess', + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess', + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner', + ): TypedContractEvent + getEvent( + key: 'SafeReceived', + ): TypedContractEvent + getEvent( + key: 'SafeSetup', + ): TypedContractEvent + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedFallbackHandler(address)': TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + ChangedFallbackHandler: TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + + 'ChangedGuard(address)': TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + ChangedGuard: TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SafeReceived(address,uint256)': TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + SafeReceived: TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + + 'SafeSetup(address,address[],uint256,address,address)': TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + SafeSetup: TypedContractEvent + + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2.ts new file mode 100644 index 000000000..f4c96ca01 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2.ts @@ -0,0 +1,1068 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Gnosis_safe_l2Interface extends Interface { + getFunction( + nameOrSignature: + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approveHash' + | 'approvedHashes' + | 'changeThreshold' + | 'checkNSignatures' + | 'checkSignatures' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'encodeTransactionData' + | 'execTransaction' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getChainId' + | 'getModulesPaginated' + | 'getOwners' + | 'getStorageAt' + | 'getThreshold' + | 'getTransactionHash' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'requiredTxGas' + | 'setFallbackHandler' + | 'setGuard' + | 'setup' + | 'signedMessages' + | 'simulateAndRevert' + | 'swapOwner', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedFallbackHandler' + | 'ChangedGuard' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SafeModuleTransaction' + | 'SafeMultiSigTransaction' + | 'SafeReceived' + | 'SafeSetup' + | 'SignMsg', + ): EventFragment + + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'addOwnerWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData( + functionFragment: 'checkNSignatures', + values: [BytesLike, BytesLike, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'checkSignatures', values: [BytesLike, BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData(functionFragment: 'getModulesPaginated', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getStorageAt', values: [BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'removeOwner', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData( + functionFragment: 'requiredTxGas', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setGuard', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [AddressLike[], BigNumberish, AddressLike, BytesLike, AddressLike, AddressLike, BigNumberish, AddressLike], + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'simulateAndRevert', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'swapOwner', values: [AddressLike, AddressLike, AddressLike]): string + + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModuleReturnData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getStorageAt', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isModuleEnabled', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'requiredTxGas', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setGuard', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulateAndRevert', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedFallbackHandlerEvent { + export type InputTuple = [handler: AddressLike] + export type OutputTuple = [handler: string] + export interface OutputObject { + handler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedGuardEvent { + export type InputTuple = [guard: AddressLike] + export type OutputTuple = [guard: string] + export interface OutputObject { + guard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeModuleTransactionEvent { + export type InputTuple = [ + module: AddressLike, + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + ] + export type OutputTuple = [module: string, to: string, value: bigint, data: string, operation: bigint] + export interface OutputObject { + module: string + to: string + value: bigint + data: string + operation: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeMultiSigTransactionEvent { + export type InputTuple = [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + additionalInfo: BytesLike, + ] + export type OutputTuple = [ + to: string, + value: bigint, + data: string, + operation: bigint, + safeTxGas: bigint, + baseGas: bigint, + gasPrice: bigint, + gasToken: string, + refundReceiver: string, + signatures: string, + additionalInfo: string, + ] + export interface OutputObject { + to: string + value: bigint + data: string + operation: bigint + safeTxGas: bigint + baseGas: bigint + gasPrice: bigint + gasToken: string + refundReceiver: string + signatures: string + additionalInfo: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeReceivedEvent { + export type InputTuple = [sender: AddressLike, value: BigNumberish] + export type OutputTuple = [sender: string, value: bigint] + export interface OutputObject { + sender: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeSetupEvent { + export type InputTuple = [ + initiator: AddressLike, + owners: AddressLike[], + threshold: BigNumberish, + initializer: AddressLike, + fallbackHandler: AddressLike, + ] + export type OutputTuple = [ + initiator: string, + owners: string[], + threshold: bigint, + initializer: string, + fallbackHandler: string, + ] + export interface OutputObject { + initiator: string + owners: string[] + threshold: bigint + initializer: string + fallbackHandler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Gnosis_safe_l2 extends BaseContract { + connect(runner?: ContractRunner | null): Gnosis_safe_l2 + waitForDeployment(): Promise + + interface: Gnosis_safe_l2Interface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + checkNSignatures: TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + checkSignatures: TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + + disableModule: TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getStorageAt: TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + requiredTxGas: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + setGuard: TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + simulateAndRevert: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold', + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'approveHash'): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkNSignatures', + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkSignatures', + ): TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + getFunction( + nameOrSignature: 'disableModule', + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'enableModule'): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'encodeTransactionData', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'execTransaction', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'execTransactionFromModule', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated', + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getStorageAt', + ): TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getTransactionHash', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction(nameOrSignature: 'isModuleEnabled'): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'isOwner'): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner', + ): TypedContractMethod<[prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'requiredTxGas', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [bigint], + 'nonpayable' + > + getFunction(nameOrSignature: 'setFallbackHandler'): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setGuard'): TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup', + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'signedMessages'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'simulateAndRevert', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'swapOwner', + ): TypedContractMethod<[prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], [void], 'nonpayable'> + + getEvent( + key: 'AddedOwner', + ): TypedContractEvent + getEvent( + key: 'ApproveHash', + ): TypedContractEvent + getEvent( + key: 'ChangedFallbackHandler', + ): TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + getEvent( + key: 'ChangedGuard', + ): TypedContractEvent + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule', + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule', + ): TypedContractEvent + getEvent( + key: 'ExecutionFailure', + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure', + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess', + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess', + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner', + ): TypedContractEvent + getEvent( + key: 'SafeModuleTransaction', + ): TypedContractEvent< + SafeModuleTransactionEvent.InputTuple, + SafeModuleTransactionEvent.OutputTuple, + SafeModuleTransactionEvent.OutputObject + > + getEvent( + key: 'SafeMultiSigTransaction', + ): TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + getEvent( + key: 'SafeReceived', + ): TypedContractEvent + getEvent( + key: 'SafeSetup', + ): TypedContractEvent + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedFallbackHandler(address)': TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + ChangedFallbackHandler: TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + + 'ChangedGuard(address)': TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + ChangedGuard: TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SafeModuleTransaction(address,address,uint256,bytes,uint8)': TypedContractEvent< + SafeModuleTransactionEvent.InputTuple, + SafeModuleTransactionEvent.OutputTuple, + SafeModuleTransactionEvent.OutputObject + > + SafeModuleTransaction: TypedContractEvent< + SafeModuleTransactionEvent.InputTuple, + SafeModuleTransactionEvent.OutputTuple, + SafeModuleTransactionEvent.OutputObject + > + + 'SafeMultiSigTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,bytes)': TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + SafeMultiSigTransaction: TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + + 'SafeReceived(address,uint256)': TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + SafeReceived: TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + + 'SafeSetup(address,address[],uint256,address,address)': TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + SafeSetup: TypedContractEvent + + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send.ts new file mode 100644 index 000000000..576f4e194 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send.ts @@ -0,0 +1,70 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Multi_sendInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send + waitForDeployment(): Promise + + interface: Multi_sendInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'multiSend'): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only.ts new file mode 100644 index 000000000..86ba32892 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only.ts @@ -0,0 +1,70 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Multi_send_call_onlyInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send_call_only extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send_call_only + waitForDeployment(): Promise + + interface: Multi_send_call_onlyInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'multiSend'): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Proxy_factory.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Proxy_factory.ts new file mode 100644 index 000000000..32b26c0d9 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Proxy_factory.ts @@ -0,0 +1,175 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Proxy_factoryInterface extends Interface { + getFunction( + nameOrSignature: + | 'calculateCreateProxyWithNonceAddress' + | 'createProxy' + | 'createProxyWithCallback' + | 'createProxyWithNonce' + | 'proxyCreationCode' + | 'proxyRuntimeCode', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ProxyCreation'): EventFragment + + encodeFunctionData( + functionFragment: 'calculateCreateProxyWithNonceAddress', + values: [AddressLike, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'createProxy', values: [AddressLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'createProxyWithCallback', + values: [AddressLike, BytesLike, BigNumberish, AddressLike], + ): string + encodeFunctionData(functionFragment: 'createProxyWithNonce', values: [AddressLike, BytesLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'proxyCreationCode', values?: undefined): string + encodeFunctionData(functionFragment: 'proxyRuntimeCode', values?: undefined): string + + decodeFunctionResult(functionFragment: 'calculateCreateProxyWithNonceAddress', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxy', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithCallback', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyCreationCode', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyRuntimeCode', data: BytesLike): Result +} + +export namespace ProxyCreationEvent { + export type InputTuple = [proxy: AddressLike, singleton: AddressLike] + export type OutputTuple = [proxy: string, singleton: string] + export interface OutputObject { + proxy: string + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Proxy_factory extends BaseContract { + connect(runner?: ContractRunner | null): Proxy_factory + waitForDeployment(): Promise + + interface: Proxy_factoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + calculateCreateProxyWithNonceAddress: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + createProxy: TypedContractMethod<[singleton: AddressLike, data: BytesLike], [string], 'nonpayable'> + + createProxyWithCallback: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish, callback: AddressLike], + [string], + 'nonpayable' + > + + createProxyWithNonce: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + proxyCreationCode: TypedContractMethod<[], [string], 'view'> + + proxyRuntimeCode: TypedContractMethod<[], [string], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'calculateCreateProxyWithNonceAddress', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxy', + ): TypedContractMethod<[singleton: AddressLike, data: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'createProxyWithCallback', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish, callback: AddressLike], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithNonce', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction(nameOrSignature: 'proxyCreationCode'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'proxyRuntimeCode'): TypedContractMethod<[], [string], 'view'> + + getEvent( + key: 'ProxyCreation', + ): TypedContractEvent + + filters: { + 'ProxyCreation(address,address)': TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + ProxyCreation: TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib.ts new file mode 100644 index 000000000..112e6d713 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib.ts @@ -0,0 +1,98 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Sign_message_libInterface extends Interface { + getFunction(nameOrSignature: 'getMessageHash' | 'signMessage'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'SignMsg'): EventFragment + + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Sign_message_lib extends BaseContract { + connect(runner?: ContractRunner | null): Sign_message_lib + waitForDeployment(): Promise + + interface: Sign_message_libInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'signMessage'): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor.ts new file mode 100644 index 000000000..dab8e1a95 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor.ts @@ -0,0 +1,92 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Simulate_tx_accessorInterface extends Interface { + getFunction(nameOrSignature: 'simulate'): FunctionFragment + + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BigNumberish, BytesLike, BigNumberish]): string + + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result +} + +export interface Simulate_tx_accessor extends BaseContract { + connect(runner?: ContractRunner | null): Simulate_tx_accessor + waitForDeployment(): Promise + + interface: Simulate_tx_accessorInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + simulate: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + }, + ], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'simulate'): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + }, + ], + 'nonpayable' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/index.ts new file mode 100644 index 000000000..da1caa375 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.3.0/index.ts @@ -0,0 +1,12 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Compatibility_fallback_handler } from './Compatibility_fallback_handler' +export type { Create_call } from './Create_call' +export type { Gnosis_safe } from './Gnosis_safe' +export type { Gnosis_safe_l2 } from './Gnosis_safe_l2' +export type { Multi_send } from './Multi_send' +export type { Multi_send_call_only } from './Multi_send_call_only' +export type { Proxy_factory } from './Proxy_factory' +export type { Sign_message_lib } from './Sign_message_lib' +export type { Simulate_tx_accessor } from './Simulate_tx_accessor' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Compatibility_fallback_handler.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Compatibility_fallback_handler.ts new file mode 100644 index 000000000..092b2436b --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Compatibility_fallback_handler.ts @@ -0,0 +1,203 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Compatibility_fallback_handlerInterface extends Interface { + getFunction( + nameOrSignature: + | 'encodeMessageDataForSafe' + | 'getMessageHash' + | 'getMessageHashForSafe' + | 'getModules' + | 'isValidSignature(bytes32,bytes)' + | 'isValidSignature(bytes,bytes)' + | 'onERC1155BatchReceived' + | 'onERC1155Received' + | 'onERC721Received' + | 'simulate' + | 'supportsInterface' + | 'tokensReceived', + ): FunctionFragment + + encodeFunctionData(functionFragment: 'encodeMessageDataForSafe', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHashForSafe', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes32,bytes)', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes,bytes)', values: [BytesLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike], + ): string + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'tokensReceived', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike, BytesLike], + ): string + + decodeFunctionResult(functionFragment: 'encodeMessageDataForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHashForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes32,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155BatchReceived', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC721Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'tokensReceived', data: BytesLike): Result +} + +export interface Compatibility_fallback_handler extends BaseContract { + connect(runner?: ContractRunner | null): Compatibility_fallback_handler + waitForDeployment(): Promise + + interface: Compatibility_fallback_handlerInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + encodeMessageDataForSafe: TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + getMessageHashForSafe: TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + + getModules: TypedContractMethod<[], [string[]], 'view'> + + 'isValidSignature(bytes32,bytes)': TypedContractMethod< + [_dataHash: BytesLike, _signature: BytesLike], + [string], + 'view' + > + + 'isValidSignature(bytes,bytes)': TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + + onERC1155BatchReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + + simulate: TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + tokensReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'encodeMessageDataForSafe', + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'getMessageHashForSafe', + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes32,bytes)', + ): TypedContractMethod<[_dataHash: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes,bytes)', + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'onERC1155BatchReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC1155Received', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC721Received', + ): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'simulate', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'tokensReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Create_call.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Create_call.ts new file mode 100644 index 000000000..2c8de50c9 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Create_call.ts @@ -0,0 +1,120 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Create_callInterface extends Interface { + getFunction(nameOrSignature: 'performCreate' | 'performCreate2'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ContractCreation'): EventFragment + + encodeFunctionData(functionFragment: 'performCreate', values: [BigNumberish, BytesLike]): string + encodeFunctionData(functionFragment: 'performCreate2', values: [BigNumberish, BytesLike, BytesLike]): string + + decodeFunctionResult(functionFragment: 'performCreate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'performCreate2', data: BytesLike): Result +} + +export namespace ContractCreationEvent { + export type InputTuple = [newContract: AddressLike] + export type OutputTuple = [newContract: string] + export interface OutputObject { + newContract: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Create_call extends BaseContract { + connect(runner?: ContractRunner | null): Create_call + waitForDeployment(): Promise + + interface: Create_callInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + performCreate: TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike], [string], 'nonpayable'> + + performCreate2: TypedContractMethod< + [value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], + [string], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'performCreate', + ): TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'performCreate2', + ): TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], [string], 'nonpayable'> + + getEvent( + key: 'ContractCreation', + ): TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + + filters: { + 'ContractCreation(address)': TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + ContractCreation: TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send.ts new file mode 100644 index 000000000..576f4e194 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send.ts @@ -0,0 +1,70 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Multi_sendInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send + waitForDeployment(): Promise + + interface: Multi_sendInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'multiSend'): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send_call_only.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send_call_only.ts new file mode 100644 index 000000000..86ba32892 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send_call_only.ts @@ -0,0 +1,70 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Multi_send_call_onlyInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send_call_only extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send_call_only + waitForDeployment(): Promise + + interface: Multi_send_call_onlyInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'multiSend'): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe.ts new file mode 100644 index 000000000..4a58e1f34 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe.ts @@ -0,0 +1,943 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface SafeInterface extends Interface { + getFunction( + nameOrSignature: + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approveHash' + | 'approvedHashes' + | 'changeThreshold' + | 'checkNSignatures' + | 'checkSignatures' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'encodeTransactionData' + | 'execTransaction' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getChainId' + | 'getModulesPaginated' + | 'getOwners' + | 'getStorageAt' + | 'getThreshold' + | 'getTransactionHash' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'setFallbackHandler' + | 'setGuard' + | 'setup' + | 'signedMessages' + | 'simulateAndRevert' + | 'swapOwner', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedFallbackHandler' + | 'ChangedGuard' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SafeReceived' + | 'SafeSetup' + | 'SignMsg', + ): EventFragment + + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'addOwnerWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData( + functionFragment: 'checkNSignatures', + values: [BytesLike, BytesLike, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'checkSignatures', values: [BytesLike, BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData(functionFragment: 'getModulesPaginated', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getStorageAt', values: [BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'removeOwner', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setGuard', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [AddressLike[], BigNumberish, AddressLike, BytesLike, AddressLike, AddressLike, BigNumberish, AddressLike], + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'simulateAndRevert', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'swapOwner', values: [AddressLike, AddressLike, AddressLike]): string + + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModuleReturnData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getStorageAt', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isModuleEnabled', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setGuard', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulateAndRevert', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedFallbackHandlerEvent { + export type InputTuple = [handler: AddressLike] + export type OutputTuple = [handler: string] + export interface OutputObject { + handler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedGuardEvent { + export type InputTuple = [guard: AddressLike] + export type OutputTuple = [guard: string] + export interface OutputObject { + guard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeReceivedEvent { + export type InputTuple = [sender: AddressLike, value: BigNumberish] + export type OutputTuple = [sender: string, value: bigint] + export interface OutputObject { + sender: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeSetupEvent { + export type InputTuple = [ + initiator: AddressLike, + owners: AddressLike[], + threshold: BigNumberish, + initializer: AddressLike, + fallbackHandler: AddressLike, + ] + export type OutputTuple = [ + initiator: string, + owners: string[], + threshold: bigint, + initializer: string, + fallbackHandler: string, + ] + export interface OutputObject { + initiator: string + owners: string[] + threshold: bigint + initializer: string + fallbackHandler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe extends BaseContract { + connect(runner?: ContractRunner | null): Safe + waitForDeployment(): Promise + + interface: SafeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + checkNSignatures: TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + checkSignatures: TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + + disableModule: TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getStorageAt: TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + setGuard: TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + simulateAndRevert: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold', + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'approveHash'): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkNSignatures', + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkSignatures', + ): TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + getFunction( + nameOrSignature: 'disableModule', + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'enableModule'): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'encodeTransactionData', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'execTransaction', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'execTransactionFromModule', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated', + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getStorageAt', + ): TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getTransactionHash', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction(nameOrSignature: 'isModuleEnabled'): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'isOwner'): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner', + ): TypedContractMethod<[prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setFallbackHandler'): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setGuard'): TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup', + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'signedMessages'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'simulateAndRevert', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'swapOwner', + ): TypedContractMethod<[prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], [void], 'nonpayable'> + + getEvent( + key: 'AddedOwner', + ): TypedContractEvent + getEvent( + key: 'ApproveHash', + ): TypedContractEvent + getEvent( + key: 'ChangedFallbackHandler', + ): TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + getEvent( + key: 'ChangedGuard', + ): TypedContractEvent + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule', + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule', + ): TypedContractEvent + getEvent( + key: 'ExecutionFailure', + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure', + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess', + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess', + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner', + ): TypedContractEvent + getEvent( + key: 'SafeReceived', + ): TypedContractEvent + getEvent( + key: 'SafeSetup', + ): TypedContractEvent + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedFallbackHandler(address)': TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + ChangedFallbackHandler: TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + + 'ChangedGuard(address)': TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + ChangedGuard: TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SafeReceived(address,uint256)': TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + SafeReceived: TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + + 'SafeSetup(address,address[],uint256,address,address)': TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + SafeSetup: TypedContractEvent + + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2.ts new file mode 100644 index 000000000..82c3b0fe0 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2.ts @@ -0,0 +1,1049 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Safe_l2Interface extends Interface { + getFunction( + nameOrSignature: + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approveHash' + | 'approvedHashes' + | 'changeThreshold' + | 'checkNSignatures' + | 'checkSignatures' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'encodeTransactionData' + | 'execTransaction' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getChainId' + | 'getModulesPaginated' + | 'getOwners' + | 'getStorageAt' + | 'getThreshold' + | 'getTransactionHash' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'setFallbackHandler' + | 'setGuard' + | 'setup' + | 'signedMessages' + | 'simulateAndRevert' + | 'swapOwner', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedFallbackHandler' + | 'ChangedGuard' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SafeModuleTransaction' + | 'SafeMultiSigTransaction' + | 'SafeReceived' + | 'SafeSetup' + | 'SignMsg', + ): EventFragment + + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'addOwnerWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData( + functionFragment: 'checkNSignatures', + values: [BytesLike, BytesLike, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'checkSignatures', values: [BytesLike, BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData(functionFragment: 'getModulesPaginated', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getStorageAt', values: [BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'removeOwner', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setGuard', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [AddressLike[], BigNumberish, AddressLike, BytesLike, AddressLike, AddressLike, BigNumberish, AddressLike], + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'simulateAndRevert', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'swapOwner', values: [AddressLike, AddressLike, AddressLike]): string + + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'disableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'enableModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransaction', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModule', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'execTransactionFromModuleReturnData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModulesPaginated', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOwners', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getStorageAt', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTransactionHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isModuleEnabled', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeOwner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setGuard', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulateAndRevert', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedFallbackHandlerEvent { + export type InputTuple = [handler: AddressLike] + export type OutputTuple = [handler: string] + export interface OutputObject { + handler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedGuardEvent { + export type InputTuple = [guard: AddressLike] + export type OutputTuple = [guard: string] + export interface OutputObject { + guard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeModuleTransactionEvent { + export type InputTuple = [ + module: AddressLike, + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + ] + export type OutputTuple = [module: string, to: string, value: bigint, data: string, operation: bigint] + export interface OutputObject { + module: string + to: string + value: bigint + data: string + operation: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeMultiSigTransactionEvent { + export type InputTuple = [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + additionalInfo: BytesLike, + ] + export type OutputTuple = [ + to: string, + value: bigint, + data: string, + operation: bigint, + safeTxGas: bigint, + baseGas: bigint, + gasPrice: bigint, + gasToken: string, + refundReceiver: string, + signatures: string, + additionalInfo: string, + ] + export interface OutputObject { + to: string + value: bigint + data: string + operation: bigint + safeTxGas: bigint + baseGas: bigint + gasPrice: bigint + gasToken: string + refundReceiver: string + signatures: string + additionalInfo: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeReceivedEvent { + export type InputTuple = [sender: AddressLike, value: BigNumberish] + export type OutputTuple = [sender: string, value: bigint] + export interface OutputObject { + sender: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeSetupEvent { + export type InputTuple = [ + initiator: AddressLike, + owners: AddressLike[], + threshold: BigNumberish, + initializer: AddressLike, + fallbackHandler: AddressLike, + ] + export type OutputTuple = [ + initiator: string, + owners: string[], + threshold: bigint, + initializer: string, + fallbackHandler: string, + ] + export interface OutputObject { + initiator: string + owners: string[] + threshold: bigint + initializer: string + fallbackHandler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_l2 extends BaseContract { + connect(runner?: ContractRunner | null): Safe_l2 + waitForDeployment(): Promise + + interface: Safe_l2Interface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + checkNSignatures: TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + checkSignatures: TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + + disableModule: TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getStorageAt: TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + setGuard: TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + simulateAndRevert: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold', + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'approveHash'): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkNSignatures', + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkSignatures', + ): TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + getFunction( + nameOrSignature: 'disableModule', + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'enableModule'): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'encodeTransactionData', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'execTransaction', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'execTransactionFromModule', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getModulesPaginated', + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getStorageAt', + ): TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getTransactionHash', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction(nameOrSignature: 'isModuleEnabled'): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'isOwner'): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner', + ): TypedContractMethod<[prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setFallbackHandler'): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setGuard'): TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup', + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'signedMessages'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'simulateAndRevert', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'swapOwner', + ): TypedContractMethod<[prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], [void], 'nonpayable'> + + getEvent( + key: 'AddedOwner', + ): TypedContractEvent + getEvent( + key: 'ApproveHash', + ): TypedContractEvent + getEvent( + key: 'ChangedFallbackHandler', + ): TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + getEvent( + key: 'ChangedGuard', + ): TypedContractEvent + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule', + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule', + ): TypedContractEvent + getEvent( + key: 'ExecutionFailure', + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure', + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess', + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess', + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner', + ): TypedContractEvent + getEvent( + key: 'SafeModuleTransaction', + ): TypedContractEvent< + SafeModuleTransactionEvent.InputTuple, + SafeModuleTransactionEvent.OutputTuple, + SafeModuleTransactionEvent.OutputObject + > + getEvent( + key: 'SafeMultiSigTransaction', + ): TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + getEvent( + key: 'SafeReceived', + ): TypedContractEvent + getEvent( + key: 'SafeSetup', + ): TypedContractEvent + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedFallbackHandler(address)': TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + ChangedFallbackHandler: TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + + 'ChangedGuard(address)': TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + ChangedGuard: TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SafeModuleTransaction(address,address,uint256,bytes,uint8)': TypedContractEvent< + SafeModuleTransactionEvent.InputTuple, + SafeModuleTransactionEvent.OutputTuple, + SafeModuleTransactionEvent.OutputObject + > + SafeModuleTransaction: TypedContractEvent< + SafeModuleTransactionEvent.InputTuple, + SafeModuleTransactionEvent.OutputTuple, + SafeModuleTransactionEvent.OutputObject + > + + 'SafeMultiSigTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,bytes)': TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + SafeMultiSigTransaction: TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + + 'SafeReceived(address,uint256)': TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + SafeReceived: TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + + 'SafeSetup(address,address[],uint256,address,address)': TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + SafeSetup: TypedContractEvent + + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration.ts new file mode 100644 index 000000000..03afa52fc --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration.ts @@ -0,0 +1,151 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Safe_migrationInterface extends Interface { + getFunction( + nameOrSignature: + | 'MIGRATION_SINGLETON' + | 'SAFE_FALLBACK_HANDLER' + | 'SAFE_L2_SINGLETON' + | 'SAFE_SINGLETON' + | 'migrateL2Singleton' + | 'migrateL2WithFallbackHandler' + | 'migrateSingleton' + | 'migrateWithFallbackHandler', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ChangedMasterCopy'): EventFragment + + encodeFunctionData(functionFragment: 'MIGRATION_SINGLETON', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_FALLBACK_HANDLER', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_L2_SINGLETON', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_SINGLETON', values?: undefined): string + encodeFunctionData(functionFragment: 'migrateL2Singleton', values?: undefined): string + encodeFunctionData(functionFragment: 'migrateL2WithFallbackHandler', values?: undefined): string + encodeFunctionData(functionFragment: 'migrateSingleton', values?: undefined): string + encodeFunctionData(functionFragment: 'migrateWithFallbackHandler', values?: undefined): string + + decodeFunctionResult(functionFragment: 'MIGRATION_SINGLETON', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_FALLBACK_HANDLER', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_L2_SINGLETON', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_SINGLETON', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateL2Singleton', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateL2WithFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateSingleton', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateWithFallbackHandler', data: BytesLike): Result +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [singleton: AddressLike] + export type OutputTuple = [singleton: string] + export interface OutputObject { + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_migration extends BaseContract { + connect(runner?: ContractRunner | null): Safe_migration + waitForDeployment(): Promise + + interface: Safe_migrationInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + MIGRATION_SINGLETON: TypedContractMethod<[], [string], 'view'> + + SAFE_FALLBACK_HANDLER: TypedContractMethod<[], [string], 'view'> + + SAFE_L2_SINGLETON: TypedContractMethod<[], [string], 'view'> + + SAFE_SINGLETON: TypedContractMethod<[], [string], 'view'> + + migrateL2Singleton: TypedContractMethod<[], [void], 'nonpayable'> + + migrateL2WithFallbackHandler: TypedContractMethod<[], [void], 'nonpayable'> + + migrateSingleton: TypedContractMethod<[], [void], 'nonpayable'> + + migrateWithFallbackHandler: TypedContractMethod<[], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'MIGRATION_SINGLETON'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SAFE_FALLBACK_HANDLER'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SAFE_L2_SINGLETON'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SAFE_SINGLETON'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'migrateL2Singleton'): TypedContractMethod<[], [void], 'nonpayable'> + getFunction(nameOrSignature: 'migrateL2WithFallbackHandler'): TypedContractMethod<[], [void], 'nonpayable'> + getFunction(nameOrSignature: 'migrateSingleton'): TypedContractMethod<[], [void], 'nonpayable'> + getFunction(nameOrSignature: 'migrateWithFallbackHandler'): TypedContractMethod<[], [void], 'nonpayable'> + + getEvent( + key: 'ChangedMasterCopy', + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + filters: { + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory.ts new file mode 100644 index 000000000..c7c57b30c --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory.ts @@ -0,0 +1,167 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Safe_proxy_factoryInterface extends Interface { + getFunction( + nameOrSignature: + | 'createChainSpecificProxyWithNonce' + | 'createProxyWithCallback' + | 'createProxyWithNonce' + | 'getChainId' + | 'proxyCreationCode', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ProxyCreation'): EventFragment + + encodeFunctionData( + functionFragment: 'createChainSpecificProxyWithNonce', + values: [AddressLike, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'createProxyWithCallback', + values: [AddressLike, BytesLike, BigNumberish, AddressLike], + ): string + encodeFunctionData(functionFragment: 'createProxyWithNonce', values: [AddressLike, BytesLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData(functionFragment: 'proxyCreationCode', values?: undefined): string + + decodeFunctionResult(functionFragment: 'createChainSpecificProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithCallback', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyCreationCode', data: BytesLike): Result +} + +export namespace ProxyCreationEvent { + export type InputTuple = [proxy: AddressLike, singleton: AddressLike] + export type OutputTuple = [proxy: string, singleton: string] + export interface OutputObject { + proxy: string + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_proxy_factory extends BaseContract { + connect(runner?: ContractRunner | null): Safe_proxy_factory + waitForDeployment(): Promise + + interface: Safe_proxy_factoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + createChainSpecificProxyWithNonce: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + createProxyWithCallback: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish, callback: AddressLike], + [string], + 'nonpayable' + > + + createProxyWithNonce: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + proxyCreationCode: TypedContractMethod<[], [string], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'createChainSpecificProxyWithNonce', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithCallback', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish, callback: AddressLike], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithNonce', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'proxyCreationCode'): TypedContractMethod<[], [string], 'view'> + + getEvent( + key: 'ProxyCreation', + ): TypedContractEvent + + filters: { + 'ProxyCreation(address,address)': TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + ProxyCreation: TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration.ts new file mode 100644 index 000000000..d1d64d669 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration.ts @@ -0,0 +1,221 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Safe_to_l2_migrationInterface extends Interface { + getFunction(nameOrSignature: 'MIGRATION_SINGLETON' | 'migrateFromV111' | 'migrateToL2'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ChangedMasterCopy' | 'SafeMultiSigTransaction' | 'SafeSetup'): EventFragment + + encodeFunctionData(functionFragment: 'MIGRATION_SINGLETON', values?: undefined): string + encodeFunctionData(functionFragment: 'migrateFromV111', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'migrateToL2', values: [AddressLike]): string + + decodeFunctionResult(functionFragment: 'MIGRATION_SINGLETON', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateFromV111', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateToL2', data: BytesLike): Result +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [singleton: AddressLike] + export type OutputTuple = [singleton: string] + export interface OutputObject { + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeMultiSigTransactionEvent { + export type InputTuple = [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + additionalInfo: BytesLike, + ] + export type OutputTuple = [ + to: string, + value: bigint, + data: string, + operation: bigint, + safeTxGas: bigint, + baseGas: bigint, + gasPrice: bigint, + gasToken: string, + refundReceiver: string, + signatures: string, + additionalInfo: string, + ] + export interface OutputObject { + to: string + value: bigint + data: string + operation: bigint + safeTxGas: bigint + baseGas: bigint + gasPrice: bigint + gasToken: string + refundReceiver: string + signatures: string + additionalInfo: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeSetupEvent { + export type InputTuple = [ + initiator: AddressLike, + owners: AddressLike[], + threshold: BigNumberish, + initializer: AddressLike, + fallbackHandler: AddressLike, + ] + export type OutputTuple = [ + initiator: string, + owners: string[], + threshold: bigint, + initializer: string, + fallbackHandler: string, + ] + export interface OutputObject { + initiator: string + owners: string[] + threshold: bigint + initializer: string + fallbackHandler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_to_l2_migration extends BaseContract { + connect(runner?: ContractRunner | null): Safe_to_l2_migration + waitForDeployment(): Promise + + interface: Safe_to_l2_migrationInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + MIGRATION_SINGLETON: TypedContractMethod<[], [string], 'view'> + + migrateFromV111: TypedContractMethod<[l2Singleton: AddressLike, fallbackHandler: AddressLike], [void], 'nonpayable'> + + migrateToL2: TypedContractMethod<[l2Singleton: AddressLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'MIGRATION_SINGLETON'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'migrateFromV111', + ): TypedContractMethod<[l2Singleton: AddressLike, fallbackHandler: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'migrateToL2'): TypedContractMethod<[l2Singleton: AddressLike], [void], 'nonpayable'> + + getEvent( + key: 'ChangedMasterCopy', + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + getEvent( + key: 'SafeMultiSigTransaction', + ): TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + getEvent( + key: 'SafeSetup', + ): TypedContractEvent + + filters: { + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + 'SafeMultiSigTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,bytes)': TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + SafeMultiSigTransaction: TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + + 'SafeSetup(address,address[],uint256,address,address)': TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + SafeSetup: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup.ts new file mode 100644 index 000000000..8bc658b87 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup.ts @@ -0,0 +1,106 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Safe_to_l2_setupInterface extends Interface { + getFunction(nameOrSignature: 'setupToL2'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ChangedMasterCopy'): EventFragment + + encodeFunctionData(functionFragment: 'setupToL2', values: [AddressLike]): string + + decodeFunctionResult(functionFragment: 'setupToL2', data: BytesLike): Result +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [singleton: AddressLike] + export type OutputTuple = [singleton: string] + export interface OutputObject { + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_to_l2_setup extends BaseContract { + connect(runner?: ContractRunner | null): Safe_to_l2_setup + waitForDeployment(): Promise + + interface: Safe_to_l2_setupInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + setupToL2: TypedContractMethod<[l2Singleton: AddressLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'setupToL2'): TypedContractMethod<[l2Singleton: AddressLike], [void], 'nonpayable'> + + getEvent( + key: 'ChangedMasterCopy', + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + filters: { + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Sign_message_lib.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Sign_message_lib.ts new file mode 100644 index 000000000..112e6d713 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Sign_message_lib.ts @@ -0,0 +1,98 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Sign_message_libInterface extends Interface { + getFunction(nameOrSignature: 'getMessageHash' | 'signMessage'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'SignMsg'): EventFragment + + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Sign_message_lib extends BaseContract { + connect(runner?: ContractRunner | null): Sign_message_lib + waitForDeployment(): Promise + + interface: Sign_message_libInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'signMessage'): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Simulate_tx_accessor.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Simulate_tx_accessor.ts new file mode 100644 index 000000000..dab8e1a95 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/Simulate_tx_accessor.ts @@ -0,0 +1,92 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Simulate_tx_accessorInterface extends Interface { + getFunction(nameOrSignature: 'simulate'): FunctionFragment + + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BigNumberish, BytesLike, BigNumberish]): string + + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result +} + +export interface Simulate_tx_accessor extends BaseContract { + connect(runner?: ContractRunner | null): Simulate_tx_accessor + waitForDeployment(): Promise + + interface: Simulate_tx_accessorInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + simulate: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + }, + ], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'simulate'): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + }, + ], + 'nonpayable' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/index.ts new file mode 100644 index 000000000..065674efa --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.4.1/index.ts @@ -0,0 +1,15 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Compatibility_fallback_handler } from './Compatibility_fallback_handler' +export type { Create_call } from './Create_call' +export type { Multi_send } from './Multi_send' +export type { Multi_send_call_only } from './Multi_send_call_only' +export type { Safe } from './Safe' +export type { Safe_l2 } from './Safe_l2' +export type { Safe_migration } from './Safe_migration' +export type { Safe_proxy_factory } from './Safe_proxy_factory' +export type { Safe_to_l2_migration } from './Safe_to_l2_migration' +export type { Safe_to_l2_setup } from './Safe_to_l2_setup' +export type { Sign_message_lib } from './Sign_message_lib' +export type { Simulate_tx_accessor } from './Simulate_tx_accessor' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Compatibility_fallback_handler.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Compatibility_fallback_handler.ts new file mode 100644 index 000000000..a3e43d2d1 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Compatibility_fallback_handler.ts @@ -0,0 +1,243 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Compatibility_fallback_handlerInterface extends Interface { + getFunction( + nameOrSignature: + | 'encodeMessageDataForSafe' + | 'encodeTransactionData' + | 'getMessageHash' + | 'getMessageHashForSafe' + | 'getModules' + | 'isValidSignature' + | 'onERC1155BatchReceived' + | 'onERC1155Received' + | 'onERC721Received' + | 'simulate' + | 'supportsInterface' + | 'tokensReceived', + ): FunctionFragment + + encodeFunctionData(functionFragment: 'encodeMessageDataForSafe', values: [AddressLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'encodeTransactionData', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHashForSafe', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData(functionFragment: 'isValidSignature', values: [BytesLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike], + ): string + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'tokensReceived', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike, BytesLike], + ): string + + decodeFunctionResult(functionFragment: 'encodeMessageDataForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeTransactionData', 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 +} + +export interface Compatibility_fallback_handler extends BaseContract { + connect(runner?: ContractRunner | null): Compatibility_fallback_handler + waitForDeployment(): Promise + + interface: Compatibility_fallback_handlerInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + encodeMessageDataForSafe: TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + + encodeTransactionData: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + nonce: BigNumberish, + ], + [string], + 'view' + > + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + getMessageHashForSafe: TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + + getModules: TypedContractMethod<[], [string[]], 'view'> + + isValidSignature: TypedContractMethod<[_dataHash: BytesLike, _signature: BytesLike], [string], 'view'> + + onERC1155BatchReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + + simulate: TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + tokensReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'encodeMessageDataForSafe', + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'encodeTransactionData', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'getMessageHashForSafe', + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'isValidSignature', + ): TypedContractMethod<[_dataHash: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'onERC1155BatchReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC1155Received', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC721Received', + ): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'simulate', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'tokensReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Create_call.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Create_call.ts new file mode 100644 index 000000000..2c8de50c9 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Create_call.ts @@ -0,0 +1,120 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Create_callInterface extends Interface { + getFunction(nameOrSignature: 'performCreate' | 'performCreate2'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ContractCreation'): EventFragment + + encodeFunctionData(functionFragment: 'performCreate', values: [BigNumberish, BytesLike]): string + encodeFunctionData(functionFragment: 'performCreate2', values: [BigNumberish, BytesLike, BytesLike]): string + + decodeFunctionResult(functionFragment: 'performCreate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'performCreate2', data: BytesLike): Result +} + +export namespace ContractCreationEvent { + export type InputTuple = [newContract: AddressLike] + export type OutputTuple = [newContract: string] + export interface OutputObject { + newContract: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Create_call extends BaseContract { + connect(runner?: ContractRunner | null): Create_call + waitForDeployment(): Promise + + interface: Create_callInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + performCreate: TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike], [string], 'nonpayable'> + + performCreate2: TypedContractMethod< + [value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], + [string], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'performCreate', + ): TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'performCreate2', + ): TypedContractMethod<[value: BigNumberish, deploymentData: BytesLike, salt: BytesLike], [string], 'nonpayable'> + + getEvent( + key: 'ContractCreation', + ): TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + + filters: { + 'ContractCreation(address)': TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + ContractCreation: TypedContractEvent< + ContractCreationEvent.InputTuple, + ContractCreationEvent.OutputTuple, + ContractCreationEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler.ts new file mode 100644 index 000000000..5fc23eef7 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler.ts @@ -0,0 +1,348 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Extensible_fallback_handlerInterface extends Interface { + getFunction( + nameOrSignature: + | 'addSupportedInterfaceBatch' + | 'domainVerifiers' + | 'isValidSignature' + | 'onERC1155BatchReceived' + | 'onERC1155Received' + | 'onERC721Received' + | 'removeSupportedInterfaceBatch' + | 'safeInterfaces' + | 'safeMethods' + | 'setDomainVerifier' + | 'setSafeMethod' + | 'setSupportedInterface' + | 'supportsInterface', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: 'AddedInterface' | 'ChangedDomainVerifier' | 'ChangedSafeMethod' | 'RemovedInterface', + ): EventFragment + + encodeFunctionData(functionFragment: 'addSupportedInterfaceBatch', values: [BytesLike, BytesLike[]]): string + encodeFunctionData(functionFragment: 'domainVerifiers', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature', values: [BytesLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike], + ): string + encodeFunctionData(functionFragment: 'removeSupportedInterfaceBatch', values: [BytesLike, BytesLike[]]): string + encodeFunctionData(functionFragment: 'safeInterfaces', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'safeMethods', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'setDomainVerifier', values: [BytesLike, AddressLike]): string + encodeFunctionData(functionFragment: 'setSafeMethod', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'setSupportedInterface', values: [BytesLike, boolean]): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'addSupportedInterfaceBatch', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainVerifiers', 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: 'removeSupportedInterfaceBatch', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'safeInterfaces', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'safeMethods', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setDomainVerifier', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setSafeMethod', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setSupportedInterface', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result +} + +export namespace AddedInterfaceEvent { + export type InputTuple = [safe: AddressLike, interfaceId: BytesLike] + export type OutputTuple = [safe: string, interfaceId: string] + export interface OutputObject { + safe: string + interfaceId: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedDomainVerifierEvent { + export type InputTuple = [ + safe: AddressLike, + domainSeparator: BytesLike, + oldVerifier: AddressLike, + newVerifier: AddressLike, + ] + export type OutputTuple = [safe: string, domainSeparator: string, oldVerifier: string, newVerifier: string] + export interface OutputObject { + safe: string + domainSeparator: string + oldVerifier: string + newVerifier: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedSafeMethodEvent { + export type InputTuple = [safe: AddressLike, selector: BytesLike, oldMethod: BytesLike, newMethod: BytesLike] + export type OutputTuple = [safe: string, selector: string, oldMethod: string, newMethod: string] + export interface OutputObject { + safe: string + selector: string + oldMethod: string + newMethod: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedInterfaceEvent { + export type InputTuple = [safe: AddressLike, interfaceId: BytesLike] + export type OutputTuple = [safe: string, interfaceId: string] + export interface OutputObject { + safe: string + interfaceId: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Extensible_fallback_handler extends BaseContract { + connect(runner?: ContractRunner | null): Extensible_fallback_handler + waitForDeployment(): Promise + + interface: Extensible_fallback_handlerInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + addSupportedInterfaceBatch: TypedContractMethod< + [_interfaceId: BytesLike, handlerWithSelectors: BytesLike[]], + [void], + 'nonpayable' + > + + domainVerifiers: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [string], 'view'> + + isValidSignature: TypedContractMethod<[_hash: BytesLike, signature: BytesLike], [string], 'view'> + + onERC1155BatchReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + + removeSupportedInterfaceBatch: TypedContractMethod< + [_interfaceId: BytesLike, selectors: BytesLike[]], + [void], + 'nonpayable' + > + + safeInterfaces: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [boolean], 'view'> + + safeMethods: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [string], 'view'> + + setDomainVerifier: TypedContractMethod<[domainSeparator: BytesLike, newVerifier: AddressLike], [void], 'nonpayable'> + + setSafeMethod: TypedContractMethod<[selector: BytesLike, newMethod: BytesLike], [void], 'nonpayable'> + + setSupportedInterface: TypedContractMethod<[interfaceId: BytesLike, supported: boolean], [void], 'nonpayable'> + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'addSupportedInterfaceBatch', + ): TypedContractMethod<[_interfaceId: BytesLike, handlerWithSelectors: BytesLike[]], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'domainVerifiers', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature', + ): TypedContractMethod<[_hash: BytesLike, signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'onERC1155BatchReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC1155Received', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC721Received', + ): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'removeSupportedInterfaceBatch', + ): TypedContractMethod<[_interfaceId: BytesLike, selectors: BytesLike[]], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'safeInterfaces', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'safeMethods', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'setDomainVerifier', + ): TypedContractMethod<[domainSeparator: BytesLike, newVerifier: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setSafeMethod', + ): TypedContractMethod<[selector: BytesLike, newMethod: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setSupportedInterface', + ): TypedContractMethod<[interfaceId: BytesLike, supported: boolean], [void], 'nonpayable'> + getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + getEvent( + key: 'AddedInterface', + ): TypedContractEvent< + AddedInterfaceEvent.InputTuple, + AddedInterfaceEvent.OutputTuple, + AddedInterfaceEvent.OutputObject + > + getEvent( + key: 'ChangedDomainVerifier', + ): TypedContractEvent< + ChangedDomainVerifierEvent.InputTuple, + ChangedDomainVerifierEvent.OutputTuple, + ChangedDomainVerifierEvent.OutputObject + > + getEvent( + key: 'ChangedSafeMethod', + ): TypedContractEvent< + ChangedSafeMethodEvent.InputTuple, + ChangedSafeMethodEvent.OutputTuple, + ChangedSafeMethodEvent.OutputObject + > + getEvent( + key: 'RemovedInterface', + ): TypedContractEvent< + RemovedInterfaceEvent.InputTuple, + RemovedInterfaceEvent.OutputTuple, + RemovedInterfaceEvent.OutputObject + > + + filters: { + 'AddedInterface(address,bytes4)': TypedContractEvent< + AddedInterfaceEvent.InputTuple, + AddedInterfaceEvent.OutputTuple, + AddedInterfaceEvent.OutputObject + > + AddedInterface: TypedContractEvent< + AddedInterfaceEvent.InputTuple, + AddedInterfaceEvent.OutputTuple, + AddedInterfaceEvent.OutputObject + > + + 'ChangedDomainVerifier(address,bytes32,address,address)': TypedContractEvent< + ChangedDomainVerifierEvent.InputTuple, + ChangedDomainVerifierEvent.OutputTuple, + ChangedDomainVerifierEvent.OutputObject + > + ChangedDomainVerifier: TypedContractEvent< + ChangedDomainVerifierEvent.InputTuple, + ChangedDomainVerifierEvent.OutputTuple, + ChangedDomainVerifierEvent.OutputObject + > + + 'ChangedSafeMethod(address,bytes4,bytes32,bytes32)': TypedContractEvent< + ChangedSafeMethodEvent.InputTuple, + ChangedSafeMethodEvent.OutputTuple, + ChangedSafeMethodEvent.OutputObject + > + ChangedSafeMethod: TypedContractEvent< + ChangedSafeMethodEvent.InputTuple, + ChangedSafeMethodEvent.OutputTuple, + ChangedSafeMethodEvent.OutputObject + > + + 'RemovedInterface(address,bytes4)': TypedContractEvent< + RemovedInterfaceEvent.InputTuple, + RemovedInterfaceEvent.OutputTuple, + RemovedInterfaceEvent.OutputObject + > + RemovedInterface: TypedContractEvent< + RemovedInterfaceEvent.InputTuple, + RemovedInterfaceEvent.OutputTuple, + RemovedInterfaceEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send.ts new file mode 100644 index 000000000..576f4e194 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send.ts @@ -0,0 +1,70 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Multi_sendInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send + waitForDeployment(): Promise + + interface: Multi_sendInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'multiSend'): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send_call_only.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send_call_only.ts new file mode 100644 index 000000000..86ba32892 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send_call_only.ts @@ -0,0 +1,70 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Multi_send_call_onlyInterface extends Interface { + getFunction(nameOrSignature: 'multiSend'): FunctionFragment + + encodeFunctionData(functionFragment: 'multiSend', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'multiSend', data: BytesLike): Result +} + +export interface Multi_send_call_only extends BaseContract { + connect(runner?: ContractRunner | null): Multi_send_call_only + waitForDeployment(): Promise + + interface: Multi_send_call_onlyInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + multiSend: TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'multiSend'): TypedContractMethod<[transactions: BytesLike], [void], 'payable'> + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe.ts new file mode 100644 index 000000000..bd3c4a22a --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe.ts @@ -0,0 +1,963 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface SafeInterface extends Interface { + getFunction( + nameOrSignature: + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approveHash' + | 'approvedHashes' + | 'changeThreshold' + | 'checkNSignatures(bytes32,bytes,bytes,uint256)' + | 'checkNSignatures(address,bytes32,bytes,uint256)' + | 'checkSignatures(bytes32,bytes,bytes)' + | 'checkSignatures(address,bytes32,bytes)' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'execTransaction' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getModulesPaginated' + | 'getOwners' + | 'getStorageAt' + | 'getThreshold' + | 'getTransactionHash' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'setFallbackHandler' + | 'setGuard' + | 'setModuleGuard' + | 'setup' + | 'signedMessages' + | 'simulateAndRevert' + | 'swapOwner', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedFallbackHandler' + | 'ChangedGuard' + | 'ChangedModuleGuard' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SafeReceived' + | 'SafeSetup' + | 'SignMsg', + ): EventFragment + + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'addOwnerWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData( + functionFragment: 'checkNSignatures(bytes32,bytes,bytes,uint256)', + values: [BytesLike, BytesLike, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'checkNSignatures(address,bytes32,bytes,uint256)', + values: [AddressLike, BytesLike, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'checkSignatures(bytes32,bytes,bytes)', + values: [BytesLike, BytesLike, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'checkSignatures(address,bytes32,bytes)', + values: [AddressLike, BytesLike, BytesLike], + ): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getModulesPaginated', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getStorageAt', values: [BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'removeOwner', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setGuard', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setModuleGuard', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [AddressLike[], BigNumberish, AddressLike, BytesLike, AddressLike, AddressLike, BigNumberish, AddressLike], + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'simulateAndRevert', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'swapOwner', values: [AddressLike, AddressLike, AddressLike]): string + + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures(bytes32,bytes,bytes,uint256)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures(address,bytes32,bytes,uint256)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures(bytes32,bytes,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures(address,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: 'setModuleGuard', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulateAndRevert', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedFallbackHandlerEvent { + export type InputTuple = [handler: AddressLike] + export type OutputTuple = [handler: string] + export interface OutputObject { + handler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedGuardEvent { + export type InputTuple = [guard: AddressLike] + export type OutputTuple = [guard: string] + export interface OutputObject { + guard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedModuleGuardEvent { + export type InputTuple = [moduleGuard: AddressLike] + export type OutputTuple = [moduleGuard: string] + export interface OutputObject { + moduleGuard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeReceivedEvent { + export type InputTuple = [sender: AddressLike, value: BigNumberish] + export type OutputTuple = [sender: string, value: bigint] + export interface OutputObject { + sender: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeSetupEvent { + export type InputTuple = [ + initiator: AddressLike, + owners: AddressLike[], + threshold: BigNumberish, + initializer: AddressLike, + fallbackHandler: AddressLike, + ] + export type OutputTuple = [ + initiator: string, + owners: string[], + threshold: bigint, + initializer: string, + fallbackHandler: string, + ] + export interface OutputObject { + initiator: string + owners: string[] + threshold: bigint + initializer: string + fallbackHandler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe extends BaseContract { + connect(runner?: ContractRunner | null): Safe + waitForDeployment(): Promise + + interface: SafeInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + 'checkNSignatures(bytes32,bytes,bytes,uint256)': TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + 'checkNSignatures(address,bytes32,bytes,uint256)': TypedContractMethod< + [executor: AddressLike, dataHash: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + 'checkSignatures(bytes32,bytes,bytes)': TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike], + [void], + 'view' + > + + 'checkSignatures(address,bytes32,bytes)': TypedContractMethod< + [executor: AddressLike, dataHash: BytesLike, signatures: BytesLike], + [void], + 'view' + > + + disableModule: TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getStorageAt: TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + setGuard: TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + + setModuleGuard: TypedContractMethod<[moduleGuard: AddressLike], [void], 'nonpayable'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + simulateAndRevert: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold', + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'approveHash'): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkNSignatures(bytes32,bytes,bytes,uint256)', + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkNSignatures(address,bytes32,bytes,uint256)', + ): TypedContractMethod< + [executor: AddressLike, dataHash: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkSignatures(bytes32,bytes,bytes)', + ): TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + getFunction( + nameOrSignature: 'checkSignatures(address,bytes32,bytes)', + ): TypedContractMethod<[executor: AddressLike, dataHash: BytesLike, signatures: BytesLike], [void], 'view'> + getFunction( + nameOrSignature: 'disableModule', + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'enableModule'): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'execTransaction', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'execTransactionFromModule', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction( + nameOrSignature: 'getModulesPaginated', + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getStorageAt', + ): TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getTransactionHash', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction(nameOrSignature: 'isModuleEnabled'): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'isOwner'): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner', + ): TypedContractMethod<[prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setFallbackHandler'): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setGuard'): TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setModuleGuard'): TypedContractMethod<[moduleGuard: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup', + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'signedMessages'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'simulateAndRevert', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'swapOwner', + ): TypedContractMethod<[prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], [void], 'nonpayable'> + + getEvent( + key: 'AddedOwner', + ): TypedContractEvent + getEvent( + key: 'ApproveHash', + ): TypedContractEvent + getEvent( + key: 'ChangedFallbackHandler', + ): TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + getEvent( + key: 'ChangedGuard', + ): TypedContractEvent + getEvent( + key: 'ChangedModuleGuard', + ): TypedContractEvent< + ChangedModuleGuardEvent.InputTuple, + ChangedModuleGuardEvent.OutputTuple, + ChangedModuleGuardEvent.OutputObject + > + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule', + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule', + ): TypedContractEvent + getEvent( + key: 'ExecutionFailure', + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure', + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess', + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess', + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner', + ): TypedContractEvent + getEvent( + key: 'SafeReceived', + ): TypedContractEvent + getEvent( + key: 'SafeSetup', + ): TypedContractEvent + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedFallbackHandler(address)': TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + ChangedFallbackHandler: TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + + 'ChangedGuard(address)': TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + ChangedGuard: TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + + 'ChangedModuleGuard(address)': TypedContractEvent< + ChangedModuleGuardEvent.InputTuple, + ChangedModuleGuardEvent.OutputTuple, + ChangedModuleGuardEvent.OutputObject + > + ChangedModuleGuard: TypedContractEvent< + ChangedModuleGuardEvent.InputTuple, + ChangedModuleGuardEvent.OutputTuple, + ChangedModuleGuardEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SafeReceived(address,uint256)': TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + SafeReceived: TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + + 'SafeSetup(address,address[],uint256,address,address)': TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + SafeSetup: TypedContractEvent + + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_l2.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_l2.ts new file mode 100644 index 000000000..dde5c3650 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_l2.ts @@ -0,0 +1,1069 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Safe_l2Interface extends Interface { + getFunction( + nameOrSignature: + | 'VERSION' + | 'addOwnerWithThreshold' + | 'approveHash' + | 'approvedHashes' + | 'changeThreshold' + | 'checkNSignatures(bytes32,bytes,bytes,uint256)' + | 'checkNSignatures(address,bytes32,bytes,uint256)' + | 'checkSignatures(bytes32,bytes,bytes)' + | 'checkSignatures(address,bytes32,bytes)' + | 'disableModule' + | 'domainSeparator' + | 'enableModule' + | 'execTransaction' + | 'execTransactionFromModule' + | 'execTransactionFromModuleReturnData' + | 'getModulesPaginated' + | 'getOwners' + | 'getStorageAt' + | 'getThreshold' + | 'getTransactionHash' + | 'isModuleEnabled' + | 'isOwner' + | 'nonce' + | 'removeOwner' + | 'setFallbackHandler' + | 'setGuard' + | 'setModuleGuard' + | 'setup' + | 'signedMessages' + | 'simulateAndRevert' + | 'swapOwner', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddedOwner' + | 'ApproveHash' + | 'ChangedFallbackHandler' + | 'ChangedGuard' + | 'ChangedModuleGuard' + | 'ChangedThreshold' + | 'DisabledModule' + | 'EnabledModule' + | 'ExecutionFailure' + | 'ExecutionFromModuleFailure' + | 'ExecutionFromModuleSuccess' + | 'ExecutionSuccess' + | 'RemovedOwner' + | 'SafeModuleTransaction' + | 'SafeMultiSigTransaction' + | 'SafeReceived' + | 'SafeSetup' + | 'SignMsg', + ): EventFragment + + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'addOwnerWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'approveHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'approvedHashes', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData( + functionFragment: 'checkNSignatures(bytes32,bytes,bytes,uint256)', + values: [BytesLike, BytesLike, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'checkNSignatures(address,bytes32,bytes,uint256)', + values: [AddressLike, BytesLike, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'checkSignatures(bytes32,bytes,bytes)', + values: [BytesLike, BytesLike, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'checkSignatures(address,bytes32,bytes)', + values: [AddressLike, BytesLike, BytesLike], + ): string + encodeFunctionData(functionFragment: 'disableModule', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'enableModule', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'execTransaction', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BytesLike, + ], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModule', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'execTransactionFromModuleReturnData', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getModulesPaginated', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getOwners', values?: undefined): string + encodeFunctionData(functionFragment: 'getStorageAt', values: [BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getThreshold', values?: undefined): string + encodeFunctionData( + functionFragment: 'getTransactionHash', + values: [ + AddressLike, + BigNumberish, + BytesLike, + BigNumberish, + BigNumberish, + BigNumberish, + BigNumberish, + AddressLike, + AddressLike, + BigNumberish, + ], + ): string + encodeFunctionData(functionFragment: 'isModuleEnabled', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isOwner', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'nonce', values?: undefined): string + encodeFunctionData(functionFragment: 'removeOwner', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'setFallbackHandler', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setGuard', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'setModuleGuard', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'setup', + values: [AddressLike[], BigNumberish, AddressLike, BytesLike, AddressLike, AddressLike, BigNumberish, AddressLike], + ): string + encodeFunctionData(functionFragment: 'signedMessages', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'simulateAndRevert', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'swapOwner', values: [AddressLike, AddressLike, AddressLike]): string + + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addOwnerWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approveHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'approvedHashes', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures(bytes32,bytes,bytes,uint256)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkNSignatures(address,bytes32,bytes,uint256)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures(bytes32,bytes,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'checkSignatures(address,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: 'setModuleGuard', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setup', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signedMessages', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulateAndRevert', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'swapOwner', data: BytesLike): Result +} + +export namespace AddedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ApproveHashEvent { + export type InputTuple = [approvedHash: BytesLike, owner: AddressLike] + export type OutputTuple = [approvedHash: string, owner: string] + export interface OutputObject { + approvedHash: string + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedFallbackHandlerEvent { + export type InputTuple = [handler: AddressLike] + export type OutputTuple = [handler: string] + export interface OutputObject { + handler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedGuardEvent { + export type InputTuple = [guard: AddressLike] + export type OutputTuple = [guard: string] + export interface OutputObject { + guard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedModuleGuardEvent { + export type InputTuple = [moduleGuard: AddressLike] + export type OutputTuple = [moduleGuard: string] + export interface OutputObject { + moduleGuard: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [threshold: BigNumberish] + export type OutputTuple = [threshold: bigint] + export interface OutputObject { + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DisabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace EnabledModuleEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFailureEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleFailureEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionFromModuleSuccessEvent { + export type InputTuple = [module: AddressLike] + export type OutputTuple = [module: string] + export interface OutputObject { + module: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecutionSuccessEvent { + export type InputTuple = [txHash: BytesLike, payment: BigNumberish] + export type OutputTuple = [txHash: string, payment: bigint] + export interface OutputObject { + txHash: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemovedOwnerEvent { + export type InputTuple = [owner: AddressLike] + export type OutputTuple = [owner: string] + export interface OutputObject { + owner: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeModuleTransactionEvent { + export type InputTuple = [ + module: AddressLike, + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + ] + export type OutputTuple = [module: string, to: string, value: bigint, data: string, operation: bigint] + export interface OutputObject { + module: string + to: string + value: bigint + data: string + operation: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeMultiSigTransactionEvent { + export type InputTuple = [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + additionalInfo: BytesLike, + ] + export type OutputTuple = [ + to: string, + value: bigint, + data: string, + operation: bigint, + safeTxGas: bigint, + baseGas: bigint, + gasPrice: bigint, + gasToken: string, + refundReceiver: string, + signatures: string, + additionalInfo: string, + ] + export interface OutputObject { + to: string + value: bigint + data: string + operation: bigint + safeTxGas: bigint + baseGas: bigint + gasPrice: bigint + gasToken: string + refundReceiver: string + signatures: string + additionalInfo: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeReceivedEvent { + export type InputTuple = [sender: AddressLike, value: BigNumberish] + export type OutputTuple = [sender: string, value: bigint] + export interface OutputObject { + sender: string + value: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SafeSetupEvent { + export type InputTuple = [ + initiator: AddressLike, + owners: AddressLike[], + threshold: BigNumberish, + initializer: AddressLike, + fallbackHandler: AddressLike, + ] + export type OutputTuple = [ + initiator: string, + owners: string[], + threshold: bigint, + initializer: string, + fallbackHandler: string, + ] + export interface OutputObject { + initiator: string + owners: string[] + threshold: bigint + initializer: string + fallbackHandler: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_l2 extends BaseContract { + connect(runner?: ContractRunner | null): Safe_l2 + waitForDeployment(): Promise + + interface: Safe_l2Interface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + VERSION: TypedContractMethod<[], [string], 'view'> + + addOwnerWithThreshold: TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + + approveHash: TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + + approvedHashes: TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + 'checkNSignatures(bytes32,bytes,bytes,uint256)': TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + 'checkNSignatures(address,bytes32,bytes,uint256)': TypedContractMethod< + [executor: AddressLike, dataHash: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + + 'checkSignatures(bytes32,bytes,bytes)': TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike], + [void], + 'view' + > + + 'checkSignatures(address,bytes32,bytes)': TypedContractMethod< + [executor: AddressLike, dataHash: BytesLike, signatures: BytesLike], + [void], + 'view' + > + + disableModule: TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + enableModule: TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + + execTransaction: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + + execTransactionFromModule: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + + execTransactionFromModuleReturnData: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + + getModulesPaginated: TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + + getOwners: TypedContractMethod<[], [string[]], 'view'> + + getStorageAt: TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + + getThreshold: TypedContractMethod<[], [bigint], 'view'> + + getTransactionHash: TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + + isModuleEnabled: TypedContractMethod<[module: AddressLike], [boolean], 'view'> + + isOwner: TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + + nonce: TypedContractMethod<[], [bigint], 'view'> + + removeOwner: TypedContractMethod< + [prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + setFallbackHandler: TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + + setGuard: TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + + setModuleGuard: TypedContractMethod<[moduleGuard: AddressLike], [void], 'nonpayable'> + + setup: TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + + signedMessages: TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + + simulateAndRevert: TypedContractMethod< + [targetContract: AddressLike, calldataPayload: BytesLike], + [void], + 'nonpayable' + > + + swapOwner: TypedContractMethod< + [prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], + [void], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addOwnerWithThreshold', + ): TypedContractMethod<[owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'approveHash'): TypedContractMethod<[hashToApprove: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'approvedHashes', + ): TypedContractMethod<[arg0: AddressLike, arg1: BytesLike], [bigint], 'view'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'checkNSignatures(bytes32,bytes,bytes,uint256)', + ): TypedContractMethod< + [dataHash: BytesLike, data: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkNSignatures(address,bytes32,bytes,uint256)', + ): TypedContractMethod< + [executor: AddressLike, dataHash: BytesLike, signatures: BytesLike, requiredSignatures: BigNumberish], + [void], + 'view' + > + getFunction( + nameOrSignature: 'checkSignatures(bytes32,bytes,bytes)', + ): TypedContractMethod<[dataHash: BytesLike, data: BytesLike, signatures: BytesLike], [void], 'view'> + getFunction( + nameOrSignature: 'checkSignatures(address,bytes32,bytes)', + ): TypedContractMethod<[executor: AddressLike, dataHash: BytesLike, signatures: BytesLike], [void], 'view'> + getFunction( + nameOrSignature: 'disableModule', + ): TypedContractMethod<[prevModule: AddressLike, module: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'enableModule'): TypedContractMethod<[module: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'execTransaction', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + signatures: BytesLike, + ], + [boolean], + 'payable' + > + getFunction( + nameOrSignature: 'execTransactionFromModule', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [boolean], + 'nonpayable' + > + getFunction( + nameOrSignature: 'execTransactionFromModuleReturnData', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [[boolean, string] & { success: boolean; returnData: string }], + 'nonpayable' + > + getFunction( + nameOrSignature: 'getModulesPaginated', + ): TypedContractMethod< + [start: AddressLike, pageSize: BigNumberish], + [[string[], string] & { array: string[]; next: string }], + 'view' + > + getFunction(nameOrSignature: 'getOwners'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getStorageAt', + ): TypedContractMethod<[offset: BigNumberish, length: BigNumberish], [string], 'view'> + getFunction(nameOrSignature: 'getThreshold'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'getTransactionHash', + ): TypedContractMethod< + [ + to: AddressLike, + value: BigNumberish, + data: BytesLike, + operation: BigNumberish, + safeTxGas: BigNumberish, + baseGas: BigNumberish, + gasPrice: BigNumberish, + gasToken: AddressLike, + refundReceiver: AddressLike, + _nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction(nameOrSignature: 'isModuleEnabled'): TypedContractMethod<[module: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'isOwner'): TypedContractMethod<[owner: AddressLike], [boolean], 'view'> + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'removeOwner', + ): TypedContractMethod<[prevOwner: AddressLike, owner: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setFallbackHandler'): TypedContractMethod<[handler: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setGuard'): TypedContractMethod<[guard: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'setModuleGuard'): TypedContractMethod<[moduleGuard: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'setup', + ): TypedContractMethod< + [ + _owners: AddressLike[], + _threshold: BigNumberish, + to: AddressLike, + data: BytesLike, + fallbackHandler: AddressLike, + paymentToken: AddressLike, + payment: BigNumberish, + paymentReceiver: AddressLike, + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'signedMessages'): TypedContractMethod<[arg0: BytesLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'simulateAndRevert', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'swapOwner', + ): TypedContractMethod<[prevOwner: AddressLike, oldOwner: AddressLike, newOwner: AddressLike], [void], 'nonpayable'> + + getEvent( + key: 'AddedOwner', + ): TypedContractEvent + getEvent( + key: 'ApproveHash', + ): TypedContractEvent + getEvent( + key: 'ChangedFallbackHandler', + ): TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + getEvent( + key: 'ChangedGuard', + ): TypedContractEvent + getEvent( + key: 'ChangedModuleGuard', + ): TypedContractEvent< + ChangedModuleGuardEvent.InputTuple, + ChangedModuleGuardEvent.OutputTuple, + ChangedModuleGuardEvent.OutputObject + > + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'DisabledModule', + ): TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + getEvent( + key: 'EnabledModule', + ): TypedContractEvent + getEvent( + key: 'ExecutionFailure', + ): TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleFailure', + ): TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + getEvent( + key: 'ExecutionFromModuleSuccess', + ): TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + getEvent( + key: 'ExecutionSuccess', + ): TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + getEvent( + key: 'RemovedOwner', + ): TypedContractEvent + getEvent( + key: 'SafeModuleTransaction', + ): TypedContractEvent< + SafeModuleTransactionEvent.InputTuple, + SafeModuleTransactionEvent.OutputTuple, + SafeModuleTransactionEvent.OutputObject + > + getEvent( + key: 'SafeMultiSigTransaction', + ): TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + getEvent( + key: 'SafeReceived', + ): TypedContractEvent + getEvent( + key: 'SafeSetup', + ): TypedContractEvent + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'AddedOwner(address)': TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + AddedOwner: TypedContractEvent< + AddedOwnerEvent.InputTuple, + AddedOwnerEvent.OutputTuple, + AddedOwnerEvent.OutputObject + > + + 'ApproveHash(bytes32,address)': TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + ApproveHash: TypedContractEvent< + ApproveHashEvent.InputTuple, + ApproveHashEvent.OutputTuple, + ApproveHashEvent.OutputObject + > + + 'ChangedFallbackHandler(address)': TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + ChangedFallbackHandler: TypedContractEvent< + ChangedFallbackHandlerEvent.InputTuple, + ChangedFallbackHandlerEvent.OutputTuple, + ChangedFallbackHandlerEvent.OutputObject + > + + 'ChangedGuard(address)': TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + ChangedGuard: TypedContractEvent< + ChangedGuardEvent.InputTuple, + ChangedGuardEvent.OutputTuple, + ChangedGuardEvent.OutputObject + > + + 'ChangedModuleGuard(address)': TypedContractEvent< + ChangedModuleGuardEvent.InputTuple, + ChangedModuleGuardEvent.OutputTuple, + ChangedModuleGuardEvent.OutputObject + > + ChangedModuleGuard: TypedContractEvent< + ChangedModuleGuardEvent.InputTuple, + ChangedModuleGuardEvent.OutputTuple, + ChangedModuleGuardEvent.OutputObject + > + + 'ChangedThreshold(uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'DisabledModule(address)': TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + DisabledModule: TypedContractEvent< + DisabledModuleEvent.InputTuple, + DisabledModuleEvent.OutputTuple, + DisabledModuleEvent.OutputObject + > + + 'EnabledModule(address)': TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + EnabledModule: TypedContractEvent< + EnabledModuleEvent.InputTuple, + EnabledModuleEvent.OutputTuple, + EnabledModuleEvent.OutputObject + > + + 'ExecutionFailure(bytes32,uint256)': TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + ExecutionFailure: TypedContractEvent< + ExecutionFailureEvent.InputTuple, + ExecutionFailureEvent.OutputTuple, + ExecutionFailureEvent.OutputObject + > + + 'ExecutionFromModuleFailure(address)': TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + ExecutionFromModuleFailure: TypedContractEvent< + ExecutionFromModuleFailureEvent.InputTuple, + ExecutionFromModuleFailureEvent.OutputTuple, + ExecutionFromModuleFailureEvent.OutputObject + > + + 'ExecutionFromModuleSuccess(address)': TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + ExecutionFromModuleSuccess: TypedContractEvent< + ExecutionFromModuleSuccessEvent.InputTuple, + ExecutionFromModuleSuccessEvent.OutputTuple, + ExecutionFromModuleSuccessEvent.OutputObject + > + + 'ExecutionSuccess(bytes32,uint256)': TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + ExecutionSuccess: TypedContractEvent< + ExecutionSuccessEvent.InputTuple, + ExecutionSuccessEvent.OutputTuple, + ExecutionSuccessEvent.OutputObject + > + + 'RemovedOwner(address)': TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + RemovedOwner: TypedContractEvent< + RemovedOwnerEvent.InputTuple, + RemovedOwnerEvent.OutputTuple, + RemovedOwnerEvent.OutputObject + > + + 'SafeModuleTransaction(address,address,uint256,bytes,uint8)': TypedContractEvent< + SafeModuleTransactionEvent.InputTuple, + SafeModuleTransactionEvent.OutputTuple, + SafeModuleTransactionEvent.OutputObject + > + SafeModuleTransaction: TypedContractEvent< + SafeModuleTransactionEvent.InputTuple, + SafeModuleTransactionEvent.OutputTuple, + SafeModuleTransactionEvent.OutputObject + > + + 'SafeMultiSigTransaction(address,uint256,bytes,uint8,uint256,uint256,uint256,address,address,bytes,bytes)': TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + SafeMultiSigTransaction: TypedContractEvent< + SafeMultiSigTransactionEvent.InputTuple, + SafeMultiSigTransactionEvent.OutputTuple, + SafeMultiSigTransactionEvent.OutputObject + > + + 'SafeReceived(address,uint256)': TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + SafeReceived: TypedContractEvent< + SafeReceivedEvent.InputTuple, + SafeReceivedEvent.OutputTuple, + SafeReceivedEvent.OutputObject + > + + 'SafeSetup(address,address[],uint256,address,address)': TypedContractEvent< + SafeSetupEvent.InputTuple, + SafeSetupEvent.OutputTuple, + SafeSetupEvent.OutputObject + > + SafeSetup: TypedContractEvent + + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_migration.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_migration.ts new file mode 100644 index 000000000..03afa52fc --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_migration.ts @@ -0,0 +1,151 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Safe_migrationInterface extends Interface { + getFunction( + nameOrSignature: + | 'MIGRATION_SINGLETON' + | 'SAFE_FALLBACK_HANDLER' + | 'SAFE_L2_SINGLETON' + | 'SAFE_SINGLETON' + | 'migrateL2Singleton' + | 'migrateL2WithFallbackHandler' + | 'migrateSingleton' + | 'migrateWithFallbackHandler', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ChangedMasterCopy'): EventFragment + + encodeFunctionData(functionFragment: 'MIGRATION_SINGLETON', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_FALLBACK_HANDLER', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_L2_SINGLETON', values?: undefined): string + encodeFunctionData(functionFragment: 'SAFE_SINGLETON', values?: undefined): string + encodeFunctionData(functionFragment: 'migrateL2Singleton', values?: undefined): string + encodeFunctionData(functionFragment: 'migrateL2WithFallbackHandler', values?: undefined): string + encodeFunctionData(functionFragment: 'migrateSingleton', values?: undefined): string + encodeFunctionData(functionFragment: 'migrateWithFallbackHandler', values?: undefined): string + + decodeFunctionResult(functionFragment: 'MIGRATION_SINGLETON', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_FALLBACK_HANDLER', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_L2_SINGLETON', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'SAFE_SINGLETON', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateL2Singleton', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateL2WithFallbackHandler', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateSingleton', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'migrateWithFallbackHandler', data: BytesLike): Result +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [singleton: AddressLike] + export type OutputTuple = [singleton: string] + export interface OutputObject { + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_migration extends BaseContract { + connect(runner?: ContractRunner | null): Safe_migration + waitForDeployment(): Promise + + interface: Safe_migrationInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + MIGRATION_SINGLETON: TypedContractMethod<[], [string], 'view'> + + SAFE_FALLBACK_HANDLER: TypedContractMethod<[], [string], 'view'> + + SAFE_L2_SINGLETON: TypedContractMethod<[], [string], 'view'> + + SAFE_SINGLETON: TypedContractMethod<[], [string], 'view'> + + migrateL2Singleton: TypedContractMethod<[], [void], 'nonpayable'> + + migrateL2WithFallbackHandler: TypedContractMethod<[], [void], 'nonpayable'> + + migrateSingleton: TypedContractMethod<[], [void], 'nonpayable'> + + migrateWithFallbackHandler: TypedContractMethod<[], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'MIGRATION_SINGLETON'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SAFE_FALLBACK_HANDLER'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SAFE_L2_SINGLETON'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'SAFE_SINGLETON'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'migrateL2Singleton'): TypedContractMethod<[], [void], 'nonpayable'> + getFunction(nameOrSignature: 'migrateL2WithFallbackHandler'): TypedContractMethod<[], [void], 'nonpayable'> + getFunction(nameOrSignature: 'migrateSingleton'): TypedContractMethod<[], [void], 'nonpayable'> + getFunction(nameOrSignature: 'migrateWithFallbackHandler'): TypedContractMethod<[], [void], 'nonpayable'> + + getEvent( + key: 'ChangedMasterCopy', + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + filters: { + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_proxy_factory.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_proxy_factory.ts new file mode 100644 index 000000000..5d299640c --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_proxy_factory.ts @@ -0,0 +1,256 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Safe_proxy_factoryInterface extends Interface { + getFunction( + nameOrSignature: + | 'createChainSpecificProxyWithNonce' + | 'createChainSpecificProxyWithNonceL2' + | 'createProxyWithNonce' + | 'createProxyWithNonceL2' + | 'getChainId' + | 'proxyCreationCode', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ChainSpecificProxyCreationL2' | 'ProxyCreation' | 'ProxyCreationL2'): EventFragment + + encodeFunctionData( + functionFragment: 'createChainSpecificProxyWithNonce', + values: [AddressLike, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'createChainSpecificProxyWithNonceL2', + values: [AddressLike, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'createProxyWithNonce', values: [AddressLike, BytesLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'createProxyWithNonceL2', values: [AddressLike, BytesLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData(functionFragment: 'proxyCreationCode', values?: undefined): string + + decodeFunctionResult(functionFragment: 'createChainSpecificProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createChainSpecificProxyWithNonceL2', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createProxyWithNonceL2', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'proxyCreationCode', data: BytesLike): Result +} + +export namespace ChainSpecificProxyCreationL2Event { + export type InputTuple = [ + proxy: AddressLike, + singleton: AddressLike, + initializer: BytesLike, + saltNonce: BigNumberish, + chainId: BigNumberish, + ] + export type OutputTuple = [proxy: string, singleton: string, initializer: string, saltNonce: bigint, chainId: bigint] + export interface OutputObject { + proxy: string + singleton: string + initializer: string + saltNonce: bigint + chainId: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ProxyCreationEvent { + export type InputTuple = [proxy: AddressLike, singleton: AddressLike] + export type OutputTuple = [proxy: string, singleton: string] + export interface OutputObject { + proxy: string + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ProxyCreationL2Event { + export type InputTuple = [proxy: AddressLike, singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish] + export type OutputTuple = [proxy: string, singleton: string, initializer: string, saltNonce: bigint] + export interface OutputObject { + proxy: string + singleton: string + initializer: string + saltNonce: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_proxy_factory extends BaseContract { + connect(runner?: ContractRunner | null): Safe_proxy_factory + waitForDeployment(): Promise + + interface: Safe_proxy_factoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + createChainSpecificProxyWithNonce: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + createChainSpecificProxyWithNonceL2: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + createProxyWithNonce: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + createProxyWithNonceL2: TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + proxyCreationCode: TypedContractMethod<[], [string], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'createChainSpecificProxyWithNonce', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createChainSpecificProxyWithNonceL2', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithNonce', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction( + nameOrSignature: 'createProxyWithNonceL2', + ): TypedContractMethod< + [_singleton: AddressLike, initializer: BytesLike, saltNonce: BigNumberish], + [string], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'proxyCreationCode'): TypedContractMethod<[], [string], 'view'> + + getEvent( + key: 'ChainSpecificProxyCreationL2', + ): TypedContractEvent< + ChainSpecificProxyCreationL2Event.InputTuple, + ChainSpecificProxyCreationL2Event.OutputTuple, + ChainSpecificProxyCreationL2Event.OutputObject + > + getEvent( + key: 'ProxyCreation', + ): TypedContractEvent + getEvent( + key: 'ProxyCreationL2', + ): TypedContractEvent< + ProxyCreationL2Event.InputTuple, + ProxyCreationL2Event.OutputTuple, + ProxyCreationL2Event.OutputObject + > + + filters: { + 'ChainSpecificProxyCreationL2(address,address,bytes,uint256,uint256)': TypedContractEvent< + ChainSpecificProxyCreationL2Event.InputTuple, + ChainSpecificProxyCreationL2Event.OutputTuple, + ChainSpecificProxyCreationL2Event.OutputObject + > + ChainSpecificProxyCreationL2: TypedContractEvent< + ChainSpecificProxyCreationL2Event.InputTuple, + ChainSpecificProxyCreationL2Event.OutputTuple, + ChainSpecificProxyCreationL2Event.OutputObject + > + + 'ProxyCreation(address,address)': TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + ProxyCreation: TypedContractEvent< + ProxyCreationEvent.InputTuple, + ProxyCreationEvent.OutputTuple, + ProxyCreationEvent.OutputObject + > + + 'ProxyCreationL2(address,address,bytes,uint256)': TypedContractEvent< + ProxyCreationL2Event.InputTuple, + ProxyCreationL2Event.OutputTuple, + ProxyCreationL2Event.OutputObject + > + ProxyCreationL2: TypedContractEvent< + ProxyCreationL2Event.InputTuple, + ProxyCreationL2Event.OutputTuple, + ProxyCreationL2Event.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_to_l2_setup.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_to_l2_setup.ts new file mode 100644 index 000000000..8bc658b87 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_to_l2_setup.ts @@ -0,0 +1,106 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Safe_to_l2_setupInterface extends Interface { + getFunction(nameOrSignature: 'setupToL2'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'ChangedMasterCopy'): EventFragment + + encodeFunctionData(functionFragment: 'setupToL2', values: [AddressLike]): string + + decodeFunctionResult(functionFragment: 'setupToL2', data: BytesLike): Result +} + +export namespace ChangedMasterCopyEvent { + export type InputTuple = [singleton: AddressLike] + export type OutputTuple = [singleton: string] + export interface OutputObject { + singleton: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Safe_to_l2_setup extends BaseContract { + connect(runner?: ContractRunner | null): Safe_to_l2_setup + waitForDeployment(): Promise + + interface: Safe_to_l2_setupInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + setupToL2: TypedContractMethod<[l2Singleton: AddressLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'setupToL2'): TypedContractMethod<[l2Singleton: AddressLike], [void], 'nonpayable'> + + getEvent( + key: 'ChangedMasterCopy', + ): TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + + filters: { + 'ChangedMasterCopy(address)': TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + ChangedMasterCopy: TypedContractEvent< + ChangedMasterCopyEvent.InputTuple, + ChangedMasterCopyEvent.OutputTuple, + ChangedMasterCopyEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Sign_message_lib.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Sign_message_lib.ts new file mode 100644 index 000000000..112e6d713 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Sign_message_lib.ts @@ -0,0 +1,98 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Sign_message_libInterface extends Interface { + getFunction(nameOrSignature: 'getMessageHash' | 'signMessage'): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'SignMsg'): EventFragment + + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'signMessage', values: [BytesLike]): string + + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'signMessage', data: BytesLike): Result +} + +export namespace SignMsgEvent { + export type InputTuple = [msgHash: BytesLike] + export type OutputTuple = [msgHash: string] + export interface OutputObject { + msgHash: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface Sign_message_lib extends BaseContract { + connect(runner?: ContractRunner | null): Sign_message_lib + waitForDeployment(): Promise + + interface: Sign_message_libInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + signMessage: TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'signMessage'): TypedContractMethod<[_data: BytesLike], [void], 'nonpayable'> + + getEvent( + key: 'SignMsg', + ): TypedContractEvent + + filters: { + 'SignMsg(bytes32)': TypedContractEvent + SignMsg: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Simulate_tx_accessor.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Simulate_tx_accessor.ts new file mode 100644 index 000000000..dab8e1a95 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Simulate_tx_accessor.ts @@ -0,0 +1,92 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Simulate_tx_accessorInterface extends Interface { + getFunction(nameOrSignature: 'simulate'): FunctionFragment + + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BigNumberish, BytesLike, BigNumberish]): string + + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result +} + +export interface Simulate_tx_accessor extends BaseContract { + connect(runner?: ContractRunner | null): Simulate_tx_accessor + waitForDeployment(): Promise + + interface: Simulate_tx_accessorInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + simulate: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + }, + ], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'simulate'): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [ + [bigint, boolean, string] & { + estimate: bigint + success: boolean + returnData: string + }, + ], + 'nonpayable' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler.ts new file mode 100644 index 000000000..d2a78f419 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler.ts @@ -0,0 +1,147 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../common' + +export interface Token_callback_handlerInterface extends Interface { + getFunction( + nameOrSignature: + | 'onERC1155BatchReceived' + | 'onERC1155Received' + | 'onERC721Received' + | 'supportsInterface' + | 'tokensReceived', + ): FunctionFragment + + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike], + ): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'tokensReceived', + values: [AddressLike, AddressLike, AddressLike, 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 +} + +export interface Token_callback_handler extends BaseContract { + connect(runner?: ContractRunner | null): Token_callback_handler + waitForDeployment(): Promise + + interface: Token_callback_handlerInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + onERC1155BatchReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + tokensReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction( + nameOrSignature: 'onERC1155BatchReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC1155Received', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC721Received', + ): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'tokensReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/index.ts new file mode 100644 index 000000000..92f27fdcb --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/assets/v1.5.0/index.ts @@ -0,0 +1,16 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Compatibility_fallback_handler } from './Compatibility_fallback_handler' +export type { Create_call } from './Create_call' +export type { Extensible_fallback_handler } from './Extensible_fallback_handler' +export type { Multi_send } from './Multi_send' +export type { Multi_send_call_only } from './Multi_send_call_only' +export type { Safe } from './Safe' +export type { Safe_l2 } from './Safe_l2' +export type { Safe_migration } from './Safe_migration' +export type { Safe_proxy_factory } from './Safe_proxy_factory' +export type { Safe_to_l2_setup } from './Safe_to_l2_setup' +export type { Sign_message_lib } from './Sign_message_lib' +export type { Simulate_tx_accessor } from './Simulate_tx_accessor' +export type { Token_callback_handler } from './Token_callback_handler' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/index.ts new file mode 100644 index 000000000..219afc600 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/dist/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as assets from './assets' +export type { assets } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-deployments/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-deployments/index.ts new file mode 100644 index 000000000..a60e08d8d --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-deployments/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as dist from './dist' +export type { dist } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/index.ts new file mode 100644 index 000000000..0994cca92 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as v010 from './v0.1.0' +export type { v010 } +import type * as v011 from './v0.1.1' +export type { v011 } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule.ts new file mode 100644 index 000000000..cf59e06a6 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule.ts @@ -0,0 +1,602 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export interface AllowanceModuleInterface extends Interface { + getFunction( + nameOrSignature: + | 'ALLOWANCE_TRANSFER_TYPEHASH' + | 'DOMAIN_SEPARATOR_TYPEHASH' + | 'NAME' + | 'VERSION' + | 'allowances' + | 'delegates' + | 'delegatesStart' + | 'tokens' + | 'setAllowance' + | 'resetAllowance' + | 'deleteAllowance' + | 'executeAllowanceTransfer' + | 'getChainId' + | 'generateTransferHash' + | 'getTokens' + | 'getTokenAllowance' + | 'addDelegate' + | 'removeDelegate' + | 'getDelegates', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddDelegate' + | 'DeleteAllowance' + | 'ExecuteAllowanceTransfer' + | 'PayAllowanceTransfer' + | 'RemoveDelegate' + | 'ResetAllowance' + | 'SetAllowance', + ): EventFragment + + encodeFunctionData(functionFragment: 'ALLOWANCE_TRANSFER_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'DOMAIN_SEPARATOR_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'allowances', values: [AddressLike, AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'delegates', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'delegatesStart', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'tokens', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData( + functionFragment: 'setAllowance', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'resetAllowance', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'deleteAllowance', values: [AddressLike, AddressLike]): string + encodeFunctionData( + functionFragment: 'executeAllowanceTransfer', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, AddressLike, BigNumberish, AddressLike, BytesLike], + ): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData( + functionFragment: 'generateTransferHash', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, AddressLike, BigNumberish, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getTokens', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'getTokenAllowance', values: [AddressLike, AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'addDelegate', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'removeDelegate', values: [AddressLike, boolean]): string + encodeFunctionData(functionFragment: 'getDelegates', values: [AddressLike, BigNumberish, BigNumberish]): string + + decodeFunctionResult(functionFragment: 'ALLOWANCE_TRANSFER_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'DOMAIN_SEPARATOR_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'allowances', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'delegates', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'delegatesStart', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'tokens', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'resetAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'deleteAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'executeAllowanceTransfer', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'generateTransferHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTokens', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTokenAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addDelegate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeDelegate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getDelegates', data: BytesLike): Result +} + +export namespace AddDelegateEvent { + export type InputTuple = [safe: AddressLike, delegate: AddressLike] + export type OutputTuple = [safe: string, delegate: string] + export interface OutputObject { + safe: string + delegate: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DeleteAllowanceEvent { + export type InputTuple = [safe: AddressLike, delegate: AddressLike, token: AddressLike] + export type OutputTuple = [safe: string, delegate: string, token: string] + export interface OutputObject { + safe: string + delegate: string + token: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecuteAllowanceTransferEvent { + export type InputTuple = [ + safe: AddressLike, + delegate: AddressLike, + token: AddressLike, + to: AddressLike, + value: BigNumberish, + nonce: BigNumberish, + ] + export type OutputTuple = [safe: string, delegate: string, token: string, to: string, value: bigint, nonce: bigint] + export interface OutputObject { + safe: string + delegate: string + token: string + to: string + value: bigint + nonce: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace PayAllowanceTransferEvent { + export type InputTuple = [ + safe: AddressLike, + delegate: AddressLike, + paymentToken: AddressLike, + paymentReceiver: AddressLike, + payment: BigNumberish, + ] + export type OutputTuple = [ + safe: string, + delegate: string, + paymentToken: string, + paymentReceiver: string, + payment: bigint, + ] + export interface OutputObject { + safe: string + delegate: string + paymentToken: string + paymentReceiver: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemoveDelegateEvent { + export type InputTuple = [safe: AddressLike, delegate: AddressLike] + export type OutputTuple = [safe: string, delegate: string] + export interface OutputObject { + safe: string + delegate: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ResetAllowanceEvent { + export type InputTuple = [safe: AddressLike, delegate: AddressLike, token: AddressLike] + export type OutputTuple = [safe: string, delegate: string, token: string] + export interface OutputObject { + safe: string + delegate: string + token: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SetAllowanceEvent { + export type InputTuple = [ + safe: AddressLike, + delegate: AddressLike, + token: AddressLike, + allowanceAmount: BigNumberish, + resetTime: BigNumberish, + ] + export type OutputTuple = [safe: string, delegate: string, token: string, allowanceAmount: bigint, resetTime: bigint] + export interface OutputObject { + safe: string + delegate: string + token: string + allowanceAmount: bigint + resetTime: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface AllowanceModule extends BaseContract { + connect(runner?: ContractRunner | null): AllowanceModule + waitForDeployment(): Promise + + interface: AllowanceModuleInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + ALLOWANCE_TRANSFER_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + DOMAIN_SEPARATOR_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + allowances: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike], + [ + [bigint, bigint, bigint, bigint, bigint] & { + amount: bigint + spent: bigint + resetTimeMin: bigint + lastResetMin: bigint + nonce: bigint + }, + ], + 'view' + > + + delegates: TypedContractMethod< + [arg0: AddressLike, arg1: BigNumberish], + [ + [string, bigint, bigint] & { + delegate: string + prev: bigint + next: bigint + }, + ], + 'view' + > + + delegatesStart: TypedContractMethod<[arg0: AddressLike], [bigint], 'view'> + + tokens: TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish], [string], 'view'> + + setAllowance: TypedContractMethod< + [ + delegate: AddressLike, + token: AddressLike, + allowanceAmount: BigNumberish, + resetTimeMin: BigNumberish, + resetBaseMin: BigNumberish, + ], + [void], + 'nonpayable' + > + + resetAllowance: TypedContractMethod<[delegate: AddressLike, token: AddressLike], [void], 'nonpayable'> + + deleteAllowance: TypedContractMethod<[delegate: AddressLike, token: AddressLike], [void], 'nonpayable'> + + executeAllowanceTransfer: TypedContractMethod< + [ + safe: AddressLike, + token: AddressLike, + to: AddressLike, + amount: BigNumberish, + paymentToken: AddressLike, + payment: BigNumberish, + delegate: AddressLike, + signature: BytesLike, + ], + [void], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + generateTransferHash: TypedContractMethod< + [ + safe: AddressLike, + token: AddressLike, + to: AddressLike, + amount: BigNumberish, + paymentToken: AddressLike, + payment: BigNumberish, + nonce: BigNumberish, + ], + [string], + 'view' + > + + getTokens: TypedContractMethod<[safe: AddressLike, delegate: AddressLike], [string[]], 'view'> + + getTokenAllowance: TypedContractMethod< + [safe: AddressLike, delegate: AddressLike, token: AddressLike], + [[bigint, bigint, bigint, bigint, bigint]], + 'view' + > + + addDelegate: TypedContractMethod<[delegate: AddressLike], [void], 'nonpayable'> + + removeDelegate: TypedContractMethod<[delegate: AddressLike, removeAllowances: boolean], [void], 'nonpayable'> + + getDelegates: TypedContractMethod< + [safe: AddressLike, start: BigNumberish, pageSize: BigNumberish], + [[string[], bigint] & { results: string[]; next: bigint }], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'ALLOWANCE_TRANSFER_TYPEHASH'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'DOMAIN_SEPARATOR_TYPEHASH'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'allowances'): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike], + [ + [bigint, bigint, bigint, bigint, bigint] & { + amount: bigint + spent: bigint + resetTimeMin: bigint + lastResetMin: bigint + nonce: bigint + }, + ], + 'view' + > + getFunction(nameOrSignature: 'delegates'): TypedContractMethod< + [arg0: AddressLike, arg1: BigNumberish], + [ + [string, bigint, bigint] & { + delegate: string + prev: bigint + next: bigint + }, + ], + 'view' + > + getFunction(nameOrSignature: 'delegatesStart'): TypedContractMethod<[arg0: AddressLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'tokens', + ): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish], [string], 'view'> + getFunction( + nameOrSignature: 'setAllowance', + ): TypedContractMethod< + [ + delegate: AddressLike, + token: AddressLike, + allowanceAmount: BigNumberish, + resetTimeMin: BigNumberish, + resetBaseMin: BigNumberish, + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'resetAllowance', + ): TypedContractMethod<[delegate: AddressLike, token: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'deleteAllowance', + ): TypedContractMethod<[delegate: AddressLike, token: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'executeAllowanceTransfer', + ): TypedContractMethod< + [ + safe: AddressLike, + token: AddressLike, + to: AddressLike, + amount: BigNumberish, + paymentToken: AddressLike, + payment: BigNumberish, + delegate: AddressLike, + signature: BytesLike, + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'generateTransferHash', + ): TypedContractMethod< + [ + safe: AddressLike, + token: AddressLike, + to: AddressLike, + amount: BigNumberish, + paymentToken: AddressLike, + payment: BigNumberish, + nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'getTokens', + ): TypedContractMethod<[safe: AddressLike, delegate: AddressLike], [string[]], 'view'> + getFunction( + nameOrSignature: 'getTokenAllowance', + ): TypedContractMethod< + [safe: AddressLike, delegate: AddressLike, token: AddressLike], + [[bigint, bigint, bigint, bigint, bigint]], + 'view' + > + getFunction(nameOrSignature: 'addDelegate'): TypedContractMethod<[delegate: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'removeDelegate', + ): TypedContractMethod<[delegate: AddressLike, removeAllowances: boolean], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'getDelegates', + ): TypedContractMethod< + [safe: AddressLike, start: BigNumberish, pageSize: BigNumberish], + [[string[], bigint] & { results: string[]; next: bigint }], + 'view' + > + + getEvent( + key: 'AddDelegate', + ): TypedContractEvent + getEvent( + key: 'DeleteAllowance', + ): TypedContractEvent< + DeleteAllowanceEvent.InputTuple, + DeleteAllowanceEvent.OutputTuple, + DeleteAllowanceEvent.OutputObject + > + getEvent( + key: 'ExecuteAllowanceTransfer', + ): TypedContractEvent< + ExecuteAllowanceTransferEvent.InputTuple, + ExecuteAllowanceTransferEvent.OutputTuple, + ExecuteAllowanceTransferEvent.OutputObject + > + getEvent( + key: 'PayAllowanceTransfer', + ): TypedContractEvent< + PayAllowanceTransferEvent.InputTuple, + PayAllowanceTransferEvent.OutputTuple, + PayAllowanceTransferEvent.OutputObject + > + getEvent( + key: 'RemoveDelegate', + ): TypedContractEvent< + RemoveDelegateEvent.InputTuple, + RemoveDelegateEvent.OutputTuple, + RemoveDelegateEvent.OutputObject + > + getEvent( + key: 'ResetAllowance', + ): TypedContractEvent< + ResetAllowanceEvent.InputTuple, + ResetAllowanceEvent.OutputTuple, + ResetAllowanceEvent.OutputObject + > + getEvent( + key: 'SetAllowance', + ): TypedContractEvent + + filters: { + 'AddDelegate(address,address)': TypedContractEvent< + AddDelegateEvent.InputTuple, + AddDelegateEvent.OutputTuple, + AddDelegateEvent.OutputObject + > + AddDelegate: TypedContractEvent< + AddDelegateEvent.InputTuple, + AddDelegateEvent.OutputTuple, + AddDelegateEvent.OutputObject + > + + 'DeleteAllowance(address,address,address)': TypedContractEvent< + DeleteAllowanceEvent.InputTuple, + DeleteAllowanceEvent.OutputTuple, + DeleteAllowanceEvent.OutputObject + > + DeleteAllowance: TypedContractEvent< + DeleteAllowanceEvent.InputTuple, + DeleteAllowanceEvent.OutputTuple, + DeleteAllowanceEvent.OutputObject + > + + 'ExecuteAllowanceTransfer(address,address,address,address,uint96,uint16)': TypedContractEvent< + ExecuteAllowanceTransferEvent.InputTuple, + ExecuteAllowanceTransferEvent.OutputTuple, + ExecuteAllowanceTransferEvent.OutputObject + > + ExecuteAllowanceTransfer: TypedContractEvent< + ExecuteAllowanceTransferEvent.InputTuple, + ExecuteAllowanceTransferEvent.OutputTuple, + ExecuteAllowanceTransferEvent.OutputObject + > + + 'PayAllowanceTransfer(address,address,address,address,uint96)': TypedContractEvent< + PayAllowanceTransferEvent.InputTuple, + PayAllowanceTransferEvent.OutputTuple, + PayAllowanceTransferEvent.OutputObject + > + PayAllowanceTransfer: TypedContractEvent< + PayAllowanceTransferEvent.InputTuple, + PayAllowanceTransferEvent.OutputTuple, + PayAllowanceTransferEvent.OutputObject + > + + 'RemoveDelegate(address,address)': TypedContractEvent< + RemoveDelegateEvent.InputTuple, + RemoveDelegateEvent.OutputTuple, + RemoveDelegateEvent.OutputObject + > + RemoveDelegate: TypedContractEvent< + RemoveDelegateEvent.InputTuple, + RemoveDelegateEvent.OutputTuple, + RemoveDelegateEvent.OutputObject + > + + 'ResetAllowance(address,address,address)': TypedContractEvent< + ResetAllowanceEvent.InputTuple, + ResetAllowanceEvent.OutputTuple, + ResetAllowanceEvent.OutputObject + > + ResetAllowance: TypedContractEvent< + ResetAllowanceEvent.InputTuple, + ResetAllowanceEvent.OutputTuple, + ResetAllowanceEvent.OutputObject + > + + 'SetAllowance(address,address,address,uint96,uint16)': TypedContractEvent< + SetAllowanceEvent.InputTuple, + SetAllowanceEvent.OutputTuple, + SetAllowanceEvent.OutputObject + > + SetAllowance: TypedContractEvent< + SetAllowanceEvent.InputTuple, + SetAllowanceEvent.OutputTuple, + SetAllowanceEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/index.ts new file mode 100644 index 000000000..77205bc23 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { AllowanceModule } from './AllowanceModule' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/AllowanceModule.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/AllowanceModule.ts new file mode 100644 index 000000000..cf59e06a6 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/AllowanceModule.ts @@ -0,0 +1,602 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export interface AllowanceModuleInterface extends Interface { + getFunction( + nameOrSignature: + | 'ALLOWANCE_TRANSFER_TYPEHASH' + | 'DOMAIN_SEPARATOR_TYPEHASH' + | 'NAME' + | 'VERSION' + | 'allowances' + | 'delegates' + | 'delegatesStart' + | 'tokens' + | 'setAllowance' + | 'resetAllowance' + | 'deleteAllowance' + | 'executeAllowanceTransfer' + | 'getChainId' + | 'generateTransferHash' + | 'getTokens' + | 'getTokenAllowance' + | 'addDelegate' + | 'removeDelegate' + | 'getDelegates', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'AddDelegate' + | 'DeleteAllowance' + | 'ExecuteAllowanceTransfer' + | 'PayAllowanceTransfer' + | 'RemoveDelegate' + | 'ResetAllowance' + | 'SetAllowance', + ): EventFragment + + encodeFunctionData(functionFragment: 'ALLOWANCE_TRANSFER_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'DOMAIN_SEPARATOR_TYPEHASH', values?: undefined): string + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'allowances', values: [AddressLike, AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'delegates', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'delegatesStart', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'tokens', values: [AddressLike, AddressLike, BigNumberish]): string + encodeFunctionData( + functionFragment: 'setAllowance', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'resetAllowance', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'deleteAllowance', values: [AddressLike, AddressLike]): string + encodeFunctionData( + functionFragment: 'executeAllowanceTransfer', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, AddressLike, BigNumberish, AddressLike, BytesLike], + ): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData( + functionFragment: 'generateTransferHash', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, AddressLike, BigNumberish, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getTokens', values: [AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'getTokenAllowance', values: [AddressLike, AddressLike, AddressLike]): string + encodeFunctionData(functionFragment: 'addDelegate', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'removeDelegate', values: [AddressLike, boolean]): string + encodeFunctionData(functionFragment: 'getDelegates', values: [AddressLike, BigNumberish, BigNumberish]): string + + decodeFunctionResult(functionFragment: 'ALLOWANCE_TRANSFER_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'DOMAIN_SEPARATOR_TYPEHASH', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'allowances', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'delegates', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'delegatesStart', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'tokens', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'setAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'resetAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'deleteAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'executeAllowanceTransfer', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'generateTransferHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTokens', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getTokenAllowance', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addDelegate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'removeDelegate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getDelegates', data: BytesLike): Result +} + +export namespace AddDelegateEvent { + export type InputTuple = [safe: AddressLike, delegate: AddressLike] + export type OutputTuple = [safe: string, delegate: string] + export interface OutputObject { + safe: string + delegate: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace DeleteAllowanceEvent { + export type InputTuple = [safe: AddressLike, delegate: AddressLike, token: AddressLike] + export type OutputTuple = [safe: string, delegate: string, token: string] + export interface OutputObject { + safe: string + delegate: string + token: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ExecuteAllowanceTransferEvent { + export type InputTuple = [ + safe: AddressLike, + delegate: AddressLike, + token: AddressLike, + to: AddressLike, + value: BigNumberish, + nonce: BigNumberish, + ] + export type OutputTuple = [safe: string, delegate: string, token: string, to: string, value: bigint, nonce: bigint] + export interface OutputObject { + safe: string + delegate: string + token: string + to: string + value: bigint + nonce: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace PayAllowanceTransferEvent { + export type InputTuple = [ + safe: AddressLike, + delegate: AddressLike, + paymentToken: AddressLike, + paymentReceiver: AddressLike, + payment: BigNumberish, + ] + export type OutputTuple = [ + safe: string, + delegate: string, + paymentToken: string, + paymentReceiver: string, + payment: bigint, + ] + export interface OutputObject { + safe: string + delegate: string + paymentToken: string + paymentReceiver: string + payment: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RemoveDelegateEvent { + export type InputTuple = [safe: AddressLike, delegate: AddressLike] + export type OutputTuple = [safe: string, delegate: string] + export interface OutputObject { + safe: string + delegate: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace ResetAllowanceEvent { + export type InputTuple = [safe: AddressLike, delegate: AddressLike, token: AddressLike] + export type OutputTuple = [safe: string, delegate: string, token: string] + export interface OutputObject { + safe: string + delegate: string + token: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace SetAllowanceEvent { + export type InputTuple = [ + safe: AddressLike, + delegate: AddressLike, + token: AddressLike, + allowanceAmount: BigNumberish, + resetTime: BigNumberish, + ] + export type OutputTuple = [safe: string, delegate: string, token: string, allowanceAmount: bigint, resetTime: bigint] + export interface OutputObject { + safe: string + delegate: string + token: string + allowanceAmount: bigint + resetTime: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface AllowanceModule extends BaseContract { + connect(runner?: ContractRunner | null): AllowanceModule + waitForDeployment(): Promise + + interface: AllowanceModuleInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + ALLOWANCE_TRANSFER_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + DOMAIN_SEPARATOR_TYPEHASH: TypedContractMethod<[], [string], 'view'> + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + allowances: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike], + [ + [bigint, bigint, bigint, bigint, bigint] & { + amount: bigint + spent: bigint + resetTimeMin: bigint + lastResetMin: bigint + nonce: bigint + }, + ], + 'view' + > + + delegates: TypedContractMethod< + [arg0: AddressLike, arg1: BigNumberish], + [ + [string, bigint, bigint] & { + delegate: string + prev: bigint + next: bigint + }, + ], + 'view' + > + + delegatesStart: TypedContractMethod<[arg0: AddressLike], [bigint], 'view'> + + tokens: TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish], [string], 'view'> + + setAllowance: TypedContractMethod< + [ + delegate: AddressLike, + token: AddressLike, + allowanceAmount: BigNumberish, + resetTimeMin: BigNumberish, + resetBaseMin: BigNumberish, + ], + [void], + 'nonpayable' + > + + resetAllowance: TypedContractMethod<[delegate: AddressLike, token: AddressLike], [void], 'nonpayable'> + + deleteAllowance: TypedContractMethod<[delegate: AddressLike, token: AddressLike], [void], 'nonpayable'> + + executeAllowanceTransfer: TypedContractMethod< + [ + safe: AddressLike, + token: AddressLike, + to: AddressLike, + amount: BigNumberish, + paymentToken: AddressLike, + payment: BigNumberish, + delegate: AddressLike, + signature: BytesLike, + ], + [void], + 'nonpayable' + > + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + generateTransferHash: TypedContractMethod< + [ + safe: AddressLike, + token: AddressLike, + to: AddressLike, + amount: BigNumberish, + paymentToken: AddressLike, + payment: BigNumberish, + nonce: BigNumberish, + ], + [string], + 'view' + > + + getTokens: TypedContractMethod<[safe: AddressLike, delegate: AddressLike], [string[]], 'view'> + + getTokenAllowance: TypedContractMethod< + [safe: AddressLike, delegate: AddressLike, token: AddressLike], + [[bigint, bigint, bigint, bigint, bigint]], + 'view' + > + + addDelegate: TypedContractMethod<[delegate: AddressLike], [void], 'nonpayable'> + + removeDelegate: TypedContractMethod<[delegate: AddressLike, removeAllowances: boolean], [void], 'nonpayable'> + + getDelegates: TypedContractMethod< + [safe: AddressLike, start: BigNumberish, pageSize: BigNumberish], + [[string[], bigint] & { results: string[]; next: bigint }], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'ALLOWANCE_TRANSFER_TYPEHASH'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'DOMAIN_SEPARATOR_TYPEHASH'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'allowances'): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike], + [ + [bigint, bigint, bigint, bigint, bigint] & { + amount: bigint + spent: bigint + resetTimeMin: bigint + lastResetMin: bigint + nonce: bigint + }, + ], + 'view' + > + getFunction(nameOrSignature: 'delegates'): TypedContractMethod< + [arg0: AddressLike, arg1: BigNumberish], + [ + [string, bigint, bigint] & { + delegate: string + prev: bigint + next: bigint + }, + ], + 'view' + > + getFunction(nameOrSignature: 'delegatesStart'): TypedContractMethod<[arg0: AddressLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'tokens', + ): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish], [string], 'view'> + getFunction( + nameOrSignature: 'setAllowance', + ): TypedContractMethod< + [ + delegate: AddressLike, + token: AddressLike, + allowanceAmount: BigNumberish, + resetTimeMin: BigNumberish, + resetBaseMin: BigNumberish, + ], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'resetAllowance', + ): TypedContractMethod<[delegate: AddressLike, token: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'deleteAllowance', + ): TypedContractMethod<[delegate: AddressLike, token: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'executeAllowanceTransfer', + ): TypedContractMethod< + [ + safe: AddressLike, + token: AddressLike, + to: AddressLike, + amount: BigNumberish, + paymentToken: AddressLike, + payment: BigNumberish, + delegate: AddressLike, + signature: BytesLike, + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'generateTransferHash', + ): TypedContractMethod< + [ + safe: AddressLike, + token: AddressLike, + to: AddressLike, + amount: BigNumberish, + paymentToken: AddressLike, + payment: BigNumberish, + nonce: BigNumberish, + ], + [string], + 'view' + > + getFunction( + nameOrSignature: 'getTokens', + ): TypedContractMethod<[safe: AddressLike, delegate: AddressLike], [string[]], 'view'> + getFunction( + nameOrSignature: 'getTokenAllowance', + ): TypedContractMethod< + [safe: AddressLike, delegate: AddressLike, token: AddressLike], + [[bigint, bigint, bigint, bigint, bigint]], + 'view' + > + getFunction(nameOrSignature: 'addDelegate'): TypedContractMethod<[delegate: AddressLike], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'removeDelegate', + ): TypedContractMethod<[delegate: AddressLike, removeAllowances: boolean], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'getDelegates', + ): TypedContractMethod< + [safe: AddressLike, start: BigNumberish, pageSize: BigNumberish], + [[string[], bigint] & { results: string[]; next: bigint }], + 'view' + > + + getEvent( + key: 'AddDelegate', + ): TypedContractEvent + getEvent( + key: 'DeleteAllowance', + ): TypedContractEvent< + DeleteAllowanceEvent.InputTuple, + DeleteAllowanceEvent.OutputTuple, + DeleteAllowanceEvent.OutputObject + > + getEvent( + key: 'ExecuteAllowanceTransfer', + ): TypedContractEvent< + ExecuteAllowanceTransferEvent.InputTuple, + ExecuteAllowanceTransferEvent.OutputTuple, + ExecuteAllowanceTransferEvent.OutputObject + > + getEvent( + key: 'PayAllowanceTransfer', + ): TypedContractEvent< + PayAllowanceTransferEvent.InputTuple, + PayAllowanceTransferEvent.OutputTuple, + PayAllowanceTransferEvent.OutputObject + > + getEvent( + key: 'RemoveDelegate', + ): TypedContractEvent< + RemoveDelegateEvent.InputTuple, + RemoveDelegateEvent.OutputTuple, + RemoveDelegateEvent.OutputObject + > + getEvent( + key: 'ResetAllowance', + ): TypedContractEvent< + ResetAllowanceEvent.InputTuple, + ResetAllowanceEvent.OutputTuple, + ResetAllowanceEvent.OutputObject + > + getEvent( + key: 'SetAllowance', + ): TypedContractEvent + + filters: { + 'AddDelegate(address,address)': TypedContractEvent< + AddDelegateEvent.InputTuple, + AddDelegateEvent.OutputTuple, + AddDelegateEvent.OutputObject + > + AddDelegate: TypedContractEvent< + AddDelegateEvent.InputTuple, + AddDelegateEvent.OutputTuple, + AddDelegateEvent.OutputObject + > + + 'DeleteAllowance(address,address,address)': TypedContractEvent< + DeleteAllowanceEvent.InputTuple, + DeleteAllowanceEvent.OutputTuple, + DeleteAllowanceEvent.OutputObject + > + DeleteAllowance: TypedContractEvent< + DeleteAllowanceEvent.InputTuple, + DeleteAllowanceEvent.OutputTuple, + DeleteAllowanceEvent.OutputObject + > + + 'ExecuteAllowanceTransfer(address,address,address,address,uint96,uint16)': TypedContractEvent< + ExecuteAllowanceTransferEvent.InputTuple, + ExecuteAllowanceTransferEvent.OutputTuple, + ExecuteAllowanceTransferEvent.OutputObject + > + ExecuteAllowanceTransfer: TypedContractEvent< + ExecuteAllowanceTransferEvent.InputTuple, + ExecuteAllowanceTransferEvent.OutputTuple, + ExecuteAllowanceTransferEvent.OutputObject + > + + 'PayAllowanceTransfer(address,address,address,address,uint96)': TypedContractEvent< + PayAllowanceTransferEvent.InputTuple, + PayAllowanceTransferEvent.OutputTuple, + PayAllowanceTransferEvent.OutputObject + > + PayAllowanceTransfer: TypedContractEvent< + PayAllowanceTransferEvent.InputTuple, + PayAllowanceTransferEvent.OutputTuple, + PayAllowanceTransferEvent.OutputObject + > + + 'RemoveDelegate(address,address)': TypedContractEvent< + RemoveDelegateEvent.InputTuple, + RemoveDelegateEvent.OutputTuple, + RemoveDelegateEvent.OutputObject + > + RemoveDelegate: TypedContractEvent< + RemoveDelegateEvent.InputTuple, + RemoveDelegateEvent.OutputTuple, + RemoveDelegateEvent.OutputObject + > + + 'ResetAllowance(address,address,address)': TypedContractEvent< + ResetAllowanceEvent.InputTuple, + ResetAllowanceEvent.OutputTuple, + ResetAllowanceEvent.OutputObject + > + ResetAllowance: TypedContractEvent< + ResetAllowanceEvent.InputTuple, + ResetAllowanceEvent.OutputTuple, + ResetAllowanceEvent.OutputObject + > + + 'SetAllowance(address,address,address,uint96,uint16)': TypedContractEvent< + SetAllowanceEvent.InputTuple, + SetAllowanceEvent.OutputTuple, + SetAllowanceEvent.OutputObject + > + SetAllowance: TypedContractEvent< + SetAllowanceEvent.InputTuple, + SetAllowanceEvent.OutputTuple, + SetAllowanceEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/index.ts new file mode 100644 index 000000000..77205bc23 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { AllowanceModule } from './AllowanceModule' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/index.ts new file mode 100644 index 000000000..928cfa3dc --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/index.ts @@ -0,0 +1,11 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as allowanceModule from './allowance-module' +export type { allowanceModule } +import type * as safe4337Module from './safe-4337-module' +export type { safe4337Module } +import type * as safePasskeyModule from './safe-passkey-module' +export type { safePasskeyModule } +import type * as safeRecoveryModule from './safe-recovery-module' +export type { safeRecoveryModule } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/index.ts new file mode 100644 index 000000000..1e0f1e4c6 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as v020 from './v0.2.0' +export type { v020 } +import type * as v030 from './v0.3.0' +export type { v030 } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib.ts new file mode 100644 index 000000000..9486a9cd5 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib.ts @@ -0,0 +1,71 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export interface AddModulesLibInterface extends Interface { + getFunction(nameOrSignature: 'enableModules'): FunctionFragment + + encodeFunctionData(functionFragment: 'enableModules', values: [AddressLike[]]): string + + decodeFunctionResult(functionFragment: 'enableModules', data: BytesLike): Result +} + +export interface AddModulesLib extends BaseContract { + connect(runner?: ContractRunner | null): AddModulesLib + waitForDeployment(): Promise + + interface: AddModulesLibInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + enableModules: TypedContractMethod<[modules: AddressLike[]], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'enableModules'): TypedContractMethod<[modules: AddressLike[]], [void], 'nonpayable'> + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module.ts new file mode 100644 index 000000000..4549074a1 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module.ts @@ -0,0 +1,315 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export type UserOperationStruct = { + sender: AddressLike + nonce: BigNumberish + initCode: BytesLike + callData: BytesLike + callGasLimit: BigNumberish + verificationGasLimit: BigNumberish + preVerificationGas: BigNumberish + maxFeePerGas: BigNumberish + maxPriorityFeePerGas: BigNumberish + paymasterAndData: BytesLike + signature: BytesLike +} + +export type UserOperationStructOutput = [ + sender: string, + nonce: bigint, + initCode: string, + callData: string, + callGasLimit: bigint, + verificationGasLimit: bigint, + preVerificationGas: bigint, + maxFeePerGas: bigint, + maxPriorityFeePerGas: bigint, + paymasterAndData: string, + signature: string, +] & { + sender: string + nonce: bigint + initCode: string + callData: string + callGasLimit: bigint + verificationGasLimit: bigint + preVerificationGas: bigint + maxFeePerGas: bigint + maxPriorityFeePerGas: bigint + paymasterAndData: string + signature: string +} + +export interface Safe4337ModuleInterface extends Interface { + getFunction( + nameOrSignature: + | 'SUPPORTED_ENTRYPOINT' + | 'domainSeparator' + | 'encodeMessageDataForSafe' + | 'executeUserOp' + | 'executeUserOpWithErrorString' + | 'getMessageHash' + | 'getMessageHashForSafe' + | 'getModules' + | 'getOperationHash' + | 'isValidSignature(bytes32,bytes)' + | 'isValidSignature(bytes,bytes)' + | 'onERC1155BatchReceived' + | 'onERC1155Received' + | 'onERC721Received' + | 'simulate' + | 'supportsInterface' + | 'tokensReceived' + | 'validateUserOp', + ): FunctionFragment + + encodeFunctionData(functionFragment: 'SUPPORTED_ENTRYPOINT', values?: undefined): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'encodeMessageDataForSafe', values: [AddressLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'executeUserOp', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'executeUserOpWithErrorString', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHashForSafe', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData(functionFragment: 'getOperationHash', values: [UserOperationStruct]): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes32,bytes)', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes,bytes)', values: [BytesLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike], + ): string + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'tokensReceived', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike, BytesLike], + ): string + encodeFunctionData(functionFragment: 'validateUserOp', values: [UserOperationStruct, BytesLike, BigNumberish]): string + + decodeFunctionResult(functionFragment: 'SUPPORTED_ENTRYPOINT', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeMessageDataForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'executeUserOp', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'executeUserOpWithErrorString', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHashForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOperationHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes32,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155BatchReceived', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC721Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'tokensReceived', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'validateUserOp', data: BytesLike): Result +} + +export interface Safe4337Module extends BaseContract { + connect(runner?: ContractRunner | null): Safe4337Module + waitForDeployment(): Promise + + interface: Safe4337ModuleInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + SUPPORTED_ENTRYPOINT: TypedContractMethod<[], [string], 'view'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + encodeMessageDataForSafe: TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + + executeUserOp: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [void], + 'nonpayable' + > + + executeUserOpWithErrorString: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [void], + 'nonpayable' + > + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + getMessageHashForSafe: TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + + getModules: TypedContractMethod<[], [string[]], 'view'> + + getOperationHash: TypedContractMethod<[userOp: UserOperationStruct], [string], 'view'> + + 'isValidSignature(bytes32,bytes)': TypedContractMethod< + [_dataHash: BytesLike, _signature: BytesLike], + [string], + 'view' + > + + 'isValidSignature(bytes,bytes)': TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + + onERC1155BatchReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + + simulate: TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + tokensReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + validateUserOp: TypedContractMethod< + [userOp: UserOperationStruct, arg1: BytesLike, missingAccountFunds: BigNumberish], + [bigint], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'SUPPORTED_ENTRYPOINT'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'encodeMessageDataForSafe', + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'executeUserOp', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'executeUserOpWithErrorString', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'getMessageHashForSafe', + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction(nameOrSignature: 'getOperationHash'): TypedContractMethod<[userOp: UserOperationStruct], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes32,bytes)', + ): TypedContractMethod<[_dataHash: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes,bytes)', + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'onERC1155BatchReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC1155Received', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC721Received', + ): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'simulate', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'tokensReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + getFunction( + nameOrSignature: 'validateUserOp', + ): TypedContractMethod< + [userOp: UserOperationStruct, arg1: BytesLike, missingAccountFunds: BigNumberish], + [bigint], + 'nonpayable' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/index.ts new file mode 100644 index 000000000..9899474a4 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { AddModulesLib } from './AddModulesLib' +export type { Safe4337Module } from './Safe4337Module' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/Safe4337Module.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/Safe4337Module.ts new file mode 100644 index 000000000..1cb18c935 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/Safe4337Module.ts @@ -0,0 +1,314 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export type PackedUserOperationStruct = { + sender: AddressLike + nonce: BigNumberish + initCode: BytesLike + callData: BytesLike + accountGasLimits: BytesLike + preVerificationGas: BigNumberish + gasFees: BytesLike + paymasterAndData: BytesLike + signature: BytesLike +} + +export type PackedUserOperationStructOutput = [ + sender: string, + nonce: bigint, + initCode: string, + callData: string, + accountGasLimits: string, + preVerificationGas: bigint, + gasFees: string, + paymasterAndData: string, + signature: string, +] & { + sender: string + nonce: bigint + initCode: string + callData: string + accountGasLimits: string + preVerificationGas: bigint + gasFees: string + paymasterAndData: string + signature: string +} + +export interface Safe4337ModuleInterface extends Interface { + getFunction( + nameOrSignature: + | 'SUPPORTED_ENTRYPOINT' + | 'domainSeparator' + | 'encodeMessageDataForSafe' + | 'executeUserOp' + | 'executeUserOpWithErrorString' + | 'getMessageHash' + | 'getMessageHashForSafe' + | 'getModules' + | 'getOperationHash' + | 'isValidSignature(bytes32,bytes)' + | 'isValidSignature(bytes,bytes)' + | 'onERC1155BatchReceived' + | 'onERC1155Received' + | 'onERC721Received' + | 'simulate' + | 'supportsInterface' + | 'tokensReceived' + | 'validateUserOp', + ): FunctionFragment + + encodeFunctionData(functionFragment: 'SUPPORTED_ENTRYPOINT', values?: undefined): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData(functionFragment: 'encodeMessageDataForSafe', values: [AddressLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'executeUserOp', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'executeUserOpWithErrorString', + values: [AddressLike, BigNumberish, BytesLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getMessageHash', values: [BytesLike]): string + encodeFunctionData(functionFragment: 'getMessageHashForSafe', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'getModules', values?: undefined): string + encodeFunctionData(functionFragment: 'getOperationHash', values: [PackedUserOperationStruct]): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes32,bytes)', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes,bytes)', values: [BytesLike, BytesLike]): string + encodeFunctionData( + functionFragment: 'onERC1155BatchReceived', + values: [AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC1155Received', + values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'onERC721Received', + values: [AddressLike, AddressLike, BigNumberish, BytesLike], + ): string + encodeFunctionData(functionFragment: 'simulate', values: [AddressLike, BytesLike]): string + encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string + encodeFunctionData( + functionFragment: 'tokensReceived', + values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike, BytesLike], + ): string + encodeFunctionData( + functionFragment: 'validateUserOp', + values: [PackedUserOperationStruct, BytesLike, BigNumberish], + ): string + + decodeFunctionResult(functionFragment: 'SUPPORTED_ENTRYPOINT', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeMessageDataForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'executeUserOp', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'executeUserOpWithErrorString', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getMessageHashForSafe', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getModules', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getOperationHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes32,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155BatchReceived', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC1155Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'onERC721Received', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'simulate', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'tokensReceived', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'validateUserOp', data: BytesLike): Result +} + +export interface Safe4337Module extends BaseContract { + connect(runner?: ContractRunner | null): Safe4337Module + waitForDeployment(): Promise + + interface: Safe4337ModuleInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + SUPPORTED_ENTRYPOINT: TypedContractMethod<[], [string], 'view'> + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + encodeMessageDataForSafe: TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + + executeUserOp: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [void], + 'nonpayable' + > + + executeUserOpWithErrorString: TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [void], + 'nonpayable' + > + + getMessageHash: TypedContractMethod<[message: BytesLike], [string], 'view'> + + getMessageHashForSafe: TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + + getModules: TypedContractMethod<[], [string[]], 'view'> + + getOperationHash: TypedContractMethod<[userOp: PackedUserOperationStruct], [string], 'view'> + + 'isValidSignature(bytes32,bytes)': TypedContractMethod< + [_dataHash: BytesLike, _signature: BytesLike], + [string], + 'view' + > + + 'isValidSignature(bytes,bytes)': TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + + onERC1155BatchReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + + onERC1155Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + + onERC721Received: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], + [string], + 'view' + > + + simulate: TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + + supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + + tokensReceived: TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + + validateUserOp: TypedContractMethod< + [userOp: PackedUserOperationStruct, arg1: BytesLike, missingAccountFunds: BigNumberish], + [bigint], + 'nonpayable' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'SUPPORTED_ENTRYPOINT'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'encodeMessageDataForSafe', + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'executeUserOp', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [void], + 'nonpayable' + > + getFunction( + nameOrSignature: 'executeUserOpWithErrorString', + ): TypedContractMethod< + [to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'getMessageHash'): TypedContractMethod<[message: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'getMessageHashForSafe', + ): TypedContractMethod<[safe: AddressLike, message: BytesLike], [string], 'view'> + getFunction(nameOrSignature: 'getModules'): TypedContractMethod<[], [string[]], 'view'> + getFunction( + nameOrSignature: 'getOperationHash', + ): TypedContractMethod<[userOp: PackedUserOperationStruct], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes32,bytes)', + ): TypedContractMethod<[_dataHash: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes,bytes)', + ): TypedContractMethod<[_data: BytesLike, _signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'onERC1155BatchReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC1155Received', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike], + [string], + 'view' + > + getFunction( + nameOrSignature: 'onERC721Received', + ): TypedContractMethod<[arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'simulate', + ): TypedContractMethod<[targetContract: AddressLike, calldataPayload: BytesLike], [string], 'nonpayable'> + getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'tokensReceived', + ): TypedContractMethod< + [arg0: AddressLike, arg1: AddressLike, arg2: AddressLike, arg3: BigNumberish, arg4: BytesLike, arg5: BytesLike], + [void], + 'view' + > + getFunction( + nameOrSignature: 'validateUserOp', + ): TypedContractMethod< + [userOp: PackedUserOperationStruct, arg1: BytesLike, missingAccountFunds: BigNumberish], + [bigint], + 'nonpayable' + > + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup.ts new file mode 100644 index 000000000..c78012f41 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup.ts @@ -0,0 +1,71 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BytesLike, + FunctionFragment, + Result, + Interface, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export interface SafeModuleSetupInterface extends Interface { + getFunction(nameOrSignature: 'enableModules'): FunctionFragment + + encodeFunctionData(functionFragment: 'enableModules', values: [AddressLike[]]): string + + decodeFunctionResult(functionFragment: 'enableModules', data: BytesLike): Result +} + +export interface SafeModuleSetup extends BaseContract { + connect(runner?: ContractRunner | null): SafeModuleSetup + waitForDeployment(): Promise + + interface: SafeModuleSetupInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + enableModules: TypedContractMethod<[modules: AddressLike[]], [void], 'nonpayable'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'enableModules'): TypedContractMethod<[modules: AddressLike[]], [void], 'nonpayable'> + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/index.ts new file mode 100644 index 000000000..7763cd238 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { Safe4337Module } from './Safe4337Module' +export type { SafeModuleSetup } from './SafeModuleSetup' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/index.ts new file mode 100644 index 000000000..17db86214 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as v020 from './v0.2.0' +export type { v020 } +import type * as v021 from './v0.2.1' +export type { v021 } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier.ts new file mode 100644 index 000000000..e7efa84c3 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier.ts @@ -0,0 +1,50 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, +} from '../../../../../../common' + +export interface DaimoP256VerifierInterface extends Interface {} + +export interface DaimoP256Verifier extends BaseContract { + connect(runner?: ContractRunner | null): DaimoP256Verifier + waitForDeployment(): Promise + + interface: DaimoP256VerifierInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + getFunction(key: string | FunctionFragment): T + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier.ts new file mode 100644 index 000000000..0c1d79329 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier.ts @@ -0,0 +1,50 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, +} from '../../../../../../common' + +export interface FclP256VerifierInterface extends Interface {} + +export interface FclP256Verifier extends BaseContract { + connect(runner?: ContractRunner | null): FclP256Verifier + waitForDeployment(): Promise + + interface: FclP256VerifierInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + getFunction(key: string | FunctionFragment): T + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory.ts new file mode 100644 index 000000000..1b174e3d2 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory.ts @@ -0,0 +1,136 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export interface SafeWebauthnSignerFactoryInterface extends Interface { + getFunction( + nameOrSignature: 'SINGLETON' | 'createSigner' | 'getSigner' | 'isValidSignatureForSigner', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'Created'): EventFragment + + encodeFunctionData(functionFragment: 'SINGLETON', values?: undefined): string + encodeFunctionData(functionFragment: 'createSigner', values: [BigNumberish, BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getSigner', values: [BigNumberish, BigNumberish, BigNumberish]): string + encodeFunctionData( + functionFragment: 'isValidSignatureForSigner', + values: [BytesLike, BytesLike, BigNumberish, BigNumberish, BigNumberish], + ): string + + decodeFunctionResult(functionFragment: 'SINGLETON', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createSigner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getSigner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignatureForSigner', data: BytesLike): Result +} + +export namespace CreatedEvent { + export type InputTuple = [signer: AddressLike, x: BigNumberish, y: BigNumberish, verifiers: BigNumberish] + export type OutputTuple = [signer: string, x: bigint, y: bigint, verifiers: bigint] + export interface OutputObject { + signer: string + x: bigint + y: bigint + verifiers: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface SafeWebauthnSignerFactory extends BaseContract { + connect(runner?: ContractRunner | null): SafeWebauthnSignerFactory + waitForDeployment(): Promise + + interface: SafeWebauthnSignerFactoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + SINGLETON: TypedContractMethod<[], [string], 'view'> + + createSigner: TypedContractMethod<[x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], [string], 'nonpayable'> + + getSigner: TypedContractMethod<[x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], [string], 'view'> + + isValidSignatureForSigner: TypedContractMethod< + [message: BytesLike, signature: BytesLike, x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], + [string], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'SINGLETON'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'createSigner', + ): TypedContractMethod<[x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'getSigner', + ): TypedContractMethod<[x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignatureForSigner', + ): TypedContractMethod< + [message: BytesLike, signature: BytesLike, x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], + [string], + 'view' + > + + getEvent( + key: 'Created', + ): TypedContractEvent + + filters: { + 'Created(address,uint256,uint256,uint176)': TypedContractEvent< + CreatedEvent.InputTuple, + CreatedEvent.OutputTuple, + CreatedEvent.OutputObject + > + Created: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/index.ts new file mode 100644 index 000000000..84674bc6c --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { DaimoP256Verifier } from './DaimoP256Verifier' +export type { FclP256Verifier } from './FclP256Verifier' +export type { SafeWebauthnSignerFactory } from './SafeWebauthnSignerFactory' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/DaimoP256Verifier.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/DaimoP256Verifier.ts new file mode 100644 index 000000000..e7efa84c3 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/DaimoP256Verifier.ts @@ -0,0 +1,50 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, +} from '../../../../../../common' + +export interface DaimoP256VerifierInterface extends Interface {} + +export interface DaimoP256Verifier extends BaseContract { + connect(runner?: ContractRunner | null): DaimoP256Verifier + waitForDeployment(): Promise + + interface: DaimoP256VerifierInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + getFunction(key: string | FunctionFragment): T + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/FclP256Verifier.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/FclP256Verifier.ts new file mode 100644 index 000000000..0c1d79329 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/FclP256Verifier.ts @@ -0,0 +1,50 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { BaseContract, FunctionFragment, Interface, ContractRunner, ContractMethod, Listener } from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedListener, +} from '../../../../../../common' + +export interface FclP256VerifierInterface extends Interface {} + +export interface FclP256Verifier extends BaseContract { + connect(runner?: ContractRunner | null): FclP256Verifier + waitForDeployment(): Promise + + interface: FclP256VerifierInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + getFunction(key: string | FunctionFragment): T + + filters: {} +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner.ts new file mode 100644 index 000000000..49fb7a884 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner.ts @@ -0,0 +1,159 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export declare namespace SafeWebAuthnSharedSigner { + export type SignerStruct = { + x: BigNumberish + y: BigNumberish + verifiers: BigNumberish + } + + export type SignerStructOutput = [x: bigint, y: bigint, verifiers: bigint] & { + x: bigint + y: bigint + verifiers: bigint + } +} + +export interface SafeWebauthnSharedSignerInterface extends Interface { + getFunction( + nameOrSignature: + | 'SIGNER_SLOT' + | 'configure' + | 'getConfiguration' + | 'isValidSignature(bytes32,bytes)' + | 'isValidSignature(bytes,bytes)', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'SafeWebAuthnSharedSignerConfigured'): EventFragment + + encodeFunctionData(functionFragment: 'SIGNER_SLOT', values?: undefined): string + encodeFunctionData(functionFragment: 'configure', values: [SafeWebAuthnSharedSigner.SignerStruct]): string + encodeFunctionData(functionFragment: 'getConfiguration', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes32,bytes)', values: [BytesLike, BytesLike]): string + encodeFunctionData(functionFragment: 'isValidSignature(bytes,bytes)', values: [BytesLike, BytesLike]): string + + decodeFunctionResult(functionFragment: 'SIGNER_SLOT', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'configure', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getConfiguration', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes32,bytes)', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignature(bytes,bytes)', data: BytesLike): Result +} + +export namespace SafeWebAuthnSharedSignerConfiguredEvent { + export type InputTuple = [publicKeyHash: BytesLike, x: BigNumberish, y: BigNumberish, verifiers: BigNumberish] + export type OutputTuple = [publicKeyHash: string, x: bigint, y: bigint, verifiers: bigint] + export interface OutputObject { + publicKeyHash: string + x: bigint + y: bigint + verifiers: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface SafeWebauthnSharedSigner extends BaseContract { + connect(runner?: ContractRunner | null): SafeWebauthnSharedSigner + waitForDeployment(): Promise + + interface: SafeWebauthnSharedSignerInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + SIGNER_SLOT: TypedContractMethod<[], [bigint], 'view'> + + configure: TypedContractMethod<[signer: SafeWebAuthnSharedSigner.SignerStruct], [void], 'nonpayable'> + + getConfiguration: TypedContractMethod<[account: AddressLike], [SafeWebAuthnSharedSigner.SignerStructOutput], 'view'> + + 'isValidSignature(bytes32,bytes)': TypedContractMethod<[message: BytesLike, signature: BytesLike], [string], 'view'> + + 'isValidSignature(bytes,bytes)': TypedContractMethod<[data: BytesLike, signature: BytesLike], [string], 'view'> + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'SIGNER_SLOT'): TypedContractMethod<[], [bigint], 'view'> + getFunction( + nameOrSignature: 'configure', + ): TypedContractMethod<[signer: SafeWebAuthnSharedSigner.SignerStruct], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'getConfiguration', + ): TypedContractMethod<[account: AddressLike], [SafeWebAuthnSharedSigner.SignerStructOutput], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes32,bytes)', + ): TypedContractMethod<[message: BytesLike, signature: BytesLike], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignature(bytes,bytes)', + ): TypedContractMethod<[data: BytesLike, signature: BytesLike], [string], 'view'> + + getEvent( + key: 'SafeWebAuthnSharedSignerConfigured', + ): TypedContractEvent< + SafeWebAuthnSharedSignerConfiguredEvent.InputTuple, + SafeWebAuthnSharedSignerConfiguredEvent.OutputTuple, + SafeWebAuthnSharedSignerConfiguredEvent.OutputObject + > + + filters: { + 'SafeWebAuthnSharedSignerConfigured(bytes32,uint256,uint256,uint176)': TypedContractEvent< + SafeWebAuthnSharedSignerConfiguredEvent.InputTuple, + SafeWebAuthnSharedSignerConfiguredEvent.OutputTuple, + SafeWebAuthnSharedSignerConfiguredEvent.OutputObject + > + SafeWebAuthnSharedSignerConfigured: TypedContractEvent< + SafeWebAuthnSharedSignerConfiguredEvent.InputTuple, + SafeWebAuthnSharedSignerConfiguredEvent.OutputTuple, + SafeWebAuthnSharedSignerConfiguredEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSignerFactory.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSignerFactory.ts new file mode 100644 index 000000000..1b174e3d2 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSignerFactory.ts @@ -0,0 +1,136 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export interface SafeWebauthnSignerFactoryInterface extends Interface { + getFunction( + nameOrSignature: 'SINGLETON' | 'createSigner' | 'getSigner' | 'isValidSignatureForSigner', + ): FunctionFragment + + getEvent(nameOrSignatureOrTopic: 'Created'): EventFragment + + encodeFunctionData(functionFragment: 'SINGLETON', values?: undefined): string + encodeFunctionData(functionFragment: 'createSigner', values: [BigNumberish, BigNumberish, BigNumberish]): string + encodeFunctionData(functionFragment: 'getSigner', values: [BigNumberish, BigNumberish, BigNumberish]): string + encodeFunctionData( + functionFragment: 'isValidSignatureForSigner', + values: [BytesLike, BytesLike, BigNumberish, BigNumberish, BigNumberish], + ): string + + decodeFunctionResult(functionFragment: 'SINGLETON', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'createSigner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getSigner', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isValidSignatureForSigner', data: BytesLike): Result +} + +export namespace CreatedEvent { + export type InputTuple = [signer: AddressLike, x: BigNumberish, y: BigNumberish, verifiers: BigNumberish] + export type OutputTuple = [signer: string, x: bigint, y: bigint, verifiers: bigint] + export interface OutputObject { + signer: string + x: bigint + y: bigint + verifiers: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface SafeWebauthnSignerFactory extends BaseContract { + connect(runner?: ContractRunner | null): SafeWebauthnSignerFactory + waitForDeployment(): Promise + + interface: SafeWebauthnSignerFactoryInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + SINGLETON: TypedContractMethod<[], [string], 'view'> + + createSigner: TypedContractMethod<[x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], [string], 'nonpayable'> + + getSigner: TypedContractMethod<[x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], [string], 'view'> + + isValidSignatureForSigner: TypedContractMethod< + [message: BytesLike, signature: BytesLike, x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], + [string], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'SINGLETON'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'createSigner', + ): TypedContractMethod<[x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], [string], 'nonpayable'> + getFunction( + nameOrSignature: 'getSigner', + ): TypedContractMethod<[x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], [string], 'view'> + getFunction( + nameOrSignature: 'isValidSignatureForSigner', + ): TypedContractMethod< + [message: BytesLike, signature: BytesLike, x: BigNumberish, y: BigNumberish, verifiers: BigNumberish], + [string], + 'view' + > + + getEvent( + key: 'Created', + ): TypedContractEvent + + filters: { + 'Created(address,uint256,uint256,uint176)': TypedContractEvent< + CreatedEvent.InputTuple, + CreatedEvent.OutputTuple, + CreatedEvent.OutputObject + > + Created: TypedContractEvent + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/index.ts new file mode 100644 index 000000000..97a59dc49 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { DaimoP256Verifier } from './DaimoP256Verifier' +export type { FclP256Verifier } from './FclP256Verifier' +export type { SafeWebauthnSharedSigner } from './SafeWebauthnSharedSigner' +export type { SafeWebauthnSignerFactory } from './SafeWebauthnSignerFactory' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/index.ts new file mode 100644 index 000000000..d6549d273 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as v010 from './v0.1.0' +export type { v010 } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule.ts new file mode 100644 index 000000000..e09278f01 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule.ts @@ -0,0 +1,633 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + BaseContract, + BigNumberish, + BytesLike, + FunctionFragment, + Result, + Interface, + EventFragment, + AddressLike, + ContractRunner, + ContractMethod, + Listener, +} from 'ethers' +import type { + TypedContractEvent, + TypedDeferredTopicFilter, + TypedEventLog, + TypedLogDescription, + TypedListener, + TypedContractMethod, +} from '../../../../../../common' + +export declare namespace SocialRecoveryModule { + export type RecoveryRequestStruct = { + guardiansApprovalCount: BigNumberish + newThreshold: BigNumberish + executeAfter: BigNumberish + newOwners: AddressLike[] + } + + export type RecoveryRequestStructOutput = [ + guardiansApprovalCount: bigint, + newThreshold: bigint, + executeAfter: bigint, + newOwners: string[], + ] & { + guardiansApprovalCount: bigint + newThreshold: bigint + executeAfter: bigint + newOwners: string[] + } + + export type SignatureDataStruct = { + signer: AddressLike + signature: BytesLike + } + + export type SignatureDataStructOutput = [signer: string, signature: string] & { signer: string; signature: string } +} + +export interface SocialRecoveryModuleInterface extends Interface { + getFunction( + nameOrSignature: + | 'NAME' + | 'VERSION' + | 'addGuardianWithThreshold' + | 'cancelRecovery' + | 'changeThreshold' + | 'confirmRecovery' + | 'domainSeparator' + | 'encodeRecoveryData' + | 'executeRecovery' + | 'finalizeRecovery' + | 'getChainId' + | 'getGuardians' + | 'getRecoveryApprovals' + | 'getRecoveryHash' + | 'getRecoveryRequest' + | 'guardiansCount' + | 'hasGuardianApproved' + | 'invalidateNonce' + | 'isGuardian' + | 'multiConfirmRecovery' + | 'nonce' + | 'revokeGuardianWithThreshold' + | 'threshold' + | 'validateGuardianSignature', + ): FunctionFragment + + getEvent( + nameOrSignatureOrTopic: + | 'ChangedThreshold' + | 'GuardianAdded' + | 'GuardianRevoked' + | 'NonceInvalidated' + | 'RecoveryCanceled' + | 'RecoveryExecuted' + | 'RecoveryFinalized', + ): EventFragment + + encodeFunctionData(functionFragment: 'NAME', values?: undefined): string + encodeFunctionData(functionFragment: 'VERSION', values?: undefined): string + encodeFunctionData(functionFragment: 'addGuardianWithThreshold', values: [AddressLike, BigNumberish]): string + encodeFunctionData(functionFragment: 'cancelRecovery', values?: undefined): string + encodeFunctionData(functionFragment: 'changeThreshold', values: [BigNumberish]): string + encodeFunctionData( + functionFragment: 'confirmRecovery', + values: [AddressLike, AddressLike[], BigNumberish, boolean], + ): string + encodeFunctionData(functionFragment: 'domainSeparator', values?: undefined): string + encodeFunctionData( + functionFragment: 'encodeRecoveryData', + values: [AddressLike, AddressLike[], BigNumberish, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'executeRecovery', values: [AddressLike, AddressLike[], BigNumberish]): string + encodeFunctionData(functionFragment: 'finalizeRecovery', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'getChainId', values?: undefined): string + encodeFunctionData(functionFragment: 'getGuardians', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'getRecoveryApprovals', + values: [AddressLike, AddressLike[], BigNumberish], + ): string + encodeFunctionData( + functionFragment: 'getRecoveryHash', + values: [AddressLike, AddressLike[], BigNumberish, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'getRecoveryRequest', values: [AddressLike]): string + encodeFunctionData(functionFragment: 'guardiansCount', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'hasGuardianApproved', + values: [AddressLike, AddressLike, AddressLike[], BigNumberish], + ): string + encodeFunctionData(functionFragment: 'invalidateNonce', values?: undefined): string + encodeFunctionData(functionFragment: 'isGuardian', values: [AddressLike, AddressLike]): string + encodeFunctionData( + functionFragment: 'multiConfirmRecovery', + values: [AddressLike, AddressLike[], BigNumberish, SocialRecoveryModule.SignatureDataStruct[], boolean], + ): string + encodeFunctionData(functionFragment: 'nonce', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'revokeGuardianWithThreshold', + values: [AddressLike, AddressLike, BigNumberish], + ): string + encodeFunctionData(functionFragment: 'threshold', values: [AddressLike]): string + encodeFunctionData( + functionFragment: 'validateGuardianSignature', + values: [AddressLike, BytesLike, AddressLike, BytesLike], + ): string + + decodeFunctionResult(functionFragment: 'NAME', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'VERSION', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'addGuardianWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'cancelRecovery', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'changeThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'confirmRecovery', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'domainSeparator', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'encodeRecoveryData', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'executeRecovery', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'finalizeRecovery', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getChainId', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getGuardians', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getRecoveryApprovals', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getRecoveryHash', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'getRecoveryRequest', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'guardiansCount', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'hasGuardianApproved', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'invalidateNonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'isGuardian', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'multiConfirmRecovery', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'nonce', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'revokeGuardianWithThreshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'threshold', data: BytesLike): Result + decodeFunctionResult(functionFragment: 'validateGuardianSignature', data: BytesLike): Result +} + +export namespace ChangedThresholdEvent { + export type InputTuple = [wallet: AddressLike, threshold: BigNumberish] + export type OutputTuple = [wallet: string, threshold: bigint] + export interface OutputObject { + wallet: string + threshold: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace GuardianAddedEvent { + export type InputTuple = [wallet: AddressLike, guardian: AddressLike] + export type OutputTuple = [wallet: string, guardian: string] + export interface OutputObject { + wallet: string + guardian: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace GuardianRevokedEvent { + export type InputTuple = [wallet: AddressLike, guardian: AddressLike] + export type OutputTuple = [wallet: string, guardian: string] + export interface OutputObject { + wallet: string + guardian: string + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace NonceInvalidatedEvent { + export type InputTuple = [wallet: AddressLike, nonce: BigNumberish] + export type OutputTuple = [wallet: string, nonce: bigint] + export interface OutputObject { + wallet: string + nonce: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RecoveryCanceledEvent { + export type InputTuple = [wallet: AddressLike, nonce: BigNumberish] + export type OutputTuple = [wallet: string, nonce: bigint] + export interface OutputObject { + wallet: string + nonce: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RecoveryExecutedEvent { + export type InputTuple = [ + wallet: AddressLike, + newOwners: AddressLike[], + newThreshold: BigNumberish, + nonce: BigNumberish, + executeAfter: BigNumberish, + guardiansApprovalCount: BigNumberish, + ] + export type OutputTuple = [ + wallet: string, + newOwners: string[], + newThreshold: bigint, + nonce: bigint, + executeAfter: bigint, + guardiansApprovalCount: bigint, + ] + export interface OutputObject { + wallet: string + newOwners: string[] + newThreshold: bigint + nonce: bigint + executeAfter: bigint + guardiansApprovalCount: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export namespace RecoveryFinalizedEvent { + export type InputTuple = [ + wallet: AddressLike, + newOwners: AddressLike[], + newThreshold: BigNumberish, + nonce: BigNumberish, + ] + export type OutputTuple = [wallet: string, newOwners: string[], newThreshold: bigint, nonce: bigint] + export interface OutputObject { + wallet: string + newOwners: string[] + newThreshold: bigint + nonce: bigint + } + export type Event = TypedContractEvent + export type Filter = TypedDeferredTopicFilter + export type Log = TypedEventLog + export type LogDescription = TypedLogDescription +} + +export interface SocialRecoveryModule extends BaseContract { + connect(runner?: ContractRunner | null): SocialRecoveryModule + waitForDeployment(): Promise + + interface: SocialRecoveryModuleInterface + + queryFilter( + event: TCEvent, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + queryFilter( + filter: TypedDeferredTopicFilter, + fromBlockOrBlockhash?: string | number | undefined, + toBlock?: string | number | undefined, + ): Promise>> + + on(event: TCEvent, listener: TypedListener): Promise + on( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + once(event: TCEvent, listener: TypedListener): Promise + once( + filter: TypedDeferredTopicFilter, + listener: TypedListener, + ): Promise + + listeners(event: TCEvent): Promise>> + listeners(eventName?: string): Promise> + removeAllListeners(event?: TCEvent): Promise + + NAME: TypedContractMethod<[], [string], 'view'> + + VERSION: TypedContractMethod<[], [string], 'view'> + + addGuardianWithThreshold: TypedContractMethod< + [_guardian: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + cancelRecovery: TypedContractMethod<[], [void], 'nonpayable'> + + changeThreshold: TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + + confirmRecovery: TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish, _execute: boolean], + [void], + 'nonpayable' + > + + domainSeparator: TypedContractMethod<[], [string], 'view'> + + encodeRecoveryData: TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish, _nonce: BigNumberish], + [string], + 'view' + > + + executeRecovery: TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish], + [void], + 'nonpayable' + > + + finalizeRecovery: TypedContractMethod<[_wallet: AddressLike], [void], 'nonpayable'> + + getChainId: TypedContractMethod<[], [bigint], 'view'> + + getGuardians: TypedContractMethod<[_wallet: AddressLike], [string[]], 'view'> + + getRecoveryApprovals: TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish], + [bigint], + 'view' + > + + getRecoveryHash: TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish, _nonce: BigNumberish], + [string], + 'view' + > + + getRecoveryRequest: TypedContractMethod< + [_wallet: AddressLike], + [SocialRecoveryModule.RecoveryRequestStructOutput], + 'view' + > + + guardiansCount: TypedContractMethod<[_wallet: AddressLike], [bigint], 'view'> + + hasGuardianApproved: TypedContractMethod< + [_wallet: AddressLike, _guardian: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish], + [boolean], + 'view' + > + + invalidateNonce: TypedContractMethod<[], [void], 'nonpayable'> + + isGuardian: TypedContractMethod<[_wallet: AddressLike, _guardian: AddressLike], [boolean], 'view'> + + multiConfirmRecovery: TypedContractMethod< + [ + _wallet: AddressLike, + _newOwners: AddressLike[], + _newThreshold: BigNumberish, + _signatures: SocialRecoveryModule.SignatureDataStruct[], + _execute: boolean, + ], + [void], + 'nonpayable' + > + + nonce: TypedContractMethod<[_wallet: AddressLike], [bigint], 'view'> + + revokeGuardianWithThreshold: TypedContractMethod< + [_prevGuardian: AddressLike, _guardian: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + + threshold: TypedContractMethod<[_wallet: AddressLike], [bigint], 'view'> + + validateGuardianSignature: TypedContractMethod< + [_wallet: AddressLike, _signHash: BytesLike, _signer: AddressLike, _signature: BytesLike], + [void], + 'view' + > + + getFunction(key: string | FunctionFragment): T + + getFunction(nameOrSignature: 'NAME'): TypedContractMethod<[], [string], 'view'> + getFunction(nameOrSignature: 'VERSION'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'addGuardianWithThreshold', + ): TypedContractMethod<[_guardian: AddressLike, _threshold: BigNumberish], [void], 'nonpayable'> + getFunction(nameOrSignature: 'cancelRecovery'): TypedContractMethod<[], [void], 'nonpayable'> + getFunction(nameOrSignature: 'changeThreshold'): TypedContractMethod<[_threshold: BigNumberish], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'confirmRecovery', + ): TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish, _execute: boolean], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'domainSeparator'): TypedContractMethod<[], [string], 'view'> + getFunction( + nameOrSignature: 'encodeRecoveryData', + ): TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish, _nonce: BigNumberish], + [string], + 'view' + > + getFunction( + nameOrSignature: 'executeRecovery', + ): TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'finalizeRecovery'): TypedContractMethod<[_wallet: AddressLike], [void], 'nonpayable'> + getFunction(nameOrSignature: 'getChainId'): TypedContractMethod<[], [bigint], 'view'> + getFunction(nameOrSignature: 'getGuardians'): TypedContractMethod<[_wallet: AddressLike], [string[]], 'view'> + getFunction( + nameOrSignature: 'getRecoveryApprovals', + ): TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish], + [bigint], + 'view' + > + getFunction( + nameOrSignature: 'getRecoveryHash', + ): TypedContractMethod< + [_wallet: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish, _nonce: BigNumberish], + [string], + 'view' + > + getFunction( + nameOrSignature: 'getRecoveryRequest', + ): TypedContractMethod<[_wallet: AddressLike], [SocialRecoveryModule.RecoveryRequestStructOutput], 'view'> + getFunction(nameOrSignature: 'guardiansCount'): TypedContractMethod<[_wallet: AddressLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'hasGuardianApproved', + ): TypedContractMethod< + [_wallet: AddressLike, _guardian: AddressLike, _newOwners: AddressLike[], _newThreshold: BigNumberish], + [boolean], + 'view' + > + getFunction(nameOrSignature: 'invalidateNonce'): TypedContractMethod<[], [void], 'nonpayable'> + getFunction( + nameOrSignature: 'isGuardian', + ): TypedContractMethod<[_wallet: AddressLike, _guardian: AddressLike], [boolean], 'view'> + getFunction( + nameOrSignature: 'multiConfirmRecovery', + ): TypedContractMethod< + [ + _wallet: AddressLike, + _newOwners: AddressLike[], + _newThreshold: BigNumberish, + _signatures: SocialRecoveryModule.SignatureDataStruct[], + _execute: boolean, + ], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'nonce'): TypedContractMethod<[_wallet: AddressLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'revokeGuardianWithThreshold', + ): TypedContractMethod< + [_prevGuardian: AddressLike, _guardian: AddressLike, _threshold: BigNumberish], + [void], + 'nonpayable' + > + getFunction(nameOrSignature: 'threshold'): TypedContractMethod<[_wallet: AddressLike], [bigint], 'view'> + getFunction( + nameOrSignature: 'validateGuardianSignature', + ): TypedContractMethod< + [_wallet: AddressLike, _signHash: BytesLike, _signer: AddressLike, _signature: BytesLike], + [void], + 'view' + > + + getEvent( + key: 'ChangedThreshold', + ): TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + getEvent( + key: 'GuardianAdded', + ): TypedContractEvent + getEvent( + key: 'GuardianRevoked', + ): TypedContractEvent< + GuardianRevokedEvent.InputTuple, + GuardianRevokedEvent.OutputTuple, + GuardianRevokedEvent.OutputObject + > + getEvent( + key: 'NonceInvalidated', + ): TypedContractEvent< + NonceInvalidatedEvent.InputTuple, + NonceInvalidatedEvent.OutputTuple, + NonceInvalidatedEvent.OutputObject + > + getEvent( + key: 'RecoveryCanceled', + ): TypedContractEvent< + RecoveryCanceledEvent.InputTuple, + RecoveryCanceledEvent.OutputTuple, + RecoveryCanceledEvent.OutputObject + > + getEvent( + key: 'RecoveryExecuted', + ): TypedContractEvent< + RecoveryExecutedEvent.InputTuple, + RecoveryExecutedEvent.OutputTuple, + RecoveryExecutedEvent.OutputObject + > + getEvent( + key: 'RecoveryFinalized', + ): TypedContractEvent< + RecoveryFinalizedEvent.InputTuple, + RecoveryFinalizedEvent.OutputTuple, + RecoveryFinalizedEvent.OutputObject + > + + filters: { + 'ChangedThreshold(address,uint256)': TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + ChangedThreshold: TypedContractEvent< + ChangedThresholdEvent.InputTuple, + ChangedThresholdEvent.OutputTuple, + ChangedThresholdEvent.OutputObject + > + + 'GuardianAdded(address,address)': TypedContractEvent< + GuardianAddedEvent.InputTuple, + GuardianAddedEvent.OutputTuple, + GuardianAddedEvent.OutputObject + > + GuardianAdded: TypedContractEvent< + GuardianAddedEvent.InputTuple, + GuardianAddedEvent.OutputTuple, + GuardianAddedEvent.OutputObject + > + + 'GuardianRevoked(address,address)': TypedContractEvent< + GuardianRevokedEvent.InputTuple, + GuardianRevokedEvent.OutputTuple, + GuardianRevokedEvent.OutputObject + > + GuardianRevoked: TypedContractEvent< + GuardianRevokedEvent.InputTuple, + GuardianRevokedEvent.OutputTuple, + GuardianRevokedEvent.OutputObject + > + + 'NonceInvalidated(address,uint256)': TypedContractEvent< + NonceInvalidatedEvent.InputTuple, + NonceInvalidatedEvent.OutputTuple, + NonceInvalidatedEvent.OutputObject + > + NonceInvalidated: TypedContractEvent< + NonceInvalidatedEvent.InputTuple, + NonceInvalidatedEvent.OutputTuple, + NonceInvalidatedEvent.OutputObject + > + + 'RecoveryCanceled(address,uint256)': TypedContractEvent< + RecoveryCanceledEvent.InputTuple, + RecoveryCanceledEvent.OutputTuple, + RecoveryCanceledEvent.OutputObject + > + RecoveryCanceled: TypedContractEvent< + RecoveryCanceledEvent.InputTuple, + RecoveryCanceledEvent.OutputTuple, + RecoveryCanceledEvent.OutputObject + > + + 'RecoveryExecuted(address,address[],uint256,uint256,uint64,uint256)': TypedContractEvent< + RecoveryExecutedEvent.InputTuple, + RecoveryExecutedEvent.OutputTuple, + RecoveryExecutedEvent.OutputObject + > + RecoveryExecuted: TypedContractEvent< + RecoveryExecutedEvent.InputTuple, + RecoveryExecutedEvent.OutputTuple, + RecoveryExecutedEvent.OutputObject + > + + 'RecoveryFinalized(address,address[],uint256,uint256)': TypedContractEvent< + RecoveryFinalizedEvent.InputTuple, + RecoveryFinalizedEvent.OutputTuple, + RecoveryFinalizedEvent.OutputObject + > + RecoveryFinalized: TypedContractEvent< + RecoveryFinalizedEvent.InputTuple, + RecoveryFinalizedEvent.OutputTuple, + RecoveryFinalizedEvent.OutputObject + > + } +} diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/index.ts new file mode 100644 index 000000000..6288736f2 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export type { SocialRecoveryModule } from './SocialRecoveryModule' diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/index.ts new file mode 100644 index 000000000..219afc600 --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/dist/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as assets from './assets' +export type { assets } diff --git a/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/index.ts b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/index.ts new file mode 100644 index 000000000..a60e08d8d --- /dev/null +++ b/packages/utils/src/types/contracts/@safe-global/safe-modules-deployments/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as dist from './dist' +export type { dist } diff --git a/packages/utils/src/types/contracts/common.ts b/packages/utils/src/types/contracts/common.ts new file mode 100644 index 000000000..e3236cc3e --- /dev/null +++ b/packages/utils/src/types/contracts/common.ts @@ -0,0 +1,92 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type { + FunctionFragment, + Typed, + EventFragment, + ContractTransaction, + ContractTransactionResponse, + DeferredTopicFilter, + EventLog, + TransactionRequest, + LogDescription, +} from 'ethers' + +export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {} + +export interface TypedContractEvent< + InputTuple extends Array = any, + OutputTuple extends Array = any, + OutputObject = any, +> { + (...args: Partial): TypedDeferredTopicFilter> + name: string + fragment: EventFragment + getFragment(...args: Partial): EventFragment +} + +type __TypechainAOutputTuple = T extends TypedContractEvent ? W : never +type __TypechainOutputObject = T extends TypedContractEvent ? V : never + +export interface TypedEventLog extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export interface TypedLogDescription extends Omit { + args: __TypechainAOutputTuple & __TypechainOutputObject +} + +export type TypedListener = ( + ...listenerArg: [...__TypechainAOutputTuple, TypedEventLog, ...undefined[]] +) => void + +export type MinEthersFactory = { + deploy(...a: ARGS[]): Promise +} + +export type GetContractTypeFromFactory = F extends MinEthersFactory ? C : never +export type GetARGsTypeFromFactory = F extends MinEthersFactory ? Parameters : never + +export type StateMutability = 'nonpayable' | 'payable' | 'view' + +export type BaseOverrides = Omit +export type NonPayableOverrides = Omit +export type PayableOverrides = Omit +export type ViewOverrides = Omit +export type Overrides = S extends 'nonpayable' + ? NonPayableOverrides + : S extends 'payable' + ? PayableOverrides + : ViewOverrides + +export type PostfixOverrides, S extends StateMutability> = A | [...A, Overrides] +export type ContractMethodArgs, S extends StateMutability> = PostfixOverrides< + { [I in keyof A]-?: A[I] | Typed }, + S +> + +export type DefaultReturnType = R extends Array ? R[0] : R + +// export interface ContractMethod = Array, R = any, D extends R | ContractTransactionResponse = R | ContractTransactionResponse> { +export interface TypedContractMethod< + A extends Array = Array, + R = any, + S extends StateMutability = 'payable', +> { + ( + ...args: ContractMethodArgs + ): S extends 'view' ? Promise> : Promise + + name: string + + fragment: FunctionFragment + + getFragment(...args: ContractMethodArgs): FunctionFragment + + populateTransaction(...args: ContractMethodArgs): Promise + staticCall(...args: ContractMethodArgs): Promise> + send(...args: ContractMethodArgs): Promise + estimateGas(...args: ContractMethodArgs): Promise + staticCallResult(...args: ContractMethodArgs): Promise +} diff --git a/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/ERC20__factory.ts b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/ERC20__factory.ts new file mode 100644 index 000000000..e74e04347 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/ERC20__factory.ts @@ -0,0 +1,356 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { NonPayableOverrides } from "../../../../../common"; +import type { + ERC20, + ERC20Interface, +} from "../../../../../@openzeppelin/contracts/build/contracts/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: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transfer", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60806040523480156200001157600080fd5b5060405162000aed38038062000aed8339810160408190526200003491620001db565b81516200004990600390602085019062000068565b5080516200005f90600490602084019062000068565b50505062000281565b828054620000769062000245565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013657600080fd5b81516001600160401b03808211156200015357620001536200010e565b604051601f8301601f19908116603f011681019082821181831017156200017e576200017e6200010e565b816040528381526020925086838588010111156200019b57600080fd5b600091505b83821015620001bf5785820183015181830184015290820190620001a0565b83821115620001d15760008385830101525b9695505050505050565b60008060408385031215620001ef57600080fd5b82516001600160401b03808211156200020757600080fd5b620002158683870162000124565b935060208501519150808211156200022c57600080fd5b506200023b8582860162000124565b9150509250929050565b600181811c908216806200025a57607f821691505b6020821081036200027b57634e487b7160e01b600052602260045260246000fd5b50919050565b61085c80620002916000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c80633950935111610071578063395093511461012357806370a082311461013657806395d89b411461015f578063a457c2d714610167578063a9059cbb1461017a578063dd62ed3e1461018d57600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101a0565b6040516100c3919061069a565b60405180910390f35b6100df6100da36600461070b565b610232565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f366004610735565b61024a565b604051601281526020016100c3565b6100df61013136600461070b565b61026e565b6100f3610144366004610771565b6001600160a01b031660009081526020819052604090205490565b6100b6610290565b6100df61017536600461070b565b61029f565b6100df61018836600461070b565b61031f565b6100f361019b366004610793565b61032d565b6060600380546101af906107c6565b80601f01602080910402602001604051908101604052809291908181526020018280546101db906107c6565b80156102285780601f106101fd57610100808354040283529160200191610228565b820191906000526020600020905b81548152906001019060200180831161020b57829003601f168201915b5050505050905090565b600033610240818585610358565b5060019392505050565b60003361025885828561047c565b6102638585856104f6565b506001949350505050565b600033610240818585610281838361032d565b61028b9190610800565b610358565b6060600480546101af906107c6565b600033816102ad828661032d565b9050838110156103125760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102638286868403610358565b6000336102408185856104f6565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166103ba5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610309565b6001600160a01b03821661041b5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610309565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6000610488848461032d565b905060001981146104f057818110156104e35760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610309565b6104f08484848403610358565b50505050565b6001600160a01b03831661055a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610309565b6001600160a01b0382166105bc5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610309565b6001600160a01b038316600090815260208190526040902054818110156106345760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610309565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36104f0565b600060208083528351808285015260005b818110156106c7578581018301518582016040015282016106ab565b818111156106d9576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461070657600080fd5b919050565b6000806040838503121561071e57600080fd5b610727836106ef565b946020939093013593505050565b60008060006060848603121561074a57600080fd5b610753846106ef565b9250610761602085016106ef565b9150604084013590509250925092565b60006020828403121561078357600080fd5b61078c826106ef565b9392505050565b600080604083850312156107a657600080fd5b6107af836106ef565b91506107bd602084016106ef565b90509250929050565b600181811c908216806107da57607f821691505b6020821081036107fa57634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561082157634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212208ea3918651cefe661c47475f544a91c156156839b9d304a33b7b43e599a312a064736f6c634300080d0033"; + +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 getDeployTransaction( + name_: string, + symbol_: string, + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(name_, symbol_, overrides || {}); + } + override deploy( + name_: string, + symbol_: string, + overrides?: NonPayableOverrides & { from?: string } + ) { + return super.deploy(name_, symbol_, overrides || {}) as Promise< + ERC20 & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect(runner: ContractRunner | null): ERC20__factory { + return super.connect(runner) as ERC20__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): ERC20Interface { + return new Interface(_abi) as ERC20Interface; + } + static connect(address: string, runner?: ContractRunner | null): ERC20 { + return new Contract(address, _abi, runner) as unknown as ERC20; + } +} diff --git a/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/ERC721__factory.ts b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/ERC721__factory.ts new file mode 100644 index 000000000..21b6ab3be --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/ERC721__factory.ts @@ -0,0 +1,416 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import { + Contract, + ContractFactory, + ContractTransactionResponse, + Interface, +} from "ethers"; +import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers"; +import type { NonPayableOverrides } from "../../../../../common"; +import type { + ERC721, + ERC721Interface, +} from "../../../../../@openzeppelin/contracts/build/contracts/ERC721"; + +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: "approved", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Approval", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "owner", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "operator", + type: "address", + }, + { + indexed: false, + internalType: "bool", + name: "approved", + type: "bool", + }, + ], + name: "ApprovalForAll", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "from", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "to", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "Transfer", + type: "event", + }, + { + inputs: [ + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "approve", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + ], + name: "balanceOf", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "getApproved", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "operator", + type: "address", + }, + ], + name: "isApprovedForAll", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "name", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "ownerOf", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "safeTransferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "operator", + type: "address", + }, + { + internalType: "bool", + name: "approved", + type: "bool", + }, + ], + name: "setApprovalForAll", + 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: [], + name: "symbol", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "tokenURI", + outputs: [ + { + internalType: "string", + name: "", + type: "string", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", + }, + { + internalType: "uint256", + name: "tokenId", + type: "uint256", + }, + ], + name: "transferFrom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, +] as const; + +const _bytecode = + "0x60806040523480156200001157600080fd5b506040516200138c3803806200138c8339810160408190526200003491620001db565b81516200004990600090602085019062000068565b5080516200005f90600190602084019062000068565b50505062000281565b828054620000769062000245565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013657600080fd5b81516001600160401b03808211156200015357620001536200010e565b604051601f8301601f19908116603f011681019082821181831017156200017e576200017e6200010e565b816040528381526020925086838588010111156200019b57600080fd5b600091505b83821015620001bf5785820183015181830184015290820190620001a0565b83821115620001d15760008385830101525b9695505050505050565b60008060408385031215620001ef57600080fd5b82516001600160401b03808211156200020757600080fd5b620002158683870162000124565b935060208501519150808211156200022c57600080fd5b506200023b8582860162000124565b9150509250929050565b600181811c908216806200025a57607f821691505b6020821081036200027b57634e487b7160e01b600052602260045260246000fd5b50919050565b6110fb80620002916000396000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c80636352211e1161008c578063a22cb46511610066578063a22cb465146101b3578063b88d4fde146101c6578063c87b56dd146101d9578063e985e9c5146101ec57600080fd5b80636352211e1461017757806370a082311461018a57806395d89b41146101ab57600080fd5b806301ffc9a7146100d457806306fdde03146100fc578063081812fc14610111578063095ea7b31461013c57806323b872dd1461015157806342842e0e14610164575b600080fd5b6100e76100e2366004610c7f565b610228565b60405190151581526020015b60405180910390f35b61010461027a565b6040516100f39190610cf4565b61012461011f366004610d07565b61030c565b6040516001600160a01b0390911681526020016100f3565b61014f61014a366004610d3c565b610333565b005b61014f61015f366004610d66565b61044d565b61014f610172366004610d66565b61047e565b610124610185366004610d07565b610499565b61019d610198366004610da2565b6104f9565b6040519081526020016100f3565b61010461057f565b61014f6101c1366004610dbd565b61058e565b61014f6101d4366004610e0f565b61059d565b6101046101e7366004610d07565b6105d5565b6100e76101fa366004610eeb565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061025957506001600160e01b03198216635b5e139f60e01b145b8061027457506301ffc9a760e01b6001600160e01b03198316145b92915050565b60606000805461028990610f1e565b80601f01602080910402602001604051908101604052809291908181526020018280546102b590610f1e565b80156103025780601f106102d757610100808354040283529160200191610302565b820191906000526020600020905b8154815290600101906020018083116102e557829003601f168201915b5050505050905090565b600061031782610649565b506000908152600460205260409020546001600160a01b031690565b600061033e82610499565b9050806001600160a01b0316836001600160a01b0316036103b05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806103cc57506103cc81336101fa565b61043e5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c00000060648201526084016103a7565b61044883836106ab565b505050565b6104573382610719565b6104735760405162461bcd60e51b81526004016103a790610f58565b610448838383610798565b6104488383836040518060200160405280600081525061059d565b6000818152600260205260408120546001600160a01b0316806102745760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016103a7565b60006001600160a01b0382166105635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016103a7565b506001600160a01b031660009081526003602052604090205490565b60606001805461028990610f1e565b6105993383836108fc565b5050565b6105a73383610719565b6105c35760405162461bcd60e51b81526004016103a790610f58565b6105cf848484846109ca565b50505050565b60606105e082610649565b60006105f760408051602081019091526000815290565b905060008151116106175760405180602001604052806000815250610642565b80610621846109fd565b604051602001610632929190610fa5565b6040516020818303038152906040525b9392505050565b6000818152600260205260409020546001600160a01b03166106a85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016103a7565b50565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906106e082610499565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061072583610499565b9050806001600160a01b0316846001600160a01b0316148061076c57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806107905750836001600160a01b03166107858461030c565b6001600160a01b0316145b949350505050565b826001600160a01b03166107ab82610499565b6001600160a01b0316146107d15760405162461bcd60e51b81526004016103a790610fd4565b6001600160a01b0382166108335760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016103a7565b826001600160a01b031661084682610499565b6001600160a01b03161461086c5760405162461bcd60e51b81526004016103a790610fd4565b600081815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260038552838620805460001901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b816001600160a01b0316836001600160a01b03160361095d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016103a7565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6109d5848484610798565b6109e184848484610a90565b6105cf5760405162461bcd60e51b81526004016103a790611019565b60606000610a0a83610b91565b600101905060008167ffffffffffffffff811115610a2a57610a2a610df9565b6040519080825280601f01601f191660200182016040528015610a54576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084610a5e57509392505050565b60006001600160a01b0384163b15610b8657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610ad490339089908890889060040161106b565b6020604051808303816000875af1925050508015610b0f575060408051601f3d908101601f19168201909252610b0c918101906110a8565b60015b610b6c573d808015610b3d576040519150601f19603f3d011682016040523d82523d6000602084013e610b42565b606091505b508051600003610b645760405162461bcd60e51b81526004016103a790611019565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610790565b506001949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310610bd05772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310610bfc576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610c1a57662386f26fc10000830492506010015b6305f5e1008310610c32576305f5e100830492506008015b6127108310610c4657612710830492506004015b60648310610c58576064830492506002015b600a83106102745760010192915050565b6001600160e01b0319811681146106a857600080fd5b600060208284031215610c9157600080fd5b813561064281610c69565b60005b83811015610cb7578181015183820152602001610c9f565b838111156105cf5750506000910152565b60008151808452610ce0816020860160208601610c9c565b601f01601f19169290920160200192915050565b6020815260006106426020830184610cc8565b600060208284031215610d1957600080fd5b5035919050565b80356001600160a01b0381168114610d3757600080fd5b919050565b60008060408385031215610d4f57600080fd5b610d5883610d20565b946020939093013593505050565b600080600060608486031215610d7b57600080fd5b610d8484610d20565b9250610d9260208501610d20565b9150604084013590509250925092565b600060208284031215610db457600080fd5b61064282610d20565b60008060408385031215610dd057600080fd5b610dd983610d20565b915060208301358015158114610dee57600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215610e2557600080fd5b610e2e85610d20565b9350610e3c60208601610d20565b925060408501359150606085013567ffffffffffffffff80821115610e6057600080fd5b818701915087601f830112610e7457600080fd5b813581811115610e8657610e86610df9565b604051601f8201601f19908116603f01168101908382118183101715610eae57610eae610df9565b816040528281528a6020848701011115610ec757600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215610efe57600080fd5b610f0783610d20565b9150610f1560208401610d20565b90509250929050565b600181811c90821680610f3257607f821691505b602082108103610f5257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60008351610fb7818460208801610c9c565b835190830190610fcb818360208801610c9c565b01949350505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061109e90830184610cc8565b9695505050505050565b6000602082840312156110ba57600080fd5b815161064281610c6956fea26469706673582212203444012838d8a4d94e0f3add6d8bb2fb39f1578fcb587501af32ec2cd13620e164736f6c634300080d0033"; + +type ERC721ConstructorParams = + | [signer?: Signer] + | ConstructorParameters; + +const isSuperArgs = ( + xs: ERC721ConstructorParams +): xs is ConstructorParameters => xs.length > 1; + +export class ERC721__factory extends ContractFactory { + constructor(...args: ERC721ConstructorParams) { + if (isSuperArgs(args)) { + super(...args); + } else { + super(_abi, _bytecode, args[0]); + } + } + + override getDeployTransaction( + name_: string, + symbol_: string, + overrides?: NonPayableOverrides & { from?: string } + ): Promise { + return super.getDeployTransaction(name_, symbol_, overrides || {}); + } + override deploy( + name_: string, + symbol_: string, + overrides?: NonPayableOverrides & { from?: string } + ) { + return super.deploy(name_, symbol_, overrides || {}) as Promise< + ERC721 & { + deploymentTransaction(): ContractTransactionResponse; + } + >; + } + override connect(runner: ContractRunner | null): ERC721__factory { + return super.connect(runner) as ERC721__factory; + } + + static readonly bytecode = _bytecode; + static readonly abi = _abi; + static createInterface(): ERC721Interface { + return new Interface(_abi) as ERC721Interface; + } + static connect(address: string, runner?: ContractRunner | null): ERC721 { + return new Contract(address, _abi, runner) as unknown as ERC721; + } +} diff --git a/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/index.ts b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/index.ts new file mode 100644 index 000000000..e9e79edfd --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/contracts/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { ERC20__factory } from "./ERC20__factory"; +export { ERC721__factory } from "./ERC721__factory"; diff --git a/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/index.ts b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/index.ts new file mode 100644 index 000000000..6397da096 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/build/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as contracts from "./contracts"; diff --git a/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/index.ts b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/index.ts new file mode 100644 index 000000000..11271c765 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@openzeppelin/contracts/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as build from './build' diff --git a/packages/utils/src/types/contracts/factories/@openzeppelin/index.ts b/packages/utils/src/types/contracts/factories/@openzeppelin/index.ts new file mode 100644 index 000000000..48df511fa --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@openzeppelin/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as contracts from './contracts' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/index.ts new file mode 100644 index 000000000..6bba59895 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as safeDeployments from './safe-deployments' +export * as safeModulesDeployments from './safe-modules-deployments' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/index.ts new file mode 100644 index 000000000..7fdf92e9d --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/index.ts @@ -0,0 +1,9 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as v100 from './v1.0.0' +export * as v111 from './v1.1.1' +export * as v120 from './v1.2.0' +export * as v130 from './v1.3.0' +export * as v141 from './v1.4.1' +export * as v150 from './v1.5.0' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe__factory.ts new file mode 100644 index 000000000..7ba8f3248 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe__factory.ts @@ -0,0 +1,797 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Gnosis_safe, + Gnosis_safeInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe' + +const _abi = [ + { + constant: false, + inputs: [ + { + name: 'owner', + type: 'address', + }, + { + name: '_threshold', + type: 'uint256', + }, + ], + name: 'addOwnerWithThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'DOMAIN_SEPARATOR_TYPEHASH', + outputs: [ + { + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + name: 'owner', + type: 'address', + }, + ], + name: 'isOwner', + outputs: [ + { + name: '', + type: 'bool', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: 'to', + type: 'address', + }, + { + name: 'value', + type: 'uint256', + }, + { + name: 'data', + type: 'bytes', + }, + { + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModule', + outputs: [ + { + name: 'success', + type: 'bool', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [ + { + name: '', + type: 'bytes32', + }, + ], + name: 'signedMessages', + outputs: [ + { + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: 'module', + type: 'address', + }, + ], + name: 'enableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: '_threshold', + type: 'uint256', + }, + ], + name: 'changeThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [ + { + name: '', + type: 'address', + }, + { + name: '', + type: 'bytes32', + }, + ], + name: 'approvedHashes', + outputs: [ + { + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: '_masterCopy', + type: 'address', + }, + ], + name: 'changeMasterCopy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'SENTINEL_MODULES', + outputs: [ + { + name: '', + type: 'address', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'SENTINEL_OWNERS', + outputs: [ + { + name: '', + type: 'address', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'getOwners', + outputs: [ + { + name: '', + type: 'address[]', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'NAME', + outputs: [ + { + name: '', + type: 'string', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'nonce', + outputs: [ + { + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'getModules', + outputs: [ + { + name: '', + type: 'address[]', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'SAFE_MSG_TYPEHASH', + outputs: [ + { + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'SAFE_TX_TYPEHASH', + outputs: [ + { + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: 'prevModule', + type: 'address', + }, + { + name: 'module', + type: 'address', + }, + ], + name: 'disableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: 'prevOwner', + type: 'address', + }, + { + name: 'oldOwner', + type: 'address', + }, + { + name: 'newOwner', + type: 'address', + }, + ], + name: 'swapOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'getThreshold', + outputs: [ + { + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'domainSeparator', + outputs: [ + { + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: 'prevOwner', + type: 'address', + }, + { + name: 'owner', + type: 'address', + }, + { + name: '_threshold', + type: 'uint256', + }, + ], + name: 'removeOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'VERSION', + outputs: [ + { + name: '', + type: 'string', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + payable: true, + stateMutability: 'payable', + type: 'fallback', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'txHash', + type: 'bytes32', + }, + ], + name: 'ExecutionFailed', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'owner', + type: 'address', + }, + ], + name: 'AddedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'owner', + type: 'address', + }, + ], + name: 'RemovedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'threshold', + type: 'uint256', + }, + ], + name: 'ChangedThreshold', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'module', + type: 'address', + }, + ], + name: 'EnabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'module', + type: 'address', + }, + ], + name: 'DisabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'newContract', + type: 'address', + }, + ], + name: 'ContractCreation', + type: 'event', + }, + { + constant: false, + inputs: [ + { + name: '_owners', + type: 'address[]', + }, + { + name: '_threshold', + type: 'uint256', + }, + { + name: 'to', + type: 'address', + }, + { + name: 'data', + type: 'bytes', + }, + { + name: 'paymentToken', + type: 'address', + }, + { + name: 'payment', + type: 'uint256', + }, + { + name: 'paymentReceiver', + type: 'address', + }, + ], + name: 'setup', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: 'to', + type: 'address', + }, + { + name: 'value', + type: 'uint256', + }, + { + name: 'data', + type: 'bytes', + }, + { + name: 'operation', + type: 'uint8', + }, + { + name: 'safeTxGas', + type: 'uint256', + }, + { + name: 'baseGas', + type: 'uint256', + }, + { + name: 'gasPrice', + type: 'uint256', + }, + { + name: 'gasToken', + type: 'address', + }, + { + name: 'refundReceiver', + type: 'address', + }, + { + name: 'signatures', + type: 'bytes', + }, + ], + name: 'execTransaction', + outputs: [ + { + name: 'success', + type: 'bool', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: 'to', + type: 'address', + }, + { + name: 'value', + type: 'uint256', + }, + { + name: 'data', + type: 'bytes', + }, + { + name: 'operation', + type: 'uint8', + }, + ], + name: 'requiredTxGas', + outputs: [ + { + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: 'hashToApprove', + type: 'bytes32', + }, + ], + name: 'approveHash', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: '_data', + type: 'bytes', + }, + ], + name: 'signMessage', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: '_data', + type: 'bytes', + }, + { + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + name: '', + type: 'bytes4', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [ + { + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + name: 'to', + type: 'address', + }, + { + name: 'value', + type: 'uint256', + }, + { + name: 'data', + type: 'bytes', + }, + { + name: 'operation', + type: 'uint8', + }, + { + name: 'safeTxGas', + type: 'uint256', + }, + { + name: 'baseGas', + type: 'uint256', + }, + { + name: 'gasPrice', + type: 'uint256', + }, + { + name: 'gasToken', + type: 'address', + }, + { + name: 'refundReceiver', + type: 'address', + }, + { + name: '_nonce', + type: 'uint256', + }, + ], + name: 'encodeTransactionData', + outputs: [ + { + name: '', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + name: 'to', + type: 'address', + }, + { + name: 'value', + type: 'uint256', + }, + { + name: 'data', + type: 'bytes', + }, + { + name: 'operation', + type: 'uint8', + }, + { + name: 'safeTxGas', + type: 'uint256', + }, + { + name: 'baseGas', + type: 'uint256', + }, + { + name: 'gasPrice', + type: 'uint256', + }, + { + name: 'gasToken', + type: 'address', + }, + { + name: 'refundReceiver', + type: 'address', + }, + { + name: '_nonce', + type: 'uint256', + }, + ], + name: 'getTransactionHash', + outputs: [ + { + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, +] as const + +export class Gnosis_safe__factory { + static readonly abi = _abi + static createInterface(): Gnosis_safeInterface { + return new Interface(_abi) as Gnosis_safeInterface + } + static connect(address: string, runner?: ContractRunner | null): Gnosis_safe { + return new Contract(address, _abi, runner) as unknown as Gnosis_safe + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory__factory.ts new file mode 100644 index 000000000..12e29d25e --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory__factory.ts @@ -0,0 +1,112 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Proxy_factory, + Proxy_factoryInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory' + +const _abi = [ + { + constant: false, + inputs: [ + { + name: '_mastercopy', + type: 'address', + }, + { + name: 'initializer', + type: 'bytes', + }, + { + name: 'saltNonce', + type: 'uint256', + }, + ], + name: 'createProxyWithNonce', + outputs: [ + { + name: 'proxy', + type: 'address', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'proxyCreationCode', + outputs: [ + { + name: '', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'pure', + type: 'function', + }, + { + constant: false, + inputs: [ + { + name: 'masterCopy', + type: 'address', + }, + { + name: 'data', + type: 'bytes', + }, + ], + name: 'createProxy', + outputs: [ + { + name: 'proxy', + type: 'address', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'proxyRuntimeCode', + outputs: [ + { + name: '', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'pure', + type: 'function', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + name: 'proxy', + type: 'address', + }, + ], + name: 'ProxyCreation', + type: 'event', + }, +] as const + +export class Proxy_factory__factory { + static readonly abi = _abi + static createInterface(): Proxy_factoryInterface { + return new Interface(_abi) as Proxy_factoryInterface + } + static connect(address: string, runner?: ContractRunner | null): Proxy_factory { + return new Contract(address, _abi, runner) as unknown as Proxy_factory + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/index.ts new file mode 100644 index 000000000..e6cea5922 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.0.0/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Gnosis_safe__factory } from './Gnosis_safe__factory' +export { Proxy_factory__factory } from './Proxy_factory__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler__factory.ts new file mode 100644 index 000000000..9638299d9 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler__factory.ts @@ -0,0 +1,210 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Default_callback_handler, + Default_callback_handlerInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler' + +const _abi = [ + { + constant: true, + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '', + 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', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + 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', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + 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', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + 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: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Default_callback_handler__factory { + static readonly abi = _abi + static createInterface(): Default_callback_handlerInterface { + return new Interface(_abi) as Default_callback_handlerInterface + } + static connect(address: string, runner?: ContractRunner | null): Default_callback_handler { + return new Contract(address, _abi, runner) as unknown as Default_callback_handler + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Gnosis_safe__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Gnosis_safe__factory.ts new file mode 100644 index 000000000..b2f408ee0 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Gnosis_safe__factory.ts @@ -0,0 +1,999 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Gnosis_safe, + Gnosis_safeInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.1.1/Gnosis_safe' + +const _abi = [ + { + inputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'AddedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'approvedHash', + type: 'bytes32', + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'ApproveHash', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'masterCopy', + type: 'address', + }, + ], + name: 'ChangedMasterCopy', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + ], + name: 'ChangedThreshold', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract Module', + name: 'module', + type: 'address', + }, + ], + name: 'DisabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract Module', + name: 'module', + type: 'address', + }, + ], + name: 'EnabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'RemovedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32', + }, + ], + name: 'SignMsg', + type: 'event', + }, + { + payable: true, + stateMutability: 'payable', + type: 'fallback', + }, + { + constant: true, + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'addOwnerWithThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'approvedHashes', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_masterCopy', + type: 'address', + }, + ], + name: 'changeMasterCopy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'changeThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'contract Module', + name: 'prevModule', + type: 'address', + }, + { + internalType: 'contract Module', + name: 'module', + type: 'address', + }, + ], + name: 'disableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'contract Module', + name: 'module', + type: 'address', + }, + ], + name: 'enableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address', + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256', + }, + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]', + }, + { + internalType: 'address', + name: 'next', + type: 'address', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'removeOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address', + }, + ], + name: 'setFallbackHandler', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address', + }, + ], + name: 'swapOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address', + }, + ], + name: 'setup', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'requiredTxGas', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes32', + name: 'hashToApprove', + type: 'bytes32', + }, + ], + name: 'approveHash', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + ], + name: 'signMessage', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, +] as const + +export class Gnosis_safe__factory { + static readonly abi = _abi + static createInterface(): Gnosis_safeInterface { + return new Interface(_abi) as Gnosis_safeInterface + } + static connect(address: string, runner?: ContractRunner | null): Gnosis_safe { + return new Contract(address, _abi, runner) as unknown as Gnosis_safe + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send__factory.ts new file mode 100644 index 000000000..5d9278089 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send__factory.ts @@ -0,0 +1,43 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Multi_send, + Multi_sendInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send' + +const _abi = [ + { + inputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes', + }, + ], + name: 'multiSend', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Multi_send__factory { + static readonly abi = _abi + static createInterface(): Multi_sendInterface { + return new Interface(_abi) as Multi_sendInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send { + return new Contract(address, _abi, runner) as unknown as Multi_send + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Proxy_factory__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Proxy_factory__factory.ts new file mode 100644 index 000000000..95092105f --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Proxy_factory__factory.ts @@ -0,0 +1,189 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Proxy_factory, + Proxy_factoryInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.1.1/Proxy_factory' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + ], + name: 'ProxyCreation', + type: 'event', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'masterCopy', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + ], + name: 'createProxy', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'proxyRuntimeCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'pure', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'proxyCreationCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'pure', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_mastercopy', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + ], + name: 'createProxyWithNonce', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_mastercopy', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + { + internalType: 'contract IProxyCreationCallback', + name: 'callback', + type: 'address', + }, + ], + name: 'createProxyWithCallback', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_mastercopy', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + ], + name: 'calculateCreateProxyWithNonceAddress', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Proxy_factory__factory { + static readonly abi = _abi + static createInterface(): Proxy_factoryInterface { + return new Interface(_abi) as Proxy_factoryInterface + } + static connect(address: string, runner?: ContractRunner | null): Proxy_factory { + return new Contract(address, _abi, runner) as unknown as Proxy_factory + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/index.ts new file mode 100644 index 000000000..02501b4b8 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.1.1/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Default_callback_handler__factory } from './Default_callback_handler__factory' +export { Gnosis_safe__factory } from './Gnosis_safe__factory' +export { Multi_send__factory } from './Multi_send__factory' +export { Proxy_factory__factory } from './Proxy_factory__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.2.0/Gnosis_safe__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.2.0/Gnosis_safe__factory.ts new file mode 100644 index 000000000..6c8a39a8a --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.2.0/Gnosis_safe__factory.ts @@ -0,0 +1,1020 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Gnosis_safe, + Gnosis_safeInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.2.0/Gnosis_safe' + +const _abi = [ + { + inputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'AddedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'approvedHash', + type: 'bytes32', + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'ApproveHash', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'masterCopy', + type: 'address', + }, + ], + name: 'ChangedMasterCopy', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + ], + name: 'ChangedThreshold', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract Module', + name: 'module', + type: 'address', + }, + ], + name: 'DisabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract Module', + name: 'module', + type: 'address', + }, + ], + name: 'EnabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'RemovedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32', + }, + ], + name: 'SignMsg', + type: 'event', + }, + { + payable: true, + stateMutability: 'payable', + type: 'fallback', + }, + { + constant: true, + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'addOwnerWithThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'approvedHashes', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: '_masterCopy', + type: 'address', + }, + ], + name: 'changeMasterCopy', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'changeThreshold', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'contract Module', + name: 'prevModule', + type: 'address', + }, + { + internalType: 'contract Module', + name: 'module', + type: 'address', + }, + ], + name: 'disableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'contract Module', + name: 'module', + type: 'address', + }, + ], + name: 'enableModule', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address', + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256', + }, + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]', + }, + { + internalType: 'address', + name: 'next', + type: 'address', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'contract Module', + name: 'module', + type: 'address', + }, + ], + name: 'isModuleEnabled', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'removeOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address', + }, + ], + name: 'setFallbackHandler', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address', + }, + ], + name: 'swapOwner', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address', + }, + ], + name: 'setup', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + payable: true, + stateMutability: 'payable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'requiredTxGas', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes32', + name: 'hashToApprove', + type: 'bytes32', + }, + ], + name: 'approveHash', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + ], + name: 'signMessage', + outputs: [], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: false, + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + payable: false, + stateMutability: 'nonpayable', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, + { + constant: true, + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'view', + type: 'function', + }, +] as const + +export class Gnosis_safe__factory { + static readonly abi = _abi + static createInterface(): Gnosis_safeInterface { + return new Interface(_abi) as Gnosis_safeInterface + } + static connect(address: string, runner?: ContractRunner | null): Gnosis_safe { + return new Contract(address, _abi, runner) as unknown as Gnosis_safe + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.2.0/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.2.0/index.ts new file mode 100644 index 000000000..3a6d6c2a8 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.2.0/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Gnosis_safe__factory } from './Gnosis_safe__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler__factory.ts new file mode 100644 index 000000000..ff58e3895 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler__factory.ts @@ -0,0 +1,345 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Compatibility_fallback_handler, + Compatibility_fallback_handlerInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler' + +const _abi = [ + { + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract GnosisSafe', + name: 'safe', + type: 'address', + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHashForSafe', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '_dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC1155BatchReceived', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC1155Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC721Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulate', + outputs: [ + { + internalType: 'bytes', + name: 'response', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'tokensReceived', + outputs: [], + stateMutability: 'pure', + type: 'function', + }, +] as const + +export class Compatibility_fallback_handler__factory { + static readonly abi = _abi + static createInterface(): Compatibility_fallback_handlerInterface { + return new Interface(_abi) as Compatibility_fallback_handlerInterface + } + static connect(address: string, runner?: ContractRunner | null): Compatibility_fallback_handler { + return new Contract(address, _abi, runner) as unknown as Compatibility_fallback_handler + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call__factory.ts new file mode 100644 index 000000000..5bb4e5afb --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call__factory.ts @@ -0,0 +1,88 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Create_call, + Create_callInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'newContract', + type: 'address', + }, + ], + name: 'ContractCreation', + type: 'event', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes', + }, + ], + name: 'performCreate', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes', + }, + { + internalType: 'bytes32', + name: 'salt', + type: 'bytes32', + }, + ], + name: 'performCreate2', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Create_call__factory { + static readonly abi = _abi + static createInterface(): Create_callInterface { + return new Interface(_abi) as Create_callInterface + } + static connect(address: string, runner?: ContractRunner | null): Create_call { + return new Contract(address, _abi, runner) as unknown as Create_call + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe__factory.ts new file mode 100644 index 000000000..c23d515d5 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe__factory.ts @@ -0,0 +1,1053 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Gnosis_safe, + Gnosis_safeInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'AddedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'approvedHash', + type: 'bytes32', + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'ApproveHash', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'handler', + type: 'address', + }, + ], + name: 'ChangedFallbackHandler', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'guard', + type: 'address', + }, + ], + name: 'ChangedGuard', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + ], + name: 'ChangedThreshold', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'DisabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'EnabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'RemovedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + ], + name: 'SafeReceived', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'initiator', + type: 'address', + }, + { + indexed: false, + internalType: 'address[]', + name: 'owners', + type: 'address[]', + }, + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + { + indexed: false, + internalType: 'address', + name: 'initializer', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + ], + name: 'SafeSetup', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32', + }, + ], + name: 'SignMsg', + type: 'event', + }, + { + stateMutability: 'nonpayable', + type: 'fallback', + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'addOwnerWithThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'hashToApprove', + type: 'bytes32', + }, + ], + name: 'approveHash', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'approvedHashes', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'changeThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'requiredSignatures', + type: 'uint256', + }, + ], + name: 'checkNSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'checkSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevModule', + type: 'address', + }, + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'disableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'enableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address', + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256', + }, + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]', + }, + { + internalType: 'address', + name: 'next', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'offset', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'length', + type: 'uint256', + }, + ], + name: 'getStorageAt', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'isModuleEnabled', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'removeOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'requiredTxGas', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address', + }, + ], + name: 'setFallbackHandler', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'guard', + type: 'address', + }, + ], + name: 'setGuard', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address', + }, + ], + name: 'setup', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulateAndRevert', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address', + }, + ], + name: 'swapOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + stateMutability: 'payable', + type: 'receive', + }, +] as const + +export class Gnosis_safe__factory { + static readonly abi = _abi + static createInterface(): Gnosis_safeInterface { + return new Interface(_abi) as Gnosis_safeInterface + } + static connect(address: string, runner?: ContractRunner | null): Gnosis_safe { + return new Contract(address, _abi, runner) as unknown as Gnosis_safe + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2__factory.ts new file mode 100644 index 000000000..7a9f07bf0 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2__factory.ts @@ -0,0 +1,1158 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Gnosis_safe_l2, + Gnosis_safe_l2Interface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'AddedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'approvedHash', + type: 'bytes32', + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'ApproveHash', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'handler', + type: 'address', + }, + ], + name: 'ChangedFallbackHandler', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'guard', + type: 'address', + }, + ], + name: 'ChangedGuard', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + ], + name: 'ChangedThreshold', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'DisabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'EnabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'RemovedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: 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: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'requiredSignatures', + type: 'uint256', + }, + ], + name: 'checkNSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'checkSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevModule', + type: 'address', + }, + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'disableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'enableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address', + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256', + }, + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]', + }, + { + internalType: 'address', + name: 'next', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'offset', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'length', + type: 'uint256', + }, + ], + name: 'getStorageAt', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'isModuleEnabled', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'removeOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'requiredTxGas', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address', + }, + ], + name: 'setFallbackHandler', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'guard', + type: 'address', + }, + ], + name: 'setGuard', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address', + }, + ], + name: 'setup', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulateAndRevert', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address', + }, + ], + name: 'swapOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + stateMutability: 'payable', + type: 'receive', + }, +] as const + +export class Gnosis_safe_l2__factory { + static readonly abi = _abi + static createInterface(): Gnosis_safe_l2Interface { + return new Interface(_abi) as Gnosis_safe_l2Interface + } + static connect(address: string, runner?: ContractRunner | null): Gnosis_safe_l2 { + return new Contract(address, _abi, runner) as unknown as Gnosis_safe_l2 + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send__factory.ts new file mode 100644 index 000000000..faf401820 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send__factory.ts @@ -0,0 +1,40 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Multi_send, + Multi_sendInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes', + }, + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, +] as const + +export class Multi_send__factory { + static readonly abi = _abi + static createInterface(): Multi_sendInterface { + return new Interface(_abi) as Multi_sendInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send { + return new Contract(address, _abi, runner) as unknown as Multi_send + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only__factory.ts new file mode 100644 index 000000000..06a6b00df --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only__factory.ts @@ -0,0 +1,35 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Multi_send_call_only, + Multi_send_call_onlyInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only' + +const _abi = [ + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes', + }, + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, +] as const + +export class Multi_send_call_only__factory { + static readonly abi = _abi + static createInterface(): Multi_send_call_onlyInterface { + return new Interface(_abi) as Multi_send_call_onlyInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send_call_only { + return new Contract(address, _abi, runner) as unknown as Multi_send_call_only + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Proxy_factory__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Proxy_factory__factory.ts new file mode 100644 index 000000000..0296917ff --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Proxy_factory__factory.ts @@ -0,0 +1,183 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Proxy_factory, + Proxy_factoryInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.3.0/Proxy_factory' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'singleton', + type: 'address', + }, + ], + name: 'ProxyCreation', + type: 'event', + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + ], + name: 'calculateCreateProxyWithNonceAddress', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'singleton', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + ], + name: 'createProxy', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + { + internalType: 'contract IProxyCreationCallback', + name: 'callback', + type: 'address', + }, + ], + name: 'createProxyWithCallback', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + ], + name: 'createProxyWithNonce', + outputs: [ + { + internalType: 'contract GnosisSafeProxy', + name: 'proxy', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'proxyCreationCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [], + name: 'proxyRuntimeCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'pure', + type: 'function', + }, +] as const + +export class Proxy_factory__factory { + static readonly abi = _abi + static createInterface(): Proxy_factoryInterface { + return new Interface(_abi) as Proxy_factoryInterface + } + static connect(address: string, runner?: ContractRunner | null): Proxy_factory { + return new Contract(address, _abi, runner) as unknown as Proxy_factory + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib__factory.ts new file mode 100644 index 000000000..3f887043f --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib__factory.ts @@ -0,0 +1,67 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Sign_message_lib, + Sign_message_libInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32', + }, + ], + name: 'SignMsg', + type: 'event', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + ], + name: 'signMessage', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Sign_message_lib__factory { + static readonly abi = _abi + static createInterface(): Sign_message_libInterface { + return new Interface(_abi) as Sign_message_libInterface + } + static connect(address: string, runner?: ContractRunner | null): Sign_message_lib { + return new Contract(address, _abi, runner) as unknown as Sign_message_lib + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor__factory.ts new file mode 100644 index 000000000..a1494c645 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor__factory.ts @@ -0,0 +1,71 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Simulate_tx_accessor, + Simulate_tx_accessorInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'simulate', + outputs: [ + { + internalType: 'uint256', + name: 'estimate', + type: 'uint256', + }, + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Simulate_tx_accessor__factory { + static readonly abi = _abi + static createInterface(): Simulate_tx_accessorInterface { + return new Interface(_abi) as Simulate_tx_accessorInterface + } + static connect(address: string, runner?: ContractRunner | null): Simulate_tx_accessor { + return new Contract(address, _abi, runner) as unknown as Simulate_tx_accessor + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/index.ts new file mode 100644 index 000000000..c033aaaa2 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.3.0/index.ts @@ -0,0 +1,12 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Compatibility_fallback_handler__factory } from './Compatibility_fallback_handler__factory' +export { Create_call__factory } from './Create_call__factory' +export { Gnosis_safe__factory } from './Gnosis_safe__factory' +export { Gnosis_safe_l2__factory } from './Gnosis_safe_l2__factory' +export { Multi_send__factory } from './Multi_send__factory' +export { Multi_send_call_only__factory } from './Multi_send_call_only__factory' +export { Proxy_factory__factory } from './Proxy_factory__factory' +export { Sign_message_lib__factory } from './Sign_message_lib__factory' +export { Simulate_tx_accessor__factory } from './Simulate_tx_accessor__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Compatibility_fallback_handler__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Compatibility_fallback_handler__factory.ts new file mode 100644 index 000000000..154927633 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Compatibility_fallback_handler__factory.ts @@ -0,0 +1,343 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Compatibility_fallback_handler, + Compatibility_fallback_handlerInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Compatibility_fallback_handler' + +const _abi = [ + { + inputs: [ + { + internalType: 'contract Safe', + name: 'safe', + type: 'address', + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'encodeMessageDataForSafe', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract Safe', + name: 'safe', + type: 'address', + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHashForSafe', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '_dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC1155BatchReceived', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC1155Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC721Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulate', + outputs: [ + { + internalType: 'bytes', + name: 'response', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'tokensReceived', + outputs: [], + stateMutability: 'pure', + type: 'function', + }, +] as const + +export class Compatibility_fallback_handler__factory { + static readonly abi = _abi + static createInterface(): Compatibility_fallback_handlerInterface { + return new Interface(_abi) as Compatibility_fallback_handlerInterface + } + static connect(address: string, runner?: ContractRunner | null): Compatibility_fallback_handler { + return new Contract(address, _abi, runner) as unknown as Compatibility_fallback_handler + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Create_call__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Create_call__factory.ts new file mode 100644 index 000000000..c9c31e3dc --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Create_call__factory.ts @@ -0,0 +1,88 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Create_call, + Create_callInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Create_call' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'newContract', + type: 'address', + }, + ], + name: 'ContractCreation', + type: 'event', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes', + }, + ], + name: 'performCreate', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes', + }, + { + internalType: 'bytes32', + name: 'salt', + type: 'bytes32', + }, + ], + name: 'performCreate2', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Create_call__factory { + static readonly abi = _abi + static createInterface(): Create_callInterface { + return new Interface(_abi) as Create_callInterface + } + static connect(address: string, runner?: ContractRunner | null): Create_call { + return new Contract(address, _abi, runner) as unknown as Create_call + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send__factory.ts new file mode 100644 index 000000000..db18695d7 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send__factory.ts @@ -0,0 +1,40 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Multi_send, + Multi_sendInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes', + }, + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, +] as const + +export class Multi_send__factory { + static readonly abi = _abi + static createInterface(): Multi_sendInterface { + return new Interface(_abi) as Multi_sendInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send { + return new Contract(address, _abi, runner) as unknown as Multi_send + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send_call_only__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send_call_only__factory.ts new file mode 100644 index 000000000..38e2cd7d8 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send_call_only__factory.ts @@ -0,0 +1,35 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Multi_send_call_only, + Multi_send_call_onlyInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Multi_send_call_only' + +const _abi = [ + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes', + }, + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, +] as const + +export class Multi_send_call_only__factory { + static readonly abi = _abi + static createInterface(): Multi_send_call_onlyInterface { + return new Interface(_abi) as Multi_send_call_onlyInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send_call_only { + return new Contract(address, _abi, runner) as unknown as Multi_send_call_only + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe__factory.ts new file mode 100644 index 000000000..f8295bbc4 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe__factory.ts @@ -0,0 +1,1016 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Safe, SafeInterface } from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Safe' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'AddedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'approvedHash', + type: 'bytes32', + }, + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'ApproveHash', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'handler', + type: 'address', + }, + ], + name: 'ChangedFallbackHandler', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'guard', + type: 'address', + }, + ], + name: 'ChangedGuard', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + ], + name: 'ChangedThreshold', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'DisabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'EnabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'RemovedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + ], + name: 'SafeReceived', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'initiator', + type: 'address', + }, + { + indexed: false, + internalType: 'address[]', + name: 'owners', + type: 'address[]', + }, + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + { + indexed: false, + internalType: 'address', + name: 'initializer', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + ], + name: 'SafeSetup', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32', + }, + ], + name: 'SignMsg', + type: 'event', + }, + { + stateMutability: 'nonpayable', + type: 'fallback', + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'addOwnerWithThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'hashToApprove', + type: 'bytes32', + }, + ], + name: 'approveHash', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'approvedHashes', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'changeThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'requiredSignatures', + type: 'uint256', + }, + ], + name: 'checkNSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'checkSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevModule', + type: 'address', + }, + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'disableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'enableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address', + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256', + }, + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]', + }, + { + internalType: 'address', + name: 'next', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'offset', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'length', + type: 'uint256', + }, + ], + name: 'getStorageAt', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'isModuleEnabled', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'removeOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address', + }, + ], + name: 'setFallbackHandler', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'guard', + type: 'address', + }, + ], + name: 'setGuard', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address', + }, + ], + name: 'setup', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulateAndRevert', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address', + }, + ], + name: 'swapOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + stateMutability: 'payable', + type: 'receive', + }, +] as const + +export class Safe__factory { + static readonly abi = _abi + static createInterface(): SafeInterface { + return new Interface(_abi) as SafeInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe { + return new Contract(address, _abi, runner) as unknown as Safe + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2__factory.ts new file mode 100644 index 000000000..560dd959d --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2__factory.ts @@ -0,0 +1,1124 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe_l2, + Safe_l2Interface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2' + +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: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'requiredSignatures', + type: 'uint256', + }, + ], + name: 'checkNSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'checkSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevModule', + type: 'address', + }, + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'disableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'enableModule', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address payable', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'execTransaction', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'payable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModule', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'execTransactionFromModuleReturnData', + outputs: [ + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'start', + type: 'address', + }, + { + internalType: 'uint256', + name: 'pageSize', + type: 'uint256', + }, + ], + name: 'getModulesPaginated', + outputs: [ + { + internalType: 'address[]', + name: 'array', + type: 'address[]', + }, + { + internalType: 'address', + name: 'next', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getOwners', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'offset', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'length', + type: 'uint256', + }, + ], + name: 'getStorageAt', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getThreshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'getTransactionHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'isModuleEnabled', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'isOwner', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'removeOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'handler', + type: 'address', + }, + ], + name: 'setFallbackHandler', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'guard', + type: 'address', + }, + ], + name: 'setGuard', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address', + }, + ], + name: 'setup', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulateAndRevert', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address', + }, + ], + name: 'swapOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + stateMutability: 'payable', + type: 'receive', + }, +] as const + +export class Safe_l2__factory { + static readonly abi = _abi + static createInterface(): Safe_l2Interface { + return new Interface(_abi) as Safe_l2Interface + } + static connect(address: string, runner?: ContractRunner | null): Safe_l2 { + return new Contract(address, _abi, runner) as unknown as Safe_l2 + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration__factory.ts new file mode 100644 index 000000000..3289a3a2c --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration__factory.ts @@ -0,0 +1,136 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe_migration, + Safe_migrationInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration' + +const _abi = [ + { + inputs: [ + { + internalType: 'address', + name: 'safeSingleton', + type: 'address', + }, + { + internalType: 'address', + name: 'safeL2Singleton', + type: 'address', + }, + { + internalType: 'address', + name: 'fallbackHandler', + 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_FALLBACK_HANDLER', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'SAFE_L2_SINGLETON', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'SAFE_SINGLETON', + 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: [], + name: 'migrateSingleton', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'migrateWithFallbackHandler', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Safe_migration__factory { + static readonly abi = _abi + static createInterface(): Safe_migrationInterface { + return new Interface(_abi) as Safe_migrationInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe_migration { + return new Contract(address, _abi, runner) as unknown as Safe_migration + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory__factory.ts new file mode 100644 index 000000000..1179459c2 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory__factory.ts @@ -0,0 +1,159 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe_proxy_factory, + Safe_proxy_factoryInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'singleton', + type: 'address', + }, + ], + name: 'ProxyCreation', + type: 'event', + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + ], + name: 'createChainSpecificProxyWithNonce', + outputs: [ + { + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + { + internalType: 'contract IProxyCreationCallback', + name: 'callback', + type: 'address', + }, + ], + name: 'createProxyWithCallback', + outputs: [ + { + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_singleton', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + ], + name: 'createProxyWithNonce', + outputs: [ + { + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'proxyCreationCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'pure', + type: 'function', + }, +] as const + +export class Safe_proxy_factory__factory { + static readonly abi = _abi + static createInterface(): Safe_proxy_factoryInterface { + return new Interface(_abi) as Safe_proxy_factoryInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe_proxy_factory { + return new Contract(address, _abi, runner) as unknown as Safe_proxy_factory + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration__factory.ts new file mode 100644 index 000000000..ef267be05 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration__factory.ts @@ -0,0 +1,194 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe_to_l2_migration, + Safe_to_l2_migrationInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration' + +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 + +export class Safe_to_l2_migration__factory { + static readonly abi = _abi + static createInterface(): Safe_to_l2_migrationInterface { + return new Interface(_abi) as Safe_to_l2_migrationInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe_to_l2_migration { + return new Contract(address, _abi, runner) as unknown as Safe_to_l2_migration + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup__factory.ts new file mode 100644 index 000000000..7f8f40e46 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup__factory.ts @@ -0,0 +1,53 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe_to_l2_setup, + Safe_to_l2_setupInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'singleton', + type: 'address', + }, + ], + name: 'ChangedMasterCopy', + type: 'event', + }, + { + inputs: [ + { + internalType: 'address', + name: 'l2Singleton', + type: 'address', + }, + ], + name: 'setupToL2', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Safe_to_l2_setup__factory { + static readonly abi = _abi + static createInterface(): Safe_to_l2_setupInterface { + return new Interface(_abi) as Safe_to_l2_setupInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe_to_l2_setup { + return new Contract(address, _abi, runner) as unknown as Safe_to_l2_setup + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Sign_message_lib__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Sign_message_lib__factory.ts new file mode 100644 index 000000000..7eb96c2ee --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Sign_message_lib__factory.ts @@ -0,0 +1,67 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Sign_message_lib, + Sign_message_libInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Sign_message_lib' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32', + }, + ], + name: 'SignMsg', + type: 'event', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + ], + name: 'signMessage', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Sign_message_lib__factory { + static readonly abi = _abi + static createInterface(): Sign_message_libInterface { + return new Interface(_abi) as Sign_message_libInterface + } + static connect(address: string, runner?: ContractRunner | null): Sign_message_lib { + return new Contract(address, _abi, runner) as unknown as Sign_message_lib + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Simulate_tx_accessor__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Simulate_tx_accessor__factory.ts new file mode 100644 index 000000000..3152277ed --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Simulate_tx_accessor__factory.ts @@ -0,0 +1,71 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Simulate_tx_accessor, + Simulate_tx_accessorInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.4.1/Simulate_tx_accessor' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'simulate', + outputs: [ + { + internalType: 'uint256', + name: 'estimate', + type: 'uint256', + }, + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Simulate_tx_accessor__factory { + static readonly abi = _abi + static createInterface(): Simulate_tx_accessorInterface { + return new Interface(_abi) as Simulate_tx_accessorInterface + } + static connect(address: string, runner?: ContractRunner | null): Simulate_tx_accessor { + return new Contract(address, _abi, runner) as unknown as Simulate_tx_accessor + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/index.ts new file mode 100644 index 000000000..6eac0e51f --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.4.1/index.ts @@ -0,0 +1,15 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Compatibility_fallback_handler__factory } from './Compatibility_fallback_handler__factory' +export { Create_call__factory } from './Create_call__factory' +export { Multi_send__factory } from './Multi_send__factory' +export { Multi_send_call_only__factory } from './Multi_send_call_only__factory' +export { Safe__factory } from './Safe__factory' +export { Safe_l2__factory } from './Safe_l2__factory' +export { Safe_migration__factory } from './Safe_migration__factory' +export { Safe_proxy_factory__factory } from './Safe_proxy_factory__factory' +export { Safe_to_l2_migration__factory } from './Safe_to_l2_migration__factory' +export { Safe_to_l2_setup__factory } from './Safe_to_l2_setup__factory' +export { Sign_message_lib__factory } from './Sign_message_lib__factory' +export { Simulate_tx_accessor__factory } from './Simulate_tx_accessor__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Compatibility_fallback_handler__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Compatibility_fallback_handler__factory.ts new file mode 100644 index 000000000..173b0889f --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Compatibility_fallback_handler__factory.ts @@ -0,0 +1,383 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Compatibility_fallback_handler, + Compatibility_fallback_handlerInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Compatibility_fallback_handler' + +const _abi = [ + { + 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: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + { + internalType: 'uint256', + name: 'safeTxGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'baseGas', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'gasPrice', + type: 'uint256', + }, + { + internalType: 'address', + name: 'gasToken', + type: 'address', + }, + { + internalType: 'address', + name: 'refundReceiver', + type: 'address', + }, + { + internalType: 'uint256', + name: 'nonce', + type: 'uint256', + }, + ], + name: 'encodeTransactionData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: '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: '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: 'onERC1155Received', + 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: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC721Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulate', + outputs: [ + { + internalType: 'bytes', + name: 'response', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'tokensReceived', + outputs: [], + stateMutability: 'pure', + type: 'function', + }, +] as const + +export class Compatibility_fallback_handler__factory { + static readonly abi = _abi + static createInterface(): Compatibility_fallback_handlerInterface { + return new Interface(_abi) as Compatibility_fallback_handlerInterface + } + static connect(address: string, runner?: ContractRunner | null): Compatibility_fallback_handler { + return new Contract(address, _abi, runner) as unknown as Compatibility_fallback_handler + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Create_call__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Create_call__factory.ts new file mode 100644 index 000000000..0e5231635 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Create_call__factory.ts @@ -0,0 +1,88 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Create_call, + Create_callInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Create_call' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'newContract', + type: 'address', + }, + ], + name: 'ContractCreation', + type: 'event', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes', + }, + ], + name: 'performCreate', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'deploymentData', + type: 'bytes', + }, + { + internalType: 'bytes32', + name: 'salt', + type: 'bytes32', + }, + ], + name: 'performCreate2', + outputs: [ + { + internalType: 'address', + name: 'newContract', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Create_call__factory { + static readonly abi = _abi + static createInterface(): Create_callInterface { + return new Interface(_abi) as Create_callInterface + } + static connect(address: string, runner?: ContractRunner | null): Create_call { + return new Contract(address, _abi, runner) as unknown as Create_call + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler__factory.ts new file mode 100644 index 000000000..446da2594 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler__factory.ts @@ -0,0 +1,443 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Extensible_fallback_handler, + Extensible_fallback_handlerInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'contract ISafe', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + ], + name: 'AddedInterface', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'contract ISafe', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'bytes32', + name: 'domainSeparator', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'contract ISafeSignatureVerifier', + name: 'oldVerifier', + type: 'address', + }, + { + indexed: false, + internalType: 'contract ISafeSignatureVerifier', + name: 'newVerifier', + type: 'address', + }, + ], + name: 'ChangedDomainVerifier', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'contract ISafe', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'bytes4', + name: 'selector', + type: 'bytes4', + }, + { + indexed: false, + internalType: 'bytes32', + name: 'oldMethod', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'bytes32', + name: 'newMethod', + type: 'bytes32', + }, + ], + name: 'ChangedSafeMethod', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'contract ISafe', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + ], + name: 'RemovedInterface', + type: 'event', + }, + { + stateMutability: 'nonpayable', + type: 'fallback', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: '_interfaceId', + type: 'bytes4', + }, + { + internalType: 'bytes32[]', + name: 'handlerWithSelectors', + type: 'bytes32[]', + }, + ], + name: 'addSupportedInterfaceBatch', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract ISafe', + name: '', + type: 'address', + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'domainVerifiers', + outputs: [ + { + internalType: 'contract ISafeSignatureVerifier', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '_hash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: 'magic', + 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: '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: 'onERC1155Received', + 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: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC721Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: '_interfaceId', + type: 'bytes4', + }, + { + internalType: 'bytes4[]', + name: 'selectors', + type: 'bytes4[]', + }, + ], + name: 'removeSupportedInterfaceBatch', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract ISafe', + name: '', + type: 'address', + }, + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + name: 'safeInterfaces', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract ISafe', + name: '', + type: 'address', + }, + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + name: 'safeMethods', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'domainSeparator', + type: 'bytes32', + }, + { + internalType: 'contract ISafeSignatureVerifier', + name: 'newVerifier', + type: 'address', + }, + ], + name: 'setDomainVerifier', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'selector', + type: 'bytes4', + }, + { + internalType: 'bytes32', + name: 'newMethod', + type: 'bytes32', + }, + ], + name: 'setSafeMethod', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + { + internalType: 'bool', + name: 'supported', + type: 'bool', + }, + ], + name: 'setSupportedInterface', + 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 Extensible_fallback_handler__factory { + static readonly abi = _abi + static createInterface(): Extensible_fallback_handlerInterface { + return new Interface(_abi) as Extensible_fallback_handlerInterface + } + static connect(address: string, runner?: ContractRunner | null): Extensible_fallback_handler { + return new Contract(address, _abi, runner) as unknown as Extensible_fallback_handler + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send__factory.ts new file mode 100644 index 000000000..9a7a5a657 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send__factory.ts @@ -0,0 +1,40 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Multi_send, + Multi_sendInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes', + }, + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, +] as const + +export class Multi_send__factory { + static readonly abi = _abi + static createInterface(): Multi_sendInterface { + return new Interface(_abi) as Multi_sendInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send { + return new Contract(address, _abi, runner) as unknown as Multi_send + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send_call_only__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send_call_only__factory.ts new file mode 100644 index 000000000..8e4373e33 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send_call_only__factory.ts @@ -0,0 +1,35 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Multi_send_call_only, + Multi_send_call_onlyInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Multi_send_call_only' + +const _abi = [ + { + inputs: [ + { + internalType: 'bytes', + name: 'transactions', + type: 'bytes', + }, + ], + name: 'multiSend', + outputs: [], + stateMutability: 'payable', + type: 'function', + }, +] as const + +export class Multi_send_call_only__factory { + static readonly abi = _abi + static createInterface(): Multi_send_call_onlyInterface { + return new Interface(_abi) as Multi_send_call_onlyInterface + } + static connect(address: string, runner?: ContractRunner | null): Multi_send_call_only { + return new Contract(address, _abi, runner) as unknown as Multi_send_call_only + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe__factory.ts new file mode 100644 index 000000000..06cd7bde6 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe__factory.ts @@ -0,0 +1,1016 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { Safe, SafeInterface } from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/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: true, + internalType: 'address', + name: 'moduleGuard', + type: 'address', + }, + ], + name: 'ChangedModuleGuard', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + ], + name: 'ChangedThreshold', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'DisabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'EnabledModule', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleFailure', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'module', + type: 'address', + }, + ], + name: 'ExecutionFromModuleSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'txHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + ], + name: 'ExecutionSuccess', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'owner', + type: 'address', + }, + ], + name: 'RemovedOwner', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'sender', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + ], + name: 'SafeReceived', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'initiator', + type: 'address', + }, + { + indexed: false, + internalType: 'address[]', + name: 'owners', + type: 'address[]', + }, + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + { + indexed: false, + internalType: 'address', + name: 'initializer', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + ], + name: 'SafeSetup', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32', + }, + ], + name: 'SignMsg', + type: 'event', + }, + { + stateMutability: 'nonpayable', + type: 'fallback', + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'owner', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'addOwnerWithThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'hashToApprove', + type: 'bytes32', + }, + ], + name: 'approveHash', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'approvedHashes', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'changeThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'requiredSignatures', + type: 'uint256', + }, + ], + name: 'checkNSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: '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: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'checkSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'executor', + type: 'address', + }, + { + 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: 'txHash', + 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: 'moduleGuard', + type: 'address', + }, + ], + name: 'setModuleGuard', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address', + }, + ], + name: 'setup', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulateAndRevert', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address', + }, + ], + name: 'swapOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + stateMutability: 'payable', + type: 'receive', + }, +] as const + +export class Safe__factory { + static readonly abi = _abi + static createInterface(): SafeInterface { + return new Interface(_abi) as SafeInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe { + return new Contract(address, _abi, runner) as unknown as Safe + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_l2__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_l2__factory.ts new file mode 100644 index 000000000..b3cce9b70 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_l2__factory.ts @@ -0,0 +1,1124 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe_l2, + Safe_l2Interface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_l2' + +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: true, + internalType: 'address', + name: 'moduleGuard', + type: 'address', + }, + ], + name: 'ChangedModuleGuard', + 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: 'bytes32', + name: 'dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'requiredSignatures', + type: 'uint256', + }, + ], + name: 'checkNSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: '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: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signatures', + type: 'bytes', + }, + ], + name: 'checkSignatures', + outputs: [], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'executor', + type: 'address', + }, + { + 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: 'txHash', + 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: 'moduleGuard', + type: 'address', + }, + ], + name: 'setModuleGuard', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address[]', + name: '_owners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'address', + name: 'fallbackHandler', + type: 'address', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint256', + name: 'payment', + type: 'uint256', + }, + { + internalType: 'address payable', + name: 'paymentReceiver', + type: 'address', + }, + ], + name: 'setup', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + name: 'signedMessages', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulateAndRevert', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'prevOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'oldOwner', + type: 'address', + }, + { + internalType: 'address', + name: 'newOwner', + type: 'address', + }, + ], + name: 'swapOwner', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + stateMutability: 'payable', + type: 'receive', + }, +] as const + +export class Safe_l2__factory { + static readonly abi = _abi + static createInterface(): Safe_l2Interface { + return new Interface(_abi) as Safe_l2Interface + } + static connect(address: string, runner?: ContractRunner | null): Safe_l2 { + return new Contract(address, _abi, runner) as unknown as Safe_l2 + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_migration__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_migration__factory.ts new file mode 100644 index 000000000..e981e54c0 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_migration__factory.ts @@ -0,0 +1,136 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe_migration, + Safe_migrationInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_migration' + +const _abi = [ + { + inputs: [ + { + internalType: 'address', + name: 'safeSingleton', + type: 'address', + }, + { + internalType: 'address', + name: 'safeL2Singleton', + type: 'address', + }, + { + internalType: 'address', + name: 'fallbackHandler', + 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_FALLBACK_HANDLER', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'SAFE_L2_SINGLETON', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'SAFE_SINGLETON', + 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: [], + name: 'migrateSingleton', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'migrateWithFallbackHandler', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Safe_migration__factory { + static readonly abi = _abi + static createInterface(): Safe_migrationInterface { + return new Interface(_abi) as Safe_migrationInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe_migration { + return new Contract(address, _abi, runner) as unknown as Safe_migration + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_proxy_factory__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_proxy_factory__factory.ts new file mode 100644 index 000000000..03aff09cc --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_proxy_factory__factory.ts @@ -0,0 +1,251 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe_proxy_factory, + Safe_proxy_factoryInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_proxy_factory' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'singleton', + type: 'address', + }, + { + indexed: false, + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + indexed: false, + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'chainId', + type: 'uint256', + }, + ], + name: 'ChainSpecificProxyCreationL2', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'singleton', + type: 'address', + }, + ], + name: 'ProxyCreation', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'singleton', + type: 'address', + }, + { + indexed: false, + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + indexed: false, + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + ], + name: 'ProxyCreationL2', + 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', + }, + ], + name: 'createChainSpecificProxyWithNonceL2', + 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: [ + { + internalType: 'address', + name: '_singleton', + type: 'address', + }, + { + internalType: 'bytes', + name: 'initializer', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'saltNonce', + type: 'uint256', + }, + ], + name: 'createProxyWithNonceL2', + outputs: [ + { + internalType: 'contract SafeProxy', + name: 'proxy', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'proxyCreationCode', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'pure', + type: 'function', + }, +] as const + +export class Safe_proxy_factory__factory { + static readonly abi = _abi + static createInterface(): Safe_proxy_factoryInterface { + return new Interface(_abi) as Safe_proxy_factoryInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe_proxy_factory { + return new Contract(address, _abi, runner) as unknown as Safe_proxy_factory + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_to_l2_setup__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_to_l2_setup__factory.ts new file mode 100644 index 000000000..24d570527 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_to_l2_setup__factory.ts @@ -0,0 +1,53 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe_to_l2_setup, + Safe_to_l2_setupInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Safe_to_l2_setup' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'singleton', + type: 'address', + }, + ], + name: 'ChangedMasterCopy', + type: 'event', + }, + { + inputs: [ + { + internalType: 'address', + name: 'l2Singleton', + type: 'address', + }, + ], + name: 'setupToL2', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Safe_to_l2_setup__factory { + static readonly abi = _abi + static createInterface(): Safe_to_l2_setupInterface { + return new Interface(_abi) as Safe_to_l2_setupInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe_to_l2_setup { + return new Contract(address, _abi, runner) as unknown as Safe_to_l2_setup + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Sign_message_lib__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Sign_message_lib__factory.ts new file mode 100644 index 000000000..0efdece6a --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Sign_message_lib__factory.ts @@ -0,0 +1,67 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Sign_message_lib, + Sign_message_libInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Sign_message_lib' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'msgHash', + type: 'bytes32', + }, + ], + name: 'SignMsg', + type: 'event', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + ], + name: 'signMessage', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Sign_message_lib__factory { + static readonly abi = _abi + static createInterface(): Sign_message_libInterface { + return new Interface(_abi) as Sign_message_libInterface + } + static connect(address: string, runner?: ContractRunner | null): Sign_message_lib { + return new Contract(address, _abi, runner) as unknown as Sign_message_lib + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Simulate_tx_accessor__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Simulate_tx_accessor__factory.ts new file mode 100644 index 000000000..4d124376b --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Simulate_tx_accessor__factory.ts @@ -0,0 +1,71 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Simulate_tx_accessor, + Simulate_tx_accessorInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Simulate_tx_accessor' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'enum Enum.Operation', + name: 'operation', + type: 'uint8', + }, + ], + name: 'simulate', + outputs: [ + { + internalType: 'uint256', + name: 'estimate', + type: 'uint256', + }, + { + internalType: 'bool', + name: 'success', + type: 'bool', + }, + { + internalType: 'bytes', + name: 'returnData', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class Simulate_tx_accessor__factory { + static readonly abi = _abi + static createInterface(): Simulate_tx_accessorInterface { + return new Interface(_abi) as Simulate_tx_accessorInterface + } + static connect(address: string, runner?: ContractRunner | null): Simulate_tx_accessor { + return new Contract(address, _abi, runner) as unknown as Simulate_tx_accessor + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler__factory.ts new file mode 100644 index 000000000..5bc48f635 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler__factory.ts @@ -0,0 +1,191 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Token_callback_handler, + Token_callback_handlerInterface, +} from '../../../../../../@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler' + +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: '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: 'onERC1155Received', + 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: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC721Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'tokensReceived', + outputs: [], + stateMutability: 'pure', + type: 'function', + }, +] as const + +export class Token_callback_handler__factory { + static readonly abi = _abi + static createInterface(): Token_callback_handlerInterface { + return new Interface(_abi) as Token_callback_handlerInterface + } + static connect(address: string, runner?: ContractRunner | null): Token_callback_handler { + return new Contract(address, _abi, runner) as unknown as Token_callback_handler + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/index.ts new file mode 100644 index 000000000..fdde7fcb0 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/assets/v1.5.0/index.ts @@ -0,0 +1,16 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Compatibility_fallback_handler__factory } from './Compatibility_fallback_handler__factory' +export { Create_call__factory } from './Create_call__factory' +export { Extensible_fallback_handler__factory } from './Extensible_fallback_handler__factory' +export { Multi_send__factory } from './Multi_send__factory' +export { Multi_send_call_only__factory } from './Multi_send_call_only__factory' +export { Safe__factory } from './Safe__factory' +export { Safe_l2__factory } from './Safe_l2__factory' +export { Safe_migration__factory } from './Safe_migration__factory' +export { Safe_proxy_factory__factory } from './Safe_proxy_factory__factory' +export { Safe_to_l2_setup__factory } from './Safe_to_l2_setup__factory' +export { Sign_message_lib__factory } from './Sign_message_lib__factory' +export { Simulate_tx_accessor__factory } from './Simulate_tx_accessor__factory' +export { Token_callback_handler__factory } from './Token_callback_handler__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/index.ts new file mode 100644 index 000000000..479933a89 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/dist/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as assets from './assets' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/index.ts new file mode 100644 index 000000000..0f991b5fd --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-deployments/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as dist from './dist' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/index.ts new file mode 100644 index 000000000..49e4d3680 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as v010 from './v0.1.0' +export * as v011 from './v0.1.1' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule__factory.ts new file mode 100644 index 000000000..68bcdb9bb --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule__factory.ts @@ -0,0 +1,720 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + AllowanceModule, + AllowanceModuleInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + ], + name: 'AddDelegate', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'DeleteAllowance', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'token', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'to', + type: 'address', + }, + { + indexed: false, + internalType: 'uint96', + name: 'value', + type: 'uint96', + }, + { + indexed: false, + internalType: 'uint16', + name: 'nonce', + type: 'uint16', + }, + ], + name: 'ExecuteAllowanceTransfer', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'paymentReceiver', + type: 'address', + }, + { + indexed: false, + internalType: 'uint96', + name: 'payment', + type: 'uint96', + }, + ], + name: 'PayAllowanceTransfer', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + ], + name: 'RemoveDelegate', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'ResetAllowance', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'token', + type: 'address', + }, + { + indexed: false, + internalType: 'uint96', + name: 'allowanceAmount', + type: 'uint96', + }, + { + indexed: false, + internalType: 'uint16', + name: 'resetTime', + type: 'uint16', + }, + ], + name: 'SetAllowance', + type: 'event', + }, + { + inputs: [], + name: 'ALLOWANCE_TRANSFER_TYPEHASH', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [], + name: 'DOMAIN_SEPARATOR_TYPEHASH', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + name: 'allowances', + outputs: [ + { + internalType: 'uint96', + name: 'amount', + type: 'uint96', + }, + { + internalType: 'uint96', + name: 'spent', + type: 'uint96', + }, + { + internalType: 'uint16', + name: 'resetTimeMin', + type: 'uint16', + }, + { + internalType: 'uint32', + name: 'lastResetMin', + type: 'uint32', + }, + { + internalType: 'uint16', + name: 'nonce', + type: 'uint16', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint48', + name: '', + type: 'uint48', + }, + ], + name: 'delegates', + outputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'uint48', + name: 'prev', + type: 'uint48', + }, + { + internalType: 'uint48', + name: 'next', + type: 'uint48', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + name: 'delegatesStart', + outputs: [ + { + internalType: 'uint48', + name: '', + type: 'uint48', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + name: 'tokens', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'uint96', + name: 'allowanceAmount', + type: 'uint96', + }, + { + internalType: 'uint16', + name: 'resetTimeMin', + type: 'uint16', + }, + { + internalType: 'uint32', + name: 'resetBaseMin', + type: 'uint32', + }, + ], + name: 'setAllowance', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'resetAllowance', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'deleteAllowance', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract GnosisSafe', + name: 'safe', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'address payable', + name: 'to', + type: 'address', + }, + { + internalType: 'uint96', + name: 'amount', + type: 'uint96', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint96', + name: 'payment', + type: 'uint96', + }, + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + ], + name: 'executeAllowanceTransfer', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'pure', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint96', + name: 'amount', + type: 'uint96', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint96', + name: 'payment', + type: 'uint96', + }, + { + internalType: 'uint16', + name: 'nonce', + type: 'uint16', + }, + ], + name: 'generateTransferHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + ], + name: 'getTokens', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'getTokenAllowance', + outputs: [ + { + internalType: 'uint256[5]', + name: '', + type: 'uint256[5]', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + ], + name: 'addDelegate', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'bool', + name: 'removeAllowances', + type: 'bool', + }, + ], + name: 'removeDelegate', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + internalType: 'uint48', + name: 'start', + type: 'uint48', + }, + { + internalType: 'uint8', + name: 'pageSize', + type: 'uint8', + }, + ], + name: 'getDelegates', + outputs: [ + { + internalType: 'address[]', + name: 'results', + type: 'address[]', + }, + { + internalType: 'uint48', + name: 'next', + type: 'uint48', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, +] as const + +export class AllowanceModule__factory { + static readonly abi = _abi + static createInterface(): AllowanceModuleInterface { + return new Interface(_abi) as AllowanceModuleInterface + } + static connect(address: string, runner?: ContractRunner | null): AllowanceModule { + return new Contract(address, _abi, runner) as unknown as AllowanceModule + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/index.ts new file mode 100644 index 000000000..83218d183 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { AllowanceModule__factory } from './AllowanceModule__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/AllowanceModule__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/AllowanceModule__factory.ts new file mode 100644 index 000000000..f98e62d49 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/AllowanceModule__factory.ts @@ -0,0 +1,720 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + AllowanceModule, + AllowanceModuleInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/AllowanceModule' + +const _abi = [ + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + ], + name: 'AddDelegate', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'DeleteAllowance', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'token', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'to', + type: 'address', + }, + { + indexed: false, + internalType: 'uint96', + name: 'value', + type: 'uint96', + }, + { + indexed: false, + internalType: 'uint16', + name: 'nonce', + type: 'uint16', + }, + ], + name: 'ExecuteAllowanceTransfer', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'paymentReceiver', + type: 'address', + }, + { + indexed: false, + internalType: 'uint96', + name: 'payment', + type: 'uint96', + }, + ], + name: 'PayAllowanceTransfer', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + ], + name: 'RemoveDelegate', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'ResetAllowance', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + indexed: false, + internalType: 'address', + name: 'token', + type: 'address', + }, + { + indexed: false, + internalType: 'uint96', + name: 'allowanceAmount', + type: 'uint96', + }, + { + indexed: false, + internalType: 'uint16', + name: 'resetTime', + type: 'uint16', + }, + ], + name: 'SetAllowance', + type: 'event', + }, + { + inputs: [], + name: 'ALLOWANCE_TRANSFER_TYPEHASH', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [], + name: 'DOMAIN_SEPARATOR_TYPEHASH', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + name: 'allowances', + outputs: [ + { + internalType: 'uint96', + name: 'amount', + type: 'uint96', + }, + { + internalType: 'uint96', + name: 'spent', + type: 'uint96', + }, + { + internalType: 'uint16', + name: 'resetTimeMin', + type: 'uint16', + }, + { + internalType: 'uint32', + name: 'lastResetMin', + type: 'uint32', + }, + { + internalType: 'uint16', + name: 'nonce', + type: 'uint16', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint48', + name: '', + type: 'uint48', + }, + ], + name: 'delegates', + outputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'uint48', + name: 'prev', + type: 'uint48', + }, + { + internalType: 'uint48', + name: 'next', + type: 'uint48', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + name: 'delegatesStart', + outputs: [ + { + internalType: 'uint48', + name: '', + type: 'uint48', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + name: 'tokens', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'uint96', + name: 'allowanceAmount', + type: 'uint96', + }, + { + internalType: 'uint16', + name: 'resetTimeMin', + type: 'uint16', + }, + { + internalType: 'uint32', + name: 'resetBaseMin', + type: 'uint32', + }, + ], + name: 'setAllowance', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'resetAllowance', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'deleteAllowance', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract GnosisSafe', + name: 'safe', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'address payable', + name: 'to', + type: 'address', + }, + { + internalType: 'uint96', + name: 'amount', + type: 'uint96', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint96', + name: 'payment', + type: 'uint96', + }, + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + ], + name: 'executeAllowanceTransfer', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'pure', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint96', + name: 'amount', + type: 'uint96', + }, + { + internalType: 'address', + name: 'paymentToken', + type: 'address', + }, + { + internalType: 'uint96', + name: 'payment', + type: 'uint96', + }, + { + internalType: 'uint16', + name: 'nonce', + type: 'uint16', + }, + ], + name: 'generateTransferHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + ], + name: 'getTokens', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'address', + name: 'token', + type: 'address', + }, + ], + name: 'getTokenAllowance', + outputs: [ + { + internalType: 'uint256[5]', + name: '', + type: 'uint256[5]', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + ], + name: 'addDelegate', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'delegate', + type: 'address', + }, + { + internalType: 'bool', + name: 'removeAllowances', + type: 'bool', + }, + ], + name: 'removeDelegate', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'safe', + type: 'address', + }, + { + internalType: 'uint48', + name: 'start', + type: 'uint48', + }, + { + internalType: 'uint8', + name: 'pageSize', + type: 'uint8', + }, + ], + name: 'getDelegates', + outputs: [ + { + internalType: 'address[]', + name: 'results', + type: 'address[]', + }, + { + internalType: 'uint48', + name: 'next', + type: 'uint48', + }, + ], + stateMutability: 'view', + type: 'function', + constant: true, + }, +] as const + +export class AllowanceModule__factory { + static readonly abi = _abi + static createInterface(): AllowanceModuleInterface { + return new Interface(_abi) as AllowanceModuleInterface + } + static connect(address: string, runner?: ContractRunner | null): AllowanceModule { + return new Contract(address, _abi, runner) as unknown as AllowanceModule + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/index.ts new file mode 100644 index 000000000..83218d183 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.1/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { AllowanceModule__factory } from './AllowanceModule__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/index.ts new file mode 100644 index 000000000..fd5212410 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as allowanceModule from './allowance-module' +export * as safe4337Module from './safe-4337-module' +export * as safePasskeyModule from './safe-passkey-module' +export * as safeRecoveryModule from './safe-recovery-module' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/index.ts new file mode 100644 index 000000000..629fc842e --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as v020 from './v0.2.0' +export * as v030 from './v0.3.0' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib__factory.ts new file mode 100644 index 000000000..dd1984137 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib__factory.ts @@ -0,0 +1,35 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + AddModulesLib, + AddModulesLibInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib' + +const _abi = [ + { + inputs: [ + { + internalType: 'address[]', + name: 'modules', + type: 'address[]', + }, + ], + name: 'enableModules', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class AddModulesLib__factory { + static readonly abi = _abi + static createInterface(): AddModulesLibInterface { + return new Interface(_abi) as AddModulesLibInterface + } + static connect(address: string, runner?: ContractRunner | null): AddModulesLib { + return new Contract(address, _abi, runner) as unknown as AddModulesLib + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module__factory.ts new file mode 100644 index 000000000..7b31d8861 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module__factory.ts @@ -0,0 +1,598 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe4337Module, + Safe4337ModuleInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module' + +const _abi = [ + { + inputs: [ + { + internalType: 'address', + name: 'entryPoint', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [], + name: 'SUPPORTED_ENTRYPOINT', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract Safe', + name: 'safe', + type: 'address', + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'encodeMessageDataForSafe', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'uint8', + name: 'operation', + type: 'uint8', + }, + ], + name: 'executeUserOp', + 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: 'executeUserOpWithErrorString', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract Safe', + name: 'safe', + type: 'address', + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHashForSafe', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + 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', + }, + ], + name: 'getOperationHash', + outputs: [ + { + internalType: 'bytes32', + name: 'operationHash', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '_dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC1155BatchReceived', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC1155Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC721Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulate', + outputs: [ + { + internalType: 'bytes', + name: 'response', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'tokensReceived', + outputs: [], + stateMutability: 'pure', + type: 'function', + }, + { + 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 + +export class Safe4337Module__factory { + static readonly abi = _abi + static createInterface(): Safe4337ModuleInterface { + return new Interface(_abi) as Safe4337ModuleInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe4337Module { + return new Contract(address, _abi, runner) as unknown as Safe4337Module + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/index.ts new file mode 100644 index 000000000..47842388c --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { AddModulesLib__factory } from './AddModulesLib__factory' +export { Safe4337Module__factory } from './Safe4337Module__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/Safe4337Module__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/Safe4337Module__factory.ts new file mode 100644 index 000000000..4fa6996ac --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/Safe4337Module__factory.ts @@ -0,0 +1,609 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + Safe4337Module, + Safe4337ModuleInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/Safe4337Module' + +const _abi = [ + { + inputs: [ + { + internalType: 'address', + name: 'entryPoint', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [], + name: 'ExecutionFailed', + type: 'error', + }, + { + inputs: [], + name: 'InvalidCaller', + type: 'error', + }, + { + inputs: [], + name: 'InvalidEntryPoint', + type: 'error', + }, + { + inputs: [], + name: 'UnsupportedEntryPoint', + type: 'error', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'selector', + type: 'bytes4', + }, + ], + name: 'UnsupportedExecutionFunction', + type: 'error', + }, + { + inputs: [], + name: 'SUPPORTED_ENTRYPOINT', + outputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: 'domainSeparatorHash', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract Safe', + name: 'safe', + type: 'address', + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'encodeMessageDataForSafe', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'to', + type: 'address', + }, + { + internalType: 'uint256', + name: 'value', + type: 'uint256', + }, + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'uint8', + name: 'operation', + type: 'uint8', + }, + ], + name: 'executeUserOp', + 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: 'executeUserOpWithErrorString', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'contract Safe', + name: 'safe', + type: 'address', + }, + { + internalType: 'bytes', + name: 'message', + type: 'bytes', + }, + ], + name: 'getMessageHashForSafe', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'getModules', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + 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: 'bytes32', + name: 'accountGasLimits', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'preVerificationGas', + type: 'uint256', + }, + { + internalType: 'bytes32', + name: 'gasFees', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'paymasterAndData', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + ], + internalType: 'struct PackedUserOperation', + name: 'userOp', + type: 'tuple', + }, + ], + name: 'getOperationHash', + outputs: [ + { + internalType: 'bytes32', + name: 'operationHash', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: '_dataHash', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: '_data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + { + internalType: 'uint256[]', + name: '', + type: 'uint256[]', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC1155BatchReceived', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC1155Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'onERC721Received', + outputs: [ + { + internalType: 'bytes4', + name: '', + type: 'bytes4', + }, + ], + stateMutability: 'pure', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'targetContract', + type: 'address', + }, + { + internalType: 'bytes', + name: 'calldataPayload', + type: 'bytes', + }, + ], + name: 'simulate', + outputs: [ + { + internalType: 'bytes', + name: 'response', + type: 'bytes', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes4', + name: 'interfaceId', + type: 'bytes4', + }, + ], + name: 'supportsInterface', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'address', + name: '', + type: 'address', + }, + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + name: 'tokensReceived', + outputs: [], + stateMutability: 'pure', + type: 'function', + }, + { + 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: 'bytes32', + name: 'accountGasLimits', + type: 'bytes32', + }, + { + internalType: 'uint256', + name: 'preVerificationGas', + type: 'uint256', + }, + { + internalType: 'bytes32', + name: 'gasFees', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'paymasterAndData', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + ], + internalType: 'struct PackedUserOperation', + 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 + +export class Safe4337Module__factory { + static readonly abi = _abi + static createInterface(): Safe4337ModuleInterface { + return new Interface(_abi) as Safe4337ModuleInterface + } + static connect(address: string, runner?: ContractRunner | null): Safe4337Module { + return new Contract(address, _abi, runner) as unknown as Safe4337Module + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup__factory.ts new file mode 100644 index 000000000..ca883612b --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup__factory.ts @@ -0,0 +1,35 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + SafeModuleSetup, + SafeModuleSetupInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup' + +const _abi = [ + { + inputs: [ + { + internalType: 'address[]', + name: 'modules', + type: 'address[]', + }, + ], + name: 'enableModules', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, +] as const + +export class SafeModuleSetup__factory { + static readonly abi = _abi + static createInterface(): SafeModuleSetupInterface { + return new Interface(_abi) as SafeModuleSetupInterface + } + static connect(address: string, runner?: ContractRunner | null): SafeModuleSetup { + return new Contract(address, _abi, runner) as unknown as SafeModuleSetup + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/index.ts new file mode 100644 index 000000000..99f7ed694 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { Safe4337Module__factory } from './Safe4337Module__factory' +export { SafeModuleSetup__factory } from './SafeModuleSetup__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/index.ts new file mode 100644 index 000000000..7e7192fb8 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as v020 from './v0.2.0' +export * as v021 from './v0.2.1' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier__factory.ts new file mode 100644 index 000000000..02d08586c --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier__factory.ts @@ -0,0 +1,26 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + DaimoP256Verifier, + DaimoP256VerifierInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier' + +const _abi = [ + { + stateMutability: 'nonpayable', + type: 'fallback', + }, +] as const + +export class DaimoP256Verifier__factory { + static readonly abi = _abi + static createInterface(): DaimoP256VerifierInterface { + return new Interface(_abi) as DaimoP256VerifierInterface + } + static connect(address: string, runner?: ContractRunner | null): DaimoP256Verifier { + return new Contract(address, _abi, runner) as unknown as DaimoP256Verifier + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier__factory.ts new file mode 100644 index 000000000..3d3141ca5 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier__factory.ts @@ -0,0 +1,26 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + FclP256Verifier, + FclP256VerifierInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier' + +const _abi = [ + { + stateMutability: 'nonpayable', + type: 'fallback', + }, +] as const + +export class FclP256Verifier__factory { + static readonly abi = _abi + static createInterface(): FclP256VerifierInterface { + return new Interface(_abi) as FclP256VerifierInterface + } + static connect(address: string, runner?: ContractRunner | null): FclP256Verifier { + return new Contract(address, _abi, runner) as unknown as FclP256Verifier + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory__factory.ts new file mode 100644 index 000000000..4e2e56dda --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory__factory.ts @@ -0,0 +1,168 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + SafeWebauthnSignerFactory, + SafeWebauthnSignerFactoryInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + indexed: false, + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + name: 'Created', + type: 'event', + }, + { + inputs: [], + name: 'SINGLETON', + outputs: [ + { + internalType: 'contract SafeWebAuthnSignerSingleton', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + name: 'createSigner', + outputs: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + name: 'getSigner', + outputs: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'message', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + name: 'isValidSignatureForSigner', + outputs: [ + { + internalType: 'bytes4', + name: 'magicValue', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, +] as const + +export class SafeWebauthnSignerFactory__factory { + static readonly abi = _abi + static createInterface(): SafeWebauthnSignerFactoryInterface { + return new Interface(_abi) as SafeWebauthnSignerFactoryInterface + } + static connect(address: string, runner?: ContractRunner | null): SafeWebauthnSignerFactory { + return new Contract(address, _abi, runner) as unknown as SafeWebauthnSignerFactory + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/index.ts new file mode 100644 index 000000000..aad8cc164 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { DaimoP256Verifier__factory } from './DaimoP256Verifier__factory' +export { FclP256Verifier__factory } from './FclP256Verifier__factory' +export { SafeWebauthnSignerFactory__factory } from './SafeWebauthnSignerFactory__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/DaimoP256Verifier__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/DaimoP256Verifier__factory.ts new file mode 100644 index 000000000..ea20ac410 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/DaimoP256Verifier__factory.ts @@ -0,0 +1,26 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + DaimoP256Verifier, + DaimoP256VerifierInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/DaimoP256Verifier' + +const _abi = [ + { + stateMutability: 'nonpayable', + type: 'fallback', + }, +] as const + +export class DaimoP256Verifier__factory { + static readonly abi = _abi + static createInterface(): DaimoP256VerifierInterface { + return new Interface(_abi) as DaimoP256VerifierInterface + } + static connect(address: string, runner?: ContractRunner | null): DaimoP256Verifier { + return new Contract(address, _abi, runner) as unknown as DaimoP256Verifier + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/FclP256Verifier__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/FclP256Verifier__factory.ts new file mode 100644 index 000000000..7f2de44a4 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/FclP256Verifier__factory.ts @@ -0,0 +1,26 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + FclP256Verifier, + FclP256VerifierInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/FclP256Verifier' + +const _abi = [ + { + stateMutability: 'nonpayable', + type: 'fallback', + }, +] as const + +export class FclP256Verifier__factory { + static readonly abi = _abi + static createInterface(): FclP256VerifierInterface { + return new Interface(_abi) as FclP256VerifierInterface + } + static connect(address: string, runner?: ContractRunner | null): FclP256Verifier { + return new Contract(address, _abi, runner) as unknown as FclP256Verifier + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner__factory.ts new file mode 100644 index 000000000..aab61576e --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner__factory.ts @@ -0,0 +1,190 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + SafeWebauthnSharedSigner, + SafeWebauthnSharedSignerInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + inputs: [], + name: 'NotDelegateCalled', + type: 'error', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'bytes32', + name: 'publicKeyHash', + type: 'bytes32', + }, + { + indexed: false, + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + indexed: false, + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + name: 'SafeWebAuthnSharedSignerConfigured', + type: 'event', + }, + { + inputs: [], + name: 'SIGNER_SLOT', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + internalType: 'struct SafeWebAuthnSharedSigner.Signer', + name: 'signer', + type: 'tuple', + }, + ], + name: 'configure', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: 'account', + type: 'address', + }, + ], + name: 'getConfiguration', + outputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + internalType: 'struct SafeWebAuthnSharedSigner.Signer', + name: 'signer', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'message', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: 'magicValue', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes', + name: 'data', + type: 'bytes', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + ], + name: 'isValidSignature', + outputs: [ + { + internalType: 'bytes4', + name: 'magicValue', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, +] as const + +export class SafeWebauthnSharedSigner__factory { + static readonly abi = _abi + static createInterface(): SafeWebauthnSharedSignerInterface { + return new Interface(_abi) as SafeWebauthnSharedSignerInterface + } + static connect(address: string, runner?: ContractRunner | null): SafeWebauthnSharedSigner { + return new Contract(address, _abi, runner) as unknown as SafeWebauthnSharedSigner + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSignerFactory__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSignerFactory__factory.ts new file mode 100644 index 000000000..3acc8a4a4 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSignerFactory__factory.ts @@ -0,0 +1,168 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + SafeWebauthnSignerFactory, + SafeWebauthnSignerFactoryInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSignerFactory' + +const _abi = [ + { + inputs: [], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + indexed: false, + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + name: 'Created', + type: 'event', + }, + { + inputs: [], + name: 'SINGLETON', + outputs: [ + { + internalType: 'contract SafeWebAuthnSignerSingleton', + name: '', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + name: 'createSigner', + outputs: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + ], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + name: 'getSigner', + outputs: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'bytes32', + name: 'message', + type: 'bytes32', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + { + internalType: 'uint256', + name: 'x', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'y', + type: 'uint256', + }, + { + internalType: 'P256.Verifiers', + name: 'verifiers', + type: 'uint176', + }, + ], + name: 'isValidSignatureForSigner', + outputs: [ + { + internalType: 'bytes4', + name: 'magicValue', + type: 'bytes4', + }, + ], + stateMutability: 'view', + type: 'function', + }, +] as const + +export class SafeWebauthnSignerFactory__factory { + static readonly abi = _abi + static createInterface(): SafeWebauthnSignerFactoryInterface { + return new Interface(_abi) as SafeWebauthnSignerFactoryInterface + } + static connect(address: string, runner?: ContractRunner | null): SafeWebauthnSignerFactory { + return new Contract(address, _abi, runner) as unknown as SafeWebauthnSignerFactory + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/index.ts new file mode 100644 index 000000000..c76f62690 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/index.ts @@ -0,0 +1,7 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { DaimoP256Verifier__factory } from './DaimoP256Verifier__factory' +export { FclP256Verifier__factory } from './FclP256Verifier__factory' +export { SafeWebauthnSharedSigner__factory } from './SafeWebauthnSharedSigner__factory' +export { SafeWebauthnSignerFactory__factory } from './SafeWebauthnSignerFactory__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/index.ts new file mode 100644 index 000000000..fe7e4e16f --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as v010 from './v0.1.0' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule__factory.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule__factory.ts new file mode 100644 index 000000000..b162f0ee5 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule__factory.ts @@ -0,0 +1,731 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +import { Contract, Interface, type ContractRunner } from 'ethers' +import type { + SocialRecoveryModule, + SocialRecoveryModuleInterface, +} from '../../../../../../../@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule' + +const _abi = [ + { + inputs: [ + { + internalType: 'uint256', + name: '_recoveryPeriod', + type: 'uint256', + }, + ], + stateMutability: 'nonpayable', + type: 'constructor', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'wallet', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'threshold', + type: 'uint256', + }, + ], + name: 'ChangedThreshold', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'wallet', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'guardian', + type: 'address', + }, + ], + name: 'GuardianAdded', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'wallet', + type: 'address', + }, + { + indexed: true, + internalType: 'address', + name: 'guardian', + type: 'address', + }, + ], + name: 'GuardianRevoked', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'wallet', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'nonce', + type: 'uint256', + }, + ], + name: 'NonceInvalidated', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'wallet', + type: 'address', + }, + { + indexed: false, + internalType: 'uint256', + name: 'nonce', + type: 'uint256', + }, + ], + name: 'RecoveryCanceled', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'wallet', + type: 'address', + }, + { + indexed: true, + internalType: 'address[]', + name: 'newOwners', + type: 'address[]', + }, + { + indexed: false, + internalType: 'uint256', + name: 'newThreshold', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'nonce', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint64', + name: 'executeAfter', + type: 'uint64', + }, + { + indexed: false, + internalType: 'uint256', + name: 'guardiansApprovalCount', + type: 'uint256', + }, + ], + name: 'RecoveryExecuted', + type: 'event', + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: 'address', + name: 'wallet', + type: 'address', + }, + { + indexed: true, + internalType: 'address[]', + name: 'newOwners', + type: 'address[]', + }, + { + indexed: false, + internalType: 'uint256', + name: 'newThreshold', + type: 'uint256', + }, + { + indexed: false, + internalType: 'uint256', + name: 'nonce', + type: 'uint256', + }, + ], + name: 'RecoveryFinalized', + type: 'event', + }, + { + inputs: [], + name: 'NAME', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'VERSION', + outputs: [ + { + internalType: 'string', + name: '', + type: 'string', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_guardian', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'addGuardianWithThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'cancelRecovery', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'changeThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + { + internalType: 'address[]', + name: '_newOwners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_newThreshold', + type: 'uint256', + }, + { + internalType: 'bool', + name: '_execute', + type: 'bool', + }, + ], + name: 'confirmRecovery', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'domainSeparator', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + { + internalType: 'address[]', + name: '_newOwners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_newThreshold', + type: 'uint256', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'encodeRecoveryData', + outputs: [ + { + internalType: 'bytes', + name: '', + type: 'bytes', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + { + internalType: 'address[]', + name: '_newOwners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_newThreshold', + type: 'uint256', + }, + ], + name: 'executeRecovery', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + ], + name: 'finalizeRecovery', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [], + name: 'getChainId', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + ], + name: 'getGuardians', + outputs: [ + { + internalType: 'address[]', + name: '', + type: 'address[]', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + { + internalType: 'address[]', + name: '_newOwners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_newThreshold', + type: 'uint256', + }, + ], + name: 'getRecoveryApprovals', + outputs: [ + { + internalType: 'uint256', + name: 'approvalCount', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + { + internalType: 'address[]', + name: '_newOwners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_newThreshold', + type: 'uint256', + }, + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + name: 'getRecoveryHash', + outputs: [ + { + internalType: 'bytes32', + name: '', + type: 'bytes32', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + ], + name: 'getRecoveryRequest', + outputs: [ + { + components: [ + { + internalType: 'uint256', + name: 'guardiansApprovalCount', + type: 'uint256', + }, + { + internalType: 'uint256', + name: 'newThreshold', + type: 'uint256', + }, + { + internalType: 'uint64', + name: 'executeAfter', + type: 'uint64', + }, + { + internalType: 'address[]', + name: 'newOwners', + type: 'address[]', + }, + ], + internalType: 'struct SocialRecoveryModule.RecoveryRequest', + name: 'request', + type: 'tuple', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + ], + name: 'guardiansCount', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + { + internalType: 'address', + name: '_guardian', + type: 'address', + }, + { + internalType: 'address[]', + name: '_newOwners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_newThreshold', + type: 'uint256', + }, + ], + name: 'hasGuardianApproved', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [], + name: 'invalidateNonce', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + { + internalType: 'address', + name: '_guardian', + type: 'address', + }, + ], + name: 'isGuardian', + outputs: [ + { + internalType: 'bool', + name: '', + type: 'bool', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + { + internalType: 'address[]', + name: '_newOwners', + type: 'address[]', + }, + { + internalType: 'uint256', + name: '_newThreshold', + type: 'uint256', + }, + { + components: [ + { + internalType: 'address', + name: 'signer', + type: 'address', + }, + { + internalType: 'bytes', + name: 'signature', + type: 'bytes', + }, + ], + internalType: 'struct SocialRecoveryModule.SignatureData[]', + name: '_signatures', + type: 'tuple[]', + }, + { + internalType: 'bool', + name: '_execute', + type: 'bool', + }, + ], + name: 'multiConfirmRecovery', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + ], + name: 'nonce', + outputs: [ + { + internalType: 'uint256', + name: '_nonce', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_prevGuardian', + type: 'address', + }, + { + internalType: 'address', + name: '_guardian', + type: 'address', + }, + { + internalType: 'uint256', + name: '_threshold', + type: 'uint256', + }, + ], + name: 'revokeGuardianWithThreshold', + outputs: [], + stateMutability: 'nonpayable', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + ], + name: 'threshold', + outputs: [ + { + internalType: 'uint256', + name: '', + type: 'uint256', + }, + ], + stateMutability: 'view', + type: 'function', + }, + { + inputs: [ + { + internalType: 'address', + name: '_wallet', + type: 'address', + }, + { + internalType: 'bytes32', + name: '_signHash', + type: 'bytes32', + }, + { + internalType: 'address', + name: '_signer', + type: 'address', + }, + { + internalType: 'bytes', + name: '_signature', + type: 'bytes', + }, + ], + name: 'validateGuardianSignature', + outputs: [], + stateMutability: 'view', + type: 'function', + }, +] as const + +export class SocialRecoveryModule__factory { + static readonly abi = _abi + static createInterface(): SocialRecoveryModuleInterface { + return new Interface(_abi) as SocialRecoveryModuleInterface + } + static connect(address: string, runner?: ContractRunner | null): SocialRecoveryModule { + return new Contract(address, _abi, runner) as unknown as SocialRecoveryModule + } +} diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/index.ts new file mode 100644 index 000000000..431a3c411 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export { SocialRecoveryModule__factory } from './SocialRecoveryModule__factory' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/index.ts new file mode 100644 index 000000000..479933a89 --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/dist/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as assets from './assets' diff --git a/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/index.ts b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/index.ts new file mode 100644 index 000000000..0f991b5fd --- /dev/null +++ b/packages/utils/src/types/contracts/factories/@safe-global/safe-modules-deployments/index.ts @@ -0,0 +1,4 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as dist from './dist' diff --git a/packages/utils/src/types/contracts/factories/index.ts b/packages/utils/src/types/contracts/factories/index.ts new file mode 100644 index 000000000..0afe5223c --- /dev/null +++ b/packages/utils/src/types/contracts/factories/index.ts @@ -0,0 +1,5 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as openzeppelin from './@openzeppelin' +export * as safeGlobal from './@safe-global' diff --git a/packages/utils/src/types/contracts/index.ts b/packages/utils/src/types/contracts/index.ts new file mode 100644 index 000000000..85e0c1be6 --- /dev/null +++ b/packages/utils/src/types/contracts/index.ts @@ -0,0 +1,66 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +import type * as openzeppelin from './@openzeppelin' +export type { openzeppelin } +import type * as safeGlobal from './@safe-global' +export type { safeGlobal } +export * as factories from './factories' +export type { Gnosis_safe } from './@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe' +export { Gnosis_safe__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Gnosis_safe__factory' +export type { Proxy_factory } from './@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory' +export { Proxy_factory__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.0.0/Proxy_factory__factory' +export type { Default_callback_handler } from './@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler' +export { Default_callback_handler__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Default_callback_handler__factory' +export type { Multi_send } from './@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send' +export { Multi_send__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.1.1/Multi_send__factory' +export type { Compatibility_fallback_handler } from './@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler' +export { Compatibility_fallback_handler__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Compatibility_fallback_handler__factory' +export type { Create_call } from './@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call' +export { Create_call__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Create_call__factory' +export type { Gnosis_safe_l2 } from './@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2' +export { Gnosis_safe_l2__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Gnosis_safe_l2__factory' +export type { Multi_send_call_only } from './@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only' +export { Multi_send_call_only__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Multi_send_call_only__factory' +export type { Sign_message_lib } from './@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib' +export { Sign_message_lib__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Sign_message_lib__factory' +export type { Simulate_tx_accessor } from './@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor' +export { Simulate_tx_accessor__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.3.0/Simulate_tx_accessor__factory' +export type { Safe } from './@safe-global/safe-deployments/dist/assets/v1.4.1/Safe' +export { Safe__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe__factory' +export type { Safe_l2 } from './@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2' +export { Safe_l2__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_l2__factory' +export type { Safe_migration } from './@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration' +export { Safe_migration__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_migration__factory' +export type { Safe_proxy_factory } from './@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory' +export { Safe_proxy_factory__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_proxy_factory__factory' +export type { Safe_to_l2_migration } from './@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration' +export { Safe_to_l2_migration__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_migration__factory' +export type { Safe_to_l2_setup } from './@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup' +export { Safe_to_l2_setup__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.4.1/Safe_to_l2_setup__factory' +export type { Extensible_fallback_handler } from './@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler' +export { Extensible_fallback_handler__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Extensible_fallback_handler__factory' +export type { Token_callback_handler } from './@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler' +export { Token_callback_handler__factory } from './factories/@safe-global/safe-deployments/dist/assets/v1.5.0/Token_callback_handler__factory' +export type { AllowanceModule } from './@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule' +export { AllowanceModule__factory } from './factories/@safe-global/safe-modules-deployments/dist/assets/allowance-module/v0.1.0/AllowanceModule__factory' +export type { AddModulesLib } from './@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib' +export { AddModulesLib__factory } from './factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/AddModulesLib__factory' +export type { Safe4337Module } from './@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module' +export { Safe4337Module__factory } from './factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.2.0/Safe4337Module__factory' +export type { SafeModuleSetup } from './@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup' +export { SafeModuleSetup__factory } from './factories/@safe-global/safe-modules-deployments/dist/assets/safe-4337-module/v0.3.0/SafeModuleSetup__factory' +export type { DaimoP256Verifier } from './@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier' +export { DaimoP256Verifier__factory } from './factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/DaimoP256Verifier__factory' +export type { FclP256Verifier } from './@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier' +export { FclP256Verifier__factory } from './factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/FclP256Verifier__factory' +export type { SafeWebauthnSignerFactory } from './@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory' +export { SafeWebauthnSignerFactory__factory } from './factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.0/SafeWebauthnSignerFactory__factory' +export type { SafeWebauthnSharedSigner } from './@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner' +export { SafeWebauthnSharedSigner__factory } from './factories/@safe-global/safe-modules-deployments/dist/assets/safe-passkey-module/v0.2.1/SafeWebauthnSharedSigner__factory' +export type { SocialRecoveryModule } from './@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule' +export { SocialRecoveryModule__factory } from './factories/@safe-global/safe-modules-deployments/dist/assets/safe-recovery-module/v0.1.0/SocialRecoveryModule__factory' +export type { ERC20 } from './@openzeppelin/contracts/build/contracts/ERC20' +export { ERC20__factory } from './factories/@openzeppelin/contracts/build/contracts/ERC20__factory' +export type { ERC721 } from './@openzeppelin/contracts/build/contracts/ERC721' +export { ERC721__factory } from './factories/@openzeppelin/contracts/build/contracts/ERC721__factory' diff --git a/yarn.lock b/yarn.lock index aafaa2ab7..551ea2d11 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1953,6 +1953,15 @@ __metadata: languageName: node linkType: hard +"@emnapi/runtime@npm:^1.7.0": + version: 1.7.1 + resolution: "@emnapi/runtime@npm:1.7.1" + dependencies: + tslib: "npm:^2.4.0" + checksum: 10/6fc83f938e3c70e32e84c1fbe5cab6cb9340b8107cee4048384ad5b8f2998a06502b4bed342acaf6e44f473f2c14c4ab1e3fd5083bd7823fc63abfca9eff0175 + languageName: node + linkType: hard + "@emotion/babel-plugin@npm:^11.13.5": version: 11.13.5 resolution: "@emotion/babel-plugin@npm:11.13.5" @@ -4756,6 +4765,13 @@ __metadata: languageName: node linkType: hard +"@img/colour@npm:^1.0.0": + version: 1.0.0 + resolution: "@img/colour@npm:1.0.0" + checksum: 10/bd248d7c4b8ba99a72b22a005a63f1d3309ee8343a74b6d0d1314bae300a3096919991a09e9a9243cf6ca50e393b4c5a7e065488ed616c3b58d052473240b812 + languageName: node + linkType: hard + "@img/sharp-darwin-arm64@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-darwin-arm64@npm:0.33.5" @@ -4768,6 +4784,18 @@ __metadata: languageName: node linkType: hard +"@img/sharp-darwin-arm64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-darwin-arm64@npm:0.34.5" + dependencies: + "@img/sharp-libvips-darwin-arm64": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-darwin-arm64": + optional: true + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@img/sharp-darwin-x64@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-darwin-x64@npm:0.33.5" @@ -4780,6 +4808,18 @@ __metadata: languageName: node linkType: hard +"@img/sharp-darwin-x64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-darwin-x64@npm:0.34.5" + dependencies: + "@img/sharp-libvips-darwin-x64": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-darwin-x64": + optional: true + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@img/sharp-libvips-darwin-arm64@npm:1.0.4": version: 1.0.4 resolution: "@img/sharp-libvips-darwin-arm64@npm:1.0.4" @@ -4787,6 +4827,13 @@ __metadata: languageName: node linkType: hard +"@img/sharp-libvips-darwin-arm64@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-darwin-arm64@npm:1.2.4" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@img/sharp-libvips-darwin-x64@npm:1.0.4": version: 1.0.4 resolution: "@img/sharp-libvips-darwin-x64@npm:1.0.4" @@ -4794,6 +4841,13 @@ __metadata: languageName: node linkType: hard +"@img/sharp-libvips-darwin-x64@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-darwin-x64@npm:1.2.4" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@img/sharp-libvips-linux-arm64@npm:1.0.4": version: 1.0.4 resolution: "@img/sharp-libvips-linux-arm64@npm:1.0.4" @@ -4801,6 +4855,13 @@ __metadata: languageName: node linkType: hard +"@img/sharp-libvips-linux-arm64@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-linux-arm64@npm:1.2.4" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + "@img/sharp-libvips-linux-arm@npm:1.0.5": version: 1.0.5 resolution: "@img/sharp-libvips-linux-arm@npm:1.0.5" @@ -4808,6 +4869,27 @@ __metadata: languageName: node linkType: hard +"@img/sharp-libvips-linux-arm@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-linux-arm@npm:1.2.4" + conditions: os=linux & cpu=arm & libc=glibc + languageName: node + linkType: hard + +"@img/sharp-libvips-linux-ppc64@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-linux-ppc64@npm:1.2.4" + conditions: os=linux & cpu=ppc64 & libc=glibc + languageName: node + linkType: hard + +"@img/sharp-libvips-linux-riscv64@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-linux-riscv64@npm:1.2.4" + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + "@img/sharp-libvips-linux-s390x@npm:1.0.4": version: 1.0.4 resolution: "@img/sharp-libvips-linux-s390x@npm:1.0.4" @@ -4815,6 +4897,13 @@ __metadata: languageName: node linkType: hard +"@img/sharp-libvips-linux-s390x@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-linux-s390x@npm:1.2.4" + conditions: os=linux & cpu=s390x & libc=glibc + languageName: node + linkType: hard + "@img/sharp-libvips-linux-x64@npm:1.0.4": version: 1.0.4 resolution: "@img/sharp-libvips-linux-x64@npm:1.0.4" @@ -4822,6 +4911,13 @@ __metadata: languageName: node linkType: hard +"@img/sharp-libvips-linux-x64@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-linux-x64@npm:1.2.4" + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + "@img/sharp-libvips-linuxmusl-arm64@npm:1.0.4": version: 1.0.4 resolution: "@img/sharp-libvips-linuxmusl-arm64@npm:1.0.4" @@ -4829,6 +4925,13 @@ __metadata: languageName: node linkType: hard +"@img/sharp-libvips-linuxmusl-arm64@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-linuxmusl-arm64@npm:1.2.4" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + "@img/sharp-libvips-linuxmusl-x64@npm:1.0.4": version: 1.0.4 resolution: "@img/sharp-libvips-linuxmusl-x64@npm:1.0.4" @@ -4836,6 +4939,13 @@ __metadata: languageName: node linkType: hard +"@img/sharp-libvips-linuxmusl-x64@npm:1.2.4": + version: 1.2.4 + resolution: "@img/sharp-libvips-linuxmusl-x64@npm:1.2.4" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + "@img/sharp-linux-arm64@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-linux-arm64@npm:0.33.5" @@ -4848,6 +4958,18 @@ __metadata: languageName: node linkType: hard +"@img/sharp-linux-arm64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-linux-arm64@npm:0.34.5" + dependencies: + "@img/sharp-libvips-linux-arm64": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-linux-arm64": + optional: true + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + "@img/sharp-linux-arm@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-linux-arm@npm:0.33.5" @@ -4860,6 +4982,42 @@ __metadata: languageName: node linkType: hard +"@img/sharp-linux-arm@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-linux-arm@npm:0.34.5" + dependencies: + "@img/sharp-libvips-linux-arm": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-linux-arm": + optional: true + conditions: os=linux & cpu=arm & libc=glibc + languageName: node + linkType: hard + +"@img/sharp-linux-ppc64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-linux-ppc64@npm:0.34.5" + dependencies: + "@img/sharp-libvips-linux-ppc64": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-linux-ppc64": + optional: true + conditions: os=linux & cpu=ppc64 & libc=glibc + languageName: node + linkType: hard + +"@img/sharp-linux-riscv64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-linux-riscv64@npm:0.34.5" + dependencies: + "@img/sharp-libvips-linux-riscv64": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-linux-riscv64": + optional: true + conditions: os=linux & cpu=riscv64 & libc=glibc + languageName: node + linkType: hard + "@img/sharp-linux-s390x@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-linux-s390x@npm:0.33.5" @@ -4872,6 +5030,18 @@ __metadata: languageName: node linkType: hard +"@img/sharp-linux-s390x@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-linux-s390x@npm:0.34.5" + dependencies: + "@img/sharp-libvips-linux-s390x": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-linux-s390x": + optional: true + conditions: os=linux & cpu=s390x & libc=glibc + languageName: node + linkType: hard + "@img/sharp-linux-x64@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-linux-x64@npm:0.33.5" @@ -4884,6 +5054,18 @@ __metadata: languageName: node linkType: hard +"@img/sharp-linux-x64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-linux-x64@npm:0.34.5" + dependencies: + "@img/sharp-libvips-linux-x64": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-linux-x64": + optional: true + conditions: os=linux & cpu=x64 & libc=glibc + languageName: node + linkType: hard + "@img/sharp-linuxmusl-arm64@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-linuxmusl-arm64@npm:0.33.5" @@ -4896,6 +5078,18 @@ __metadata: languageName: node linkType: hard +"@img/sharp-linuxmusl-arm64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-linuxmusl-arm64@npm:0.34.5" + dependencies: + "@img/sharp-libvips-linuxmusl-arm64": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-linuxmusl-arm64": + optional: true + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + "@img/sharp-linuxmusl-x64@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-linuxmusl-x64@npm:0.33.5" @@ -4908,6 +5102,18 @@ __metadata: languageName: node linkType: hard +"@img/sharp-linuxmusl-x64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-linuxmusl-x64@npm:0.34.5" + dependencies: + "@img/sharp-libvips-linuxmusl-x64": "npm:1.2.4" + dependenciesMeta: + "@img/sharp-libvips-linuxmusl-x64": + optional: true + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + "@img/sharp-wasm32@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-wasm32@npm:0.33.5" @@ -4917,6 +5123,22 @@ __metadata: languageName: node linkType: hard +"@img/sharp-wasm32@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-wasm32@npm:0.34.5" + dependencies: + "@emnapi/runtime": "npm:^1.7.0" + conditions: cpu=wasm32 + languageName: node + linkType: hard + +"@img/sharp-win32-arm64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-win32-arm64@npm:0.34.5" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@img/sharp-win32-ia32@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-win32-ia32@npm:0.33.5" @@ -4924,6 +5146,13 @@ __metadata: languageName: node linkType: hard +"@img/sharp-win32-ia32@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-win32-ia32@npm:0.34.5" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@img/sharp-win32-x64@npm:0.33.5": version: 0.33.5 resolution: "@img/sharp-win32-x64@npm:0.33.5" @@ -4931,6 +5160,13 @@ __metadata: languageName: node linkType: hard +"@img/sharp-win32-x64@npm:0.34.5": + version: 0.34.5 + resolution: "@img/sharp-win32-x64@npm:0.34.5" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@inquirer/confirm@npm:^5.0.0": version: 5.1.1 resolution: "@inquirer/confirm@npm:5.1.1" @@ -5786,12 +6022,12 @@ __metadata: languageName: node linkType: hard -"@next/bundle-analyzer@npm:^15.0.4": - version: 15.1.1 - resolution: "@next/bundle-analyzer@npm:15.1.1" +"@next/bundle-analyzer@npm:^15.5.7": + version: 15.5.7 + resolution: "@next/bundle-analyzer@npm:15.5.7" dependencies: webpack-bundle-analyzer: "npm:4.10.1" - checksum: 10/ab5a66c20064ec23d66015c7da52fd307a92544f74f4b2292ecea10d305878c10e660d5e714dc4942c162a2cc44a116bddb56c60d7b9e44c5abd529c14ca82aa + checksum: 10/be3e3ab15679762117756b39a01f32f29fac34a7fb514997928ca226a48ec84ccd31029ebcf1df5cae0e91a9e384e5bb8d8ebe522161bd1fb69484e0c9ba204b languageName: node linkType: hard @@ -5802,25 +6038,25 @@ __metadata: languageName: node linkType: hard -"@next/env@npm:15.2.3": - version: 15.2.3 - resolution: "@next/env@npm:15.2.3" - checksum: 10/976f9e85b7e4e1b4bce16c06c4528a1febfce3ae20e7935440900bc4befd650257bf5a71c94b6c9391e251c6ee6080c868c759c1becaacddd25b280751013b2c +"@next/env@npm:15.5.7": + version: 15.5.7 + resolution: "@next/env@npm:15.5.7" + checksum: 10/11f971691018bd62a5bf253fc843fb2a6cf1431468f5c3a9d4d41753a6ff3e8bf7f539f46aba3f58f8bac59e681bf05fb5d771ac08d7dbd966a601257e1368bf languageName: node linkType: hard -"@next/eslint-plugin-next@npm:15.1.1": - version: 15.1.1 - resolution: "@next/eslint-plugin-next@npm:15.1.1" +"@next/eslint-plugin-next@npm:15.5.7": + version: 15.5.7 + resolution: "@next/eslint-plugin-next@npm:15.5.7" dependencies: fast-glob: "npm:3.3.1" - checksum: 10/1eba471a74e715d6dcabc2fb7bb3f8c57e3bc0afe7230f69420f4cdea4edd78338f09ddb429d65372b76c3799e3f1a427f5b74ffaac3a15738d5fd97f099df71 + checksum: 10/5b59860aeccc0d07a979c40e4405b410a9d7aa86a235d5dc0edbac8d2da35586f6f2fa3407cd3d80fd7e7d4f197c70291e9c6e71a64942d09b8fe82470e90ee0 languageName: node linkType: hard -"@next/mdx@npm:^15.0.4": - version: 15.1.1 - resolution: "@next/mdx@npm:15.1.1" +"@next/mdx@npm:^15.5.7": + version: 15.5.7 + resolution: "@next/mdx@npm:15.5.7" dependencies: source-map: "npm:^0.7.0" peerDependencies: @@ -5831,7 +6067,7 @@ __metadata: optional: true "@mdx-js/react": optional: true - checksum: 10/999d3d4692f1bdaead3b1872d666c56ee4dcb4344e13f0d22616a91b9ad64592598317fac63bda00dfb2a8deaab4b07c968d4c0ed55c370b90f16b2080086975 + checksum: 10/caf2ad1e3a8b02381ad33fe32f59e2ef4c15c96a04ba2a7d713991c142214d3b69d25b879ffc12da1c333ffd34d30aec44061d740f708c8e12529b183a159146 languageName: node linkType: hard @@ -5842,9 +6078,9 @@ __metadata: languageName: node linkType: hard -"@next/swc-darwin-arm64@npm:15.2.3": - version: 15.2.3 - resolution: "@next/swc-darwin-arm64@npm:15.2.3" +"@next/swc-darwin-arm64@npm:15.5.7": + version: 15.5.7 + resolution: "@next/swc-darwin-arm64@npm:15.5.7" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard @@ -5856,9 +6092,9 @@ __metadata: languageName: node linkType: hard -"@next/swc-darwin-x64@npm:15.2.3": - version: 15.2.3 - resolution: "@next/swc-darwin-x64@npm:15.2.3" +"@next/swc-darwin-x64@npm:15.5.7": + version: 15.5.7 + resolution: "@next/swc-darwin-x64@npm:15.5.7" conditions: os=darwin & cpu=x64 languageName: node linkType: hard @@ -5870,9 +6106,9 @@ __metadata: languageName: node linkType: hard -"@next/swc-linux-arm64-gnu@npm:15.2.3": - version: 15.2.3 - resolution: "@next/swc-linux-arm64-gnu@npm:15.2.3" +"@next/swc-linux-arm64-gnu@npm:15.5.7": + version: 15.5.7 + resolution: "@next/swc-linux-arm64-gnu@npm:15.5.7" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard @@ -5884,9 +6120,9 @@ __metadata: languageName: node linkType: hard -"@next/swc-linux-arm64-musl@npm:15.2.3": - version: 15.2.3 - resolution: "@next/swc-linux-arm64-musl@npm:15.2.3" +"@next/swc-linux-arm64-musl@npm:15.5.7": + version: 15.5.7 + resolution: "@next/swc-linux-arm64-musl@npm:15.5.7" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard @@ -5898,9 +6134,9 @@ __metadata: languageName: node linkType: hard -"@next/swc-linux-x64-gnu@npm:15.2.3": - version: 15.2.3 - resolution: "@next/swc-linux-x64-gnu@npm:15.2.3" +"@next/swc-linux-x64-gnu@npm:15.5.7": + version: 15.5.7 + resolution: "@next/swc-linux-x64-gnu@npm:15.5.7" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard @@ -5912,9 +6148,9 @@ __metadata: languageName: node linkType: hard -"@next/swc-linux-x64-musl@npm:15.2.3": - version: 15.2.3 - resolution: "@next/swc-linux-x64-musl@npm:15.2.3" +"@next/swc-linux-x64-musl@npm:15.5.7": + version: 15.5.7 + resolution: "@next/swc-linux-x64-musl@npm:15.5.7" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard @@ -5926,9 +6162,9 @@ __metadata: languageName: node linkType: hard -"@next/swc-win32-arm64-msvc@npm:15.2.3": - version: 15.2.3 - resolution: "@next/swc-win32-arm64-msvc@npm:15.2.3" +"@next/swc-win32-arm64-msvc@npm:15.5.7": + version: 15.5.7 + resolution: "@next/swc-win32-arm64-msvc@npm:15.5.7" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard @@ -5940,22 +6176,22 @@ __metadata: languageName: node linkType: hard -"@next/swc-win32-x64-msvc@npm:15.2.3": - version: 15.2.3 - resolution: "@next/swc-win32-x64-msvc@npm:15.2.3" +"@next/swc-win32-x64-msvc@npm:15.5.7": + version: 15.5.7 + resolution: "@next/swc-win32-x64-msvc@npm:15.5.7" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"@next/third-parties@npm:^15.2.0": - version: 15.2.0 - resolution: "@next/third-parties@npm:15.2.0" +"@next/third-parties@npm:^15.5.7": + version: 15.5.7 + resolution: "@next/third-parties@npm:15.5.7" dependencies: third-party-capital: "npm:1.0.20" peerDependencies: next: ^13.0.0 || ^14.0.0 || ^15.0.0 react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0 - checksum: 10/7713a5d6e51bcbbfb7f499f905770a4cfe25638a39e99fcdaefafaa343e71ae0596802584df776c5029c4879c73adc9a04be511e920f8618e793f0fb9f726b7f + checksum: 10/38aa516f5eae1683b711db3403a4febe8ea416fe1068d83c301906f3a7cfced053a3ee64c6534c5d3a29db9f97255ba7b8a0f51c44840f6f4898f81809ba5d2b languageName: node linkType: hard @@ -7755,9 +7991,9 @@ __metadata: "@mui/icons-material": "npm:^6.1.6" "@mui/material": "npm:^6.3.0" "@mui/x-date-pickers": "npm:^7.23.3" - "@next/bundle-analyzer": "npm:^15.0.4" - "@next/mdx": "npm:^15.0.4" - "@next/third-parties": "npm:^15.2.0" + "@next/bundle-analyzer": "npm:^15.5.7" + "@next/mdx": "npm:^15.5.7" + "@next/third-parties": "npm:^15.5.7" "@openzeppelin/contracts": "npm:^4.9.6" "@reduxjs/toolkit": "npm:^2.5.0" "@reown/walletkit": "npm:^1.2.1" @@ -7816,7 +8052,7 @@ __metadata: cypress-visual-regression: "npm:^5.2.2" date-fns: "npm:^2.30.0" eslint: "npm:^9.20.1" - eslint-config-next: "npm:^15.0.4" + eslint-config-next: "npm:^15.5.7" eslint-config-prettier: "npm:^9.1.0" eslint-plugin-no-only-tests: "npm:^3.3.0" eslint-plugin-prettier: "npm:^5.2.1" @@ -7836,7 +8072,7 @@ __metadata: lodash: "npm:^4.17.21" mockdate: "npm:^3.0.5" msw: "npm:^2.7.3" - next: "patch:next@15.2.3#../../.yarn/patches/next-npm-15.2.3-06a6671f62.patch" + next: "npm:15.5.7" papaparse: "npm:^5.3.2" prettier: "npm:^3.3.3" qrcode.react: "npm:^3.1.0" @@ -16330,6 +16566,13 @@ __metadata: languageName: node linkType: hard +"detect-libc@npm:^2.1.2": + version: 2.1.2 + resolution: "detect-libc@npm:2.1.2" + checksum: 10/b736c8d97d5d46164c0d1bed53eb4e6a3b1d8530d460211e2d52f1c552875e706c58a5376854e4e54f8b828c9cada58c855288c968522eb93ac7696d65970766 + languageName: node + linkType: hard + "detect-newline@npm:^3.0.0": version: 3.1.0 resolution: "detect-newline@npm:3.1.0" @@ -17453,11 +17696,11 @@ __metadata: languageName: node linkType: hard -"eslint-config-next@npm:^15.0.4": - version: 15.1.1 - resolution: "eslint-config-next@npm:15.1.1" +"eslint-config-next@npm:^15.5.7": + version: 15.5.7 + resolution: "eslint-config-next@npm:15.5.7" dependencies: - "@next/eslint-plugin-next": "npm:15.1.1" + "@next/eslint-plugin-next": "npm:15.5.7" "@rushstack/eslint-patch": "npm:^1.10.3" "@typescript-eslint/eslint-plugin": "npm:^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0" "@typescript-eslint/parser": "npm:^5.4.2 || ^6.0.0 || ^7.0.0 || ^8.0.0" @@ -17473,7 +17716,7 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 10/e82805e9a44bf755d961c64663da0997b43e9aef4ac9d961bf7bba5e8d0c88cf3501e26b874205649984048c1d100d4060243d4c50607330acdac8490ce2643a + checksum: 10/fd1813c7ef4e33ec297b86dd0de75879e10514b12cb04a103e7a5b8c5f27d2ea0a91dd15e6d530006c9fe3e7e18f815e900bd6ba117c3b8fbe311c38c340d899 languageName: node linkType: hard @@ -24827,29 +25070,27 @@ __metadata: languageName: node linkType: hard -"next@npm:15.2.3": - version: 15.2.3 - resolution: "next@npm:15.2.3" +"next@npm:15.5.7": + version: 15.5.7 + resolution: "next@npm:15.5.7" dependencies: - "@next/env": "npm:15.2.3" - "@next/swc-darwin-arm64": "npm:15.2.3" - "@next/swc-darwin-x64": "npm:15.2.3" - "@next/swc-linux-arm64-gnu": "npm:15.2.3" - "@next/swc-linux-arm64-musl": "npm:15.2.3" - "@next/swc-linux-x64-gnu": "npm:15.2.3" - "@next/swc-linux-x64-musl": "npm:15.2.3" - "@next/swc-win32-arm64-msvc": "npm:15.2.3" - "@next/swc-win32-x64-msvc": "npm:15.2.3" - "@swc/counter": "npm:0.1.3" + "@next/env": "npm:15.5.7" + "@next/swc-darwin-arm64": "npm:15.5.7" + "@next/swc-darwin-x64": "npm:15.5.7" + "@next/swc-linux-arm64-gnu": "npm:15.5.7" + "@next/swc-linux-arm64-musl": "npm:15.5.7" + "@next/swc-linux-x64-gnu": "npm:15.5.7" + "@next/swc-linux-x64-musl": "npm:15.5.7" + "@next/swc-win32-arm64-msvc": "npm:15.5.7" + "@next/swc-win32-x64-msvc": "npm:15.5.7" "@swc/helpers": "npm:0.5.15" - busboy: "npm:1.6.0" caniuse-lite: "npm:^1.0.30001579" postcss: "npm:8.4.31" - sharp: "npm:^0.33.5" + sharp: "npm:^0.34.3" styled-jsx: "npm:5.1.6" peerDependencies: "@opentelemetry/api": ^1.1.0 - "@playwright/test": ^1.41.2 + "@playwright/test": ^1.51.1 babel-plugin-react-compiler: "*" react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0 react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0 @@ -24884,68 +25125,7 @@ __metadata: optional: true bin: next: dist/bin/next - checksum: 10/91714227d09ad1a41340bfa10a2ad212fa372d5d6255dd14cc47cccb4795a04c8ac08a8b10998d2d7bf90eeca46668091d4a0398ec11224310fd96a484bca867 - languageName: node - linkType: hard - -"next@patch:next@15.2.3#../../.yarn/patches/next-npm-15.2.3-06a6671f62.patch::locator=%40safe-global%2Fweb%40workspace%3Aapps%2Fweb": - version: 15.2.3 - resolution: "next@patch:next@npm%3A15.2.3#../../.yarn/patches/next-npm-15.2.3-06a6671f62.patch::version=15.2.3&hash=f475b4&locator=%40safe-global%2Fweb%40workspace%3Aapps%2Fweb" - dependencies: - "@next/env": "npm:15.2.3" - "@next/swc-darwin-arm64": "npm:15.2.3" - "@next/swc-darwin-x64": "npm:15.2.3" - "@next/swc-linux-arm64-gnu": "npm:15.2.3" - "@next/swc-linux-arm64-musl": "npm:15.2.3" - "@next/swc-linux-x64-gnu": "npm:15.2.3" - "@next/swc-linux-x64-musl": "npm:15.2.3" - "@next/swc-win32-arm64-msvc": "npm:15.2.3" - "@next/swc-win32-x64-msvc": "npm:15.2.3" - "@swc/counter": "npm:0.1.3" - "@swc/helpers": "npm:0.5.15" - busboy: "npm:1.6.0" - caniuse-lite: "npm:^1.0.30001579" - postcss: "npm:8.4.31" - sharp: "npm:^0.33.5" - styled-jsx: "npm:5.1.6" - peerDependencies: - "@opentelemetry/api": ^1.1.0 - "@playwright/test": ^1.41.2 - babel-plugin-react-compiler: "*" - react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0 - react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0 - sass: ^1.3.0 - dependenciesMeta: - "@next/swc-darwin-arm64": - optional: true - "@next/swc-darwin-x64": - optional: true - "@next/swc-linux-arm64-gnu": - optional: true - "@next/swc-linux-arm64-musl": - optional: true - "@next/swc-linux-x64-gnu": - optional: true - "@next/swc-linux-x64-musl": - optional: true - "@next/swc-win32-arm64-msvc": - optional: true - "@next/swc-win32-x64-msvc": - optional: true - sharp: - optional: true - peerDependenciesMeta: - "@opentelemetry/api": - optional: true - "@playwright/test": - optional: true - babel-plugin-react-compiler: - optional: true - sass: - optional: true - bin: - next: dist/bin/next - checksum: 10/e9d99d89e310f2f378bba828a076edc7ab02e3f2927aea35ce16c4c5d0462387d7b561a199dd8793bc99cc240b5c8820a976d2fae8b7123d18e7ecce2dbaf1a2 + checksum: 10/bfac0cbac41b36227ec91d3a0727561f73dfc35d6a78eafd0200528ef95fa2e9d2dba5a8c8922864b4f4e4321ae6a07c6cf8f5766ac3192ad03e68516c3a458a languageName: node linkType: hard @@ -28773,6 +28953,15 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.7.3": + version: 7.7.3 + resolution: "semver@npm:7.7.3" + bin: + semver: bin/semver.js + checksum: 10/8dbc3168e057a38fc322af909c7f5617483c50caddba135439ff09a754b20bdd6482a5123ff543dad4affa488ecf46ec5fb56d61312ad20bb140199b88dfaea9 + languageName: node + linkType: hard + "send@npm:0.19.0": version: 0.19.0 resolution: "send@npm:0.19.0" @@ -29018,6 +29207,90 @@ __metadata: languageName: node linkType: hard +"sharp@npm:^0.34.3": + version: 0.34.5 + resolution: "sharp@npm:0.34.5" + dependencies: + "@img/colour": "npm:^1.0.0" + "@img/sharp-darwin-arm64": "npm:0.34.5" + "@img/sharp-darwin-x64": "npm:0.34.5" + "@img/sharp-libvips-darwin-arm64": "npm:1.2.4" + "@img/sharp-libvips-darwin-x64": "npm:1.2.4" + "@img/sharp-libvips-linux-arm": "npm:1.2.4" + "@img/sharp-libvips-linux-arm64": "npm:1.2.4" + "@img/sharp-libvips-linux-ppc64": "npm:1.2.4" + "@img/sharp-libvips-linux-riscv64": "npm:1.2.4" + "@img/sharp-libvips-linux-s390x": "npm:1.2.4" + "@img/sharp-libvips-linux-x64": "npm:1.2.4" + "@img/sharp-libvips-linuxmusl-arm64": "npm:1.2.4" + "@img/sharp-libvips-linuxmusl-x64": "npm:1.2.4" + "@img/sharp-linux-arm": "npm:0.34.5" + "@img/sharp-linux-arm64": "npm:0.34.5" + "@img/sharp-linux-ppc64": "npm:0.34.5" + "@img/sharp-linux-riscv64": "npm:0.34.5" + "@img/sharp-linux-s390x": "npm:0.34.5" + "@img/sharp-linux-x64": "npm:0.34.5" + "@img/sharp-linuxmusl-arm64": "npm:0.34.5" + "@img/sharp-linuxmusl-x64": "npm:0.34.5" + "@img/sharp-wasm32": "npm:0.34.5" + "@img/sharp-win32-arm64": "npm:0.34.5" + "@img/sharp-win32-ia32": "npm:0.34.5" + "@img/sharp-win32-x64": "npm:0.34.5" + detect-libc: "npm:^2.1.2" + semver: "npm:^7.7.3" + dependenciesMeta: + "@img/sharp-darwin-arm64": + optional: true + "@img/sharp-darwin-x64": + optional: true + "@img/sharp-libvips-darwin-arm64": + optional: true + "@img/sharp-libvips-darwin-x64": + optional: true + "@img/sharp-libvips-linux-arm": + optional: true + "@img/sharp-libvips-linux-arm64": + optional: true + "@img/sharp-libvips-linux-ppc64": + optional: true + "@img/sharp-libvips-linux-riscv64": + optional: true + "@img/sharp-libvips-linux-s390x": + optional: true + "@img/sharp-libvips-linux-x64": + optional: true + "@img/sharp-libvips-linuxmusl-arm64": + optional: true + "@img/sharp-libvips-linuxmusl-x64": + optional: true + "@img/sharp-linux-arm": + optional: true + "@img/sharp-linux-arm64": + optional: true + "@img/sharp-linux-ppc64": + optional: true + "@img/sharp-linux-riscv64": + optional: true + "@img/sharp-linux-s390x": + optional: true + "@img/sharp-linux-x64": + optional: true + "@img/sharp-linuxmusl-arm64": + optional: true + "@img/sharp-linuxmusl-x64": + optional: true + "@img/sharp-wasm32": + optional: true + "@img/sharp-win32-arm64": + optional: true + "@img/sharp-win32-ia32": + optional: true + "@img/sharp-win32-x64": + optional: true + checksum: 10/d62bc638c8ad382dffc266beeaffab71457d592abeb6fdf95b512e6dcbce0abf47b8d903b4ea081f012ceb40e4462f1e219184c729329146df32a5ccec2c231f + languageName: node + linkType: hard + "shebang-command@npm:^1.2.0": version: 1.2.0 resolution: "shebang-command@npm:1.2.0"