@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,47 @@
|
|
|
1
|
+
import { parseErrorMessage } from "../account/utils/parseErrorMessage.js";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new Http client instance
|
|
4
|
+
* @param params - Configuration parameters for the client
|
|
5
|
+
* @returns A base Http client instance that can be extended with additional functionality
|
|
6
|
+
*/
|
|
7
|
+
export const createHttpClient = (url, apiKey) => {
|
|
8
|
+
const request = async (requesParams) => {
|
|
9
|
+
const { path, method = "POST", body, params } = requesParams;
|
|
10
|
+
const urlParams = params
|
|
11
|
+
? `?${Object.entries(params)
|
|
12
|
+
.reduce((searchParams, [key, value]) => {
|
|
13
|
+
searchParams.append(key, value);
|
|
14
|
+
return searchParams;
|
|
15
|
+
}, new URLSearchParams())
|
|
16
|
+
.toString()}`
|
|
17
|
+
: "";
|
|
18
|
+
const fullPath = `${url}/${path}${urlParams}`;
|
|
19
|
+
const result = await fetch(fullPath, {
|
|
20
|
+
method,
|
|
21
|
+
headers: {
|
|
22
|
+
"Content-Type": "application/json",
|
|
23
|
+
...(apiKey ? { "x-api-key": apiKey } : {})
|
|
24
|
+
},
|
|
25
|
+
...(body ? { body: JSON.stringify(body) } : {})
|
|
26
|
+
});
|
|
27
|
+
const json = (await result.json());
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
const error = json?.error ?? json ?? result?.statusText ?? result;
|
|
30
|
+
throw new Error(parseErrorMessage(error));
|
|
31
|
+
}
|
|
32
|
+
return json;
|
|
33
|
+
};
|
|
34
|
+
const client = { request };
|
|
35
|
+
function extend(base) {
|
|
36
|
+
return (extendFn) => {
|
|
37
|
+
const extended = extendFn(base);
|
|
38
|
+
for (const key in client)
|
|
39
|
+
delete extended[key];
|
|
40
|
+
const combined = { ...base, ...extended };
|
|
41
|
+
return Object.assign(combined, { extend: extend(combined) });
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return Object.assign(client, { extend: extend(client) });
|
|
45
|
+
};
|
|
46
|
+
export default createHttpClient;
|
|
47
|
+
//# sourceMappingURL=createHttpClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createHttpClient.js","sourceRoot":"","sources":["../../../src/sdk/clients/createHttpClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AAgDtE;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,GAAQ,EAAE,MAAe,EAAc,EAAE;IACxE,MAAM,OAAO,GAAG,KAAK,EAAK,YAA2B,EAAE,EAAE;QACvD,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,YAAY,CAAA;QAC5D,MAAM,SAAS,GAAG,MAAM;YACtB,CAAC,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;iBACvB,MAAM,CAAC,CAAC,YAAY,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;gBACrC,YAAY,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;gBAC/B,OAAO,YAAY,CAAA;YACrB,CAAC,EAAE,IAAI,eAAe,EAAE,CAAC;iBACxB,QAAQ,EAAE,EAAE;YACjB,CAAC,CAAC,EAAE,CAAA;QACN,MAAM,QAAQ,GAAG,GAAG,GAAG,IAAI,IAAI,GAAG,SAAS,EAAE,CAAA;QAC7C,MAAM,MAAM,GAAG,MAAM,KAAK,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AY,EAAE,CAAC,CAAA;AACrE,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { http } from "viem";
|
|
2
|
+
import { createBundlerClient, prepareUserOperation, sendUserOperation } from "viem/account-abstraction";
|
|
3
|
+
import { scsBundlerActions } from "./decorators/bundler/index.js";
|
|
4
|
+
import { getGasFeeValues } from "./decorators/bundler/getGasFeeValues.js";
|
|
5
|
+
import { erc7579Actions } from "./decorators/erc7579/index.js";
|
|
6
|
+
import { smartAccountActions } from "./decorators/smartAccount/index.js";
|
|
7
|
+
import { prepareTokenPaymasterUserOp } from "./decorators/smartAccount/prepareTokenPaymasterUserOp.js";
|
|
8
|
+
/**
|
|
9
|
+
* Creates SCS Bundler Client with a given Transport configured for a Chain.
|
|
10
|
+
*
|
|
11
|
+
* @param parameters - Configuration for the SCS Bundler Client
|
|
12
|
+
* @returns SCS Bundler Client
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* import { createSCSBundlerClient, http } from '@startale-scs/aa-sdk'
|
|
16
|
+
* import { mainnet } from 'viem/chains'
|
|
17
|
+
*
|
|
18
|
+
* const bundlerClient = createSCSBundlerClient({ chain: mainnet });
|
|
19
|
+
*/
|
|
20
|
+
export const createSCSBundlerClient = (parameters) => {
|
|
21
|
+
const { mock = false, transport, bundlerUrl, apiKey, paymaster, paymasterContext, userOperation, chain } = parameters;
|
|
22
|
+
if (!apiKey && !bundlerUrl && !transport && !chain) {
|
|
23
|
+
throw new Error("Cannot set determine a bundler url, please provide a chain.");
|
|
24
|
+
}
|
|
25
|
+
const defaultedTransport = transport
|
|
26
|
+
? transport
|
|
27
|
+
: bundlerUrl
|
|
28
|
+
? http(bundlerUrl)
|
|
29
|
+
: http(
|
|
30
|
+
// @ts-ignore: Type saftey provided by the if statement above
|
|
31
|
+
`https://soneium-minato.bundler.scs.startale.com?apikey=${apiKey ?? "admin"}`);
|
|
32
|
+
const defaultedPaymasterContext = paymaster ? paymasterContext : undefined;
|
|
33
|
+
const defaultedUserOperation = userOperation ?? {
|
|
34
|
+
estimateFeesPerGas: async () => {
|
|
35
|
+
return (await getGasFeeValues(bundler_)).fast;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
const bundler_ = createBundlerClient({
|
|
39
|
+
...parameters,
|
|
40
|
+
transport: defaultedTransport,
|
|
41
|
+
paymasterContext: defaultedPaymasterContext,
|
|
42
|
+
userOperation: defaultedUserOperation
|
|
43
|
+
})
|
|
44
|
+
.extend((client) => ({ ...client, mock }))
|
|
45
|
+
.extend((client) => ({
|
|
46
|
+
prepareUserOperation: async (args) => {
|
|
47
|
+
let _args = args;
|
|
48
|
+
if (client.account?.authorization) {
|
|
49
|
+
const authorization = args.authorization ||
|
|
50
|
+
(await client.account?.eip7702Authorization?.());
|
|
51
|
+
_args = {
|
|
52
|
+
...args,
|
|
53
|
+
authorization
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return await prepareUserOperation(client, _args);
|
|
57
|
+
}
|
|
58
|
+
}))
|
|
59
|
+
.extend((client) => ({
|
|
60
|
+
sendUserOperation: async (args) => {
|
|
61
|
+
let _args = args;
|
|
62
|
+
if (client.account?.authorization) {
|
|
63
|
+
const authorization = args.authorization ||
|
|
64
|
+
(await client.account?.eip7702Authorization?.());
|
|
65
|
+
_args = {
|
|
66
|
+
...args,
|
|
67
|
+
authorization
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return await sendUserOperation(client, _args);
|
|
71
|
+
}
|
|
72
|
+
}))
|
|
73
|
+
.extend((client) => ({
|
|
74
|
+
prepareTokenPaymasterUserOp: async (args) => {
|
|
75
|
+
let _args = args;
|
|
76
|
+
if (client.account?.authorization) {
|
|
77
|
+
const authorization = args.authorization ||
|
|
78
|
+
(await client.account?.eip7702Authorization?.());
|
|
79
|
+
_args = {
|
|
80
|
+
...args,
|
|
81
|
+
authorization
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
return await prepareTokenPaymasterUserOp(client, _args);
|
|
85
|
+
}
|
|
86
|
+
}))
|
|
87
|
+
.extend(scsBundlerActions())
|
|
88
|
+
.extend(erc7579Actions())
|
|
89
|
+
.extend(smartAccountActions());
|
|
90
|
+
return bundler_;
|
|
91
|
+
};
|
|
92
|
+
// Aliases for backwards compatibility
|
|
93
|
+
export const createSmartAccountClient = createSCSBundlerClient;
|
|
94
|
+
export const createStartaleAccountClient = createSmartAccountClient;
|
|
95
|
+
export const createStartaleSessionClient = createSmartAccountClient;
|
|
96
|
+
//# sourceMappingURL=createSCSBundlerClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSCSBundlerClient.js","sourceRoot":"","sources":["../../../src/sdk/clients/createSCSBundlerClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAQL,MAAM,MAAM,CAAA;AACb,OAAO,EAML,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EAAmB,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,EAAuB,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAEL,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,2BAA2B,EAA8C,MAAM,uDAAuD,CAAA;AA2E/I;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,UAAkC,EAAE,EAAE;IAC3E,MAAM,EACJ,IAAI,GAAG,KAAK,EACZ,SAAS,EACT,UAAU,EACV,MAAM,EACN,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,KAAK,EACN,GAAG,UAAU,CAAA;IAEd,IAAI,CAAC,MAAM,IAAI,CAAC,UAAU,IAAI,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,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GAAG,wBAAwB,CAAA;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { http } from "viem";
|
|
2
|
+
import { createPaymasterClient, } from "viem/account-abstraction";
|
|
3
|
+
import { scsTokenPaymasterActions } from "./decorators/tokenPaymaster/index.js";
|
|
4
|
+
import { getTokenPaymasterQuotes } from "./decorators/tokenPaymaster/getTokenPaymasterQuotes.js";
|
|
5
|
+
import {} from "../account/index.js";
|
|
6
|
+
// These should not be any default hardcoded context
|
|
7
|
+
// export const scsSponsoredPaymasterContext: SCSPaymasterContext = {
|
|
8
|
+
// calculateGasLimits: true,
|
|
9
|
+
// // Review this has to be dynamic
|
|
10
|
+
// // paymasterId: "pm_test"
|
|
11
|
+
// }
|
|
12
|
+
export const toSCSSponsoredPaymasterContext = (params) => {
|
|
13
|
+
return {
|
|
14
|
+
calculateGasLimits: true,
|
|
15
|
+
...params
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export const toSCSTokenPaymasterContext = (params) => {
|
|
19
|
+
const { calculateGasLimits } = params;
|
|
20
|
+
return {
|
|
21
|
+
token: params.token,
|
|
22
|
+
calculateGasLimits: calculateGasLimits ?? true
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Creates a SCS Paymaster Client.
|
|
27
|
+
*
|
|
28
|
+
* This function sets up a client for interacting with SCS's paymaster service.
|
|
29
|
+
* It can be configured with a custom transport, a specific paymaster URL, or with a chain ID and API key.
|
|
30
|
+
*
|
|
31
|
+
* @param {SCSPaymasterClientConfig} parameters - Configuration options for the client.
|
|
32
|
+
* @returns {PaymasterClient} A configured Paymaster Client instance.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* // Create a client with a custom transport
|
|
36
|
+
* const client1 = createSCSPaymasterClient({ transport: customTransport })
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* // Create a client with a specific paymaster URL
|
|
40
|
+
* const client2 = createSCSPaymasterClient({ paymasterUrl: 'https://example.com/paymaster' })
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* // Create a client with chain ID and API key
|
|
44
|
+
* const client3 = createSCSPaymasterClient({ chainId: 1, apiKey: 'your-api-key' })
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // Create a Token Paymaster Client
|
|
48
|
+
* const tokenPaymasterClient = createSCSPaymasterClient({
|
|
49
|
+
* paymasterUrl: 'https://example.com/paymaster',
|
|
50
|
+
* paymasterContext: {
|
|
51
|
+
* mode: "ERC20",
|
|
52
|
+
* tokenInfo: {
|
|
53
|
+
* feeTokenAddress: "0x..."
|
|
54
|
+
* }
|
|
55
|
+
* },
|
|
56
|
+
* })
|
|
57
|
+
*/
|
|
58
|
+
export const createSCSPaymasterClient = (parameters) => {
|
|
59
|
+
const defaultedTransport = parameters.transport
|
|
60
|
+
? parameters.transport
|
|
61
|
+
: parameters.paymasterUrl
|
|
62
|
+
? http(parameters.paymasterUrl)
|
|
63
|
+
: http(`https://paymaster.scs.startale.com/v1?apikey=${parameters.apiKey}`);
|
|
64
|
+
// Todo: Update default to https://dev.paymaster.scs.startale.com/v1?apikey=scsadmin-paymaster (or prod)
|
|
65
|
+
// Remove getPaymasterStubData from the client.
|
|
66
|
+
const { getPaymasterStubData, ...paymasterClient } = createPaymasterClient({
|
|
67
|
+
...parameters,
|
|
68
|
+
transport: defaultedTransport
|
|
69
|
+
})
|
|
70
|
+
.extend((client) => ({
|
|
71
|
+
getTokenPaymasterQuotes: async (args) => {
|
|
72
|
+
let _args = args;
|
|
73
|
+
// Review
|
|
74
|
+
if (args.userOp?.authorization) {
|
|
75
|
+
const authorization = args.userOp.authorization ||
|
|
76
|
+
(await client.account?.eip7702Authorization?.());
|
|
77
|
+
args.userOp.authorization = authorization;
|
|
78
|
+
}
|
|
79
|
+
return await getTokenPaymasterQuotes(client, _args);
|
|
80
|
+
}
|
|
81
|
+
}))
|
|
82
|
+
.extend(scsTokenPaymasterActions());
|
|
83
|
+
return paymasterClient;
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=createSCSPaymasterClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSCSPaymasterClient.js","sourceRoot":"","sources":["../../../src/sdk/clients/createSCSPaymasterClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAA4C,MAAM,MAAM,CAAA;AACrE,OAAO,EAIL,qBAAqB,GACtB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAEL,wBAAwB,EACzB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,uBAAuB,EAA0C,MAAM,qDAAqD,CAAA;AACrI,OAAO,EAA2C,MAAM,YAAY,CAAA;AA6CpE,oDAAoD;AACpD,qEAAqE;AACrE,8BAA8B;AAC9B,qCAAqC;AACrC,8BAA8B;AAC9B,IAAI;AAEJ,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAC5C,MAAqC,EAChB,EAAE;IACvB,OAAO;QACL,kBAAkB,EAAE,IAAI;QACxB,GAAG,MAAM;KACV,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,CACxC,MAAwC,EACnB,EAAE;IACvB,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAA;IACrC,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,kBAAkB,EAAE,kBAAkB,IAAI,IAAI;KAC/C,CAAA;AACH,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,UAAoC,EAChB,EAAE;IACtB,MAAM,kBAAkB,GAAG,UAAU,CAAC,SAAS;QAC7C,CAAC,CAAC,UAAU,CAAC,SAAS;QACtB,CAAC,CAAC,UAAU,CAAC,YAAY;YACvB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;YAC/B,CAAC,CAAC,IAAI,CACF,gDAAgD,UAAU,CAAC,MAAM,EAAE,CACpE,CAAA;IAEP,wGAAwG;IAExG,+CAA+C;IAC/C,MAAM,EAAE,oBAAoB,EAAE,GAAG,eAAe,EAAE,GAAG,qBAAqB,CAAC;QACzE,GAAG,UAAU;QACb,SAAS,EAAE,kBAAkB;KAC9B,CAAC;SACD,MAAM,CAAC,CAAC,MAAe,EAAE,EAAE,CAAC,CAAC;QAC5B,uBAAuB,EAAE,KAAK,EAAE,IAAuC,EAAE,EAAE;YACzE,IAAI,KAAK,GAAG,IAAI,CAAA;YAChB,SAAS;YACT,IAAI,IAAI,CAAC,MAAM,EAAE,aAAa,EAAE,CAAC;gBAC/B,MAAM,aAAa,GACjB,IAAI,CAAC,MAAM,CAAC,aAAa;oBACzB,CAAC,MACC,MAAM,CAAC,OACR,EAAE,oBAAoB,EAAE,EAAE,CAAC,CAAA;gBAC9B,IAAI,CAAC,MAAM,CAAC,aAAa,GAAG,aAAa,CAAA;YAC3C,CAAC;YACD,OAAO,MAAM,uBAAuB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACrD,CAAC;KACF,CAAC,CAAC;SACF,MAAM,CAAC,wBAAwB,EAAE,CAAC,CAAA;IAEnC,OAAO,eAAe,CAAA;AACxB,CAAC,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { http, createPublicClient } from "viem";
|
|
2
|
+
import { safeMultiplier } from "../../../account/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns the live gas prices that you can use to send a user operation.
|
|
5
|
+
*
|
|
6
|
+
* @param client that you created using viem's createClient whose transport url is pointing to the bundler.
|
|
7
|
+
* @returns slow, standard & fast values for maxFeePerGas & maxPriorityFeePerGas
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* import { createClient } from "viem"
|
|
12
|
+
* import { getGasFeeValues } from "permissionless/actions/pimlico"
|
|
13
|
+
*
|
|
14
|
+
* const bundlerClient = createClient({
|
|
15
|
+
* chain: goerli,
|
|
16
|
+
* transport: http(<bundler-url>),
|
|
17
|
+
* })
|
|
18
|
+
*
|
|
19
|
+
* await getGasFeeValues(bundlerClient)
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
export const getGasFeeValues = async (client) => {
|
|
23
|
+
const accountClient = client;
|
|
24
|
+
// const publicClient = accountClient.client as PublicClient
|
|
25
|
+
const rpcUrl = accountClient.chain?.rpcUrls.default.http[0];
|
|
26
|
+
if (!rpcUrl) {
|
|
27
|
+
throw new Error("getGasFeeValues: rpcUrl is not available");
|
|
28
|
+
}
|
|
29
|
+
const rpcClient = createPublicClient({
|
|
30
|
+
chain: accountClient.chain,
|
|
31
|
+
transport: http(rpcUrl)
|
|
32
|
+
});
|
|
33
|
+
// TODO: refactor and error handling can be added
|
|
34
|
+
// if(publicClient === null || publicClient === undefined) {
|
|
35
|
+
// throw new Error("client must be passed during initialing smart account client")
|
|
36
|
+
// }
|
|
37
|
+
// const feeData = await publicClient.estimateFeesPerGas()
|
|
38
|
+
// console.log("feeData", feeData)
|
|
39
|
+
// const maxFeePerGas = safeMultiplier(feeData.maxFeePerGas, 1.6);
|
|
40
|
+
// const maxPriorityFeePerGas = safeMultiplier(
|
|
41
|
+
// feeData.maxPriorityFeePerGas,
|
|
42
|
+
// 1.6
|
|
43
|
+
// );
|
|
44
|
+
const priorityFeeDataFromSCS = await client.request({
|
|
45
|
+
method: "rundler_maxPriorityFeePerGas",
|
|
46
|
+
params: []
|
|
47
|
+
});
|
|
48
|
+
const baseFeePerGas = await rpcClient
|
|
49
|
+
.request({
|
|
50
|
+
method: "eth_getBlockByNumber",
|
|
51
|
+
params: ["latest", false]
|
|
52
|
+
})
|
|
53
|
+
.then((block) => {
|
|
54
|
+
if (!block || !block.baseFeePerGas) {
|
|
55
|
+
throw new Error("Base fee not available");
|
|
56
|
+
}
|
|
57
|
+
return BigInt(block.baseFeePerGas);
|
|
58
|
+
});
|
|
59
|
+
//maxFee = base fee + feeDataFromSCS
|
|
60
|
+
const maxFeePerGas = safeMultiplier(baseFeePerGas + BigInt(priorityFeeDataFromSCS), 1.3);
|
|
61
|
+
const maxPriorityFeePerGasFromSCS = safeMultiplier(BigInt(priorityFeeDataFromSCS), 1);
|
|
62
|
+
return {
|
|
63
|
+
slow: {
|
|
64
|
+
maxFeePerGas: BigInt(maxFeePerGas),
|
|
65
|
+
maxPriorityFeePerGas: BigInt(maxPriorityFeePerGasFromSCS)
|
|
66
|
+
},
|
|
67
|
+
standard: {
|
|
68
|
+
maxFeePerGas: BigInt(maxFeePerGas),
|
|
69
|
+
maxPriorityFeePerGas: BigInt(maxPriorityFeePerGasFromSCS)
|
|
70
|
+
},
|
|
71
|
+
fast: {
|
|
72
|
+
maxFeePerGas: BigInt(maxFeePerGas),
|
|
73
|
+
maxPriorityFeePerGas: BigInt(maxPriorityFeePerGasFromSCS)
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=getGasFeeValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getGasFeeValues.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/bundler/getGasFeeValues.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAMJ,kBAAkB,EACnB,MAAM,MAAM,CAAA;AAEb,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAiCjD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAClC,MAKC,EACmC,EAAE;IACtC,MAAM,aAAa,GAAG,MAA+B,CAAA;IACrD,4DAA4D;IAC5D,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAC3D,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,C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,oBAAoB,EAAE,MAAM,CAAC,2BAA2B,CAAC;SAC1D;QACD,IAAI,EAAE;YACJ,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;YAClC,oBAAoB,EAAE,MAAM,CAAC,2BAA2B,CAAC;SAC1D;KACF,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { getGasFeeValues } from "./getGasFeeValues.js";
|
|
2
|
+
import { waitForUserOperationReceipt } from "./waitForUserOperationReceipt.js";
|
|
3
|
+
export const scsBundlerActions = () => (client) => ({
|
|
4
|
+
getGasFeeValues: async () => getGasFeeValues(client),
|
|
5
|
+
waitForUserOperationReceipt: async (parameters) => waitForUserOperationReceipt(client, parameters)
|
|
6
|
+
});
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/bundler/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAGL,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AA4C3E,MAAM,CAAC,MAAM,iBAAiB,GAC5B,GAAG,EAAE,CACL,CAIE,MAAkC,EACtB,EAAE,CAAC,CAAC;IAChB,eAAe,EAAE,KAAK,IAAI,EAAE,CAAC,eAAe,CAAC,MAAM,CAAC;IACpD,2BAA2B,EAAE,KAAK,EAChC,UAAiD,EACjD,EAAE,CAAC,2BAA2B,CAAC,MAAM,EAAE,UAAU,CAAC;CACrD,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { waitForUserOperationReceipt as waitForUserOperationReceipt_ } from "viem/account-abstraction";
|
|
2
|
+
import { getAction } from "viem/utils";
|
|
3
|
+
export async function waitForUserOperationReceipt(client, parameters) {
|
|
4
|
+
return await Promise.any([
|
|
5
|
+
getAction(client, waitForUserOperationReceipt_, "waitForUserOperationReceipt")(parameters),
|
|
6
|
+
]);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=waitForUserOperationReceipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"waitForUserOperationReceipt.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/bundler/waitForUserOperationReceipt.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,2BAA2B,IAAI,4BAA4B,EAC5D,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAGtC,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAC/C,MAKC,EACD,UAAiD;IAEjD,OAAO,MAAM,OAAO,CAAC,GAAG,CAAC;QACvB,SAAS,CACP,MAAM,EACN,4BAA4B,EAC5B,6BAA6B,CAC9B,CAAC,UAAU,CAAC;KACd,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ContractFunctionExecutionError, decodeFunctionResult, encodeFunctionData } from "viem";
|
|
2
|
+
import { call, readContract } from "viem/actions";
|
|
3
|
+
import { getAction } from "viem/utils";
|
|
4
|
+
import { AccountNotFoundError } from "../../../account/utils/AccountNotFound.js";
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves the account ID for a given smart account.
|
|
7
|
+
*
|
|
8
|
+
* @param client - The client instance.
|
|
9
|
+
* @param args - Optional parameters for getting the smart account.
|
|
10
|
+
* @returns The account ID as a string.
|
|
11
|
+
* @throws {AccountNotFoundError} If the account is not found.
|
|
12
|
+
* @throws {Error} If the accountId result is empty.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* import { accountId } from '@startale-scs/aa-sdk'
|
|
16
|
+
*
|
|
17
|
+
* const id = await accountId(startaleClient)
|
|
18
|
+
* console.log(id) // 'example_account_id'
|
|
19
|
+
*/
|
|
20
|
+
export async function accountId(client, args) {
|
|
21
|
+
let account_ = client.account;
|
|
22
|
+
if (args) {
|
|
23
|
+
account_ = args.account;
|
|
24
|
+
}
|
|
25
|
+
if (!account_) {
|
|
26
|
+
throw new AccountNotFoundError({
|
|
27
|
+
docsPath: "/startale-client/methods#sendtransaction"
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
const account = account_;
|
|
31
|
+
const publicClient = account.client;
|
|
32
|
+
const abi = [
|
|
33
|
+
{
|
|
34
|
+
name: "accountId",
|
|
35
|
+
type: "function",
|
|
36
|
+
stateMutability: "view",
|
|
37
|
+
inputs: [],
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
type: "string",
|
|
41
|
+
name: "accountImplementationId"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
try {
|
|
47
|
+
return await getAction(publicClient, readContract, "readContract")({
|
|
48
|
+
abi,
|
|
49
|
+
functionName: "accountId",
|
|
50
|
+
address: await account.getAddress()
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
catch (error) {
|
|
54
|
+
if (error instanceof ContractFunctionExecutionError) {
|
|
55
|
+
const { factory, factoryData } = await account.getFactoryArgs();
|
|
56
|
+
const result = await getAction(publicClient, call, "call")({
|
|
57
|
+
factory: factory,
|
|
58
|
+
factoryData: factoryData,
|
|
59
|
+
to: account.address,
|
|
60
|
+
data: encodeFunctionData({
|
|
61
|
+
abi,
|
|
62
|
+
functionName: "accountId"
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
if (!result || !result.data) {
|
|
66
|
+
throw new Error("accountId result is empty");
|
|
67
|
+
}
|
|
68
|
+
return decodeFunctionResult({
|
|
69
|
+
abi,
|
|
70
|
+
functionName: "accountId",
|
|
71
|
+
data: result.data
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=accountId.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountId.js","sourceRoot":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E,CAAC;YACpD,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,GAAG,MAAM,OAAO,CAAC,cAAc,EAAE,CAAA;YAE/D,MAAM,MAAM,GAAG,MAAM,SAAS,CAC5B,YAAY,EACZ,IAAI,EACJ,MAAM,CACP,CAAC;gBACA,OAAO,EAAE,OAAO;gBAChB,WAAW,EAAE,WAAW;gBACxB,EAAE,EAAE,OAAO,CAAC,OAAO;gBACnB,IAAI,EAAE,kBAAkB,CAAC;oBACvB,GAAG;oBACH,YAAY,EAAE,WAAW;iBAC1B,CAAC;aACH,CAAC,CAAA;YAEF,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;gBAC5B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAA;YAC9C,CAAC;YAED,OAAO,oBAAoB,CAAC;gBAC1B,GAAG;gBACH,YAAY,EAAE,WAAW;gBACzB,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB,CAAC,CAAA;QACJ,CAAC;QAED,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { readContract } from "viem/actions";
|
|
2
|
+
import { getAction, parseAccount } from "viem/utils";
|
|
3
|
+
import { AccountNotFoundError } from "../../../account/utils/AccountNotFound.js";
|
|
4
|
+
const abi = [
|
|
5
|
+
{
|
|
6
|
+
inputs: [],
|
|
7
|
+
name: "getActiveHook",
|
|
8
|
+
outputs: [
|
|
9
|
+
{
|
|
10
|
+
internalType: "address",
|
|
11
|
+
name: "hook",
|
|
12
|
+
type: "address"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
stateMutability: "view",
|
|
16
|
+
type: "function"
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves the active hook for a given smart account.
|
|
21
|
+
*
|
|
22
|
+
* @param client - The client instance.
|
|
23
|
+
* @param parameters - Parameters for getting the smart account.
|
|
24
|
+
* @returns The address of the active hook as a hexadecimal string.
|
|
25
|
+
* @throws {AccountNotFoundError} If the account is not found.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* import { getActiveHook } from '@startale-scs/aa-sdk'
|
|
29
|
+
*
|
|
30
|
+
* const activeHook = await getActiveHook(startaleClient)
|
|
31
|
+
* console.log(activeHook) // '0x...'
|
|
32
|
+
*/
|
|
33
|
+
export async function getActiveHook(client, parameters) {
|
|
34
|
+
const account_ = parameters?.account ?? client.account;
|
|
35
|
+
if (!account_) {
|
|
36
|
+
throw new AccountNotFoundError({
|
|
37
|
+
docsPath: "/startale-client/methods#sendtransaction"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
const account = parseAccount(account_);
|
|
41
|
+
const publicClient = account.client;
|
|
42
|
+
const [getActiveHookRead] = await toGetActiveHookReads(account);
|
|
43
|
+
return getAction(publicClient, readContract, "readContract")(getActiveHookRead);
|
|
44
|
+
}
|
|
45
|
+
export const toGetActiveHookReads = async (account) => [
|
|
46
|
+
{
|
|
47
|
+
address: account.address,
|
|
48
|
+
abi,
|
|
49
|
+
functionName: "getActiveHook"
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
//# sourceMappingURL=getActiveHook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getActiveHook.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/erc7579/getActiveHook.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAO7E,MAAM,GAAG,GAAG;IACV;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CAGjC,MAA2D,EAC3D,UAAmD;IAEnD,MAAM,QAAQ,GAAG,UAAU,EAAE,OAAO,IAAI,MAAM,CAAC,OAAO,CAAA;IAEtD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,oBAAoB,CAAC;YAC7B,QAAQ,EAAE,0CAA0C;SACrD,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAmC,CAAA;IAExE,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAA;IAEnC,MAAM,CAAC,iBAAiB,CAAC,GAAG,MAAM,oBAAoB,CAAC,OAAO,CAAC,CAAA;IAE/D,OAAO,SAAS,CACd,YAAY,EACZ,YAAY,EACZ,cAAc,CACf,CAAC,iBAAiB,CAAiB,CAAA;AACtC,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,EACvC,OAA4B,EACwC,EAAE,CAAC;IACvE;QACE,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,GAAG;QACH,YAAY,EAAE,eAAe;KAC9B;CACF,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { readContract } from "viem/actions";
|
|
2
|
+
import { getAction, parseAccount } from "viem/utils";
|
|
3
|
+
import { AccountNotFoundError } from "../../../account/utils/AccountNotFound.js";
|
|
4
|
+
import { GENERIC_FALLBACK_SELECTOR } from "../../../account/utils/Constants.js";
|
|
5
|
+
const abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
internalType: "bytes4",
|
|
10
|
+
name: "selector",
|
|
11
|
+
type: "bytes4"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
name: "getFallbackHandlerBySelector",
|
|
15
|
+
outputs: [
|
|
16
|
+
{
|
|
17
|
+
internalType: "CallType",
|
|
18
|
+
name: "",
|
|
19
|
+
type: "bytes1"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "",
|
|
24
|
+
type: "address"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
stateMutability: "view",
|
|
28
|
+
type: "function"
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves the fallback handler for a given selector in a smart account.
|
|
33
|
+
*
|
|
34
|
+
* @param client - The client instance.
|
|
35
|
+
* @param parameters - Parameters including the smart account and optional selector.
|
|
36
|
+
* @returns A tuple containing the call type and address of the fallback handler.
|
|
37
|
+
* @throws {AccountNotFoundError} If the account is not found.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* import { getFallbackBySelector } from '@startale-scs/aa-sdk'
|
|
41
|
+
*
|
|
42
|
+
* const [callType, handlerAddress] = await getFallbackBySelector(startaleClient, {
|
|
43
|
+
* selector: '0x12345678'
|
|
44
|
+
* })
|
|
45
|
+
* console.log(callType, handlerAddress) // '0x1' '0x...'
|
|
46
|
+
*/
|
|
47
|
+
export async function getFallbackBySelector(client, parameters) {
|
|
48
|
+
const { account: account_ = client.account, selector = GENERIC_FALLBACK_SELECTOR } = parameters;
|
|
49
|
+
if (!account_) {
|
|
50
|
+
throw new AccountNotFoundError({
|
|
51
|
+
docsPath: "/startale-client/methods#sendtransaction"
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const account = parseAccount(account_);
|
|
55
|
+
const publicClient = account.client;
|
|
56
|
+
const [getFallbackBySelectorRead] = await toGetFallbackBySelectorReads(account, selector);
|
|
57
|
+
return getAction(publicClient, readContract, "readContract")(getFallbackBySelectorRead);
|
|
58
|
+
}
|
|
59
|
+
export const toGetFallbackBySelectorReads = async (account, selector) => [
|
|
60
|
+
{
|
|
61
|
+
address: account.address,
|
|
62
|
+
abi,
|
|
63
|
+
functionName: "getFallbackHandlerBySelector",
|
|
64
|
+
args: [selector]
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
//# sourceMappingURL=getFallbackBySelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getFallbackBySelector.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/erc7579/getFallbackBySelector.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAS5E,MAAM,GAAG,GAAG;IACV;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,QAAQ;gBACtB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;aACf;SACF;QACD,IAAI,EAAE,8BAA8B;QACpC,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,UAAU;gBACxB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACF,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAGzC,MAA2D,EAC3D,UAA0D;IAE1D,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,QAAQ,GAAG,yBAAyB,EACrC,GAAG,UAAU,CAAA;IAEd,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,oBAAoB,CAAC;YAC7B,QAAQ,EAAE,0CAA0C;SACrD,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAmC,CAAA;IACxE,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAA;IAEnC,MAAM,CAAC,yBAAyB,CAAC,GAAG,MAAM,4BAA4B,CACpE,OAAO,EACP,QAAQ,CACT,CAAA;IAED,OAAO,SAAS,CACd,YAAY,EACZ,YAAY,EACZ,cAAc,CACf,CAAC,yBAAyB,CAAwB,CAAA;AACrD,CAAC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,KAAK,EAC/C,OAA4B,EAC5B,QAAa,EAGb,EAAE,CAAC;IACH;QACE,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,GAAG;QACH,YAAY,EAAE,8BAA8B;QAC5C,IAAI,EAAE,CAAC,QAAQ,CAAC;KACjB;CACF,CAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { readContract } from "viem/actions";
|
|
2
|
+
import { getAction, parseAccount } from "viem/utils";
|
|
3
|
+
import { AccountNotFoundError } from "../../../account/utils/AccountNotFound.js";
|
|
4
|
+
import { SENTINEL_ADDRESS } from "../../../account/utils/Constants.js";
|
|
5
|
+
const abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
internalType: "address",
|
|
10
|
+
name: "cursor",
|
|
11
|
+
type: "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
internalType: "uint256",
|
|
15
|
+
name: "size",
|
|
16
|
+
type: "uint256"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
name: "getExecutorsPaginated",
|
|
20
|
+
outputs: [
|
|
21
|
+
{
|
|
22
|
+
internalType: "address[]",
|
|
23
|
+
name: "array",
|
|
24
|
+
type: "address[]"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "next",
|
|
29
|
+
type: "address"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "view",
|
|
33
|
+
type: "function"
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves the installed executors for a given smart account.
|
|
38
|
+
*
|
|
39
|
+
* @param client - The client instance.
|
|
40
|
+
* @param parameters - Parameters including the smart account, page size, and cursor.
|
|
41
|
+
* @returns A tuple containing an array of executor addresses and the next cursor.
|
|
42
|
+
* @throws {AccountNotFoundError} If the account is not found.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* import { getInstalledExecutors } from '@startale-scs/aa-sdk'
|
|
46
|
+
*
|
|
47
|
+
* const [executors, nextCursor] = await getInstalledExecutors(startaleClient, {
|
|
48
|
+
* pageSize: 10n
|
|
49
|
+
* })
|
|
50
|
+
* console.log(executors, nextCursor) // ['0x...', '0x...'], '0x...'
|
|
51
|
+
*/
|
|
52
|
+
export async function getInstalledExecutors(client, parameters) {
|
|
53
|
+
const account_ = parameters?.account ?? client.account;
|
|
54
|
+
const pageSize = parameters?.pageSize ?? 100n;
|
|
55
|
+
const cursor = parameters?.cursor ?? SENTINEL_ADDRESS;
|
|
56
|
+
if (!account_) {
|
|
57
|
+
throw new AccountNotFoundError({
|
|
58
|
+
docsPath: "/startale-client/methods#sendtransaction"
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
const account = parseAccount(account_);
|
|
62
|
+
const publicClient = account.client;
|
|
63
|
+
const [getInstalledExecutorsRead] = await toGetInstalledExecutorsReads(account, { pageSize, cursor });
|
|
64
|
+
return getAction(publicClient, readContract, "readContract")(getInstalledExecutorsRead);
|
|
65
|
+
}
|
|
66
|
+
export const toGetInstalledExecutorsReads = async (account, { pageSize = 100n, cursor = SENTINEL_ADDRESS }) => [
|
|
67
|
+
{
|
|
68
|
+
address: account.address,
|
|
69
|
+
abi,
|
|
70
|
+
functionName: "getExecutorsPaginated",
|
|
71
|
+
args: [cursor, pageSize]
|
|
72
|
+
}
|
|
73
|
+
];
|
|
74
|
+
//# sourceMappingURL=getInstalledExecutors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInstalledExecutors.js","sourceRoot":"","sources":["../../../../../src/sdk/clients/decorators/erc7579/getInstalledExecutors.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAUnE,MAAM,GAAG,GAAG;IACV;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,uBAAuB;QAC7B,OAAO,EAAE;YACP;gBACE,YAAY,EAAE,WAAW;gBACzB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,WAAW;aAClB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAA;AAEV;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAGzC,MAA2D,EAC3D,UAA2D;IAE3D,MAAM,QAAQ,GAAG,UAAU,EAAE,OAAO,IAAI,MAAM,CAAC,OAAO,CAAA;IACtD,MAAM,QAAQ,GAAG,UAAU,EAAE,QAAQ,IAAI,IAAI,CAAA;IAC7C,MAAM,MAAM,GAAG,UAAU,EAAE,MAAM,IAAI,gBAAgB,CAAA;IAErD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,MAAM,IAAI,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