@coinbase/cdp-sdk 1.34.1 → 1.36.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 +22 -0
- package/README.md +17 -15
- package/_cjs/accounts/evm/networkCapabilities.js +4 -4
- package/_cjs/accounts/evm/networkCapabilities.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js +12 -2
- package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +8 -2
- package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_cjs/actions/evm/listTokenBalances.js +1 -1
- package/_cjs/actions/evm/listTokenBalances.js.map +1 -1
- package/_cjs/client/evm/evm.js +7 -0
- package/_cjs/client/evm/evm.js.map +1 -1
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +30 -3
- package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_cjs/openapi-client/index.js +2 -0
- package/_cjs/openapi-client/index.js.map +1 -1
- package/_cjs/policies/evmSchema.js +52 -9
- package/_cjs/policies/evmSchema.js.map +1 -1
- package/_cjs/policies/solanaSchema.js +75 -1
- package/_cjs/policies/solanaSchema.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/accounts/evm/networkCapabilities.js +4 -4
- package/_esm/accounts/evm/networkCapabilities.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js +12 -2
- package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +8 -2
- package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
- package/_esm/actions/evm/listTokenBalances.js +1 -1
- package/_esm/actions/evm/listTokenBalances.js.map +1 -1
- package/_esm/client/evm/evm.js +7 -0
- package/_esm/client/evm/evm.js.map +1 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +28 -1
- package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
- package/_esm/openapi-client/index.js +2 -0
- package/_esm/openapi-client/index.js.map +1 -1
- package/_esm/policies/evmSchema.js +51 -8
- package/_esm/policies/evmSchema.js.map +1 -1
- package/_esm/policies/solanaSchema.js +74 -0
- package/_esm/policies/solanaSchema.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/accounts/evm/networkCapabilities.d.ts +4 -4
- package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
- package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
- package/_types/accounts/evm/types.d.ts +3 -3
- package/_types/accounts/evm/types.d.ts.map +1 -1
- package/_types/client/evm/evm.d.ts.map +1 -1
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +152 -7
- package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
- package/_types/openapi-client/index.d.ts +3 -0
- package/_types/openapi-client/index.d.ts.map +1 -1
- package/_types/policies/evmSchema.d.ts +180 -101
- package/_types/policies/evmSchema.d.ts.map +1 -1
- package/_types/policies/solanaSchema.d.ts +852 -0
- package/_types/policies/solanaSchema.d.ts.map +1 -1
- package/_types/policies/types.d.ts +986 -38
- package/_types/policies/types.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/accounts/evm/networkCapabilities.ts +4 -4
- package/accounts/evm/toNetworkScopedEvmServerAccount.ts +18 -5
- package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +15 -4
- package/accounts/evm/types.ts +9 -5
- package/actions/evm/listTokenBalances.ts +1 -1
- package/client/evm/evm.ts +10 -0
- package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +179 -8
- package/openapi-client/index.ts +2 -0
- package/package.json +1 -1
- package/policies/evmSchema.ts +66 -9
- package/policies/solanaSchema.ts +100 -0
- package/version.ts +1 -1
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js +0 -61
- package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js +0 -319
- package/_cjs/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +0 -514
- package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.msw.js +0 -179
- package/_cjs/openapi-client/generated/evm-swaps/evm-swaps.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +0 -45
- package/_cjs/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/faucets/faucets.msw.js +0 -47
- package/_cjs/openapi-client/generated/faucets/faucets.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/index.msw.js +0 -30
- package/_cjs/openapi-client/generated/index.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.msw.js +0 -139
- package/_cjs/openapi-client/generated/onchain-data/onchain-data.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/onramp/onramp.msw.js +0 -98
- package/_cjs/openapi-client/generated/onramp/onramp.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.msw.js +0 -270
- package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js +0 -1387
- package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js +0 -294
- package/_cjs/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js +0 -43
- package/_cjs/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js.map +0 -1
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js +0 -84
- package/_cjs/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js.map +0 -1
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js +0 -52
- package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.msw.js.map +0 -1
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js +0 -289
- package/_esm/openapi-client/generated/evm-accounts/evm-accounts.msw.js.map +0 -1
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js +0 -488
- package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.js.map +0 -1
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.msw.js +0 -167
- package/_esm/openapi-client/generated/evm-swaps/evm-swaps.msw.js.map +0 -1
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js +0 -39
- package/_esm/openapi-client/generated/evm-token-balances/evm-token-balances.msw.js.map +0 -1
- package/_esm/openapi-client/generated/faucets/faucets.msw.js +0 -39
- package/_esm/openapi-client/generated/faucets/faucets.msw.js.map +0 -1
- package/_esm/openapi-client/generated/index.msw.js +0 -14
- package/_esm/openapi-client/generated/index.msw.js.map +0 -1
- package/_esm/openapi-client/generated/onchain-data/onchain-data.msw.js +0 -129
- package/_esm/openapi-client/generated/onchain-data/onchain-data.msw.js.map +0 -1
- package/_esm/openapi-client/generated/onramp/onramp.msw.js +0 -90
- package/_esm/openapi-client/generated/onramp/onramp.msw.js.map +0 -1
- package/_esm/openapi-client/generated/payments-alpha/payments-alpha.msw.js +0 -250
- package/_esm/openapi-client/generated/payments-alpha/payments-alpha.msw.js.map +0 -1
- package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js +0 -1293
- package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js.map +0 -1
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js +0 -268
- package/_esm/openapi-client/generated/solana-accounts/solana-accounts.msw.js.map +0 -1
- package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js +0 -37
- package/_esm/openapi-client/generated/solana-token-balances/solana-token-balances.msw.js.map +0 -1
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js +0 -74
- package/_esm/openapi-client/generated/x402-facilitator/x402-facilitator.msw.js.map +0 -1
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.msw.d.ts +0 -9
- package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts +0 -30
- package/_types/openapi-client/generated/evm-accounts/evm-accounts.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts +0 -26
- package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.msw.d.ts +0 -12
- package/_types/openapi-client/generated/evm-swaps/evm-swaps.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts +0 -6
- package/_types/openapi-client/generated/evm-token-balances/evm-token-balances.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/faucets/faucets.msw.d.ts +0 -8
- package/_types/openapi-client/generated/faucets/faucets.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/index.msw.d.ts +0 -14
- package/_types/openapi-client/generated/index.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/onchain-data/onchain-data.msw.d.ts +0 -10
- package/_types/openapi-client/generated/onchain-data/onchain-data.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/onramp/onramp.msw.d.ts +0 -8
- package/_types/openapi-client/generated/onramp/onramp.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/payments-alpha/payments-alpha.msw.d.ts +0 -20
- package/_types/openapi-client/generated/payments-alpha/payments-alpha.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts +0 -93
- package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts +0 -26
- package/_types/openapi-client/generated/solana-accounts/solana-accounts.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.msw.d.ts +0 -6
- package/_types/openapi-client/generated/solana-token-balances/solana-token-balances.msw.d.ts.map +0 -1
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.msw.d.ts +0 -10
- package/_types/openapi-client/generated/x402-facilitator/x402-facilitator.msw.d.ts.map +0 -1
- package/openapi-client/generated/end-user-accounts/end-user-accounts.msw.ts +0 -95
- package/openapi-client/generated/evm-accounts/evm-accounts.msw.ts +0 -523
- package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.msw.ts +0 -705
- package/openapi-client/generated/evm-swaps/evm-swaps.msw.ts +0 -217
- package/openapi-client/generated/evm-token-balances/evm-token-balances.msw.ts +0 -57
- package/openapi-client/generated/faucets/faucets.msw.ts +0 -76
- package/openapi-client/generated/index.msw.ts +0 -13
- package/openapi-client/generated/onchain-data/onchain-data.msw.ts +0 -185
- package/openapi-client/generated/onramp/onramp.msw.ts +0 -135
- package/openapi-client/generated/payments-alpha/payments-alpha.msw.ts +0 -369
- package/openapi-client/generated/policy-engine/policy-engine.msw.ts +0 -1912
- package/openapi-client/generated/solana-accounts/solana-accounts.msw.ts +0 -478
- package/openapi-client/generated/solana-token-balances/solana-token-balances.msw.ts +0 -55
- package/openapi-client/generated/x402-facilitator/x402-facilitator.msw.ts +0 -136
|
@@ -46,20 +46,44 @@ export const EvmAddressCriterionSchema = z.object({
|
|
|
46
46
|
operator: EvmAddressOperatorEnum,
|
|
47
47
|
});
|
|
48
48
|
/**
|
|
49
|
-
* Enum for EVM Network values
|
|
50
|
-
*/
|
|
51
|
-
export const
|
|
49
|
+
* Enum for PrepareUserOperation EVM Network values
|
|
50
|
+
*/
|
|
51
|
+
export const PrepareUserOperationEvmNetworkEnum = z.enum([
|
|
52
|
+
"base-sepolia",
|
|
53
|
+
"base",
|
|
54
|
+
"arbitrum",
|
|
55
|
+
"optimism",
|
|
56
|
+
"zora",
|
|
57
|
+
"polygon",
|
|
58
|
+
"bnb",
|
|
59
|
+
"avalanche",
|
|
60
|
+
"ethereum",
|
|
61
|
+
"ethereum-sepolia",
|
|
62
|
+
]);
|
|
63
|
+
/**
|
|
64
|
+
* Enum for SendEvmTransaction EVM Network values
|
|
65
|
+
*/
|
|
66
|
+
export const SendEvmTransactionEvmNetworkEnum = z.enum([
|
|
67
|
+
"base",
|
|
68
|
+
"base-sepolia",
|
|
69
|
+
"ethereum",
|
|
70
|
+
"ethereum-sepolia",
|
|
71
|
+
"avalanche",
|
|
72
|
+
"polygon",
|
|
73
|
+
"optimism",
|
|
74
|
+
"arbitrum",
|
|
75
|
+
]);
|
|
52
76
|
/**
|
|
53
77
|
* Schema for EVM network criterions
|
|
54
78
|
*/
|
|
55
|
-
export const
|
|
79
|
+
export const SendEvmTransactionEvmNetworkCriterionSchema = z.object({
|
|
56
80
|
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
57
81
|
type: z.literal("evmNetwork"),
|
|
58
82
|
/**
|
|
59
83
|
* Array of EVM network identifiers to compare against.
|
|
60
|
-
* Either "base"
|
|
84
|
+
* Either "base", "base-sepolia", "ethereum", "ethereum-sepolia", "avalanche", "polygon", "optimism", "arbitrum"
|
|
61
85
|
*/
|
|
62
|
-
networks: z.array(
|
|
86
|
+
networks: z.array(SendEvmTransactionEvmNetworkEnum),
|
|
63
87
|
/**
|
|
64
88
|
* The operator to use for evaluating transaction network.
|
|
65
89
|
* "in" checks if a network is in the provided list.
|
|
@@ -67,6 +91,25 @@ export const EvmNetworkCriterionSchema = z.object({
|
|
|
67
91
|
*/
|
|
68
92
|
operator: EvmNetworkOperatorEnum,
|
|
69
93
|
});
|
|
94
|
+
export const PrepareUserOperationEvmNetworkCriterionSchema = z.object({
|
|
95
|
+
/** The type of criterion, must be "evmAddress" for EVM address-based rules. */
|
|
96
|
+
type: z.literal("evmNetwork"),
|
|
97
|
+
/**
|
|
98
|
+
* Array of EVM network identifiers to compare against.
|
|
99
|
+
* Either "base-sepolia", "base", "arbitrum", "optimism", "zora", "polygon", "bnb", "avalanche", "ethereum", "ethereum-sepolia"
|
|
100
|
+
*/
|
|
101
|
+
networks: z.array(PrepareUserOperationEvmNetworkEnum),
|
|
102
|
+
/**
|
|
103
|
+
* The operator to use for evaluating transaction network.
|
|
104
|
+
* "in" checks if a network is in the provided list.
|
|
105
|
+
* "not in" checks if a network is not in the provided list.
|
|
106
|
+
*/
|
|
107
|
+
operator: EvmNetworkOperatorEnum,
|
|
108
|
+
});
|
|
109
|
+
export const EvmNetworkCriterionSchema = z.union([
|
|
110
|
+
SendEvmTransactionEvmNetworkCriterionSchema,
|
|
111
|
+
PrepareUserOperationEvmNetworkCriterionSchema,
|
|
112
|
+
]);
|
|
70
113
|
/**
|
|
71
114
|
* Schema for EVM message criterions
|
|
72
115
|
*/
|
|
@@ -316,7 +359,7 @@ export const SendEvmTransactionCriteriaSchema = z
|
|
|
316
359
|
.array(z.discriminatedUnion("type", [
|
|
317
360
|
EthValueCriterionSchema,
|
|
318
361
|
EvmAddressCriterionSchema,
|
|
319
|
-
|
|
362
|
+
SendEvmTransactionEvmNetworkCriterionSchema,
|
|
320
363
|
EvmDataCriterionSchema,
|
|
321
364
|
NetUSDChangeCriterionSchema,
|
|
322
365
|
]))
|
|
@@ -329,7 +372,7 @@ export const PrepareUserOperationCriteriaSchema = z
|
|
|
329
372
|
.array(z.discriminatedUnion("type", [
|
|
330
373
|
EthValueCriterionSchema,
|
|
331
374
|
EvmAddressCriterionSchema,
|
|
332
|
-
|
|
375
|
+
PrepareUserOperationEvmNetworkCriterionSchema,
|
|
333
376
|
EvmDataCriterionSchema,
|
|
334
377
|
]))
|
|
335
378
|
.max(10)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evmSchema.js","sourceRoot":"","sources":["../../policies/evmSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAOzE;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AAO/D;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AAO/D;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,gFAAgF;IAChF,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3B;;;OAGG;IACH,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;IACtC,8FAA8F;IAC9F,QAAQ,EAAE,oBAAoB;CAC/B,CAAC,CAAC;AAGH;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,+EAA+E;IAC/E,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IAC7B;;;;OAIG;IACH,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACpC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|
|
24
24
|
*/
|
|
25
25
|
export const MintAddressOperatorEnum = z.enum(["in", "not in"]);
|
|
26
|
+
/**
|
|
27
|
+
* Enum for KnownIdlType values
|
|
28
|
+
*/
|
|
29
|
+
export const KnownIdlTypeEnum = z.enum(["SystemProgram", "TokenProgram", "AssociatedTokenProgram"]);
|
|
30
|
+
/**
|
|
31
|
+
* Schema for IDL specifications following Anchor's IDL format v0.30+
|
|
32
|
+
*/
|
|
33
|
+
export const IdlSchema = z
|
|
34
|
+
.object({
|
|
35
|
+
/** The program address */
|
|
36
|
+
address: z.string(),
|
|
37
|
+
/** Array of instruction specifications */
|
|
38
|
+
instructions: z.array(z.any()),
|
|
39
|
+
})
|
|
40
|
+
.passthrough();
|
|
41
|
+
/**
|
|
42
|
+
* Enum for SolDataParameterOperator values
|
|
43
|
+
*/
|
|
44
|
+
export const SolDataParameterOperatorEnum = z.enum([">", ">=", "<", "<=", "=="]);
|
|
45
|
+
/**
|
|
46
|
+
* Enum for SolDataParameterListOperator values
|
|
47
|
+
*/
|
|
48
|
+
export const SolDataParameterListOperatorEnum = z.enum(["in", "not in"]);
|
|
49
|
+
/**
|
|
50
|
+
* Schema for Solana data parameter conditions (single value)
|
|
51
|
+
*/
|
|
52
|
+
export const SolDataParameterConditionSchema = z.object({
|
|
53
|
+
/** The parameter name */
|
|
54
|
+
name: z.string(),
|
|
55
|
+
/** The operator to use for the comparison */
|
|
56
|
+
operator: SolDataParameterOperatorEnum,
|
|
57
|
+
/** The value to compare against */
|
|
58
|
+
value: z.string(),
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* Schema for Solana data parameter conditions (list values)
|
|
62
|
+
*/
|
|
63
|
+
export const SolDataParameterConditionListSchema = z.object({
|
|
64
|
+
/** The parameter name */
|
|
65
|
+
name: z.string(),
|
|
66
|
+
/** The operator to use for the comparison */
|
|
67
|
+
operator: SolDataParameterListOperatorEnum,
|
|
68
|
+
/** The values to compare against */
|
|
69
|
+
values: z.array(z.string()),
|
|
70
|
+
});
|
|
71
|
+
/**
|
|
72
|
+
* Schema for Solana data conditions
|
|
73
|
+
*/
|
|
74
|
+
export const SolDataConditionSchema = z.object({
|
|
75
|
+
/** The instruction name */
|
|
76
|
+
instruction: z.string(),
|
|
77
|
+
/** Parameter conditions for the instruction */
|
|
78
|
+
params: z
|
|
79
|
+
.array(z.union([SolDataParameterConditionSchema, SolDataParameterConditionListSchema]))
|
|
80
|
+
.optional(),
|
|
81
|
+
});
|
|
26
82
|
/**
|
|
27
83
|
* Schema for Solana address criterions
|
|
28
84
|
*/
|
|
@@ -105,6 +161,22 @@ export const MintAddressCriterionSchema = z.object({
|
|
|
105
161
|
*/
|
|
106
162
|
operator: MintAddressOperatorEnum,
|
|
107
163
|
});
|
|
164
|
+
/**
|
|
165
|
+
* Schema for Solana data criterions
|
|
166
|
+
*/
|
|
167
|
+
export const SolDataCriterionSchema = z.object({
|
|
168
|
+
/** The type of criterion, must be "solData" for Solana data-based rules. */
|
|
169
|
+
type: z.literal("solData"),
|
|
170
|
+
/**
|
|
171
|
+
* List of IDL specifications. Can contain known program names (strings) or custom IDL objects.
|
|
172
|
+
*/
|
|
173
|
+
idls: z.array(z.union([KnownIdlTypeEnum, IdlSchema])),
|
|
174
|
+
/**
|
|
175
|
+
* A list of conditions to apply against the transaction instruction.
|
|
176
|
+
* Only one condition must evaluate to true for this criterion to be met.
|
|
177
|
+
*/
|
|
178
|
+
conditions: z.array(SolDataConditionSchema),
|
|
179
|
+
});
|
|
108
180
|
/**
|
|
109
181
|
* Schema for criteria used in SignSolTransaction operations
|
|
110
182
|
*/
|
|
@@ -115,6 +187,7 @@ export const SignSolTransactionCriteriaSchema = z
|
|
|
115
187
|
SplAddressCriterionSchema,
|
|
116
188
|
SplValueCriterionSchema,
|
|
117
189
|
MintAddressCriterionSchema,
|
|
190
|
+
SolDataCriterionSchema,
|
|
118
191
|
]))
|
|
119
192
|
.max(10)
|
|
120
193
|
.min(1);
|
|
@@ -128,6 +201,7 @@ export const SendSolTransactionCriteriaSchema = z
|
|
|
128
201
|
SplAddressCriterionSchema,
|
|
129
202
|
SplValueCriterionSchema,
|
|
130
203
|
MintAddressCriterionSchema,
|
|
204
|
+
SolDataCriterionSchema,
|
|
131
205
|
]))
|
|
132
206
|
.max(10)
|
|
133
207
|
.min(1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solanaSchema.js","sourceRoot":"","sources":["../../policies/solanaSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AAOvD;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AAO/D;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAOzE;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AAO/D;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAOzE;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AAOhE;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,kFAAkF;IAClF,IAAI,E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BAAsB;CACvB,CAAC,CACH;KACA,GAAG,CAAC,EAAE,CAAC;KACP,GAAG,CAAC,CAAC,CAAC,CAAC;AAOV;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,KAAK,CACJ,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IAC3B,yBAAyB;IACzB,uBAAuB;IACvB,yBAAyB;IACzB,uBAAuB;IACvB,0BAA0B;IAC1B,sBAAsB;CACvB,CAAC,CACH;KACA,GAAG,CAAC,EAAE,CAAC;KACP,GAAG,CAAC,CAAC,CAAC,CAAC;AAOV;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;AAOrF;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD;;;OAGG;IACH,MAAM,EAAE,UAAU;IAClB;;;OAGG;IACH,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IAC1C;;;OAGG;IACH,QAAQ,EAAE,gCAAgC;CAC3C,CAAC,CAAC;AAGH;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD;;;OAGG;IACH,MAAM,EAAE,UAAU;IAClB;;;OAGG;IACH,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IAC1C;;;OAGG;IACH,QAAQ,EAAE,gCAAgC;CAC3C,CAAC,CAAC"}
|
package/_esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "1.
|
|
1
|
+
export const version = "1.36.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -75,8 +75,8 @@ export declare const NETWORK_CAPABILITIES: {
|
|
|
75
75
|
readonly waitForFundOperationReceipt: false;
|
|
76
76
|
readonly transfer: false;
|
|
77
77
|
readonly sendTransaction: true;
|
|
78
|
-
readonly quoteSwap:
|
|
79
|
-
readonly swap:
|
|
78
|
+
readonly quoteSwap: true;
|
|
79
|
+
readonly swap: true;
|
|
80
80
|
readonly useSpendPermission: true;
|
|
81
81
|
};
|
|
82
82
|
readonly "optimism-sepolia": {
|
|
@@ -99,8 +99,8 @@ export declare const NETWORK_CAPABILITIES: {
|
|
|
99
99
|
readonly waitForFundOperationReceipt: false;
|
|
100
100
|
readonly transfer: false;
|
|
101
101
|
readonly sendTransaction: true;
|
|
102
|
-
readonly quoteSwap:
|
|
103
|
-
readonly swap:
|
|
102
|
+
readonly quoteSwap: true;
|
|
103
|
+
readonly swap: true;
|
|
104
104
|
readonly useSpendPermission: true;
|
|
105
105
|
};
|
|
106
106
|
readonly "arbitrum-sepolia": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toNetworkScopedEvmServerAccount.d.ts","sourceRoot":"","sources":["../../../accounts/evm/toNetworkScopedEvmServerAccount.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,
|
|
1
|
+
{"version":3,"file":"toNetworkScopedEvmServerAccount.d.ts","sourceRoot":"","sources":["../../../accounts/evm/toNetworkScopedEvmServerAccount.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,6BAA6B,EAAmB,MAAM,YAAY,CAAC;AAqBnG;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAAG;IACnD,kDAAkD;IAClD,OAAO,EAAE,gBAAgB,CAAC;IAC1B,2CAA2C;IAC3C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAsB,+BAA+B,CAAC,OAAO,SAAS,MAAM,EAC1E,OAAO,EAAE,sCAAsC,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GACrE,OAAO,CAAC,6BAA6B,CAAC,OAAO,CAAC,CAAC,CAkPjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toNetworkScopedEvmSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/evm/toNetworkScopedEvmSmartAccount.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"toNetworkScopedEvmSmartAccount.d.ts","sourceRoot":"","sources":["../../../accounts/evm/toNetworkScopedEvmSmartAccount.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,4BAA4B,EAE7B,MAAM,YAAY,CAAC;AAepB,OAAO,KAAK,EACV,oBAAoB,EAIrB,MAAM,+BAA+B,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG;IAClD,wCAAwC;IACxC,YAAY,EAAE,eAAe,CAAC;IAC9B,wDAAwD;IACxD,OAAO,EAAE,gBAAgB,CAAC;IAC1B,sCAAsC;IACtC,KAAK,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,wBAAsB,8BAA8B,CAAC,OAAO,SAAS,gBAAgB,EACnF,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,qCAAqC,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GACpE,OAAO,CAAC,4BAA4B,CAAC,OAAO,CAAC,CAAC,CAiQhD"}
|
|
@@ -18,6 +18,7 @@ import type { EvmQuote } from "../../actions/Quote.js";
|
|
|
18
18
|
import type { Address, Hash, Hex } from "../../types/misc.js";
|
|
19
19
|
import type { Prettify } from "../../types/utils.js";
|
|
20
20
|
import type { SignableMessage, TransactionReceipt, TransactionSerializable, TypedData, TypedDataDefinition, WaitForTransactionReceiptParameters } from "viem";
|
|
21
|
+
export type DistributedOmit<T, K extends PropertyKey> = T extends any ? Omit<T, K> : never;
|
|
21
22
|
/**
|
|
22
23
|
* Base type for any Ethereum account with signing capabilities.
|
|
23
24
|
* For example, this could be an EVM ServerAccount, or a viem LocalAccount.
|
|
@@ -103,7 +104,6 @@ export type EvmSmartAccountProperties = {
|
|
|
103
104
|
* Ethereum smart account which supports account abstraction features like user operations, batch transactions, and paymaster.
|
|
104
105
|
*/
|
|
105
106
|
export type EvmSmartAccount = Prettify<EvmSmartAccountProperties & SmartAccountActions>;
|
|
106
|
-
type DistributedOmit<T, K extends PropertyKey> = T extends any ? Omit<T, K> : never;
|
|
107
107
|
/**
|
|
108
108
|
* Helper type for network-specific smart account actions
|
|
109
109
|
*/
|
|
@@ -161,9 +161,9 @@ export type NetworkSpecificAccountActions<Network extends string> = Prettify<{
|
|
|
161
161
|
transactionHash: Hex;
|
|
162
162
|
}>;
|
|
163
163
|
} : EmptyObject) & (Network extends QuoteSwapNetworks ? {
|
|
164
|
-
quoteSwap: (options: AccountQuoteSwapOptions) => Promise<AccountQuoteSwapResult>;
|
|
164
|
+
quoteSwap: (options: DistributedOmit<AccountQuoteSwapOptions, "network">) => Promise<AccountQuoteSwapResult>;
|
|
165
165
|
} : EmptyObject) & (Network extends SwapNetworks ? {
|
|
166
|
-
swap: (options: AccountSwapOptions) => Promise<AccountSwapResult>;
|
|
166
|
+
swap: (options: DistributedOmit<AccountSwapOptions, "network">) => Promise<AccountSwapResult>;
|
|
167
167
|
} : EmptyObject) & (Network extends SpendPermissionNetwork ? {
|
|
168
168
|
useSpendPermission: (options: Omit<UseSpendPermissionOptions, "network">) => Promise<TransactionResult>;
|
|
169
169
|
} : EmptyObject)>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../accounts/evm/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC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-114,6 +114,10 @@ export declare const ErrorType: {
|
|
|
114
114
|
readonly guest_transaction_limit: "guest_transaction_limit";
|
|
115
115
|
readonly guest_transaction_count: "guest_transaction_count";
|
|
116
116
|
readonly phone_number_verification_expired: "phone_number_verification_expired";
|
|
117
|
+
readonly document_verification_failed: "document_verification_failed";
|
|
118
|
+
readonly recipient_allowlist_violation: "recipient_allowlist_violation";
|
|
119
|
+
readonly recipient_allowlist_pending: "recipient_allowlist_pending";
|
|
120
|
+
readonly travel_rules_recipient_violation: "travel_rules_recipient_violation";
|
|
117
121
|
};
|
|
118
122
|
/**
|
|
119
123
|
* An error response including the code for the type of error and a human-readable message describing the error.
|
|
@@ -395,6 +399,7 @@ export interface SpendPermissionResponseObject {
|
|
|
395
399
|
revokedAt?: string;
|
|
396
400
|
/** The UTC ISO 8601 timestamp when the permission was created. */
|
|
397
401
|
createdAt: string;
|
|
402
|
+
network: SpendPermissionNetwork;
|
|
398
403
|
}
|
|
399
404
|
export interface RevokeSpendPermissionRequest {
|
|
400
405
|
network: SpendPermissionNetwork;
|
|
@@ -1366,7 +1371,147 @@ export interface MintAddressCriterion {
|
|
|
1366
1371
|
/** The operator to use for the comparison. Each of the token mint 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. */
|
|
1367
1372
|
operator: MintAddressCriterionOperator;
|
|
1368
1373
|
}
|
|
1369
|
-
|
|
1374
|
+
/**
|
|
1375
|
+
* A reference to an established Solana program. When referencing a `KnownIdlType` within a policy rule configuring an `SolDataCriterion`, criteria will decode instruction data as documented in the programs. For more information on supported programs, see the links below.
|
|
1376
|
+
- [SystemProgram](https://docs.rs/solana-program/latest/solana_program/system_instruction/enum.SystemInstruction.html).
|
|
1377
|
+
- [TokenProgram](https://docs.rs/spl-token/latest/spl_token/instruction/enum.TokenInstruction.html).
|
|
1378
|
+
- [AssociatedTokenProgram](https://docs.rs/spl-associated-token-account/latest/spl_associated_token_account/instruction/index.html).
|
|
1379
|
+
*/
|
|
1380
|
+
export type KnownIdlType = (typeof KnownIdlType)[keyof typeof KnownIdlType];
|
|
1381
|
+
export declare const KnownIdlType: {
|
|
1382
|
+
readonly SystemProgram: "SystemProgram";
|
|
1383
|
+
readonly TokenProgram: "TokenProgram";
|
|
1384
|
+
readonly AssociatedTokenProgram: "AssociatedTokenProgram";
|
|
1385
|
+
};
|
|
1386
|
+
export type IdlInstructionsItemArgsItem = {
|
|
1387
|
+
/** The argument name. */
|
|
1388
|
+
name: string;
|
|
1389
|
+
/** The argument type. */
|
|
1390
|
+
type: string;
|
|
1391
|
+
};
|
|
1392
|
+
export type IdlInstructionsItemAccountsItem = {
|
|
1393
|
+
/** The account name. */
|
|
1394
|
+
name: string;
|
|
1395
|
+
/** Whether the account is writable. */
|
|
1396
|
+
writable?: boolean;
|
|
1397
|
+
/** Whether the account must be a signer. */
|
|
1398
|
+
signer?: boolean;
|
|
1399
|
+
};
|
|
1400
|
+
export type IdlInstructionsItem = {
|
|
1401
|
+
/** The instruction name. */
|
|
1402
|
+
name: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* Array of 8 numbers representing the instruction discriminator.
|
|
1405
|
+
* @minItems 8
|
|
1406
|
+
* @maxItems 8
|
|
1407
|
+
*/
|
|
1408
|
+
discriminator: number[];
|
|
1409
|
+
/** List of instruction arguments. */
|
|
1410
|
+
args: IdlInstructionsItemArgsItem[];
|
|
1411
|
+
/** Optional list of accounts required by the instruction. */
|
|
1412
|
+
accounts?: IdlInstructionsItemAccountsItem[];
|
|
1413
|
+
};
|
|
1414
|
+
/**
|
|
1415
|
+
* Optional metadata about the IDL.
|
|
1416
|
+
*/
|
|
1417
|
+
export type IdlMetadata = {
|
|
1418
|
+
/** The program name. */
|
|
1419
|
+
name?: string;
|
|
1420
|
+
/** The program version. */
|
|
1421
|
+
version?: string;
|
|
1422
|
+
/** The IDL specification version. */
|
|
1423
|
+
spec?: string;
|
|
1424
|
+
};
|
|
1425
|
+
export type IdlTypesItem = {
|
|
1426
|
+
[key: string]: unknown;
|
|
1427
|
+
};
|
|
1428
|
+
/**
|
|
1429
|
+
* IDL Specification following Anchor's IDL format v0.30+.
|
|
1430
|
+
*/
|
|
1431
|
+
export interface Idl {
|
|
1432
|
+
/** The program address. */
|
|
1433
|
+
address: string;
|
|
1434
|
+
/** List of program instructions. */
|
|
1435
|
+
instructions: IdlInstructionsItem[];
|
|
1436
|
+
/** Optional metadata about the IDL. */
|
|
1437
|
+
metadata?: IdlMetadata;
|
|
1438
|
+
/** Optional type definitions for custom data structures used in the program. */
|
|
1439
|
+
types?: IdlTypesItem[];
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
* The operator to use for the comparison. The value resolved at the `name` will be on the left-hand side of the operator, and the `value` field will be on the right-hand side.
|
|
1443
|
+
*/
|
|
1444
|
+
export type SolDataParameterConditionOperator = (typeof SolDataParameterConditionOperator)[keyof typeof SolDataParameterConditionOperator];
|
|
1445
|
+
export declare const SolDataParameterConditionOperator: {
|
|
1446
|
+
readonly ">": ">";
|
|
1447
|
+
readonly ">=": ">=";
|
|
1448
|
+
readonly "<": "<";
|
|
1449
|
+
readonly "<=": "<=";
|
|
1450
|
+
readonly "==": "==";
|
|
1451
|
+
};
|
|
1452
|
+
/**
|
|
1453
|
+
* A single parameter condition to apply against a specific instruction's parameters.
|
|
1454
|
+
*/
|
|
1455
|
+
export interface SolDataParameterCondition {
|
|
1456
|
+
/** The parameter name. */
|
|
1457
|
+
name: string;
|
|
1458
|
+
/** The operator to use for the comparison. The value resolved at the `name` will be on the left-hand side of the operator, and the `value` field will be on the right-hand side. */
|
|
1459
|
+
operator: SolDataParameterConditionOperator;
|
|
1460
|
+
/** The value to compare against. */
|
|
1461
|
+
value: string;
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* The operator to use for the comparison. The value resolved at the `name` will be on the left-hand side of the operator, and the `value` field will be on the right-hand side.
|
|
1465
|
+
*/
|
|
1466
|
+
export type SolDataParameterConditionListOperator = (typeof SolDataParameterConditionListOperator)[keyof typeof SolDataParameterConditionListOperator];
|
|
1467
|
+
export declare const SolDataParameterConditionListOperator: {
|
|
1468
|
+
readonly in: "in";
|
|
1469
|
+
readonly not_in: "not in";
|
|
1470
|
+
};
|
|
1471
|
+
/**
|
|
1472
|
+
* A single parameter condition to apply against a specific instruction's parameters.
|
|
1473
|
+
*/
|
|
1474
|
+
export interface SolDataParameterConditionList {
|
|
1475
|
+
/** The parameter name. */
|
|
1476
|
+
name: string;
|
|
1477
|
+
/** The operator to use for the comparison. The value resolved at the `name` will be on the left-hand side of the operator, and the `value` field will be on the right-hand side. */
|
|
1478
|
+
operator: SolDataParameterConditionListOperator;
|
|
1479
|
+
/** The values to compare against. */
|
|
1480
|
+
values: string[];
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* A list of parameter conditions to apply against a specific instruction's data.
|
|
1484
|
+
*/
|
|
1485
|
+
export type SolDataConditionParamsItem = SolDataParameterCondition | SolDataParameterConditionList;
|
|
1486
|
+
/**
|
|
1487
|
+
* A single condition to apply against a specific instruction type and its parameters.
|
|
1488
|
+
*/
|
|
1489
|
+
export interface SolDataCondition {
|
|
1490
|
+
/** The instruction name. */
|
|
1491
|
+
instruction: string;
|
|
1492
|
+
/** Parameter conditions for the instruction. */
|
|
1493
|
+
params?: SolDataConditionParamsItem[];
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* The type of criterion to use. This should be `solData`.
|
|
1497
|
+
*/
|
|
1498
|
+
export type SolDataCriterionType = (typeof SolDataCriterionType)[keyof typeof SolDataCriterionType];
|
|
1499
|
+
export declare const SolDataCriterionType: {
|
|
1500
|
+
readonly solData: "solData";
|
|
1501
|
+
};
|
|
1502
|
+
export type SolDataCriterionIdlsItem = KnownIdlType | Idl;
|
|
1503
|
+
/**
|
|
1504
|
+
* A schema for specifying criterion for instruction data in a Solana transaction.
|
|
1505
|
+
*/
|
|
1506
|
+
export interface SolDataCriterion {
|
|
1507
|
+
/** The type of criterion to use. This should be `solData`. */
|
|
1508
|
+
type: SolDataCriterionType;
|
|
1509
|
+
/** List of IDL specifications. Can contain known program names (strings) or custom IDL objects. */
|
|
1510
|
+
idls: SolDataCriterionIdlsItem[];
|
|
1511
|
+
/** A list of conditions to apply against the transaction instruction. Only one condition must evaluate to true for this criterion to be met. */
|
|
1512
|
+
conditions: SolDataCondition[];
|
|
1513
|
+
}
|
|
1514
|
+
export type SignSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
|
|
1370
1515
|
/**
|
|
1371
1516
|
* A schema for specifying criteria for the SignSolTransaction operation.
|
|
1372
1517
|
*/
|
|
@@ -1393,7 +1538,7 @@ export interface SignSolTransactionRule {
|
|
|
1393
1538
|
operation: SignSolTransactionRuleOperation;
|
|
1394
1539
|
criteria: SignSolTransactionCriteria;
|
|
1395
1540
|
}
|
|
1396
|
-
export type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion;
|
|
1541
|
+
export type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
|
|
1397
1542
|
/**
|
|
1398
1543
|
* A schema for specifying criteria for the SendSolTransaction operation.
|
|
1399
1544
|
*/
|
|
@@ -2087,10 +2232,10 @@ export interface Transfer {
|
|
|
2087
2232
|
transactionHash?: string;
|
|
2088
2233
|
}
|
|
2089
2234
|
/**
|
|
2090
|
-
* The type of payment method to be used to complete
|
|
2235
|
+
* The type of payment method to be used to complete an onramp order.
|
|
2091
2236
|
*/
|
|
2092
|
-
export type
|
|
2093
|
-
export declare const
|
|
2237
|
+
export type OnrampOrderPaymentMethodTypeId = (typeof OnrampOrderPaymentMethodTypeId)[keyof typeof OnrampOrderPaymentMethodTypeId];
|
|
2238
|
+
export declare const OnrampOrderPaymentMethodTypeId: {
|
|
2094
2239
|
readonly GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY";
|
|
2095
2240
|
};
|
|
2096
2241
|
/**
|
|
@@ -2135,7 +2280,7 @@ export interface OnrampOrder {
|
|
|
2135
2280
|
paymentSubtotal: string;
|
|
2136
2281
|
/** The fiat currency to be converted to crypto. */
|
|
2137
2282
|
paymentCurrency: string;
|
|
2138
|
-
paymentMethod:
|
|
2283
|
+
paymentMethod: OnrampOrderPaymentMethodTypeId;
|
|
2139
2284
|
/** The amount of crypto to be purchased. */
|
|
2140
2285
|
purchaseAmount: string;
|
|
2141
2286
|
/** The crypto currency to be purchased. */
|
|
@@ -2840,7 +2985,7 @@ export type CreateOnrampOrderBody = {
|
|
|
2840
2985
|
paymentAmount?: string;
|
|
2841
2986
|
/** The fiat currency to be converted to crypto. */
|
|
2842
2987
|
paymentCurrency: string;
|
|
2843
|
-
paymentMethod:
|
|
2988
|
+
paymentMethod: OnrampOrderPaymentMethodTypeId;
|
|
2844
2989
|
/** The phone number of the user requesting the onramp transaction in E.164 format. This phone number must be verified by your app (via OTP) before being used with the Onramp API.
|
|
2845
2990
|
|
|
2846
2991
|
Please refer to the [Onramp docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api) for more details on phone number verification requirements and best practices. */
|