@coinbase/cdp-sdk 1.6.0 → 1.8.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 +23 -0
- package/README.md +284 -1
- package/_cjs/accounts/evm/toEvmServerAccount.js +4 -2
- package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toEvmSmartAccount.js +7 -0
- package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_cjs/accounts/evm/types.js.map +1 -0
- package/_cjs/accounts/solana/toSolanaAccount.js +42 -0
- package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -0
- package/_cjs/accounts/solana/types.js +3 -0
- package/_cjs/accounts/solana/types.js.map +1 -0
- package/_cjs/actions/evm/getUserOperation.js +36 -0
- package/_cjs/actions/evm/getUserOperation.js.map +1 -0
- package/_cjs/actions/evm/transfer/accountTransferStrategy.js +11 -7
- package/_cjs/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
- package/_cjs/actions/evm/transfer/smartAccountTransferStrategy.js +9 -6
- package/_cjs/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
- package/_cjs/actions/evm/transfer/transfer.js +7 -3
- package/_cjs/actions/evm/transfer/transfer.js.map +1 -1
- package/_cjs/actions/solana/requestFaucet.js +29 -0
- package/_cjs/actions/solana/requestFaucet.js.map +1 -0
- package/_cjs/actions/solana/signMessage.js +29 -0
- package/_cjs/actions/solana/signMessage.js.map +1 -0
- package/_cjs/actions/solana/signTransaction.js +46 -0
- package/_cjs/actions/solana/signTransaction.js.map +1 -0
- package/_cjs/actions/solana/types.js +3 -0
- package/_cjs/actions/solana/types.js.map +1 -0
- package/_cjs/analytics.js +68 -8
- package/_cjs/analytics.js.map +1 -1
- package/_cjs/client/cdp.js +9 -3
- package/_cjs/client/cdp.js.map +1 -1
- package/_cjs/client/evm/evm.js +135 -27
- package/_cjs/client/evm/evm.js.map +1 -1
- package/_cjs/client/policies/index.js +6 -0
- package/_cjs/client/policies/index.js.map +1 -0
- package/_cjs/client/policies/policies.js +232 -0
- package/_cjs/client/policies/policies.js.map +1 -0
- package/_cjs/client/policies/policies.types.js +3 -0
- package/_cjs/client/policies/policies.types.js.map +1 -0
- package/_cjs/client/solana/solana.js +84 -22
- package/_cjs/client/solana/solana.js.map +1 -1
- package/_cjs/index.js +4 -1
- package/_cjs/index.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +59 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js +27 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js +56 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +1 -1
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +3 -1
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/index.msw.js +3 -2
- package/_cjs/openapi-client/generated/index.msw.js.map +1 -1
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js +56 -0
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -0
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js +284 -0
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -0
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js +14 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js +42 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +1 -1
- package/_cjs/openapi-client/index.js +7 -1
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/policies/schema.js +186 -0
- package/_cjs/policies/schema.js.map +1 -0
- package/_cjs/policies/types.js +3 -0
- package/_cjs/{accounts → policies}/types.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/toEvmServerAccount.js +4 -2
- package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toEvmSmartAccount.js +7 -0
- package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
- package/_esm/accounts/evm/types.js.map +1 -0
- package/_esm/accounts/solana/toSolanaAccount.js +39 -0
- package/_esm/accounts/solana/toSolanaAccount.js.map +1 -0
- package/_esm/accounts/solana/types.js +2 -0
- package/_esm/accounts/solana/types.js.map +1 -0
- package/_esm/actions/evm/getUserOperation.js +33 -0
- package/_esm/actions/evm/getUserOperation.js.map +1 -0
- package/_esm/actions/evm/transfer/accountTransferStrategy.js +11 -7
- package/_esm/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
- package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js +9 -6
- package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
- package/_esm/actions/evm/transfer/transfer.js +7 -3
- package/_esm/actions/evm/transfer/transfer.js.map +1 -1
- package/_esm/actions/solana/requestFaucet.js +26 -0
- package/_esm/actions/solana/requestFaucet.js.map +1 -0
- package/_esm/actions/solana/signMessage.js +26 -0
- package/_esm/actions/solana/signMessage.js.map +1 -0
- package/_esm/actions/solana/signTransaction.js +43 -0
- package/_esm/actions/solana/signTransaction.js.map +1 -0
- package/_esm/actions/solana/types.js +2 -0
- package/_esm/actions/solana/types.js.map +1 -0
- package/_esm/analytics.js +68 -7
- package/_esm/analytics.js.map +1 -1
- package/_esm/client/cdp.js +10 -4
- package/_esm/client/cdp.js.map +1 -1
- package/_esm/client/evm/evm.js +135 -27
- package/_esm/client/evm/evm.js.map +1 -1
- package/_esm/client/policies/index.js +2 -0
- package/_esm/client/policies/index.js.map +1 -0
- package/_esm/client/policies/policies.js +228 -0
- package/_esm/client/policies/policies.js.map +1 -0
- package/_esm/client/policies/policies.types.js +2 -0
- package/_esm/client/policies/policies.types.js.map +1 -0
- package/_esm/client/solana/solana.js +84 -22
- package/_esm/client/solana/solana.js.map +1 -1
- package/_esm/index.js +1 -0
- package/_esm/index.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +58 -0
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js +24 -0
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js +51 -0
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +1 -1
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +3 -1
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/index.msw.js +3 -2
- package/_esm/openapi-client/generated/index.msw.js.map +1 -1
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js +48 -0
- package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -0
- package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js +259 -0
- package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -0
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js +12 -0
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.js.map +1 -1
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js +39 -0
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +1 -1
- package/_esm/openapi-client/index.js +6 -0
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/policies/schema.js +183 -0
- package/_esm/policies/schema.js.map +1 -0
- package/_esm/policies/types.js +2 -0
- package/_esm/{accounts → policies}/types.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/toEvmServerAccount.d.ts +1 -1
- package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toEvmSmartAccount.d.ts +1 -1
- package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/{types.d.ts → evm/types.d.ts} +10 -7
- package/_types/accounts/evm/types.d.ts.map +1 -0
- package/_types/accounts/solana/toSolanaAccount.d.ts +20 -0
- package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -0
- package/_types/accounts/solana/types.d.ts +12 -0
- package/_types/accounts/solana/types.d.ts.map +1 -0
- package/_types/actions/evm/getUserOperation.d.ts +22 -0
- package/_types/actions/evm/getUserOperation.d.ts.map +1 -0
- package/_types/actions/evm/sendUserOperation.d.ts +1 -1
- package/_types/actions/evm/sendUserOperation.d.ts.map +1 -1
- package/_types/actions/evm/transfer/accountTransferStrategy.d.ts +1 -1
- package/_types/actions/evm/transfer/accountTransferStrategy.d.ts.map +1 -1
- package/_types/actions/evm/transfer/smartAccountTransferStrategy.d.ts +1 -1
- package/_types/actions/evm/transfer/smartAccountTransferStrategy.d.ts.map +1 -1
- package/_types/actions/evm/transfer/transfer.d.ts +3 -3
- package/_types/actions/evm/transfer/transfer.d.ts.map +1 -1
- package/_types/actions/evm/transfer/types.d.ts +39 -6
- package/_types/actions/evm/transfer/types.d.ts.map +1 -1
- package/_types/actions/evm/types.d.ts +28 -5
- package/_types/actions/evm/types.d.ts.map +1 -1
- package/_types/actions/solana/requestFaucet.d.ts +23 -0
- package/_types/actions/solana/requestFaucet.d.ts.map +1 -0
- package/_types/actions/solana/signMessage.d.ts +23 -0
- package/_types/actions/solana/signMessage.d.ts.map +1 -0
- package/_types/actions/solana/signTransaction.d.ts +38 -0
- package/_types/actions/solana/signTransaction.d.ts.map +1 -0
- package/_types/actions/solana/types.d.ts +80 -0
- package/_types/actions/solana/types.d.ts.map +1 -0
- package/_types/analytics.d.ts +14 -5
- package/_types/analytics.d.ts.map +1 -1
- package/_types/client/cdp.d.ts +3 -0
- package/_types/client/cdp.d.ts.map +1 -1
- package/_types/client/evm/evm.d.ts +89 -1
- package/_types/client/evm/evm.d.ts.map +1 -1
- package/_types/client/evm/evm.types.d.ts +36 -6
- package/_types/client/evm/evm.types.d.ts.map +1 -1
- package/_types/client/policies/index.d.ts +2 -0
- package/_types/client/policies/index.d.ts.map +1 -0
- package/_types/client/policies/policies.d.ts +216 -0
- package/_types/client/policies/policies.d.ts.map +1 -0
- package/_types/client/policies/policies.types.d.ts +96 -0
- package/_types/client/policies/policies.types.d.ts.map +1 -0
- package/_types/client/solana/solana.d.ts +47 -4
- package/_types/client/solana/solana.d.ts.map +1 -1
- package/_types/client/solana/solana.types.d.ts +21 -12
- package/_types/client/solana/solana.types.d.ts.map +1 -1
- package/_types/index.d.ts +3 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +299 -0
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts +13 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts +5 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts.map +1 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +3 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/index.msw.d.ts +3 -2
- package/_types/openapi-client/generated/index.msw.d.ts.map +1 -1
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +43 -0
- package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -0
- package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts +25 -0
- package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts.map +1 -0
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts +7 -1
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.d.ts.map +1 -1
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts +2 -0
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +19 -0
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/schema.d.ts +922 -0
- package/_types/policies/schema.d.ts.map +1 -0
- package/_types/policies/types.d.ts +19 -0
- package/_types/policies/types.d.ts.map +1 -0
- package/_types/types/misc.d.ts +39 -0
- package/_types/types/misc.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/accounts/evm/toEvmServerAccount.ts +7 -4
- package/accounts/evm/toEvmSmartAccount.ts +11 -1
- package/accounts/{types.ts → evm/types.ts} +10 -12
- package/accounts/solana/toSolanaAccount.ts +60 -0
- package/accounts/solana/types.ts +13 -0
- package/actions/evm/getUserOperation.ts +40 -0
- package/actions/evm/sendUserOperation.ts +1 -1
- package/actions/evm/transfer/accountTransferStrategy.ts +12 -8
- package/actions/evm/transfer/smartAccountTransferStrategy.ts +10 -7
- package/actions/evm/transfer/transfer.ts +17 -6
- package/actions/evm/transfer/types.ts +54 -11
- package/actions/evm/types.ts +37 -5
- package/actions/solana/requestFaucet.ts +35 -0
- package/actions/solana/signMessage.ts +36 -0
- package/actions/solana/signTransaction.ts +53 -0
- package/actions/solana/types.ts +87 -0
- package/analytics.ts +84 -11
- package/client/cdp.ts +11 -4
- package/client/evm/evm.ts +162 -33
- package/client/evm/evm.types.ts +42 -4
- package/client/policies/index.ts +1 -0
- package/client/policies/policies.ts +246 -0
- package/client/policies/policies.types.ts +109 -0
- package/client/solana/solana.ts +107 -38
- package/client/solana/solana.types.ts +25 -15
- package/index.ts +8 -1
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +360 -0
- package/openapi-client/generated/evm-accounts/evm-accounts.msw.ts +102 -0
- package/openapi-client/generated/evm-accounts/evm-accounts.ts +43 -0
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +3 -1
- package/openapi-client/generated/index.msw.ts +3 -2
- package/openapi-client/generated/policy-engine/policy-engine.msw.ts +404 -0
- package/openapi-client/generated/policy-engine/policy-engine.ts +95 -0
- package/openapi-client/generated/solana-accounts/solana-accounts.msw.ts +75 -0
- package/openapi-client/generated/solana-accounts/solana-accounts.ts +23 -0
- package/openapi-client/index.ts +7 -0
- package/package.json +3 -2
- package/policies/schema.ts +266 -0
- package/policies/types.ts +19 -0
- package/types/misc.ts +41 -0
- package/version.ts +1 -1
- package/_types/accounts/types.d.ts.map +0 -1
- /package/_cjs/accounts/{types.js → evm/types.js} +0 -0
- /package/_esm/accounts/{types.js → evm/types.js} +0 -0
|
@@ -18,6 +18,8 @@ export interface EvmAccount {
|
|
|
18
18
|
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
19
19
|
*/
|
|
20
20
|
name?: string;
|
|
21
|
+
/** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
22
|
+
policies?: string[];
|
|
21
23
|
}
|
|
22
24
|
export interface ListResponse {
|
|
23
25
|
/** The token for the next page of items, if any. */
|
|
@@ -29,6 +31,7 @@ export interface ListResponse {
|
|
|
29
31
|
export type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
|
|
30
32
|
export declare const ErrorType: {
|
|
31
33
|
readonly already_exists: "already_exists";
|
|
34
|
+
readonly bad_gateway: "bad_gateway";
|
|
32
35
|
readonly faucet_limit_exceeded: "faucet_limit_exceeded";
|
|
33
36
|
readonly forbidden: "forbidden";
|
|
34
37
|
readonly idempotency_error: "idempotency_error";
|
|
@@ -39,9 +42,11 @@ export declare const ErrorType: {
|
|
|
39
42
|
readonly not_found: "not_found";
|
|
40
43
|
readonly rate_limit_exceeded: "rate_limit_exceeded";
|
|
41
44
|
readonly request_canceled: "request_canceled";
|
|
45
|
+
readonly service_unavailable: "service_unavailable";
|
|
42
46
|
readonly timed_out: "timed_out";
|
|
43
47
|
readonly unauthorized: "unauthorized";
|
|
44
48
|
readonly policy_violation: "policy_violation";
|
|
49
|
+
readonly policy_in_use: "policy_in_use";
|
|
45
50
|
};
|
|
46
51
|
/**
|
|
47
52
|
* An error response including the code for the type of error and a human-readable message describing the error.
|
|
@@ -55,6 +60,52 @@ export interface Error {
|
|
|
55
60
|
/** A link to the corresponding error documentation. */
|
|
56
61
|
errorLink?: string;
|
|
57
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* The domain of the EIP-712 typed data.
|
|
65
|
+
*/
|
|
66
|
+
export interface EIP712Domain {
|
|
67
|
+
/** The name of the DApp or protocol. */
|
|
68
|
+
name?: string;
|
|
69
|
+
/** The version of the DApp or protocol. */
|
|
70
|
+
version?: string;
|
|
71
|
+
/** The chain ID of the EVM network. */
|
|
72
|
+
chainId?: number;
|
|
73
|
+
/**
|
|
74
|
+
* The 0x-prefixed EVM address of the verifying smart contract.
|
|
75
|
+
* @pattern ^0x[a-fA-F0-9]{40}$
|
|
76
|
+
*/
|
|
77
|
+
verifyingContract?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The optional 32-byte 0x-prefixed hex salt for domain separation.
|
|
80
|
+
* @pattern ^0x[a-fA-F0-9]{64}$
|
|
81
|
+
*/
|
|
82
|
+
salt?: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A mapping of struct names to an array of type objects (name + type).
|
|
86
|
+
Each key corresponds to a type name (e.g., "`EIP712Domain`", "`PermitTransferFrom`").
|
|
87
|
+
|
|
88
|
+
*/
|
|
89
|
+
export interface EIP712Types {
|
|
90
|
+
[key: string]: unknown;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The message to sign. The structure of this message must match the `primaryType` struct in the `types` object.
|
|
94
|
+
*/
|
|
95
|
+
export type EIP712MessageMessage = {
|
|
96
|
+
[key: string]: unknown;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* The message to sign using EIP-712.
|
|
100
|
+
*/
|
|
101
|
+
export interface EIP712Message {
|
|
102
|
+
domain: EIP712Domain;
|
|
103
|
+
types: EIP712Types;
|
|
104
|
+
/** The primary type of the message. This is the name of the struct in the `types` object that is the root of the message. */
|
|
105
|
+
primaryType: string;
|
|
106
|
+
/** The message to sign. The structure of this message must match the `primaryType` struct in the `types` object. */
|
|
107
|
+
message: EIP712MessageMessage;
|
|
108
|
+
}
|
|
58
109
|
export interface EvmSmartAccount {
|
|
59
110
|
/**
|
|
60
111
|
* The 0x-prefixed, checksum address of the Smart Account.
|
|
@@ -173,6 +224,159 @@ export interface TokenBalance {
|
|
|
173
224
|
amount: TokenAmount;
|
|
174
225
|
token: Token;
|
|
175
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* The type of criterion to use. This should be `ethValue`.
|
|
229
|
+
*/
|
|
230
|
+
export type EthValueCriterionType = (typeof EthValueCriterionType)[keyof typeof EthValueCriterionType];
|
|
231
|
+
export declare const EthValueCriterionType: {
|
|
232
|
+
readonly ethValue: "ethValue";
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* The operator to use for the comparison. The transaction's `value` field will be on the left-hand side of the operator, and the `ethValue` field will be on the right-hand side.
|
|
236
|
+
*/
|
|
237
|
+
export type EthValueCriterionOperator = (typeof EthValueCriterionOperator)[keyof typeof EthValueCriterionOperator];
|
|
238
|
+
export declare const EthValueCriterionOperator: {
|
|
239
|
+
readonly ">": ">";
|
|
240
|
+
readonly ">=": ">=";
|
|
241
|
+
readonly "<": "<";
|
|
242
|
+
readonly "<=": "<=";
|
|
243
|
+
readonly "==": "==";
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* A schema for specifying a criterion for the `value` field of an EVM transaction.
|
|
247
|
+
*/
|
|
248
|
+
export interface EthValueCriterion {
|
|
249
|
+
/** The type of criterion to use. This should be `ethValue`. */
|
|
250
|
+
type: EthValueCriterionType;
|
|
251
|
+
/**
|
|
252
|
+
* The amount of ETH, in wei, that the transaction's `value` field should be compared to.
|
|
253
|
+
* @pattern ^[0-9]+$
|
|
254
|
+
*/
|
|
255
|
+
ethValue: string;
|
|
256
|
+
/** The operator to use for the comparison. The transaction's `value` field will be on the left-hand side of the operator, and the `ethValue` field will be on the right-hand side. */
|
|
257
|
+
operator: EthValueCriterionOperator;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* The type of criterion to use. This should be `evmAddress`.
|
|
261
|
+
*/
|
|
262
|
+
export type EvmAddressCriterionType = (typeof EvmAddressCriterionType)[keyof typeof EvmAddressCriterionType];
|
|
263
|
+
export declare const EvmAddressCriterionType: {
|
|
264
|
+
readonly evmAddress: "evmAddress";
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* The operator to use for the comparison. The transaction's `to` field will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side.
|
|
268
|
+
*/
|
|
269
|
+
export type EvmAddressCriterionOperator = (typeof EvmAddressCriterionOperator)[keyof typeof EvmAddressCriterionOperator];
|
|
270
|
+
export declare const EvmAddressCriterionOperator: {
|
|
271
|
+
readonly in: "in";
|
|
272
|
+
readonly not_in: "not in";
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* A schema for specifying a criterion for the `to` field of an EVM transaction.
|
|
276
|
+
*/
|
|
277
|
+
export interface EvmAddressCriterion {
|
|
278
|
+
/** The type of criterion to use. This should be `evmAddress`. */
|
|
279
|
+
type: EvmAddressCriterionType;
|
|
280
|
+
/** A list of 0x-prefixed EVM addresses that the transaction's `to` field should be compared to. There is a limit of 100 addresses per criterion. */
|
|
281
|
+
addresses: string[];
|
|
282
|
+
/** The operator to use for the comparison. The transaction's `to` field will be on the left-hand side of the operator, and the `addresses` field will be on the right-hand side. */
|
|
283
|
+
operator: EvmAddressCriterionOperator;
|
|
284
|
+
}
|
|
285
|
+
export type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion;
|
|
286
|
+
/**
|
|
287
|
+
* A schema for specifying the rejection criteria for the SignEvmTransaction operation.
|
|
288
|
+
*/
|
|
289
|
+
export type SignEvmTransactionCriteria = SignEvmTransactionCriteriaItem[];
|
|
290
|
+
/**
|
|
291
|
+
* The type of criterion to use. This should be `solAddress`.
|
|
292
|
+
*/
|
|
293
|
+
export type SolAddressCriterionType = (typeof SolAddressCriterionType)[keyof typeof SolAddressCriterionType];
|
|
294
|
+
export declare const SolAddressCriterionType: {
|
|
295
|
+
readonly solAddress: "solAddress";
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* The operator to use for the comparison. Each of the addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the addresses field will be on the right-hand side.
|
|
299
|
+
*/
|
|
300
|
+
export type SolAddressCriterionOperator = (typeof SolAddressCriterionOperator)[keyof typeof SolAddressCriterionOperator];
|
|
301
|
+
export declare const SolAddressCriterionOperator: {
|
|
302
|
+
readonly in: "in";
|
|
303
|
+
readonly not_in: "not in";
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* The criterion for the recipient addresses of a Solana transaction.
|
|
307
|
+
*/
|
|
308
|
+
export interface SolAddressCriterion {
|
|
309
|
+
/** The type of criterion to use. This should be `solAddress`. */
|
|
310
|
+
type: SolAddressCriterionType;
|
|
311
|
+
/** The Solana addresses that are compared to the list of addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array. */
|
|
312
|
+
addresses: string[];
|
|
313
|
+
/** The operator to use for the comparison. Each of the addresses in the transaction's `accountKeys` (for legacy transactions) or `staticAccountKeys` (for V0 transactions) array will be on the left-hand side of the operator, and the addresses field will be on the right-hand side. */
|
|
314
|
+
operator: SolAddressCriterionOperator;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* A schema for specifying the rejection criteria for the SignSolTransaction operation.
|
|
318
|
+
*/
|
|
319
|
+
export type SignSolTransactionCriteria = SolAddressCriterion[];
|
|
320
|
+
/**
|
|
321
|
+
* Whether matching the rule will cause the request to be rejected or accepted.
|
|
322
|
+
*/
|
|
323
|
+
export type RuleAction = (typeof RuleAction)[keyof typeof RuleAction];
|
|
324
|
+
export declare const RuleAction: {
|
|
325
|
+
readonly reject: "reject";
|
|
326
|
+
readonly accept: "accept";
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* The operation to which the rule applies. Every element of the `criteria` array must match the specified operation.
|
|
330
|
+
*/
|
|
331
|
+
export type RuleOperation = (typeof RuleOperation)[keyof typeof RuleOperation];
|
|
332
|
+
export declare const RuleOperation: {
|
|
333
|
+
readonly signEvmTransaction: "signEvmTransaction";
|
|
334
|
+
readonly signSolTransaction: "signSolTransaction";
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* The set of criteria for the rule. There is a limit of 10 criteria per rule.
|
|
338
|
+
*/
|
|
339
|
+
export type RuleCriteria = SignEvmTransactionCriteria | SignSolTransactionCriteria;
|
|
340
|
+
/**
|
|
341
|
+
* A rule that limits the behavior of an account.
|
|
342
|
+
*/
|
|
343
|
+
export interface Rule {
|
|
344
|
+
/** Whether matching the rule will cause the request to be rejected or accepted. */
|
|
345
|
+
action: RuleAction;
|
|
346
|
+
/** The operation to which the rule applies. Every element of the `criteria` array must match the specified operation. */
|
|
347
|
+
operation: RuleOperation;
|
|
348
|
+
/** The set of criteria for the rule. There is a limit of 10 criteria per rule. */
|
|
349
|
+
criteria: RuleCriteria;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* The scope of the policy. Only one project-level policy can exist at any time.
|
|
353
|
+
*/
|
|
354
|
+
export type PolicyScope = (typeof PolicyScope)[keyof typeof PolicyScope];
|
|
355
|
+
export declare const PolicyScope: {
|
|
356
|
+
readonly project: "project";
|
|
357
|
+
readonly account: "account";
|
|
358
|
+
};
|
|
359
|
+
export interface Policy {
|
|
360
|
+
/**
|
|
361
|
+
* The unique identifier for the policy.
|
|
362
|
+
* @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
|
|
363
|
+
*/
|
|
364
|
+
id: string;
|
|
365
|
+
/**
|
|
366
|
+
* An optional human-readable description of the policy.
|
|
367
|
+
Policy descriptions can consist of alphanumeric characters, spaces, commas, and periods, and be 50 characters or less.
|
|
368
|
+
* @pattern ^[A-Za-z0-9 ,.]{1,50}$
|
|
369
|
+
*/
|
|
370
|
+
description?: string;
|
|
371
|
+
/** The scope of the policy. Only one project-level policy can exist at any time. */
|
|
372
|
+
scope: PolicyScope;
|
|
373
|
+
/** A list of rules that comprise the policy. */
|
|
374
|
+
rules: Rule[];
|
|
375
|
+
/** The ISO 8601 timestamp at which the Policy was created. */
|
|
376
|
+
createdAt: string;
|
|
377
|
+
/** The ISO 8601 timestamp at which the Policy was last updated. */
|
|
378
|
+
updatedAt: string;
|
|
379
|
+
}
|
|
176
380
|
export interface SolanaAccount {
|
|
177
381
|
/**
|
|
178
382
|
* The base58 encoded Solana address.
|
|
@@ -186,11 +390,21 @@ export interface SolanaAccount {
|
|
|
186
390
|
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
187
391
|
*/
|
|
188
392
|
name?: string;
|
|
393
|
+
/** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
|
|
394
|
+
policies?: string[];
|
|
189
395
|
}
|
|
190
396
|
/**
|
|
191
397
|
* Internal server error.
|
|
192
398
|
*/
|
|
193
399
|
export type InternalServerErrorResponse = Error;
|
|
400
|
+
/**
|
|
401
|
+
* Bad gateway.
|
|
402
|
+
*/
|
|
403
|
+
export type BadGatewayErrorResponse = Error;
|
|
404
|
+
/**
|
|
405
|
+
* Service unavailable.
|
|
406
|
+
*/
|
|
407
|
+
export type ServiceUnavailableErrorResponse = Error;
|
|
194
408
|
/**
|
|
195
409
|
* Idempotency key conflict.
|
|
196
410
|
*/
|
|
@@ -237,6 +451,20 @@ export type CreateEvmAccountBody = {
|
|
|
237
451
|
*/
|
|
238
452
|
name?: string;
|
|
239
453
|
};
|
|
454
|
+
export type UpdateEvmAccountBody = {
|
|
455
|
+
/**
|
|
456
|
+
* An optional name for the account.
|
|
457
|
+
Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
458
|
+
Account names must be unique across all EVM accounts in the developer's CDP Project.
|
|
459
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
460
|
+
*/
|
|
461
|
+
name?: string;
|
|
462
|
+
/**
|
|
463
|
+
* The ID of the account-level policy to apply to the account.
|
|
464
|
+
* @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
|
|
465
|
+
*/
|
|
466
|
+
accountPolicy?: string;
|
|
467
|
+
};
|
|
240
468
|
/**
|
|
241
469
|
* The network to send the transaction to.
|
|
242
470
|
*/
|
|
@@ -279,6 +507,10 @@ export type SignEvmMessage200 = {
|
|
|
279
507
|
/** The signature of the message, as a 0x-prefixed hex string. */
|
|
280
508
|
signature: string;
|
|
281
509
|
};
|
|
510
|
+
export type SignEvmTypedData200 = {
|
|
511
|
+
/** The signature of the typed data, as a 0x-prefixed hex string. */
|
|
512
|
+
signature: string;
|
|
513
|
+
};
|
|
282
514
|
export type ListEvmSmartAccountsParams = {
|
|
283
515
|
/**
|
|
284
516
|
* The number of accounts to return per page.
|
|
@@ -367,6 +599,60 @@ export type RequestEvmFaucet200 = {
|
|
|
367
599
|
**Note:** In rare cases, when gas conditions are unusually high, the transaction may not confirm, and the system may issue a replacement transaction to complete the faucet request. In these rare cases, the `transactionHash` will be out of sync with the actual faucet transaction that was confirmed onchain. */
|
|
368
600
|
transactionHash: string;
|
|
369
601
|
};
|
|
602
|
+
export type ListPoliciesParams = {
|
|
603
|
+
/**
|
|
604
|
+
* The number of policies to return per page.
|
|
605
|
+
*/
|
|
606
|
+
pageSize?: number;
|
|
607
|
+
/**
|
|
608
|
+
* The token for the next page of policies, if any.
|
|
609
|
+
*/
|
|
610
|
+
pageToken?: string;
|
|
611
|
+
/**
|
|
612
|
+
* The scope of the policies to return. If `project`, the response will include exactly one policy, which is the project-level policy. If `account`, the response will include all account-level policies for the developer's CDP Project.
|
|
613
|
+
*/
|
|
614
|
+
scope?: ListPoliciesScope;
|
|
615
|
+
};
|
|
616
|
+
export type ListPoliciesScope = (typeof ListPoliciesScope)[keyof typeof ListPoliciesScope];
|
|
617
|
+
export declare const ListPoliciesScope: {
|
|
618
|
+
readonly project: "project";
|
|
619
|
+
readonly account: "account";
|
|
620
|
+
};
|
|
621
|
+
export type ListPolicies200AllOf = {
|
|
622
|
+
/** The list of policies. */
|
|
623
|
+
policies: Policy[];
|
|
624
|
+
};
|
|
625
|
+
export type ListPolicies200 = ListPolicies200AllOf & ListResponse;
|
|
626
|
+
/**
|
|
627
|
+
* The scope of the policy.
|
|
628
|
+
*/
|
|
629
|
+
export type CreatePolicyBodyScope = (typeof CreatePolicyBodyScope)[keyof typeof CreatePolicyBodyScope];
|
|
630
|
+
export declare const CreatePolicyBodyScope: {
|
|
631
|
+
readonly project: "project";
|
|
632
|
+
readonly account: "account";
|
|
633
|
+
};
|
|
634
|
+
export type CreatePolicyBody = {
|
|
635
|
+
/** The scope of the policy. */
|
|
636
|
+
scope: CreatePolicyBodyScope;
|
|
637
|
+
/**
|
|
638
|
+
* An optional human-readable description for the policy.
|
|
639
|
+
Policy descriptions can consist of alphanumeric characters, spaces, commas, and periods, and be 50 characters or less.
|
|
640
|
+
* @pattern ^[A-Za-z0-9 ,.]{1,50}$
|
|
641
|
+
*/
|
|
642
|
+
description?: string;
|
|
643
|
+
/** A list of rules that comprise the policy. There is a limit of 10 rules per policy. */
|
|
644
|
+
rules: Rule[];
|
|
645
|
+
};
|
|
646
|
+
export type UpdatePolicyBody = {
|
|
647
|
+
/**
|
|
648
|
+
* An optional human-readable description for the policy.
|
|
649
|
+
Policy descriptions can consist of alphanumeric characters, spaces, commas, and periods, and be 50 characters or less.
|
|
650
|
+
* @pattern ^[A-Za-z0-9 ,.]{1,50}$
|
|
651
|
+
*/
|
|
652
|
+
description?: string;
|
|
653
|
+
/** A list of rules that comprise the policy. There is a limit of 10 rules per policy. */
|
|
654
|
+
rules: Rule[];
|
|
655
|
+
};
|
|
370
656
|
export type ListSolanaAccountsParams = {
|
|
371
657
|
/**
|
|
372
658
|
* The number of accounts to return per page.
|
|
@@ -391,6 +677,19 @@ export type CreateSolanaAccountBody = {
|
|
|
391
677
|
*/
|
|
392
678
|
name?: string;
|
|
393
679
|
};
|
|
680
|
+
export type UpdateSolanaAccountBody = {
|
|
681
|
+
/**
|
|
682
|
+
* An optional name for the account. Account names can consist of alphanumeric characters and hyphens, and be between 2 and 36 characters long.
|
|
683
|
+
Account names must be unique across all Solana accounts in the developer's CDP Project.
|
|
684
|
+
* @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
|
|
685
|
+
*/
|
|
686
|
+
name?: string;
|
|
687
|
+
/**
|
|
688
|
+
* The ID of the account-level policy to apply to the account.
|
|
689
|
+
* @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
|
|
690
|
+
*/
|
|
691
|
+
accountPolicy?: string;
|
|
692
|
+
};
|
|
394
693
|
export type SignSolanaTransactionBody = {
|
|
395
694
|
/** The base64 encoded transaction to sign. */
|
|
396
695
|
transaction: string;
|
|
@@ -1 +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;;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,gEAAgE;IAChE,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACtC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAGnF,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AAEX,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,KAAK,EAAE,4BAA4B,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,0EAA0E;IAC1E,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC"}
|
|
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;IACd,qJAAqJ;IACrJ,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;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;;;;;;;;;;;;;;;;;;CAkBZ,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,EAAE,MAAM,CAAC;CACpB;AA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
7
|
*/
|
|
8
|
-
import type { CreateEvmAccountBody, EvmAccount, ListEvmAccounts200, ListEvmAccountsParams, SendEvmTransaction200, SendEvmTransactionBody, SignEvmHash200, SignEvmHashBody, SignEvmMessage200, SignEvmMessageBody, SignEvmTransaction200, SignEvmTransactionBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
8
|
+
import type { CreateEvmAccountBody, EIP712Message, EvmAccount, ListEvmAccounts200, ListEvmAccountsParams, SendEvmTransaction200, SendEvmTransactionBody, SignEvmHash200, SignEvmHashBody, SignEvmMessage200, SignEvmMessageBody, SignEvmTransaction200, SignEvmTransactionBody, SignEvmTypedData200, UpdateEvmAccountBody } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
9
9
|
import { cdpApiClient } from "../../cdpApiClient.js";
|
|
10
10
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
11
11
|
/**
|
|
@@ -24,6 +24,11 @@ export declare const createEvmAccount: (createEvmAccountBody?: CreateEvmAccountB
|
|
|
24
24
|
* @summary Get an EVM account by address
|
|
25
25
|
*/
|
|
26
26
|
export declare const getEvmAccount: (address: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmAccount>;
|
|
27
|
+
/**
|
|
28
|
+
* Updates an existing EVM account. Use this to update the account's name or account-level policy.
|
|
29
|
+
* @summary Update an EVM account
|
|
30
|
+
*/
|
|
31
|
+
export declare const updateEvmAccount: (address: string, updateEvmAccountBody: UpdateEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmAccount>;
|
|
27
32
|
/**
|
|
28
33
|
* Gets an EVM account by its name.
|
|
29
34
|
* @summary Get an EVM account by name
|
|
@@ -79,13 +84,20 @@ Per the specification, the message in the request body is prepended with `0x19 <
|
|
|
79
84
|
* @summary Sign an EIP-191 message
|
|
80
85
|
*/
|
|
81
86
|
export declare const signEvmMessage: (address: string, signEvmMessageBody: SignEvmMessageBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmMessage200>;
|
|
87
|
+
/**
|
|
88
|
+
* Signs [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data with the given EVM account.
|
|
89
|
+
* @summary Sign EIP-712 typed data
|
|
90
|
+
*/
|
|
91
|
+
export declare const signEvmTypedData: (address: string, eIP712Message: EIP712Message, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmTypedData200>;
|
|
82
92
|
export type ListEvmAccountsResult = NonNullable<Awaited<ReturnType<typeof listEvmAccounts>>>;
|
|
83
93
|
export type CreateEvmAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmAccount>>>;
|
|
84
94
|
export type GetEvmAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmAccount>>>;
|
|
95
|
+
export type UpdateEvmAccountResult = NonNullable<Awaited<ReturnType<typeof updateEvmAccount>>>;
|
|
85
96
|
export type GetEvmAccountByNameResult = NonNullable<Awaited<ReturnType<typeof getEvmAccountByName>>>;
|
|
86
97
|
export type SendEvmTransactionResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransaction>>>;
|
|
87
98
|
export type SignEvmTransactionResult = NonNullable<Awaited<ReturnType<typeof signEvmTransaction>>>;
|
|
88
99
|
export type SignEvmHashResult = NonNullable<Awaited<ReturnType<typeof signEvmHash>>>;
|
|
89
100
|
export type SignEvmMessageResult = NonNullable<Awaited<ReturnType<typeof signEvmMessage>>>;
|
|
101
|
+
export type SignEvmTypedDataResult = NonNullable<Awaited<ReturnType<typeof signEvmTypedData>>>;
|
|
90
102
|
export {};
|
|
91
103
|
//# sourceMappingURL=evm-accounts.d.ts.map
|
|
@@ -1 +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,
|
|
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,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACrB,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,gBAAgB,GAC3B,SAAS,MAAM,EACf,sBAAsB,oBAAoB,EAC1C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,wBAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,MAAM,EACZ,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,wBAM/C,CAAC;AACF;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C;AACF,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACnG,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,OAAO,CAAC,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;AAC3F,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
import { http } from "msw";
|
|
2
|
-
import type { EvmAccount, ListEvmAccounts200, SendEvmTransaction200, SignEvmHash200, SignEvmMessage200, SignEvmTransaction200 } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
2
|
+
import type { EvmAccount, ListEvmAccounts200, SendEvmTransaction200, SignEvmHash200, SignEvmMessage200, SignEvmTransaction200, SignEvmTypedData200 } 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
|
+
export declare const getUpdateEvmAccountResponseMock: (overrideResponse?: Partial<EvmAccount>) => EvmAccount;
|
|
6
7
|
export declare const getGetEvmAccountByNameResponseMock: (overrideResponse?: Partial<EvmAccount>) => EvmAccount;
|
|
7
8
|
export declare const getSendEvmTransactionResponseMock: (overrideResponse?: Partial<SendEvmTransaction200>) => SendEvmTransaction200;
|
|
8
9
|
export declare const getSignEvmTransactionResponseMock: (overrideResponse?: Partial<SignEvmTransaction200>) => SignEvmTransaction200;
|
|
9
10
|
export declare const getSignEvmHashResponseMock: (overrideResponse?: Partial<SignEvmHash200>) => SignEvmHash200;
|
|
10
11
|
export declare const getSignEvmMessageResponseMock: (overrideResponse?: Partial<SignEvmMessage200>) => SignEvmMessage200;
|
|
12
|
+
export declare const getSignEvmTypedDataResponseMock: (overrideResponse?: Partial<SignEvmTypedData200>) => SignEvmTypedData200;
|
|
11
13
|
export declare const getListEvmAccountsMockHandler: (overrideResponse?: ListEvmAccounts200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListEvmAccounts200> | ListEvmAccounts200)) => import("msw").HttpHandler;
|
|
12
14
|
export declare const getCreateEvmAccountMockHandler: (overrideResponse?: EvmAccount | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<EvmAccount> | EvmAccount)) => import("msw").HttpHandler;
|
|
13
15
|
export declare const getGetEvmAccountMockHandler: (overrideResponse?: EvmAccount | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EvmAccount> | EvmAccount)) => import("msw").HttpHandler;
|
|
16
|
+
export declare const getUpdateEvmAccountMockHandler: (overrideResponse?: EvmAccount | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<EvmAccount> | EvmAccount)) => import("msw").HttpHandler;
|
|
14
17
|
export declare const getGetEvmAccountByNameMockHandler: (overrideResponse?: EvmAccount | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<EvmAccount> | EvmAccount)) => import("msw").HttpHandler;
|
|
15
18
|
export declare const getSendEvmTransactionMockHandler: (overrideResponse?: SendEvmTransaction200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SendEvmTransaction200> | SendEvmTransaction200)) => import("msw").HttpHandler;
|
|
16
19
|
export declare const getSignEvmTransactionMockHandler: (overrideResponse?: SignEvmTransaction200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignEvmTransaction200> | SignEvmTransaction200)) => import("msw").HttpHandler;
|
|
17
20
|
export declare const getSignEvmHashMockHandler: (overrideResponse?: SignEvmHash200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignEvmHash200> | SignEvmHash200)) => import("msw").HttpHandler;
|
|
18
21
|
export declare const getSignEvmMessageMockHandler: (overrideResponse?: SignEvmMessage200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignEvmMessage200> | SignEvmMessage200)) => import("msw").HttpHandler;
|
|
22
|
+
export declare const getSignEvmTypedDataMockHandler: (overrideResponse?: SignEvmTypedData200 | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<SignEvmTypedData200> | SignEvmTypedData200)) => import("msw").HttpHandler;
|
|
19
23
|
export declare const getEvmAccountsMock: () => import("msw").HttpHandler[];
|
|
20
24
|
//# sourceMappingURL=evm-accounts.msw.d.ts.map
|
|
@@ -1 +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,EACV,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,qBAAqB,
|
|
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,EACV,UAAU,EACV,kBAAkB,EAClB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,8BAA8B,QAA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AAO,MAAM,yBAAyB,GACpC,mBACI,cAAc,GACd,CAAC,CACC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KACjD,OAAO,CAAC,cAAc,CAAC,GAAG,cAAc,CAAC,8BAgBnD,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,mBACI,iBAAiB,GACjB,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;AAEF,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;AACF,eAAO,MAAM,kBAAkB,mCAW9B,CAAC"}
|
|
@@ -36,7 +36,9 @@ export declare const prepareUserOperation: (address: string, prepareUserOperatio
|
|
|
36
36
|
export declare const getUserOperation: (address: string, userOpHash: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
|
|
37
37
|
/**
|
|
38
38
|
* Sends a user operation with a signature.
|
|
39
|
-
The
|
|
39
|
+
The payload to sign must be the `userOpHash` field of the user operation. This hash should be signed directly (not using `personal_sign` or EIP-191 message hashing).
|
|
40
|
+
The signature must be 65 bytes in length, consisting of: - 32 bytes for the `r` value - 32 bytes for the `s` value - 1 byte for the `v` value (must be 27 or 28)
|
|
41
|
+
If using the CDP Paymaster, the user operation must be signed and sent within 2 minutes of being prepared.
|
|
40
42
|
* @summary Send a user operation
|
|
41
43
|
*/
|
|
42
44
|
export declare const sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: SendUserOperationBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
|
|
@@ -1 +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,eAAe,CAAC,OAAO,YAAY,CAAC,6BAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,EACf,0BAA0B,wBAAwB,EAClD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,8BAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,EACf,YAAY,MAAM,EAClB,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,8BAM/C,CAAC;AACF
|
|
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,eAAe,CAAC,OAAO,YAAY,CAAC,6BAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,SAAS,MAAM,EACf,0BAA0B,wBAAwB,EAClD,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,8BAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,EACf,YAAY,MAAM,EAClB,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,8BAM/C,CAAC;AACF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,MAAM,EACf,YAAY,MAAM,EAClB,uBAAuB,qBAAqB,EAC5C,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,8BAW/C,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAClD,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CACjD,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,WAAW,CACnD,OAAO,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC,CAClD,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC,CAAC;AACnG,MAAM,MAAM,0BAA0B,GAAG,WAAW,CAClD,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CACjD,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAC/F,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
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
2
|
export * from "./evm-token-balances/evm-token-balances.msw.js";
|
|
3
|
+
export * from "./evm-smart-accounts/evm-smart-accounts.msw.js";
|
|
4
|
+
export * from "./faucets/faucets.msw.js";
|
|
5
|
+
export * from "./policy-engine/policy-engine.msw.js";
|
|
5
6
|
export * from "./solana-accounts/solana-accounts.msw.js";
|
|
6
7
|
//# sourceMappingURL=index.msw.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"index.msw.d.ts","sourceRoot":"","sources":["../../../openapi-client/generated/index.msw.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0BAA0B,CAAC;AACzC,cAAc,sCAAsC,CAAC;AACrD,cAAc,0CAA0C,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { CreatePolicyBody, ListPolicies200, ListPoliciesParams, Policy, UpdatePolicyBody } 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 policies belonging to the developer's CDP Project. Use the `scope` parameter to filter the policies by scope.
|
|
13
|
+
The response is paginated, and by default, returns 20 policies per page.
|
|
14
|
+
* @summary List policies
|
|
15
|
+
*/
|
|
16
|
+
export declare const listPolicies: (params?: ListPoliciesParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListPolicies200>;
|
|
17
|
+
/**
|
|
18
|
+
* Create a policy that can be used to govern the behavior of accounts.
|
|
19
|
+
* @summary Create a policy
|
|
20
|
+
*/
|
|
21
|
+
export declare const createPolicy: (createPolicyBody: CreatePolicyBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<Policy>;
|
|
22
|
+
/**
|
|
23
|
+
* Get a policy by its ID.
|
|
24
|
+
* @summary Get a policy by ID
|
|
25
|
+
*/
|
|
26
|
+
export declare const getPolicyById: (policyId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<Policy>;
|
|
27
|
+
/**
|
|
28
|
+
* Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it.
|
|
29
|
+
* @summary Delete a policy
|
|
30
|
+
*/
|
|
31
|
+
export declare const deletePolicy: (policyId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Updates a policy by its ID. This will have the effect of applying the updated policy to all accounts that are currently using it.
|
|
34
|
+
* @summary Update a policy
|
|
35
|
+
*/
|
|
36
|
+
export declare const updatePolicy: (policyId: string, updatePolicyBody: UpdatePolicyBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<Policy>;
|
|
37
|
+
export type ListPoliciesResult = NonNullable<Awaited<ReturnType<typeof listPolicies>>>;
|
|
38
|
+
export type CreatePolicyResult = NonNullable<Awaited<ReturnType<typeof createPolicy>>>;
|
|
39
|
+
export type GetPolicyByIdResult = NonNullable<Awaited<ReturnType<typeof getPolicyById>>>;
|
|
40
|
+
export type DeletePolicyResult = NonNullable<Awaited<ReturnType<typeof deletePolicy>>>;
|
|
41
|
+
export type UpdatePolicyResult = NonNullable<Awaited<ReturnType<typeof updatePolicy>>>;
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=policy-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy-engine.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/policy-engine/policy-engine.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,gBAAgB,EACjB,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,YAAY,GACvB,SAAS,kBAAkB,EAC3B,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,6BAM/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,kBAAkB,gBAAgB,EAClC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,oBAW/C,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,EAAE,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,oBAK7F,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,UAAU,MAAM,EAAE,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,kBAK5F,CAAC;AACF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,MAAM,EAChB,kBAAkB,gBAAgB,EAClC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,oBAW/C,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;AACvF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;AACvF,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC;AACzF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC;AACvF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { http } from "msw";
|
|
2
|
+
import type { EthValueCriterion, EvmAddressCriterion, ListPolicies200, Policy, SolAddressCriterion } from "../coinbaseDeveloperPlatformAPIs.schemas.js";
|
|
3
|
+
export declare const getListPoliciesResponseEthValueCriterionMock: (overrideResponse?: Partial<EthValueCriterion>) => EthValueCriterion;
|
|
4
|
+
export declare const getListPoliciesResponseEvmAddressCriterionMock: (overrideResponse?: Partial<EvmAddressCriterion>) => EvmAddressCriterion;
|
|
5
|
+
export declare const getListPoliciesResponseSolAddressCriterionMock: (overrideResponse?: Partial<SolAddressCriterion>) => SolAddressCriterion;
|
|
6
|
+
export declare const getListPoliciesResponseMock: () => ListPolicies200;
|
|
7
|
+
export declare const getCreatePolicyResponseEthValueCriterionMock: (overrideResponse?: Partial<EthValueCriterion>) => EthValueCriterion;
|
|
8
|
+
export declare const getCreatePolicyResponseEvmAddressCriterionMock: (overrideResponse?: Partial<EvmAddressCriterion>) => EvmAddressCriterion;
|
|
9
|
+
export declare const getCreatePolicyResponseSolAddressCriterionMock: (overrideResponse?: Partial<SolAddressCriterion>) => SolAddressCriterion;
|
|
10
|
+
export declare const getCreatePolicyResponseMock: (overrideResponse?: Partial<Policy>) => Policy;
|
|
11
|
+
export declare const getGetPolicyByIdResponseEthValueCriterionMock: (overrideResponse?: Partial<EthValueCriterion>) => EthValueCriterion;
|
|
12
|
+
export declare const getGetPolicyByIdResponseEvmAddressCriterionMock: (overrideResponse?: Partial<EvmAddressCriterion>) => EvmAddressCriterion;
|
|
13
|
+
export declare const getGetPolicyByIdResponseSolAddressCriterionMock: (overrideResponse?: Partial<SolAddressCriterion>) => SolAddressCriterion;
|
|
14
|
+
export declare const getGetPolicyByIdResponseMock: (overrideResponse?: Partial<Policy>) => Policy;
|
|
15
|
+
export declare const getUpdatePolicyResponseEthValueCriterionMock: (overrideResponse?: Partial<EthValueCriterion>) => EthValueCriterion;
|
|
16
|
+
export declare const getUpdatePolicyResponseEvmAddressCriterionMock: (overrideResponse?: Partial<EvmAddressCriterion>) => EvmAddressCriterion;
|
|
17
|
+
export declare const getUpdatePolicyResponseSolAddressCriterionMock: (overrideResponse?: Partial<SolAddressCriterion>) => SolAddressCriterion;
|
|
18
|
+
export declare const getUpdatePolicyResponseMock: (overrideResponse?: Partial<Policy>) => Policy;
|
|
19
|
+
export declare const getListPoliciesMockHandler: (overrideResponse?: ListPolicies200 | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<ListPolicies200> | ListPolicies200)) => import("msw").HttpHandler;
|
|
20
|
+
export declare const getCreatePolicyMockHandler: (overrideResponse?: Policy | ((info: Parameters<Parameters<typeof http.post>[1]>[0]) => Promise<Policy> | Policy)) => import("msw").HttpHandler;
|
|
21
|
+
export declare const getGetPolicyByIdMockHandler: (overrideResponse?: Policy | ((info: Parameters<Parameters<typeof http.get>[1]>[0]) => Promise<Policy> | Policy)) => import("msw").HttpHandler;
|
|
22
|
+
export declare const getDeletePolicyMockHandler: (overrideResponse?: void | ((info: Parameters<Parameters<typeof http.delete>[1]>[0]) => Promise<void> | void) | undefined) => import("msw").HttpHandler;
|
|
23
|
+
export declare const getUpdatePolicyMockHandler: (overrideResponse?: Policy | ((info: Parameters<Parameters<typeof http.put>[1]>[0]) => Promise<Policy> | Policy)) => import("msw").HttpHandler;
|
|
24
|
+
export declare const getPolicyEngineMock: () => import("msw").HttpHandler[];
|
|
25
|
+
//# sourceMappingURL=policy-engine.msw.d.ts.map
|