@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coinbaseDeveloperPlatformAPIs.schemas.d.ts","sourceRoot":"","sources":["../../../openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGnE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;CAeZ,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,KAAK;IACpB,SAAS,EAAE,SAAS,CAAC;IACrB,yBAAyB;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,wHAAwH;IACxH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,SAAS,CAAC,EA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2
|
+
* Generated by orval v7.6.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Coinbase Developer Platform APIs
|
|
5
|
+
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
|
+
* OpenAPI spec version: 2.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { CreateEvmAccountBody, EvmAccount, ListEvmAccounts200, ListEvmAccountsParams, SendEvmTransaction200, SendEvmTransactionBody, SignEvmHash200, SignEvmHashBody, SignEvmMessage200, SignEvmMessageBody, SignEvmTransaction200, SignEvmTransactionBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
9
|
+
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
10
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
11
|
+
/**
|
|
12
|
+
* Lists the EVM accounts belonging to the developer's CDP Project.
|
|
13
|
+
The response is paginated, and by default, returns 20 accounts per page.
|
|
14
|
+
* @summary List EVM accounts
|
|
15
|
+
*/
|
|
16
|
+
export declare const listEvmAccounts: (params?: ListEvmAccountsParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListEvmAccounts200>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a new EVM account.
|
|
19
|
+
* @summary Create an EVM account
|
|
20
|
+
*/
|
|
21
|
+
export declare const createEvmAccount: (createEvmAccountBody?: CreateEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmAccount>;
|
|
22
|
+
/**
|
|
23
|
+
* Gets an EVM account by its address.
|
|
24
|
+
* @summary Get an EVM account by address
|
|
25
|
+
*/
|
|
26
|
+
export declare const getEvmAccount: (address: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmAccount>;
|
|
27
|
+
/**
|
|
28
|
+
* Gets an EVM account by its name.
|
|
29
|
+
* @summary Get an EVM account by name
|
|
30
|
+
*/
|
|
31
|
+
export declare const getEvmAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmAccount>;
|
|
32
|
+
/**
|
|
33
|
+
* 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/).
|
|
34
|
+
|
|
35
|
+
The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md).
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
**Transaction fields and API behavior**
|
|
39
|
+
|
|
40
|
+
- `to` *(Required)*: The address of the contract or account to send the transaction to.
|
|
41
|
+
- `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored.
|
|
42
|
+
The transaction will be sent to the network indicated by the `network` field in the request body.
|
|
43
|
+
|
|
44
|
+
- `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign
|
|
45
|
+
a nonce to the transaction based on the current state of the account.
|
|
46
|
+
|
|
47
|
+
- `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction.
|
|
48
|
+
If not provided, the API will estimate a value based on current network conditions.
|
|
49
|
+
|
|
50
|
+
- `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction.
|
|
51
|
+
If not provided, the API will estimate a value based on current network conditions.
|
|
52
|
+
|
|
53
|
+
- `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value
|
|
54
|
+
based on the `to` and `data` fields of the transaction.
|
|
55
|
+
|
|
56
|
+
- `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
|
|
57
|
+
- `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
|
|
58
|
+
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
59
|
+
* @summary Send a transaction
|
|
60
|
+
*/
|
|
61
|
+
export declare const sendEvmTransaction: (address: string, sendEvmTransactionBody: SendEvmTransactionBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SendEvmTransaction200>;
|
|
62
|
+
/**
|
|
63
|
+
* Signs a transaction with the given EVM account.
|
|
64
|
+
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
65
|
+
|
|
66
|
+
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.
|
|
67
|
+
* @summary Sign a transaction
|
|
68
|
+
*/
|
|
69
|
+
export declare const signEvmTransaction: (address: string, signEvmTransactionBody: SignEvmTransactionBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmTransaction200>;
|
|
70
|
+
/**
|
|
71
|
+
* Signs an arbitrary 32 byte hash with the given EVM account.
|
|
72
|
+
* @summary Sign a hash
|
|
73
|
+
*/
|
|
74
|
+
export declare const signEvmHash: (address: string, signEvmHashBody: SignEvmHashBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmHash200>;
|
|
75
|
+
/**
|
|
76
|
+
* Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
|
|
77
|
+
|
|
78
|
+
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
79
|
+
* @summary Sign an EIP-191 message
|
|
80
|
+
*/
|
|
81
|
+
export declare const signEvmMessage: (address: string, signEvmMessageBody: SignEvmMessageBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmMessage200>;
|
|
82
|
+
export type ListEvmAccountsResult = NonNullable<Awaited<ReturnType<typeof listEvmAccounts>>>;
|
|
83
|
+
export type CreateEvmAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmAccount>>>;
|
|
84
|
+
export type GetEvmAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmAccount>>>;
|
|
85
|
+
export type GetEvmAccountByNameResult = NonNullable<Awaited<ReturnType<typeof getEvmAccountByName>>>;
|
|
86
|
+
export type SendEvmTransactionResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransaction>>>;
|
|
87
|
+
export type SignEvmTransactionResult = NonNullable<Awaited<ReturnType<typeof signEvmTransaction>>>;
|
|
88
|
+
export type SignEvmHashResult = NonNullable<Awaited<ReturnType<typeof signEvmHash>>>;
|
|
89
|
+
export type SignEvmMessageResult = NonNullable<Awaited<ReturnType<typeof signEvmMessage>>>;
|
|
90
|
+
export {};
|
|
91
|
+
//# sourceMappingURL=evm-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-accounts/evm-accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAC1B,SAAS,qBAAqB,EAC9B,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,gCAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,uBAAuB,oBAAoB,EAC3C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,wBAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,EAAE,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,wBAE5F,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GA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C,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACnG,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;AACrF,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { http } from
|
|
2
|
-
import type { EvmAccount, ListEvmAccounts200, SignEvmHash200, SignEvmMessage200, SignEvmTransaction200 } from
|
|
1
|
+
import { http } from "msw";
|
|
2
|
+
import type { EvmAccount, ListEvmAccounts200, SendEvmTransaction200, SignEvmHash200, SignEvmMessage200, SignEvmTransaction200 } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
3
3
|
export declare const getListEvmAccountsResponseMock: () => ListEvmAccounts200;
|
|
4
4
|
export declare const getCreateEvmAccountResponseMock: (overrideResponse?: Partial<EvmAccount>) => EvmAccount;
|
|
5
5
|
export declare const getGetEvmAccountResponseMock: (overrideResponse?: Partial<EvmAccount>) => EvmAccount;
|
|
6
6
|
export declare const getGetEvmAccountByNameResponseMock: (overrideResponse?: Partial<EvmAccount>) => EvmAccount;
|
|
7
|
+
export declare const getSendEvmTransactionResponseMock: (overrideResponse?: Partial<SendEvmTransaction200>) => SendEvmTransaction200;
|
|
7
8
|
export declare const getSignEvmTransactionResponseMock: (overrideResponse?: Partial<SignEvmTransaction200>) => SignEvmTransaction200;
|
|
8
9
|
export declare const getSignEvmHashResponseMock: (overrideResponse?: Partial<SignEvmHash200>) => SignEvmHash200;
|
|
9
10
|
export declare const getSignEvmMessageResponseMock: (overrideResponse?: Partial<SignEvmMessage200>) => SignEvmMessage200;
|
|
@@ -11,7 +12,9 @@ export declare const getListEvmAccountsMockHandler: (overrideResponse?: ListEvmA
|
|
|
11
12
|
export declare const getCreateEvmAccountMockHandler: (overrideResponse?: EvmAccount | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<EvmAccount> | EvmAccount)) => import("msw").HttpHandler;
|
|
12
13
|
export declare const getGetEvmAccountMockHandler: (overrideResponse?: EvmAccount | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EvmAccount> | EvmAccount)) => import("msw").HttpHandler;
|
|
13
14
|
export declare const getGetEvmAccountByNameMockHandler: (overrideResponse?: EvmAccount | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EvmAccount> | EvmAccount)) => import("msw").HttpHandler;
|
|
15
|
+
export declare const getSendEvmTransactionMockHandler: (overrideResponse?: SendEvmTransaction200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SendEvmTransaction200> | SendEvmTransaction200)) => import("msw").HttpHandler;
|
|
14
16
|
export declare const getSignEvmTransactionMockHandler: (overrideResponse?: SignEvmTransaction200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignEvmTransaction200> | SignEvmTransaction200)) => import("msw").HttpHandler;
|
|
15
17
|
export declare const getSignEvmHashMockHandler: (overrideResponse?: SignEvmHash200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignEvmHash200> | SignEvmHash200)) => import("msw").HttpHandler;
|
|
16
18
|
export declare const getSignEvmMessageMockHandler: (overrideResponse?: SignEvmMessage200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignEvmMessage200> | SignEvmMessage200)) => import("msw").HttpHandler;
|
|
17
19
|
export declare const getEvmAccountsMock: () => import("msw").HttpHandler[];
|
|
20
|
+
//# sourceMappingURL=evm-accounts.msw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm-accounts.msw.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-accounts/evm-accounts.msw.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,KAAK,E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,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,CAAC,8BAgBzD,CAAC;AACF,eAAO,MAAM,kBAAkB,mCAS9B,CAAC"}
|
|
@@ -5,39 +5,40 @@
|
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
6
|
* OpenAPI spec version: 2.0.0
|
|
7
7
|
*/
|
|
8
|
-
import type { CreateEvmSmartAccountBody, EvmSmartAccount, EvmUserOperation, ListEvmSmartAccounts200, ListEvmSmartAccountsParams, PrepareUserOperationBody, SendUserOperationBody } from
|
|
9
|
-
import { cdpApiClient } from
|
|
8
|
+
import type { CreateEvmSmartAccountBody, EvmSmartAccount, EvmUserOperation, ListEvmSmartAccounts200, ListEvmSmartAccountsParams, PrepareUserOperationBody, SendUserOperationBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
9
|
+
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
10
10
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
11
11
|
/**
|
|
12
|
-
* Lists the Smart Accounts belonging to the developer's CDP Project.
|
|
12
|
+
* Lists the Smart Accounts belonging to the developer's CDP Project.
|
|
13
13
|
The response is paginated, and by default, returns 20 accounts per page.
|
|
14
|
-
* @summary List Smart Accounts
|
|
15
|
-
*/
|
|
14
|
+
* @summary List Smart Accounts
|
|
15
|
+
*/
|
|
16
16
|
export declare const listEvmSmartAccounts: (params?: ListEvmSmartAccountsParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListEvmSmartAccounts200>;
|
|
17
17
|
/**
|
|
18
|
-
* Creates a new Smart Account.
|
|
19
|
-
* @summary Create a Smart Account
|
|
20
|
-
*/
|
|
18
|
+
* Creates a new Smart Account.
|
|
19
|
+
* @summary Create a Smart Account
|
|
20
|
+
*/
|
|
21
21
|
export declare const createEvmSmartAccount: (createEvmSmartAccountBody: CreateEvmSmartAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmSmartAccount>;
|
|
22
22
|
/**
|
|
23
|
-
* Gets a Smart Account by its address.
|
|
24
|
-
* @summary Get a Smart Account by address
|
|
25
|
-
*/
|
|
23
|
+
* Gets a Smart Account by its address.
|
|
24
|
+
* @summary Get a Smart Account by address
|
|
25
|
+
*/
|
|
26
26
|
export declare const getEvmSmartAccount: (address: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmSmartAccount>;
|
|
27
27
|
/**
|
|
28
|
-
* Prepares a new user operation on a Smart Account for a specific network.
|
|
29
|
-
* @summary Prepare a user operation
|
|
30
|
-
*/
|
|
28
|
+
* Prepares a new user operation on a Smart Account for a specific network.
|
|
29
|
+
* @summary Prepare a user operation
|
|
30
|
+
*/
|
|
31
31
|
export declare const prepareUserOperation: (address: string, prepareUserOperationBody: PrepareUserOperationBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
|
|
32
32
|
/**
|
|
33
|
-
* Gets a user operation by its hash.
|
|
34
|
-
* @summary Get a user operation
|
|
35
|
-
*/
|
|
33
|
+
* Gets a user operation by its hash.
|
|
34
|
+
* @summary Get a user operation
|
|
35
|
+
*/
|
|
36
36
|
export declare const getUserOperation: (address: string, userOpHash: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
|
|
37
37
|
/**
|
|
38
|
-
* Sends a user operation with a signature.
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
* Sends a user operation with a signature.
|
|
39
|
+
The signature that is sent should be 65 bytes, consisting of the `r`, `s`, and `v` values of the ECDSA signature. Note that the `v` value should conform to the `personal_sign` standard, which means it should be 27 or 28.
|
|
40
|
+
* @summary Send a user operation
|
|
41
|
+
*/
|
|
41
42
|
export declare const sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: SendUserOperationBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
|
|
42
43
|
export type ListEvmSmartAccountsResult = NonNullable<Awaited<ReturnType<typeof listEvmSmartAccounts>>>;
|
|
43
44
|
export type CreateEvmSmartAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmSmartAccount>>>;
|
|
@@ -46,3 +47,4 @@ export type PrepareUserOperationResult = NonNullable<Awaited<ReturnType<typeof p
|
|
|
46
47
|
export type GetUserOperationResult = NonNullable<Awaited<ReturnType<typeof getUserOperation>>>;
|
|
47
48
|
export type SendUserOperationResult = NonNullable<Awaited<ReturnType<typeof sendUserOperation>>>;
|
|
48
49
|
export {};
|
|
50
|
+
//# sourceMappingURL=evm-smart-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm-smart-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,yBAAyB,EACzB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,0BAA0B,EACnC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,qCAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAChC,2BAA2B,yBAAyB,EACpD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,6BAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,EACf,UAAU,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type { EvmSmartAccount, EvmUserOperation, ListEvmSmartAccounts200 } from
|
|
1
|
+
import { http } from "msw";
|
|
2
|
+
import type { EvmSmartAccount, EvmUserOperation, ListEvmSmartAccounts200 } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
3
3
|
export declare const getListEvmSmartAccountsResponseMock: () => ListEvmSmartAccounts200;
|
|
4
4
|
export declare const getCreateEvmSmartAccountResponseMock: (overrideResponse?: Partial<EvmSmartAccount>) => EvmSmartAccount;
|
|
5
5
|
export declare const getGetEvmSmartAccountResponseMock: (overrideResponse?: Partial<EvmSmartAccount>) => EvmSmartAccount;
|
|
@@ -13,3 +13,4 @@ export declare const getPrepareUserOperationMockHandler: (overrideResponse?: Evm
|
|
|
13
13
|
export declare const getGetUserOperationMockHandler: (overrideResponse?: EvmUserOperation | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EvmUserOperation> | EvmUserOperation)) => import("msw").HttpHandler;
|
|
14
14
|
export declare const getSendUserOperationMockHandler: (overrideResponse?: EvmUserOperation | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<EvmUserOperation> | EvmUserOperation)) => import("msw").HttpHandler;
|
|
15
15
|
export declare const getEvmSmartAccountsMock: () => import("msw").HttpHandler[];
|
|
16
|
+
//# sourceMappingURL=evm-smart-accounts.msw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm-smart-accounts.msw.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACxB,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,mCAAmC,QAAO,uBAgBrD,CAAC;AAEH,eAAO,MAAM,oCAAoC,GAC/C,mBAAkB,OAAO,CAAC,eAAe,CAAM,KAC9C,eAU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C,CAAC,CAAC,KACjD,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAAC,8BAgBvD,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACzC,mBACI,gBAAgB,GAChB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAChD,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAAC,8BAgBvD,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC1C,mBACI,gBAAgB,GAChB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB,CAAC,8BAmBvD,CAAC;AACF,eAAO,MAAM,uBAAuB,mCAOnC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.6.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Coinbase Developer Platform APIs
|
|
5
|
+
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
|
+
* OpenAPI spec version: 2.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { ListEvmTokenBalances200, ListEvmTokenBalancesNetwork, ListEvmTokenBalancesParams } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
9
|
+
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
10
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
11
|
+
/**
|
|
12
|
+
* Lists the token balances of an EVM address on a given network. The balances include ERC-20 tokens and the native gas token (usually ETH). The response is paginated, and by default, returns 20 balances per page.
|
|
13
|
+
|
|
14
|
+
**Note:** This endpoint is still under development and does not yet provide strong freshness guarantees. Specifically, balances of new tokens can, on occasion, take up to ~30 seconds to appear, while balances of tokens already belonging to an address will generally be close to chain tip. Freshness of new token balances will improve over the coming weeks.
|
|
15
|
+
* @summary List EVM token balances
|
|
16
|
+
*/
|
|
17
|
+
export declare const listEvmTokenBalances: (network: ListEvmTokenBalancesNetwork, address: string, params?: ListEvmTokenBalancesParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListEvmTokenBalances200>;
|
|
18
|
+
export type ListEvmTokenBalancesResult = NonNullable<Awaited<ReturnType<typeof listEvmTokenBalances>>>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=evm-token-balances.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm-token-balances.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-token-balances/evm-token-balances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC3B,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,2BAA2B,EACpC,SAAS,MAAM,EACf,SAAS,0BAA0B,EACnC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,qCAM/C,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAClD,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CACjD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { http } from "msw";
|
|
2
|
+
import type { ListEvmTokenBalances200 } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
3
|
+
export declare const getListEvmTokenBalancesResponseMock: () => ListEvmTokenBalances200;
|
|
4
|
+
export declare const getListEvmTokenBalancesMockHandler: (overrideResponse?: ListEvmTokenBalances200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListEvmTokenBalances200> | ListEvmTokenBalances200)) => import("msw").HttpHandler;
|
|
5
|
+
export declare const getEvmTokenBalancesMock: () => import("msw").HttpHandler[];
|
|
6
|
+
//# sourceMappingURL=evm-token-balances.msw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evm-token-balances.msw.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/evm-token-balances/evm-token-balances.msw.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,IAAI,EAAE,MAAM,KAAK,CAAC;AAGhD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAE3F,eAAO,MAAM,mCAAmC,QAAO,uBAkBrD,CAAC;AAEH,eAAO,MAAM,kCAAkC,GAC7C,mBACI,uBAAuB,GACvB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAChD,OAAO,CAAC,uBAAuB,CAAC,GAAG,uBAAuB,CAAC,8BAgBrE,CAAC;AACF,eAAO,MAAM,uBAAuB,mCAA+C,CAAC"}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
6
|
* OpenAPI spec version: 2.0.0
|
|
7
7
|
*/
|
|
8
|
-
import type { RequestEvmFaucet200, RequestEvmFaucetBody, RequestSolanaFaucet200, RequestSolanaFaucetBody } from
|
|
9
|
-
import { cdpApiClient } from
|
|
8
|
+
import type { RequestEvmFaucet200, RequestEvmFaucetBody, RequestSolanaFaucet200, RequestSolanaFaucetBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
9
|
+
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
10
10
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
11
11
|
/**
|
|
12
|
-
* Request funds from the CDP Faucet on supported EVM test networks.
|
|
12
|
+
* Request funds from the CDP Faucet on supported EVM test networks.
|
|
13
13
|
|
|
14
14
|
Faucets are available for ETH, USDC, EURC, and cbBTC on Base Sepolia and Ethereum Sepolia.
|
|
15
15
|
|
|
@@ -19,16 +19,16 @@ A single blockchain address cannot exceed the specified limits, even if multiple
|
|
|
19
19
|
|
|
20
20
|
| Token | Amount per Faucet Request |Rolling 24-hour window Rate Limits|
|
|
21
21
|
|:-----:|:-------------------------:|:--------------------------------:|
|
|
22
|
-
| ETH | 0.0001 ETH | 0.
|
|
22
|
+
| ETH | 0.0001 ETH | 0.1 ETH |
|
|
23
23
|
| USDC | 1 USDC | 10 USDC |
|
|
24
24
|
| EURC | 1 EURC | 10 EURC |
|
|
25
25
|
| cbBTC | 0.0001 cbBTC | 0.001 cbBTC |
|
|
26
26
|
|
|
27
|
-
* @summary Request funds on EVM test networks
|
|
28
|
-
*/
|
|
27
|
+
* @summary Request funds on EVM test networks
|
|
28
|
+
*/
|
|
29
29
|
export declare const requestEvmFaucet: (requestEvmFaucetBody: RequestEvmFaucetBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RequestEvmFaucet200>;
|
|
30
30
|
/**
|
|
31
|
-
* Request funds from the CDP Faucet on Solana devnet.
|
|
31
|
+
* Request funds from the CDP Faucet on Solana devnet.
|
|
32
32
|
|
|
33
33
|
Faucets are available for SOL.
|
|
34
34
|
|
|
@@ -39,10 +39,12 @@ A single blockchain address cannot exceed the specified limits, even if multiple
|
|
|
39
39
|
| Token | Amount per Faucet Request |Rolling 24-hour window Rate Limits|
|
|
40
40
|
|:-----:|:-------------------------:|:--------------------------------:|
|
|
41
41
|
| SOL | 0.00125 SOL | 0.0125 SOL |
|
|
42
|
+
| USDC | 1 USDC | 10 USDC |
|
|
42
43
|
|
|
43
|
-
* @summary Request funds on Solana devnet
|
|
44
|
-
*/
|
|
44
|
+
* @summary Request funds on Solana devnet
|
|
45
|
+
*/
|
|
45
46
|
export declare const requestSolanaFaucet: (requestSolanaFaucetBody: RequestSolanaFaucetBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RequestSolanaFaucet200>;
|
|
46
47
|
export type RequestEvmFaucetResult = NonNullable<Awaited<ReturnType<typeof requestEvmFaucet>>>;
|
|
47
48
|
export type RequestSolanaFaucetResult = NonNullable<Awaited<ReturnType<typeof requestSolanaFaucet>>>;
|
|
48
49
|
export {};
|
|
50
|
+
//# sourceMappingURL=faucets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faucets.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/faucets/faucets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,GAC3B,sBAAsB,oBAAoB,EAC1C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,iCAW/C,CAAC;AACF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,mBAAmB,GAC9B,yBAAyB,uBAAuB,EAChD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,oCAW/C,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,yBAAyB,GAAG,WAAW,CACjD,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAChD,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { http } from
|
|
2
|
-
import type { RequestEvmFaucet200, RequestSolanaFaucet200 } from
|
|
1
|
+
import { http } from "msw";
|
|
2
|
+
import type { RequestEvmFaucet200, RequestSolanaFaucet200 } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
3
3
|
export declare const getRequestEvmFaucetResponseMock: (overrideResponse?: Partial<RequestEvmFaucet200>) => RequestEvmFaucet200;
|
|
4
4
|
export declare const getRequestSolanaFaucetResponseMock: (overrideResponse?: Partial<RequestSolanaFaucet200>) => RequestSolanaFaucet200;
|
|
5
5
|
export declare const getRequestEvmFaucetMockHandler: (overrideResponse?: RequestEvmFaucet200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<RequestEvmFaucet200> | RequestEvmFaucet200)) => import("msw").HttpHandler;
|
|
6
6
|
export declare const getRequestSolanaFaucetMockHandler: (overrideResponse?: RequestSolanaFaucet200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<RequestSolanaFaucet200> | RequestSolanaFaucet200)) => import("msw").HttpHandler;
|
|
7
7
|
export declare const getFaucetsMock: () => import("msw").HttpHandler[];
|
|
8
|
+
//# sourceMappingURL=faucets.msw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faucets.msw.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/faucets/faucets.msw.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,+BAA+B,GAC1C,mBAAkB,OAAO,CAAC,mBAAmB,CAAM,KAClD,mBAAyF,CAAC;AAE7F,eAAO,MAAM,kCAAkC,GAC7C,mBAAkB,OAAO,CAAC,sBAAsB,CAAM,KACrD,sBAGD,CAAC;AAEH,eAAO,MAAM,8BAA8B,GACzC,mBACI,mBAAmB,GACnB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAAC,8BAgB7D,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAC5C,mBACI,sBAAsB,GACtB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,sBAAsB,CAAC,GAAG,sBAAsB,CAAC,8BAgBnE,CAAC;AACF,eAAO,MAAM,cAAc,mCAG1B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from "./evm-accounts/evm-accounts.msw.js";
|
|
2
|
+
export * from "./faucets/faucets.msw.js";
|
|
3
|
+
export * from "./evm-smart-accounts/evm-smart-accounts.msw.js";
|
|
4
|
+
export * from "./evm-token-balances/evm-token-balances.msw.js";
|
|
5
|
+
export * from "./solana-accounts/solana-accounts.msw.js";
|
|
6
|
+
//# sourceMappingURL=index.msw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.msw.d.ts","sourceRoot":"","sources":["../../../openapi-client/generated/index.msw.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,0BAA0B,CAAC;AACzC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC"}
|
|
@@ -5,34 +5,34 @@
|
|
|
5
5
|
* The Coinbase Developer Platform APIs - leading the world's transition onchain.
|
|
6
6
|
* OpenAPI spec version: 2.0.0
|
|
7
7
|
*/
|
|
8
|
-
import type { CreateSolanaAccountBody, ListSolanaAccounts200, ListSolanaAccountsParams, SignSolanaMessage200, SignSolanaMessageBody, SignSolanaTransaction200, SignSolanaTransactionBody, SolanaAccount } from
|
|
9
|
-
import { cdpApiClient } from
|
|
8
|
+
import type { CreateSolanaAccountBody, ListSolanaAccounts200, ListSolanaAccountsParams, SignSolanaMessage200, SignSolanaMessageBody, SignSolanaTransaction200, SignSolanaTransactionBody, SolanaAccount } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
9
|
+
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
10
10
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
11
11
|
/**
|
|
12
|
-
* Lists the Solana accounts belonging to the developer.
|
|
12
|
+
* Lists the Solana accounts belonging to the developer.
|
|
13
13
|
The response is paginated, and by default, returns 20 accounts per page.
|
|
14
14
|
|
|
15
15
|
If a name is provided, the response will contain only the account with that name.
|
|
16
|
-
* @summary List Solana accounts or get account by name
|
|
17
|
-
*/
|
|
16
|
+
* @summary List Solana accounts or get account by name
|
|
17
|
+
*/
|
|
18
18
|
export declare const listSolanaAccounts: (params?: ListSolanaAccountsParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListSolanaAccounts200>;
|
|
19
19
|
/**
|
|
20
|
-
* Creates a new Solana account.
|
|
21
|
-
* @summary Create a Solana account
|
|
22
|
-
*/
|
|
20
|
+
* Creates a new Solana account.
|
|
21
|
+
* @summary Create a Solana account
|
|
22
|
+
*/
|
|
23
23
|
export declare const createSolanaAccount: (createSolanaAccountBody?: CreateSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SolanaAccount>;
|
|
24
24
|
/**
|
|
25
|
-
* Gets a Solana account by its address.
|
|
26
|
-
* @summary Get a Solana account by address
|
|
27
|
-
*/
|
|
25
|
+
* Gets a Solana account by its address.
|
|
26
|
+
* @summary Get a Solana account by address
|
|
27
|
+
*/
|
|
28
28
|
export declare const getSolanaAccount: (address: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<SolanaAccount>;
|
|
29
29
|
/**
|
|
30
|
-
* Gets a Solana account by its name.
|
|
31
|
-
* @summary Get a Solana account by name
|
|
32
|
-
*/
|
|
30
|
+
* Gets a Solana account by its name.
|
|
31
|
+
* @summary Get a Solana account by name
|
|
32
|
+
*/
|
|
33
33
|
export declare const getSolanaAccountByName: (name: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<SolanaAccount>;
|
|
34
34
|
/**
|
|
35
|
-
* Signs a transaction with the given Solana account.
|
|
35
|
+
* Signs a transaction with the given Solana account.
|
|
36
36
|
The unsigned transaction should be serialized into a byte array and then encoded as base64.
|
|
37
37
|
|
|
38
38
|
**Transaction types**
|
|
@@ -42,15 +42,15 @@ The following transaction types are supported:
|
|
|
42
42
|
* [Versioned transactions](https://solana-labs.github.io/solana-web3.js/classes/VersionedTransaction.html)
|
|
43
43
|
|
|
44
44
|
The developer is responsible for ensuring that the unsigned transaction is valid, as the API will not validate the transaction.
|
|
45
|
-
* @summary Sign a transaction
|
|
46
|
-
*/
|
|
45
|
+
* @summary Sign a transaction
|
|
46
|
+
*/
|
|
47
47
|
export declare const signSolanaTransaction: (address: string, signSolanaTransactionBody: SignSolanaTransactionBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignSolanaTransaction200>;
|
|
48
48
|
/**
|
|
49
|
-
* Signs an arbitrary message with the given Solana account.
|
|
49
|
+
* Signs an arbitrary message with the given Solana account.
|
|
50
50
|
|
|
51
51
|
**WARNING:** Never sign a message that you didn't generate, as it can be an arbitrary transaction. For example, it might send all of your funds to an attacker.
|
|
52
|
-
* @summary Sign a message
|
|
53
|
-
*/
|
|
52
|
+
* @summary Sign a message
|
|
53
|
+
*/
|
|
54
54
|
export declare const signSolanaMessage: (address: string, signSolanaMessageBody: SignSolanaMessageBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignSolanaMessage200>;
|
|
55
55
|
export type ListSolanaAccountsResult = NonNullable<Awaited<ReturnType<typeof listSolanaAccounts>>>;
|
|
56
56
|
export type CreateSolanaAccountResult = NonNullable<Awaited<ReturnType<typeof createSolanaAccount>>>;
|
|
@@ -59,3 +59,4 @@ export type GetSolanaAccountByNameResult = NonNullable<Awaited<ReturnType<typeof
|
|
|
59
59
|
export type SignSolanaTransactionResult = NonNullable<Awaited<ReturnType<typeof signSolanaTransaction>>>;
|
|
60
60
|
export type SignSolanaMessageResult = NonNullable<Awaited<ReturnType<typeof signSolanaMessage>>>;
|
|
61
61
|
export {};
|
|
62
|
+
//# sourceMappingURL=solana-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solana-accounts.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/solana-accounts/solana-accounts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,aAAa,EACd,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,wBAAwB,EACjC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,mCAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,0BAA0B,uBAAuB,EACjD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,2BAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,EACf,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,2BAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GACjC,MAAM,MAAM,EACZ,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,2BAM/C,CAAC;AACF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,GAChC,SAAS,MAAM,EACf,2BAA2B,yBAAyB,EACpD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,sCAW/C,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EACf,uBAAuB,qBAAqB,EAC5C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,kCAW/C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACnG,MAAM,MAAM,yBAAyB,GAAG,WAAW,CACjD,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAChD,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,4BAA4B,GAAG,WAAW,CACpD,OAAO,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC,CACnD,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,WAAW,CACnD,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAClD,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { http } from
|
|
2
|
-
import type { ListSolanaAccounts200, SignSolanaMessage200, SignSolanaTransaction200, SolanaAccount } from
|
|
1
|
+
import { http } from "msw";
|
|
2
|
+
import type { ListSolanaAccounts200, SignSolanaMessage200, SignSolanaTransaction200, SolanaAccount } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
3
3
|
export declare const getListSolanaAccountsResponseMock: () => ListSolanaAccounts200;
|
|
4
4
|
export declare const getCreateSolanaAccountResponseMock: (overrideResponse?: Partial<SolanaAccount>) => SolanaAccount;
|
|
5
5
|
export declare const getGetSolanaAccountResponseMock: (overrideResponse?: Partial<SolanaAccount>) => SolanaAccount;
|
|
@@ -13,3 +13,4 @@ export declare const getGetSolanaAccountByNameMockHandler: (overrideResponse?: S
|
|
|
13
13
|
export declare const getSignSolanaTransactionMockHandler: (overrideResponse?: SignSolanaTransaction200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignSolanaTransaction200> | SignSolanaTransaction200)) => import("msw").HttpHandler;
|
|
14
14
|
export declare const getSignSolanaMessageMockHandler: (overrideResponse?: SignSolanaMessage200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignSolanaMessage200> | SignSolanaMessage200)) => import("msw").HttpHandler;
|
|
15
15
|
export declare const getSolanaAccountsMock: () => import("msw").HttpHandler[];
|
|
16
|
+
//# sourceMappingURL=solana-accounts.msw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solana-accounts.msw.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/solana-accounts/solana-accounts.msw.ts"],"names":[],"mappings":"AASA,OAAO,EAAuB,IAAI,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,aAAa,EACd,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,iCAAiC,QAAO,qBAanD,CAAC;AAEH,eAAO,MAAM,kCAAkC,GAC7C,mBAAkB,OAAO,CAAC,aAAa,CAAM,KAC5C,aAOD,CAAC;AAEH,eAAO,MAAM,+BAA+B,GAC1C,mBAAkB,OAAO,CAAC,aAAa,CAAM,KAC5C,aAOD,CAAC;AAEH,eAAO,MAAM,qCAAqC,GAChD,mBAAkB,OAAO,CAAC,aAAa,CAAM,K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,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,wBAAwB,CAAC,GAAG,wBAAwB,CAAC,8BAgBvE,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC1C,mBACI,oBAAoB,GACpB,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,oBAAoB,CAAC,GAAG,oBAAoB,CAAC,8BAgB/D,CAAC;AACF,eAAO,MAAM,qBAAqB,mCAOjC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export * from "./generated/coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
2
|
+
export * from "./generated/evm-accounts/evm-accounts.js";
|
|
3
|
+
export * from "./generated/evm-smart-accounts/evm-smart-accounts.js";
|
|
4
|
+
export * from "./generated/evm-token-balances/evm-token-balances.js";
|
|
5
|
+
export * from "./generated/solana-accounts/solana-accounts.js";
|
|
6
|
+
export * from "./generated/faucets/faucets.js";
|
|
7
|
+
export declare const CdpOpenApiClient: {
|
|
8
|
+
configure: (options: import("./cdpApiClient.js").CdpOptions) => void;
|
|
9
|
+
requestEvmFaucet: (requestEvmFaucetBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestEvmFaucetBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestEvmFaucet200>;
|
|
10
|
+
requestSolanaFaucet: (requestSolanaFaucetBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestSolanaFaucetBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestSolanaFaucet200>;
|
|
11
|
+
listSolanaAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListSolanaAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListSolanaAccounts200>;
|
|
12
|
+
createSolanaAccount: (createSolanaAccountBody?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateSolanaAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
|
|
13
|
+
getSolanaAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
|
|
14
|
+
getSolanaAccountByName: (name: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
|
|
15
|
+
signSolanaTransaction: (address: string, signSolanaTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaTransaction200>;
|
|
16
|
+
signSolanaMessage: (address: string, signSolanaMessageBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaMessageBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaMessage200>;
|
|
17
|
+
listEvmTokenBalances: (network: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmTokenBalancesNetwork, address: string, params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmTokenBalancesParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmTokenBalances200>;
|
|
18
|
+
listEvmSmartAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmSmartAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmSmartAccounts200>;
|
|
19
|
+
createEvmSmartAccount: (createEvmSmartAccountBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateEvmSmartAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
|
|
20
|
+
getEvmSmartAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
|
|
21
|
+
prepareUserOperation: (address: string, prepareUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").PrepareUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
|
|
22
|
+
getUserOperation: (address: string, userOpHash: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
|
|
23
|
+
sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
|
|
24
|
+
listEvmAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmAccounts200>;
|
|
25
|
+
createEvmAccount: (createEvmAccountBody?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateEvmAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
|
|
26
|
+
getEvmAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
|
|
27
|
+
getEvmAccountByName: (name: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
|
|
28
|
+
sendEvmTransaction: (address: string, sendEvmTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendEvmTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendEvmTransaction200>;
|
|
29
|
+
signEvmTransaction: (address: string, signEvmTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmTransaction200>;
|
|
30
|
+
signEvmHash: (address: string, signEvmHashBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmHashBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmHash200>;
|
|
31
|
+
signEvmMessage: (address: string, signEvmMessageBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmMessageBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmMessage200>;
|
|
32
|
+
};
|
|
33
|
+
export declare const OpenApiEvmMethods: {
|
|
34
|
+
requestEvmFaucet: (requestEvmFaucetBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestEvmFaucetBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestEvmFaucet200>;
|
|
35
|
+
listEvmTokenBalances: (network: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmTokenBalancesNetwork, address: string, params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmTokenBalancesParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmTokenBalances200>;
|
|
36
|
+
listEvmSmartAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmSmartAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmSmartAccounts200>;
|
|
37
|
+
createEvmSmartAccount: (createEvmSmartAccountBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateEvmSmartAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
|
|
38
|
+
getEvmSmartAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
|
|
39
|
+
prepareUserOperation: (address: string, prepareUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").PrepareUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
|
|
40
|
+
getUserOperation: (address: string, userOpHash: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
|
|
41
|
+
sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
|
|
42
|
+
listEvmAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEvmAccounts200>;
|
|
43
|
+
createEvmAccount: (createEvmAccountBody?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateEvmAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
|
|
44
|
+
getEvmAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
|
|
45
|
+
getEvmAccountByName: (name: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmAccount>;
|
|
46
|
+
sendEvmTransaction: (address: string, sendEvmTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendEvmTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendEvmTransaction200>;
|
|
47
|
+
signEvmTransaction: (address: string, signEvmTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmTransaction200>;
|
|
48
|
+
signEvmHash: (address: string, signEvmHashBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmHashBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmHash200>;
|
|
49
|
+
signEvmMessage: (address: string, signEvmMessageBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmMessageBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignEvmMessage200>;
|
|
50
|
+
};
|
|
51
|
+
export declare const OpenApiSolanaMethods: {
|
|
52
|
+
requestSolanaFaucet: (requestSolanaFaucetBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestSolanaFaucetBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").RequestSolanaFaucet200>;
|
|
53
|
+
listSolanaAccounts: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListSolanaAccountsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListSolanaAccounts200>;
|
|
54
|
+
createSolanaAccount: (createSolanaAccountBody?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateSolanaAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
|
|
55
|
+
getSolanaAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
|
|
56
|
+
getSolanaAccountByName: (name: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SolanaAccount>;
|
|
57
|
+
signSolanaTransaction: (address: string, signSolanaTransactionBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaTransactionBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaTransaction200>;
|
|
58
|
+
signSolanaMessage: (address: string, signSolanaMessageBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaMessageBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SignSolanaMessage200>;
|
|
59
|
+
};
|
|
60
|
+
export type CdpOpenApiClientType = typeof CdpOpenApiClient;
|
|
61
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../openapi-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,CAAC;AACzD,cAAc,sDAAsD,CAAC;AACrE,cAAc,sDAAsD,CAAC;AACrE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gCAAgC,CAAC;AAS/C,eAAO,MAAM,gBAAgB;;uBAsB8Q,yGAA6C,EAAC,4BAAiD;0BAA2gC,+GAAmD,EAAC,4BAAiD;yBAhBh/C,gGAGmB,EAAE,4BAGpB;0BAUQ,gHAAoD,EAAC,4BAAiD;uBAAmW,eAAkB,EAAC,4BAAiD;6BAAgQ,YAAe,EAAC,4BAAiD;4BAAwvB,eAAkB,EAAC,mHAAuD,EAAC,4BAAiD;wBAAijB,eAAkB,EAAC,2GAA+C,EAAC,4BAAiD;2BAJ/1E,mGAGjB,EAAE,eAAiB,EAAC,kGACtB,EAAC,4BAAiD;2BAtBhD,kGAEN,EAAC,4BAEG;4BAciB,mHAGD,EAAC,4BACX;yBAA0W,eAAkB,EAAC,4BAAiD;2BAAqS,eAAkB,EAAC,iHAAqD,EAAC,4BAAiD;uBAAuX,eAAkB,EAAC,kBAAqB,EAAC,4BAAiD;wBAA2f,eAAkB,EAAC,kBAAqB,EAAC,2GAA+C,EAAC,4BAAiD;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AO,gBAAgB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AbiStateMutability, Address } from "viem";
|
|
2
|
-
import type { GetMulticallContractParameters } from "./multicall";
|
|
3
|
-
import type { OneOf, Prettify } from "./utils";
|
|
4
|
-
import type { Hex } from "./misc";
|
|
2
|
+
import type { GetMulticallContractParameters } from "./multicall.js";
|
|
3
|
+
import type { OneOf, Prettify } from "./utils.js";
|
|
4
|
+
import type { Hex } from "./misc.js";
|
|
5
5
|
export type Call<call = unknown, extraProperties extends Record<string, unknown> = {}> = OneOf<(extraProperties & {
|
|
6
6
|
data?: Hex | undefined;
|
|
7
7
|
to: Address;
|
|
@@ -11,3 +11,4 @@ export type Call<call = unknown, extraProperties extends Record<string, unknown>
|
|
|
11
11
|
value?: bigint | undefined;
|
|
12
12
|
}))>;
|
|
13
13
|
export type Calls<calls extends readonly unknown[], extraProperties extends Record<string, unknown> = {}, result extends readonly any[] = []> = calls extends readonly [] ? readonly [] : calls extends readonly [infer call] ? readonly [...result, Prettify<Call<call, extraProperties>>] : calls extends readonly [infer call, ...infer rest] ? Calls<[...rest], extraProperties, [...result, Prettify<Call<call, extraProperties>>]> : readonly unknown[] extends calls ? calls : calls extends readonly (infer call extends OneOf<Call>)[] ? readonly Prettify<call>[] : readonly OneOf<Call>[];
|
|
14
|
+
//# sourceMappingURL=calls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calls.d.ts","sourceRoot":"","sources":["../../types/calls.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,MAAM,IAAI,CAAC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