@coinbase/cdp-sdk 1.1.2 → 1.3.0
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/CHANGELOG.md +91 -0
- package/LICENSE +21 -0
- package/README.md +88 -1
- package/{dist → _cjs}/accounts/evm/toEvmServerAccount.js +1 -0
- package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -0
- package/{dist → _cjs}/accounts/evm/toEvmSmartAccount.js +1 -0
- package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -0
- package/{dist → _cjs}/accounts/types.js +1 -0
- package/_cjs/accounts/types.js.map +1 -0
- package/{dist → _cjs}/actions/evm/sendUserOperation.js +1 -0
- package/_cjs/actions/evm/sendUserOperation.js.map +1 -0
- package/{dist → _cjs}/actions/evm/waitForUserOperation.js +10 -9
- package/_cjs/actions/evm/waitForUserOperation.js.map +1 -0
- package/{dist → _cjs}/analytics.js +32 -12
- package/_cjs/analytics.js.map +1 -0
- package/{dist → _cjs}/auth/errors.js +1 -0
- package/_cjs/auth/errors.js.map +1 -0
- package/{dist → _cjs}/auth/hooks/axios/index.js +2 -1
- package/_cjs/auth/hooks/axios/index.js.map +1 -0
- package/{dist → _cjs}/auth/hooks/axios/withAuth.js +4 -2
- package/_cjs/auth/hooks/axios/withAuth.js.map +1 -0
- package/{dist → _cjs}/auth/index.js +4 -3
- package/_cjs/auth/index.js.map +1 -0
- package/{dist → _cjs}/auth/utils/http.js +6 -5
- package/_cjs/auth/utils/http.js.map +1 -0
- package/{dist → _cjs}/auth/utils/index.js +3 -2
- package/_cjs/auth/utils/index.js.map +1 -0
- package/{dist → _cjs}/auth/utils/jwt.js +4 -3
- package/_cjs/auth/utils/jwt.js.map +1 -0
- package/_cjs/client/cdp.js +101 -0
- package/_cjs/client/cdp.js.map +1 -0
- package/_cjs/client/evm/evm.js +641 -0
- package/_cjs/client/evm/evm.js.map +1 -0
- package/{dist → _cjs}/client/evm/evm.types.js +1 -0
- package/_cjs/client/evm/evm.types.js.map +1 -0
- package/{dist → _cjs}/client/solana/index.js +3 -2
- package/_cjs/client/solana/index.js.map +1 -0
- package/{dist → _cjs}/client/solana/solana.js +9 -8
- package/_cjs/client/solana/solana.js.map +1 -0
- package/{dist → _cjs}/client/solana/solana.types.js +1 -0
- package/_cjs/client/solana/solana.types.js.map +1 -0
- package/{dist → _cjs}/constants.js +1 -0
- package/_cjs/constants.js.map +1 -0
- package/{dist → _cjs}/errors.js +1 -0
- package/_cjs/errors.js.map +1 -0
- package/{dist → _cjs}/index.js +4 -3
- package/_cjs/index.js.map +1 -0
- package/_cjs/openapi-client/cdpApiClient.js +116 -0
- package/_cjs/openapi-client/cdpApiClient.js.map +1 -0
- package/{dist → _cjs}/openapi-client/errors.js +44 -3
- package/_cjs/openapi-client/errors.js.map +1 -0
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +66 -0
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -0
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +125 -0
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -0
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js +160 -0
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +1 -0
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +70 -0
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -0
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +188 -0
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +1 -0
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js +15 -0
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -0
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +45 -0
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +1 -0
- package/{dist → _cjs}/openapi-client/generated/faucets/faucets.js +20 -14
- package/_cjs/openapi-client/generated/faucets/faucets.js.map +1 -0
- package/{dist → _cjs}/openapi-client/generated/faucets/faucets.msw.js +16 -12
- package/_cjs/openapi-client/generated/faucets/faucets.msw.js.map +1 -0
- package/{dist → _cjs}/openapi-client/generated/index.msw.js +6 -4
- package/_cjs/openapi-client/generated/index.msw.js.map +1 -0
- package/{dist → _cjs}/openapi-client/generated/solana-accounts/solana-accounts.js +38 -35
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -0
- package/{dist → _cjs}/openapi-client/generated/solana-accounts/solana-accounts.msw.js +68 -35
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +1 -0
- package/{dist → _cjs}/openapi-client/index.js +16 -11
- package/_cjs/openapi-client/index.js.map +1 -0
- package/_cjs/package.json +1 -0
- package/{dist → _cjs}/types/calls.js +1 -0
- package/_cjs/types/calls.js.map +1 -0
- package/{dist → _cjs}/types/contract.js +1 -0
- package/_cjs/types/contract.js.map +1 -0
- package/{dist → _cjs}/types/misc.js +1 -0
- package/_cjs/types/misc.js.map +1 -0
- package/{dist → _cjs}/types/multicall.js +1 -0
- package/_cjs/types/multicall.js.map +1 -0
- package/{dist → _cjs}/types/utils.js +1 -0
- package/_cjs/types/utils.js.map +1 -0
- package/{dist → _cjs}/utils/wait.js +3 -2
- package/_cjs/utils/wait.js.map +1 -0
- package/_cjs/version.js +5 -0
- package/_cjs/version.js.map +1 -0
- package/_esm/accounts/evm/toEvmServerAccount.js +40 -0
- package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -0
- package/_esm/accounts/evm/toEvmSmartAccount.js +22 -0
- package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -0
- package/_esm/accounts/types.js +2 -0
- package/_esm/accounts/types.js.map +1 -0
- package/_esm/actions/evm/sendUserOperation.js +85 -0
- package/_esm/actions/evm/sendUserOperation.js.map +1 -0
- package/_esm/actions/evm/waitForUserOperation.js +58 -0
- package/_esm/actions/evm/waitForUserOperation.js.map +1 -0
- package/_esm/analytics.js +101 -0
- package/_esm/analytics.js.map +1 -0
- package/_esm/auth/errors.js +57 -0
- package/_esm/auth/errors.js.map +1 -0
- package/_esm/auth/hooks/axios/index.js +2 -0
- package/_esm/auth/hooks/axios/index.js.map +1 -0
- package/_esm/auth/hooks/axios/withAuth.js +72 -0
- package/_esm/auth/hooks/axios/withAuth.js.map +1 -0
- package/_esm/auth/index.js +5 -0
- package/_esm/auth/index.js.map +1 -0
- package/_esm/auth/utils/http.js +70 -0
- package/_esm/auth/utils/http.js.map +1 -0
- package/_esm/auth/utils/index.js +3 -0
- package/_esm/auth/utils/index.js.map +1 -0
- package/_esm/auth/utils/jwt.js +199 -0
- package/_esm/auth/utils/jwt.js.map +1 -0
- package/{dist → _esm}/client/cdp.js +16 -13
- package/_esm/client/cdp.js.map +1 -0
- package/{dist → _esm}/client/evm/evm.js +146 -30
- package/_esm/client/evm/evm.js.map +1 -0
- package/_esm/client/evm/evm.types.js +2 -0
- package/_esm/client/evm/evm.types.js.map +1 -0
- package/_esm/client/solana/index.js +2 -0
- package/_esm/client/solana/index.js.map +1 -0
- package/_esm/client/solana/solana.js +204 -0
- package/_esm/client/solana/solana.js.map +1 -0
- package/_esm/client/solana/solana.types.js +2 -0
- package/_esm/client/solana/solana.types.js.map +1 -0
- package/_esm/constants.js +5 -0
- package/_esm/constants.js.map +1 -0
- package/_esm/errors.js +18 -0
- package/_esm/errors.js.map +1 -0
- package/_esm/index.js +3 -0
- package/_esm/index.js.map +1 -0
- package/_esm/openapi-client/cdpApiClient.js +108 -0
- package/_esm/openapi-client/cdpApiClient.js.map +1 -0
- package/_esm/openapi-client/errors.js +104 -0
- package/_esm/openapi-client/errors.js.map +1 -0
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +63 -0
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -0
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +114 -0
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -0
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js +140 -0
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +1 -0
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +61 -0
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -0
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +172 -0
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +1 -0
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js +11 -0
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.js.map +1 -0
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +39 -0
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +1 -0
- package/_esm/openapi-client/generated/faucets/faucets.js +52 -0
- package/_esm/openapi-client/generated/faucets/faucets.js.map +1 -0
- package/_esm/openapi-client/generated/faucets/faucets.msw.js +39 -0
- package/_esm/openapi-client/generated/faucets/faucets.msw.js.map +1 -0
- package/_esm/openapi-client/generated/index.msw.js +6 -0
- package/_esm/openapi-client/generated/index.msw.js.map +1 -0
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js +73 -0
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -0
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js +116 -0
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +1 -0
- package/_esm/openapi-client/index.js +31 -0
- package/_esm/openapi-client/index.js.map +1 -0
- package/_esm/package.json +1 -0
- package/_esm/types/calls.js +4 -0
- package/_esm/types/calls.js.map +1 -0
- package/_esm/types/contract.js +4 -0
- package/_esm/types/contract.js.map +1 -0
- package/_esm/types/misc.js +3 -0
- package/_esm/types/misc.js.map +1 -0
- package/_esm/types/multicall.js +2 -0
- package/_esm/types/multicall.js.map +1 -0
- package/_esm/types/utils.js +4 -0
- package/_esm/types/utils.js.map +1 -0
- package/_esm/utils/wait.js +32 -0
- package/_esm/utils/wait.js.map +1 -0
- package/_esm/version.js +2 -0
- package/_esm/version.js.map +1 -0
- package/{dist → _types}/accounts/evm/toEvmServerAccount.d.ts +3 -2
- package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -0
- package/{dist → _types}/accounts/evm/toEvmSmartAccount.d.ts +3 -2
- package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -0
- package/{dist → _types}/accounts/types.d.ts +3 -2
- package/_types/accounts/types.d.ts.map +1 -0
- package/{dist → _types}/actions/evm/sendUserOperation.d.ts +5 -5
- package/_types/actions/evm/sendUserOperation.d.ts.map +1 -0
- package/{dist → _types}/actions/evm/waitForUserOperation.d.ts +4 -3
- package/_types/actions/evm/waitForUserOperation.d.ts.map +1 -0
- package/{dist → _types}/analytics.d.ts +16 -0
- package/_types/analytics.d.ts.map +1 -0
- package/{dist → _types}/auth/errors.d.ts +1 -0
- package/_types/auth/errors.d.ts.map +1 -0
- package/_types/auth/hooks/axios/index.d.ts +2 -0
- package/_types/auth/hooks/axios/index.d.ts.map +1 -0
- package/{dist → _types}/auth/hooks/axios/withAuth.d.ts +1 -0
- package/_types/auth/hooks/axios/withAuth.d.ts.map +1 -0
- package/_types/auth/index.d.ts +5 -0
- package/_types/auth/index.d.ts.map +1 -0
- package/{dist → _types}/auth/utils/http.d.ts +1 -0
- package/_types/auth/utils/http.d.ts.map +1 -0
- package/_types/auth/utils/index.d.ts +3 -0
- package/_types/auth/utils/index.d.ts.map +1 -0
- package/{dist → _types}/auth/utils/jwt.d.ts +1 -0
- package/_types/auth/utils/jwt.d.ts.map +1 -0
- package/{dist → _types}/client/cdp.d.ts +3 -2
- package/_types/client/cdp.d.ts.map +1 -0
- package/{dist → _types}/client/evm/evm.d.ts +86 -3
- package/_types/client/evm/evm.d.ts.map +1 -0
- package/{dist → _types}/client/evm/evm.types.d.ts +104 -7
- package/_types/client/evm/evm.types.d.ts.map +1 -0
- package/_types/client/solana/index.d.ts +2 -0
- package/_types/client/solana/index.d.ts.map +1 -0
- package/{dist → _types}/client/solana/solana.d.ts +2 -1
- package/_types/client/solana/solana.d.ts.map +1 -0
- package/{dist → _types}/client/solana/solana.types.d.ts +2 -1
- package/_types/client/solana/solana.types.d.ts.map +1 -0
- package/{dist → _types}/constants.d.ts +1 -0
- package/_types/constants.d.ts.map +1 -0
- package/{dist → _types}/errors.d.ts +1 -0
- package/_types/errors.d.ts.map +1 -0
- package/_types/index.d.ts +4 -0
- package/_types/index.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/cdpApiClient.d.ts +1 -0
- package/_types/openapi-client/cdpApiClient.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/errors.d.ts +30 -2
- package/_types/openapi-client/errors.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +100 -14
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -0
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +91 -0
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts +5 -2
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +22 -20
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts +3 -2
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts.map +1 -0
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts +20 -0
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.d.ts.map +1 -0
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts +6 -0
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/generated/faucets/faucets.d.ts +11 -9
- package/_types/openapi-client/generated/faucets/faucets.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/generated/faucets/faucets.msw.d.ts +3 -2
- package/_types/openapi-client/generated/faucets/faucets.msw.d.ts.map +1 -0
- package/_types/openapi-client/generated/index.msw.d.ts +6 -0
- package/_types/openapi-client/generated/index.msw.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/generated/solana-accounts/solana-accounts.d.ts +21 -20
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -0
- package/{dist → _types}/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts +3 -2
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts.map +1 -0
- package/_types/openapi-client/index.d.ts +61 -0
- package/_types/openapi-client/index.d.ts.map +1 -0
- package/{dist → _types}/types/calls.d.ts +4 -3
- package/_types/types/calls.d.ts.map +1 -0
- package/{dist → _types}/types/contract.d.ts +3 -2
- package/_types/types/contract.d.ts.map +1 -0
- package/_types/types/misc.d.ts +41 -0
- package/_types/types/misc.d.ts.map +1 -0
- package/{dist → _types}/types/multicall.d.ts +2 -1
- package/_types/types/multicall.d.ts.map +1 -0
- package/{dist → _types}/types/utils.d.ts +1 -0
- package/_types/types/utils.d.ts.map +1 -0
- package/{dist → _types}/utils/wait.d.ts +1 -0
- package/_types/utils/wait.d.ts.map +1 -0
- package/_types/version.d.ts +2 -0
- package/_types/version.d.ts.map +1 -0
- package/accounts/evm/toEvmServerAccount.ts +60 -0
- package/accounts/evm/toEvmSmartAccount.ts +37 -0
- package/accounts/types.ts +53 -0
- package/actions/evm/sendUserOperation.ts +163 -0
- package/actions/evm/waitForUserOperation.ts +115 -0
- package/analytics.ts +142 -0
- package/auth/README.md +145 -0
- package/auth/errors.ts +59 -0
- package/auth/hooks/axios/index.ts +1 -0
- package/auth/hooks/axios/withAuth.ts +121 -0
- package/auth/index.ts +5 -0
- package/auth/utils/http.ts +146 -0
- package/auth/utils/index.ts +2 -0
- package/auth/utils/jwt.ts +324 -0
- package/client/cdp.ts +116 -0
- package/client/evm/evm.ts +739 -0
- package/client/evm/evm.types.ts +408 -0
- package/client/solana/index.ts +1 -0
- package/client/solana/solana.ts +237 -0
- package/client/solana/solana.types.ts +114 -0
- package/constants.ts +4 -0
- package/errors.ts +17 -0
- package/index.ts +4 -0
- package/openapi-client/cdpApiClient.ts +221 -0
- package/openapi-client/errors.ts +132 -0
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +512 -0
- package/openapi-client/generated/evm-accounts/evm-accounts.msw.ts +271 -0
- package/openapi-client/generated/evm-accounts/evm-accounts.ts +194 -0
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts +283 -0
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +132 -0
- package/openapi-client/generated/evm-token-balances/evm-token-balances.msw.ts +57 -0
- package/openapi-client/generated/evm-token-balances/evm-token-balances.ts +37 -0
- package/openapi-client/generated/faucets/faucets.msw.ts +76 -0
- package/openapi-client/generated/faucets/faucets.ts +84 -0
- package/openapi-client/generated/index.msw.ts +5 -0
- package/openapi-client/generated/solana-accounts/solana-accounts.msw.ts +219 -0
- package/openapi-client/generated/solana-accounts/solana-accounts.ts +143 -0
- package/openapi-client/index.ts +36 -0
- package/package.json +31 -66
- package/types/calls.ts +40 -0
- package/types/contract.ts +126 -0
- package/types/misc.ts +44 -0
- package/types/multicall.ts +29 -0
- package/types/utils.ts +288 -0
- package/utils/wait.ts +52 -0
- package/version.ts +1 -0
- package/dist/auth/hooks/axios/index.d.ts +0 -1
- package/dist/auth/index.d.ts +0 -4
- package/dist/auth/utils/index.d.ts +0 -2
- package/dist/client/evm/index.d.ts +0 -1
- package/dist/client/evm/index.js +0 -5
- package/dist/client/solana/index.d.ts +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/openapi-client/cdpApiClient.js +0 -146
- package/dist/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +0 -54
- package/dist/openapi-client/generated/evm-accounts/evm-accounts.d.ts +0 -62
- package/dist/openapi-client/generated/evm-accounts/evm-accounts.js +0 -85
- package/dist/openapi-client/generated/evm-accounts/evm-accounts.msw.js +0 -113
- package/dist/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +0 -66
- package/dist/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +0 -99
- package/dist/openapi-client/generated/index.msw.d.ts +0 -4
- package/dist/openapi-client/index.d.ts +0 -55
- package/dist/types/misc.d.ts +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SolanaClient = void 0;
|
|
4
|
-
const
|
|
4
|
+
const index_js_1 = require("../../openapi-client/index.js");
|
|
5
5
|
/**
|
|
6
6
|
* The namespace containing all Solana methods.
|
|
7
7
|
*/
|
|
@@ -37,7 +37,7 @@ class SolanaClient {
|
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
39
|
async createAccount(options = {}) {
|
|
40
|
-
return
|
|
40
|
+
return index_js_1.CdpOpenApiClient.createSolanaAccount(options, options.idempotencyKey);
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Gets a Solana account by its address.
|
|
@@ -66,10 +66,10 @@ class SolanaClient {
|
|
|
66
66
|
*/
|
|
67
67
|
async getAccount(options) {
|
|
68
68
|
if (options.address) {
|
|
69
|
-
return
|
|
69
|
+
return index_js_1.CdpOpenApiClient.getSolanaAccount(options.address);
|
|
70
70
|
}
|
|
71
71
|
if (options.name) {
|
|
72
|
-
return
|
|
72
|
+
return index_js_1.CdpOpenApiClient.getSolanaAccountByName(options.name);
|
|
73
73
|
}
|
|
74
74
|
throw new Error("Either address or name must be provided");
|
|
75
75
|
}
|
|
@@ -102,7 +102,7 @@ class SolanaClient {
|
|
|
102
102
|
* ```
|
|
103
103
|
*/
|
|
104
104
|
async listAccounts(options = {}) {
|
|
105
|
-
const solAccounts = await
|
|
105
|
+
const solAccounts = await index_js_1.CdpOpenApiClient.listSolanaAccounts({
|
|
106
106
|
pageSize: options.pageSize,
|
|
107
107
|
pageToken: options.pageToken,
|
|
108
108
|
});
|
|
@@ -130,7 +130,7 @@ class SolanaClient {
|
|
|
130
130
|
* ```
|
|
131
131
|
*/
|
|
132
132
|
async requestFaucet(options) {
|
|
133
|
-
const signature = await
|
|
133
|
+
const signature = await index_js_1.CdpOpenApiClient.requestSolanaFaucet({ address: options.address, token: options.token }, options.idempotencyKey);
|
|
134
134
|
return {
|
|
135
135
|
signature: signature.transactionSignature,
|
|
136
136
|
};
|
|
@@ -158,7 +158,7 @@ class SolanaClient {
|
|
|
158
158
|
* ```
|
|
159
159
|
*/
|
|
160
160
|
async signMessage(options) {
|
|
161
|
-
return
|
|
161
|
+
return index_js_1.CdpOpenApiClient.signSolanaMessage(options.address, {
|
|
162
162
|
message: options.message,
|
|
163
163
|
}, options.idempotencyKey);
|
|
164
164
|
}
|
|
@@ -196,7 +196,7 @@ class SolanaClient {
|
|
|
196
196
|
* ```
|
|
197
197
|
*/
|
|
198
198
|
async signTransaction(options) {
|
|
199
|
-
const signature = await
|
|
199
|
+
const signature = await index_js_1.CdpOpenApiClient.signSolanaTransaction(options.address, {
|
|
200
200
|
transaction: options.transaction,
|
|
201
201
|
}, options.idempotencyKey);
|
|
202
202
|
return {
|
|
@@ -205,3 +205,4 @@ class SolanaClient {
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
exports.SolanaClient = SolanaClient;
|
|
208
|
+
//# sourceMappingURL=solana.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solana.js","sourceRoot":"","sources":["../../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c,CACvB,CAAC;QAEF,OAAO;YACL,SAAS,EAAE,SAAS,CAAC,oBAAoB;SAC1C,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,WAAW,CAAC,OAA2B;QAC3C,OAAO,2BAAgB,CAAC,iBAAiB,CACvC,OAAO,CAAC,OAAO,EACf;YACE,OAAO,EAAE,OAAO,CAAC,OAAO;SACzB,EACD,OAAO,CAAC,cAAc,CACvB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,KAAK,CAAC,eAAe,CAAC,OAA+B;QACnD,MAAM,SAAS,GAAG,MAAM,2BAAgB,CAAC,qBAAqB,CAC5D,OAAO,CAAC,OAAO,EACf;YACE,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,EACD,OAAO,CAAC,cAAc,CACvB,CAAC;QAEF,OAAO;YACL,SAAS,EAAE,SAAS,CAAC,iBAAiB;SACvC,CAAC;IACJ,CAAC;CACF;AA3ND,oCA2NC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solana.types.js","sourceRoot":"","sources":["../../../client/solana/solana.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../constants.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,mBAAmB,GAAG,kDAAkD,CAAC"}
|
package/{dist → _cjs}/errors.js
RENAMED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../errors.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAa,YAAa,SAAQ,KAAK;IACrC;;;;OAIG;IACH,YAAY,UAAkB,eAAe;QAC3C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC5B,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAC9C,CAAC;IACH,CAAC;CACF;AAbD,oCAaC"}
|
package/{dist → _cjs}/index.js
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CdpClient = void 0;
|
|
4
|
-
require("./analytics");
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "CdpClient", { enumerable: true, get: function () { return
|
|
4
|
+
require("./analytics.js");
|
|
5
|
+
var cdp_js_1 = require("./client/cdp.js");
|
|
6
|
+
Object.defineProperty(exports, "CdpClient", { enumerable: true, get: function () { return cdp_js_1.CdpClient; } });
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,0BAAwB;AAExB,0CAA4C;AAAnC,mGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.cdpApiClient = exports.configure = void 0;
|
|
7
|
+
// eslint-disable-next-line import/no-named-as-default
|
|
8
|
+
const axios_1 = __importDefault(require("axios"));
|
|
9
|
+
const index_js_1 = require("../auth/hooks/axios/index.js");
|
|
10
|
+
const constants_js_1 = require("../constants.js");
|
|
11
|
+
const errors_js_1 = require("./errors.js");
|
|
12
|
+
let axiosInstance;
|
|
13
|
+
/**
|
|
14
|
+
* Configures the CDP client with the given options.
|
|
15
|
+
*
|
|
16
|
+
* @param {CdpOptions} options - The CDP options.
|
|
17
|
+
*/
|
|
18
|
+
const configure = (options) => {
|
|
19
|
+
axiosInstance = axios_1.default.create({
|
|
20
|
+
baseURL: options.basePath || "https://api.cdp.coinbase.com/platform",
|
|
21
|
+
});
|
|
22
|
+
axiosInstance = (0, index_js_1.withAuth)(axiosInstance, {
|
|
23
|
+
apiKeyId: options.apiKeyId,
|
|
24
|
+
apiKeySecret: options.apiKeySecret,
|
|
25
|
+
source: options.source || "sdk-openapi-client",
|
|
26
|
+
sourceVersion: options.sourceVersion,
|
|
27
|
+
walletSecret: options.walletSecret,
|
|
28
|
+
expiresIn: options.expiresIn,
|
|
29
|
+
debug: options.debugging,
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
exports.configure = configure;
|
|
33
|
+
/**
|
|
34
|
+
* Adds an idempotency key to request config if provided
|
|
35
|
+
*
|
|
36
|
+
* @param config - The Axios request configuration.
|
|
37
|
+
* @param idempotencyKey - The idempotency key.
|
|
38
|
+
* @returns The Axios request configuration with the idempotency key.
|
|
39
|
+
*/
|
|
40
|
+
const addIdempotencyKey = (config, idempotencyKey) => {
|
|
41
|
+
if (!idempotencyKey) {
|
|
42
|
+
return config;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
...config,
|
|
46
|
+
headers: {
|
|
47
|
+
...(config.headers || {}),
|
|
48
|
+
"X-Idempotency-Key": idempotencyKey,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Mutates the given Axios request configuration to add the CDP API key signature
|
|
54
|
+
* to the request headers.
|
|
55
|
+
*
|
|
56
|
+
* @param {AxiosRequestConfig} config - The Axios request configuration.
|
|
57
|
+
* @param idempotencyKey - The idempotency key.
|
|
58
|
+
* @returns {Promise<T>} A promise that resolves to the response data.
|
|
59
|
+
* @throws {APIError} If the request fails.
|
|
60
|
+
*/
|
|
61
|
+
const cdpApiClient = async (config, idempotencyKey) => {
|
|
62
|
+
validateCall(config);
|
|
63
|
+
// Add idempotency key to the request headers if provided
|
|
64
|
+
const configWithIdempotencyKey = addIdempotencyKey(config, idempotencyKey);
|
|
65
|
+
try {
|
|
66
|
+
const response = await axiosInstance(configWithIdempotencyKey);
|
|
67
|
+
return response.data;
|
|
68
|
+
}
|
|
69
|
+
catch (error) {
|
|
70
|
+
// eslint-disable-next-line import/no-named-as-default-member
|
|
71
|
+
if (axios_1.default.isAxiosError(error) && !error.response) {
|
|
72
|
+
throw new errors_js_1.UnknownApiError(errors_js_1.HttpErrorType.unknown, error.cause instanceof Error ? error.cause.message : error.message, error.cause);
|
|
73
|
+
}
|
|
74
|
+
// eslint-disable-next-line import/no-named-as-default-member
|
|
75
|
+
if (axios_1.default.isAxiosError(error) && error.response) {
|
|
76
|
+
if ((0, errors_js_1.isOpenAPIError)(error.response.data)) {
|
|
77
|
+
throw new errors_js_1.APIError(error.response.status, error.response.data.errorType, error.response.data.errorMessage, error.response.data.correlationId, error.response.data.errorLink, error.cause);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
const statusCode = error.response.status;
|
|
81
|
+
switch (statusCode) {
|
|
82
|
+
case 401:
|
|
83
|
+
throw new errors_js_1.APIError(statusCode, errors_js_1.HttpErrorType.unauthorized, "Unauthorized.", undefined, `${constants_js_1.ERROR_DOCS_PAGE_URL}#unauthorized`, error.cause);
|
|
84
|
+
case 404:
|
|
85
|
+
throw new errors_js_1.APIError(statusCode, errors_js_1.HttpErrorType.not_found, "API not found.", undefined, `${constants_js_1.ERROR_DOCS_PAGE_URL}#not_found`, error.cause);
|
|
86
|
+
case 502:
|
|
87
|
+
throw new errors_js_1.APIError(statusCode, errors_js_1.HttpErrorType.bad_gateway, "Bad gateway.", undefined, `${constants_js_1.ERROR_DOCS_PAGE_URL}`, error.cause);
|
|
88
|
+
case 503:
|
|
89
|
+
throw new errors_js_1.APIError(statusCode, errors_js_1.HttpErrorType.service_unavailable, "Service unavailable. Please try again later.", undefined, `${constants_js_1.ERROR_DOCS_PAGE_URL}`, error.cause);
|
|
90
|
+
default:
|
|
91
|
+
throw new errors_js_1.APIError(statusCode, errors_js_1.HttpErrorType.unexpected_error, "An unexpected error occurred.", undefined, `${constants_js_1.ERROR_DOCS_PAGE_URL}`, error.cause);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
throw new errors_js_1.UnknownError("Something went wrong. Please reach out at https://discord.com/channels/1220414409550336183/1271495764580896789 for help.", error instanceof Error ? error : undefined);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
exports.cdpApiClient = cdpApiClient;
|
|
99
|
+
/**
|
|
100
|
+
* Validates the call to the cdpApiClient.
|
|
101
|
+
*
|
|
102
|
+
* @param {AxiosRequestConfig} config - The Axios request configuration.
|
|
103
|
+
* @throws {Error} If the call is not valid.
|
|
104
|
+
*/
|
|
105
|
+
const validateCall = (config) => {
|
|
106
|
+
if (!axiosInstance.getUri() || axiosInstance.getUri() === "") {
|
|
107
|
+
throw new Error("CDP client URI not configured. Call configure() first.");
|
|
108
|
+
}
|
|
109
|
+
if (!config.url || config.url === "") {
|
|
110
|
+
throw new Error("AxiosRequestConfig URL is empty. This should never happen.");
|
|
111
|
+
}
|
|
112
|
+
if (!config.method || config.method === "") {
|
|
113
|
+
throw new Error("AxiosRequestConfig method is empty. This should never happen.");
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=cdpApiClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdpApiClient.js","sourceRoot":"","sources":["../../openapi-client/cdpApiClient.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAsD;AACtD,kDAAiE;AAEjE,2DAAwD;AACxD,kDAAsD;AACtD,2CAMqB;AA2CrB,IAAI,aAA4B,CAAC;AAEjC;;;;GAIG;AACI,MAAM,SAAS,GAAG,CAAC,OAAmB,EAAE,EAAE;IAC/C,aAAa,GAAG,eAAK,CAAC,MAAM,CAAC;QAC3B,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,uCAAuC;KAC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
|
-
exports.APIError = exports.HttpErrorType = void 0;
|
|
3
|
+
exports.UnknownError = exports.UnknownApiError = exports.APIError = exports.HttpErrorType = void 0;
|
|
4
4
|
exports.isOpenAPIError = isOpenAPIError;
|
|
5
5
|
exports.HttpErrorType = {
|
|
6
6
|
unexpected_error: "unexpected_error",
|
|
@@ -8,11 +8,17 @@ exports.HttpErrorType = {
|
|
|
8
8
|
not_found: "not_found",
|
|
9
9
|
bad_gateway: "bad_gateway",
|
|
10
10
|
service_unavailable: "service_unavailable",
|
|
11
|
+
unknown: "unknown",
|
|
11
12
|
};
|
|
12
13
|
/**
|
|
13
14
|
* Extended API error that encompasses both OpenAPI errors and other API-related errors
|
|
14
15
|
*/
|
|
15
16
|
class APIError extends Error {
|
|
17
|
+
statusCode;
|
|
18
|
+
errorType;
|
|
19
|
+
errorMessage;
|
|
20
|
+
correlationId;
|
|
21
|
+
errorLink;
|
|
16
22
|
/**
|
|
17
23
|
* Constructor for the APIError class
|
|
18
24
|
*
|
|
@@ -21,9 +27,10 @@ class APIError extends Error {
|
|
|
21
27
|
* @param errorMessage - The error message
|
|
22
28
|
* @param correlationId - The correlation ID
|
|
23
29
|
* @param errorLink - URL to documentation about this error
|
|
30
|
+
* @param cause - The cause of the error
|
|
24
31
|
*/
|
|
25
|
-
constructor(statusCode, errorType, errorMessage, correlationId, errorLink) {
|
|
26
|
-
super(errorMessage);
|
|
32
|
+
constructor(statusCode, errorType, errorMessage, correlationId, errorLink, cause) {
|
|
33
|
+
super(errorMessage, { cause });
|
|
27
34
|
this.name = "APIError";
|
|
28
35
|
this.statusCode = statusCode;
|
|
29
36
|
this.errorType = errorType;
|
|
@@ -54,6 +61,39 @@ class APIError extends Error {
|
|
|
54
61
|
}
|
|
55
62
|
}
|
|
56
63
|
exports.APIError = APIError;
|
|
64
|
+
/**
|
|
65
|
+
* Error thrown when an Axios request is made but no response is received
|
|
66
|
+
*/
|
|
67
|
+
class UnknownApiError extends APIError {
|
|
68
|
+
/**
|
|
69
|
+
* Constructor for the UnknownApiError class
|
|
70
|
+
*
|
|
71
|
+
* @param errorType - The type of error
|
|
72
|
+
* @param errorMessage - The error message
|
|
73
|
+
* @param cause - The cause of the error
|
|
74
|
+
*/
|
|
75
|
+
constructor(errorType, errorMessage, cause) {
|
|
76
|
+
super(0, errorType, errorMessage, undefined, undefined, cause);
|
|
77
|
+
this.name = "UnknownApiError";
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.UnknownApiError = UnknownApiError;
|
|
81
|
+
/**
|
|
82
|
+
* Error thrown when an error is not known
|
|
83
|
+
*/
|
|
84
|
+
class UnknownError extends Error {
|
|
85
|
+
/**
|
|
86
|
+
* Constructor for the UnknownError class
|
|
87
|
+
*
|
|
88
|
+
* @param message - The error message
|
|
89
|
+
* @param cause - The cause of the error
|
|
90
|
+
*/
|
|
91
|
+
constructor(message, cause) {
|
|
92
|
+
super(message, { cause });
|
|
93
|
+
this.name = "UnknownError";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
exports.UnknownError = UnknownError;
|
|
57
97
|
/**
|
|
58
98
|
* Type guard to check if an object is an OpenAPIError
|
|
59
99
|
*
|
|
@@ -68,3 +108,4 @@ function isOpenAPIError(obj) {
|
|
|
68
108
|
"errorMessage" in obj &&
|
|
69
109
|
typeof obj.errorMessage === "string");
|
|
70
110
|
}
|
|
111
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../openapi-client/errors.ts"],"names":[],"mappings":";;;AA0HA,wCASC;AA9HY,QAAA,aAAa,GAAG;IAC3B,gBAAgB,EAAE,kBAAkB;IACpC,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,mBAAmB,EAAE,qBAAqB;IAC1C,OAAO,EAAE,SAAS;CACV,CAAC;AASX;;GAEG;AACH,MAAa,QAAS,SAAQ,KAAK;IACjC,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E,SAAS,EAAE,KAAK,CAAC,CAAC;QAC/D,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AAZD,0CAYC;AAED;;GAEG;AACH,MAAa,YAAa,SAAQ,KAAK;IACrC;;;;;OAKG;IACH,YAAY,OAAe,EAAE,KAAa;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF;AAXD,oCAWC;AAED;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,GAAY;IACzC,OAAO,CACL,GAAG,KAAK,IAAI;QACZ,OAAO,GAAG,KAAK,QAAQ;QACvB,WAAW,IAAI,GAAG;QAClB,OAAQ,GAAoB,CAAC,SAAS,KAAK,QAAQ;QACnD,cAAc,IAAI,GAAG;QACrB,OAAQ,GAAoB,CAAC,YAAY,KAAK,QAAQ,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestSolanaFaucetBodyToken = exports.RequestEvmFaucetBodyToken = exports.RequestEvmFaucetBodyNetwork = exports.PrepareUserOperationBodyNetwork = exports.SendEvmTransactionBodyNetwork = exports.ListEvmTokenBalancesNetwork = exports.EvmUserOperationStatus = exports.EvmUserOperationNetwork = exports.ErrorType = void 0;
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
5
|
+
exports.ErrorType = {
|
|
6
|
+
already_exists: "already_exists",
|
|
7
|
+
faucet_limit_exceeded: "faucet_limit_exceeded",
|
|
8
|
+
forbidden: "forbidden",
|
|
9
|
+
idempotency_error: "idempotency_error",
|
|
10
|
+
internal_server_error: "internal_server_error",
|
|
11
|
+
invalid_request: "invalid_request",
|
|
12
|
+
invalid_signature: "invalid_signature",
|
|
13
|
+
malformed_transaction: "malformed_transaction",
|
|
14
|
+
not_found: "not_found",
|
|
15
|
+
rate_limit_exceeded: "rate_limit_exceeded",
|
|
16
|
+
request_canceled: "request_canceled",
|
|
17
|
+
timed_out: "timed_out",
|
|
18
|
+
unauthorized: "unauthorized",
|
|
19
|
+
policy_violation: "policy_violation",
|
|
20
|
+
};
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
22
|
+
exports.EvmUserOperationNetwork = {
|
|
23
|
+
"base-sepolia": "base-sepolia",
|
|
24
|
+
base: "base",
|
|
25
|
+
};
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
27
|
+
exports.EvmUserOperationStatus = {
|
|
28
|
+
pending: "pending",
|
|
29
|
+
signed: "signed",
|
|
30
|
+
broadcast: "broadcast",
|
|
31
|
+
complete: "complete",
|
|
32
|
+
failed: "failed",
|
|
33
|
+
};
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
35
|
+
exports.ListEvmTokenBalancesNetwork = {
|
|
36
|
+
base: "base",
|
|
37
|
+
"base-sepolia": "base-sepolia",
|
|
38
|
+
};
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
40
|
+
exports.SendEvmTransactionBodyNetwork = {
|
|
41
|
+
base: "base",
|
|
42
|
+
"base-sepolia": "base-sepolia",
|
|
43
|
+
};
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
45
|
+
exports.PrepareUserOperationBodyNetwork = {
|
|
46
|
+
"base-sepolia": "base-sepolia",
|
|
47
|
+
base: "base",
|
|
48
|
+
};
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
50
|
+
exports.RequestEvmFaucetBodyNetwork = {
|
|
51
|
+
"base-sepolia": "base-sepolia",
|
|
52
|
+
"ethereum-sepolia": "ethereum-sepolia",
|
|
53
|
+
};
|
|
54
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
55
|
+
exports.RequestEvmFaucetBodyToken = {
|
|
56
|
+
eth: "eth",
|
|
57
|
+
usdc: "usdc",
|
|
58
|
+
eurc: "eurc",
|
|
59
|
+
cbbtc: "cbbtc",
|
|
60
|
+
};
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
|
62
|
+
exports.RequestSolanaFaucetBodyToken = {
|
|
63
|
+
sol: "sol",
|
|
64
|
+
usdc: "usdc",
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=coinbaseDeveloperPlatformAPIs.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coinbaseDeveloperPlatformAPIs.schemas.js","sourceRoot":"","sources":["../../../openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts"],"names":[],"mappings":";;;AAgCA,2DAA2D;AAC9C,QAAA,SAAS,GAAG;IACvB,cAAc,EAAE,gBAAgB;IAChC,qBAAqB,EAAE,uBAAuB;IAC9C,SAAS,EAAE,WAAW;IACtB,iBAAiB,EAAE,mBAAmB;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;IACtC,qBAAqB,EAAE,uBAAuB;IAC9C,SAAS,EAAE,WAAW;IACtB,mBAAmB,EAAE,qBAAqB;IAC1C,gBAAgB,EAAE,kBAAkB;IACpC,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC;AAqDX,2DAA2D;AAC9C,QAAA,uBAAuB,GAAG;IACrC,cAAc,EAAE,cAAc;IAC9B,IAAI,EAAE,MAAM;CACJ,CAAC;AAQX,2DAA2D;AAC9C,QAAA,sBAAsB,GAAG;IACpC,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC;AA2BX,2DAA2D;AAC9C,QAAA,2BAA2B,GAAG;IACzC,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;CACtB,CAAC;AAgIX,2DAA2D;AAC9C,QAAA,6BAA6B,GAAG;IAC3C,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,cAAc;CACtB,CAAC;AAyEX,2DAA2D;AAC9C,QAAA,+BAA+B,GAAG;IAC7C,cAAc,EAAE,cAAc;IAC9B,IAAI,EAAE,MAAM;CACJ,CAAC;AAwCX,2DAA2D;AAC9C,QAAA,2BAA2B,GAAG;IACzC,cAAc,EAAE,cAAc;IAC9B,kBAAkB,EAAE,kBAAkB;CAC9B,CAAC;AAQX,2DAA2D;AAC9C,QAAA,yBAAyB,GAAG;IACvC,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AA0EX,2DAA2D;AAC9C,QAAA,4BAA4B,GAAG;IAC1C,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.signEvmMessage = exports.signEvmHash = exports.signEvmTransaction = exports.sendEvmTransaction = exports.getEvmAccountByName = exports.getEvmAccount = exports.createEvmAccount = exports.listEvmAccounts = void 0;
|
|
4
|
+
const cdpApiClient_js_1 = require("../../cdpApiClient.js");
|
|
5
|
+
/**
|
|
6
|
+
* Lists the EVM accounts belonging to the developer's CDP Project.
|
|
7
|
+
The response is paginated, and by default, returns 20 accounts per page.
|
|
8
|
+
* @summary List EVM accounts
|
|
9
|
+
*/
|
|
10
|
+
const listEvmAccounts = (params, options) => {
|
|
11
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/accounts`, method: "GET", params }, options);
|
|
12
|
+
};
|
|
13
|
+
exports.listEvmAccounts = listEvmAccounts;
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new EVM account.
|
|
16
|
+
* @summary Create an EVM account
|
|
17
|
+
*/
|
|
18
|
+
const createEvmAccount = (createEvmAccountBody, options) => {
|
|
19
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
20
|
+
url: `/v2/evm/accounts`,
|
|
21
|
+
method: "POST",
|
|
22
|
+
headers: { "Content-Type": "application/json" },
|
|
23
|
+
data: createEvmAccountBody,
|
|
24
|
+
}, options);
|
|
25
|
+
};
|
|
26
|
+
exports.createEvmAccount = createEvmAccount;
|
|
27
|
+
/**
|
|
28
|
+
* Gets an EVM account by its address.
|
|
29
|
+
* @summary Get an EVM account by address
|
|
30
|
+
*/
|
|
31
|
+
const getEvmAccount = (address, options) => {
|
|
32
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/accounts/${address}`, method: "GET" }, options);
|
|
33
|
+
};
|
|
34
|
+
exports.getEvmAccount = getEvmAccount;
|
|
35
|
+
/**
|
|
36
|
+
* Gets an EVM account by its name.
|
|
37
|
+
* @summary Get an EVM account by name
|
|
38
|
+
*/
|
|
39
|
+
const getEvmAccountByName = (name, options) => {
|
|
40
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({ url: `/v2/evm/accounts/by-name/${name}`, method: "GET" }, options);
|
|
41
|
+
};
|
|
42
|
+
exports.getEvmAccountByName = getEvmAccountByName;
|
|
43
|
+
/**
|
|
44
|
+
* Signs a transaction with the given EVM account and sends it to the indicated supported network. This API handles nonce management and gas estimation, leaving the developer to provide only the minimal set of fields necessary to send the transaction. The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
45
|
+
|
|
46
|
+
The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md).
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
**Transaction fields and API behavior**
|
|
50
|
+
|
|
51
|
+
- `to` *(Required)*: The address of the contract or account to send the transaction to.
|
|
52
|
+
- `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored.
|
|
53
|
+
The transaction will be sent to the network indicated by the `network` field in the request body.
|
|
54
|
+
|
|
55
|
+
- `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign
|
|
56
|
+
a nonce to the transaction based on the current state of the account.
|
|
57
|
+
|
|
58
|
+
- `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction.
|
|
59
|
+
If not provided, the API will estimate a value based on current network conditions.
|
|
60
|
+
|
|
61
|
+
- `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction.
|
|
62
|
+
If not provided, the API will estimate a value based on current network conditions.
|
|
63
|
+
|
|
64
|
+
- `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value
|
|
65
|
+
based on the `to` and `data` fields of the transaction.
|
|
66
|
+
|
|
67
|
+
- `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
|
|
68
|
+
- `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
|
|
69
|
+
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
70
|
+
* @summary Send a transaction
|
|
71
|
+
*/
|
|
72
|
+
const sendEvmTransaction = (address, sendEvmTransactionBody, options) => {
|
|
73
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
74
|
+
url: `/v2/evm/accounts/${address}/send/transaction`,
|
|
75
|
+
method: "POST",
|
|
76
|
+
headers: { "Content-Type": "application/json" },
|
|
77
|
+
data: sendEvmTransactionBody,
|
|
78
|
+
}, options);
|
|
79
|
+
};
|
|
80
|
+
exports.sendEvmTransaction = sendEvmTransaction;
|
|
81
|
+
/**
|
|
82
|
+
* Signs a transaction with the given EVM account.
|
|
83
|
+
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
84
|
+
|
|
85
|
+
The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md). The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
86
|
+
* @summary Sign a transaction
|
|
87
|
+
*/
|
|
88
|
+
const signEvmTransaction = (address, signEvmTransactionBody, options) => {
|
|
89
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
90
|
+
url: `/v2/evm/accounts/${address}/sign/transaction`,
|
|
91
|
+
method: "POST",
|
|
92
|
+
headers: { "Content-Type": "application/json" },
|
|
93
|
+
data: signEvmTransactionBody,
|
|
94
|
+
}, options);
|
|
95
|
+
};
|
|
96
|
+
exports.signEvmTransaction = signEvmTransaction;
|
|
97
|
+
/**
|
|
98
|
+
* Signs an arbitrary 32 byte hash with the given EVM account.
|
|
99
|
+
* @summary Sign a hash
|
|
100
|
+
*/
|
|
101
|
+
const signEvmHash = (address, signEvmHashBody, options) => {
|
|
102
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
103
|
+
url: `/v2/evm/accounts/${address}/sign`,
|
|
104
|
+
method: "POST",
|
|
105
|
+
headers: { "Content-Type": "application/json" },
|
|
106
|
+
data: signEvmHashBody,
|
|
107
|
+
}, options);
|
|
108
|
+
};
|
|
109
|
+
exports.signEvmHash = signEvmHash;
|
|
110
|
+
/**
|
|
111
|
+
* Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
|
|
112
|
+
|
|
113
|
+
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
114
|
+
* @summary Sign an EIP-191 message
|
|
115
|
+
*/
|
|
116
|
+
const signEvmMessage = (address, signEvmMessageBody, options) => {
|
|
117
|
+
return (0, cdpApiClient_js_1.cdpApiClient)({
|
|
118
|
+
url: `/v2/evm/accounts/${address}/sign/message`,
|
|
119
|
+
method: "POST",
|
|
120
|
+
headers: { "Content-Type": "application/json" },
|
|
121
|
+
data: signEvmMessageBody,
|
|
122
|
+
}, options);
|
|
123
|
+
};
|
|
124
|
+
exports.signEvmMessage = signEvmMessage;
|
|
125
|
+
//# sourceMappingURL=evm-accounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm-accounts.js","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-accounts/evm-accounts.ts"],"names":[],"mappings":";;;AAsBA,2DAAqD;AAIrD;;;;GAIG;AACI,MAAM,eAAe,GAAG,CAC7B,MAA8B,EAC9B,OAA8C,EAC9C,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB,EAAE,GAAG,EAAE,kBAAkB,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAClD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B;AACF;;;GAGG;AACI,MAAM,gBAAgB,GAAG,CAC9B,oBAA2C,EAC3C,OAA8C,EAC9C,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB;QACE,GAAG,EAAE,kBAAkB;QACvB,MAAM,EAAE,MAAM;QACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;QAC/C,IAAI,EAAE,oBAAoB;KAC3B,EACD,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B;AACF;;;GAGG;AACI,MAAM,aAAa,GAAG,CAAC,OAAe,EAAE,OAA8C,EAAE,EAAE;IAC/F,OAAO,IAAA,8BAAY,EAAa,EAAE,GAAG,EAAE,oBAAoB,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,CAAC,CAAC;AAClG,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB;AACF;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CACjC,IAAY,EACZ,OAA8C,EAC9C,EAAE;IACF,OAAO,IAAA,8BAAY,EACjB,EAAE,GAAG,EAAE,4BAA4B,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAC1D,OAAO,CACR,CAAC;AACJ,CAAC,CAAC;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