@distilled.cloud/coinbase 0.0.0-john
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/README.md +77 -0
- package/lib/category.d.ts +5 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +5 -0
- package/lib/category.js.map +1 -0
- package/lib/client.d.ts +12 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +245 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +33 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +30 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +855 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +466 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/operations/addEndUserEvmAccount.d.ts +30 -0
- package/lib/operations/addEndUserEvmAccount.d.ts.map +1 -0
- package/lib/operations/addEndUserEvmAccount.js +38 -0
- package/lib/operations/addEndUserEvmAccount.js.map +1 -0
- package/lib/operations/addEndUserEvmSmartAccount.d.ts +32 -0
- package/lib/operations/addEndUserEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/addEndUserEvmSmartAccount.js +43 -0
- package/lib/operations/addEndUserEvmSmartAccount.js.map +1 -0
- package/lib/operations/addEndUserSolanaAccount.d.ts +30 -0
- package/lib/operations/addEndUserSolanaAccount.d.ts.map +1 -0
- package/lib/operations/addEndUserSolanaAccount.js +38 -0
- package/lib/operations/addEndUserSolanaAccount.js.map +1 -0
- package/lib/operations/createEndUser.d.ts +61 -0
- package/lib/operations/createEndUser.d.ts.map +1 -0
- package/lib/operations/createEndUser.js +67 -0
- package/lib/operations/createEndUser.js.map +1 -0
- package/lib/operations/createEvmAccount.d.ts +30 -0
- package/lib/operations/createEvmAccount.d.ts.map +1 -0
- package/lib/operations/createEvmAccount.js +36 -0
- package/lib/operations/createEvmAccount.js.map +1 -0
- package/lib/operations/createEvmEip7702Delegation.d.ts +34 -0
- package/lib/operations/createEvmEip7702Delegation.d.ts.map +1 -0
- package/lib/operations/createEvmEip7702Delegation.js +53 -0
- package/lib/operations/createEvmEip7702Delegation.js.map +1 -0
- package/lib/operations/createEvmSmartAccount.d.ts +27 -0
- package/lib/operations/createEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/createEvmSmartAccount.js +35 -0
- package/lib/operations/createEvmSmartAccount.js.map +1 -0
- package/lib/operations/createEvmSwapQuote.d.ts +26 -0
- package/lib/operations/createEvmSwapQuote.d.ts.map +1 -0
- package/lib/operations/createEvmSwapQuote.js +40 -0
- package/lib/operations/createEvmSwapQuote.js.map +1 -0
- package/lib/operations/createOnrampOrder.d.ts +58 -0
- package/lib/operations/createOnrampOrder.d.ts.map +1 -0
- package/lib/operations/createOnrampOrder.js +79 -0
- package/lib/operations/createOnrampOrder.js.map +1 -0
- package/lib/operations/createOnrampSession.d.ts +55 -0
- package/lib/operations/createOnrampSession.d.ts.map +1 -0
- package/lib/operations/createOnrampSession.js +70 -0
- package/lib/operations/createOnrampSession.js.map +1 -0
- package/lib/operations/createPolicy.d.ts +28 -0
- package/lib/operations/createPolicy.d.ts.map +1 -0
- package/lib/operations/createPolicy.js +34 -0
- package/lib/operations/createPolicy.js.map +1 -0
- package/lib/operations/createSolanaAccount.d.ts +30 -0
- package/lib/operations/createSolanaAccount.d.ts.map +1 -0
- package/lib/operations/createSolanaAccount.js +38 -0
- package/lib/operations/createSolanaAccount.js.map +1 -0
- package/lib/operations/createSpendPermission.d.ts +55 -0
- package/lib/operations/createSpendPermission.d.ts.map +1 -0
- package/lib/operations/createSpendPermission.js +93 -0
- package/lib/operations/createSpendPermission.js.map +1 -0
- package/lib/operations/createWebhookSubscription.d.ts +74 -0
- package/lib/operations/createWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/createWebhookSubscription.js +82 -0
- package/lib/operations/createWebhookSubscription.js.map +1 -0
- package/lib/operations/deletePolicy.d.ts +20 -0
- package/lib/operations/deletePolicy.d.ts.map +1 -0
- package/lib/operations/deletePolicy.js +26 -0
- package/lib/operations/deletePolicy.js.map +1 -0
- package/lib/operations/deleteWebhookSubscription.d.ts +21 -0
- package/lib/operations/deleteWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/deleteWebhookSubscription.js +32 -0
- package/lib/operations/deleteWebhookSubscription.js.map +1 -0
- package/lib/operations/exportEvmAccount.d.ts +27 -0
- package/lib/operations/exportEvmAccount.d.ts.map +1 -0
- package/lib/operations/exportEvmAccount.js +33 -0
- package/lib/operations/exportEvmAccount.js.map +1 -0
- package/lib/operations/exportEvmAccountByName.d.ts +27 -0
- package/lib/operations/exportEvmAccountByName.d.ts.map +1 -0
- package/lib/operations/exportEvmAccountByName.js +35 -0
- package/lib/operations/exportEvmAccountByName.js.map +1 -0
- package/lib/operations/exportSolanaAccount.d.ts +27 -0
- package/lib/operations/exportSolanaAccount.d.ts.map +1 -0
- package/lib/operations/exportSolanaAccount.js +35 -0
- package/lib/operations/exportSolanaAccount.js.map +1 -0
- package/lib/operations/exportSolanaAccountByName.d.ts +27 -0
- package/lib/operations/exportSolanaAccountByName.d.ts.map +1 -0
- package/lib/operations/exportSolanaAccountByName.js +38 -0
- package/lib/operations/exportSolanaAccountByName.js.map +1 -0
- package/lib/operations/getEndUser.d.ts +46 -0
- package/lib/operations/getEndUser.d.ts.map +1 -0
- package/lib/operations/getEndUser.js +52 -0
- package/lib/operations/getEndUser.js.map +1 -0
- package/lib/operations/getEvmAccount.d.ts +22 -0
- package/lib/operations/getEvmAccount.d.ts.map +1 -0
- package/lib/operations/getEvmAccount.js +28 -0
- package/lib/operations/getEvmAccount.js.map +1 -0
- package/lib/operations/getEvmAccountByName.d.ts +22 -0
- package/lib/operations/getEvmAccountByName.d.ts.map +1 -0
- package/lib/operations/getEvmAccountByName.js +30 -0
- package/lib/operations/getEvmAccountByName.js.map +1 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts +22 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.d.ts.map +1 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.js +48 -0
- package/lib/operations/getEvmEip7702DelegationOperationById.js.map +1 -0
- package/lib/operations/getEvmSmartAccount.d.ts +23 -0
- package/lib/operations/getEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/getEvmSmartAccount.js +31 -0
- package/lib/operations/getEvmSmartAccount.js.map +1 -0
- package/lib/operations/getEvmSmartAccountByName.d.ts +23 -0
- package/lib/operations/getEvmSmartAccountByName.d.ts.map +1 -0
- package/lib/operations/getEvmSmartAccountByName.js +31 -0
- package/lib/operations/getEvmSmartAccountByName.js.map +1 -0
- package/lib/operations/getEvmSwapPrice.d.ts +21 -0
- package/lib/operations/getEvmSwapPrice.d.ts.map +1 -0
- package/lib/operations/getEvmSwapPrice.js +27 -0
- package/lib/operations/getEvmSwapPrice.js.map +1 -0
- package/lib/operations/getOnrampOrderById.d.ts +39 -0
- package/lib/operations/getOnrampOrderById.d.ts.map +1 -0
- package/lib/operations/getOnrampOrderById.js +56 -0
- package/lib/operations/getOnrampOrderById.js.map +1 -0
- package/lib/operations/getOnrampUserLimits.d.ts +24 -0
- package/lib/operations/getOnrampUserLimits.d.ts.map +1 -0
- package/lib/operations/getOnrampUserLimits.js +38 -0
- package/lib/operations/getOnrampUserLimits.js.map +1 -0
- package/lib/operations/getPolicyById.d.ts +23 -0
- package/lib/operations/getPolicyById.d.ts.map +1 -0
- package/lib/operations/getPolicyById.js +29 -0
- package/lib/operations/getPolicyById.js.map +1 -0
- package/lib/operations/getSQLGrammar.d.ts +14 -0
- package/lib/operations/getSQLGrammar.d.ts.map +1 -0
- package/lib/operations/getSQLGrammar.js +20 -0
- package/lib/operations/getSQLGrammar.js.map +1 -0
- package/lib/operations/getSolanaAccount.d.ts +22 -0
- package/lib/operations/getSolanaAccount.d.ts.map +1 -0
- package/lib/operations/getSolanaAccount.js +28 -0
- package/lib/operations/getSolanaAccount.js.map +1 -0
- package/lib/operations/getSolanaAccountByName.d.ts +22 -0
- package/lib/operations/getSolanaAccountByName.d.ts.map +1 -0
- package/lib/operations/getSolanaAccountByName.js +30 -0
- package/lib/operations/getSolanaAccountByName.js.map +1 -0
- package/lib/operations/getUserOperation.d.ts +39 -0
- package/lib/operations/getUserOperation.d.ts.map +1 -0
- package/lib/operations/getUserOperation.js +66 -0
- package/lib/operations/getUserOperation.js.map +1 -0
- package/lib/operations/getWebhookSubscription.d.ts +37 -0
- package/lib/operations/getWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/getWebhookSubscription.js +48 -0
- package/lib/operations/getWebhookSubscription.js.map +1 -0
- package/lib/operations/importEndUser.d.ts +56 -0
- package/lib/operations/importEndUser.d.ts.map +1 -0
- package/lib/operations/importEndUser.js +62 -0
- package/lib/operations/importEndUser.js.map +1 -0
- package/lib/operations/importEvmAccount.d.ts +31 -0
- package/lib/operations/importEvmAccount.d.ts.map +1 -0
- package/lib/operations/importEvmAccount.js +37 -0
- package/lib/operations/importEvmAccount.js.map +1 -0
- package/lib/operations/importSolanaAccount.d.ts +30 -0
- package/lib/operations/importSolanaAccount.d.ts.map +1 -0
- package/lib/operations/importSolanaAccount.js +38 -0
- package/lib/operations/importSolanaAccount.js.map +1 -0
- package/lib/operations/index.d.ts +74 -0
- package/lib/operations/index.d.ts.map +1 -0
- package/lib/operations/index.js +74 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/operations/listDataTokenBalances.d.ts +37 -0
- package/lib/operations/listDataTokenBalances.d.ts.map +1 -0
- package/lib/operations/listDataTokenBalances.js +48 -0
- package/lib/operations/listDataTokenBalances.js.map +1 -0
- package/lib/operations/listEndUsers.d.ts +53 -0
- package/lib/operations/listEndUsers.d.ts.map +1 -0
- package/lib/operations/listEndUsers.js +59 -0
- package/lib/operations/listEndUsers.js.map +1 -0
- package/lib/operations/listEvmAccounts.d.ts +28 -0
- package/lib/operations/listEvmAccounts.d.ts.map +1 -0
- package/lib/operations/listEvmAccounts.js +34 -0
- package/lib/operations/listEvmAccounts.js.map +1 -0
- package/lib/operations/listEvmSmartAccounts.d.ts +29 -0
- package/lib/operations/listEvmSmartAccounts.d.ts.map +1 -0
- package/lib/operations/listEvmSmartAccounts.js +37 -0
- package/lib/operations/listEvmSmartAccounts.js.map +1 -0
- package/lib/operations/listEvmTokenBalances.d.ts +37 -0
- package/lib/operations/listEvmTokenBalances.d.ts.map +1 -0
- package/lib/operations/listEvmTokenBalances.js +48 -0
- package/lib/operations/listEvmTokenBalances.js.map +1 -0
- package/lib/operations/listPolicies.d.ts +31 -0
- package/lib/operations/listPolicies.d.ts.map +1 -0
- package/lib/operations/listPolicies.js +37 -0
- package/lib/operations/listPolicies.js.map +1 -0
- package/lib/operations/listSolanaAccounts.d.ts +29 -0
- package/lib/operations/listSolanaAccounts.d.ts.map +1 -0
- package/lib/operations/listSolanaAccounts.js +37 -0
- package/lib/operations/listSolanaAccounts.js.map +1 -0
- package/lib/operations/listSolanaTokenBalances.d.ts +36 -0
- package/lib/operations/listSolanaTokenBalances.d.ts.map +1 -0
- package/lib/operations/listSolanaTokenBalances.js +47 -0
- package/lib/operations/listSolanaTokenBalances.js.map +1 -0
- package/lib/operations/listSpendPermissions.d.ts +40 -0
- package/lib/operations/listSpendPermissions.d.ts.map +1 -0
- package/lib/operations/listSpendPermissions.js +60 -0
- package/lib/operations/listSpendPermissions.js.map +1 -0
- package/lib/operations/listTokensForAccount.d.ts +23 -0
- package/lib/operations/listTokensForAccount.d.ts.map +1 -0
- package/lib/operations/listTokensForAccount.js +34 -0
- package/lib/operations/listTokensForAccount.js.map +1 -0
- package/lib/operations/listWebhookSubscriptions.d.ts +42 -0
- package/lib/operations/listWebhookSubscriptions.d.ts.map +1 -0
- package/lib/operations/listWebhookSubscriptions.js +50 -0
- package/lib/operations/listWebhookSubscriptions.js.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts +53 -0
- package/lib/operations/prepareAndSendUserOperation.d.ts.map +1 -0
- package/lib/operations/prepareAndSendUserOperation.js +93 -0
- package/lib/operations/prepareAndSendUserOperation.js.map +1 -0
- package/lib/operations/prepareUserOperation.d.ts +46 -0
- package/lib/operations/prepareUserOperation.d.ts.map +1 -0
- package/lib/operations/prepareUserOperation.js +86 -0
- package/lib/operations/prepareUserOperation.js.map +1 -0
- package/lib/operations/requestEvmFaucet.d.ts +22 -0
- package/lib/operations/requestEvmFaucet.d.ts.map +1 -0
- package/lib/operations/requestEvmFaucet.js +32 -0
- package/lib/operations/requestEvmFaucet.js.map +1 -0
- package/lib/operations/requestSolanaFaucet.d.ts +21 -0
- package/lib/operations/requestSolanaFaucet.d.ts.map +1 -0
- package/lib/operations/requestSolanaFaucet.js +29 -0
- package/lib/operations/requestSolanaFaucet.js.map +1 -0
- package/lib/operations/revokeSpendPermission.d.ts +48 -0
- package/lib/operations/revokeSpendPermission.d.ts.map +1 -0
- package/lib/operations/revokeSpendPermission.js +86 -0
- package/lib/operations/revokeSpendPermission.js.map +1 -0
- package/lib/operations/runSQLQuery.d.ts +47 -0
- package/lib/operations/runSQLQuery.d.ts.map +1 -0
- package/lib/operations/runSQLQuery.js +74 -0
- package/lib/operations/runSQLQuery.js.map +1 -0
- package/lib/operations/sendEvmTransaction.d.ts +44 -0
- package/lib/operations/sendEvmTransaction.d.ts.map +1 -0
- package/lib/operations/sendEvmTransaction.js +64 -0
- package/lib/operations/sendEvmTransaction.js.map +1 -0
- package/lib/operations/sendSolanaTransaction.d.ts +38 -0
- package/lib/operations/sendSolanaTransaction.d.ts.map +1 -0
- package/lib/operations/sendSolanaTransaction.js +46 -0
- package/lib/operations/sendSolanaTransaction.js.map +1 -0
- package/lib/operations/sendUserOperation.d.ts +43 -0
- package/lib/operations/sendUserOperation.d.ts.map +1 -0
- package/lib/operations/sendUserOperation.js +71 -0
- package/lib/operations/sendUserOperation.js.map +1 -0
- package/lib/operations/settleX402Payment.d.ts +23 -0
- package/lib/operations/settleX402Payment.d.ts.map +1 -0
- package/lib/operations/settleX402Payment.js +79 -0
- package/lib/operations/settleX402Payment.js.map +1 -0
- package/lib/operations/signEvmHash.d.ts +27 -0
- package/lib/operations/signEvmHash.d.ts.map +1 -0
- package/lib/operations/signEvmHash.js +33 -0
- package/lib/operations/signEvmHash.js.map +1 -0
- package/lib/operations/signEvmMessage.d.ts +28 -0
- package/lib/operations/signEvmMessage.d.ts.map +1 -0
- package/lib/operations/signEvmMessage.js +34 -0
- package/lib/operations/signEvmMessage.js.map +1 -0
- package/lib/operations/signEvmTransaction.d.ts +29 -0
- package/lib/operations/signEvmTransaction.d.ts.map +1 -0
- package/lib/operations/signEvmTransaction.js +40 -0
- package/lib/operations/signEvmTransaction.js.map +1 -0
- package/lib/operations/signEvmTypedData.d.ts +36 -0
- package/lib/operations/signEvmTypedData.d.ts.map +1 -0
- package/lib/operations/signEvmTypedData.js +45 -0
- package/lib/operations/signEvmTypedData.js.map +1 -0
- package/lib/operations/signSolanaMessage.d.ts +28 -0
- package/lib/operations/signSolanaMessage.d.ts.map +1 -0
- package/lib/operations/signSolanaMessage.js +38 -0
- package/lib/operations/signSolanaMessage.js.map +1 -0
- package/lib/operations/signSolanaTransaction.d.ts +33 -0
- package/lib/operations/signSolanaTransaction.d.ts.map +1 -0
- package/lib/operations/signSolanaTransaction.js +44 -0
- package/lib/operations/signSolanaTransaction.js.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts +21 -0
- package/lib/operations/supportedX402PaymentKinds.d.ts.map +1 -0
- package/lib/operations/supportedX402PaymentKinds.js +40 -0
- package/lib/operations/supportedX402PaymentKinds.js.map +1 -0
- package/lib/operations/updateEvmAccount.d.ts +28 -0
- package/lib/operations/updateEvmAccount.d.ts.map +1 -0
- package/lib/operations/updateEvmAccount.js +34 -0
- package/lib/operations/updateEvmAccount.js.map +1 -0
- package/lib/operations/updateEvmSmartAccount.d.ts +24 -0
- package/lib/operations/updateEvmSmartAccount.d.ts.map +1 -0
- package/lib/operations/updateEvmSmartAccount.js +32 -0
- package/lib/operations/updateEvmSmartAccount.js.map +1 -0
- package/lib/operations/updatePolicy.d.ts +29 -0
- package/lib/operations/updatePolicy.d.ts.map +1 -0
- package/lib/operations/updatePolicy.js +35 -0
- package/lib/operations/updatePolicy.js.map +1 -0
- package/lib/operations/updateSolanaAccount.d.ts +28 -0
- package/lib/operations/updateSolanaAccount.d.ts.map +1 -0
- package/lib/operations/updateSolanaAccount.js +36 -0
- package/lib/operations/updateSolanaAccount.js.map +1 -0
- package/lib/operations/updateWebhookSubscription.d.ts +47 -0
- package/lib/operations/updateWebhookSubscription.d.ts.map +1 -0
- package/lib/operations/updateWebhookSubscription.js +58 -0
- package/lib/operations/updateWebhookSubscription.js.map +1 -0
- package/lib/operations/validateEndUserAccessToken.d.ts +44 -0
- package/lib/operations/validateEndUserAccessToken.d.ts.map +1 -0
- package/lib/operations/validateEndUserAccessToken.js +52 -0
- package/lib/operations/validateEndUserAccessToken.js.map +1 -0
- package/lib/operations/verifyX402Payment.d.ts +21 -0
- package/lib/operations/verifyX402Payment.d.ts.map +1 -0
- package/lib/operations/verifyX402Payment.js +72 -0
- package/lib/operations/verifyX402Payment.js.map +1 -0
- package/lib/retry.d.ts +22 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +21 -0
- package/lib/retry.js.map +1 -0
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/traits.d.ts +5 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +5 -0
- package/lib/traits.js.map +1 -0
- package/package.json +89 -0
- package/src/category.ts +4 -0
- package/src/client.ts +291 -0
- package/src/credentials.ts +66 -0
- package/src/errors.ts +694 -0
- package/src/index.ts +15 -0
- package/src/operations/addEndUserEvmAccount.ts +44 -0
- package/src/operations/addEndUserEvmSmartAccount.ts +53 -0
- package/src/operations/addEndUserSolanaAccount.ts +46 -0
- package/src/operations/createEndUser.ts +87 -0
- package/src/operations/createEvmAccount.ts +42 -0
- package/src/operations/createEvmEip7702Delegation.ts +63 -0
- package/src/operations/createEvmSmartAccount.ts +42 -0
- package/src/operations/createEvmSwapQuote.ts +44 -0
- package/src/operations/createOnrampOrder.ts +89 -0
- package/src/operations/createOnrampSession.ts +80 -0
- package/src/operations/createPolicy.ts +38 -0
- package/src/operations/createSolanaAccount.ts +42 -0
- package/src/operations/createSpendPermission.ts +110 -0
- package/src/operations/createWebhookSubscription.ts +92 -0
- package/src/operations/deletePolicy.ts +32 -0
- package/src/operations/deleteWebhookSubscription.ts +42 -0
- package/src/operations/exportEvmAccount.ts +39 -0
- package/src/operations/exportEvmAccountByName.ts +45 -0
- package/src/operations/exportSolanaAccount.ts +41 -0
- package/src/operations/exportSolanaAccountByName.ts +48 -0
- package/src/operations/getEndUser.ts +68 -0
- package/src/operations/getEvmAccount.ts +32 -0
- package/src/operations/getEvmAccountByName.ts +34 -0
- package/src/operations/getEvmEip7702DelegationOperationById.ts +56 -0
- package/src/operations/getEvmSmartAccount.ts +35 -0
- package/src/operations/getEvmSmartAccountByName.ts +41 -0
- package/src/operations/getEvmSwapPrice.ts +31 -0
- package/src/operations/getOnrampOrderById.ts +62 -0
- package/src/operations/getOnrampUserLimits.ts +44 -0
- package/src/operations/getPolicyById.ts +35 -0
- package/src/operations/getSQLGrammar.ts +26 -0
- package/src/operations/getSolanaAccount.ts +34 -0
- package/src/operations/getSolanaAccountByName.ts +40 -0
- package/src/operations/getUserOperation.ts +82 -0
- package/src/operations/getWebhookSubscription.ts +60 -0
- package/src/operations/importEndUser.ts +78 -0
- package/src/operations/importEvmAccount.ts +43 -0
- package/src/operations/importSolanaAccount.ts +42 -0
- package/src/operations/index.ts +73 -0
- package/src/operations/listDataTokenBalances.ts +59 -0
- package/src/operations/listEndUsers.ts +77 -0
- package/src/operations/listEvmAccounts.ts +40 -0
- package/src/operations/listEvmSmartAccounts.ts +45 -0
- package/src/operations/listEvmTokenBalances.ts +58 -0
- package/src/operations/listPolicies.ts +43 -0
- package/src/operations/listSolanaAccounts.ts +43 -0
- package/src/operations/listSolanaTokenBalances.ts +59 -0
- package/src/operations/listSpendPermissions.ts +70 -0
- package/src/operations/listTokensForAccount.ts +42 -0
- package/src/operations/listWebhookSubscriptions.ts +62 -0
- package/src/operations/prepareAndSendUserOperation.ts +113 -0
- package/src/operations/prepareUserOperation.ts +104 -0
- package/src/operations/requestEvmFaucet.ts +38 -0
- package/src/operations/requestSolanaFaucet.ts +33 -0
- package/src/operations/revokeSpendPermission.ts +103 -0
- package/src/operations/runSQLQuery.ts +92 -0
- package/src/operations/sendEvmTransaction.ts +70 -0
- package/src/operations/sendSolanaTransaction.ts +55 -0
- package/src/operations/sendUserOperation.ts +87 -0
- package/src/operations/settleX402Payment.ts +87 -0
- package/src/operations/signEvmHash.ts +37 -0
- package/src/operations/signEvmMessage.ts +40 -0
- package/src/operations/signEvmTransaction.ts +46 -0
- package/src/operations/signEvmTypedData.ts +53 -0
- package/src/operations/signSolanaMessage.ts +46 -0
- package/src/operations/signSolanaTransaction.ts +53 -0
- package/src/operations/supportedX402PaymentKinds.ts +52 -0
- package/src/operations/updateEvmAccount.ts +40 -0
- package/src/operations/updateEvmSmartAccount.ts +39 -0
- package/src/operations/updatePolicy.ts +41 -0
- package/src/operations/updateSolanaAccount.ts +40 -0
- package/src/operations/updateWebhookSubscription.ts +70 -0
- package/src/operations/validateEndUserAccessToken.ts +74 -0
- package/src/operations/verifyX402Payment.ts +80 -0
- package/src/retry.ts +37 -0
- package/src/sensitive.ts +4 -0
- package/src/traits.ts +4 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const ListWebhookSubscriptionsInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
pageSize: Schema.optional(Schema.Number),
|
|
8
|
+
pageToken: Schema.optional(Schema.String),
|
|
9
|
+
}).pipe(T.Http({ method: "GET", path: "/v2/data/webhooks/subscriptions" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const ListWebhookSubscriptionsOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
subscriptions: Schema.Array(Schema.Struct({
|
|
14
|
+
createdAt: Schema.String,
|
|
15
|
+
description: Schema.optional(Schema.Struct({})),
|
|
16
|
+
eventTypes: Schema.Array(Schema.String),
|
|
17
|
+
isEnabled: Schema.Boolean,
|
|
18
|
+
metadata: Schema.optional(Schema.Struct({
|
|
19
|
+
secret: Schema.optional(Schema.String),
|
|
20
|
+
})),
|
|
21
|
+
secret: Schema.String,
|
|
22
|
+
subscriptionId: Schema.String,
|
|
23
|
+
target: Schema.Struct({
|
|
24
|
+
url: Schema.Struct({}),
|
|
25
|
+
headers: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
26
|
+
}),
|
|
27
|
+
labels: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
28
|
+
})),
|
|
29
|
+
nextPageToken: Schema.optional(Schema.String),
|
|
30
|
+
});
|
|
31
|
+
// The operation
|
|
32
|
+
/**
|
|
33
|
+
* List webhook subscriptions
|
|
34
|
+
*
|
|
35
|
+
* Retrieve a paginated list of webhook subscriptions for the authenticated project.
|
|
36
|
+
* Returns subscriptions for all CDP product events (onchain, onramp/offramp, wallet, etc.)
|
|
37
|
+
* in descending order by creation time.
|
|
38
|
+
* ### Use Cases
|
|
39
|
+
* - Monitor all active webhook subscriptions across CDP products
|
|
40
|
+
* - Audit webhook configurations
|
|
41
|
+
* - Manage subscription lifecycle
|
|
42
|
+
*
|
|
43
|
+
* @param pageSize - The number of subscriptions to return per page.
|
|
44
|
+
* @param pageToken - The token for the next page of subscriptions, if any.
|
|
45
|
+
*/
|
|
46
|
+
export const listWebhookSubscriptions = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
47
|
+
inputSchema: ListWebhookSubscriptionsInput,
|
|
48
|
+
outputSchema: ListWebhookSubscriptionsOutput,
|
|
49
|
+
}));
|
|
50
|
+
//# sourceMappingURL=listWebhookSubscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listWebhookSubscriptions.js","sourceRoot":"","sources":["../../src/operations/listWebhookSubscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC1C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,iCAAiC,EAAE,CAAC,CAAC,CAAC;AAI9E,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,aAAa,EAAE,MAAM,CAAC,KAAK,CACzB,MAAM,CAAC,MAAM,CAAC;QACZ,SAAS,EAAE,MAAM,CAAC,MAAM;QACxB,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC/C,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QACvC,SAAS,EAAE,MAAM,CAAC,OAAO;QACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,MAAM,CAAC;YACZ,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;SACvC,CAAC,CACH;QACD,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,cAAc,EAAE,MAAM,CAAC,MAAM;QAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;YACpB,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;YACtB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;SACtE,CAAC;QACF,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;KACrE,CAAC,CACH;IACD,aAAa,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC9C,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC1E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,6BAA6B;IAC1C,YAAY,EAAE,8BAA8B;CAC7C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const PrepareAndSendUserOperationInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
|
|
5
|
+
readonly calls: Schema.$Array<Schema.Struct<{
|
|
6
|
+
readonly to: Schema.String;
|
|
7
|
+
readonly value: Schema.String;
|
|
8
|
+
readonly data: Schema.String;
|
|
9
|
+
readonly overrideGasLimit: Schema.optional<Schema.String>;
|
|
10
|
+
}>>;
|
|
11
|
+
readonly paymasterUrl: Schema.optional<Schema.Struct<{}>>;
|
|
12
|
+
}>;
|
|
13
|
+
export type PrepareAndSendUserOperationInput = typeof PrepareAndSendUserOperationInput.Type;
|
|
14
|
+
export declare const PrepareAndSendUserOperationOutput: Schema.Struct<{
|
|
15
|
+
readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
|
|
16
|
+
readonly userOpHash: Schema.String;
|
|
17
|
+
readonly calls: Schema.$Array<Schema.Struct<{
|
|
18
|
+
readonly to: Schema.String;
|
|
19
|
+
readonly value: Schema.String;
|
|
20
|
+
readonly data: Schema.String;
|
|
21
|
+
readonly overrideGasLimit: Schema.optional<Schema.String>;
|
|
22
|
+
}>>;
|
|
23
|
+
readonly status: Schema.Literals<readonly ["pending", "signed", "broadcast", "complete", "dropped", "failed"]>;
|
|
24
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
25
|
+
readonly receipts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
26
|
+
readonly revert: Schema.optional<Schema.Struct<{
|
|
27
|
+
readonly data: Schema.String;
|
|
28
|
+
readonly message: Schema.String;
|
|
29
|
+
}>>;
|
|
30
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
31
|
+
readonly blockHash: Schema.optional<Schema.String>;
|
|
32
|
+
readonly blockNumber: Schema.optional<Schema.Number>;
|
|
33
|
+
readonly gasUsed: Schema.optional<Schema.String>;
|
|
34
|
+
}>>>;
|
|
35
|
+
}>;
|
|
36
|
+
export type PrepareAndSendUserOperationOutput = typeof PrepareAndSendUserOperationOutput.Type;
|
|
37
|
+
/**
|
|
38
|
+
* Prepare and send a user operation for EVM Smart Account
|
|
39
|
+
*
|
|
40
|
+
* Prepares, signs, and sends a user operation for an EVM Smart Account. This API can be used only if the owner on Smart Account is a CDP EVM Account.
|
|
41
|
+
*
|
|
42
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
43
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
44
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
45
|
+
|
|
46
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
47
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
48
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
49
|
+
|
|
50
|
+
* @param address - The address of the EVM Smart Account to execute the user operation from.
|
|
51
|
+
*/
|
|
52
|
+
export declare const prepareAndSendUserOperation: any;
|
|
53
|
+
//# sourceMappingURL=prepareAndSendUserOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareAndSendUserOperation.d.ts","sourceRoot":"","sources":["../../src/operations/prepareAndSendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,gCAAgC;;;;;;;;;;EA6B1C,CAAC;AACJ,MAAM,MAAM,gCAAgC,GAC1C,OAAO,gCAAgC,CAAC,IAAI,CAAC;AAG/C,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;EAgD1C,CAAC;AACL,MAAM,MAAM,iCAAiC,GAC3C,OAAO,iCAAiC,CAAC,IAAI,CAAC;AAGhD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,KAKvC,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PrepareAndSendUserOperationInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
network: Schema.Literals([
|
|
9
|
+
"base-sepolia",
|
|
10
|
+
"base",
|
|
11
|
+
"arbitrum",
|
|
12
|
+
"optimism",
|
|
13
|
+
"zora",
|
|
14
|
+
"polygon",
|
|
15
|
+
"bnb",
|
|
16
|
+
"avalanche",
|
|
17
|
+
"ethereum",
|
|
18
|
+
"ethereum-sepolia",
|
|
19
|
+
]),
|
|
20
|
+
calls: Schema.Array(Schema.Struct({
|
|
21
|
+
to: Schema.String,
|
|
22
|
+
value: Schema.String,
|
|
23
|
+
data: Schema.String,
|
|
24
|
+
overrideGasLimit: Schema.optional(Schema.String),
|
|
25
|
+
})),
|
|
26
|
+
paymasterUrl: Schema.optional(Schema.Struct({})),
|
|
27
|
+
}).pipe(T.Http({
|
|
28
|
+
method: "POST",
|
|
29
|
+
path: "/v2/evm/smart-accounts/{address}/user-operations/prepare-and-send",
|
|
30
|
+
}));
|
|
31
|
+
// Output Schema
|
|
32
|
+
export const PrepareAndSendUserOperationOutput =
|
|
33
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
34
|
+
network: Schema.Literals([
|
|
35
|
+
"base-sepolia",
|
|
36
|
+
"base",
|
|
37
|
+
"arbitrum",
|
|
38
|
+
"optimism",
|
|
39
|
+
"zora",
|
|
40
|
+
"polygon",
|
|
41
|
+
"bnb",
|
|
42
|
+
"avalanche",
|
|
43
|
+
"ethereum",
|
|
44
|
+
"ethereum-sepolia",
|
|
45
|
+
]),
|
|
46
|
+
userOpHash: Schema.String,
|
|
47
|
+
calls: Schema.Array(Schema.Struct({
|
|
48
|
+
to: Schema.String,
|
|
49
|
+
value: Schema.String,
|
|
50
|
+
data: Schema.String,
|
|
51
|
+
overrideGasLimit: Schema.optional(Schema.String),
|
|
52
|
+
})),
|
|
53
|
+
status: Schema.Literals([
|
|
54
|
+
"pending",
|
|
55
|
+
"signed",
|
|
56
|
+
"broadcast",
|
|
57
|
+
"complete",
|
|
58
|
+
"dropped",
|
|
59
|
+
"failed",
|
|
60
|
+
]),
|
|
61
|
+
transactionHash: Schema.optional(Schema.String),
|
|
62
|
+
receipts: Schema.optional(Schema.Array(Schema.Struct({
|
|
63
|
+
revert: Schema.optional(Schema.Struct({
|
|
64
|
+
data: Schema.String,
|
|
65
|
+
message: Schema.String,
|
|
66
|
+
})),
|
|
67
|
+
transactionHash: Schema.optional(Schema.String),
|
|
68
|
+
blockHash: Schema.optional(Schema.String),
|
|
69
|
+
blockNumber: Schema.optional(Schema.Number),
|
|
70
|
+
gasUsed: Schema.optional(Schema.String),
|
|
71
|
+
}))),
|
|
72
|
+
});
|
|
73
|
+
// The operation
|
|
74
|
+
/**
|
|
75
|
+
* Prepare and send a user operation for EVM Smart Account
|
|
76
|
+
*
|
|
77
|
+
* Prepares, signs, and sends a user operation for an EVM Smart Account. This API can be used only if the owner on Smart Account is a CDP EVM Account.
|
|
78
|
+
*
|
|
79
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
80
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
81
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
82
|
+
|
|
83
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
84
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
85
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
86
|
+
|
|
87
|
+
* @param address - The address of the EVM Smart Account to execute the user operation from.
|
|
88
|
+
*/
|
|
89
|
+
export const prepareAndSendUserOperation = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
90
|
+
inputSchema: PrepareAndSendUserOperationInput,
|
|
91
|
+
outputSchema: PrepareAndSendUserOperationOutput,
|
|
92
|
+
}));
|
|
93
|
+
//# sourceMappingURL=prepareAndSendUserOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareAndSendUserOperation.js","sourceRoot":"","sources":["../../src/operations/prepareAndSendUserOperation.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const PrepareUserOperationInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
|
|
5
|
+
readonly calls: Schema.$Array<Schema.Struct<{
|
|
6
|
+
readonly to: Schema.String;
|
|
7
|
+
readonly value: Schema.String;
|
|
8
|
+
readonly data: Schema.String;
|
|
9
|
+
readonly overrideGasLimit: Schema.optional<Schema.String>;
|
|
10
|
+
}>>;
|
|
11
|
+
readonly paymasterUrl: Schema.optional<Schema.Struct<{}>>;
|
|
12
|
+
readonly dataSuffix: Schema.optional<Schema.String>;
|
|
13
|
+
}>;
|
|
14
|
+
export type PrepareUserOperationInput = typeof PrepareUserOperationInput.Type;
|
|
15
|
+
export declare const PrepareUserOperationOutput: Schema.Struct<{
|
|
16
|
+
readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
|
|
17
|
+
readonly userOpHash: Schema.String;
|
|
18
|
+
readonly calls: Schema.$Array<Schema.Struct<{
|
|
19
|
+
readonly to: Schema.String;
|
|
20
|
+
readonly value: Schema.String;
|
|
21
|
+
readonly data: Schema.String;
|
|
22
|
+
readonly overrideGasLimit: Schema.optional<Schema.String>;
|
|
23
|
+
}>>;
|
|
24
|
+
readonly status: Schema.Literals<readonly ["pending", "signed", "broadcast", "complete", "dropped", "failed"]>;
|
|
25
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
26
|
+
readonly receipts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
27
|
+
readonly revert: Schema.optional<Schema.Struct<{
|
|
28
|
+
readonly data: Schema.String;
|
|
29
|
+
readonly message: Schema.String;
|
|
30
|
+
}>>;
|
|
31
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
32
|
+
readonly blockHash: Schema.optional<Schema.String>;
|
|
33
|
+
readonly blockNumber: Schema.optional<Schema.Number>;
|
|
34
|
+
readonly gasUsed: Schema.optional<Schema.String>;
|
|
35
|
+
}>>>;
|
|
36
|
+
}>;
|
|
37
|
+
export type PrepareUserOperationOutput = typeof PrepareUserOperationOutput.Type;
|
|
38
|
+
/**
|
|
39
|
+
* Prepare a user operation
|
|
40
|
+
*
|
|
41
|
+
* Prepares a new user operation on a Smart Account for a specific network.
|
|
42
|
+
*
|
|
43
|
+
* @param address - The address of the Smart Account to create the user operation on.
|
|
44
|
+
*/
|
|
45
|
+
export declare const prepareUserOperation: any;
|
|
46
|
+
//# sourceMappingURL=prepareUserOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareUserOperation.d.ts","sourceRoot":"","sources":["../../src/operations/prepareUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,yBAAyB;;;;;;;;;;;EA8BnC,CAAC;AACJ,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAgDnC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,KAKhC,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PrepareUserOperationInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
network: Schema.Literals([
|
|
9
|
+
"base-sepolia",
|
|
10
|
+
"base",
|
|
11
|
+
"arbitrum",
|
|
12
|
+
"optimism",
|
|
13
|
+
"zora",
|
|
14
|
+
"polygon",
|
|
15
|
+
"bnb",
|
|
16
|
+
"avalanche",
|
|
17
|
+
"ethereum",
|
|
18
|
+
"ethereum-sepolia",
|
|
19
|
+
]),
|
|
20
|
+
calls: Schema.Array(Schema.Struct({
|
|
21
|
+
to: Schema.String,
|
|
22
|
+
value: Schema.String,
|
|
23
|
+
data: Schema.String,
|
|
24
|
+
overrideGasLimit: Schema.optional(Schema.String),
|
|
25
|
+
})),
|
|
26
|
+
paymasterUrl: Schema.optional(Schema.Struct({})),
|
|
27
|
+
dataSuffix: Schema.optional(Schema.String),
|
|
28
|
+
}).pipe(T.Http({
|
|
29
|
+
method: "POST",
|
|
30
|
+
path: "/v2/evm/smart-accounts/{address}/user-operations",
|
|
31
|
+
}));
|
|
32
|
+
// Output Schema
|
|
33
|
+
export const PrepareUserOperationOutput =
|
|
34
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
35
|
+
network: Schema.Literals([
|
|
36
|
+
"base-sepolia",
|
|
37
|
+
"base",
|
|
38
|
+
"arbitrum",
|
|
39
|
+
"optimism",
|
|
40
|
+
"zora",
|
|
41
|
+
"polygon",
|
|
42
|
+
"bnb",
|
|
43
|
+
"avalanche",
|
|
44
|
+
"ethereum",
|
|
45
|
+
"ethereum-sepolia",
|
|
46
|
+
]),
|
|
47
|
+
userOpHash: Schema.String,
|
|
48
|
+
calls: Schema.Array(Schema.Struct({
|
|
49
|
+
to: Schema.String,
|
|
50
|
+
value: Schema.String,
|
|
51
|
+
data: Schema.String,
|
|
52
|
+
overrideGasLimit: Schema.optional(Schema.String),
|
|
53
|
+
})),
|
|
54
|
+
status: Schema.Literals([
|
|
55
|
+
"pending",
|
|
56
|
+
"signed",
|
|
57
|
+
"broadcast",
|
|
58
|
+
"complete",
|
|
59
|
+
"dropped",
|
|
60
|
+
"failed",
|
|
61
|
+
]),
|
|
62
|
+
transactionHash: Schema.optional(Schema.String),
|
|
63
|
+
receipts: Schema.optional(Schema.Array(Schema.Struct({
|
|
64
|
+
revert: Schema.optional(Schema.Struct({
|
|
65
|
+
data: Schema.String,
|
|
66
|
+
message: Schema.String,
|
|
67
|
+
})),
|
|
68
|
+
transactionHash: Schema.optional(Schema.String),
|
|
69
|
+
blockHash: Schema.optional(Schema.String),
|
|
70
|
+
blockNumber: Schema.optional(Schema.Number),
|
|
71
|
+
gasUsed: Schema.optional(Schema.String),
|
|
72
|
+
}))),
|
|
73
|
+
});
|
|
74
|
+
// The operation
|
|
75
|
+
/**
|
|
76
|
+
* Prepare a user operation
|
|
77
|
+
*
|
|
78
|
+
* Prepares a new user operation on a Smart Account for a specific network.
|
|
79
|
+
*
|
|
80
|
+
* @param address - The address of the Smart Account to create the user operation on.
|
|
81
|
+
*/
|
|
82
|
+
export const prepareUserOperation = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
83
|
+
inputSchema: PrepareUserOperationInput,
|
|
84
|
+
outputSchema: PrepareUserOperationOutput,
|
|
85
|
+
}));
|
|
86
|
+
//# sourceMappingURL=prepareUserOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareUserOperation.js","sourceRoot":"","sources":["../../src/operations/prepareUserOperation.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const RequestEvmFaucetInput: Schema.Struct<{
|
|
3
|
+
readonly network: Schema.Literals<readonly ["base-sepolia", "ethereum-sepolia", "ethereum-hoodi"]>;
|
|
4
|
+
readonly address: Schema.String;
|
|
5
|
+
readonly token: Schema.Literals<readonly ["eth", "usdc", "eurc", "cbbtc"]>;
|
|
6
|
+
}>;
|
|
7
|
+
export type RequestEvmFaucetInput = typeof RequestEvmFaucetInput.Type;
|
|
8
|
+
export declare const RequestEvmFaucetOutput: Schema.Struct<{
|
|
9
|
+
readonly transactionHash: Schema.String;
|
|
10
|
+
}>;
|
|
11
|
+
export type RequestEvmFaucetOutput = typeof RequestEvmFaucetOutput.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Request funds on EVM test networks
|
|
14
|
+
*
|
|
15
|
+
* Request funds from the CDP Faucet on supported EVM test networks.
|
|
16
|
+
* Faucets are available for ETH, USDC, EURC, and cbBTC on Base Sepolia and Ethereum Sepolia, and for ETH only on Ethereum Hoodi.
|
|
17
|
+
* To prevent abuse, we enforce rate limits within a rolling 24-hour window to control the amount of funds that can be requested.
|
|
18
|
+
* These limits are applied at both the CDP User level and the blockchain address level.
|
|
19
|
+
* A single blockchain address cannot exceed the specified limits, even if multiple users submit requests to the same address.
|
|
20
|
+
*/
|
|
21
|
+
export declare const requestEvmFaucet: any;
|
|
22
|
+
//# sourceMappingURL=requestEvmFaucet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestEvmFaucet.d.ts","sourceRoot":"","sources":["../../src/operations/requestEvmFaucet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB;;;;EAQyB,CAAC;AAC5D,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB;;EAIlC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const RequestEvmFaucetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
network: Schema.Literals([
|
|
7
|
+
"base-sepolia",
|
|
8
|
+
"ethereum-sepolia",
|
|
9
|
+
"ethereum-hoodi",
|
|
10
|
+
]),
|
|
11
|
+
address: Schema.String,
|
|
12
|
+
token: Schema.Literals(["eth", "usdc", "eurc", "cbbtc"]),
|
|
13
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/evm/faucet" }));
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const RequestEvmFaucetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
transactionHash: Schema.String,
|
|
17
|
+
});
|
|
18
|
+
// The operation
|
|
19
|
+
/**
|
|
20
|
+
* Request funds on EVM test networks
|
|
21
|
+
*
|
|
22
|
+
* Request funds from the CDP Faucet on supported EVM test networks.
|
|
23
|
+
* Faucets are available for ETH, USDC, EURC, and cbBTC on Base Sepolia and Ethereum Sepolia, and for ETH only on Ethereum Hoodi.
|
|
24
|
+
* To prevent abuse, we enforce rate limits within a rolling 24-hour window to control the amount of funds that can be requested.
|
|
25
|
+
* These limits are applied at both the CDP User level and the blockchain address level.
|
|
26
|
+
* A single blockchain address cannot exceed the specified limits, even if multiple users submit requests to the same address.
|
|
27
|
+
*/
|
|
28
|
+
export const requestEvmFaucet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
29
|
+
inputSchema: RequestEvmFaucetInput,
|
|
30
|
+
outputSchema: RequestEvmFaucetOutput,
|
|
31
|
+
}));
|
|
32
|
+
//# sourceMappingURL=requestEvmFaucet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestEvmFaucet.js","sourceRoot":"","sources":["../../src/operations/requestEvmFaucet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC7E,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;QACvB,cAAc;QACd,kBAAkB;QAClB,gBAAgB;KACjB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;CACzD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAG5D,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,eAAe,EAAE,MAAM,CAAC,MAAM;CAC/B,CACF,CAAC;AAGF,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const RequestSolanaFaucetInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
readonly token: Schema.Literals<readonly ["sol", "usdc"]>;
|
|
5
|
+
}>;
|
|
6
|
+
export type RequestSolanaFaucetInput = typeof RequestSolanaFaucetInput.Type;
|
|
7
|
+
export declare const RequestSolanaFaucetOutput: Schema.Struct<{
|
|
8
|
+
readonly transactionSignature: Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
export type RequestSolanaFaucetOutput = typeof RequestSolanaFaucetOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Request funds on Solana devnet
|
|
13
|
+
*
|
|
14
|
+
* Request funds from the CDP Faucet on Solana devnet.
|
|
15
|
+
* Faucets are available for SOL.
|
|
16
|
+
* To prevent abuse, we enforce rate limits within a rolling 24-hour window to control the amount of funds that can be requested.
|
|
17
|
+
* These limits are applied at both the CDP Project level and the blockchain address level.
|
|
18
|
+
* A single blockchain address cannot exceed the specified limits, even if multiple users submit requests to the same address.
|
|
19
|
+
*/
|
|
20
|
+
export declare const requestSolanaFaucet: any;
|
|
21
|
+
//# sourceMappingURL=requestSolanaFaucet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestSolanaFaucet.d.ts","sourceRoot":"","sources":["../../src/operations/requestSolanaFaucet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,wBAAwB;;;EAI2B,CAAC;AACjE,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;EAGlC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,KAG7B,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const RequestSolanaFaucetInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
address: Schema.String,
|
|
8
|
+
token: Schema.Literals(["sol", "usdc"]),
|
|
9
|
+
}).pipe(T.Http({ method: "POST", path: "/v2/solana/faucet" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const RequestSolanaFaucetOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
transactionSignature: Schema.String,
|
|
14
|
+
});
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Request funds on Solana devnet
|
|
18
|
+
*
|
|
19
|
+
* Request funds from the CDP Faucet on Solana devnet.
|
|
20
|
+
* Faucets are available for SOL.
|
|
21
|
+
* To prevent abuse, we enforce rate limits within a rolling 24-hour window to control the amount of funds that can be requested.
|
|
22
|
+
* These limits are applied at both the CDP Project level and the blockchain address level.
|
|
23
|
+
* A single blockchain address cannot exceed the specified limits, even if multiple users submit requests to the same address.
|
|
24
|
+
*/
|
|
25
|
+
export const requestSolanaFaucet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
26
|
+
inputSchema: RequestSolanaFaucetInput,
|
|
27
|
+
outputSchema: RequestSolanaFaucetOutput,
|
|
28
|
+
}));
|
|
29
|
+
//# sourceMappingURL=requestSolanaFaucet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestSolanaFaucet.js","sourceRoot":"","sources":["../../src/operations/requestSolanaFaucet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,wBAAwB;AACnC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC;AAGjE,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,oBAAoB,EAAE,MAAM,CAAC,MAAM;CACpC,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const RevokeSpendPermissionInput: Schema.Struct<{
|
|
3
|
+
readonly address: Schema.String;
|
|
4
|
+
readonly network: Schema.Literals<readonly ["base", "base-sepolia", "ethereum", "ethereum-sepolia", "optimism", "arbitrum", "avalanche", "polygon"]>;
|
|
5
|
+
readonly permissionHash: Schema.String;
|
|
6
|
+
readonly paymasterUrl: Schema.optional<Schema.Struct<{}>>;
|
|
7
|
+
}>;
|
|
8
|
+
export type RevokeSpendPermissionInput = typeof RevokeSpendPermissionInput.Type;
|
|
9
|
+
export declare const RevokeSpendPermissionOutput: Schema.Struct<{
|
|
10
|
+
readonly network: Schema.Literals<readonly ["base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"]>;
|
|
11
|
+
readonly userOpHash: Schema.String;
|
|
12
|
+
readonly calls: Schema.$Array<Schema.Struct<{
|
|
13
|
+
readonly to: Schema.String;
|
|
14
|
+
readonly value: Schema.String;
|
|
15
|
+
readonly data: Schema.String;
|
|
16
|
+
readonly overrideGasLimit: Schema.optional<Schema.String>;
|
|
17
|
+
}>>;
|
|
18
|
+
readonly status: Schema.Literals<readonly ["pending", "signed", "broadcast", "complete", "dropped", "failed"]>;
|
|
19
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
20
|
+
readonly receipts: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
21
|
+
readonly revert: Schema.optional<Schema.Struct<{
|
|
22
|
+
readonly data: Schema.String;
|
|
23
|
+
readonly message: Schema.String;
|
|
24
|
+
}>>;
|
|
25
|
+
readonly transactionHash: Schema.optional<Schema.String>;
|
|
26
|
+
readonly blockHash: Schema.optional<Schema.String>;
|
|
27
|
+
readonly blockNumber: Schema.optional<Schema.Number>;
|
|
28
|
+
readonly gasUsed: Schema.optional<Schema.String>;
|
|
29
|
+
}>>>;
|
|
30
|
+
}>;
|
|
31
|
+
export type RevokeSpendPermissionOutput = typeof RevokeSpendPermissionOutput.Type;
|
|
32
|
+
/**
|
|
33
|
+
* Revoke a spend permission
|
|
34
|
+
*
|
|
35
|
+
* Revokes an existing spend permission.
|
|
36
|
+
*
|
|
37
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
38
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
39
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
40
|
+
|
|
41
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
42
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
43
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
44
|
+
|
|
45
|
+
* @param address - The address of the Smart account this spend permission is valid for.
|
|
46
|
+
*/
|
|
47
|
+
export declare const revokeSpendPermission: any;
|
|
48
|
+
//# sourceMappingURL=revokeSpendPermission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeSpendPermission.d.ts","sourceRoot":"","sources":["../../src/operations/revokeSpendPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,0BAA0B;;;;;EAoBpC,CAAC;AACJ,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;EAgDpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,KAKjC,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const RevokeSpendPermissionInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
address: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
network: Schema.Literals([
|
|
9
|
+
"base",
|
|
10
|
+
"base-sepolia",
|
|
11
|
+
"ethereum",
|
|
12
|
+
"ethereum-sepolia",
|
|
13
|
+
"optimism",
|
|
14
|
+
"arbitrum",
|
|
15
|
+
"avalanche",
|
|
16
|
+
"polygon",
|
|
17
|
+
]),
|
|
18
|
+
permissionHash: Schema.String,
|
|
19
|
+
paymasterUrl: Schema.optional(Schema.Struct({})),
|
|
20
|
+
}).pipe(T.Http({
|
|
21
|
+
method: "POST",
|
|
22
|
+
path: "/v2/evm/smart-accounts/{address}/spend-permissions/revoke",
|
|
23
|
+
}));
|
|
24
|
+
// Output Schema
|
|
25
|
+
export const RevokeSpendPermissionOutput =
|
|
26
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
27
|
+
network: Schema.Literals([
|
|
28
|
+
"base-sepolia",
|
|
29
|
+
"base",
|
|
30
|
+
"arbitrum",
|
|
31
|
+
"optimism",
|
|
32
|
+
"zora",
|
|
33
|
+
"polygon",
|
|
34
|
+
"bnb",
|
|
35
|
+
"avalanche",
|
|
36
|
+
"ethereum",
|
|
37
|
+
"ethereum-sepolia",
|
|
38
|
+
]),
|
|
39
|
+
userOpHash: Schema.String,
|
|
40
|
+
calls: Schema.Array(Schema.Struct({
|
|
41
|
+
to: Schema.String,
|
|
42
|
+
value: Schema.String,
|
|
43
|
+
data: Schema.String,
|
|
44
|
+
overrideGasLimit: Schema.optional(Schema.String),
|
|
45
|
+
})),
|
|
46
|
+
status: Schema.Literals([
|
|
47
|
+
"pending",
|
|
48
|
+
"signed",
|
|
49
|
+
"broadcast",
|
|
50
|
+
"complete",
|
|
51
|
+
"dropped",
|
|
52
|
+
"failed",
|
|
53
|
+
]),
|
|
54
|
+
transactionHash: Schema.optional(Schema.String),
|
|
55
|
+
receipts: Schema.optional(Schema.Array(Schema.Struct({
|
|
56
|
+
revert: Schema.optional(Schema.Struct({
|
|
57
|
+
data: Schema.String,
|
|
58
|
+
message: Schema.String,
|
|
59
|
+
})),
|
|
60
|
+
transactionHash: Schema.optional(Schema.String),
|
|
61
|
+
blockHash: Schema.optional(Schema.String),
|
|
62
|
+
blockNumber: Schema.optional(Schema.Number),
|
|
63
|
+
gasUsed: Schema.optional(Schema.String),
|
|
64
|
+
}))),
|
|
65
|
+
});
|
|
66
|
+
// The operation
|
|
67
|
+
/**
|
|
68
|
+
* Revoke a spend permission
|
|
69
|
+
*
|
|
70
|
+
* Revokes an existing spend permission.
|
|
71
|
+
*
|
|
72
|
+
* @param X-Wallet-Auth - A JWT signed using your Wallet Secret, encoded in base64. Refer to the
|
|
73
|
+
[Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token)
|
|
74
|
+
section of our Authentication docs for more details on how to generate your Wallet Token.
|
|
75
|
+
|
|
76
|
+
* @param X-Idempotency-Key - An optional string request header for making requests safely retryable.
|
|
77
|
+
When included, duplicate requests with the same key will return identical responses.
|
|
78
|
+
Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys.
|
|
79
|
+
|
|
80
|
+
* @param address - The address of the Smart account this spend permission is valid for.
|
|
81
|
+
*/
|
|
82
|
+
export const revokeSpendPermission = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
83
|
+
inputSchema: RevokeSpendPermissionInput,
|
|
84
|
+
outputSchema: RevokeSpendPermissionOutput,
|
|
85
|
+
}));
|
|
86
|
+
//# sourceMappingURL=revokeSpendPermission.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeSpendPermission.js","sourceRoot":"","sources":["../../src/operations/revokeSpendPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;QACvB,MAAM;QACN,cAAc;QACd,UAAU;QACV,kBAAkB;QAClB,UAAU;QACV,UAAU;QACV,WAAW;QACX,SAAS;KACV,CAAC;IACF,cAAc,EAAE,MAAM,CAAC,MAAM;IAC7B,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CACjD,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,2DAA2D;CAClE,CAAC,CACH,CAAC;AAGJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC;QACvB,cAAc;QACd,MAAM;QACN,UAAU;QACV,UAAU;QACV,MAAM;QACN,SAAS;QACT,KAAK;QACL,WAAW;QACX,UAAU;QACV,kBAAkB;KACnB,CAAC;IACF,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,KAAK,EAAE,MAAM,CAAC,KAAK,CACjB,MAAM,CAAC,MAAM,CAAC;QACZ,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,KAAK,EAAE,MAAM,CAAC,MAAM;QACpB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACjD,CAAC,CACH;IACD,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;QACtB,SAAS;QACT,QAAQ;QACR,WAAW;QACX,UAAU;QACV,SAAS;QACT,QAAQ;KACT,CAAC;IACF,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,MAAM,CAAC,QAAQ,CACvB,MAAM,CAAC,KAAK,CACV,MAAM,CAAC,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,OAAO,EAAE,MAAM,CAAC,MAAM;SACvB,CAAC,CACH;QACD,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC/C,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3C,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;KACxC,CAAC,CACH,CACF;CACF,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACvE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,2BAA2B;CAC1C,CAAC,CACH,CAAC"}
|