@coinbase/cdp-api-client 0.0.19 → 0.0.20
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/dist/esm/index.js +91 -85
- package/dist/esm/index3.js +190 -148
- package/dist/types/index.d.ts +109 -4
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,121 +1,127 @@
|
|
|
1
|
-
import { createEndUserEvmAccount as r, createEndUserEvmSmartAccount as n, exportEndUserEvmAccount as i, getAuthenticatedEndUser as o, getUserOperationWithEndUserAccount as a, initiateAuthentication as s, logOutEndUser as p, refreshAccessToken as c, registerTemporaryWalletSecret as m, sendEvmTransactionWithEndUserAccount as d, sendUserOperationWithEndUserAccount as
|
|
2
|
-
import { AbiFunctionType as
|
|
3
|
-
import { configureCdpApiClient as
|
|
4
|
-
import { APIError as
|
|
1
|
+
import { createEndUserEvmAccount as r, createEndUserEvmSmartAccount as n, exportEndUserEvmAccount as i, getAuthenticatedEndUser as o, getUserOperationWithEndUserAccount as a, initiateAuthentication as s, logOutEndUser as p, refreshAccessToken as c, registerTemporaryWalletSecret as m, sendEvmTransactionWithEndUserAccount as d, sendUserOperationWithEndUserAccount as l, signEvmHashWithEndUserAccount as u, signEvmMessageWithEndUserAccount as y, signEvmTransactionWithEndUserAccount as S, signEvmTypedDataWithEndUserAccount as T, signSolanaHashWithEndUserAccount as E, verifyEmailAuthentication as A, verifySmsAuthentication as O } from "./index2.js";
|
|
2
|
+
import { AbiFunctionType as C, AbiInputType as g, AbiStateMutability as h, DeveloperJWTAuthenticationType as R, EmailAuthenticationType as U, ErrorType as P, EthValueCriterionOperator as k, EthValueCriterionType as w, EvmAddressCriterionOperator as D, EvmAddressCriterionType as N, EvmDataCriterionType as f, EvmDataParameterConditionListOperator as I, EvmDataParameterConditionOperator as M, EvmMessageCriterionType as W, EvmNetworkCriterionNetworksItem as V, EvmNetworkCriterionOperator as X, EvmNetworkCriterionType as x, EvmSwapsNetwork as b, EvmTypedAddressConditionOperator as H, EvmTypedNumericalConditionOperator as L, EvmUserOperationNetwork as q, EvmUserOperationStatus as B, FeeType as F, InitiateEmailAuthenticationNextStepType as K, InitiateEmailAuthenticationRequestType as G, InitiateSmsAuthenticationNextStepType as J, InitiateSmsAuthenticationRequestType as j, KnownAbiType as z, KnownIdlType as Q, ListEvmTokenBalancesNetwork as Y, ListSolanaTokenBalancesNetwork as Z, MintAddressCriterionOperator as _, MintAddressCriterionType as $, NetUSDChangeCriterionOperator as ee, NetUSDChangeCriterionType as te, OnchainDataResultSchemaColumnsItemType as re, OnrampOrderFeeType as ne, OnrampOrderStatus as ie, OnrampPaymentLinkType as oe, OnrampPaymentMethodTypeId as ae, PaymentMethodType as se, PaymentRailAction as pe, PolicyScope as ce, PrepareUserOperationRuleAction as me, PrepareUserOperationRuleOperation as de, RefreshAccessTokenBodyGrantType as le, SendEvmTransactionRuleAction as ue, SendEvmTransactionRuleOperation as ye, SendEvmTransactionWithEndUserAccountBodyNetwork as Se, SendSolTransactionRuleAction as Te, SendSolTransactionRuleOperation as Ee, SendUserOperationRuleAction as Ae, SendUserOperationRuleOperation as Oe, SignEvmHashRuleAction as ve, SignEvmHashRuleOperation as Ce, SignEvmMessageRuleAction as ge, SignEvmMessageRuleOperation as he, SignEvmTransactionRuleAction as Re, SignEvmTransactionRuleOperation as Ue, SignEvmTypedDataFieldCriterionType as Pe, SignEvmTypedDataRuleAction as ke, SignEvmTypedDataRuleOperation as we, SignEvmTypedDataVerifyingContractCriterionOperator as De, SignEvmTypedDataVerifyingContractCriterionType as Ne, SignSolMessageRuleAction as fe, SignSolMessageRuleOperation as Ie, SignSolTransactionRuleAction as Me, SignSolTransactionRuleOperation as We, SmsAuthenticationType as Ve, SolAddressCriterionOperator as Xe, SolAddressCriterionType as xe, SolDataConditionInstruction as be, SolDataCriterionType as He, SolDataParameterConditionListOperator as Le, SolDataParameterConditionOperator as qe, SolMessageCriterionType as Be, SolValueCriterionOperator as Fe, SolValueCriterionType as Ke, SpendPermissionNetwork as Ge, SplAddressCriterionOperator as Je, SplAddressCriterionType as je, SplValueCriterionOperator as ze, SplValueCriterionType as Qe, TransferSourceType as Ye, TransferStatus as Ze, TransferTargetType as _e, X402DiscoveryResourceType as $e, X402PaymentPayloadNetwork as et, X402PaymentPayloadScheme as tt, X402PaymentRequirementsNetwork as rt, X402PaymentRequirementsScheme as nt, X402SettleErrorReason as it, X402SupportedPaymentKindNetwork as ot, X402SupportedPaymentKindScheme as at, X402VerifyInvalidReason as st, X402Version as pt } from "./index3.js";
|
|
3
|
+
import { configureCdpApiClient as mt, setAuthManager as dt } from "./index4.js";
|
|
4
|
+
import { APIError as ut, HttpErrorType as yt, UnknownApiError as St, UnknownError as Tt, isOpenAPIError as Et } from "./index5.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
ut as APIError,
|
|
7
|
+
C as AbiFunctionType,
|
|
8
|
+
g as AbiInputType,
|
|
9
|
+
h as AbiStateMutability,
|
|
10
10
|
R as DeveloperJWTAuthenticationType,
|
|
11
11
|
U as EmailAuthenticationType,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
P as ErrorType,
|
|
13
|
+
k as EthValueCriterionOperator,
|
|
14
|
+
w as EthValueCriterionType,
|
|
15
|
+
D as EvmAddressCriterionOperator,
|
|
16
|
+
N as EvmAddressCriterionType,
|
|
17
|
+
f as EvmDataCriterionType,
|
|
18
|
+
I as EvmDataParameterConditionListOperator,
|
|
19
|
+
M as EvmDataParameterConditionOperator,
|
|
20
20
|
W as EvmMessageCriterionType,
|
|
21
21
|
V as EvmNetworkCriterionNetworksItem,
|
|
22
22
|
X as EvmNetworkCriterionOperator,
|
|
23
23
|
x as EvmNetworkCriterionType,
|
|
24
24
|
b as EvmSwapsNetwork,
|
|
25
25
|
H as EvmTypedAddressConditionOperator,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
L as EvmTypedNumericalConditionOperator,
|
|
27
|
+
q as EvmUserOperationNetwork,
|
|
28
|
+
B as EvmUserOperationStatus,
|
|
29
|
+
F as FeeType,
|
|
30
|
+
yt as HttpErrorType,
|
|
31
31
|
K as InitiateEmailAuthenticationNextStepType,
|
|
32
32
|
G as InitiateEmailAuthenticationRequestType,
|
|
33
33
|
J as InitiateSmsAuthenticationNextStepType,
|
|
34
34
|
j as InitiateSmsAuthenticationRequestType,
|
|
35
35
|
z as KnownAbiType,
|
|
36
|
-
Q as
|
|
37
|
-
Y as
|
|
38
|
-
Z as
|
|
39
|
-
_ as
|
|
40
|
-
$ as
|
|
41
|
-
ee as
|
|
42
|
-
te as
|
|
43
|
-
re as
|
|
44
|
-
ne as
|
|
45
|
-
ie as
|
|
46
|
-
oe as
|
|
47
|
-
ae as
|
|
48
|
-
se as
|
|
49
|
-
pe as
|
|
50
|
-
ce as
|
|
51
|
-
me as
|
|
52
|
-
de as
|
|
36
|
+
Q as KnownIdlType,
|
|
37
|
+
Y as ListEvmTokenBalancesNetwork,
|
|
38
|
+
Z as ListSolanaTokenBalancesNetwork,
|
|
39
|
+
_ as MintAddressCriterionOperator,
|
|
40
|
+
$ as MintAddressCriterionType,
|
|
41
|
+
ee as NetUSDChangeCriterionOperator,
|
|
42
|
+
te as NetUSDChangeCriterionType,
|
|
43
|
+
re as OnchainDataResultSchemaColumnsItemType,
|
|
44
|
+
ne as OnrampOrderFeeType,
|
|
45
|
+
ie as OnrampOrderStatus,
|
|
46
|
+
oe as OnrampPaymentLinkType,
|
|
47
|
+
ae as OnrampPaymentMethodTypeId,
|
|
48
|
+
se as PaymentMethodType,
|
|
49
|
+
pe as PaymentRailAction,
|
|
50
|
+
ce as PolicyScope,
|
|
51
|
+
me as PrepareUserOperationRuleAction,
|
|
52
|
+
de as PrepareUserOperationRuleOperation,
|
|
53
|
+
le as RefreshAccessTokenBodyGrantType,
|
|
53
54
|
ue as SendEvmTransactionRuleAction,
|
|
54
55
|
ye as SendEvmTransactionRuleOperation,
|
|
55
|
-
|
|
56
|
+
Se as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
56
57
|
Te as SendSolTransactionRuleAction,
|
|
57
58
|
Ee as SendSolTransactionRuleOperation,
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
Ae as SendUserOperationRuleAction,
|
|
60
|
+
Oe as SendUserOperationRuleOperation,
|
|
60
61
|
ve as SignEvmHashRuleAction,
|
|
61
|
-
|
|
62
|
+
Ce as SignEvmHashRuleOperation,
|
|
62
63
|
ge as SignEvmMessageRuleAction,
|
|
63
64
|
he as SignEvmMessageRuleOperation,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
Re as SignEvmTransactionRuleAction,
|
|
66
|
+
Ue as SignEvmTransactionRuleOperation,
|
|
67
|
+
Pe as SignEvmTypedDataFieldCriterionType,
|
|
67
68
|
ke as SignEvmTypedDataRuleAction,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
we as SignEvmTypedDataRuleOperation,
|
|
70
|
+
De as SignEvmTypedDataVerifyingContractCriterionOperator,
|
|
71
|
+
Ne as SignEvmTypedDataVerifyingContractCriterionType,
|
|
71
72
|
fe as SignSolMessageRuleAction,
|
|
72
|
-
|
|
73
|
+
Ie as SignSolMessageRuleOperation,
|
|
73
74
|
Me as SignSolTransactionRuleAction,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
qe as
|
|
82
|
-
Be as
|
|
83
|
-
Fe as
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
it as
|
|
75
|
+
We as SignSolTransactionRuleOperation,
|
|
76
|
+
Ve as SmsAuthenticationType,
|
|
77
|
+
Xe as SolAddressCriterionOperator,
|
|
78
|
+
xe as SolAddressCriterionType,
|
|
79
|
+
be as SolDataConditionInstruction,
|
|
80
|
+
He as SolDataCriterionType,
|
|
81
|
+
Le as SolDataParameterConditionListOperator,
|
|
82
|
+
qe as SolDataParameterConditionOperator,
|
|
83
|
+
Be as SolMessageCriterionType,
|
|
84
|
+
Fe as SolValueCriterionOperator,
|
|
85
|
+
Ke as SolValueCriterionType,
|
|
86
|
+
Ge as SpendPermissionNetwork,
|
|
87
|
+
Je as SplAddressCriterionOperator,
|
|
88
|
+
je as SplAddressCriterionType,
|
|
89
|
+
ze as SplValueCriterionOperator,
|
|
90
|
+
Qe as SplValueCriterionType,
|
|
91
|
+
Ye as TransferSourceType,
|
|
92
|
+
Ze as TransferStatus,
|
|
93
|
+
_e as TransferTargetType,
|
|
94
|
+
St as UnknownApiError,
|
|
95
|
+
Tt as UnknownError,
|
|
96
|
+
$e as X402DiscoveryResourceType,
|
|
97
|
+
et as X402PaymentPayloadNetwork,
|
|
98
|
+
tt as X402PaymentPayloadScheme,
|
|
99
|
+
rt as X402PaymentRequirementsNetwork,
|
|
100
|
+
nt as X402PaymentRequirementsScheme,
|
|
101
|
+
it as X402SettleErrorReason,
|
|
102
|
+
ot as X402SupportedPaymentKindNetwork,
|
|
103
|
+
at as X402SupportedPaymentKindScheme,
|
|
104
|
+
st as X402VerifyInvalidReason,
|
|
105
|
+
pt as X402Version,
|
|
106
|
+
mt as configureCdpApiClient,
|
|
101
107
|
r as createEndUserEvmAccount,
|
|
102
108
|
n as createEndUserEvmSmartAccount,
|
|
103
109
|
i as exportEndUserEvmAccount,
|
|
104
110
|
o as getAuthenticatedEndUser,
|
|
105
111
|
a as getUserOperationWithEndUserAccount,
|
|
106
112
|
s as initiateAuthentication,
|
|
107
|
-
|
|
113
|
+
Et as isOpenAPIError,
|
|
108
114
|
p as logOutEndUser,
|
|
109
115
|
c as refreshAccessToken,
|
|
110
116
|
m as registerTemporaryWalletSecret,
|
|
111
117
|
d as sendEvmTransactionWithEndUserAccount,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
l as sendUserOperationWithEndUserAccount,
|
|
119
|
+
dt as setAuthManager,
|
|
120
|
+
u as signEvmHashWithEndUserAccount,
|
|
121
|
+
y as signEvmMessageWithEndUserAccount,
|
|
122
|
+
S as signEvmTransactionWithEndUserAccount,
|
|
123
|
+
T as signEvmTypedDataWithEndUserAccount,
|
|
124
|
+
E as signSolanaHashWithEndUserAccount,
|
|
119
125
|
A as verifyEmailAuthentication,
|
|
120
|
-
|
|
126
|
+
O as verifySmsAuthentication
|
|
121
127
|
};
|
package/dist/esm/index3.js
CHANGED
|
@@ -30,7 +30,11 @@ const e = {
|
|
|
30
30
|
guest_region_forbidden: "guest_region_forbidden",
|
|
31
31
|
guest_transaction_limit: "guest_transaction_limit",
|
|
32
32
|
guest_transaction_count: "guest_transaction_count",
|
|
33
|
-
phone_number_verification_expired: "phone_number_verification_expired"
|
|
33
|
+
phone_number_verification_expired: "phone_number_verification_expired",
|
|
34
|
+
document_verification_failed: "document_verification_failed",
|
|
35
|
+
recipient_allowlist_violation: "recipient_allowlist_violation",
|
|
36
|
+
recipient_allowlist_pending: "recipient_allowlist_pending",
|
|
37
|
+
travel_rules_recipient_violation: "travel_rules_recipient_violation"
|
|
34
38
|
}, i = {
|
|
35
39
|
email: "email"
|
|
36
40
|
}, o = {
|
|
@@ -57,33 +61,42 @@ const e = {
|
|
|
57
61
|
complete: "complete",
|
|
58
62
|
dropped: "dropped",
|
|
59
63
|
failed: "failed"
|
|
64
|
+
}, l = {
|
|
65
|
+
base: "base",
|
|
66
|
+
"base-sepolia": "base-sepolia",
|
|
67
|
+
ethereum: "ethereum",
|
|
68
|
+
"ethereum-sepolia": "ethereum-sepolia",
|
|
69
|
+
optimism: "optimism",
|
|
70
|
+
arbitrum: "arbitrum",
|
|
71
|
+
avalanche: "avalanche",
|
|
72
|
+
polygon: "polygon"
|
|
60
73
|
}, d = {
|
|
61
74
|
base: "base",
|
|
62
75
|
ethereum: "ethereum",
|
|
63
76
|
arbitrum: "arbitrum",
|
|
64
77
|
optimism: "optimism"
|
|
65
|
-
},
|
|
78
|
+
}, p = {
|
|
66
79
|
base: "base",
|
|
67
80
|
"base-sepolia": "base-sepolia",
|
|
68
81
|
ethereum: "ethereum"
|
|
69
|
-
}, p = {
|
|
70
|
-
ethValue: "ethValue"
|
|
71
82
|
}, m = {
|
|
83
|
+
ethValue: "ethValue"
|
|
84
|
+
}, v = {
|
|
72
85
|
">": ">",
|
|
73
86
|
">=": ">=",
|
|
74
87
|
"<": "<",
|
|
75
88
|
"<=": "<=",
|
|
76
89
|
"==": "=="
|
|
77
|
-
}, v = {
|
|
78
|
-
evmAddress: "evmAddress"
|
|
79
90
|
}, u = {
|
|
91
|
+
evmAddress: "evmAddress"
|
|
92
|
+
}, y = {
|
|
80
93
|
in: "in",
|
|
81
94
|
not_in: "not in"
|
|
82
|
-
},
|
|
95
|
+
}, T = {
|
|
83
96
|
erc20: "erc20",
|
|
84
97
|
erc721: "erc721",
|
|
85
98
|
erc1155: "erc1155"
|
|
86
|
-
},
|
|
99
|
+
}, g = {
|
|
87
100
|
pure: "pure",
|
|
88
101
|
view: "view",
|
|
89
102
|
nonpayable: "nonpayable",
|
|
@@ -96,33 +109,33 @@ const e = {
|
|
|
96
109
|
event: "event",
|
|
97
110
|
fallback: "fallback",
|
|
98
111
|
receive: "receive"
|
|
99
|
-
},
|
|
112
|
+
}, h = {
|
|
100
113
|
">": ">",
|
|
101
114
|
">=": ">=",
|
|
102
115
|
"<": "<",
|
|
103
116
|
"<=": "<=",
|
|
104
117
|
"==": "=="
|
|
105
|
-
},
|
|
118
|
+
}, A = {
|
|
106
119
|
in: "in",
|
|
107
120
|
not_in: "not in"
|
|
108
|
-
}, A = {
|
|
109
|
-
evmData: "evmData"
|
|
110
121
|
}, b = {
|
|
111
|
-
|
|
122
|
+
evmData: "evmData"
|
|
112
123
|
}, O = {
|
|
124
|
+
netUSDChange: "netUSDChange"
|
|
125
|
+
}, f = {
|
|
113
126
|
">": ">",
|
|
114
127
|
">=": ">=",
|
|
115
128
|
"<": "<",
|
|
116
129
|
"<=": "<=",
|
|
117
130
|
"==": "=="
|
|
118
|
-
},
|
|
131
|
+
}, P = {
|
|
119
132
|
reject: "reject",
|
|
120
133
|
accept: "accept"
|
|
121
134
|
}, R = {
|
|
122
135
|
signEvmTransaction: "signEvmTransaction"
|
|
123
|
-
}, P = {
|
|
124
|
-
evmNetwork: "evmNetwork"
|
|
125
136
|
}, x = {
|
|
137
|
+
evmNetwork: "evmNetwork"
|
|
138
|
+
}, D = {
|
|
126
139
|
"base-sepolia": "base-sepolia",
|
|
127
140
|
base: "base",
|
|
128
141
|
ethereum: "ethereum",
|
|
@@ -136,109 +149,126 @@ const e = {
|
|
|
136
149
|
}, N = {
|
|
137
150
|
in: "in",
|
|
138
151
|
not_in: "not in"
|
|
139
|
-
},
|
|
152
|
+
}, C = {
|
|
140
153
|
reject: "reject",
|
|
141
154
|
accept: "accept"
|
|
142
|
-
},
|
|
155
|
+
}, U = {
|
|
143
156
|
sendEvmTransaction: "sendEvmTransaction"
|
|
144
|
-
}, C = {
|
|
145
|
-
evmMessage: "evmMessage"
|
|
146
157
|
}, I = {
|
|
158
|
+
evmMessage: "evmMessage"
|
|
159
|
+
}, k = {
|
|
147
160
|
reject: "reject",
|
|
148
161
|
accept: "accept"
|
|
149
|
-
},
|
|
162
|
+
}, w = {
|
|
150
163
|
signEvmMessage: "signEvmMessage"
|
|
151
164
|
}, M = {
|
|
152
165
|
in: "in",
|
|
153
166
|
not_in: "not in"
|
|
154
|
-
},
|
|
167
|
+
}, z = {
|
|
155
168
|
">": ">",
|
|
156
169
|
">=": ">=",
|
|
157
170
|
"<": "<",
|
|
158
171
|
"<=": "<=",
|
|
159
172
|
"==": "=="
|
|
160
|
-
}, z = {
|
|
161
|
-
evmTypedDataField: "evmTypedDataField"
|
|
162
173
|
}, j = {
|
|
163
|
-
|
|
174
|
+
evmTypedDataField: "evmTypedDataField"
|
|
164
175
|
}, q = {
|
|
176
|
+
evmTypedDataVerifyingContract: "evmTypedDataVerifyingContract"
|
|
177
|
+
}, V = {
|
|
165
178
|
in: "in",
|
|
166
179
|
not_in: "not in"
|
|
167
|
-
},
|
|
180
|
+
}, F = {
|
|
168
181
|
reject: "reject",
|
|
169
182
|
accept: "accept"
|
|
170
|
-
}, F = {
|
|
171
|
-
signEvmTypedData: "signEvmTypedData"
|
|
172
183
|
}, L = {
|
|
173
|
-
|
|
184
|
+
signEvmTypedData: "signEvmTypedData"
|
|
174
185
|
}, Y = {
|
|
186
|
+
solAddress: "solAddress"
|
|
187
|
+
}, X = {
|
|
175
188
|
in: "in",
|
|
176
189
|
not_in: "not in"
|
|
177
|
-
}, X = {
|
|
178
|
-
solValue: "solValue"
|
|
179
190
|
}, G = {
|
|
191
|
+
solValue: "solValue"
|
|
192
|
+
}, H = {
|
|
180
193
|
">": ">",
|
|
181
194
|
">=": ">=",
|
|
182
195
|
"<": "<",
|
|
183
196
|
"<=": "<=",
|
|
184
197
|
"==": "=="
|
|
185
|
-
},
|
|
198
|
+
}, K = {
|
|
186
199
|
splAddress: "splAddress"
|
|
187
200
|
}, B = {
|
|
188
201
|
in: "in",
|
|
189
202
|
not_in: "not in"
|
|
190
|
-
}, K = {
|
|
191
|
-
splValue: "splValue"
|
|
192
203
|
}, W = {
|
|
204
|
+
splValue: "splValue"
|
|
205
|
+
}, J = {
|
|
193
206
|
">": ">",
|
|
194
207
|
">=": ">=",
|
|
195
208
|
"<": "<",
|
|
196
209
|
"<=": "<=",
|
|
197
210
|
"==": "=="
|
|
198
|
-
}, J = {
|
|
199
|
-
mintAddress: "mintAddress"
|
|
200
211
|
}, Q = {
|
|
212
|
+
mintAddress: "mintAddress"
|
|
213
|
+
}, Z = {
|
|
201
214
|
in: "in",
|
|
202
215
|
not_in: "not in"
|
|
203
|
-
},
|
|
216
|
+
}, $ = {
|
|
217
|
+
SystemProgram: "SystemProgram",
|
|
218
|
+
TokenProgram: "TokenProgram",
|
|
219
|
+
AssociatedTokenProgram: "AssociatedTokenProgram"
|
|
220
|
+
}, ee = {
|
|
221
|
+
">": ">",
|
|
222
|
+
">=": ">=",
|
|
223
|
+
"<": "<",
|
|
224
|
+
"<=": "<=",
|
|
225
|
+
"==": "=="
|
|
226
|
+
}, te = {
|
|
227
|
+
in: "in",
|
|
228
|
+
not_in: "not in"
|
|
229
|
+
}, ae = {
|
|
230
|
+
createAccount: "createAccount"
|
|
231
|
+
}, ne = {
|
|
232
|
+
solData: "solData"
|
|
233
|
+
}, ie = {
|
|
204
234
|
reject: "reject",
|
|
205
235
|
accept: "accept"
|
|
206
|
-
},
|
|
236
|
+
}, oe = {
|
|
207
237
|
signSolTransaction: "signSolTransaction"
|
|
208
|
-
},
|
|
238
|
+
}, re = {
|
|
209
239
|
reject: "reject",
|
|
210
240
|
accept: "accept"
|
|
211
|
-
},
|
|
241
|
+
}, se = {
|
|
212
242
|
sendSolTransaction: "sendSolTransaction"
|
|
213
|
-
},
|
|
243
|
+
}, _e = {
|
|
214
244
|
solMessage: "solMessage"
|
|
215
|
-
},
|
|
245
|
+
}, ce = {
|
|
216
246
|
reject: "reject",
|
|
217
247
|
accept: "accept"
|
|
218
|
-
},
|
|
248
|
+
}, le = {
|
|
219
249
|
signSolMessage: "signSolMessage"
|
|
220
|
-
},
|
|
250
|
+
}, de = {
|
|
221
251
|
reject: "reject",
|
|
222
252
|
accept: "accept"
|
|
223
|
-
},
|
|
253
|
+
}, pe = {
|
|
224
254
|
signEvmHash: "signEvmHash"
|
|
225
|
-
},
|
|
255
|
+
}, me = {
|
|
226
256
|
reject: "reject",
|
|
227
257
|
accept: "accept"
|
|
228
|
-
},
|
|
258
|
+
}, ve = {
|
|
229
259
|
prepareUserOperation: "prepareUserOperation"
|
|
230
|
-
},
|
|
260
|
+
}, ue = {
|
|
231
261
|
reject: "reject",
|
|
232
262
|
accept: "accept"
|
|
233
|
-
},
|
|
263
|
+
}, ye = {
|
|
234
264
|
sendUserOperation: "sendUserOperation"
|
|
235
|
-
},
|
|
265
|
+
}, Te = {
|
|
236
266
|
project: "project",
|
|
237
267
|
account: "account"
|
|
238
|
-
},
|
|
268
|
+
}, ge = {
|
|
239
269
|
solana: "solana",
|
|
240
270
|
"solana-devnet": "solana-devnet"
|
|
241
|
-
},
|
|
271
|
+
}, Ee = {
|
|
242
272
|
String: "String",
|
|
243
273
|
UInt8: "UInt8",
|
|
244
274
|
UInt16: "UInt16",
|
|
@@ -259,19 +289,19 @@ const e = {
|
|
|
259
289
|
DateTime: "DateTime",
|
|
260
290
|
DateTime64: "DateTime64",
|
|
261
291
|
UUID: "UUID"
|
|
262
|
-
},
|
|
292
|
+
}, Se = {
|
|
263
293
|
NUMBER_1: 1
|
|
264
|
-
},
|
|
294
|
+
}, he = {
|
|
265
295
|
exact: "exact"
|
|
266
|
-
},
|
|
296
|
+
}, Ae = {
|
|
267
297
|
"base-sepolia": "base-sepolia",
|
|
268
298
|
base: "base"
|
|
269
|
-
},
|
|
299
|
+
}, be = {
|
|
270
300
|
exact: "exact"
|
|
271
|
-
},
|
|
301
|
+
}, Oe = {
|
|
272
302
|
"base-sepolia": "base-sepolia",
|
|
273
303
|
base: "base"
|
|
274
|
-
},
|
|
304
|
+
}, fe = {
|
|
275
305
|
insufficient_funds: "insufficient_funds",
|
|
276
306
|
invalid_scheme: "invalid_scheme",
|
|
277
307
|
invalid_network: "invalid_network",
|
|
@@ -286,7 +316,7 @@ const e = {
|
|
|
286
316
|
invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt",
|
|
287
317
|
invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature",
|
|
288
318
|
invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address"
|
|
289
|
-
},
|
|
319
|
+
}, Pe = {
|
|
290
320
|
insufficient_funds: "insufficient_funds",
|
|
291
321
|
invalid_scheme: "invalid_scheme",
|
|
292
322
|
invalid_network: "invalid_network",
|
|
@@ -300,140 +330,152 @@ const e = {
|
|
|
300
330
|
invalid_exact_evm_payload_authorization_from_address_kyt: "invalid_exact_evm_payload_authorization_from_address_kyt",
|
|
301
331
|
invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt",
|
|
302
332
|
invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address"
|
|
303
|
-
},
|
|
333
|
+
}, Re = {
|
|
304
334
|
exact: "exact"
|
|
305
|
-
},
|
|
335
|
+
}, xe = {
|
|
306
336
|
"base-sepolia": "base-sepolia",
|
|
307
337
|
base: "base"
|
|
308
|
-
},
|
|
338
|
+
}, De = {
|
|
309
339
|
http: "http"
|
|
310
|
-
},
|
|
340
|
+
}, Ne = {
|
|
311
341
|
source: "source",
|
|
312
342
|
target: "target"
|
|
313
|
-
},
|
|
343
|
+
}, Ce = {
|
|
314
344
|
card: "card",
|
|
315
345
|
fiat_account: "fiat_account"
|
|
316
|
-
},
|
|
346
|
+
}, Ue = {
|
|
317
347
|
exchange_fee: "exchange_fee",
|
|
318
348
|
network_fee: "network_fee"
|
|
319
|
-
},
|
|
349
|
+
}, Ie = {
|
|
320
350
|
payment_method: "payment_method"
|
|
321
|
-
},
|
|
351
|
+
}, ke = {
|
|
322
352
|
crypto_rail: "crypto_rail"
|
|
323
|
-
},
|
|
353
|
+
}, we = {
|
|
324
354
|
created: "created",
|
|
325
355
|
pending: "pending",
|
|
326
356
|
started: "started",
|
|
327
357
|
completed: "completed",
|
|
328
358
|
failed: "failed"
|
|
329
|
-
},
|
|
359
|
+
}, Me = {
|
|
330
360
|
GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY"
|
|
331
|
-
},
|
|
361
|
+
}, ze = {
|
|
332
362
|
FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK",
|
|
333
363
|
FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE"
|
|
334
|
-
},
|
|
364
|
+
}, je = {
|
|
335
365
|
ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH",
|
|
336
366
|
ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
|
|
337
367
|
ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING",
|
|
338
368
|
ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED",
|
|
339
369
|
ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED"
|
|
340
|
-
},
|
|
370
|
+
}, qe = {
|
|
341
371
|
PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON"
|
|
342
|
-
},
|
|
372
|
+
}, Ve = {
|
|
343
373
|
refresh_token: "refresh_token"
|
|
344
|
-
},
|
|
374
|
+
}, Fe = {
|
|
345
375
|
base: "base",
|
|
346
|
-
"base-sepolia": "base-sepolia"
|
|
376
|
+
"base-sepolia": "base-sepolia",
|
|
377
|
+
ethereum: "ethereum",
|
|
378
|
+
"ethereum-sepolia": "ethereum-sepolia",
|
|
379
|
+
avalanche: "avalanche",
|
|
380
|
+
polygon: "polygon",
|
|
381
|
+
optimism: "optimism",
|
|
382
|
+
arbitrum: "arbitrum"
|
|
347
383
|
};
|
|
348
384
|
export {
|
|
349
385
|
E as AbiFunctionType,
|
|
350
386
|
S as AbiInputType,
|
|
351
|
-
|
|
387
|
+
g as AbiStateMutability,
|
|
352
388
|
a as DeveloperJWTAuthenticationType,
|
|
353
389
|
e as EmailAuthenticationType,
|
|
354
390
|
n as ErrorType,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
391
|
+
v as EthValueCriterionOperator,
|
|
392
|
+
m as EthValueCriterionType,
|
|
393
|
+
y as EvmAddressCriterionOperator,
|
|
394
|
+
u as EvmAddressCriterionType,
|
|
395
|
+
b as EvmDataCriterionType,
|
|
396
|
+
A as EvmDataParameterConditionListOperator,
|
|
397
|
+
h as EvmDataParameterConditionOperator,
|
|
398
|
+
I as EvmMessageCriterionType,
|
|
399
|
+
D as EvmNetworkCriterionNetworksItem,
|
|
364
400
|
N as EvmNetworkCriterionOperator,
|
|
365
|
-
|
|
401
|
+
x as EvmNetworkCriterionType,
|
|
366
402
|
d as EvmSwapsNetwork,
|
|
367
403
|
M as EvmTypedAddressConditionOperator,
|
|
368
|
-
|
|
404
|
+
z as EvmTypedNumericalConditionOperator,
|
|
369
405
|
_ as EvmUserOperationNetwork,
|
|
370
406
|
c as EvmUserOperationStatus,
|
|
371
|
-
|
|
407
|
+
Ue as FeeType,
|
|
372
408
|
r as InitiateEmailAuthenticationNextStepType,
|
|
373
409
|
i as InitiateEmailAuthenticationRequestType,
|
|
374
410
|
s as InitiateSmsAuthenticationNextStepType,
|
|
375
411
|
o as InitiateSmsAuthenticationRequestType,
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
k as
|
|
405
|
-
|
|
412
|
+
T as KnownAbiType,
|
|
413
|
+
$ as KnownIdlType,
|
|
414
|
+
p as ListEvmTokenBalancesNetwork,
|
|
415
|
+
ge as ListSolanaTokenBalancesNetwork,
|
|
416
|
+
Z as MintAddressCriterionOperator,
|
|
417
|
+
Q as MintAddressCriterionType,
|
|
418
|
+
f as NetUSDChangeCriterionOperator,
|
|
419
|
+
O as NetUSDChangeCriterionType,
|
|
420
|
+
Ee as OnchainDataResultSchemaColumnsItemType,
|
|
421
|
+
ze as OnrampOrderFeeType,
|
|
422
|
+
je as OnrampOrderStatus,
|
|
423
|
+
qe as OnrampPaymentLinkType,
|
|
424
|
+
Me as OnrampPaymentMethodTypeId,
|
|
425
|
+
Ce as PaymentMethodType,
|
|
426
|
+
Ne as PaymentRailAction,
|
|
427
|
+
Te as PolicyScope,
|
|
428
|
+
me as PrepareUserOperationRuleAction,
|
|
429
|
+
ve as PrepareUserOperationRuleOperation,
|
|
430
|
+
Ve as RefreshAccessTokenBodyGrantType,
|
|
431
|
+
C as SendEvmTransactionRuleAction,
|
|
432
|
+
U as SendEvmTransactionRuleOperation,
|
|
433
|
+
Fe as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
434
|
+
re as SendSolTransactionRuleAction,
|
|
435
|
+
se as SendSolTransactionRuleOperation,
|
|
436
|
+
ue as SendUserOperationRuleAction,
|
|
437
|
+
ye as SendUserOperationRuleOperation,
|
|
438
|
+
de as SignEvmHashRuleAction,
|
|
439
|
+
pe as SignEvmHashRuleOperation,
|
|
440
|
+
k as SignEvmMessageRuleAction,
|
|
441
|
+
w as SignEvmMessageRuleOperation,
|
|
442
|
+
P as SignEvmTransactionRuleAction,
|
|
406
443
|
R as SignEvmTransactionRuleOperation,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
444
|
+
j as SignEvmTypedDataFieldCriterionType,
|
|
445
|
+
F as SignEvmTypedDataRuleAction,
|
|
446
|
+
L as SignEvmTypedDataRuleOperation,
|
|
447
|
+
V as SignEvmTypedDataVerifyingContractCriterionOperator,
|
|
448
|
+
q as SignEvmTypedDataVerifyingContractCriterionType,
|
|
449
|
+
ce as SignSolMessageRuleAction,
|
|
450
|
+
le as SignSolMessageRuleOperation,
|
|
451
|
+
ie as SignSolTransactionRuleAction,
|
|
452
|
+
oe as SignSolTransactionRuleOperation,
|
|
416
453
|
t as SmsAuthenticationType,
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
ae as
|
|
420
|
-
|
|
421
|
-
|
|
454
|
+
X as SolAddressCriterionOperator,
|
|
455
|
+
Y as SolAddressCriterionType,
|
|
456
|
+
ae as SolDataConditionInstruction,
|
|
457
|
+
ne as SolDataCriterionType,
|
|
458
|
+
te as SolDataParameterConditionListOperator,
|
|
459
|
+
ee as SolDataParameterConditionOperator,
|
|
460
|
+
_e as SolMessageCriterionType,
|
|
461
|
+
H as SolValueCriterionOperator,
|
|
462
|
+
G as SolValueCriterionType,
|
|
463
|
+
l as SpendPermissionNetwork,
|
|
422
464
|
B as SplAddressCriterionOperator,
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
465
|
+
K as SplAddressCriterionType,
|
|
466
|
+
J as SplValueCriterionOperator,
|
|
467
|
+
W as SplValueCriterionType,
|
|
468
|
+
Ie as TransferSourceType,
|
|
469
|
+
we as TransferStatus,
|
|
470
|
+
ke as TransferTargetType,
|
|
471
|
+
De as X402DiscoveryResourceType,
|
|
472
|
+
Ae as X402PaymentPayloadNetwork,
|
|
473
|
+
he as X402PaymentPayloadScheme,
|
|
474
|
+
Oe as X402PaymentRequirementsNetwork,
|
|
475
|
+
be as X402PaymentRequirementsScheme,
|
|
476
|
+
Pe as X402SettleErrorReason,
|
|
477
|
+
xe as X402SupportedPaymentKindNetwork,
|
|
478
|
+
Re as X402SupportedPaymentKindScheme,
|
|
479
|
+
fe as X402VerifyInvalidReason,
|
|
480
|
+
Se as X402Version
|
|
439
481
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -154,12 +154,13 @@ export declare const createEndUserEvmSmartAccount: (projectId: string, userId: s
|
|
|
154
154
|
|
|
155
155
|
export declare type CreateEndUserEvmSmartAccountBody = {
|
|
156
156
|
owner: string;
|
|
157
|
+
enableSpendPermissions: boolean;
|
|
157
158
|
};
|
|
158
159
|
|
|
159
160
|
export declare type CreateEndUserEvmSmartAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmSmartAccount>>>;
|
|
160
161
|
|
|
161
162
|
export declare interface CreateSpendPermissionRequest {
|
|
162
|
-
network:
|
|
163
|
+
network: SpendPermissionNetwork;
|
|
163
164
|
spender: string;
|
|
164
165
|
token: string;
|
|
165
166
|
allowance: string;
|
|
@@ -303,6 +304,10 @@ export declare const ErrorType: {
|
|
|
303
304
|
readonly guest_transaction_limit: "guest_transaction_limit";
|
|
304
305
|
readonly guest_transaction_count: "guest_transaction_count";
|
|
305
306
|
readonly phone_number_verification_expired: "phone_number_verification_expired";
|
|
307
|
+
readonly document_verification_failed: "document_verification_failed";
|
|
308
|
+
readonly recipient_allowlist_violation: "recipient_allowlist_violation";
|
|
309
|
+
readonly recipient_allowlist_pending: "recipient_allowlist_pending";
|
|
310
|
+
readonly travel_rules_recipient_violation: "travel_rules_recipient_violation";
|
|
306
311
|
};
|
|
307
312
|
|
|
308
313
|
export declare interface EthValueCriterion {
|
|
@@ -608,6 +613,22 @@ export declare type IdempotencyErrorResponse = Error_2;
|
|
|
608
613
|
|
|
609
614
|
export declare type IdempotencyKeyParameter = string;
|
|
610
615
|
|
|
616
|
+
export declare interface Idl {
|
|
617
|
+
address: string;
|
|
618
|
+
instructions: IdlInstructionsItem[];
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export declare type IdlInstructionsItem = {
|
|
622
|
+
name: string;
|
|
623
|
+
discriminator: number[];
|
|
624
|
+
args: IdlInstructionsItemArgsItem[];
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
export declare type IdlInstructionsItemArgsItem = {
|
|
628
|
+
name: string;
|
|
629
|
+
type: string;
|
|
630
|
+
};
|
|
631
|
+
|
|
611
632
|
export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateAuthenticationResponseWrapper>;
|
|
612
633
|
|
|
613
634
|
export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest | InitiateSmsAuthenticationRequest;
|
|
@@ -686,6 +707,14 @@ export declare const KnownAbiType: {
|
|
|
686
707
|
readonly erc1155: "erc1155";
|
|
687
708
|
};
|
|
688
709
|
|
|
710
|
+
export declare type KnownIdlType = (typeof KnownIdlType)[keyof typeof KnownIdlType];
|
|
711
|
+
|
|
712
|
+
export declare const KnownIdlType: {
|
|
713
|
+
readonly SystemProgram: "SystemProgram";
|
|
714
|
+
readonly TokenProgram: "TokenProgram";
|
|
715
|
+
readonly AssociatedTokenProgram: "AssociatedTokenProgram";
|
|
716
|
+
};
|
|
717
|
+
|
|
689
718
|
export declare type ListEvmTokenBalancesNetwork = (typeof ListEvmTokenBalancesNetwork)[keyof typeof ListEvmTokenBalancesNetwork];
|
|
690
719
|
|
|
691
720
|
export declare const ListEvmTokenBalancesNetwork: {
|
|
@@ -1001,7 +1030,7 @@ export declare type RegisterTemporaryWalletSecretBody = {
|
|
|
1001
1030
|
export declare type RegisterTemporaryWalletSecretResult = NonNullable<Awaited<ReturnType<typeof registerTemporaryWalletSecret>>>;
|
|
1002
1031
|
|
|
1003
1032
|
export declare interface RevokeSpendPermissionRequest {
|
|
1004
|
-
network:
|
|
1033
|
+
network: SpendPermissionNetwork;
|
|
1005
1034
|
permissionHash: string;
|
|
1006
1035
|
paymasterUrl?: string;
|
|
1007
1036
|
}
|
|
@@ -1053,13 +1082,19 @@ export declare type SendEvmTransactionWithEndUserAccountBodyNetwork = (typeof Se
|
|
|
1053
1082
|
export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
|
|
1054
1083
|
readonly base: "base";
|
|
1055
1084
|
readonly "base-sepolia": "base-sepolia";
|
|
1085
|
+
readonly ethereum: "ethereum";
|
|
1086
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
1087
|
+
readonly avalanche: "avalanche";
|
|
1088
|
+
readonly polygon: "polygon";
|
|
1089
|
+
readonly optimism: "optimism";
|
|
1090
|
+
readonly arbitrum: "arbitrum";
|
|
1056
1091
|
};
|
|
1057
1092
|
|
|
1058
1093
|
export declare type SendEvmTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransactionWithEndUserAccount>>>;
|
|
1059
1094
|
|
|
1060
1095
|
export declare type SendSolTransactionCriteria = SendSolTransactionCriteriaItem[];
|
|
1061
1096
|
|
|
1062
|
-
export declare type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion;
|
|
1097
|
+
export declare type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
|
|
1063
1098
|
|
|
1064
1099
|
export declare interface SendSolTransactionRule {
|
|
1065
1100
|
action: SendSolTransactionRuleAction;
|
|
@@ -1345,7 +1380,7 @@ export declare const SignSolMessageRuleOperation: {
|
|
|
1345
1380
|
|
|
1346
1381
|
export declare type SignSolTransactionCriteria = SignSolTransactionCriteriaItem[];
|
|
1347
1382
|
|
|
1348
|
-
export declare type SignSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion;
|
|
1383
|
+
export declare type SignSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
|
|
1349
1384
|
|
|
1350
1385
|
export declare interface SignSolTransactionRule {
|
|
1351
1386
|
action: SignSolTransactionRuleAction;
|
|
@@ -1422,6 +1457,62 @@ export declare interface SolanaTokenBalance {
|
|
|
1422
1457
|
token: SolanaToken;
|
|
1423
1458
|
}
|
|
1424
1459
|
|
|
1460
|
+
export declare interface SolDataCondition {
|
|
1461
|
+
instruction: SolDataConditionInstruction;
|
|
1462
|
+
params?: SolDataConditionParamsItem[];
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
export declare type SolDataConditionInstruction = (typeof SolDataConditionInstruction)[keyof typeof SolDataConditionInstruction];
|
|
1466
|
+
|
|
1467
|
+
export declare const SolDataConditionInstruction: {
|
|
1468
|
+
readonly createAccount: "createAccount";
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
export declare type SolDataConditionParamsItem = SolDataParameterCondition | SolDataParameterConditionList;
|
|
1472
|
+
|
|
1473
|
+
export declare interface SolDataCriterion {
|
|
1474
|
+
type: SolDataCriterionType;
|
|
1475
|
+
idls: SolDataCriterionIdlsItem[];
|
|
1476
|
+
conditions: SolDataCondition[];
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
export declare type SolDataCriterionIdlsItem = KnownIdlType | Idl;
|
|
1480
|
+
|
|
1481
|
+
export declare type SolDataCriterionType = (typeof SolDataCriterionType)[keyof typeof SolDataCriterionType];
|
|
1482
|
+
|
|
1483
|
+
export declare const SolDataCriterionType: {
|
|
1484
|
+
readonly solData: "solData";
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
export declare interface SolDataParameterCondition {
|
|
1488
|
+
name: string;
|
|
1489
|
+
operator: SolDataParameterConditionOperator;
|
|
1490
|
+
value: string;
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
export declare interface SolDataParameterConditionList {
|
|
1494
|
+
name: string;
|
|
1495
|
+
operator: SolDataParameterConditionListOperator;
|
|
1496
|
+
values: string[];
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
export declare type SolDataParameterConditionListOperator = (typeof SolDataParameterConditionListOperator)[keyof typeof SolDataParameterConditionListOperator];
|
|
1500
|
+
|
|
1501
|
+
export declare const SolDataParameterConditionListOperator: {
|
|
1502
|
+
readonly in: "in";
|
|
1503
|
+
readonly not_in: "not in";
|
|
1504
|
+
};
|
|
1505
|
+
|
|
1506
|
+
export declare type SolDataParameterConditionOperator = (typeof SolDataParameterConditionOperator)[keyof typeof SolDataParameterConditionOperator];
|
|
1507
|
+
|
|
1508
|
+
export declare const SolDataParameterConditionOperator: {
|
|
1509
|
+
readonly ">": ">";
|
|
1510
|
+
readonly ">=": ">=";
|
|
1511
|
+
readonly "<": "<";
|
|
1512
|
+
readonly "<=": "<=";
|
|
1513
|
+
readonly "==": "==";
|
|
1514
|
+
};
|
|
1515
|
+
|
|
1425
1516
|
export declare interface SolMessageCriterion {
|
|
1426
1517
|
type: SolMessageCriterionType;
|
|
1427
1518
|
match: string;
|
|
@@ -1467,12 +1558,26 @@ export declare interface SpendPermission {
|
|
|
1467
1558
|
extraData: string;
|
|
1468
1559
|
}
|
|
1469
1560
|
|
|
1561
|
+
export declare type SpendPermissionNetwork = (typeof SpendPermissionNetwork)[keyof typeof SpendPermissionNetwork];
|
|
1562
|
+
|
|
1563
|
+
export declare const SpendPermissionNetwork: {
|
|
1564
|
+
readonly base: "base";
|
|
1565
|
+
readonly "base-sepolia": "base-sepolia";
|
|
1566
|
+
readonly ethereum: "ethereum";
|
|
1567
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
1568
|
+
readonly optimism: "optimism";
|
|
1569
|
+
readonly arbitrum: "arbitrum";
|
|
1570
|
+
readonly avalanche: "avalanche";
|
|
1571
|
+
readonly polygon: "polygon";
|
|
1572
|
+
};
|
|
1573
|
+
|
|
1470
1574
|
export declare interface SpendPermissionResponseObject {
|
|
1471
1575
|
permission: SpendPermission;
|
|
1472
1576
|
permissionHash: string;
|
|
1473
1577
|
revoked: boolean;
|
|
1474
1578
|
revokedAt?: string;
|
|
1475
1579
|
createdAt: string;
|
|
1580
|
+
network: SpendPermissionNetwork;
|
|
1476
1581
|
}
|
|
1477
1582
|
|
|
1478
1583
|
export declare interface SplAddressCriterion {
|