@startale-scs/aa-sdk 0.0.0-dev.20260331120000
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +73 -0
- package/dist/_cjs/account/decorators/getFactoryData.js +36 -0
- package/dist/_cjs/account/decorators/getFactoryData.js.map +1 -0
- package/dist/_cjs/account/decorators/getStartaleAccountAddress.js +18 -0
- package/dist/_cjs/account/decorators/getStartaleAccountAddress.js.map +1 -0
- package/dist/_cjs/account/decorators/index.js +6 -0
- package/dist/_cjs/account/decorators/index.js.map +1 -0
- package/dist/_cjs/account/index.js +6 -0
- package/dist/_cjs/account/index.js.map +1 -0
- package/dist/_cjs/account/toStartaleSmartAccount.js +311 -0
- package/dist/_cjs/account/toStartaleSmartAccount.js.map +1 -0
- package/dist/_cjs/account/utils/AccountNotFound.js +18 -0
- package/dist/_cjs/account/utils/AccountNotFound.js.map +1 -0
- package/dist/_cjs/account/utils/Constants.js +128 -0
- package/dist/_cjs/account/utils/Constants.js.map +1 -0
- package/dist/_cjs/account/utils/Helpers.js +39 -0
- package/dist/_cjs/account/utils/Helpers.js.map +1 -0
- package/dist/_cjs/account/utils/Logger.js +35 -0
- package/dist/_cjs/account/utils/Logger.js.map +1 -0
- package/dist/_cjs/account/utils/Types.js +3 -0
- package/dist/_cjs/account/utils/Types.js.map +1 -0
- package/dist/_cjs/account/utils/Utils.js +258 -0
- package/dist/_cjs/account/utils/Utils.js.map +1 -0
- package/dist/_cjs/account/utils/addressToEmptyAccount.js +24 -0
- package/dist/_cjs/account/utils/addressToEmptyAccount.js.map +1 -0
- package/dist/_cjs/account/utils/contractSimulation.js +27 -0
- package/dist/_cjs/account/utils/contractSimulation.js.map +1 -0
- package/dist/_cjs/account/utils/deepHexlify.js +26 -0
- package/dist/_cjs/account/utils/deepHexlify.js.map +1 -0
- package/dist/_cjs/account/utils/eip7702Utils.js +21 -0
- package/dist/_cjs/account/utils/eip7702Utils.js.map +1 -0
- package/dist/_cjs/account/utils/fromBundlerClient.js +45 -0
- package/dist/_cjs/account/utils/fromBundlerClient.js.map +1 -0
- package/dist/_cjs/account/utils/getAAError.js +37 -0
- package/dist/_cjs/account/utils/getAAError.js.map +1 -0
- package/dist/_cjs/account/utils/getChain.js +66 -0
- package/dist/_cjs/account/utils/getChain.js.map +1 -0
- package/dist/_cjs/account/utils/getVersion.js +46 -0
- package/dist/_cjs/account/utils/getVersion.js.map +1 -0
- package/dist/_cjs/account/utils/index.js +28 -0
- package/dist/_cjs/account/utils/index.js.map +1 -0
- package/dist/_cjs/account/utils/parseErrorMessage.js +79 -0
- package/dist/_cjs/account/utils/parseErrorMessage.js.map +1 -0
- package/dist/_cjs/account/utils/tenderlySimulation.js +52 -0
- package/dist/_cjs/account/utils/tenderlySimulation.js.map +1 -0
- package/dist/_cjs/account/utils/toInitData.js +13 -0
- package/dist/_cjs/account/utils/toInitData.js.map +1 -0
- package/dist/_cjs/account/utils/toInstallData.js +15 -0
- package/dist/_cjs/account/utils/toInstallData.js.map +1 -0
- package/dist/_cjs/account/utils/toSigner.js +81 -0
- package/dist/_cjs/account/utils/toSigner.js.map +1 -0
- package/dist/_cjs/clients/createHttpClient.js +46 -0
- package/dist/_cjs/clients/createHttpClient.js.map +1 -0
- package/dist/_cjs/clients/createSCSBundlerClient.js +85 -0
- package/dist/_cjs/clients/createSCSBundlerClient.js.map +1 -0
- package/dist/_cjs/clients/createSCSPaymasterClient.js +48 -0
- package/dist/_cjs/clients/createSCSPaymasterClient.js.map +1 -0
- package/dist/_cjs/clients/decorators/bundler/getGasFeeValues.js +49 -0
- package/dist/_cjs/clients/decorators/bundler/getGasFeeValues.js.map +1 -0
- package/dist/_cjs/clients/decorators/bundler/index.js +11 -0
- package/dist/_cjs/clients/decorators/bundler/index.js.map +1 -0
- package/dist/_cjs/clients/decorators/bundler/waitForUserOperationReceipt.js +11 -0
- package/dist/_cjs/clients/decorators/bundler/waitForUserOperationReceipt.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/accountId.js +65 -0
- package/dist/_cjs/clients/decorators/erc7579/accountId.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/getActiveHook.js +43 -0
- package/dist/_cjs/clients/decorators/erc7579/getActiveHook.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/getFallbackBySelector.js +56 -0
- package/dist/_cjs/clients/decorators/erc7579/getFallbackBySelector.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/getInstalledExecutors.js +63 -0
- package/dist/_cjs/clients/decorators/erc7579/getInstalledExecutors.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/getInstalledValidators.js +61 -0
- package/dist/_cjs/clients/decorators/erc7579/getInstalledValidators.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/getPreviousModule.js +37 -0
- package/dist/_cjs/clients/decorators/erc7579/getPreviousModule.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/index.js +64 -0
- package/dist/_cjs/clients/decorators/erc7579/index.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/installModule.js +73 -0
- package/dist/_cjs/clients/decorators/erc7579/installModule.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/installModules.js +25 -0
- package/dist/_cjs/clients/decorators/erc7579/installModules.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/isModuleInstalled.js +90 -0
- package/dist/_cjs/clients/decorators/erc7579/isModuleInstalled.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/supportsExecutionMode.js +102 -0
- package/dist/_cjs/clients/decorators/erc7579/supportsExecutionMode.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/supportsModule.js +90 -0
- package/dist/_cjs/clients/decorators/erc7579/supportsModule.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/uninstallFallback.js +61 -0
- package/dist/_cjs/clients/decorators/erc7579/uninstallFallback.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/uninstallModule.js +79 -0
- package/dist/_cjs/clients/decorators/erc7579/uninstallModule.js.map +1 -0
- package/dist/_cjs/clients/decorators/erc7579/uninstallModules.js +26 -0
- package/dist/_cjs/clients/decorators/erc7579/uninstallModules.js.map +1 -0
- package/dist/_cjs/clients/decorators/index.js +8 -0
- package/dist/_cjs/clients/decorators/index.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/debugUserOperation.js +75 -0
- package/dist/_cjs/clients/decorators/smartAccount/debugUserOperation.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/index.js +32 -0
- package/dist/_cjs/clients/decorators/smartAccount/index.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js +32 -0
- package/dist/_cjs/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js +35 -0
- package/dist/_cjs/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js +21 -0
- package/dist/_cjs/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/sendTransaction.js +41 -0
- package/dist/_cjs/clients/decorators/smartAccount/sendTransaction.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/signMessage.js +14 -0
- package/dist/_cjs/clients/decorators/smartAccount/signMessage.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/signTypedData.js +31 -0
- package/dist/_cjs/clients/decorators/smartAccount/signTypedData.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/upgradeSmartAccount.js +61 -0
- package/dist/_cjs/clients/decorators/smartAccount/upgradeSmartAccount.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/waitForTransactionReceipt.js +17 -0
- package/dist/_cjs/clients/decorators/smartAccount/waitForTransactionReceipt.js.map +1 -0
- package/dist/_cjs/clients/decorators/smartAccount/writeContract.js +20 -0
- package/dist/_cjs/clients/decorators/smartAccount/writeContract.js.map +1 -0
- package/dist/_cjs/clients/decorators/tokenPaymaster/getSupportedTokens.js +25 -0
- package/dist/_cjs/clients/decorators/tokenPaymaster/getSupportedTokens.js.map +1 -0
- package/dist/_cjs/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js +71 -0
- package/dist/_cjs/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js.map +1 -0
- package/dist/_cjs/clients/decorators/tokenPaymaster/index.js +11 -0
- package/dist/_cjs/clients/decorators/tokenPaymaster/index.js.map +1 -0
- package/dist/_cjs/clients/index.js +8 -0
- package/dist/_cjs/clients/index.js.map +1 -0
- package/dist/_cjs/constants/abi/AccountFactory.js +337 -0
- package/dist/_cjs/constants/abi/AccountFactory.js.map +1 -0
- package/dist/_cjs/constants/abi/AccountImplementationAbi.js +1179 -0
- package/dist/_cjs/constants/abi/AccountImplementationAbi.js.map +1 -0
- package/dist/_cjs/constants/abi/BootstrapAbi.js +730 -0
- package/dist/_cjs/constants/abi/BootstrapAbi.js.map +1 -0
- package/dist/_cjs/constants/abi/ComposabilityAbi.js +274 -0
- package/dist/_cjs/constants/abi/ComposabilityAbi.js.map +1 -0
- package/dist/_cjs/constants/abi/EIP1271Abi.js +31 -0
- package/dist/_cjs/constants/abi/EIP1271Abi.js.map +1 -0
- package/dist/_cjs/constants/abi/ERC7484RegistryAbi.js +17 -0
- package/dist/_cjs/constants/abi/ERC7484RegistryAbi.js.map +1 -0
- package/dist/_cjs/constants/abi/EntryPointABI.js +661 -0
- package/dist/_cjs/constants/abi/EntryPointABI.js.map +1 -0
- package/dist/_cjs/constants/abi/SmartSessionAbi.js +1472 -0
- package/dist/_cjs/constants/abi/SmartSessionAbi.js.map +1 -0
- package/dist/_cjs/constants/abi/TokenWithPermitAbi.js +622 -0
- package/dist/_cjs/constants/abi/TokenWithPermitAbi.js.map +1 -0
- package/dist/_cjs/constants/abi/UniActionPolicyAbi.js +62 -0
- package/dist/_cjs/constants/abi/UniActionPolicyAbi.js.map +1 -0
- package/dist/_cjs/constants/abi/UniswapSwapRouterAbi.js +486 -0
- package/dist/_cjs/constants/abi/UniswapSwapRouterAbi.js.map +1 -0
- package/dist/_cjs/constants/abi/index.js +14 -0
- package/dist/_cjs/constants/abi/index.js.map +1 -0
- package/dist/_cjs/constants/index.js +64 -0
- package/dist/_cjs/constants/index.js.map +1 -0
- package/dist/_cjs/index.js +13 -0
- package/dist/_cjs/index.js.map +1 -0
- package/dist/_cjs/modules/index.js +8 -0
- package/dist/_cjs/modules/index.js.map +1 -0
- package/dist/_cjs/modules/toEmptyExecutor.js +10 -0
- package/dist/_cjs/modules/toEmptyExecutor.js.map +1 -0
- package/dist/_cjs/modules/toEmptyHook.js +10 -0
- package/dist/_cjs/modules/toEmptyHook.js.map +1 -0
- package/dist/_cjs/modules/utils/Helpers.js +59 -0
- package/dist/_cjs/modules/utils/Helpers.js.map +1 -0
- package/dist/_cjs/modules/utils/Types.js +15 -0
- package/dist/_cjs/modules/utils/Types.js.map +1 -0
- package/dist/_cjs/modules/utils/Uid.js +14 -0
- package/dist/_cjs/modules/utils/Uid.js.map +1 -0
- package/dist/_cjs/modules/utils/composabilityCalls.js +117 -0
- package/dist/_cjs/modules/utils/composabilityCalls.js.map +1 -0
- package/dist/_cjs/modules/utils/index.js +9 -0
- package/dist/_cjs/modules/utils/index.js.map +1 -0
- package/dist/_cjs/modules/utils/runtimeAbiEncoding.js +276 -0
- package/dist/_cjs/modules/utils/runtimeAbiEncoding.js.map +1 -0
- package/dist/_cjs/modules/utils/toModule.js +39 -0
- package/dist/_cjs/modules/utils/toModule.js.map +1 -0
- package/dist/_cjs/modules/validators/default/index.js +5 -0
- package/dist/_cjs/modules/validators/default/index.js.map +1 -0
- package/dist/_cjs/modules/validators/default/toDefaultModule.js +18 -0
- package/dist/_cjs/modules/validators/default/toDefaultModule.js.map +1 -0
- package/dist/_cjs/modules/validators/index.js +9 -0
- package/dist/_cjs/modules/validators/index.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/addOwner.js +48 -0
- package/dist/_cjs/modules/validators/ownable/decorators/addOwner.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getAddOwnerTx.js +42 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getAddOwnerTx.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getOwners.js +28 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getOwners.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getRemoveOwnerTx.js +42 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getRemoveOwnerTx.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getSetThresholdTx.js +32 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getSetThresholdTx.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getThreshold.js +28 -0
- package/dist/_cjs/modules/validators/ownable/decorators/getThreshold.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/index.js +70 -0
- package/dist/_cjs/modules/validators/ownable/decorators/index.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/multiSign.js +25 -0
- package/dist/_cjs/modules/validators/ownable/decorators/multiSign.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/prepareForMultiSign.js +22 -0
- package/dist/_cjs/modules/validators/ownable/decorators/prepareForMultiSign.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/removeOwner.js +47 -0
- package/dist/_cjs/modules/validators/ownable/decorators/removeOwner.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/decorators/setThreshold.js +39 -0
- package/dist/_cjs/modules/validators/ownable/decorators/setThreshold.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/index.js +6 -0
- package/dist/_cjs/modules/validators/ownable/index.js.map +1 -0
- package/dist/_cjs/modules/validators/ownable/toOwnableModule.js +16 -0
- package/dist/_cjs/modules/validators/ownable/toOwnableModule.js.map +1 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/Helpers.js +132 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/Helpers.js.map +1 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/Types.js +13 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/Types.js.map +1 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/grantPermission.js +38 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/grantPermission.js.map +1 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/index.js +30 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/index.js.map +1 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/preparePermission.js +152 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/preparePermission.js.map +1 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/revokeSession.js +42 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/revokeSession.js.map +1 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/usePermission.js +16 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/decorators/usePermission.js.map +1 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/index.js +8 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/index.js.map +1 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js +49 -0
- package/dist/_cjs/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js.map +1 -0
- package/dist/_cjs/modules/validators/toValidator.js +21 -0
- package/dist/_cjs/modules/validators/toValidator.js.map +1 -0
- package/dist/_cjs/package.json +1 -0
- package/dist/_esm/account/decorators/getFactoryData.js +31 -0
- package/dist/_esm/account/decorators/getFactoryData.js.map +1 -0
- package/dist/_esm/account/decorators/getStartaleAccountAddress.js +31 -0
- package/dist/_esm/account/decorators/getStartaleAccountAddress.js.map +1 -0
- package/dist/_esm/account/decorators/index.js +3 -0
- package/dist/_esm/account/decorators/index.js.map +1 -0
- package/dist/_esm/account/index.js +3 -0
- package/dist/_esm/account/index.js.map +1 -0
- package/dist/_esm/account/toStartaleSmartAccount.js +403 -0
- package/dist/_esm/account/toStartaleSmartAccount.js.map +1 -0
- package/dist/_esm/account/utils/AccountNotFound.js +17 -0
- package/dist/_esm/account/utils/AccountNotFound.js.map +1 -0
- package/dist/_esm/account/utils/Constants.js +129 -0
- package/dist/_esm/account/utils/Constants.js.map +1 -0
- package/dist/_esm/account/utils/Helpers.js +45 -0
- package/dist/_esm/account/utils/Helpers.js.map +1 -0
- package/dist/_esm/account/utils/Logger.js +50 -0
- package/dist/_esm/account/utils/Logger.js.map +1 -0
- package/dist/_esm/account/utils/Types.js +2 -0
- package/dist/_esm/account/utils/Types.js.map +1 -0
- package/dist/_esm/account/utils/Utils.js +319 -0
- package/dist/_esm/account/utils/Utils.js.map +1 -0
- package/dist/_esm/account/utils/addressToEmptyAccount.js +21 -0
- package/dist/_esm/account/utils/addressToEmptyAccount.js.map +1 -0
- package/dist/_esm/account/utils/contractSimulation.js +48 -0
- package/dist/_esm/account/utils/contractSimulation.js.map +1 -0
- package/dist/_esm/account/utils/deepHexlify.js +63 -0
- package/dist/_esm/account/utils/deepHexlify.js.map +1 -0
- package/dist/_esm/account/utils/eip7702Utils.js +16 -0
- package/dist/_esm/account/utils/eip7702Utils.js.map +1 -0
- package/dist/_esm/account/utils/fromBundlerClient.js +67 -0
- package/dist/_esm/account/utils/fromBundlerClient.js.map +1 -0
- package/dist/_esm/account/utils/getAAError.js +34 -0
- package/dist/_esm/account/utils/getAAError.js.map +1 -0
- package/dist/_esm/account/utils/getChain.js +117 -0
- package/dist/_esm/account/utils/getChain.js.map +1 -0
- package/dist/_esm/account/utils/getVersion.js +163 -0
- package/dist/_esm/account/utils/getVersion.js.map +1 -0
- package/dist/_esm/account/utils/index.js +20 -0
- package/dist/_esm/account/utils/index.js.map +1 -0
- package/dist/_esm/account/utils/parseErrorMessage.js +89 -0
- package/dist/_esm/account/utils/parseErrorMessage.js.map +1 -0
- package/dist/_esm/account/utils/tenderlySimulation.js +47 -0
- package/dist/_esm/account/utils/tenderlySimulation.js.map +1 -0
- package/dist/_esm/account/utils/toInitData.js +14 -0
- package/dist/_esm/account/utils/toInitData.js.map +1 -0
- package/dist/_esm/account/utils/toInstallData.js +16 -0
- package/dist/_esm/account/utils/toInstallData.js.map +1 -0
- package/dist/_esm/account/utils/toSigner.js +91 -0
- package/dist/_esm/account/utils/toSigner.js.map +1 -0
- package/dist/_esm/clients/createHttpClient.js +47 -0
- package/dist/_esm/clients/createHttpClient.js.map +1 -0
- package/dist/_esm/clients/createSCSBundlerClient.js +96 -0
- package/dist/_esm/clients/createSCSBundlerClient.js.map +1 -0
- package/dist/_esm/clients/createSCSPaymasterClient.js +85 -0
- package/dist/_esm/clients/createSCSPaymasterClient.js.map +1 -0
- package/dist/_esm/clients/decorators/bundler/getGasFeeValues.js +77 -0
- package/dist/_esm/clients/decorators/bundler/getGasFeeValues.js.map +1 -0
- package/dist/_esm/clients/decorators/bundler/index.js +7 -0
- package/dist/_esm/clients/decorators/bundler/index.js.map +1 -0
- package/dist/_esm/clients/decorators/bundler/waitForUserOperationReceipt.js +8 -0
- package/dist/_esm/clients/decorators/bundler/waitForUserOperationReceipt.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/accountId.js +77 -0
- package/dist/_esm/clients/decorators/erc7579/accountId.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/getActiveHook.js +52 -0
- package/dist/_esm/clients/decorators/erc7579/getActiveHook.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/getFallbackBySelector.js +67 -0
- package/dist/_esm/clients/decorators/erc7579/getFallbackBySelector.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/getInstalledExecutors.js +74 -0
- package/dist/_esm/clients/decorators/erc7579/getInstalledExecutors.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/getInstalledValidators.js +72 -0
- package/dist/_esm/clients/decorators/erc7579/getInstalledValidators.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/getPreviousModule.js +54 -0
- package/dist/_esm/clients/decorators/erc7579/getPreviousModule.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/index.js +48 -0
- package/dist/_esm/clients/decorators/erc7579/index.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/installModule.js +115 -0
- package/dist/_esm/clients/decorators/erc7579/installModule.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/installModules.js +41 -0
- package/dist/_esm/clients/decorators/erc7579/installModules.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/isModuleInstalled.js +106 -0
- package/dist/_esm/clients/decorators/erc7579/isModuleInstalled.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/supportsExecutionMode.js +120 -0
- package/dist/_esm/clients/decorators/erc7579/supportsExecutionMode.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/supportsModule.js +108 -0
- package/dist/_esm/clients/decorators/erc7579/supportsModule.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/uninstallFallback.js +76 -0
- package/dist/_esm/clients/decorators/erc7579/uninstallFallback.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/uninstallModule.js +94 -0
- package/dist/_esm/clients/decorators/erc7579/uninstallModule.js.map +1 -0
- package/dist/_esm/clients/decorators/erc7579/uninstallModules.js +42 -0
- package/dist/_esm/clients/decorators/erc7579/uninstallModules.js.map +1 -0
- package/dist/_esm/clients/decorators/index.js +5 -0
- package/dist/_esm/clients/decorators/index.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/debugUserOperation.js +105 -0
- package/dist/_esm/clients/decorators/smartAccount/debugUserOperation.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/index.js +28 -0
- package/dist/_esm/clients/decorators/smartAccount/index.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js +60 -0
- package/dist/_esm/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js +36 -0
- package/dist/_esm/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js +43 -0
- package/dist/_esm/clients/decorators/smartAccount/sendTokenPaymasterUserOp.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/sendTransaction.js +57 -0
- package/dist/_esm/clients/decorators/smartAccount/sendTransaction.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/signMessage.js +30 -0
- package/dist/_esm/clients/decorators/smartAccount/signMessage.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/signTypedData.js +82 -0
- package/dist/_esm/clients/decorators/smartAccount/signTypedData.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/upgradeSmartAccount.js +75 -0
- package/dist/_esm/clients/decorators/smartAccount/upgradeSmartAccount.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/waitForTransactionReceipt.js +14 -0
- package/dist/_esm/clients/decorators/smartAccount/waitForTransactionReceipt.js.map +1 -0
- package/dist/_esm/clients/decorators/smartAccount/writeContract.js +40 -0
- package/dist/_esm/clients/decorators/smartAccount/writeContract.js.map +1 -0
- package/dist/_esm/clients/decorators/tokenPaymaster/getSupportedTokens.js +35 -0
- package/dist/_esm/clients/decorators/tokenPaymaster/getSupportedTokens.js.map +1 -0
- package/dist/_esm/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js +120 -0
- package/dist/_esm/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.js.map +1 -0
- package/dist/_esm/clients/decorators/tokenPaymaster/index.js +63 -0
- package/dist/_esm/clients/decorators/tokenPaymaster/index.js.map +1 -0
- package/dist/_esm/clients/index.js +5 -0
- package/dist/_esm/clients/index.js.map +1 -0
- package/dist/_esm/constants/abi/AccountFactory.js +334 -0
- package/dist/_esm/constants/abi/AccountFactory.js.map +1 -0
- package/dist/_esm/constants/abi/AccountImplementationAbi.js +1176 -0
- package/dist/_esm/constants/abi/AccountImplementationAbi.js.map +1 -0
- package/dist/_esm/constants/abi/BootstrapAbi.js +727 -0
- package/dist/_esm/constants/abi/BootstrapAbi.js.map +1 -0
- package/dist/_esm/constants/abi/ComposabilityAbi.js +271 -0
- package/dist/_esm/constants/abi/ComposabilityAbi.js.map +1 -0
- package/dist/_esm/constants/abi/EIP1271Abi.js +28 -0
- package/dist/_esm/constants/abi/EIP1271Abi.js.map +1 -0
- package/dist/_esm/constants/abi/ERC7484RegistryAbi.js +14 -0
- package/dist/_esm/constants/abi/ERC7484RegistryAbi.js.map +1 -0
- package/dist/_esm/constants/abi/EntryPointABI.js +658 -0
- package/dist/_esm/constants/abi/EntryPointABI.js.map +1 -0
- package/dist/_esm/constants/abi/SmartSessionAbi.js +1469 -0
- package/dist/_esm/constants/abi/SmartSessionAbi.js.map +1 -0
- package/dist/_esm/constants/abi/TokenWithPermitAbi.js +619 -0
- package/dist/_esm/constants/abi/TokenWithPermitAbi.js.map +1 -0
- package/dist/_esm/constants/abi/UniActionPolicyAbi.js +59 -0
- package/dist/_esm/constants/abi/UniActionPolicyAbi.js.map +1 -0
- package/dist/_esm/constants/abi/UniswapSwapRouterAbi.js +483 -0
- package/dist/_esm/constants/abi/UniswapSwapRouterAbi.js.map +1 -0
- package/dist/_esm/constants/abi/index.js +11 -0
- package/dist/_esm/constants/abi/index.js.map +1 -0
- package/dist/_esm/constants/index.js +38 -0
- package/dist/_esm/constants/index.js.map +1 -0
- package/dist/_esm/index.js +12 -0
- package/dist/_esm/index.js.map +1 -0
- package/dist/_esm/modules/index.js +6 -0
- package/dist/_esm/modules/index.js.map +1 -0
- package/dist/_esm/modules/toEmptyExecutor.js +6 -0
- package/dist/_esm/modules/toEmptyExecutor.js.map +1 -0
- package/dist/_esm/modules/toEmptyHook.js +6 -0
- package/dist/_esm/modules/toEmptyHook.js.map +1 -0
- package/dist/_esm/modules/utils/Helpers.js +81 -0
- package/dist/_esm/modules/utils/Helpers.js.map +1 -0
- package/dist/_esm/modules/utils/Types.js +12 -0
- package/dist/_esm/modules/utils/Types.js.map +1 -0
- package/dist/_esm/modules/utils/Uid.js +11 -0
- package/dist/_esm/modules/utils/Uid.js.map +1 -0
- package/dist/_esm/modules/utils/composabilityCalls.js +127 -0
- package/dist/_esm/modules/utils/composabilityCalls.js.map +1 -0
- package/dist/_esm/modules/utils/index.js +6 -0
- package/dist/_esm/modules/utils/index.js.map +1 -0
- package/dist/_esm/modules/utils/runtimeAbiEncoding.js +365 -0
- package/dist/_esm/modules/utils/runtimeAbiEncoding.js.map +1 -0
- package/dist/_esm/modules/utils/toModule.js +61 -0
- package/dist/_esm/modules/utils/toModule.js.map +1 -0
- package/dist/_esm/modules/validators/default/index.js +2 -0
- package/dist/_esm/modules/validators/default/index.js.map +1 -0
- package/dist/_esm/modules/validators/default/toDefaultModule.js +14 -0
- package/dist/_esm/modules/validators/default/toDefaultModule.js.map +1 -0
- package/dist/_esm/modules/validators/index.js +6 -0
- package/dist/_esm/modules/validators/index.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/addOwner.js +56 -0
- package/dist/_esm/modules/validators/ownable/decorators/addOwner.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/getAddOwnerTx.js +50 -0
- package/dist/_esm/modules/validators/ownable/decorators/getAddOwnerTx.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/getOwners.js +38 -0
- package/dist/_esm/modules/validators/ownable/decorators/getOwners.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/getRemoveOwnerTx.js +50 -0
- package/dist/_esm/modules/validators/ownable/decorators/getRemoveOwnerTx.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/getSetThresholdTx.js +48 -0
- package/dist/_esm/modules/validators/ownable/decorators/getSetThresholdTx.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/getThreshold.js +54 -0
- package/dist/_esm/modules/validators/ownable/decorators/getThreshold.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/index.js +57 -0
- package/dist/_esm/modules/validators/ownable/decorators/index.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/multiSign.js +22 -0
- package/dist/_esm/modules/validators/ownable/decorators/multiSign.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/prepareForMultiSign.js +21 -0
- package/dist/_esm/modules/validators/ownable/decorators/prepareForMultiSign.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/removeOwner.js +66 -0
- package/dist/_esm/modules/validators/ownable/decorators/removeOwner.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/decorators/setThreshold.js +62 -0
- package/dist/_esm/modules/validators/ownable/decorators/setThreshold.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/index.js +3 -0
- package/dist/_esm/modules/validators/ownable/index.js.map +1 -0
- package/dist/_esm/modules/validators/ownable/toOwnableModule.js +38 -0
- package/dist/_esm/modules/validators/ownable/toOwnableModule.js.map +1 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/Helpers.js +181 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/Helpers.js.map +1 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/Types.js +13 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/Types.js.map +1 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/grantPermission.js +80 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/grantPermission.js.map +1 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/index.js +37 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/index.js.map +1 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/preparePermission.js +214 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/preparePermission.js.map +1 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/revokeSession.js +67 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/revokeSession.js.map +1 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/usePermission.js +47 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/decorators/usePermission.js.map +1 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/index.js +5 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/index.js.map +1 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js +82 -0
- package/dist/_esm/modules/validators/smartSessionsValidator/toSmartSessionsValidator.js.map +1 -0
- package/dist/_esm/modules/validators/toValidator.js +17 -0
- package/dist/_esm/modules/validators/toValidator.js.map +1 -0
- package/dist/_esm/package.json +1 -0
- package/dist/_types/account/decorators/getFactoryData.d.ts +25 -0
- package/dist/_types/account/decorators/getFactoryData.d.ts.map +1 -0
- package/dist/_types/account/decorators/getStartaleAccountAddress.d.ts +33 -0
- package/dist/_types/account/decorators/getStartaleAccountAddress.d.ts.map +1 -0
- package/dist/_types/account/decorators/index.d.ts +3 -0
- package/dist/_types/account/decorators/index.d.ts.map +1 -0
- package/dist/_types/account/index.d.ts +3 -0
- package/dist/_types/account/index.d.ts.map +1 -0
- package/dist/_types/account/toStartaleSmartAccount.d.ts +120 -0
- package/dist/_types/account/toStartaleSmartAccount.d.ts.map +1 -0
- package/dist/_types/account/utils/AccountNotFound.d.ts +10 -0
- package/dist/_types/account/utils/AccountNotFound.d.ts.map +1 -0
- package/dist/_types/account/utils/Constants.d.ts +73 -0
- package/dist/_types/account/utils/Constants.d.ts.map +1 -0
- package/dist/_types/account/utils/Helpers.d.ts +21 -0
- package/dist/_types/account/utils/Helpers.d.ts.map +1 -0
- package/dist/_types/account/utils/Logger.d.ts +20 -0
- package/dist/_types/account/utils/Logger.d.ts.map +1 -0
- package/dist/_types/account/utils/Types.d.ts +94 -0
- package/dist/_types/account/utils/Types.d.ts.map +1 -0
- package/dist/_types/account/utils/Utils.d.ts +129 -0
- package/dist/_types/account/utils/Utils.d.ts.map +1 -0
- package/dist/_types/account/utils/addressToEmptyAccount.d.ts +4 -0
- package/dist/_types/account/utils/addressToEmptyAccount.d.ts.map +1 -0
- package/dist/_types/account/utils/contractSimulation.d.ts +801 -0
- package/dist/_types/account/utils/contractSimulation.d.ts.map +1 -0
- package/dist/_types/account/utils/deepHexlify.d.ts +41 -0
- package/dist/_types/account/utils/deepHexlify.d.ts.map +1 -0
- package/dist/_types/account/utils/eip7702Utils.d.ts +4 -0
- package/dist/_types/account/utils/eip7702Utils.d.ts.map +1 -0
- package/dist/_types/account/utils/fromBundlerClient.d.ts +50 -0
- package/dist/_types/account/utils/fromBundlerClient.d.ts.map +1 -0
- package/dist/_types/account/utils/getAAError.d.ts +17 -0
- package/dist/_types/account/utils/getAAError.d.ts.map +1 -0
- package/dist/_types/account/utils/getChain.d.ts +64 -0
- package/dist/_types/account/utils/getChain.d.ts.map +1 -0
- package/dist/_types/account/utils/getVersion.d.ts +135 -0
- package/dist/_types/account/utils/getVersion.d.ts.map +1 -0
- package/dist/_types/account/utils/index.d.ts +20 -0
- package/dist/_types/account/utils/index.d.ts.map +1 -0
- package/dist/_types/account/utils/parseErrorMessage.d.ts +2 -0
- package/dist/_types/account/utils/parseErrorMessage.d.ts.map +1 -0
- package/dist/_types/account/utils/tenderlySimulation.d.ts +13 -0
- package/dist/_types/account/utils/tenderlySimulation.d.ts.map +1 -0
- package/dist/_types/account/utils/toInitData.d.ts +12 -0
- package/dist/_types/account/utils/toInitData.d.ts.map +1 -0
- package/dist/_types/account/utils/toInstallData.d.ts +8 -0
- package/dist/_types/account/utils/toInstallData.d.ts.map +1 -0
- package/dist/_types/account/utils/toSigner.d.ts +26 -0
- package/dist/_types/account/utils/toSigner.d.ts.map +1 -0
- package/dist/_types/clients/createHttpClient.d.ts +44 -0
- package/dist/_types/clients/createHttpClient.d.ts.map +1 -0
- package/dist/_types/clients/createSCSBundlerClient.d.ts +66 -0
- package/dist/_types/clients/createSCSBundlerClient.d.ts.map +1 -0
- package/dist/_types/clients/createSCSPaymasterClient.d.ts +70 -0
- package/dist/_types/clients/createSCSPaymasterClient.d.ts.map +1 -0
- package/dist/_types/clients/decorators/bundler/getGasFeeValues.d.ts +51 -0
- package/dist/_types/clients/decorators/bundler/getGasFeeValues.d.ts.map +1 -0
- package/dist/_types/clients/decorators/bundler/index.d.ts +43 -0
- package/dist/_types/clients/decorators/bundler/index.d.ts.map +1 -0
- package/dist/_types/clients/decorators/bundler/waitForUserOperationReceipt.d.ts +5 -0
- package/dist/_types/clients/decorators/bundler/waitForUserOperationReceipt.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/accountId.d.ts +21 -0
- package/dist/_types/clients/decorators/erc7579/accountId.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/getActiveHook.d.ts +35 -0
- package/dist/_types/clients/decorators/erc7579/getActiveHook.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/getFallbackBySelector.d.ts +43 -0
- package/dist/_types/clients/decorators/erc7579/getFallbackBySelector.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/getInstalledExecutors.d.ts +52 -0
- package/dist/_types/clients/decorators/erc7579/getInstalledExecutors.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/getInstalledValidators.d.ts +52 -0
- package/dist/_types/clients/decorators/erc7579/getInstalledValidators.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/getPreviousModule.d.ts +32 -0
- package/dist/_types/clients/decorators/erc7579/getPreviousModule.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/index.d.ts +165 -0
- package/dist/_types/clients/decorators/erc7579/index.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/installModule.d.ts +36 -0
- package/dist/_types/clients/decorators/erc7579/installModule.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/installModules.d.ts +36 -0
- package/dist/_types/clients/decorators/erc7579/installModules.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/isModuleInstalled.d.ts +54 -0
- package/dist/_types/clients/decorators/erc7579/isModuleInstalled.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/supportsExecutionMode.d.ts +54 -0
- package/dist/_types/clients/decorators/erc7579/supportsExecutionMode.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/supportsModule.d.ts +48 -0
- package/dist/_types/clients/decorators/erc7579/supportsModule.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/uninstallFallback.d.ts +35 -0
- package/dist/_types/clients/decorators/erc7579/uninstallFallback.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/uninstallModule.d.ts +35 -0
- package/dist/_types/clients/decorators/erc7579/uninstallModule.d.ts.map +1 -0
- package/dist/_types/clients/decorators/erc7579/uninstallModules.d.ts +32 -0
- package/dist/_types/clients/decorators/erc7579/uninstallModules.d.ts.map +1 -0
- package/dist/_types/clients/decorators/index.d.ts +5 -0
- package/dist/_types/clients/decorators/index.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/debugUserOperation.d.ts +35 -0
- package/dist/_types/clients/decorators/smartAccount/debugUserOperation.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/index.d.ts +315 -0
- package/dist/_types/clients/decorators/smartAccount/index.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.d.ts +52 -0
- package/dist/_types/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.d.ts +16 -0
- package/dist/_types/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/sendTokenPaymasterUserOp.d.ts +36 -0
- package/dist/_types/clients/decorators/smartAccount/sendTokenPaymasterUserOp.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/sendTransaction.d.ts +23 -0
- package/dist/_types/clients/decorators/smartAccount/sendTransaction.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/signMessage.d.ts +23 -0
- package/dist/_types/clients/decorators/smartAccount/signMessage.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/signTypedData.d.ts +60 -0
- package/dist/_types/clients/decorators/smartAccount/signTypedData.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/upgradeSmartAccount.d.ts +40 -0
- package/dist/_types/clients/decorators/smartAccount/upgradeSmartAccount.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/waitForTransactionReceipt.d.ts +6 -0
- package/dist/_types/clients/decorators/smartAccount/waitForTransactionReceipt.d.ts.map +1 -0
- package/dist/_types/clients/decorators/smartAccount/writeContract.d.ts +27 -0
- package/dist/_types/clients/decorators/smartAccount/writeContract.d.ts.map +1 -0
- package/dist/_types/clients/decorators/tokenPaymaster/getSupportedTokens.d.ts +16 -0
- package/dist/_types/clients/decorators/tokenPaymaster/getSupportedTokens.d.ts.map +1 -0
- package/dist/_types/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.d.ts +93 -0
- package/dist/_types/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.d.ts.map +1 -0
- package/dist/_types/clients/decorators/tokenPaymaster/index.d.ts +65 -0
- package/dist/_types/clients/decorators/tokenPaymaster/index.d.ts.map +1 -0
- package/dist/_types/clients/index.d.ts +5 -0
- package/dist/_types/clients/index.d.ts.map +1 -0
- package/dist/_types/constants/abi/AccountFactory.d.ts +259 -0
- package/dist/_types/constants/abi/AccountFactory.d.ts.map +1 -0
- package/dist/_types/constants/abi/AccountImplementationAbi.d.ts +903 -0
- package/dist/_types/constants/abi/AccountImplementationAbi.d.ts.map +1 -0
- package/dist/_types/constants/abi/BootstrapAbi.d.ts +554 -0
- package/dist/_types/constants/abi/BootstrapAbi.d.ts.map +1 -0
- package/dist/_types/constants/abi/ComposabilityAbi.d.ts +67 -0
- package/dist/_types/constants/abi/ComposabilityAbi.d.ts.map +1 -0
- package/dist/_types/constants/abi/EIP1271Abi.d.ts +54 -0
- package/dist/_types/constants/abi/EIP1271Abi.d.ts.map +1 -0
- package/dist/_types/constants/abi/ERC7484RegistryAbi.d.ts +16 -0
- package/dist/_types/constants/abi/ERC7484RegistryAbi.d.ts.map +1 -0
- package/dist/_types/constants/abi/EntryPointABI.d.ts +776 -0
- package/dist/_types/constants/abi/EntryPointABI.d.ts.map +1 -0
- package/dist/_types/constants/abi/SmartSessionAbi.d.ts +90 -0
- package/dist/_types/constants/abi/SmartSessionAbi.d.ts.map +1 -0
- package/dist/_types/constants/abi/TokenWithPermitAbi.d.ts +477 -0
- package/dist/_types/constants/abi/TokenWithPermitAbi.d.ts.map +1 -0
- package/dist/_types/constants/abi/UniActionPolicyAbi.d.ts +33 -0
- package/dist/_types/constants/abi/UniActionPolicyAbi.d.ts.map +1 -0
- package/dist/_types/constants/abi/UniswapSwapRouterAbi.d.ts +821 -0
- package/dist/_types/constants/abi/UniswapSwapRouterAbi.d.ts.map +1 -0
- package/dist/_types/constants/abi/index.d.ts +11 -0
- package/dist/_types/constants/abi/index.d.ts.map +1 -0
- package/dist/_types/constants/index.d.ts +20 -0
- package/dist/_types/constants/index.d.ts.map +1 -0
- package/dist/_types/index.d.ts +7 -0
- package/dist/_types/index.d.ts.map +1 -0
- package/dist/_types/modules/index.d.ts +6 -0
- package/dist/_types/modules/index.d.ts.map +1 -0
- package/dist/_types/modules/toEmptyExecutor.d.ts +3 -0
- package/dist/_types/modules/toEmptyExecutor.d.ts.map +1 -0
- package/dist/_types/modules/toEmptyHook.d.ts +3 -0
- package/dist/_types/modules/toEmptyHook.d.ts.map +1 -0
- package/dist/_types/modules/utils/Helpers.d.ts +48 -0
- package/dist/_types/modules/utils/Helpers.d.ts.map +1 -0
- package/dist/_types/modules/utils/Types.d.ts +103 -0
- package/dist/_types/modules/utils/Types.d.ts.map +1 -0
- package/dist/_types/modules/utils/Uid.d.ts +2 -0
- package/dist/_types/modules/utils/Uid.d.ts.map +1 -0
- package/dist/_types/modules/utils/composabilityCalls.d.ts +63 -0
- package/dist/_types/modules/utils/composabilityCalls.d.ts.map +1 -0
- package/dist/_types/modules/utils/index.d.ts +6 -0
- package/dist/_types/modules/utils/index.d.ts.map +1 -0
- package/dist/_types/modules/utils/runtimeAbiEncoding.d.ts +18 -0
- package/dist/_types/modules/utils/runtimeAbiEncoding.d.ts.map +1 -0
- package/dist/_types/modules/utils/toModule.d.ts +28 -0
- package/dist/_types/modules/utils/toModule.d.ts.map +1 -0
- package/dist/_types/modules/validators/default/index.d.ts +2 -0
- package/dist/_types/modules/validators/default/index.d.ts.map +1 -0
- package/dist/_types/modules/validators/default/toDefaultModule.d.ts +3 -0
- package/dist/_types/modules/validators/default/toDefaultModule.d.ts.map +1 -0
- package/dist/_types/modules/validators/index.d.ts +6 -0
- package/dist/_types/modules/validators/index.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/addOwner.d.ts +36 -0
- package/dist/_types/modules/validators/ownable/decorators/addOwner.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/getAddOwnerTx.d.ts +30 -0
- package/dist/_types/modules/validators/ownable/decorators/getAddOwnerTx.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/getOwners.d.ts +25 -0
- package/dist/_types/modules/validators/ownable/decorators/getOwners.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/getRemoveOwnerTx.d.ts +30 -0
- package/dist/_types/modules/validators/ownable/decorators/getRemoveOwnerTx.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/getSetThresholdTx.d.ts +39 -0
- package/dist/_types/modules/validators/ownable/decorators/getSetThresholdTx.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/getThreshold.d.ts +40 -0
- package/dist/_types/modules/validators/ownable/decorators/getThreshold.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/index.d.ts +37 -0
- package/dist/_types/modules/validators/ownable/decorators/index.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/multiSign.d.ts +11 -0
- package/dist/_types/modules/validators/ownable/decorators/multiSign.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/prepareForMultiSign.d.ts +25 -0
- package/dist/_types/modules/validators/ownable/decorators/prepareForMultiSign.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/removeOwner.d.ts +47 -0
- package/dist/_types/modules/validators/ownable/decorators/removeOwner.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/decorators/setThreshold.d.ts +51 -0
- package/dist/_types/modules/validators/ownable/decorators/setThreshold.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/index.d.ts +3 -0
- package/dist/_types/modules/validators/ownable/index.d.ts.map +1 -0
- package/dist/_types/modules/validators/ownable/toOwnableModule.d.ts +44 -0
- package/dist/_types/modules/validators/ownable/toOwnableModule.d.ts.map +1 -0
- package/dist/_types/modules/validators/smartSessionsValidator/Helpers.d.ts +98 -0
- package/dist/_types/modules/validators/smartSessionsValidator/Helpers.d.ts.map +1 -0
- package/dist/_types/modules/validators/smartSessionsValidator/Types.d.ts +262 -0
- package/dist/_types/modules/validators/smartSessionsValidator/Types.d.ts.map +1 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/grantPermission.d.ts +73 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/grantPermission.d.ts.map +1 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/index.d.ts +79 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/index.d.ts.map +1 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/preparePermission.d.ts +81 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/preparePermission.d.ts.map +1 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/revokeSession.d.ts +55 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/revokeSession.d.ts.map +1 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/usePermission.d.ts +63 -0
- package/dist/_types/modules/validators/smartSessionsValidator/decorators/usePermission.d.ts.map +1 -0
- package/dist/_types/modules/validators/smartSessionsValidator/index.d.ts +5 -0
- package/dist/_types/modules/validators/smartSessionsValidator/index.d.ts.map +1 -0
- package/dist/_types/modules/validators/smartSessionsValidator/toSmartSessionsValidator.d.ts +65 -0
- package/dist/_types/modules/validators/smartSessionsValidator/toSmartSessionsValidator.d.ts.map +1 -0
- package/dist/_types/modules/validators/toValidator.d.ts +45 -0
- package/dist/_types/modules/validators/toValidator.d.ts.map +1 -0
- package/package.json +134 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.uninstallModules = uninstallModules;
|
|
4
|
+
const account_abstraction_1 = require("viem/account-abstraction");
|
|
5
|
+
const utils_1 = require("viem/utils");
|
|
6
|
+
const utils_2 = require("viem/utils");
|
|
7
|
+
const AccountNotFound_1 = require("../../../account/utils/AccountNotFound.js");
|
|
8
|
+
const uninstallModule_1 = require("./uninstallModule.js");
|
|
9
|
+
async function uninstallModules(client, parameters) {
|
|
10
|
+
const { account: account_ = client.account, maxFeePerGas, maxPriorityFeePerGas, nonce, modules } = parameters;
|
|
11
|
+
if (!account_) {
|
|
12
|
+
throw new AccountNotFound_1.AccountNotFoundError({
|
|
13
|
+
docsPath: "/startale-client/methods#sendtransaction"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const account = (0, utils_2.parseAccount)(account_);
|
|
17
|
+
const calls = (await Promise.all(modules.flatMap((module) => (0, uninstallModule_1.toUninstallModuleCalls)(account, module)))).flat();
|
|
18
|
+
return (0, utils_1.getAction)(client, account_abstraction_1.sendUserOperation, "sendUserOperation")({
|
|
19
|
+
calls,
|
|
20
|
+
maxFeePerGas,
|
|
21
|
+
maxPriorityFeePerGas,
|
|
22
|
+
nonce,
|
|
23
|
+
account
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=uninstallModules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uninstallModules.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/erc7579/uninstallModules.ts"],"names":[],"mappings":";;AAuCA,4CAsCC;AA5ED,kEAA+E;AAC/E,sCAAsC;AACtC,sCAAyC;AACzC,4EAA6E;AAK7E,uDAA0D;AA8BnD,KAAK,UAAU,gBAAgB,CAGpC,MAA2D,EAC3D,UAAqD;IAErD,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,OAAO,EACR,GAAG,UAAU,CAAA;IAEd,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,sCAAoB,CAAC;YAC7B,QAAQ,EAAE,0CAA0C;SACrD,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAmC,CAAA;IACxE,MAAM,KAAK,GAAG,CACZ,MAAM,OAAO,CAAC,GAAG,CACf,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAA,wCAAsB,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CACrE,CACF,CAAC,IAAI,EAAE,CAAA;IAER,OAAO,IAAA,iBAAS,EACd,MAAM,EACN,uCAAiB,EACjB,mBAAmB,CACpB,CAAC;QACA,KAAK;QACL,YAAY;QACZ,oBAAoB;QACpB,KAAK;QACL,OAAO;KACR,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./erc7579/index.js"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./smartAccount/index.js"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./bundler/index.js"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./tokenPaymaster/index.js"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/sdk/clients/decorators/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,yDAA8B;AAC9B,oDAAyB;AACzB,2DAAgC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.debugUserOperation = debugUserOperation;
|
|
4
|
+
const account_abstraction_1 = require("viem/account-abstraction");
|
|
5
|
+
const accounts_1 = require("viem/accounts");
|
|
6
|
+
const AccountNotFound_1 = require("../../../account/utils/AccountNotFound.js");
|
|
7
|
+
const Utils_1 = require("../../../account/utils/Utils.js");
|
|
8
|
+
const deepHexlify_1 = require("../../../account/utils/deepHexlify.js");
|
|
9
|
+
const getAAError_1 = require("../../../account/utils/getAAError.js");
|
|
10
|
+
const tenderlySimulation_1 = require("../../../account/utils/tenderlySimulation.js");
|
|
11
|
+
async function debugUserOperation(client, parameters) {
|
|
12
|
+
const chainId = Number(client.account?.client?.chain?.id?.toString() ?? 84532);
|
|
13
|
+
try {
|
|
14
|
+
const { account: account_ = client.account, entryPointAddress } = parameters;
|
|
15
|
+
if (!account_ && !parameters.sender)
|
|
16
|
+
throw new AccountNotFound_1.AccountNotFoundError();
|
|
17
|
+
const account = account_ ? (0, accounts_1.parseAccount)(account_) : undefined;
|
|
18
|
+
const callData = await account?.encodeCalls(parameters?.calls);
|
|
19
|
+
const sender = await account?.getAddress();
|
|
20
|
+
const nonce = await account?.getNonce();
|
|
21
|
+
const factoryArgs = await account?.getFactoryArgs();
|
|
22
|
+
const request = {
|
|
23
|
+
sender,
|
|
24
|
+
callData,
|
|
25
|
+
nonce,
|
|
26
|
+
...factoryArgs,
|
|
27
|
+
...parameters,
|
|
28
|
+
...tenderlySimulation_1.DUMMY_SIMULATION_GAS
|
|
29
|
+
};
|
|
30
|
+
const signature = (parameters.signature ||
|
|
31
|
+
(await account?.signUserOperation(request)));
|
|
32
|
+
const userOpWithSignature = { ...request, signature };
|
|
33
|
+
const packed = (0, account_abstraction_1.toPackedUserOperation)(userOpWithSignature);
|
|
34
|
+
console.log("Packed userOp:\n", JSON.stringify([(0, deepHexlify_1.deepHexlify)(packed)], null, 2));
|
|
35
|
+
const rpcParameters = (0, account_abstraction_1.formatUserOperationRequest)(userOpWithSignature);
|
|
36
|
+
console.log("Bundler userOp:", rpcParameters);
|
|
37
|
+
const tenderlyUrl = (0, tenderlySimulation_1.tenderlySimulation)(rpcParameters, chainId);
|
|
38
|
+
console.log({ tenderlyUrl });
|
|
39
|
+
try {
|
|
40
|
+
const hash = await client.request({
|
|
41
|
+
method: "eth_sendUserOperation",
|
|
42
|
+
params: [
|
|
43
|
+
rpcParameters,
|
|
44
|
+
(entryPointAddress ?? account?.entryPoint.address)
|
|
45
|
+
]
|
|
46
|
+
}, { retryCount: 0 });
|
|
47
|
+
console.log("User Operation Hash:", hash);
|
|
48
|
+
return hash;
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
if (error?.details) {
|
|
52
|
+
const aaError = await (0, getAAError_1.getAAError)(error?.details);
|
|
53
|
+
console.log({ aaError });
|
|
54
|
+
}
|
|
55
|
+
const calls = parameters.calls;
|
|
56
|
+
throw (0, account_abstraction_1.getUserOperationError)(error, {
|
|
57
|
+
...request,
|
|
58
|
+
...(calls ? { calls } : {}),
|
|
59
|
+
signature
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
if (error.metaMessages) {
|
|
65
|
+
try {
|
|
66
|
+
const messageJson = (0, Utils_1.parseRequestArguments)(error.metaMessages);
|
|
67
|
+
const tenderlyUrl = (0, tenderlySimulation_1.tenderlySimulation)(messageJson);
|
|
68
|
+
console.log({ tenderlyUrl });
|
|
69
|
+
}
|
|
70
|
+
catch (error) { }
|
|
71
|
+
}
|
|
72
|
+
throw error;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=debugUserOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debugUserOperation.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/debugUserOperation.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.smartAccountCalls = void 0;
|
|
4
|
+
exports.smartAccountActions = smartAccountActions;
|
|
5
|
+
const debugUserOperation_1 = require("./debugUserOperation.js");
|
|
6
|
+
const prepareTokenPaymasterUserOp_1 = require("./prepareTokenPaymasterUserOp.js");
|
|
7
|
+
const prepareUserOperationWithoutSignature_1 = require("./prepareUserOperationWithoutSignature.js");
|
|
8
|
+
const sendTokenPaymasterUserOp_1 = require("./sendTokenPaymasterUserOp.js");
|
|
9
|
+
const sendTransaction_1 = require("./sendTransaction.js");
|
|
10
|
+
const signMessage_1 = require("./signMessage.js");
|
|
11
|
+
const signTypedData_1 = require("./signTypedData.js");
|
|
12
|
+
const upgradeSmartAccount_1 = require("./upgradeSmartAccount.js");
|
|
13
|
+
const waitForTransactionReceipt_1 = require("./waitForTransactionReceipt.js");
|
|
14
|
+
const writeContract_1 = require("./writeContract.js");
|
|
15
|
+
function smartAccountActions() {
|
|
16
|
+
return (client) => ({
|
|
17
|
+
sendTokenPaymasterUserOp: (args) => (0, sendTokenPaymasterUserOp_1.sendTokenPaymasterUserOp)(client, args),
|
|
18
|
+
prepareTokenPaymasterUserOp: (args) => (0, prepareTokenPaymasterUserOp_1.prepareTokenPaymasterUserOp)(client, args),
|
|
19
|
+
sendTransaction: (args) => (0, sendTransaction_1.sendTransaction)(client, args),
|
|
20
|
+
signMessage: (args) => (0, signMessage_1.signMessage)(client, args),
|
|
21
|
+
signTypedData: (args) => (0, signTypedData_1.signTypedData)(client, args),
|
|
22
|
+
writeContract: (args) => (0, writeContract_1.writeContract)(client, args),
|
|
23
|
+
waitForTransactionReceipt: (args) => (0, waitForTransactionReceipt_1.waitForTransactionReceipt)(client, args),
|
|
24
|
+
debugUserOperation: (args) => (0, debugUserOperation_1.debugUserOperation)(client, args),
|
|
25
|
+
prepareUserOperation: (args) => (0, prepareUserOperationWithoutSignature_1.prepareUserOperationWithoutSignature)(client, args),
|
|
26
|
+
upgradeSmartAccount: (args) => (0, upgradeSmartAccount_1.upgradeSmartAccount)(client, args)
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
exports.smartAccountCalls = {
|
|
30
|
+
toUpgradeSmartAccountCalls: upgradeSmartAccount_1.toUpgradeSmartAccountCalls
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/index.ts"],"names":[],"mappings":";;;AA6ZA,kDAqBC;AA7ZD,6DAG6B;AAE7B,+EAGsC;AACtC,iGAA6F;AAC7F,yEAGmC;AACnC,uDAAmD;AACnD,+CAA2C;AAC3C,mDAA+C;AAC/C,+DAI8B;AAC9B,2EAAuE;AACvE,mDAA+C;AAiX/C,SAAgB,mBAAmB;IACjC,OAAO,CAIL,MAAgD,EACJ,EAAE,CAAC,CAAC;QAChD,wBAAwB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,mDAAwB,EAAC,MAAM,EAAE,IAAI,CAAC;QAC1E,2BAA2B,EAAE,CAAC,IAAI,EAAE,EAAE,CACpC,IAAA,yDAA2B,EAAC,MAAM,EAAE,IAAI,CAAC;QAC3C,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,iCAAe,EAAC,MAAM,EAAE,IAAe,CAAC;QACnE,WAAW,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,yBAAW,EAAC,MAAM,EAAE,IAAI,CAAC;QAChD,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,6BAAa,EAAC,MAAM,EAAE,IAAI,CAAC;QACpD,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,6BAAa,EAAC,MAAM,EAAE,IAAI,CAAC;QACpD,yBAAyB,EAAE,CAAC,IAAI,EAAE,EAAE,CAClC,IAAA,qDAAyB,EAAC,MAAM,EAAE,IAAI,CAAC;QACzC,kBAAkB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,uCAAkB,EAAC,MAAM,EAAE,IAAI,CAAC;QAC9D,oBAAoB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC7B,IAAA,2EAAoC,EAAC,MAAM,EAAE,IAAI,CAAC;QACpD,mBAAmB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,yCAAmB,EAAC,MAAM,EAAE,IAAI,CAAC;KACjE,CAAC,CAAA;AACJ,CAAC;AAEY,QAAA,iBAAiB,GAAG;IAC/B,0BAA0B,EAA1B,gDAA0B;CACT,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.prepareTokenPaymasterUserOp = prepareTokenPaymasterUserOp;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const viem_2 = require("viem");
|
|
6
|
+
const utils_1 = require("viem/utils");
|
|
7
|
+
const Constants_1 = require("../../../account/utils/Constants.js");
|
|
8
|
+
const prepareUserOperationWithoutSignature_1 = require("./prepareUserOperationWithoutSignature.js");
|
|
9
|
+
async function prepareTokenPaymasterUserOp(client, args) {
|
|
10
|
+
const { calls, customApprovalAmount, feeTokenAddress } = args;
|
|
11
|
+
const userOp = await (0, utils_1.getAction)(client, prepareUserOperationWithoutSignature_1.prepareUserOperationWithoutSignature, "prepareUserOperation")({
|
|
12
|
+
calls: [
|
|
13
|
+
{
|
|
14
|
+
to: feeTokenAddress,
|
|
15
|
+
data: (0, viem_2.encodeFunctionData)({
|
|
16
|
+
functionName: "approve",
|
|
17
|
+
abi: viem_1.erc20Abi,
|
|
18
|
+
args: [Constants_1.STARTALE_TOKEN_PAYMASTER, customApprovalAmount ?? viem_1.maxUint256]
|
|
19
|
+
}),
|
|
20
|
+
value: BigInt(0)
|
|
21
|
+
},
|
|
22
|
+
...calls
|
|
23
|
+
],
|
|
24
|
+
account: client.account
|
|
25
|
+
});
|
|
26
|
+
const partialUserOp = {
|
|
27
|
+
...userOp,
|
|
28
|
+
signature: undefined
|
|
29
|
+
};
|
|
30
|
+
return partialUserOp;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=prepareTokenPaymasterUserOp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareTokenPaymasterUserOp.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/prepareTokenPaymasterUserOp.ts"],"names":[],"mappings":";;AAiEA,kEAmCC;AApGD,+BAQa;AACb,+BAAyC;AAEzC,sCAAsC;AACtC,gEAA2E;AAC3E,iGAA6F;AAoDtF,KAAK,UAAU,2BAA2B,CAI/C,MAAyC,EACzC,IAA2C;IAE3C,MAAM,EAAE,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,GAAG,IAAI,CAAA;IAE7D,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAS,EAC5B,MAAM,EACN,2EAAoC,EACpC,sBAAsB,CACvB,CAAC;QACA,KAAK,EAAE;YACL;gBACE,EAAE,EAAE,eAAe;gBACnB,IAAI,EAAE,IAAA,yBAAkB,EAAC;oBACvB,YAAY,EAAE,SAAS;oBACvB,GAAG,EAAE,eAAQ;oBACb,IAAI,EAAE,CAAC,oCAAwB,EAAE,oBAAoB,IAAI,iBAAU,CAAC;iBACrE,CAAC;gBACF,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;aACjB;YACD,GAAG,KAAK;SACT;QACD,OAAO,EAAE,MAAM,CAAC,OAAuB;KACxC,CAAC,CAAA;IAEF,MAAM,aAAa,GAAG;QACpB,GAAG,MAAM;QACT,SAAS,EAAE,SAAS;KACrB,CAAA;IAED,OAAO,aAAa,CAAA;AACtB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.prepareUserOperationWithoutSignature = prepareUserOperationWithoutSignature;
|
|
4
|
+
const account_abstraction_1 = require("viem/account-abstraction");
|
|
5
|
+
const utils_1 = require("viem/utils");
|
|
6
|
+
const Utils_1 = require("../../../account/utils/Utils.js");
|
|
7
|
+
const gasFields = [
|
|
8
|
+
"preVerificationGas",
|
|
9
|
+
"verificationGasLimit",
|
|
10
|
+
"callGasLimit",
|
|
11
|
+
"maxFeePerGas",
|
|
12
|
+
"maxPriorityFeePerGas",
|
|
13
|
+
"paymasterVerificationGasLimit",
|
|
14
|
+
"paymasterPostOpGasLimit"
|
|
15
|
+
];
|
|
16
|
+
async function prepareUserOperationWithoutSignature(client, parameters) {
|
|
17
|
+
const { gasBuffer, ...args } = parameters;
|
|
18
|
+
let userOp = await (0, utils_1.getAction)(client, account_abstraction_1.prepareUserOperation, "prepareUserOperation")(args);
|
|
19
|
+
if (gasBuffer) {
|
|
20
|
+
const { fields, factor } = gasBuffer;
|
|
21
|
+
const adjustedGasEstimates = gasFields.reduce((adjustedValues, field) => {
|
|
22
|
+
if (fields.includes(field)) {
|
|
23
|
+
adjustedValues[field] = (0, Utils_1.safeMultiplier)(userOp[field], factor);
|
|
24
|
+
}
|
|
25
|
+
return adjustedValues;
|
|
26
|
+
}, {});
|
|
27
|
+
userOp = {
|
|
28
|
+
...userOp,
|
|
29
|
+
...adjustedGasEstimates
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
const { signature, ...userOpWithoutSignature } = userOp;
|
|
33
|
+
return userOpWithoutSignature;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=prepareUserOperationWithoutSignature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareUserOperationWithoutSignature.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/prepareUserOperationWithoutSignature.ts"],"names":[],"mappings":";;AAmCA,oFAoDC;AAvFD,kEAA+D;AAS/D,sCAAsC;AACtC,wDAA6D;AAG7D,MAAM,SAAS,GAAG;IAChB,oBAAoB;IACpB,sBAAsB;IACtB,cAAc;IACd,cAAc;IACd,sBAAsB;IACtB,+BAA+B;IAC/B,yBAAyB;CACjB,CAAA;AAcH,KAAK,UAAU,oCAAoC,CAUxD,MAAqD,EACrD,UAC0E;IAO1E,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,UAAU,CAAA;IAEzC,IAAI,MAAM,GAAG,MAAM,IAAA,iBAAS,EAC1B,MAAM,EACN,0CAAoB,EACpB,sBAAsB,CACvB,CAAC,IAAe,CAAC,CAAA;IAElB,IAAI,SAAS,EAAE,CAAC;QAEd,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;QACpC,MAAM,oBAAoB,GAAG,SAAS,CAAC,MAAM,CAC3C,CAAC,cAAc,EAAE,KAAK,EAAE,EAAE;YACxB,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC3B,cAAc,CAAC,KAAK,CAAC,GAAG,IAAA,sBAAc,EAAC,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAA;YAC/D,CAAC;YACD,OAAO,cAAc,CAAA;QACvB,CAAC,EACD,EAAgD,CACjD,CAAA;QAGD,MAAM,GAAG;YACP,GAAG,MAAM;YACT,GAAG,oBAAoB;SACxB,CAAA;IACH,CAAC;IAGD,MAAM,EAAE,SAAS,EAAE,GAAG,sBAAsB,EAAE,GAAG,MAAM,CAAA;IAGvD,OAAO,sBAAsB,CAAA;AAC/B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendTokenPaymasterUserOp = sendTokenPaymasterUserOp;
|
|
4
|
+
const account_abstraction_1 = require("viem/account-abstraction");
|
|
5
|
+
const utils_1 = require("viem/utils");
|
|
6
|
+
const prepareTokenPaymasterUserOp_1 = require("./prepareTokenPaymasterUserOp.js");
|
|
7
|
+
async function sendTokenPaymasterUserOp(client, args) {
|
|
8
|
+
const { calls, feeTokenAddress, customApprovalAmount } = args;
|
|
9
|
+
const userOp = await (0, utils_1.getAction)(client, prepareTokenPaymasterUserOp_1.prepareTokenPaymasterUserOp, "prepareTokenPaymasterUserOperation")({
|
|
10
|
+
calls,
|
|
11
|
+
feeTokenAddress,
|
|
12
|
+
customApprovalAmount
|
|
13
|
+
});
|
|
14
|
+
const partialUserOp = {
|
|
15
|
+
...userOp,
|
|
16
|
+
signature: undefined
|
|
17
|
+
};
|
|
18
|
+
const userOpHash = await (0, utils_1.getAction)(client, account_abstraction_1.sendUserOperation, "sendUserOperation")(partialUserOp);
|
|
19
|
+
return userOpHash;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=sendTokenPaymasterUserOp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTokenPaymasterUserOp.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/sendTokenPaymasterUserOp.ts"],"names":[],"mappings":";;AAwCA,4DAgCC;AArED,kEAA+E;AAC/E,sCAAsC;AACtC,+EAGsC;AAgC/B,KAAK,UAAU,wBAAwB,CAI5C,MAAgD,EAChD,IAAwC;IAExC,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAA;IAE7D,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAS,EAC5B,MAAM,EACN,yDAA2B,EAC3B,oCAAoC,CACrC,CAAC;QACA,KAAK;QAEL,eAAe;QACf,oBAAoB;KACrB,CAAC,CAAA;IAEF,MAAM,aAAa,GAAG;QACpB,GAAG,MAAM;QACT,SAAS,EAAE,SAAS;KACrB,CAAA;IAED,MAAM,UAAU,GAAG,MAAM,IAAA,iBAAS,EAChC,MAAM,EACN,uCAAiB,EACjB,mBAAmB,CACpB,CAAC,aAAa,CAAC,CAAA;IAEhB,OAAO,UAAU,CAAA;AACnB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendTransaction = sendTransaction;
|
|
4
|
+
const account_abstraction_1 = require("viem/account-abstraction");
|
|
5
|
+
const utils_1 = require("viem/utils");
|
|
6
|
+
const AccountNotFound_1 = require("../../../account/utils/AccountNotFound.js");
|
|
7
|
+
async function sendTransaction(client, args) {
|
|
8
|
+
let userOpHash;
|
|
9
|
+
if ("to" in args) {
|
|
10
|
+
const { account: account_ = client.account, data, maxFeePerGas, maxPriorityFeePerGas, to, value, nonce } = args;
|
|
11
|
+
if (!account_) {
|
|
12
|
+
throw new AccountNotFound_1.AccountNotFoundError({
|
|
13
|
+
docsPath: "/startale-client/methods#sendtransaction"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const account = (0, utils_1.parseAccount)(account_);
|
|
17
|
+
if (!to)
|
|
18
|
+
throw new Error("Missing to address");
|
|
19
|
+
userOpHash = await (0, utils_1.getAction)(client, account_abstraction_1.sendUserOperation, "sendUserOperation")({
|
|
20
|
+
calls: [
|
|
21
|
+
{
|
|
22
|
+
to,
|
|
23
|
+
value: value || BigInt(0),
|
|
24
|
+
data: data || "0x"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
account,
|
|
28
|
+
maxFeePerGas,
|
|
29
|
+
maxPriorityFeePerGas,
|
|
30
|
+
nonce: nonce ? BigInt(nonce) : undefined
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
userOpHash = await (0, utils_1.getAction)(client, account_abstraction_1.sendUserOperation, "sendUserOperation")({ ...args });
|
|
35
|
+
}
|
|
36
|
+
const userOperationReceipt = await (0, utils_1.getAction)(client, account_abstraction_1.waitForUserOperationReceipt, "waitForUserOperationReceipt")({
|
|
37
|
+
hash: userOpHash
|
|
38
|
+
});
|
|
39
|
+
return userOperationReceipt?.receipt.transactionHash;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=sendTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendTransaction.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/sendTransaction.ts"],"names":[],"mappings":";;AAmCA,0CAqEC;AAjGD,kEAKiC;AACjC,sCAAoD;AACpD,4EAA6E;AAqBtE,KAAK,UAAU,eAAe,CAOnC,MAAyC,EACzC,IAEgE;IAEhE,IAAI,UAAgB,CAAA;IAEpB,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACjB,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,IAAI,EACJ,YAAY,EACZ,oBAAoB,EACpB,EAAE,EACF,KAAK,EACL,KAAK,EACN,GAAG,IAAI,CAAA;QAER,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,sCAAoB,CAAC;gBAC7B,QAAQ,EAAE,0CAA0C;aACrD,CAAC,CAAA;QACJ,CAAC;QAED,MAAM,OAAO,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAiB,CAAA;QAEtD,IAAI,CAAC,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAA;QAE9C,UAAU,GAAG,MAAM,IAAA,iBAAS,EAC1B,MAAM,EACN,uCAAiB,EACjB,mBAAmB,CACpB,CAAC;YACA,KAAK,EAAE;gBACL;oBACE,EAAE;oBACF,KAAK,EAAE,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC;oBACzB,IAAI,EAAE,IAAI,IAAI,IAAI;iBACnB;aACF;YACD,OAAO;YACP,YAAY;YACZ,oBAAoB;YACpB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;SACzC,CAAC,CAAA;IACJ,CAAC;SAAM,CAAC;QACN,UAAU,GAAG,MAAM,IAAA,iBAAS,EAC1B,MAAM,EACN,uCAAiB,EACjB,mBAAmB,CACpB,CAAC,EAAE,GAAG,IAAI,EAA2D,CAAC,CAAA;IACzE,CAAC;IAED,MAAM,oBAAoB,GAAG,MAAM,IAAA,iBAAS,EAC1C,MAAM,EACN,iDAA2B,EAC3B,6BAA6B,CAC9B,CAAC;QACA,IAAI,EAAE,UAAU;KACjB,CAAC,CAAA;IAEF,OAAO,oBAAoB,EAAE,OAAO,CAAC,eAAe,CAAA;AACtD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.signMessage = signMessage;
|
|
4
|
+
const utils_1 = require("viem/utils");
|
|
5
|
+
const AccountNotFound_1 = require("../../../account/utils/AccountNotFound.js");
|
|
6
|
+
async function signMessage(client, { account: account_ = client.account, message }) {
|
|
7
|
+
if (!account_)
|
|
8
|
+
throw new AccountNotFound_1.AccountNotFoundError({
|
|
9
|
+
docsPath: "/docs/actions/wallet/signMessage"
|
|
10
|
+
});
|
|
11
|
+
const account = (0, utils_1.parseAccount)(account_);
|
|
12
|
+
return account.signMessage({ message });
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=signMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/signMessage.ts"],"names":[],"mappings":";;AA8BA,kCAeC;AArCD,sCAAyC;AACzC,4EAA6E;AAqBtE,KAAK,UAAU,WAAW,CAC/B,MAAsD,EACtD,EACE,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,OAAO,EACyB;IAElC,IAAI,CAAC,QAAQ;QACX,MAAM,IAAI,sCAAoB,CAAC;YAC7B,QAAQ,EAAE,kCAAkC;SAC7C,CAAC,CAAA;IAEJ,MAAM,OAAO,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAiB,CAAA;IAEtD,OAAO,OAAO,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;AACzC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.signTypedData = signTypedData;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const utils_1 = require("viem/utils");
|
|
6
|
+
const AccountNotFound_1 = require("../../../account/utils/AccountNotFound.js");
|
|
7
|
+
async function signTypedData(client, { account: account_ = client.account, domain, message, primaryType, types: types_ }) {
|
|
8
|
+
if (!account_) {
|
|
9
|
+
throw new AccountNotFound_1.AccountNotFoundError({
|
|
10
|
+
docsPath: "/docs/actions/wallet/signMessage"
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
const account = (0, utils_1.parseAccount)(account_);
|
|
14
|
+
const types = {
|
|
15
|
+
EIP712Domain: (0, viem_1.getTypesForEIP712Domain)({ domain }),
|
|
16
|
+
...types_
|
|
17
|
+
};
|
|
18
|
+
(0, viem_1.validateTypedData)({
|
|
19
|
+
domain,
|
|
20
|
+
message,
|
|
21
|
+
primaryType,
|
|
22
|
+
types
|
|
23
|
+
});
|
|
24
|
+
return account.signTypedData({
|
|
25
|
+
domain,
|
|
26
|
+
primaryType,
|
|
27
|
+
types,
|
|
28
|
+
message
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=signTypedData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/signTypedData.ts"],"names":[],"mappings":";;AAsEA,sCA0CC;AAhHD,+BAWa;AAEb,sCAAyC;AACzC,4EAA6E;AAwDtE,KAAK,UAAU,aAAa,CAKjC,MAAsD,EACtD,EACE,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,MAAM,EACN,OAAO,EACP,WAAW,EACX,KAAK,EAAE,MAAM,EAC+C;IAE9D,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,sCAAoB,CAAC;YAC7B,QAAQ,EAAE,kCAAkC;SAC7C,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAiB,CAAA;IAEtD,MAAM,KAAK,GAAG;QACZ,YAAY,EAAE,IAAA,8BAAuB,EAAC,EAAE,MAAM,EAE7C,CAAC;QACF,GAAI,MAAqB;KAC1B,CAAA;IAED,IAAA,wBAAiB,EAAC;QAChB,MAAM;QACN,OAAO;QACP,WAAW;QACX,KAAK;KACiB,CAAC,CAAA;IAEzB,OAAO,OAAO,CAAC,aAAa,CAAC;QAC3B,MAAM;QACN,WAAW;QACX,KAAK;QACL,OAAO;KACe,CAAC,CAAA;AAC3B,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toUpgradeSmartAccountCalls = void 0;
|
|
4
|
+
exports.upgradeSmartAccount = upgradeSmartAccount;
|
|
5
|
+
const viem_1 = require("viem");
|
|
6
|
+
const account_abstraction_1 = require("viem/account-abstraction");
|
|
7
|
+
const utils_1 = require("viem/utils");
|
|
8
|
+
const AccountNotFound_1 = require("../../../account/utils/AccountNotFound.js");
|
|
9
|
+
const constants_1 = require("../../../constants/index.js");
|
|
10
|
+
async function upgradeSmartAccount(client, parameters) {
|
|
11
|
+
const { account: account_ = client.account, maxFeePerGas, maxPriorityFeePerGas, nonce, implementationAddress = constants_1.ACCOUNT_IMPLEMENTATION_ADDRESS, initData = "0x", ...rest } = parameters ?? {};
|
|
12
|
+
if (!account_) {
|
|
13
|
+
throw new AccountNotFound_1.AccountNotFoundError({
|
|
14
|
+
docsPath: "/startale-client/methods#upgradeSmartAccount"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const account = (0, utils_1.parseAccount)(account_);
|
|
18
|
+
const calls = await (0, exports.toUpgradeSmartAccountCalls)(account, {
|
|
19
|
+
implementationAddress,
|
|
20
|
+
initData
|
|
21
|
+
});
|
|
22
|
+
const sendUserOperationParams = {
|
|
23
|
+
calls,
|
|
24
|
+
maxFeePerGas,
|
|
25
|
+
maxPriorityFeePerGas,
|
|
26
|
+
nonce,
|
|
27
|
+
account,
|
|
28
|
+
...rest
|
|
29
|
+
};
|
|
30
|
+
return (0, utils_1.getAction)(client, account_abstraction_1.sendUserOperation, "sendUserOperation")(sendUserOperationParams);
|
|
31
|
+
}
|
|
32
|
+
const toUpgradeSmartAccountCalls = async (account, { implementationAddress, initData }) => [
|
|
33
|
+
{
|
|
34
|
+
to: account.address,
|
|
35
|
+
value: BigInt(0),
|
|
36
|
+
data: (0, viem_1.encodeFunctionData)({
|
|
37
|
+
abi: [
|
|
38
|
+
{
|
|
39
|
+
name: "upgradeToAndCall",
|
|
40
|
+
type: "function",
|
|
41
|
+
stateMutability: "payable",
|
|
42
|
+
inputs: [
|
|
43
|
+
{
|
|
44
|
+
type: "address",
|
|
45
|
+
name: "newImplementation"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "bytes",
|
|
49
|
+
name: "data"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
outputs: []
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
functionName: "upgradeToAndCall",
|
|
56
|
+
args: [(0, viem_1.getAddress)(implementationAddress), initData]
|
|
57
|
+
})
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
exports.toUpgradeSmartAccountCalls = toUpgradeSmartAccountCalls;
|
|
61
|
+
//# sourceMappingURL=upgradeSmartAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upgradeSmartAccount.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/upgradeSmartAccount.ts"],"names":[],"mappings":";;;AAmDA,kDA0CC;AA7FD,+BAQa;AACb,kEAIiC;AACjC,sCAAoD;AAEpD,4EAA6E;AAC7E,kDAAmE;AAkC5D,KAAK,UAAU,mBAAmB,CAGvC,MAA2D,EAC3D,UAAyD;IAEzD,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,qBAAqB,GAAG,0CAA8B,EACtD,QAAQ,GAAG,IAAI,EACf,GAAG,IAAI,EACR,GAAG,UAAU,IAAI,EAAE,CAAA;IAEpB,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,sCAAoB,CAAC;YAC7B,QAAQ,EAAE,8CAA8C;SACzD,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAwB,CAAA;IAE7D,MAAM,KAAK,GAAG,MAAM,IAAA,kCAA0B,EAAC,OAAO,EAAE;QACtD,qBAAqB;QACrB,QAAQ;KACT,CAAC,CAAA;IACF,MAAM,uBAAuB,GAAG;QAC9B,KAAK;QACL,YAAY;QACZ,oBAAoB;QACpB,KAAK;QACL,OAAO;QACP,GAAG,IAAI;KACR,CAAA;IAED,OAAO,IAAA,iBAAS,EACd,MAAM,EACN,uCAAiB,EACjB,mBAAmB,CACpB,CAAC,uBAAuB,CAAC,CAAA;AAC5B,CAAC;AAEM,MAAM,0BAA0B,GAAG,KAAK,EAC7C,OAA4B,EAC5B,EACE,qBAAqB,EACrB,QAAQ,EACsC,EAC/B,EAAE,CAAC;IACpB;QACE,EAAE,EAAE,OAAO,CAAC,OAAO;QACnB,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;QAChB,IAAI,EAAE,IAAA,yBAAkB,EAAC;YACvB,GAAG,EAAE;gBACH;oBACE,IAAI,EAAE,kBAAkB;oBACxB,IAAI,EAAE,UAAU;oBAChB,eAAe,EAAE,SAAS;oBAC1B,MAAM,EAAE;wBACN;4BACE,IAAI,EAAE,SAAS;4BACf,IAAI,EAAE,mBAAmB;yBAC1B;wBACD;4BACE,IAAI,EAAE,OAAO;4BACb,IAAI,EAAE,MAAM;yBACb;qBACF;oBACD,OAAO,EAAE,EAAE;iBACZ;aACF;YACD,YAAY,EAAE,kBAAkB;YAChC,IAAI,EAAE,CAAC,IAAA,iBAAU,EAAC,qBAAqB,CAAC,EAAE,QAAQ,CAAC;SACpD,CAAC;KACH;CACF,CAAA;AAjCY,QAAA,0BAA0B,8BAiCtC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitForTransactionReceipt = waitForTransactionReceipt;
|
|
4
|
+
const utils_1 = require("viem/utils");
|
|
5
|
+
const AccountNotFound_1 = require("../../../account/utils/AccountNotFound.js");
|
|
6
|
+
async function waitForTransactionReceipt(client, { account: account_ = client.account, hash }) {
|
|
7
|
+
if (!account_)
|
|
8
|
+
throw new AccountNotFound_1.AccountNotFoundError({
|
|
9
|
+
docsPath: "/docs/actions/wallet/waitForTransactionReceipt"
|
|
10
|
+
});
|
|
11
|
+
const account = (0, utils_1.parseAccount)(account_);
|
|
12
|
+
const accountClient = account?.client;
|
|
13
|
+
if (!accountClient)
|
|
14
|
+
throw new Error("Requires a Public Client");
|
|
15
|
+
return accountClient.waitForTransactionReceipt({ hash });
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=waitForTransactionReceipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForTransactionReceipt.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/waitForTransactionReceipt.ts"],"names":[],"mappings":";;AAYA,8DAoBC;AAvBD,sCAAyC;AACzC,4EAA6E;AAEtE,KAAK,UAAU,yBAAyB,CAG7C,MAAsD,EACtD,EACE,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,IAAI,EACyD;IAE/D,IAAI,CAAC,QAAQ;QACX,MAAM,IAAI,sCAAoB,CAAC;YAC7B,QAAQ,EAAE,gDAAgD;SAC3D,CAAC,CAAA;IAEJ,MAAM,OAAO,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAiB,CAAA;IACtD,MAAM,aAAa,GAAG,OAAO,EAAE,MAAsB,CAAA;IAErD,IAAI,CAAC,aAAa;QAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;IAE/D,OAAO,aAAa,CAAC,yBAAyB,CAAC,EAAE,IAAI,EAAE,CAAC,CAAA;AAC1D,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.writeContract = writeContract;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const utils_1 = require("viem/utils");
|
|
6
|
+
const sendTransaction_1 = require("./sendTransaction.js");
|
|
7
|
+
async function writeContract(client, { abi, address, args, dataSuffix, functionName, ...request }) {
|
|
8
|
+
const data = (0, viem_1.encodeFunctionData)({
|
|
9
|
+
abi,
|
|
10
|
+
args,
|
|
11
|
+
functionName
|
|
12
|
+
});
|
|
13
|
+
const hash = await (0, utils_1.getAction)(client, (sendTransaction_1.sendTransaction), "sendTransaction")({
|
|
14
|
+
data: `${data}${dataSuffix ? dataSuffix.replace("0x", "") : ""}`,
|
|
15
|
+
to: address,
|
|
16
|
+
...request
|
|
17
|
+
});
|
|
18
|
+
return hash;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=writeContract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writeContract.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/smartAccount/writeContract.ts"],"names":[],"mappings":";;AAwCA,sCAoDC;AA5FD,+BAYa;AAEb,sCAAsC;AACtC,uDAAmD;AAyB5C,KAAK,UAAU,aAAa,CAejC,MAA2C,EAC3C,EACE,GAAG,EACH,OAAO,EACP,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,GAAG,OAAO,EAQX;IAED,MAAM,IAAI,GAAG,IAAA,yBAAkB,EAAsB;QACnD,GAAG;QACH,IAAI;QACJ,YAAY;KACwC,CAAC,CAAA;IAEvD,MAAM,IAAI,GAAG,MAAM,IAAA,iBAAS,EAC1B,MAAM,EACN,CAAA,iCAA+C,CAAA,EAC/C,iBAAiB,CAClB,CAAC;QACA,IAAI,EAAE,GAAG,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;QAChE,EAAE,EAAE,OAAO;QACX,GAAG,OAAO;KAKX,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSupportedTokens = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const getSupportedTokens = async (client) => {
|
|
6
|
+
const userOp = await client.prepareUserOperation({
|
|
7
|
+
calls: [
|
|
8
|
+
{
|
|
9
|
+
to: client.account.address,
|
|
10
|
+
data: "0x",
|
|
11
|
+
value: 0n
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
});
|
|
15
|
+
const paymaster = client.paymaster;
|
|
16
|
+
if (!client?.chain?.id)
|
|
17
|
+
throw new Error("Chain ID is required");
|
|
18
|
+
const quote = await paymaster.getTokenPaymasterQuotes({
|
|
19
|
+
userOp,
|
|
20
|
+
chainId: (0, viem_1.toHex)(client.chain.id)
|
|
21
|
+
});
|
|
22
|
+
return quote.feeQuotes;
|
|
23
|
+
};
|
|
24
|
+
exports.getSupportedTokens = getSupportedTokens;
|
|
25
|
+
//# sourceMappingURL=getSupportedTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSupportedTokens.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/tokenPaymaster/getSupportedTokens.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAiBrB,MAAM,kBAAkB,GAAG,KAAK,EACrC,MAA6B,EACR,EAAE;IACvB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC;QAC/C,KAAK,EAAE;YACL;gBACE,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO;gBAC1B,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,EAAE;aACV;SACF;KACF,CAAC,CAAA;IACF,MAAM,SAAS,GAAG,MAAM,CAAC,SAA+B,CAAA;IACxD,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAA;IAC/D,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,uBAAuB,CAAC;QACpD,MAAM;QACN,OAAO,EAAE,IAAA,YAAK,EAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;KAGhC,CAAC,CAAA;IAEF,OAAO,KAAK,CAAC,SAAS,CAAA;AACxB,CAAC,CAAA;AAtBY,QAAA,kBAAkB,sBAsB9B"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTokenPaymasterQuotes = void 0;
|
|
4
|
+
const viem_1 = require("viem");
|
|
5
|
+
const constants_1 = require("../../../constants/index.js");
|
|
6
|
+
const normalizeAuthorization = (authorization) => {
|
|
7
|
+
if (!authorization || typeof authorization !== 'object') {
|
|
8
|
+
return authorization;
|
|
9
|
+
}
|
|
10
|
+
const normalizedAuth = { ...authorization };
|
|
11
|
+
if ('yParity' in normalizedAuth && normalizedAuth.yParity !== undefined) {
|
|
12
|
+
const yParity = normalizedAuth.yParity;
|
|
13
|
+
let yParityNumber;
|
|
14
|
+
if (typeof yParity === 'string') {
|
|
15
|
+
if (yParity.startsWith('0x')) {
|
|
16
|
+
yParityNumber = parseInt(yParity, 16);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
yParityNumber = parseInt(yParity, 10);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
yParityNumber = yParity;
|
|
24
|
+
}
|
|
25
|
+
const normalizedYParity = yParityNumber % 2 === 1 ? 1 : 0;
|
|
26
|
+
normalizedAuth.yParity = (0, viem_1.toHex)(normalizedYParity, { size: 1 });
|
|
27
|
+
}
|
|
28
|
+
if ('chainId' in normalizedAuth && normalizedAuth.chainId !== undefined) {
|
|
29
|
+
const chainId = normalizedAuth.chainId;
|
|
30
|
+
normalizedAuth.chainId = (0, viem_1.toHex)(chainId);
|
|
31
|
+
}
|
|
32
|
+
if ('nonce' in normalizedAuth && normalizedAuth.nonce !== undefined) {
|
|
33
|
+
const nonce = normalizedAuth.nonce;
|
|
34
|
+
normalizedAuth.nonce = (0, viem_1.toHex)(nonce);
|
|
35
|
+
}
|
|
36
|
+
return normalizedAuth;
|
|
37
|
+
};
|
|
38
|
+
const getTokenPaymasterQuotes = async (client, parameters) => {
|
|
39
|
+
const { userOp, chainId } = parameters;
|
|
40
|
+
const normalizedAuthorization = userOp.authorization
|
|
41
|
+
? normalizeAuthorization(userOp.authorization)
|
|
42
|
+
: undefined;
|
|
43
|
+
const quote = await client.request({
|
|
44
|
+
method: "pm_getFeeQuotes",
|
|
45
|
+
params: [
|
|
46
|
+
{
|
|
47
|
+
sender: userOp.sender,
|
|
48
|
+
nonce: (0, viem_1.toHex)(userOp.nonce),
|
|
49
|
+
factory: userOp.factory,
|
|
50
|
+
factoryData: userOp.factoryData,
|
|
51
|
+
callData: userOp.callData,
|
|
52
|
+
maxFeePerGas: userOp.maxFeePerGas.toString(),
|
|
53
|
+
maxPriorityFeePerGas: userOp.maxPriorityFeePerGas.toString(),
|
|
54
|
+
verificationGasLimit: (0, viem_1.toHex)(Number(userOp.verificationGasLimit)),
|
|
55
|
+
callGasLimit: (0, viem_1.toHex)(Number(userOp.callGasLimit)),
|
|
56
|
+
preVerificationGas: (0, viem_1.toHex)(Number(userOp.preVerificationGas)),
|
|
57
|
+
paymasterPostOpGasLimit: (0, viem_1.toHex)(Number(userOp.paymasterPostOpGasLimit ?? 0x0)),
|
|
58
|
+
paymasterVerificationGasLimit: (0, viem_1.toHex)(Number(userOp.paymasterVerificationGasLimit ?? 0x0)),
|
|
59
|
+
eip7702Auth: normalizedAuthorization
|
|
60
|
+
},
|
|
61
|
+
constants_1.ENTRY_POINT_ADDRESS,
|
|
62
|
+
chainId,
|
|
63
|
+
{
|
|
64
|
+
calculateGasLimits: true
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
});
|
|
68
|
+
return quote;
|
|
69
|
+
};
|
|
70
|
+
exports.getTokenPaymasterQuotes = getTokenPaymasterQuotes;
|
|
71
|
+
//# sourceMappingURL=getTokenPaymasterQuotes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTokenPaymasterQuotes.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/tokenPaymaster/getTokenPaymasterQuotes.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scsTokenPaymasterActions = void 0;
|
|
4
|
+
const getSupportedTokens_1 = require("./getSupportedTokens.js");
|
|
5
|
+
const getTokenPaymasterQuotes_1 = require("./getTokenPaymasterQuotes.js");
|
|
6
|
+
const scsTokenPaymasterActions = () => (client) => ({
|
|
7
|
+
getTokenPaymasterQuotes: async (parameters) => (0, getTokenPaymasterQuotes_1.getTokenPaymasterQuotes)(client, parameters),
|
|
8
|
+
getSupportedTokens: async (client) => (0, getSupportedTokens_1.getSupportedTokens)(client)
|
|
9
|
+
});
|
|
10
|
+
exports.scsTokenPaymasterActions = scsTokenPaymasterActions;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/tokenPaymaster/index.ts"],"names":[],"mappings":";;;AAEA,6DAAyD;AACzD,uEAKkC;AAiE3B,MAAM,wBAAwB,GACnC,GAAG,EAAE,CACL,CAAC,MAAuB,EAAyB,EAAE,CAAC,CAAC;IA6CnD,uBAAuB,EAAE,KAAK,EAC5B,UAA6C,EAC7C,EAAE,CAAC,IAAA,iDAAuB,EAAC,MAAM,EAAE,UAAU,CAAC;IAahD,kBAAkB,EAAE,KAAK,EAAE,MAA6B,EAAE,EAAE,CAC1D,IAAA,uCAAkB,EAAC,MAAM,CAAC;CAC7B,CAAC,CAAA;AAhES,QAAA,wBAAwB,4BAgEjC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./createSCSBundlerClient.js"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./createSCSPaymasterClient.js"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./createHttpClient.js"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./decorators/index.js"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|