@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,271 @@
|
|
|
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 { faker } from "@faker-js/faker";
|
|
9
|
+
|
|
10
|
+
import { HttpResponse, delay, http } from "msw";
|
|
11
|
+
|
|
12
|
+
import type {
|
|
13
|
+
EvmAccount,
|
|
14
|
+
ListEvmAccounts200,
|
|
15
|
+
SendEvmTransaction200,
|
|
16
|
+
SignEvmHash200,
|
|
17
|
+
SignEvmMessage200,
|
|
18
|
+
SignEvmTransaction200,
|
|
19
|
+
} from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
20
|
+
|
|
21
|
+
export const getListEvmAccountsResponseMock = (): ListEvmAccounts200 => ({
|
|
22
|
+
...{
|
|
23
|
+
accounts: Array.from({ length: faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(
|
|
24
|
+
() => ({
|
|
25
|
+
address: faker.helpers.fromRegExp("^0x[0-9a-fA-F]{40}$"),
|
|
26
|
+
name: faker.helpers.arrayElement([
|
|
27
|
+
faker.helpers.fromRegExp("^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"),
|
|
28
|
+
undefined,
|
|
29
|
+
]),
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
},
|
|
33
|
+
...{ nextPageToken: faker.helpers.arrayElement([faker.string.alpha(20), undefined]) },
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export const getCreateEvmAccountResponseMock = (
|
|
37
|
+
overrideResponse: Partial<EvmAccount> = {},
|
|
38
|
+
): EvmAccount => ({
|
|
39
|
+
address: faker.helpers.fromRegExp("^0x[0-9a-fA-F]{40}$"),
|
|
40
|
+
name: faker.helpers.arrayElement([
|
|
41
|
+
faker.helpers.fromRegExp("^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"),
|
|
42
|
+
undefined,
|
|
43
|
+
]),
|
|
44
|
+
...overrideResponse,
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export const getGetEvmAccountResponseMock = (
|
|
48
|
+
overrideResponse: Partial<EvmAccount> = {},
|
|
49
|
+
): EvmAccount => ({
|
|
50
|
+
address: faker.helpers.fromRegExp("^0x[0-9a-fA-F]{40}$"),
|
|
51
|
+
name: faker.helpers.arrayElement([
|
|
52
|
+
faker.helpers.fromRegExp("^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"),
|
|
53
|
+
undefined,
|
|
54
|
+
]),
|
|
55
|
+
...overrideResponse,
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export const getGetEvmAccountByNameResponseMock = (
|
|
59
|
+
overrideResponse: Partial<EvmAccount> = {},
|
|
60
|
+
): EvmAccount => ({
|
|
61
|
+
address: faker.helpers.fromRegExp("^0x[0-9a-fA-F]{40}$"),
|
|
62
|
+
name: faker.helpers.arrayElement([
|
|
63
|
+
faker.helpers.fromRegExp("^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$"),
|
|
64
|
+
undefined,
|
|
65
|
+
]),
|
|
66
|
+
...overrideResponse,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export const getSendEvmTransactionResponseMock = (
|
|
70
|
+
overrideResponse: Partial<SendEvmTransaction200> = {},
|
|
71
|
+
): SendEvmTransaction200 => ({ transactionHash: faker.string.alpha(20), ...overrideResponse });
|
|
72
|
+
|
|
73
|
+
export const getSignEvmTransactionResponseMock = (
|
|
74
|
+
overrideResponse: Partial<SignEvmTransaction200> = {},
|
|
75
|
+
): SignEvmTransaction200 => ({ signedTransaction: faker.string.alpha(20), ...overrideResponse });
|
|
76
|
+
|
|
77
|
+
export const getSignEvmHashResponseMock = (
|
|
78
|
+
overrideResponse: Partial<SignEvmHash200> = {},
|
|
79
|
+
): SignEvmHash200 => ({ signature: faker.string.alpha(20), ...overrideResponse });
|
|
80
|
+
|
|
81
|
+
export const getSignEvmMessageResponseMock = (
|
|
82
|
+
overrideResponse: Partial<SignEvmMessage200> = {},
|
|
83
|
+
): SignEvmMessage200 => ({ signature: faker.string.alpha(20), ...overrideResponse });
|
|
84
|
+
|
|
85
|
+
export const getListEvmAccountsMockHandler = (
|
|
86
|
+
overrideResponse?:
|
|
87
|
+
| ListEvmAccounts200
|
|
88
|
+
| ((
|
|
89
|
+
info: Parameters<Parameters<typeof http.get>[1]>[0],
|
|
90
|
+
) => Promise<ListEvmAccounts200> | ListEvmAccounts200),
|
|
91
|
+
) => {
|
|
92
|
+
return http.get("*/v2/evm/accounts", async info => {
|
|
93
|
+
await delay(0);
|
|
94
|
+
|
|
95
|
+
return new HttpResponse(
|
|
96
|
+
JSON.stringify(
|
|
97
|
+
overrideResponse !== undefined
|
|
98
|
+
? typeof overrideResponse === "function"
|
|
99
|
+
? await overrideResponse(info)
|
|
100
|
+
: overrideResponse
|
|
101
|
+
: getListEvmAccountsResponseMock(),
|
|
102
|
+
),
|
|
103
|
+
{ status: 200, headers: { "Content-Type": "application/json" } },
|
|
104
|
+
);
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export const getCreateEvmAccountMockHandler = (
|
|
109
|
+
overrideResponse?:
|
|
110
|
+
| EvmAccount
|
|
111
|
+
| ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<EvmAccount> | EvmAccount),
|
|
112
|
+
) => {
|
|
113
|
+
return http.post("*/v2/evm/accounts", async info => {
|
|
114
|
+
await delay(0);
|
|
115
|
+
|
|
116
|
+
return new HttpResponse(
|
|
117
|
+
JSON.stringify(
|
|
118
|
+
overrideResponse !== undefined
|
|
119
|
+
? typeof overrideResponse === "function"
|
|
120
|
+
? await overrideResponse(info)
|
|
121
|
+
: overrideResponse
|
|
122
|
+
: getCreateEvmAccountResponseMock(),
|
|
123
|
+
),
|
|
124
|
+
{ status: 201, headers: { "Content-Type": "application/json" } },
|
|
125
|
+
);
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export const getGetEvmAccountMockHandler = (
|
|
130
|
+
overrideResponse?:
|
|
131
|
+
| EvmAccount
|
|
132
|
+
| ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EvmAccount> | EvmAccount),
|
|
133
|
+
) => {
|
|
134
|
+
return http.get("*/v2/evm/accounts/:address", async info => {
|
|
135
|
+
await delay(0);
|
|
136
|
+
|
|
137
|
+
return new HttpResponse(
|
|
138
|
+
JSON.stringify(
|
|
139
|
+
overrideResponse !== undefined
|
|
140
|
+
? typeof overrideResponse === "function"
|
|
141
|
+
? await overrideResponse(info)
|
|
142
|
+
: overrideResponse
|
|
143
|
+
: getGetEvmAccountResponseMock(),
|
|
144
|
+
),
|
|
145
|
+
{ status: 200, headers: { "Content-Type": "application/json" } },
|
|
146
|
+
);
|
|
147
|
+
});
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export const getGetEvmAccountByNameMockHandler = (
|
|
151
|
+
overrideResponse?:
|
|
152
|
+
| EvmAccount
|
|
153
|
+
| ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EvmAccount> | EvmAccount),
|
|
154
|
+
) => {
|
|
155
|
+
return http.get("*/v2/evm/accounts/by-name/:name", async info => {
|
|
156
|
+
await delay(0);
|
|
157
|
+
|
|
158
|
+
return new HttpResponse(
|
|
159
|
+
JSON.stringify(
|
|
160
|
+
overrideResponse !== undefined
|
|
161
|
+
? typeof overrideResponse === "function"
|
|
162
|
+
? await overrideResponse(info)
|
|
163
|
+
: overrideResponse
|
|
164
|
+
: getGetEvmAccountByNameResponseMock(),
|
|
165
|
+
),
|
|
166
|
+
{ status: 200, headers: { "Content-Type": "application/json" } },
|
|
167
|
+
);
|
|
168
|
+
});
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export const getSendEvmTransactionMockHandler = (
|
|
172
|
+
overrideResponse?:
|
|
173
|
+
| SendEvmTransaction200
|
|
174
|
+
| ((
|
|
175
|
+
info: Parameters<Parameters<typeof http.post>[1]>[0],
|
|
176
|
+
) => Promise<SendEvmTransaction200> | SendEvmTransaction200),
|
|
177
|
+
) => {
|
|
178
|
+
return http.post("*/v2/evm/accounts/:address/send/transaction", async info => {
|
|
179
|
+
await delay(0);
|
|
180
|
+
|
|
181
|
+
return new HttpResponse(
|
|
182
|
+
JSON.stringify(
|
|
183
|
+
overrideResponse !== undefined
|
|
184
|
+
? typeof overrideResponse === "function"
|
|
185
|
+
? await overrideResponse(info)
|
|
186
|
+
: overrideResponse
|
|
187
|
+
: getSendEvmTransactionResponseMock(),
|
|
188
|
+
),
|
|
189
|
+
{ status: 200, headers: { "Content-Type": "application/json" } },
|
|
190
|
+
);
|
|
191
|
+
});
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export const getSignEvmTransactionMockHandler = (
|
|
195
|
+
overrideResponse?:
|
|
196
|
+
| SignEvmTransaction200
|
|
197
|
+
| ((
|
|
198
|
+
info: Parameters<Parameters<typeof http.post>[1]>[0],
|
|
199
|
+
) => Promise<SignEvmTransaction200> | SignEvmTransaction200),
|
|
200
|
+
) => {
|
|
201
|
+
return http.post("*/v2/evm/accounts/:address/sign/transaction", async info => {
|
|
202
|
+
await delay(0);
|
|
203
|
+
|
|
204
|
+
return new HttpResponse(
|
|
205
|
+
JSON.stringify(
|
|
206
|
+
overrideResponse !== undefined
|
|
207
|
+
? typeof overrideResponse === "function"
|
|
208
|
+
? await overrideResponse(info)
|
|
209
|
+
: overrideResponse
|
|
210
|
+
: getSignEvmTransactionResponseMock(),
|
|
211
|
+
),
|
|
212
|
+
{ status: 200, headers: { "Content-Type": "application/json" } },
|
|
213
|
+
);
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
export const getSignEvmHashMockHandler = (
|
|
218
|
+
overrideResponse?:
|
|
219
|
+
| SignEvmHash200
|
|
220
|
+
| ((
|
|
221
|
+
info: Parameters<Parameters<typeof http.post>[1]>[0],
|
|
222
|
+
) => Promise<SignEvmHash200> | SignEvmHash200),
|
|
223
|
+
) => {
|
|
224
|
+
return http.post("*/v2/evm/accounts/:address/sign", async info => {
|
|
225
|
+
await delay(0);
|
|
226
|
+
|
|
227
|
+
return new HttpResponse(
|
|
228
|
+
JSON.stringify(
|
|
229
|
+
overrideResponse !== undefined
|
|
230
|
+
? typeof overrideResponse === "function"
|
|
231
|
+
? await overrideResponse(info)
|
|
232
|
+
: overrideResponse
|
|
233
|
+
: getSignEvmHashResponseMock(),
|
|
234
|
+
),
|
|
235
|
+
{ status: 200, headers: { "Content-Type": "application/json" } },
|
|
236
|
+
);
|
|
237
|
+
});
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export const getSignEvmMessageMockHandler = (
|
|
241
|
+
overrideResponse?:
|
|
242
|
+
| SignEvmMessage200
|
|
243
|
+
| ((
|
|
244
|
+
info: Parameters<Parameters<typeof http.post>[1]>[0],
|
|
245
|
+
) => Promise<SignEvmMessage200> | SignEvmMessage200),
|
|
246
|
+
) => {
|
|
247
|
+
return http.post("*/v2/evm/accounts/:address/sign/message", async info => {
|
|
248
|
+
await delay(0);
|
|
249
|
+
|
|
250
|
+
return new HttpResponse(
|
|
251
|
+
JSON.stringify(
|
|
252
|
+
overrideResponse !== undefined
|
|
253
|
+
? typeof overrideResponse === "function"
|
|
254
|
+
? await overrideResponse(info)
|
|
255
|
+
: overrideResponse
|
|
256
|
+
: getSignEvmMessageResponseMock(),
|
|
257
|
+
),
|
|
258
|
+
{ status: 200, headers: { "Content-Type": "application/json" } },
|
|
259
|
+
);
|
|
260
|
+
});
|
|
261
|
+
};
|
|
262
|
+
export const getEvmAccountsMock = () => [
|
|
263
|
+
getListEvmAccountsMockHandler(),
|
|
264
|
+
getCreateEvmAccountMockHandler(),
|
|
265
|
+
getGetEvmAccountMockHandler(),
|
|
266
|
+
getGetEvmAccountByNameMockHandler(),
|
|
267
|
+
getSendEvmTransactionMockHandler(),
|
|
268
|
+
getSignEvmTransactionMockHandler(),
|
|
269
|
+
getSignEvmHashMockHandler(),
|
|
270
|
+
getSignEvmMessageMockHandler(),
|
|
271
|
+
];
|
|
@@ -0,0 +1,194 @@
|
|
|
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 {
|
|
9
|
+
CreateEvmAccountBody,
|
|
10
|
+
EvmAccount,
|
|
11
|
+
ListEvmAccounts200,
|
|
12
|
+
ListEvmAccountsParams,
|
|
13
|
+
SendEvmTransaction200,
|
|
14
|
+
SendEvmTransactionBody,
|
|
15
|
+
SignEvmHash200,
|
|
16
|
+
SignEvmHashBody,
|
|
17
|
+
SignEvmMessage200,
|
|
18
|
+
SignEvmMessageBody,
|
|
19
|
+
SignEvmTransaction200,
|
|
20
|
+
SignEvmTransactionBody,
|
|
21
|
+
} from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
22
|
+
|
|
23
|
+
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
24
|
+
|
|
25
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Lists the EVM accounts belonging to the developer's CDP Project.
|
|
29
|
+
The response is paginated, and by default, returns 20 accounts per page.
|
|
30
|
+
* @summary List EVM accounts
|
|
31
|
+
*/
|
|
32
|
+
export const listEvmAccounts = (
|
|
33
|
+
params?: ListEvmAccountsParams,
|
|
34
|
+
options?: SecondParameter<typeof cdpApiClient>,
|
|
35
|
+
) => {
|
|
36
|
+
return cdpApiClient<ListEvmAccounts200>(
|
|
37
|
+
{ url: `/v2/evm/accounts`, method: "GET", params },
|
|
38
|
+
options,
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Creates a new EVM account.
|
|
43
|
+
* @summary Create an EVM account
|
|
44
|
+
*/
|
|
45
|
+
export const createEvmAccount = (
|
|
46
|
+
createEvmAccountBody?: CreateEvmAccountBody,
|
|
47
|
+
options?: SecondParameter<typeof cdpApiClient>,
|
|
48
|
+
) => {
|
|
49
|
+
return cdpApiClient<EvmAccount>(
|
|
50
|
+
{
|
|
51
|
+
url: `/v2/evm/accounts`,
|
|
52
|
+
method: "POST",
|
|
53
|
+
headers: { "Content-Type": "application/json" },
|
|
54
|
+
data: createEvmAccountBody,
|
|
55
|
+
},
|
|
56
|
+
options,
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Gets an EVM account by its address.
|
|
61
|
+
* @summary Get an EVM account by address
|
|
62
|
+
*/
|
|
63
|
+
export const getEvmAccount = (address: string, options?: SecondParameter<typeof cdpApiClient>) => {
|
|
64
|
+
return cdpApiClient<EvmAccount>({ url: `/v2/evm/accounts/${address}`, method: "GET" }, options);
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Gets an EVM account by its name.
|
|
68
|
+
* @summary Get an EVM account by name
|
|
69
|
+
*/
|
|
70
|
+
export const getEvmAccountByName = (
|
|
71
|
+
name: string,
|
|
72
|
+
options?: SecondParameter<typeof cdpApiClient>,
|
|
73
|
+
) => {
|
|
74
|
+
return cdpApiClient<EvmAccount>(
|
|
75
|
+
{ url: `/v2/evm/accounts/by-name/${name}`, method: "GET" },
|
|
76
|
+
options,
|
|
77
|
+
);
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* 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/).
|
|
81
|
+
|
|
82
|
+
The transaction must be an [EIP-1559 dynamic fee transaction](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1559.md).
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
**Transaction fields and API behavior**
|
|
86
|
+
|
|
87
|
+
- `to` *(Required)*: The address of the contract or account to send the transaction to.
|
|
88
|
+
- `chainId` *(Ignored)*: The value of the `chainId` field in the transaction is ignored.
|
|
89
|
+
The transaction will be sent to the network indicated by the `network` field in the request body.
|
|
90
|
+
|
|
91
|
+
- `nonce` *(Optional)*: The nonce to use for the transaction. If not provided, the API will assign
|
|
92
|
+
a nonce to the transaction based on the current state of the account.
|
|
93
|
+
|
|
94
|
+
- `maxPriorityFeePerGas` *(Optional)*: The maximum priority fee per gas to use for the transaction.
|
|
95
|
+
If not provided, the API will estimate a value based on current network conditions.
|
|
96
|
+
|
|
97
|
+
- `maxFeePerGas` *(Optional)*: The maximum fee per gas to use for the transaction.
|
|
98
|
+
If not provided, the API will estimate a value based on current network conditions.
|
|
99
|
+
|
|
100
|
+
- `gasLimit` *(Optional)*: The gas limit to use for the transaction. If not provided, the API will estimate a value
|
|
101
|
+
based on the `to` and `data` fields of the transaction.
|
|
102
|
+
|
|
103
|
+
- `value` *(Optional)*: The amount of ETH, in wei, to send with the transaction.
|
|
104
|
+
- `data` *(Optional)*: The data to send with the transaction; only used for contract calls.
|
|
105
|
+
- `accessList` *(Optional)*: The access list to use for the transaction.
|
|
106
|
+
* @summary Send a transaction
|
|
107
|
+
*/
|
|
108
|
+
export const sendEvmTransaction = (
|
|
109
|
+
address: string,
|
|
110
|
+
sendEvmTransactionBody: SendEvmTransactionBody,
|
|
111
|
+
options?: SecondParameter<typeof cdpApiClient>,
|
|
112
|
+
) => {
|
|
113
|
+
return cdpApiClient<SendEvmTransaction200>(
|
|
114
|
+
{
|
|
115
|
+
url: `/v2/evm/accounts/${address}/send/transaction`,
|
|
116
|
+
method: "POST",
|
|
117
|
+
headers: { "Content-Type": "application/json" },
|
|
118
|
+
data: sendEvmTransactionBody,
|
|
119
|
+
},
|
|
120
|
+
options,
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Signs a transaction with the given EVM account.
|
|
125
|
+
The transaction should be serialized as a hex string using [RLP](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/).
|
|
126
|
+
|
|
127
|
+
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.
|
|
128
|
+
* @summary Sign a transaction
|
|
129
|
+
*/
|
|
130
|
+
export const signEvmTransaction = (
|
|
131
|
+
address: string,
|
|
132
|
+
signEvmTransactionBody: SignEvmTransactionBody,
|
|
133
|
+
options?: SecondParameter<typeof cdpApiClient>,
|
|
134
|
+
) => {
|
|
135
|
+
return cdpApiClient<SignEvmTransaction200>(
|
|
136
|
+
{
|
|
137
|
+
url: `/v2/evm/accounts/${address}/sign/transaction`,
|
|
138
|
+
method: "POST",
|
|
139
|
+
headers: { "Content-Type": "application/json" },
|
|
140
|
+
data: signEvmTransactionBody,
|
|
141
|
+
},
|
|
142
|
+
options,
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Signs an arbitrary 32 byte hash with the given EVM account.
|
|
147
|
+
* @summary Sign a hash
|
|
148
|
+
*/
|
|
149
|
+
export const signEvmHash = (
|
|
150
|
+
address: string,
|
|
151
|
+
signEvmHashBody: SignEvmHashBody,
|
|
152
|
+
options?: SecondParameter<typeof cdpApiClient>,
|
|
153
|
+
) => {
|
|
154
|
+
return cdpApiClient<SignEvmHash200>(
|
|
155
|
+
{
|
|
156
|
+
url: `/v2/evm/accounts/${address}/sign`,
|
|
157
|
+
method: "POST",
|
|
158
|
+
headers: { "Content-Type": "application/json" },
|
|
159
|
+
data: signEvmHashBody,
|
|
160
|
+
},
|
|
161
|
+
options,
|
|
162
|
+
);
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* Signs an [EIP-191](https://eips.ethereum.org/EIPS/eip-191) message with the given EVM account.
|
|
166
|
+
|
|
167
|
+
Per the specification, the message in the request body is prepended with `0x19 <0x45 (E)> <thereum Signed Message:\n" + len(message)>` before being signed.
|
|
168
|
+
* @summary Sign an EIP-191 message
|
|
169
|
+
*/
|
|
170
|
+
export const signEvmMessage = (
|
|
171
|
+
address: string,
|
|
172
|
+
signEvmMessageBody: SignEvmMessageBody,
|
|
173
|
+
options?: SecondParameter<typeof cdpApiClient>,
|
|
174
|
+
) => {
|
|
175
|
+
return cdpApiClient<SignEvmMessage200>(
|
|
176
|
+
{
|
|
177
|
+
url: `/v2/evm/accounts/${address}/sign/message`,
|
|
178
|
+
method: "POST",
|
|
179
|
+
headers: { "Content-Type": "application/json" },
|
|
180
|
+
data: signEvmMessageBody,
|
|
181
|
+
},
|
|
182
|
+
options,
|
|
183
|
+
);
|
|
184
|
+
};
|
|
185
|
+
export type ListEvmAccountsResult = NonNullable<Awaited<ReturnType<typeof listEvmAccounts>>>;
|
|
186
|
+
export type CreateEvmAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmAccount>>>;
|
|
187
|
+
export type GetEvmAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmAccount>>>;
|
|
188
|
+
export type GetEvmAccountByNameResult = NonNullable<
|
|
189
|
+
Awaited<ReturnType<typeof getEvmAccountByName>>
|
|
190
|
+
>;
|
|
191
|
+
export type SendEvmTransactionResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransaction>>>;
|
|
192
|
+
export type SignEvmTransactionResult = NonNullable<Awaited<ReturnType<typeof signEvmTransaction>>>;
|
|
193
|
+
export type SignEvmHashResult = NonNullable<Awaited<ReturnType<typeof signEvmHash>>>;
|
|
194
|
+
export type SignEvmMessageResult = NonNullable<Awaited<ReturnType<typeof signEvmMessage>>>;
|