From 526a7189022c840f771441a7f507f53b456df2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20P=C3=A9rez=20V=C3=A1zquez?= Date: Wed, 18 Sep 2024 11:14:05 +0200 Subject: [PATCH] chore: Types kit (#973) --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- README.md | 2 +- guides/README.md | 2 +- guides/integrating-the-safe-core-sdk.md | 4 ++-- packages/api-kit/package.json | 2 +- packages/api-kit/src/SafeApiKit.ts | 2 +- packages/api-kit/src/types/safeTransactionServiceTypes.ts | 2 +- packages/api-kit/src/utils/safeOperation.ts | 2 +- packages/api-kit/tests/e2e/addMessageSignature.test.ts | 2 +- packages/api-kit/tests/e2e/confirmSafeOperation.test.ts | 2 +- packages/api-kit/tests/e2e/confirmTransaction.test.ts | 2 +- .../api-kit/tests/e2e/getSafeOperationsByAddress.test.ts | 2 +- packages/api-kit/tests/endpoint/index.test.ts | 2 +- packages/protocol-kit/package.json | 2 +- packages/protocol-kit/scripts/safe-deployments/utils.ts | 2 +- packages/protocol-kit/src/Safe.ts | 2 +- packages/protocol-kit/src/SafeFactory.ts | 2 +- packages/protocol-kit/src/SafeProvider.ts | 2 +- packages/protocol-kit/src/contracts/BaseContract.ts | 2 +- .../CompatibilityFallbackHandlerBaseContract.ts | 2 +- .../v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts | 2 +- .../v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts | 2 +- .../src/contracts/CreateCall/CreateCallBaseContract.ts | 2 +- .../CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts | 2 +- .../CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts | 2 +- .../src/contracts/MultiSend/MultiSendBaseContract.ts | 2 +- .../contracts/MultiSend/MultiSendCallOnlyBaseContract.ts | 2 +- .../MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts | 2 +- .../MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts | 2 +- .../MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts | 2 +- .../MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts | 2 +- .../MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts | 2 +- .../protocol-kit/src/contracts/Safe/SafeBaseContract.ts | 2 +- .../src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts | 2 +- .../src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts | 2 +- .../src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts | 2 +- .../src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts | 2 +- .../src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts | 2 +- .../SafeProxyFactory/SafeProxyFactoryBaseContract.ts | 2 +- .../v1.0.0/SafeProxyFactoryContract_v1_0_0.ts | 2 +- .../v1.1.1/SafeProxyFactoryContract_v1_1_1.ts | 2 +- .../v1.3.0/SafeProxyFactoryContract_v1_3_0.ts | 2 +- .../v1.4.1/SafeProxyFactoryContract_v1_4_1.ts | 2 +- .../SafeWebAuthnSharedSignerBaseContract.ts | 2 +- .../v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.ts | 2 +- .../SafeWebAuthnSignerFactoryBaseContract.ts | 2 +- .../v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.ts | 2 +- .../SignMessageLib/SignMessageLibBaseContract.ts | 2 +- .../v1.3.0/SignMessageLibContract_v1_3_0.ts | 2 +- .../v1.4.1/SignMessageLibContract_v1_4_1.ts | 2 +- .../SimulateTxAccessor/SimulateTxAccessorBaseContract.ts | 2 +- .../v1.3.0/SimulateTxAccessorContract_v1_3_0.ts | 2 +- .../v1.4.1/SimulateTxAccessorContract_v1_4_1.ts | 2 +- packages/protocol-kit/src/contracts/config.ts | 2 +- packages/protocol-kit/src/contracts/contractInstances.ts | 2 +- .../protocol-kit/src/contracts/safeDeploymentContracts.ts | 2 +- packages/protocol-kit/src/contracts/utils.ts | 2 +- packages/protocol-kit/src/managers/contractManager.ts | 2 +- packages/protocol-kit/src/types/contracts.ts | 2 +- packages/protocol-kit/src/types/safeConfig.ts | 2 +- packages/protocol-kit/src/types/safeFactory.ts | 2 +- packages/protocol-kit/src/types/transactions.ts | 2 +- packages/protocol-kit/src/utils/eip-3770/index.ts | 2 +- packages/protocol-kit/src/utils/eip-712/encode.ts | 2 +- packages/protocol-kit/src/utils/eip-712/index.ts | 2 +- packages/protocol-kit/src/utils/erc-20/index.ts | 2 +- packages/protocol-kit/src/utils/messages/SafeMessage.ts | 2 +- .../protocol-kit/src/utils/signatures/SafeSignature.ts | 2 +- packages/protocol-kit/src/utils/signatures/utils.ts | 6 +----- .../src/utils/transactions/SafeTransaction.ts | 6 +----- packages/protocol-kit/src/utils/transactions/gas.ts | 2 +- packages/protocol-kit/src/utils/transactions/types.ts | 2 +- packages/protocol-kit/src/utils/transactions/utils.ts | 2 +- packages/protocol-kit/tests/e2e/createTransaction.test.ts | 2 +- .../protocol-kit/tests/e2e/createTransactionBatch.test.ts | 2 +- .../tests/e2e/eip1271-contract-signatures.test.ts | 2 +- packages/protocol-kit/tests/e2e/eip1271.test.ts | 2 +- packages/protocol-kit/tests/e2e/execution.test.ts | 2 +- .../protocol-kit/tests/e2e/offChainSignatures.test.ts | 2 +- packages/protocol-kit/tests/e2e/passkey.test.ts | 2 +- packages/protocol-kit/tests/e2e/safeProvider.test.ts | 2 +- packages/protocol-kit/tests/e2e/transactionUtils.test.ts | 2 +- packages/protocol-kit/tests/e2e/utils/transactions.ts | 2 +- packages/protocol-kit/tests/unit/eip-712.test.ts | 3 +-- packages/relay-kit/package.json | 2 +- packages/relay-kit/src/deprecated.ts | 8 ++++---- .../relay-kit/src/packs/gelato/GelatoRelayPack.test.ts | 3 +-- packages/relay-kit/src/packs/gelato/GelatoRelayPack.ts | 2 +- packages/relay-kit/src/packs/gelato/types.ts | 2 +- .../relay-kit/src/packs/safe-4337/Safe4337Pack.test.ts | 2 +- packages/relay-kit/src/packs/safe-4337/Safe4337Pack.ts | 2 +- packages/relay-kit/src/packs/safe-4337/SafeOperation.ts | 2 +- .../src/packs/safe-4337/estimators/PimlicoFeeEstimator.ts | 2 +- packages/relay-kit/src/packs/safe-4337/types.ts | 2 +- packages/relay-kit/src/packs/safe-4337/utils.ts | 2 +- packages/sdk-starter-kit/package.json | 2 +- packages/sdk-starter-kit/src/BaseClient.ts | 2 +- packages/sdk-starter-kit/src/SafeClient.ts | 2 +- .../src/extensions/messages/SafeMessageClient.ts | 2 +- .../src/extensions/messages/onChainMessages.ts | 2 +- packages/sdk-starter-kit/src/types.ts | 2 +- packages/sdk-starter-kit/src/utils/index.ts | 2 +- packages/sdk-starter-kit/src/utils/proposeTransaction.ts | 2 +- packages/sdk-starter-kit/src/utils/sendTransaction.ts | 2 +- packages/testing-kit/package.json | 2 +- .../testing-kit/src/hardhat/deploy/deploy-contracts.ts | 2 +- packages/testing-kit/src/utils/setupTests.ts | 2 +- packages/{safe-core-sdk-types => types-kit}/LICENSE.md | 0 packages/{safe-core-sdk-types => types-kit}/README.md | 4 ++-- packages/{safe-core-sdk-types => types-kit}/package.json | 6 +++--- .../CompatibilityFallbackHandlerBaseContract.ts | 0 .../src/contracts/CompatibilityFallbackHandler/index.ts | 0 .../v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts | 0 .../v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts | 0 .../src/contracts/CreateCall/CreateCallBaseContract.ts | 0 .../src/contracts/CreateCall/index.ts | 0 .../CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts | 0 .../CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts | 0 .../src/contracts/MultiSend/MultiSendBaseContract.ts | 0 .../contracts/MultiSend/MultiSendCallOnlyBaseContract.ts | 0 .../src/contracts/MultiSend/index.ts | 0 .../MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts | 0 .../MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts | 0 .../MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts | 0 .../MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts | 0 .../MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts | 0 .../src/contracts/Safe/SafeBaseContract.ts | 0 .../src/contracts/Safe/index.ts | 0 .../src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts | 0 .../src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts | 0 .../src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts | 0 .../src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts | 0 .../src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts | 0 .../SafeProxyFactory/SafeProxyFactoryBaseContract.ts | 0 .../src/contracts/SafeProxyFactory/index.ts | 0 .../v1.0.0/SafeProxyFactoryContract_v1_0_0.ts | 0 .../v1.1.1/SafeProxyFactoryContract_v1_1_1.ts | 0 .../v1.3.0/SafeProxyFactoryContract_v1_3_0.ts | 0 .../v1.4.1/SafeProxyFactoryContract_v1_4_1.ts | 0 .../SafeWebAuthnSharedSignerBaseContract.ts | 0 .../src/contracts/SafeWebAuthnSharedSigner/index.ts | 0 .../v0.2.1/SafeWebAuthnSharedSigner_v0_2_1.ts | 0 .../SafeWebAuthnSignerFactoryBaseContract.ts | 0 .../src/contracts/SafeWebAuthnSignerFactory/index.ts | 0 .../v0.2.1/SafeWebAuthnSignerFactory_v0_2_1.ts | 0 .../SignMessageLib/SignMessageLibBaseContract.ts | 0 .../src/contracts/SignMessageLib/index.ts | 0 .../v1.3.0/SignMessageLibContract_v1_3_0.ts | 0 .../v1.4.1/SignMessageLibContract_v1_4_1.ts | 0 .../SimulateTxAccessor/SimulateTxAccessorBaseContract.ts | 0 .../src/contracts/SimulateTxAccessor/index.ts | 0 .../v1.3.0/SimulateTxAccessorContract_v1_3_0.ts | 0 .../v1.4.1/SimulateTxAccessorContract_v1_4_1.ts | 0 .../v1.3.0/compatibility_fallback_handler.ts | 0 .../v1.4.1/compatibility_fallback_handler.ts | 0 .../src/contracts/assets/CreateCall/v1.3.0/create_call.ts | 0 .../src/contracts/assets/CreateCall/v1.4.1/create_call.ts | 0 .../src/contracts/assets/MultiSend/v1.1.1/multi_send.ts | 0 .../src/contracts/assets/MultiSend/v1.3.0/multi_send.ts | 0 .../assets/MultiSend/v1.3.0/multi_send_call_only.ts | 0 .../src/contracts/assets/MultiSend/v1.4.1/multi_send.ts | 0 .../assets/MultiSend/v1.4.1/multi_send_call_only.ts | 0 .../src/contracts/assets/Safe/v1.0.0/gnosis_safe.ts | 0 .../src/contracts/assets/Safe/v1.1.1/gnosis_safe.ts | 0 .../src/contracts/assets/Safe/v1.2.0/gnosis_safe.ts | 0 .../src/contracts/assets/Safe/v1.3.0/gnosis_safe_l2.ts | 0 .../src/contracts/assets/Safe/v1.4.1/safe_l2.ts | 0 .../assets/SafeProxyFactory/v1.0.0/proxy_factory.ts | 0 .../assets/SafeProxyFactory/v1.1.1/proxy_factory.ts | 0 .../assets/SafeProxyFactory/v1.3.0/proxy_factory.ts | 0 .../assets/SafeProxyFactory/v1.4.1/safe_proxy_factory.ts | 0 .../v0.2.1/safe_webauthn_shared_signer.ts | 0 .../v0.2.1/safe_webauthn_signer_factory.ts | 0 .../assets/SignMessageLib/v1.3.0/sign_message_lib.ts | 0 .../assets/SignMessageLib/v1.4.1/sign_message_lib.ts | 0 .../SimulateTxAccessor/v1.3.0/simulate_tx_accessor.ts | 0 .../SimulateTxAccessor/v1.4.1/simulate_tx_accessor.ts | 0 .../src/contracts/assets/index.ts | 0 .../src/contracts/common/BaseContract.ts | 6 +----- packages/{safe-core-sdk-types => types-kit}/src/index.ts | 0 packages/{safe-core-sdk-types => types-kit}/src/types.ts | 0 .../tsconfig.build.json | 0 packages/{safe-core-sdk-types => types-kit}/tsconfig.json | 0 playground/api-kit/propose-transaction.ts | 2 +- playground/protocol-kit/create-execute-transaction.ts | 2 +- playground/protocol-kit/deploy-safe.ts | 2 +- playground/protocol-kit/generate-safe-address.ts | 2 +- playground/relay-kit/paid-transaction.ts | 2 +- playground/relay-kit/sponsored-transaction.ts | 2 +- tsconfig.json | 2 +- tsconfig.settings.json | 2 +- 191 files changed, 125 insertions(+), 139 deletions(-) rename packages/{safe-core-sdk-types => types-kit}/LICENSE.md (100%) rename packages/{safe-core-sdk-types => types-kit}/README.md (84%) rename packages/{safe-core-sdk-types => types-kit}/package.json (87%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/CompatibilityFallbackHandler/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/CreateCall/CreateCallBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/CreateCall/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/MultiSend/MultiSendBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/MultiSend/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/Safe/SafeBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/Safe/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeProxyFactory/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeWebAuthnSharedSigner/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSigner_v0_2_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeWebAuthnSignerFactory/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactory_v0_2_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SignMessageLib/SignMessageLibBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SignMessageLib/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SimulateTxAccessor/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/CompatibilityFallbackHandler/v1.3.0/compatibility_fallback_handler.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/CompatibilityFallbackHandler/v1.4.1/compatibility_fallback_handler.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/CreateCall/v1.3.0/create_call.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/CreateCall/v1.4.1/create_call.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/MultiSend/v1.1.1/multi_send.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/MultiSend/v1.3.0/multi_send.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/MultiSend/v1.3.0/multi_send_call_only.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/MultiSend/v1.4.1/multi_send.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/MultiSend/v1.4.1/multi_send_call_only.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/Safe/v1.0.0/gnosis_safe.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/Safe/v1.1.1/gnosis_safe.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/Safe/v1.2.0/gnosis_safe.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/Safe/v1.3.0/gnosis_safe_l2.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/Safe/v1.4.1/safe_l2.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SafeProxyFactory/v1.0.0/proxy_factory.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SafeProxyFactory/v1.1.1/proxy_factory.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SafeProxyFactory/v1.3.0/proxy_factory.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SafeProxyFactory/v1.4.1/safe_proxy_factory.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SafeWebAuthnSharedSigner/v0.2.1/safe_webauthn_shared_signer.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SafeWebAuthnSignerFactory/v0.2.1/safe_webauthn_signer_factory.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SignMessageLib/v1.3.0/sign_message_lib.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SignMessageLib/v1.4.1/sign_message_lib.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SimulateTxAccessor/v1.3.0/simulate_tx_accessor.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/SimulateTxAccessor/v1.4.1/simulate_tx_accessor.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/assets/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/contracts/common/BaseContract.ts (97%) rename packages/{safe-core-sdk-types => types-kit}/src/index.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/src/types.ts (100%) rename packages/{safe-core-sdk-types => types-kit}/tsconfig.build.json (100%) rename packages/{safe-core-sdk-types => types-kit}/tsconfig.json (100%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 1dbd2044e..0ecee93d0 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -21,7 +21,7 @@ Please describe concisely the bug you have found. - api-kit: - protocol-kit: - relay-kit: - - safe-core-sdk-types: + - types-kit: - sdk-starter-kit: - Safe contract version: - Environment: diff --git a/README.md b/README.md index 259ea0ba5..bbcd1931f 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ If you want to develop using Safe Smart Accounts in a Javascript/Typescript app, | [protocol-kit](https://github.com/safe-global/safe-core-sdk/tree/main/packages/protocol-kit) | [![npm Version](https://badge.fury.io/js/%40safe-global%2Fprotocol-kit.svg)](https://badge.fury.io/js/%40safe-global%2Fprotocol-kit) | TypeScript library that facilitates the interaction with [Safe Smart Accounts](https://github.com/safe-global/safe-smart-account). Can be used to create new Safe accounts, update the configuration of existing Safes, create and execute transactions, among other features. | | [api-kit](https://github.com/safe-global/safe-core-sdk/tree/main/packages/api-kit) | [![npm Version](https://badge.fury.io/js/%40safe-global%2Fapi-kit.svg)](https://badge.fury.io/js/%40safe-global%2Fapi-kit) | [Safe Transaction Service API](https://github.com/safe-global/safe-transaction-service) typescript library. Allows to propose and share transactions with the other signers of a Safe, sending the signatures to the service to collect them, and getting information about a Safe, among other features. | | [relay-kit](https://github.com/safe-global/safe-core-sdk/tree/main/packages/relay-kit) | ​​​[​![npm Version](https://badge.fury.io/js/%40safe-global%2Frelay-kit.svg)​](https://badge.fury.io/js/%40safe-global%2Frelay-kit)​ | Typescript library that enables ERC-4337 with Safe and allows users to pay for the transaction fees from their Safe account balance using the blockchain native token or ERC-20 tokens, or to get their transactions sponsored. | -| [safe-core-sdk-types](https://github.com/safe-global/safe-core-sdk/tree/main/packages/safe-core-sdk-types) | [![npm Version](https://badge.fury.io/js/%40safe-global%2Fsafe-core-sdk-types.svg)](https://badge.fury.io/js/%40safe-global%2Fsafe-core-sdk-types) | Common types used in the [Safe Core SDK](https://github.com/safe-global/safe-core-sdk/tree/main/packages) packages. | +| [types-kit](https://github.com/safe-global/safe-core-sdk/tree/main/packages/types-kit) | [![npm Version](https://badge.fury.io/js/%40safe-global%2Ftypes-kit.svg)](https://badge.fury.io/js/%40safe-global%2Ftypes-kit) | Common types used in the [Safe Core SDK](https://github.com/safe-global/safe-core-sdk/tree/main/packages) packages. | ## Guides diff --git a/guides/README.md b/guides/README.md index 544a4bfa5..a30019cd1 100644 --- a/guides/README.md +++ b/guides/README.md @@ -9,7 +9,7 @@ Read about the basics of Safe and [how it compares to other solutions](https://h The [Safe Core SDK](https://github.com/safe-global/safe-core-sdk) is a monorepo that contains software developer tools that allows interaction with [Safe Smart Accounts](https://github.com/safe-global/safe-smart-account) and the [Safe Transaction Service API](https://github.com/safe-global/safe-transaction-service). In this guide we will use the following packages to deploy new Safes, create transactions, collect off-chain signatures and execute transactions: -* **safe-core-sdk-types** +* **types-kit** Contains the types that are shared among the different packages inside the monorepo. diff --git a/guides/integrating-the-safe-core-sdk.md b/guides/integrating-the-safe-core-sdk.md index 1f0e38260..2a648e302 100644 --- a/guides/integrating-the-safe-core-sdk.md +++ b/guides/integrating-the-safe-core-sdk.md @@ -17,7 +17,7 @@ To integrate the [Safe Core SDK](https://github.com/safe-global/safe-core-sdk) into your Dapp or script you will need to install these dependencies: ``` -@safe-global/safe-core-sdk-types +@safe-global/types-kit @safe-global/protocol-kit @safe-global/api-kit ``` @@ -143,7 +143,7 @@ When the array contains only one transaction, it is not wrapped in the MultiSend ```js import { SafeTransactionOptionalProps } from '@safe-global/protocol-kit' -import { MetaTransactionData } from '@safe-global/safe-core-sdk-types' +import { MetaTransactionData } from '@safe-global/types-kit' const transactions: MetaTransactionData[] = [ { diff --git a/packages/api-kit/package.json b/packages/api-kit/package.json index edcf734cf..fca620913 100644 --- a/packages/api-kit/package.json +++ b/packages/api-kit/package.json @@ -59,7 +59,7 @@ }, "dependencies": { "@safe-global/protocol-kit": "^4.1.0", - "@safe-global/safe-core-sdk-types": "^5.1.0", + "@safe-global/types-kit": "^1.0.0", "node-fetch": "^2.7.0", "viem": "^2.21.8" } diff --git a/packages/api-kit/src/SafeApiKit.ts b/packages/api-kit/src/SafeApiKit.ts index 01ac92f1d..09c87e5bc 100644 --- a/packages/api-kit/src/SafeApiKit.ts +++ b/packages/api-kit/src/SafeApiKit.ts @@ -41,7 +41,7 @@ import { SafeOperation, SafeOperationConfirmationListResponse, SafeOperationResponse -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { TRANSACTION_SERVICE_URLS } from './utils/config' import { isEmptyData } from './utils' import { getAddSafeOperationProps } from './utils/safeOperation' diff --git a/packages/api-kit/src/types/safeTransactionServiceTypes.ts b/packages/api-kit/src/types/safeTransactionServiceTypes.ts index 707d4475e..a09256697 100644 --- a/packages/api-kit/src/types/safeTransactionServiceTypes.ts +++ b/packages/api-kit/src/types/safeTransactionServiceTypes.ts @@ -5,7 +5,7 @@ import { UserOperation, SafeOperationResponse, ListResponse -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' export type ListOptions = { /** Maximum number of results to return per page */ diff --git a/packages/api-kit/src/utils/safeOperation.ts b/packages/api-kit/src/utils/safeOperation.ts index 9804aad40..b2477cd90 100644 --- a/packages/api-kit/src/utils/safeOperation.ts +++ b/packages/api-kit/src/utils/safeOperation.ts @@ -1,4 +1,4 @@ -import { SafeOperation } from '@safe-global/safe-core-sdk-types' +import { SafeOperation } from '@safe-global/types-kit' export const getAddSafeOperationProps = async (safeOperation: SafeOperation) => { const userOperation = safeOperation.toUserOperation() diff --git a/packages/api-kit/tests/e2e/addMessageSignature.test.ts b/packages/api-kit/tests/e2e/addMessageSignature.test.ts index b4b5cad94..62255cecb 100644 --- a/packages/api-kit/tests/e2e/addMessageSignature.test.ts +++ b/packages/api-kit/tests/e2e/addMessageSignature.test.ts @@ -5,7 +5,7 @@ import Safe, { SigningMethod, buildContractSignature } from '@safe-global/protocol-kit' -import { SafeMessage } from '@safe-global/safe-core-sdk-types' +import { SafeMessage } from '@safe-global/types-kit' import SafeApiKit from '@safe-global/api-kit/index' import chai from 'chai' import chaiAsPromised from 'chai-as-promised' diff --git a/packages/api-kit/tests/e2e/confirmSafeOperation.test.ts b/packages/api-kit/tests/e2e/confirmSafeOperation.test.ts index 9f1e51146..075febbe5 100644 --- a/packages/api-kit/tests/e2e/confirmSafeOperation.test.ts +++ b/packages/api-kit/tests/e2e/confirmSafeOperation.test.ts @@ -6,7 +6,7 @@ import { BundlerClient, Safe4337InitOptions, Safe4337Pack } from '@safe-global/r import { generateTransferCallData } from '@safe-global/relay-kit/packs/safe-4337/testing-utils/helpers' import SafeApiKit from '@safe-global/api-kit/index' import { getAddSafeOperationProps } from '@safe-global/api-kit/utils/safeOperation' -import { SafeOperation } from '@safe-global/safe-core-sdk-types' +import { SafeOperation } from '@safe-global/types-kit' // Needs to be imported from dist folder in order to mock the getEip4337BundlerProvider function import * as safe4337Utils from '@safe-global/relay-kit/dist/src/packs/safe-4337/utils' import { getApiKit, getEip1193Provider } from '../utils/setupKits' diff --git a/packages/api-kit/tests/e2e/confirmTransaction.test.ts b/packages/api-kit/tests/e2e/confirmTransaction.test.ts index 7da0f4abe..090a8a342 100644 --- a/packages/api-kit/tests/e2e/confirmTransaction.test.ts +++ b/packages/api-kit/tests/e2e/confirmTransaction.test.ts @@ -7,7 +7,7 @@ import Safe, { import { SafeMultisigConfirmationResponse, SafeTransactionDataPartial -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import SafeApiKit from '@safe-global/api-kit/index' import chai from 'chai' import chaiAsPromised from 'chai-as-promised' diff --git a/packages/api-kit/tests/e2e/getSafeOperationsByAddress.test.ts b/packages/api-kit/tests/e2e/getSafeOperationsByAddress.test.ts index b5209fa30..95a283d9b 100644 --- a/packages/api-kit/tests/e2e/getSafeOperationsByAddress.test.ts +++ b/packages/api-kit/tests/e2e/getSafeOperationsByAddress.test.ts @@ -1,5 +1,5 @@ import SafeApiKit from '@safe-global/api-kit/index' -import { SafeOperationResponse } from '@safe-global/safe-core-sdk-types' +import { SafeOperationResponse } from '@safe-global/types-kit' import chai from 'chai' import chaiAsPromised from 'chai-as-promised' import { getApiKit } from '../utils/setupKits' diff --git a/packages/api-kit/tests/endpoint/index.test.ts b/packages/api-kit/tests/endpoint/index.test.ts index e72b5c536..d0d59d0b8 100644 --- a/packages/api-kit/tests/endpoint/index.test.ts +++ b/packages/api-kit/tests/endpoint/index.test.ts @@ -13,7 +13,7 @@ import SafeApiKit, { } from '@safe-global/api-kit/index' import * as httpRequests from '@safe-global/api-kit/utils/httpRequests' import Safe from '@safe-global/protocol-kit' -import { UserOperation } from '@safe-global/safe-core-sdk-types' +import { UserOperation } from '@safe-global/types-kit' import { signDelegate } from '@safe-global/api-kit/utils/signDelegate' import config from '../utils/config' import { getApiKit, getKits } from '../utils/setupKits' diff --git a/packages/protocol-kit/package.json b/packages/protocol-kit/package.json index 60f7450e2..57cddfcb9 100644 --- a/packages/protocol-kit/package.json +++ b/packages/protocol-kit/package.json @@ -68,7 +68,7 @@ }, "dependencies": { "@noble/hashes": "^1.3.3", - "@safe-global/safe-core-sdk-types": "^5.1.0", + "@safe-global/types-kit": "^1.0.0", "@safe-global/safe-deployments": "^1.37.5", "@safe-global/safe-modules-deployments": "^2.2.1", "abitype": "^1.0.2", diff --git a/packages/protocol-kit/scripts/safe-deployments/utils.ts b/packages/protocol-kit/scripts/safe-deployments/utils.ts index acca89fde..627e5378b 100644 --- a/packages/protocol-kit/scripts/safe-deployments/utils.ts +++ b/packages/protocol-kit/scripts/safe-deployments/utils.ts @@ -1,5 +1,5 @@ import axios from 'axios' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import { DeploymentFilter, getSafeSingletonDeployment } from '@safe-global/safe-deployments' import { networks } from '../../src/utils/eip-3770/config' diff --git a/packages/protocol-kit/src/Safe.ts b/packages/protocol-kit/src/Safe.ts index d87f922fd..bd5ed1912 100644 --- a/packages/protocol-kit/src/Safe.ts +++ b/packages/protocol-kit/src/Safe.ts @@ -14,7 +14,7 @@ import { EIP712TypedData, SafeTransactionData, CompatibilityFallbackHandlerContractType -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { encodeSetupCallData, getChainSpecificDefaultSaltNonce, diff --git a/packages/protocol-kit/src/SafeFactory.ts b/packages/protocol-kit/src/SafeFactory.ts index 4d6f06cf1..672c847a8 100644 --- a/packages/protocol-kit/src/SafeFactory.ts +++ b/packages/protocol-kit/src/SafeFactory.ts @@ -22,7 +22,7 @@ import { SafeFactoryInitConfig, DeploySafeProps } from '@safe-global/protocol-kit/types' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' class SafeFactory { diff --git a/packages/protocol-kit/src/SafeProvider.ts b/packages/protocol-kit/src/SafeProvider.ts index 7e1b899af..f85755151 100644 --- a/packages/protocol-kit/src/SafeProvider.ts +++ b/packages/protocol-kit/src/SafeProvider.ts @@ -15,7 +15,7 @@ import { Eip3770Address, SafeEIP712Args, SafeVersion -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { getCompatibilityFallbackHandlerContractInstance, getCreateCallContractInstance, diff --git a/packages/protocol-kit/src/contracts/BaseContract.ts b/packages/protocol-kit/src/contracts/BaseContract.ts index 4b293efcc..ebcc0dace 100644 --- a/packages/protocol-kit/src/contracts/BaseContract.ts +++ b/packages/protocol-kit/src/contracts/BaseContract.ts @@ -9,7 +9,7 @@ import { GetAddressFunction, SafeVersion, TransactionOptions -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { getChainById } from '../utils/types' import { WalletTransactionOptions, diff --git a/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts b/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts index 456adb2d5..a280d8cec 100644 --- a/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts +++ b/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts @@ -2,7 +2,7 @@ import { Abi } from 'abitype' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' import BaseContract from '@safe-global/protocol-kit/contracts/BaseContract' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import { contractName } from '@safe-global/protocol-kit/contracts/config' import { ExternalClient } from '@safe-global/protocol-kit/types' diff --git a/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts b/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts index 349e010d7..4a3d1b4d0 100644 --- a/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts +++ b/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts @@ -5,7 +5,7 @@ import { CompatibilityFallbackHandlerContract_v1_3_0_Abi, CompatibilityFallbackHandlerContract_v1_3_0_Contract, compatibilityFallbackHandler_1_3_0_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' /** * CompatibilityFallbackHandlerContract_v1_3_0 is the implementation specific to the CompatibilityFallbackHandler contract version 1.3.0. diff --git a/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts b/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts index 3cf7af032..1014a7899 100644 --- a/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts +++ b/packages/protocol-kit/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts @@ -5,7 +5,7 @@ import { CompatibilityFallbackHandlerContract_v1_4_1_Abi, CompatibilityFallbackHandlerContract_v1_4_1_Contract, SafeVersion -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' /** * CompatibilityFallbackHandlerContract_v1_4_1 is the implementation specific to the CompatibilityFallbackHandler contract version 1.4.1. diff --git a/packages/protocol-kit/src/contracts/CreateCall/CreateCallBaseContract.ts b/packages/protocol-kit/src/contracts/CreateCall/CreateCallBaseContract.ts index efae0cd5d..a64c42016 100644 --- a/packages/protocol-kit/src/contracts/CreateCall/CreateCallBaseContract.ts +++ b/packages/protocol-kit/src/contracts/CreateCall/CreateCallBaseContract.ts @@ -2,7 +2,7 @@ import { Abi } from 'abitype' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' import BaseContract from '@safe-global/protocol-kit/contracts/BaseContract' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import { contractName } from '@safe-global/protocol-kit/contracts/config' import { ExternalClient } from '@safe-global/protocol-kit/types' diff --git a/packages/protocol-kit/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts b/packages/protocol-kit/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts index e5c5e4076..c1de48633 100644 --- a/packages/protocol-kit/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts +++ b/packages/protocol-kit/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts @@ -5,7 +5,7 @@ import { CreateCallContract_v1_3_0_Contract, createCall_1_3_0_ContractArtifacts, SafeContractFunction -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { toTxResult } from '@safe-global/protocol-kit/contracts/utils' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' diff --git a/packages/protocol-kit/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts b/packages/protocol-kit/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts index da54bf799..46ef14286 100644 --- a/packages/protocol-kit/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts +++ b/packages/protocol-kit/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts @@ -6,7 +6,7 @@ import { CreateCallContract_v1_4_1_Contract, createCall_1_4_1_ContractArtifacts, SafeContractFunction -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { toTxResult } from '@safe-global/protocol-kit/contracts/utils' /** diff --git a/packages/protocol-kit/src/contracts/MultiSend/MultiSendBaseContract.ts b/packages/protocol-kit/src/contracts/MultiSend/MultiSendBaseContract.ts index a3f285fda..21933c2cf 100644 --- a/packages/protocol-kit/src/contracts/MultiSend/MultiSendBaseContract.ts +++ b/packages/protocol-kit/src/contracts/MultiSend/MultiSendBaseContract.ts @@ -1,7 +1,7 @@ import { Abi } from 'abitype' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import BaseContract from '@safe-global/protocol-kit/contracts/BaseContract' import { contractName } from '@safe-global/protocol-kit/contracts/config' diff --git a/packages/protocol-kit/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.ts b/packages/protocol-kit/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.ts index 1397adeb8..f180b748b 100644 --- a/packages/protocol-kit/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.ts +++ b/packages/protocol-kit/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.ts @@ -1,7 +1,7 @@ import { Abi } from 'abitype' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import BaseContract from '@safe-global/protocol-kit/contracts/BaseContract' import { contractName } from '@safe-global/protocol-kit/contracts/config' diff --git a/packages/protocol-kit/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts b/packages/protocol-kit/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts index 9f7897565..90335b21f 100644 --- a/packages/protocol-kit/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts +++ b/packages/protocol-kit/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts @@ -5,7 +5,7 @@ import { multisend_1_1_1_ContractArtifacts, MultiSendContract_v1_1_1_Abi, MultiSendContract_v1_1_1_Contract -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' /** * MultiSendContract_v1_1_1 is the implementation specific to the MultiSend contract version 1.1.1. diff --git a/packages/protocol-kit/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts b/packages/protocol-kit/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts index 74e8ffb8f..08b5284e8 100644 --- a/packages/protocol-kit/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts +++ b/packages/protocol-kit/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts @@ -5,7 +5,7 @@ import { MultiSendCallOnlyContract_v1_3_0_Abi, MultiSendCallOnlyContract_v1_3_0_Contract, multiSendCallOnly_1_3_0_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' /** * MultiSendCallOnlyContract_v1_3_0 is the implementation specific to the MultiSendCallOnly contract version 1.3.0. diff --git a/packages/protocol-kit/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts b/packages/protocol-kit/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts index ac5146f6e..a39892891 100644 --- a/packages/protocol-kit/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts +++ b/packages/protocol-kit/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts @@ -5,7 +5,7 @@ import { multisend_1_3_0_ContractArtifacts, MultiSendContract_v1_3_0_Abi, MultiSendContract_v1_3_0_Contract -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' /** * MultiSendContract_v1_3_0 is the implementation specific to the MultiSend contract version 1.3.0. diff --git a/packages/protocol-kit/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts b/packages/protocol-kit/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts index 339502906..4b3c8e4c6 100644 --- a/packages/protocol-kit/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts +++ b/packages/protocol-kit/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts @@ -5,7 +5,7 @@ import { multiSendCallOnly_1_4_1_ContractArtifacts, MultiSendCallOnlyContract_v1_4_1_Abi, MultiSendCallOnlyContract_v1_4_1_Contract -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' /** * MultiSendCallOnlyContract_v1_4_1 is the implementation specific to the MultiSend contract version 1.4.1. diff --git a/packages/protocol-kit/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts b/packages/protocol-kit/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts index 845ca5c4b..97d1b8e3a 100644 --- a/packages/protocol-kit/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts +++ b/packages/protocol-kit/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts @@ -5,7 +5,7 @@ import { MultiSendContract_v1_4_1_Abi, MultiSendContract_v1_4_1_Contract, multisend_1_4_1_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' /** * MultiSendContract_v1_4_1 is the implementation specific to the MultiSend contract version 1.4.1. diff --git a/packages/protocol-kit/src/contracts/Safe/SafeBaseContract.ts b/packages/protocol-kit/src/contracts/Safe/SafeBaseContract.ts index 6ab5aa848..5a7a096e3 100644 --- a/packages/protocol-kit/src/contracts/Safe/SafeBaseContract.ts +++ b/packages/protocol-kit/src/contracts/Safe/SafeBaseContract.ts @@ -1,7 +1,7 @@ import { Abi } from 'abitype' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import BaseContract from '@safe-global/protocol-kit/contracts/BaseContract' import { contractName, safeDeploymentsL1ChainIds } from '@safe-global/protocol-kit/contracts/config' import { SAFE_FEATURES, hasSafeFeature } from '@safe-global/protocol-kit/utils' diff --git a/packages/protocol-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts b/packages/protocol-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts index 44554231c..de2024525 100644 --- a/packages/protocol-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts +++ b/packages/protocol-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts @@ -13,7 +13,7 @@ import { safe_1_0_0_ContractArtifacts, TransactionOptions, TransactionResult -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { SENTINEL_ADDRESS } from '@safe-global/protocol-kit/utils/constants' import { asHash, asHex } from '@safe-global/protocol-kit/utils/types' diff --git a/packages/protocol-kit/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts b/packages/protocol-kit/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts index 8b25aa2d2..8ba8e4cd9 100644 --- a/packages/protocol-kit/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts +++ b/packages/protocol-kit/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts @@ -12,7 +12,7 @@ import { safe_1_1_1_ContractArtifacts, TransactionOptions, TransactionResult -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { asHash, asHex } from '@safe-global/protocol-kit/utils/types' import { ContractFunctionArgs } from 'viem' diff --git a/packages/protocol-kit/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts b/packages/protocol-kit/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts index 18d2b131c..b08359d6a 100644 --- a/packages/protocol-kit/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts +++ b/packages/protocol-kit/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts @@ -11,7 +11,7 @@ import { safe_1_2_0_ContractArtifacts, TransactionOptions, TransactionResult -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { asHash, asHex } from '@safe-global/protocol-kit/utils/types' import { ContractFunctionArgs } from 'viem' diff --git a/packages/protocol-kit/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts b/packages/protocol-kit/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts index abb71d16e..9eeb75a45 100644 --- a/packages/protocol-kit/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts +++ b/packages/protocol-kit/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts @@ -12,7 +12,7 @@ import { safe_1_3_0_ContractArtifacts, TransactionOptions, TransactionResult -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { asHash, asHex } from '@safe-global/protocol-kit/utils/types' import { ContractFunctionArgs } from 'viem' diff --git a/packages/protocol-kit/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts b/packages/protocol-kit/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts index 0fe749408..124cabfb9 100644 --- a/packages/protocol-kit/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts +++ b/packages/protocol-kit/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts @@ -12,7 +12,7 @@ import { safe_1_4_1_ContractArtifacts, TransactionOptions, TransactionResult -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { asHash, asHex } from '@safe-global/protocol-kit/utils/types' import { ContractFunctionArgs } from 'viem' diff --git a/packages/protocol-kit/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts b/packages/protocol-kit/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts index ddd29ff4d..e780aa969 100644 --- a/packages/protocol-kit/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts +++ b/packages/protocol-kit/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts @@ -5,7 +5,7 @@ import { SafeVersion, TransactionOptions, CreateProxyProps as CreateProxyPropsGeneral -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { contractName } from '@safe-global/protocol-kit/contracts/config' import { ExternalClient } from '@safe-global/protocol-kit/types' diff --git a/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts b/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts index 4466f1ba5..5025d49e1 100644 --- a/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts +++ b/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts @@ -9,7 +9,7 @@ import { SafeProxyFactoryContract_v1_0_0_Contract, SafeProxyFactoryContract_v1_0_0_Function, safeProxyFactory_1_0_0_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { waitForTransactionReceipt } from '@safe-global/protocol-kit/utils' import { asHex } from '@safe-global/protocol-kit/utils/types' import { ExternalClient } from '@safe-global/protocol-kit/types' diff --git a/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts b/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts index 857135253..d9d10eba8 100644 --- a/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts +++ b/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts @@ -9,7 +9,7 @@ import { SafeProxyFactoryContract_v1_1_1_Contract, SafeProxyFactoryContract_v1_1_1_Function, safeProxyFactory_1_1_1_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { waitForTransactionReceipt } from '@safe-global/protocol-kit/utils' import { asHex } from '@safe-global/protocol-kit/utils/types' import { ExternalClient } from '@safe-global/protocol-kit/types' diff --git a/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts b/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts index 798b38fe2..f03e9cd28 100644 --- a/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts +++ b/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts @@ -9,7 +9,7 @@ import { SafeProxyFactoryContract_v1_3_0_Contract, SafeProxyFactoryContract_v1_3_0_Function, safeProxyFactory_1_3_0_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { waitForTransactionReceipt } from '@safe-global/protocol-kit/utils' import { asHex } from '@safe-global/protocol-kit/utils/types' import { ExternalClient } from '@safe-global/protocol-kit/types' diff --git a/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts b/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts index 41b108d6a..195e343ea 100644 --- a/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts +++ b/packages/protocol-kit/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts @@ -8,7 +8,7 @@ import { SafeProxyFactoryContract_v1_4_1_Contract, SafeProxyFactoryContract_v1_4_1_Function, safeProxyFactory_1_4_1_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' import { waitForTransactionReceipt } from '@safe-global/protocol-kit/utils' import { asHex } from '@safe-global/protocol-kit/utils/types' diff --git a/packages/protocol-kit/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts b/packages/protocol-kit/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts index 58b82f379..f763f8f8d 100644 --- a/packages/protocol-kit/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts +++ b/packages/protocol-kit/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts @@ -5,7 +5,7 @@ import { SafeVersion, TransactionOptions, CreateProxyProps as CreateProxyPropsGeneral -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { contractName } from '@safe-global/protocol-kit/contracts/config' import { ExternalClient } from '@safe-global/protocol-kit/types' diff --git a/packages/protocol-kit/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.ts b/packages/protocol-kit/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.ts index c6f6faaf8..9d531d1f9 100644 --- a/packages/protocol-kit/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.ts +++ b/packages/protocol-kit/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSignerContract_v0_2_1.ts @@ -5,7 +5,7 @@ import { SafeWebAuthnSharedSignerContract_v0_2_1_Contract, SafeWebAuthnSharedSignerContract_v0_2_1_Function, SafeWebAuthnSharedSigner_0_2_1_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' /** diff --git a/packages/protocol-kit/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts b/packages/protocol-kit/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts index 471a7f68c..89616f579 100644 --- a/packages/protocol-kit/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts +++ b/packages/protocol-kit/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts @@ -5,7 +5,7 @@ import { SafeVersion, TransactionOptions, CreateProxyProps as CreateProxyPropsGeneral -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { contractName } from '@safe-global/protocol-kit/contracts/config' import { ExternalClient } from '@safe-global/protocol-kit/types' diff --git a/packages/protocol-kit/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.ts b/packages/protocol-kit/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.ts index 23a095fca..f18af9f5c 100644 --- a/packages/protocol-kit/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.ts +++ b/packages/protocol-kit/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactoryContract_v0_2_1.ts @@ -5,7 +5,7 @@ import { SafeWebAuthnSignerFactoryContract_v0_2_1_Contract, SafeWebAuthnSignerFactoryContract_v0_2_1_Function, SafeWebAuthnSignerFactory_0_2_1_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' /** diff --git a/packages/protocol-kit/src/contracts/SignMessageLib/SignMessageLibBaseContract.ts b/packages/protocol-kit/src/contracts/SignMessageLib/SignMessageLibBaseContract.ts index 7d811ea16..f1fe03193 100644 --- a/packages/protocol-kit/src/contracts/SignMessageLib/SignMessageLibBaseContract.ts +++ b/packages/protocol-kit/src/contracts/SignMessageLib/SignMessageLibBaseContract.ts @@ -1,7 +1,7 @@ import { Abi } from 'abitype' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import BaseContract from '@safe-global/protocol-kit/contracts/BaseContract' import { contractName } from '@safe-global/protocol-kit/contracts/config' diff --git a/packages/protocol-kit/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts b/packages/protocol-kit/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts index dec0de630..9bfef33af 100644 --- a/packages/protocol-kit/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts +++ b/packages/protocol-kit/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts @@ -8,7 +8,7 @@ import { SignMessageLibContract_v1_3_0_Contract, SignMessageLibContract_v1_3_0_Function, signMessageLib_1_3_0_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' /** * SignMessageLibContract_v1_3_0 is the implementation specific to the SignMessageLib contract version 1.3.0. diff --git a/packages/protocol-kit/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts b/packages/protocol-kit/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts index 01a85ebf7..afb712879 100644 --- a/packages/protocol-kit/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts +++ b/packages/protocol-kit/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts @@ -8,7 +8,7 @@ import { SignMessageLibContract_v1_4_1_Contract, SignMessageLibContract_v1_4_1_Function, signMessageLib_1_4_1_ContractArtifacts -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' /** * SignMessageLibContract_v1_4_1 is the implementation specific to the SignMessageLib contract version 1.4.1. diff --git a/packages/protocol-kit/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts b/packages/protocol-kit/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts index 276b46db5..ec616ae6f 100644 --- a/packages/protocol-kit/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts +++ b/packages/protocol-kit/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts @@ -2,7 +2,7 @@ import { Abi } from 'abitype' import BaseContract from '@safe-global/protocol-kit/contracts/BaseContract' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import { contractName } from '@safe-global/protocol-kit/contracts/config' import { ExternalClient } from '@safe-global/protocol-kit/types' diff --git a/packages/protocol-kit/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts b/packages/protocol-kit/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts index d4bc87412..b959574de 100644 --- a/packages/protocol-kit/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts +++ b/packages/protocol-kit/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts @@ -6,7 +6,7 @@ import { SimulateTxAccessorContract_v1_3_0_Abi, SimulateTxAccessorContract_v1_3_0_Contract, SimulateTxAccessorContract_v1_3_0_Function -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { asHex } from '@safe-global/protocol-kit/utils/types' diff --git a/packages/protocol-kit/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts b/packages/protocol-kit/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts index 1786d3498..c94da18af 100644 --- a/packages/protocol-kit/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts +++ b/packages/protocol-kit/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts @@ -6,7 +6,7 @@ import { SimulateTxAccessorContract_v1_4_1_Abi, SimulateTxAccessorContract_v1_4_1_Contract, SimulateTxAccessorContract_v1_4_1_Function -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { asHex } from '@safe-global/protocol-kit/utils/types' /** * SimulateTxAccessorContract_v1_4_1 is the implementation specific to the SimulateTxAccessor contract version 1.4.1. diff --git a/packages/protocol-kit/src/contracts/config.ts b/packages/protocol-kit/src/contracts/config.ts index cb6fc26f1..a113c1bb0 100644 --- a/packages/protocol-kit/src/contracts/config.ts +++ b/packages/protocol-kit/src/contracts/config.ts @@ -16,7 +16,7 @@ import { getSafeWebAuthnSignerFactoryDeployment, getSafeWebAuthnShareSignerDeployment } from '@safe-global/safe-modules-deployments' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' export const DEFAULT_SAFE_VERSION: SafeVersion = '1.3.0' export const SAFE_BASE_VERSION: SafeVersion = '1.0.0' diff --git a/packages/protocol-kit/src/contracts/contractInstances.ts b/packages/protocol-kit/src/contracts/contractInstances.ts index 815642df1..ab8315a47 100644 --- a/packages/protocol-kit/src/contracts/contractInstances.ts +++ b/packages/protocol-kit/src/contracts/contractInstances.ts @@ -25,7 +25,7 @@ import { SimulateTxAccessorContract_v1_3_0_Abi, SafeWebAuthnSignerFactoryContract_v0_2_1_Abi, SafeWebAuthnSharedSignerContract_v0_2_1_Abi -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import CreateCallContract_v1_3_0 from './CreateCall/v1.3.0/CreateCallContract_v1_3_0' import CreateCallContract_v1_4_1 from './CreateCall/v1.4.1/CreateCallContract_v1_4_1' import MultiSendContract_v1_1_1 from './MultiSend/v1.1.1/MultiSendContract_v1_1_1' diff --git a/packages/protocol-kit/src/contracts/safeDeploymentContracts.ts b/packages/protocol-kit/src/contracts/safeDeploymentContracts.ts index a4301d14e..3fe3b551f 100644 --- a/packages/protocol-kit/src/contracts/safeDeploymentContracts.ts +++ b/packages/protocol-kit/src/contracts/safeDeploymentContracts.ts @@ -12,7 +12,7 @@ import { SignMessageLibContractImplementationType, SimulateTxAccessorContractImplementationType } from '@safe-global/protocol-kit/types' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' export interface GetContractInstanceProps { safeProvider: SafeProvider diff --git a/packages/protocol-kit/src/contracts/utils.ts b/packages/protocol-kit/src/contracts/utils.ts index f28b912f8..c74b81768 100644 --- a/packages/protocol-kit/src/contracts/utils.ts +++ b/packages/protocol-kit/src/contracts/utils.ts @@ -19,7 +19,7 @@ import { SafeVersion, TransactionOptions, TransactionResult -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import semverSatisfies from 'semver/functions/satisfies' import { asHex } from '../utils/types' import { diff --git a/packages/protocol-kit/src/managers/contractManager.ts b/packages/protocol-kit/src/managers/contractManager.ts index 3493333e6..cd4ed28f8 100644 --- a/packages/protocol-kit/src/managers/contractManager.ts +++ b/packages/protocol-kit/src/managers/contractManager.ts @@ -11,7 +11,7 @@ import { SafeConfig, SafeContractImplementationType } from '@safe-global/protocol-kit/types' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import { isSafeConfigWithPredictedSafe } from '../utils/types' import SafeProvider from '../SafeProvider' diff --git a/packages/protocol-kit/src/types/contracts.ts b/packages/protocol-kit/src/types/contracts.ts index 0b402d1b4..f2f176089 100644 --- a/packages/protocol-kit/src/types/contracts.ts +++ b/packages/protocol-kit/src/types/contracts.ts @@ -1,5 +1,5 @@ import { Abi } from 'viem' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import SafeContract_v1_0_0 from '@safe-global/protocol-kit/contracts/Safe/v1.0.0/SafeContract_v1_0_0' import SafeContract_v1_1_1 from '@safe-global/protocol-kit/contracts/Safe/v1.1.1/SafeContract_v1_1_1' import SafeContract_v1_2_0 from '@safe-global/protocol-kit/contracts/Safe/v1.2.0/SafeContract_v1_2_0' diff --git a/packages/protocol-kit/src/types/safeConfig.ts b/packages/protocol-kit/src/types/safeConfig.ts index 5e9f9b9ab..767cf770b 100644 --- a/packages/protocol-kit/src/types/safeConfig.ts +++ b/packages/protocol-kit/src/types/safeConfig.ts @@ -1,4 +1,4 @@ -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import { SafeProviderConfig } from './safeProvider' import { ContractNetworksConfig } from './contracts' diff --git a/packages/protocol-kit/src/types/safeFactory.ts b/packages/protocol-kit/src/types/safeFactory.ts index f31d36df8..5cacaf46b 100644 --- a/packages/protocol-kit/src/types/safeFactory.ts +++ b/packages/protocol-kit/src/types/safeFactory.ts @@ -1,4 +1,4 @@ -import { SafeVersion, TransactionOptions } from '@safe-global/safe-core-sdk-types' +import { SafeVersion, TransactionOptions } from '@safe-global/types-kit' import { SafeProviderConfig } from './safeProvider' import { SafeAccountConfig } from './safeConfig' diff --git a/packages/protocol-kit/src/types/transactions.ts b/packages/protocol-kit/src/types/transactions.ts index b895ccb12..9a4124d73 100644 --- a/packages/protocol-kit/src/types/transactions.ts +++ b/packages/protocol-kit/src/types/transactions.ts @@ -1,4 +1,4 @@ -import { MetaTransactionData, SafeTransactionDataPartial } from '@safe-global/safe-core-sdk-types' +import { MetaTransactionData, SafeTransactionDataPartial } from '@safe-global/types-kit' import { SafeTransactionOptionalProps } from '@safe-global/protocol-kit/utils/transactions' import { SafeProviderConfig } from './safeProvider' diff --git a/packages/protocol-kit/src/utils/eip-3770/index.ts b/packages/protocol-kit/src/utils/eip-3770/index.ts index ec3d5f54c..a8234e82e 100644 --- a/packages/protocol-kit/src/utils/eip-3770/index.ts +++ b/packages/protocol-kit/src/utils/eip-3770/index.ts @@ -1,5 +1,5 @@ import { isAddress } from 'viem' -import { Eip3770Address } from '@safe-global/safe-core-sdk-types' +import { Eip3770Address } from '@safe-global/types-kit' import { networks } from './config' export function parseEip3770Address(fullAddress: string): Eip3770Address { diff --git a/packages/protocol-kit/src/utils/eip-712/encode.ts b/packages/protocol-kit/src/utils/eip-712/encode.ts index 635fa890d..88213ec13 100644 --- a/packages/protocol-kit/src/utils/eip-712/encode.ts +++ b/packages/protocol-kit/src/utils/eip-712/encode.ts @@ -1,4 +1,4 @@ -import { EIP712TypedData, TypedDataTypes, TypedMessageTypes } from 'packages/safe-core-sdk-types' +import { EIP712TypedData, TypedDataTypes, TypedMessageTypes } from 'packages/types-kit/dist/src' import { keccak256, concat, diff --git a/packages/protocol-kit/src/utils/eip-712/index.ts b/packages/protocol-kit/src/utils/eip-712/index.ts index 2b83cee42..366ee0df6 100644 --- a/packages/protocol-kit/src/utils/eip-712/index.ts +++ b/packages/protocol-kit/src/utils/eip-712/index.ts @@ -7,7 +7,7 @@ import { SafeTransactionData, EIP712TypedDataMessage, EIP712TypedDataTx -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import semverSatisfies from 'semver/functions/satisfies' import { hashTypedData as hashTypedStructuredData } from './encode' diff --git a/packages/protocol-kit/src/utils/erc-20/index.ts b/packages/protocol-kit/src/utils/erc-20/index.ts index acc5f4e1e..06b9d1c65 100644 --- a/packages/protocol-kit/src/utils/erc-20/index.ts +++ b/packages/protocol-kit/src/utils/erc-20/index.ts @@ -1,5 +1,5 @@ import Safe from '@safe-global/protocol-kit/Safe' -import { Transaction } from '@safe-global/safe-core-sdk-types' +import { Transaction } from '@safe-global/types-kit' import { encodeFunctionData, parseAbi } from 'viem' import { ZERO_ADDRESS } from '../constants' diff --git a/packages/protocol-kit/src/utils/messages/SafeMessage.ts b/packages/protocol-kit/src/utils/messages/SafeMessage.ts index 9b2beea68..06e5c942e 100644 --- a/packages/protocol-kit/src/utils/messages/SafeMessage.ts +++ b/packages/protocol-kit/src/utils/messages/SafeMessage.ts @@ -1,4 +1,4 @@ -import { EIP712TypedData, SafeMessage, SafeSignature } from '@safe-global/safe-core-sdk-types' +import { EIP712TypedData, SafeMessage, SafeSignature } from '@safe-global/types-kit' import { buildSignatureBytes } from '../signatures' class EthSafeMessage implements SafeMessage { diff --git a/packages/protocol-kit/src/utils/signatures/SafeSignature.ts b/packages/protocol-kit/src/utils/signatures/SafeSignature.ts index a67ff1922..4ffab88da 100644 --- a/packages/protocol-kit/src/utils/signatures/SafeSignature.ts +++ b/packages/protocol-kit/src/utils/signatures/SafeSignature.ts @@ -1,4 +1,4 @@ -import { SafeSignature } from '@safe-global/safe-core-sdk-types' +import { SafeSignature } from '@safe-global/types-kit' export class EthSafeSignature implements SafeSignature { signer: string diff --git a/packages/protocol-kit/src/utils/signatures/utils.ts b/packages/protocol-kit/src/utils/signatures/utils.ts index 21545d3a2..230071311 100644 --- a/packages/protocol-kit/src/utils/signatures/utils.ts +++ b/packages/protocol-kit/src/utils/signatures/utils.ts @@ -1,10 +1,6 @@ import { recoverAddress } from 'viem' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' -import { - SafeSignature, - SafeEIP712Args, - SafeTransactionData -} from '@safe-global/safe-core-sdk-types' +import { SafeSignature, SafeEIP712Args, SafeTransactionData } from '@safe-global/types-kit' import semverSatisfies from 'semver/functions/satisfies' import { sameString } from '../address' import { EthSafeSignature } from './SafeSignature' diff --git a/packages/protocol-kit/src/utils/transactions/SafeTransaction.ts b/packages/protocol-kit/src/utils/transactions/SafeTransaction.ts index eee990991..603015949 100644 --- a/packages/protocol-kit/src/utils/transactions/SafeTransaction.ts +++ b/packages/protocol-kit/src/utils/transactions/SafeTransaction.ts @@ -1,8 +1,4 @@ -import { - SafeSignature, - SafeTransaction, - SafeTransactionData -} from '@safe-global/safe-core-sdk-types' +import { SafeSignature, SafeTransaction, SafeTransactionData } from '@safe-global/types-kit' import { buildSignatureBytes } from '../signatures' class EthSafeTransaction implements SafeTransaction { diff --git a/packages/protocol-kit/src/utils/transactions/gas.ts b/packages/protocol-kit/src/utils/transactions/gas.ts index edc112b9d..899124014 100644 --- a/packages/protocol-kit/src/utils/transactions/gas.ts +++ b/packages/protocol-kit/src/utils/transactions/gas.ts @@ -1,5 +1,5 @@ import { BaseError, CallExecutionErrorType, RawContractErrorType } from 'viem' -import { OperationType, SafeVersion, SafeTransaction } from '@safe-global/safe-core-sdk-types' +import { OperationType, SafeVersion, SafeTransaction } from '@safe-global/types-kit' import semverSatisfies from 'semver/functions/satisfies' import Safe from '@safe-global/protocol-kit/Safe' import SafeProvider from '@safe-global/protocol-kit/SafeProvider' diff --git a/packages/protocol-kit/src/utils/transactions/types.ts b/packages/protocol-kit/src/utils/transactions/types.ts index 054122077..fe9220c04 100644 --- a/packages/protocol-kit/src/utils/transactions/types.ts +++ b/packages/protocol-kit/src/utils/transactions/types.ts @@ -1,4 +1,4 @@ -import { SafeTransactionDataPartial } from '@safe-global/safe-core-sdk-types' +import { SafeTransactionDataPartial } from '@safe-global/types-kit' import { Chain, Address, Account } from 'viem' export type SafeTransactionOptionalProps = Pick< diff --git a/packages/protocol-kit/src/utils/transactions/utils.ts b/packages/protocol-kit/src/utils/transactions/utils.ts index c0e5793bb..e6755b8f6 100644 --- a/packages/protocol-kit/src/utils/transactions/utils.ts +++ b/packages/protocol-kit/src/utils/transactions/utils.ts @@ -22,7 +22,7 @@ import { SafeTransactionDataPartial, SafeVersion, TransactionOptions -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import semverSatisfies from 'semver/functions/satisfies' import { estimateGas, estimateTxGas } from './gas' import { diff --git a/packages/protocol-kit/tests/e2e/createTransaction.test.ts b/packages/protocol-kit/tests/e2e/createTransaction.test.ts index 83dd982ef..56b84f0d2 100644 --- a/packages/protocol-kit/tests/e2e/createTransaction.test.ts +++ b/packages/protocol-kit/tests/e2e/createTransaction.test.ts @@ -4,7 +4,7 @@ import Safe, { standardizeSafeTransactionData, SafeContractImplementationType as SafeContract } from '@safe-global/protocol-kit/index' -import { SafeTransactionDataPartial } from '@safe-global/safe-core-sdk-types' +import { SafeTransactionDataPartial } from '@safe-global/types-kit' import chai from 'chai' import chaiAsPromised from 'chai-as-promised' import { getEip1193Provider } from './utils/setupProvider' diff --git a/packages/protocol-kit/tests/e2e/createTransactionBatch.test.ts b/packages/protocol-kit/tests/e2e/createTransactionBatch.test.ts index 62ed90d4b..10677f12a 100644 --- a/packages/protocol-kit/tests/e2e/createTransactionBatch.test.ts +++ b/packages/protocol-kit/tests/e2e/createTransactionBatch.test.ts @@ -3,7 +3,7 @@ import chaiAsPromised from 'chai-as-promised' import { setupTests, getMultiSendCallOnly } from '@safe-global/testing-kit' import Safe from '@safe-global/protocol-kit/index' import { getEip1193Provider } from './utils/setupProvider' -import { OperationType } from '@safe-global/safe-core-sdk-types' +import { OperationType } from '@safe-global/types-kit' import { ZERO_ADDRESS } from '@safe-global/protocol-kit/utils/constants' chai.use(chaiAsPromised) diff --git a/packages/protocol-kit/tests/e2e/eip1271-contract-signatures.test.ts b/packages/protocol-kit/tests/e2e/eip1271-contract-signatures.test.ts index 58e00b76f..28e2a5a86 100644 --- a/packages/protocol-kit/tests/e2e/eip1271-contract-signatures.test.ts +++ b/packages/protocol-kit/tests/e2e/eip1271-contract-signatures.test.ts @@ -5,7 +5,7 @@ import { getSafeWithOwners, itif } from '@safe-global/testing-kit' -import { SafeTransactionDataPartial } from '@safe-global/safe-core-sdk-types' +import { SafeTransactionDataPartial } from '@safe-global/types-kit' import { SigningMethod } from '@safe-global/protocol-kit/types' import chai from 'chai' import chaiAsPromised from 'chai-as-promised' diff --git a/packages/protocol-kit/tests/e2e/eip1271.test.ts b/packages/protocol-kit/tests/e2e/eip1271.test.ts index 0aa4881d2..24c92d216 100644 --- a/packages/protocol-kit/tests/e2e/eip1271.test.ts +++ b/packages/protocol-kit/tests/e2e/eip1271.test.ts @@ -13,7 +13,7 @@ import { itif } from '@safe-global/testing-kit' import SafeMessage from '@safe-global/protocol-kit/utils/messages/SafeMessage' -import { OperationType, SafeTransactionDataPartial } from '@safe-global/safe-core-sdk-types' +import { OperationType, SafeTransactionDataPartial } from '@safe-global/types-kit' import { SigningMethod } from '@safe-global/protocol-kit/types' import chai from 'chai' import chaiAsPromised from 'chai-as-promised' diff --git a/packages/protocol-kit/tests/e2e/execution.test.ts b/packages/protocol-kit/tests/e2e/execution.test.ts index 0daefcca0..6eafa6418 100644 --- a/packages/protocol-kit/tests/e2e/execution.test.ts +++ b/packages/protocol-kit/tests/e2e/execution.test.ts @@ -1,6 +1,6 @@ import { getERC20Mintable, safeVersionDeployed, setupTests, itif } from '@safe-global/testing-kit' import Safe, { SigningMethod } from '@safe-global/protocol-kit/index' -import { TransactionOptions, MetaTransactionData } from '@safe-global/safe-core-sdk-types' +import { TransactionOptions, MetaTransactionData } from '@safe-global/types-kit' import chai from 'chai' import chaiAsPromised from 'chai-as-promised' import { waitSafeTxReceipt } from './utils/transactions' diff --git a/packages/protocol-kit/tests/e2e/offChainSignatures.test.ts b/packages/protocol-kit/tests/e2e/offChainSignatures.test.ts index 1972afee7..aedf90d3e 100644 --- a/packages/protocol-kit/tests/e2e/offChainSignatures.test.ts +++ b/packages/protocol-kit/tests/e2e/offChainSignatures.test.ts @@ -1,6 +1,6 @@ import { safeVersionDeployed, setupTests, itif } from '@safe-global/testing-kit' import Safe, { SigningMethod } from '@safe-global/protocol-kit/index' -import { SafeMultisigTransactionResponse } from '@safe-global/safe-core-sdk-types' +import { SafeMultisigTransactionResponse } from '@safe-global/types-kit' import chai from 'chai' import chaiAsPromised from 'chai-as-promised' import { getEip1193Provider } from './utils/setupProvider' diff --git a/packages/protocol-kit/tests/e2e/passkey.test.ts b/packages/protocol-kit/tests/e2e/passkey.test.ts index 21a072ca7..ad48af167 100644 --- a/packages/protocol-kit/tests/e2e/passkey.test.ts +++ b/packages/protocol-kit/tests/e2e/passkey.test.ts @@ -6,7 +6,7 @@ import { getWebAuthnContract, getSafeWithOwners } from '@safe-global/testing-kit' -import { OperationType } from '@safe-global/safe-core-sdk-types' +import { OperationType } from '@safe-global/types-kit' import Safe, { getPasskeyOwnerAddress, PredictedSafeProps, diff --git a/packages/protocol-kit/tests/e2e/safeProvider.test.ts b/packages/protocol-kit/tests/e2e/safeProvider.test.ts index 49cf533e5..70514faa6 100644 --- a/packages/protocol-kit/tests/e2e/safeProvider.test.ts +++ b/packages/protocol-kit/tests/e2e/safeProvider.test.ts @@ -10,7 +10,7 @@ import { getSafeSingleton, getSignMessageLib } from '@safe-global/testing-kit' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import chai from 'chai' import chaiAsPromised from 'chai-as-promised' import { getEip1193Provider, getSafeProviderFromNetwork } from './utils/setupProvider' diff --git a/packages/protocol-kit/tests/e2e/transactionUtils.test.ts b/packages/protocol-kit/tests/e2e/transactionUtils.test.ts index fc5cfbb78..8aa270858 100644 --- a/packages/protocol-kit/tests/e2e/transactionUtils.test.ts +++ b/packages/protocol-kit/tests/e2e/transactionUtils.test.ts @@ -1,4 +1,4 @@ -import { OperationType } from '@safe-global/safe-core-sdk-types' +import { OperationType } from '@safe-global/types-kit' import chai from 'chai' import { decodeMultiSendData } from '@safe-global/protocol-kit/utils/transactions/utils' diff --git a/packages/protocol-kit/tests/e2e/utils/transactions.ts b/packages/protocol-kit/tests/e2e/utils/transactions.ts index 4a87a1b6d..be93c5739 100644 --- a/packages/protocol-kit/tests/e2e/utils/transactions.ts +++ b/packages/protocol-kit/tests/e2e/utils/transactions.ts @@ -1,5 +1,5 @@ import { GetTransactionReceiptReturnType } from 'viem' -import { TransactionResult } from '@safe-global/safe-core-sdk-types' +import { TransactionResult } from '@safe-global/types-kit' export async function waitSafeTxReceipt( txResult: TransactionResult diff --git a/packages/protocol-kit/tests/unit/eip-712.test.ts b/packages/protocol-kit/tests/unit/eip-712.test.ts index 89db5fa98..00276503d 100644 --- a/packages/protocol-kit/tests/unit/eip-712.test.ts +++ b/packages/protocol-kit/tests/unit/eip-712.test.ts @@ -1,4 +1,4 @@ -import { SafeTransactionData, OperationType } from '@safe-global/safe-core-sdk-types' +import { SafeTransactionData, OperationType, EIP712TypedData } from '@safe-global/types-kit' import chai from 'chai' import { EIP712_DOMAIN, @@ -6,7 +6,6 @@ import { generateTypedData, getEip712TxTypes } from '@safe-global/protocol-kit/utils' -import { EIP712TypedData } from '@safe-global/safe-core-sdk-types' const safeAddress = '0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1' const safeTransactionData: SafeTransactionData = { diff --git a/packages/relay-kit/package.json b/packages/relay-kit/package.json index e8c8ce4d2..17276da27 100644 --- a/packages/relay-kit/package.json +++ b/packages/relay-kit/package.json @@ -40,7 +40,7 @@ "dependencies": { "@gelatonetwork/relay-sdk": "^5.5.0", "@safe-global/protocol-kit": "^4.1.0", - "@safe-global/safe-core-sdk-types": "^5.1.0", + "@safe-global/types-kit": "^1.0.0", "@safe-global/safe-modules-deployments": "^2.2.1", "viem": "^2.21.8" } diff --git a/packages/relay-kit/src/deprecated.ts b/packages/relay-kit/src/deprecated.ts index 6153fe043..33856ffbd 100644 --- a/packages/relay-kit/src/deprecated.ts +++ b/packages/relay-kit/src/deprecated.ts @@ -1,14 +1,14 @@ export type { /** - * @deprecated Please import { EstimateGasData } from @safe-global/safe-core-sdk-types + * @deprecated Please import { EstimateGasData } from @safe-global/types-kit */ EstimateGasData, /** - * @deprecated Please import { SafeUserOperation } from @safe-global/safe-core-sdk-types + * @deprecated Please import { SafeUserOperation } from @safe-global/types-kit */ SafeUserOperation, /** - * @deprecated Please import { UserOperation } from @safe-global/safe-core-sdk-types + * @deprecated Please import { UserOperation } from @safe-global/types-kit */ UserOperation -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' diff --git a/packages/relay-kit/src/packs/gelato/GelatoRelayPack.test.ts b/packages/relay-kit/src/packs/gelato/GelatoRelayPack.test.ts index 123adc606..a80ead787 100644 --- a/packages/relay-kit/src/packs/gelato/GelatoRelayPack.test.ts +++ b/packages/relay-kit/src/packs/gelato/GelatoRelayPack.test.ts @@ -6,8 +6,7 @@ import Safe, { estimateSafeDeploymentGas, createERC20TokenTransferTransaction } from '@safe-global/protocol-kit' -import { MetaTransactionData, OperationType } from '@safe-global/safe-core-sdk-types' -import { SafeTransaction } from '@safe-global/safe-core-sdk-types' +import { MetaTransactionData, OperationType, SafeTransaction } from '@safe-global/types-kit' import { GELATO_FEE_COLLECTOR, diff --git a/packages/relay-kit/src/packs/gelato/GelatoRelayPack.ts b/packages/relay-kit/src/packs/gelato/GelatoRelayPack.ts index a5b032e69..686bfc213 100644 --- a/packages/relay-kit/src/packs/gelato/GelatoRelayPack.ts +++ b/packages/relay-kit/src/packs/gelato/GelatoRelayPack.ts @@ -26,7 +26,7 @@ import { RelayTransaction, SafeTransaction, Transaction -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { GelatoCreateTransactionProps, diff --git a/packages/relay-kit/src/packs/gelato/types.ts b/packages/relay-kit/src/packs/gelato/types.ts index f0215c0e3..617cc71e6 100644 --- a/packages/relay-kit/src/packs/gelato/types.ts +++ b/packages/relay-kit/src/packs/gelato/types.ts @@ -3,7 +3,7 @@ import { MetaTransactionData, MetaTransactionOptions, SafeTransaction -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' export type GelatoOptions = { apiKey?: string diff --git a/packages/relay-kit/src/packs/safe-4337/Safe4337Pack.test.ts b/packages/relay-kit/src/packs/safe-4337/Safe4337Pack.test.ts index a41d7a70b..117d32fe8 100644 --- a/packages/relay-kit/src/packs/safe-4337/Safe4337Pack.test.ts +++ b/packages/relay-kit/src/packs/safe-4337/Safe4337Pack.test.ts @@ -8,7 +8,7 @@ import { getAddModulesLibDeployment, getSafe4337ModuleDeployment } from '@safe-global/safe-modules-deployments' -import { MetaTransactionData, OperationType } from '@safe-global/safe-core-sdk-types' +import { MetaTransactionData, OperationType } from '@safe-global/types-kit' import { Safe4337Pack } from './Safe4337Pack' import EthSafeOperation from './SafeOperation' import * as constants from './constants' diff --git a/packages/relay-kit/src/packs/safe-4337/Safe4337Pack.ts b/packages/relay-kit/src/packs/safe-4337/Safe4337Pack.ts index 346165352..e16349257 100644 --- a/packages/relay-kit/src/packs/safe-4337/Safe4337Pack.ts +++ b/packages/relay-kit/src/packs/safe-4337/Safe4337Pack.ts @@ -16,7 +16,7 @@ import { SafeOperationResponse, SafeSignature, UserOperation -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { getAddModulesLibDeployment, getSafe4337ModuleDeployment, diff --git a/packages/relay-kit/src/packs/safe-4337/SafeOperation.ts b/packages/relay-kit/src/packs/safe-4337/SafeOperation.ts index aba890116..3bf833787 100644 --- a/packages/relay-kit/src/packs/safe-4337/SafeOperation.ts +++ b/packages/relay-kit/src/packs/safe-4337/SafeOperation.ts @@ -5,7 +5,7 @@ import { SafeSignature, SafeUserOperation, UserOperation -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { buildSignatureBytes } from '@safe-global/protocol-kit' import { calculateSafeUserOperationHash } from './utils' diff --git a/packages/relay-kit/src/packs/safe-4337/estimators/PimlicoFeeEstimator.ts b/packages/relay-kit/src/packs/safe-4337/estimators/PimlicoFeeEstimator.ts index 24474aa1b..697fc552f 100644 --- a/packages/relay-kit/src/packs/safe-4337/estimators/PimlicoFeeEstimator.ts +++ b/packages/relay-kit/src/packs/safe-4337/estimators/PimlicoFeeEstimator.ts @@ -1,4 +1,4 @@ -import { EstimateGasData } from '@safe-global/safe-core-sdk-types' +import { EstimateGasData } from '@safe-global/types-kit' import { BundlerClient, EstimateFeeFunctionProps, diff --git a/packages/relay-kit/src/packs/safe-4337/types.ts b/packages/relay-kit/src/packs/safe-4337/types.ts index 2303864a9..5ddafabcc 100644 --- a/packages/relay-kit/src/packs/safe-4337/types.ts +++ b/packages/relay-kit/src/packs/safe-4337/types.ts @@ -6,7 +6,7 @@ import { SafeOperationResponse, SafeVersion, UserOperation -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import EthSafeOperation from './SafeOperation' import { RPC_4337_CALLS } from './constants' diff --git a/packages/relay-kit/src/packs/safe-4337/utils.ts b/packages/relay-kit/src/packs/safe-4337/utils.ts index f5a4fd1a3..7fcf3d076 100644 --- a/packages/relay-kit/src/packs/safe-4337/utils.ts +++ b/packages/relay-kit/src/packs/safe-4337/utils.ts @@ -14,7 +14,7 @@ import { MetaTransactionData, SafeSignature, UserOperation -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { EthSafeSignature, SafeProvider, diff --git a/packages/sdk-starter-kit/package.json b/packages/sdk-starter-kit/package.json index 8b138bade..6c1e36b46 100644 --- a/packages/sdk-starter-kit/package.json +++ b/packages/sdk-starter-kit/package.json @@ -39,7 +39,7 @@ "@safe-global/api-kit": "^2.4.5", "@safe-global/protocol-kit": "^4.1.0", "@safe-global/relay-kit": "^3.1.0", - "@safe-global/safe-core-sdk-types": "^5.1.0", + "@safe-global/types-kit": "^1.0.0", "viem": "^2.21.8" } } diff --git a/packages/sdk-starter-kit/src/BaseClient.ts b/packages/sdk-starter-kit/src/BaseClient.ts index 417b45c94..cd1b4454b 100644 --- a/packages/sdk-starter-kit/src/BaseClient.ts +++ b/packages/sdk-starter-kit/src/BaseClient.ts @@ -4,7 +4,7 @@ import Safe, { SwapOwnerTxParams } from '@safe-global/protocol-kit' import SafeApiKit from '@safe-global/api-kit' -import { SafeTransaction, TransactionBase } from '@safe-global/safe-core-sdk-types' +import { SafeTransaction, TransactionBase } from '@safe-global/types-kit' import { ChangeThresholdTxParams } from './types' diff --git a/packages/sdk-starter-kit/src/SafeClient.ts b/packages/sdk-starter-kit/src/SafeClient.ts index 7595ea94c..1520444d9 100644 --- a/packages/sdk-starter-kit/src/SafeClient.ts +++ b/packages/sdk-starter-kit/src/SafeClient.ts @@ -5,7 +5,7 @@ import { TransactionOptions, TransactionResult, Transaction -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { createSafeClientResult, diff --git a/packages/sdk-starter-kit/src/extensions/messages/SafeMessageClient.ts b/packages/sdk-starter-kit/src/extensions/messages/SafeMessageClient.ts index b78e42091..c5db11ad1 100644 --- a/packages/sdk-starter-kit/src/extensions/messages/SafeMessageClient.ts +++ b/packages/sdk-starter-kit/src/extensions/messages/SafeMessageClient.ts @@ -4,7 +4,7 @@ import SafeApiKit, { ListOptions, SafeMessageListResponse } from '@safe-global/api-kit' -import { SafeMessage } from '@safe-global/safe-core-sdk-types' +import { SafeMessage } from '@safe-global/types-kit' import { createSafeClientResult, sendTransaction } from '@safe-global/sdk-starter-kit/utils' import { SafeClientTxStatus } from '@safe-global/sdk-starter-kit/constants' import { diff --git a/packages/sdk-starter-kit/src/extensions/messages/onChainMessages.ts b/packages/sdk-starter-kit/src/extensions/messages/onChainMessages.ts index 82a517138..0ceccd6b1 100644 --- a/packages/sdk-starter-kit/src/extensions/messages/onChainMessages.ts +++ b/packages/sdk-starter-kit/src/extensions/messages/onChainMessages.ts @@ -1,5 +1,5 @@ import { hashSafeMessage } from '@safe-global/protocol-kit' -import { OperationType } from '@safe-global/safe-core-sdk-types' +import { OperationType } from '@safe-global/types-kit' import { SafeClient } from '@safe-global/sdk-starter-kit/SafeClient' import { SafeClientResult, SendOnChainMessageProps } from '@safe-global/sdk-starter-kit/types' diff --git a/packages/sdk-starter-kit/src/types.ts b/packages/sdk-starter-kit/src/types.ts index 01d64b34c..2fc62862f 100644 --- a/packages/sdk-starter-kit/src/types.ts +++ b/packages/sdk-starter-kit/src/types.ts @@ -4,7 +4,7 @@ import { TransactionOptions, EIP712TypedData, MetaTransactionData -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' import { IFeeEstimator } from '@safe-global/relay-kit' import { SafeClientTxStatus } from '@safe-global/sdk-starter-kit/constants' diff --git a/packages/sdk-starter-kit/src/utils/index.ts b/packages/sdk-starter-kit/src/utils/index.ts index b07466384..7548e4a65 100644 --- a/packages/sdk-starter-kit/src/utils/index.ts +++ b/packages/sdk-starter-kit/src/utils/index.ts @@ -1,5 +1,5 @@ import { validateEthereumAddress } from '@safe-global/protocol-kit' -import { TransactionResult } from '@safe-global/safe-core-sdk-types' +import { TransactionResult } from '@safe-global/types-kit' import { GetTransactionReceiptReturnType } from 'viem' import { MESSAGES, SafeClientTxStatus } from '@safe-global/sdk-starter-kit/constants' diff --git a/packages/sdk-starter-kit/src/utils/proposeTransaction.ts b/packages/sdk-starter-kit/src/utils/proposeTransaction.ts index 8d58abb12..4acff9e70 100644 --- a/packages/sdk-starter-kit/src/utils/proposeTransaction.ts +++ b/packages/sdk-starter-kit/src/utils/proposeTransaction.ts @@ -1,6 +1,6 @@ import Safe, { EthSafeSignature, buildSignatureBytes } from '@safe-global/protocol-kit' import SafeApiKit from '@safe-global/api-kit' -import { SafeTransaction } from '@safe-global/safe-core-sdk-types' +import { SafeTransaction } from '@safe-global/types-kit' /** * Propose a transaction to the Safe diff --git a/packages/sdk-starter-kit/src/utils/sendTransaction.ts b/packages/sdk-starter-kit/src/utils/sendTransaction.ts index f4992c2ec..d88b640f8 100644 --- a/packages/sdk-starter-kit/src/utils/sendTransaction.ts +++ b/packages/sdk-starter-kit/src/utils/sendTransaction.ts @@ -1,7 +1,7 @@ import { WalletClient, Transport, Chain, Hex, Account } from 'viem' import { waitForTransactionReceipt } from 'viem/actions' import Safe from '@safe-global/protocol-kit' -import { Transaction } from '@safe-global/safe-core-sdk-types' +import { Transaction } from '@safe-global/types-kit' /** * Sends a transaction using the signer (owner) diff --git a/packages/testing-kit/package.json b/packages/testing-kit/package.json index 5ca135f8a..ffe70e29a 100644 --- a/packages/testing-kit/package.json +++ b/packages/testing-kit/package.json @@ -39,7 +39,7 @@ "@nomicfoundation/hardhat-viem": "^2.0.4", "@openzeppelin/contracts": "^2.5.1", "@safe-global/safe-contracts-v1.4.1": "npm:@safe-global/safe-contracts@1.4.1", - "@safe-global/safe-core-sdk-types": "^5.0.3", + "@safe-global/types-kit": "^1.0.0", "@types/semver": "^7.5.8", "hardhat": "^2.19.3", "hardhat-deploy": "^0.12.4", diff --git a/packages/testing-kit/src/hardhat/deploy/deploy-contracts.ts b/packages/testing-kit/src/hardhat/deploy/deploy-contracts.ts index 93171e1c5..62ac19563 100644 --- a/packages/testing-kit/src/hardhat/deploy/deploy-contracts.ts +++ b/packages/testing-kit/src/hardhat/deploy/deploy-contracts.ts @@ -1,4 +1,4 @@ -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' import { DeployFunction } from 'hardhat-deploy/types' import { HardhatRuntimeEnvironment } from 'hardhat/types' diff --git a/packages/testing-kit/src/utils/setupTests.ts b/packages/testing-kit/src/utils/setupTests.ts index f301cd7d8..451d7e13c 100644 --- a/packages/testing-kit/src/utils/setupTests.ts +++ b/packages/testing-kit/src/utils/setupTests.ts @@ -5,7 +5,7 @@ import { Account, getAccounts } from './setupTestNetwork' import { ContractNetworksConfig, getContractNetworks } from './setupContractNetworks' import { getSafeWithOwners } from './setupContracts' import { safeVersionDeployed } from '../hardhat/deploy/deploy-contracts' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' type SetupTestsOptions = { safeConfig?: { diff --git a/packages/safe-core-sdk-types/LICENSE.md b/packages/types-kit/LICENSE.md similarity index 100% rename from packages/safe-core-sdk-types/LICENSE.md rename to packages/types-kit/LICENSE.md diff --git a/packages/safe-core-sdk-types/README.md b/packages/types-kit/README.md similarity index 84% rename from packages/safe-core-sdk-types/README.md rename to packages/types-kit/README.md index efdcca923..129beb2b0 100644 --- a/packages/safe-core-sdk-types/README.md +++ b/packages/types-kit/README.md @@ -1,6 +1,6 @@ -# Safe Core SDK Types +# Types Kit -[![npm Version](https://badge.fury.io/js/@safe-global%2Fsafe-core-sdk-types.svg)](https://badge.fury.io/js/@safe-global%2Fsafe-core-sdk-types) +[![npm Version](https://badge.fury.io/js/@safe-global%2Ftypes-kit.svg)](https://badge.fury.io/js/@safe-global%2Ftypes-kit) [![GitHub Release](https://img.shields.io/github/release/safe-global/safe-core-sdk.svg?style=flat)](https://github.com/safe-global/safe-core-sdk/releases) [![GitHub](https://img.shields.io/github/license/safe-global/safe-core-sdk)](https://github.com/safe-global/safe-core-sdk/blob/main/LICENSE.md) diff --git a/packages/safe-core-sdk-types/package.json b/packages/types-kit/package.json similarity index 87% rename from packages/safe-core-sdk-types/package.json rename to packages/types-kit/package.json index a4e34e02e..6ad1e7c6e 100644 --- a/packages/safe-core-sdk-types/package.json +++ b/packages/types-kit/package.json @@ -1,7 +1,7 @@ { - "name": "@safe-global/safe-core-sdk-types", - "version": "5.1.0", - "description": "Safe Core SDK types", + "name": "@safe-global/types-kit", + "version": "1.0.0", + "description": "Types for use with the Safe Core SDK packages", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "keywords": [ diff --git a/packages/safe-core-sdk-types/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts b/packages/types-kit/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts rename to packages/types-kit/src/contracts/CompatibilityFallbackHandler/CompatibilityFallbackHandlerBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/CompatibilityFallbackHandler/index.ts b/packages/types-kit/src/contracts/CompatibilityFallbackHandler/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/CompatibilityFallbackHandler/index.ts rename to packages/types-kit/src/contracts/CompatibilityFallbackHandler/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts b/packages/types-kit/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts rename to packages/types-kit/src/contracts/CompatibilityFallbackHandler/v1.3.0/CompatibilityFallbackHandlerContract_v1_3_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts b/packages/types-kit/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts rename to packages/types-kit/src/contracts/CompatibilityFallbackHandler/v1.4.1/CompatibilityFallbackHandlerContract_v1_4_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/CreateCall/CreateCallBaseContract.ts b/packages/types-kit/src/contracts/CreateCall/CreateCallBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/CreateCall/CreateCallBaseContract.ts rename to packages/types-kit/src/contracts/CreateCall/CreateCallBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/CreateCall/index.ts b/packages/types-kit/src/contracts/CreateCall/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/CreateCall/index.ts rename to packages/types-kit/src/contracts/CreateCall/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts b/packages/types-kit/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts rename to packages/types-kit/src/contracts/CreateCall/v1.3.0/CreateCallContract_v1_3_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts b/packages/types-kit/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts rename to packages/types-kit/src/contracts/CreateCall/v1.4.1/CreateCallContract_v1_4_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/MultiSend/MultiSendBaseContract.ts b/packages/types-kit/src/contracts/MultiSend/MultiSendBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/MultiSend/MultiSendBaseContract.ts rename to packages/types-kit/src/contracts/MultiSend/MultiSendBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.ts b/packages/types-kit/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.ts rename to packages/types-kit/src/contracts/MultiSend/MultiSendCallOnlyBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/MultiSend/index.ts b/packages/types-kit/src/contracts/MultiSend/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/MultiSend/index.ts rename to packages/types-kit/src/contracts/MultiSend/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts b/packages/types-kit/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts rename to packages/types-kit/src/contracts/MultiSend/v1.1.1/MultiSendContract_v1_1_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts b/packages/types-kit/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts rename to packages/types-kit/src/contracts/MultiSend/v1.3.0/MultiSendCallOnlyContract_v1_3_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts b/packages/types-kit/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts rename to packages/types-kit/src/contracts/MultiSend/v1.3.0/MultiSendContract_v1_3_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts b/packages/types-kit/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts rename to packages/types-kit/src/contracts/MultiSend/v1.4.1/MultiSendCallOnlyContract_v1_4_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts b/packages/types-kit/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts rename to packages/types-kit/src/contracts/MultiSend/v1.4.1/MultiSendContract_v1_4_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/Safe/SafeBaseContract.ts b/packages/types-kit/src/contracts/Safe/SafeBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/Safe/SafeBaseContract.ts rename to packages/types-kit/src/contracts/Safe/SafeBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/Safe/index.ts b/packages/types-kit/src/contracts/Safe/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/Safe/index.ts rename to packages/types-kit/src/contracts/Safe/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts b/packages/types-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts rename to packages/types-kit/src/contracts/Safe/v1.0.0/SafeContract_v1_0_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts b/packages/types-kit/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts rename to packages/types-kit/src/contracts/Safe/v1.1.1/SafeContract_v1_1_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts b/packages/types-kit/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts rename to packages/types-kit/src/contracts/Safe/v1.2.0/SafeContract_v1_2_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts b/packages/types-kit/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts rename to packages/types-kit/src/contracts/Safe/v1.3.0/SafeContract_v1_3_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts b/packages/types-kit/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts rename to packages/types-kit/src/contracts/Safe/v1.4.1/SafeContract_v1_4_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts b/packages/types-kit/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts rename to packages/types-kit/src/contracts/SafeProxyFactory/SafeProxyFactoryBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/index.ts b/packages/types-kit/src/contracts/SafeProxyFactory/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/index.ts rename to packages/types-kit/src/contracts/SafeProxyFactory/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts b/packages/types-kit/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts rename to packages/types-kit/src/contracts/SafeProxyFactory/v1.0.0/SafeProxyFactoryContract_v1_0_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts b/packages/types-kit/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts rename to packages/types-kit/src/contracts/SafeProxyFactory/v1.1.1/SafeProxyFactoryContract_v1_1_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts b/packages/types-kit/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts rename to packages/types-kit/src/contracts/SafeProxyFactory/v1.3.0/SafeProxyFactoryContract_v1_3_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts b/packages/types-kit/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts rename to packages/types-kit/src/contracts/SafeProxyFactory/v1.4.1/SafeProxyFactoryContract_v1_4_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts b/packages/types-kit/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts rename to packages/types-kit/src/contracts/SafeWebAuthnSharedSigner/SafeWebAuthnSharedSignerBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSharedSigner/index.ts b/packages/types-kit/src/contracts/SafeWebAuthnSharedSigner/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSharedSigner/index.ts rename to packages/types-kit/src/contracts/SafeWebAuthnSharedSigner/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSigner_v0_2_1.ts b/packages/types-kit/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSigner_v0_2_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSigner_v0_2_1.ts rename to packages/types-kit/src/contracts/SafeWebAuthnSharedSigner/v0.2.1/SafeWebAuthnSharedSigner_v0_2_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts b/packages/types-kit/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts rename to packages/types-kit/src/contracts/SafeWebAuthnSignerFactory/SafeWebAuthnSignerFactoryBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSignerFactory/index.ts b/packages/types-kit/src/contracts/SafeWebAuthnSignerFactory/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSignerFactory/index.ts rename to packages/types-kit/src/contracts/SafeWebAuthnSignerFactory/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactory_v0_2_1.ts b/packages/types-kit/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactory_v0_2_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactory_v0_2_1.ts rename to packages/types-kit/src/contracts/SafeWebAuthnSignerFactory/v0.2.1/SafeWebAuthnSignerFactory_v0_2_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SignMessageLib/SignMessageLibBaseContract.ts b/packages/types-kit/src/contracts/SignMessageLib/SignMessageLibBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SignMessageLib/SignMessageLibBaseContract.ts rename to packages/types-kit/src/contracts/SignMessageLib/SignMessageLibBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SignMessageLib/index.ts b/packages/types-kit/src/contracts/SignMessageLib/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SignMessageLib/index.ts rename to packages/types-kit/src/contracts/SignMessageLib/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts b/packages/types-kit/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts rename to packages/types-kit/src/contracts/SignMessageLib/v1.3.0/SignMessageLibContract_v1_3_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts b/packages/types-kit/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts rename to packages/types-kit/src/contracts/SignMessageLib/v1.4.1/SignMessageLibContract_v1_4_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts b/packages/types-kit/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts rename to packages/types-kit/src/contracts/SimulateTxAccessor/SimulateTxAccessorBaseContract.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SimulateTxAccessor/index.ts b/packages/types-kit/src/contracts/SimulateTxAccessor/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SimulateTxAccessor/index.ts rename to packages/types-kit/src/contracts/SimulateTxAccessor/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts b/packages/types-kit/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts rename to packages/types-kit/src/contracts/SimulateTxAccessor/v1.3.0/SimulateTxAccessorContract_v1_3_0.ts diff --git a/packages/safe-core-sdk-types/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts b/packages/types-kit/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts rename to packages/types-kit/src/contracts/SimulateTxAccessor/v1.4.1/SimulateTxAccessorContract_v1_4_1.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/CompatibilityFallbackHandler/v1.3.0/compatibility_fallback_handler.ts b/packages/types-kit/src/contracts/assets/CompatibilityFallbackHandler/v1.3.0/compatibility_fallback_handler.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/CompatibilityFallbackHandler/v1.3.0/compatibility_fallback_handler.ts rename to packages/types-kit/src/contracts/assets/CompatibilityFallbackHandler/v1.3.0/compatibility_fallback_handler.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/CompatibilityFallbackHandler/v1.4.1/compatibility_fallback_handler.ts b/packages/types-kit/src/contracts/assets/CompatibilityFallbackHandler/v1.4.1/compatibility_fallback_handler.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/CompatibilityFallbackHandler/v1.4.1/compatibility_fallback_handler.ts rename to packages/types-kit/src/contracts/assets/CompatibilityFallbackHandler/v1.4.1/compatibility_fallback_handler.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/CreateCall/v1.3.0/create_call.ts b/packages/types-kit/src/contracts/assets/CreateCall/v1.3.0/create_call.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/CreateCall/v1.3.0/create_call.ts rename to packages/types-kit/src/contracts/assets/CreateCall/v1.3.0/create_call.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/CreateCall/v1.4.1/create_call.ts b/packages/types-kit/src/contracts/assets/CreateCall/v1.4.1/create_call.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/CreateCall/v1.4.1/create_call.ts rename to packages/types-kit/src/contracts/assets/CreateCall/v1.4.1/create_call.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.1.1/multi_send.ts b/packages/types-kit/src/contracts/assets/MultiSend/v1.1.1/multi_send.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.1.1/multi_send.ts rename to packages/types-kit/src/contracts/assets/MultiSend/v1.1.1/multi_send.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.3.0/multi_send.ts b/packages/types-kit/src/contracts/assets/MultiSend/v1.3.0/multi_send.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.3.0/multi_send.ts rename to packages/types-kit/src/contracts/assets/MultiSend/v1.3.0/multi_send.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.3.0/multi_send_call_only.ts b/packages/types-kit/src/contracts/assets/MultiSend/v1.3.0/multi_send_call_only.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.3.0/multi_send_call_only.ts rename to packages/types-kit/src/contracts/assets/MultiSend/v1.3.0/multi_send_call_only.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.4.1/multi_send.ts b/packages/types-kit/src/contracts/assets/MultiSend/v1.4.1/multi_send.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.4.1/multi_send.ts rename to packages/types-kit/src/contracts/assets/MultiSend/v1.4.1/multi_send.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.4.1/multi_send_call_only.ts b/packages/types-kit/src/contracts/assets/MultiSend/v1.4.1/multi_send_call_only.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/MultiSend/v1.4.1/multi_send_call_only.ts rename to packages/types-kit/src/contracts/assets/MultiSend/v1.4.1/multi_send_call_only.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.0.0/gnosis_safe.ts b/packages/types-kit/src/contracts/assets/Safe/v1.0.0/gnosis_safe.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.0.0/gnosis_safe.ts rename to packages/types-kit/src/contracts/assets/Safe/v1.0.0/gnosis_safe.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.1.1/gnosis_safe.ts b/packages/types-kit/src/contracts/assets/Safe/v1.1.1/gnosis_safe.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.1.1/gnosis_safe.ts rename to packages/types-kit/src/contracts/assets/Safe/v1.1.1/gnosis_safe.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.2.0/gnosis_safe.ts b/packages/types-kit/src/contracts/assets/Safe/v1.2.0/gnosis_safe.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.2.0/gnosis_safe.ts rename to packages/types-kit/src/contracts/assets/Safe/v1.2.0/gnosis_safe.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.3.0/gnosis_safe_l2.ts b/packages/types-kit/src/contracts/assets/Safe/v1.3.0/gnosis_safe_l2.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.3.0/gnosis_safe_l2.ts rename to packages/types-kit/src/contracts/assets/Safe/v1.3.0/gnosis_safe_l2.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.4.1/safe_l2.ts b/packages/types-kit/src/contracts/assets/Safe/v1.4.1/safe_l2.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/Safe/v1.4.1/safe_l2.ts rename to packages/types-kit/src/contracts/assets/Safe/v1.4.1/safe_l2.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SafeProxyFactory/v1.0.0/proxy_factory.ts b/packages/types-kit/src/contracts/assets/SafeProxyFactory/v1.0.0/proxy_factory.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SafeProxyFactory/v1.0.0/proxy_factory.ts rename to packages/types-kit/src/contracts/assets/SafeProxyFactory/v1.0.0/proxy_factory.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SafeProxyFactory/v1.1.1/proxy_factory.ts b/packages/types-kit/src/contracts/assets/SafeProxyFactory/v1.1.1/proxy_factory.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SafeProxyFactory/v1.1.1/proxy_factory.ts rename to packages/types-kit/src/contracts/assets/SafeProxyFactory/v1.1.1/proxy_factory.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SafeProxyFactory/v1.3.0/proxy_factory.ts b/packages/types-kit/src/contracts/assets/SafeProxyFactory/v1.3.0/proxy_factory.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SafeProxyFactory/v1.3.0/proxy_factory.ts rename to packages/types-kit/src/contracts/assets/SafeProxyFactory/v1.3.0/proxy_factory.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SafeProxyFactory/v1.4.1/safe_proxy_factory.ts b/packages/types-kit/src/contracts/assets/SafeProxyFactory/v1.4.1/safe_proxy_factory.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SafeProxyFactory/v1.4.1/safe_proxy_factory.ts rename to packages/types-kit/src/contracts/assets/SafeProxyFactory/v1.4.1/safe_proxy_factory.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SafeWebAuthnSharedSigner/v0.2.1/safe_webauthn_shared_signer.ts b/packages/types-kit/src/contracts/assets/SafeWebAuthnSharedSigner/v0.2.1/safe_webauthn_shared_signer.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SafeWebAuthnSharedSigner/v0.2.1/safe_webauthn_shared_signer.ts rename to packages/types-kit/src/contracts/assets/SafeWebAuthnSharedSigner/v0.2.1/safe_webauthn_shared_signer.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SafeWebAuthnSignerFactory/v0.2.1/safe_webauthn_signer_factory.ts b/packages/types-kit/src/contracts/assets/SafeWebAuthnSignerFactory/v0.2.1/safe_webauthn_signer_factory.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SafeWebAuthnSignerFactory/v0.2.1/safe_webauthn_signer_factory.ts rename to packages/types-kit/src/contracts/assets/SafeWebAuthnSignerFactory/v0.2.1/safe_webauthn_signer_factory.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SignMessageLib/v1.3.0/sign_message_lib.ts b/packages/types-kit/src/contracts/assets/SignMessageLib/v1.3.0/sign_message_lib.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SignMessageLib/v1.3.0/sign_message_lib.ts rename to packages/types-kit/src/contracts/assets/SignMessageLib/v1.3.0/sign_message_lib.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SignMessageLib/v1.4.1/sign_message_lib.ts b/packages/types-kit/src/contracts/assets/SignMessageLib/v1.4.1/sign_message_lib.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SignMessageLib/v1.4.1/sign_message_lib.ts rename to packages/types-kit/src/contracts/assets/SignMessageLib/v1.4.1/sign_message_lib.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SimulateTxAccessor/v1.3.0/simulate_tx_accessor.ts b/packages/types-kit/src/contracts/assets/SimulateTxAccessor/v1.3.0/simulate_tx_accessor.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SimulateTxAccessor/v1.3.0/simulate_tx_accessor.ts rename to packages/types-kit/src/contracts/assets/SimulateTxAccessor/v1.3.0/simulate_tx_accessor.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/SimulateTxAccessor/v1.4.1/simulate_tx_accessor.ts b/packages/types-kit/src/contracts/assets/SimulateTxAccessor/v1.4.1/simulate_tx_accessor.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/SimulateTxAccessor/v1.4.1/simulate_tx_accessor.ts rename to packages/types-kit/src/contracts/assets/SimulateTxAccessor/v1.4.1/simulate_tx_accessor.ts diff --git a/packages/safe-core-sdk-types/src/contracts/assets/index.ts b/packages/types-kit/src/contracts/assets/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/contracts/assets/index.ts rename to packages/types-kit/src/contracts/assets/index.ts diff --git a/packages/safe-core-sdk-types/src/contracts/common/BaseContract.ts b/packages/types-kit/src/contracts/common/BaseContract.ts similarity index 97% rename from packages/safe-core-sdk-types/src/contracts/common/BaseContract.ts rename to packages/types-kit/src/contracts/common/BaseContract.ts index 75001ef9f..2a371586a 100644 --- a/packages/safe-core-sdk-types/src/contracts/common/BaseContract.ts +++ b/packages/types-kit/src/contracts/common/BaseContract.ts @@ -4,11 +4,7 @@ import { ExtractAbiFunction, ExtractAbiFunctionNames } from 'abitype' -import { - SafeVersion, - TransactionOptions, - TransactionResult -} from '@safe-global/safe-core-sdk-types/types' +import { SafeVersion, TransactionOptions, TransactionResult } from '@safe-global/types-kit/types' /** * Extracts the names of read-only functions (view or pure) from a given contract ABI. diff --git a/packages/safe-core-sdk-types/src/index.ts b/packages/types-kit/src/index.ts similarity index 100% rename from packages/safe-core-sdk-types/src/index.ts rename to packages/types-kit/src/index.ts diff --git a/packages/safe-core-sdk-types/src/types.ts b/packages/types-kit/src/types.ts similarity index 100% rename from packages/safe-core-sdk-types/src/types.ts rename to packages/types-kit/src/types.ts diff --git a/packages/safe-core-sdk-types/tsconfig.build.json b/packages/types-kit/tsconfig.build.json similarity index 100% rename from packages/safe-core-sdk-types/tsconfig.build.json rename to packages/types-kit/tsconfig.build.json diff --git a/packages/safe-core-sdk-types/tsconfig.json b/packages/types-kit/tsconfig.json similarity index 100% rename from packages/safe-core-sdk-types/tsconfig.json rename to packages/types-kit/tsconfig.json diff --git a/playground/api-kit/propose-transaction.ts b/playground/api-kit/propose-transaction.ts index f2f3ca7c5..d313f1ba0 100644 --- a/playground/api-kit/propose-transaction.ts +++ b/playground/api-kit/propose-transaction.ts @@ -1,6 +1,6 @@ import Safe from '@safe-global/protocol-kit' import SafeApiKit from '@safe-global/api-kit' -import { OperationType, SafeTransactionDataPartial } from '@safe-global/safe-core-sdk-types' +import { OperationType, SafeTransactionDataPartial } from '@safe-global/types-kit' // This file can be used to play around with the Safe Core SDK diff --git a/playground/protocol-kit/create-execute-transaction.ts b/playground/protocol-kit/create-execute-transaction.ts index cc5fc7aa1..52e00230b 100644 --- a/playground/protocol-kit/create-execute-transaction.ts +++ b/playground/protocol-kit/create-execute-transaction.ts @@ -1,6 +1,6 @@ import * as dotenv from 'dotenv' import Safe, { SigningMethod } from '@safe-global/protocol-kit' -import { OperationType, SafeTransactionDataPartial } from '@safe-global/safe-core-sdk-types' +import { OperationType, SafeTransactionDataPartial } from '@safe-global/types-kit' dotenv.config() diff --git a/playground/protocol-kit/deploy-safe.ts b/playground/protocol-kit/deploy-safe.ts index 867bebf29..5b168f4b4 100644 --- a/playground/protocol-kit/deploy-safe.ts +++ b/playground/protocol-kit/deploy-safe.ts @@ -1,5 +1,5 @@ import { SafeAccountConfig, SafeFactory } from '@safe-global/protocol-kit' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' // This file can be used to play around with the Safe Core SDK diff --git a/playground/protocol-kit/generate-safe-address.ts b/playground/protocol-kit/generate-safe-address.ts index af403ea84..023478423 100644 --- a/playground/protocol-kit/generate-safe-address.ts +++ b/playground/protocol-kit/generate-safe-address.ts @@ -4,7 +4,7 @@ import { SafeDeploymentConfig, predictSafeAddress } from '@safe-global/protocol-kit' -import { SafeVersion } from '@safe-global/safe-core-sdk-types' +import { SafeVersion } from '@safe-global/types-kit' // This script can be used to generate a custom Safe address diff --git a/playground/relay-kit/paid-transaction.ts b/playground/relay-kit/paid-transaction.ts index 81e700a04..95d727454 100644 --- a/playground/relay-kit/paid-transaction.ts +++ b/playground/relay-kit/paid-transaction.ts @@ -9,7 +9,7 @@ import { MetaTransactionOptions, OperationType, SafeTransaction -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' // Check the status of a transaction after it is relayed: // https://relay.gelato.digital/tasks/status/ diff --git a/playground/relay-kit/sponsored-transaction.ts b/playground/relay-kit/sponsored-transaction.ts index e73d2df50..05743e108 100644 --- a/playground/relay-kit/sponsored-transaction.ts +++ b/playground/relay-kit/sponsored-transaction.ts @@ -9,7 +9,7 @@ import { MetaTransactionOptions, OperationType, SafeTransaction -} from '@safe-global/safe-core-sdk-types' +} from '@safe-global/types-kit' // Fund the 1Balance account that will sponsor the transaction and get the API key: // https://relay.gelato.network/ diff --git a/tsconfig.json b/tsconfig.json index dde35d1fe..aef740c15 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ { "path": "packages/api-kit" }, { "path": "packages/protocol-kit" }, { "path": "packages/relay-kit" }, - { "path": "packages/safe-core-sdk-types" }, + { "path": "packages/types-kit" }, { "path": "packages/sdk-starter-kit" } ] } diff --git a/tsconfig.settings.json b/tsconfig.settings.json index 9c181da93..df950e2b4 100644 --- a/tsconfig.settings.json +++ b/tsconfig.settings.json @@ -25,7 +25,7 @@ "@safe-global/protocol-kit/*": ["./packages/protocol-kit/src/*"], "@safe-global/protocol-kit/hardhat/*": ["./packages/protocol-kit/hardhat/*"], "@safe-global/relay-kit/*": ["./packages/relay-kit/src/*"], - "@safe-global/safe-core-sdk-types/*": ["./packages/safe-core-sdk-types/src/*"], + "@safe-global/types-kit/*": ["./packages/types-kit/src/*"], "@safe-global/sdk-starter-kit/*": ["./packages/sdk-starter-kit/src/*"] } },