@coinbase/cdp-api-client 0.0.122 → 0.0.124
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 +146 -133
- package/dist/esm/index11.js +1 -1
- package/dist/esm/index15.js +1 -1
- package/dist/esm/index16.js +1 -1
- package/dist/esm/index17.js +2 -39
- package/dist/esm/index19.js +36 -67
- package/dist/esm/index20.js +2 -35
- package/dist/esm/index21.js +69 -14
- package/dist/esm/index22.js +35 -2
- package/dist/esm/index23.js +15 -2
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +90 -69
- package/dist/esm/index6.js +213 -168
- package/dist/esm/index8.js +173 -123
- package/dist/types/index.d.ts +511 -0
- package/package.json +1 -1
package/dist/esm/index22.js
CHANGED
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o, u;
|
|
2
|
+
function c() {
|
|
3
|
+
if (u) return o;
|
|
4
|
+
u = 1;
|
|
5
|
+
var t = {
|
|
6
|
+
// UTF-8 encoding
|
|
7
|
+
utf8: {
|
|
8
|
+
// Convert a string to a byte array
|
|
9
|
+
stringToBytes: function(n) {
|
|
10
|
+
return t.bin.stringToBytes(unescape(encodeURIComponent(n)));
|
|
11
|
+
},
|
|
12
|
+
// Convert a byte array to a string
|
|
13
|
+
bytesToString: function(n) {
|
|
14
|
+
return decodeURIComponent(escape(t.bin.bytesToString(n)));
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
// Binary encoding
|
|
18
|
+
bin: {
|
|
19
|
+
// Convert a string to a byte array
|
|
20
|
+
stringToBytes: function(n) {
|
|
21
|
+
for (var e = [], r = 0; r < n.length; r++)
|
|
22
|
+
e.push(n.charCodeAt(r) & 255);
|
|
23
|
+
return e;
|
|
24
|
+
},
|
|
25
|
+
// Convert a byte array to a string
|
|
26
|
+
bytesToString: function(n) {
|
|
27
|
+
for (var e = [], r = 0; r < n.length; r++)
|
|
28
|
+
e.push(String.fromCharCode(n[r]));
|
|
29
|
+
return e.join("");
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
return o = t, o;
|
|
34
|
+
}
|
|
2
35
|
export {
|
|
3
|
-
|
|
36
|
+
c as __require
|
|
4
37
|
};
|
package/dist/esm/index23.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
var e
|
|
1
|
+
var f, e;
|
|
2
|
+
function t() {
|
|
3
|
+
if (e) return f;
|
|
4
|
+
e = 1, f = function(r) {
|
|
5
|
+
return r != null && (u(r) || n(r) || !!r._isBuffer);
|
|
6
|
+
};
|
|
7
|
+
function u(r) {
|
|
8
|
+
return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
|
|
9
|
+
}
|
|
10
|
+
function n(r) {
|
|
11
|
+
return typeof r.readFloatLE == "function" && typeof r.slice == "function" && u(r.slice(0, 0));
|
|
12
|
+
}
|
|
13
|
+
return f;
|
|
14
|
+
}
|
|
2
15
|
export {
|
|
3
|
-
|
|
16
|
+
t as __require
|
|
4
17
|
};
|
package/dist/esm/index4.js
CHANGED
package/dist/esm/index5.js
CHANGED
|
@@ -106,9 +106,9 @@ const e = {
|
|
|
106
106
|
transferCrypto: "transferCrypto",
|
|
107
107
|
transferFiat: "transferFiat",
|
|
108
108
|
transferStablecoin: "transferStablecoin"
|
|
109
|
-
}, i = {
|
|
110
|
-
ios: "ios"
|
|
111
109
|
}, o = {
|
|
110
|
+
ios: "ios"
|
|
111
|
+
}, i = {
|
|
112
112
|
email: "email"
|
|
113
113
|
}, n = {
|
|
114
114
|
sms: "sms"
|
|
@@ -154,11 +154,11 @@ const e = {
|
|
|
154
154
|
approved: "approved",
|
|
155
155
|
pending: "pending",
|
|
156
156
|
rejected: "rejected"
|
|
157
|
-
},
|
|
157
|
+
}, h = {
|
|
158
158
|
required: "required",
|
|
159
159
|
preferred: "preferred",
|
|
160
160
|
discouraged: "discouraged"
|
|
161
|
-
},
|
|
161
|
+
}, v = {
|
|
162
162
|
"base-sepolia": "base-sepolia",
|
|
163
163
|
base: "base",
|
|
164
164
|
arbitrum: "arbitrum",
|
|
@@ -166,7 +166,7 @@ const e = {
|
|
|
166
166
|
polygon: "polygon",
|
|
167
167
|
ethereum: "ethereum",
|
|
168
168
|
"ethereum-sepolia": "ethereum-sepolia"
|
|
169
|
-
},
|
|
169
|
+
}, E = {
|
|
170
170
|
UNSPECIFIED: "UNSPECIFIED",
|
|
171
171
|
PENDING: "PENDING",
|
|
172
172
|
SUBMITTED: "SUBMITTED",
|
|
@@ -189,15 +189,30 @@ const e = {
|
|
|
189
189
|
avalanche: "avalanche",
|
|
190
190
|
polygon: "polygon"
|
|
191
191
|
}, A = {
|
|
192
|
+
no_debt: "no_debt",
|
|
193
|
+
healthy: "healthy",
|
|
194
|
+
undercollateralized: "undercollateralized"
|
|
195
|
+
}, S = {
|
|
196
|
+
morpho_blue: "morpho_blue"
|
|
197
|
+
}, P = {
|
|
198
|
+
base: "base"
|
|
199
|
+
}, R = {
|
|
200
|
+
morpho_blue: "morpho_blue"
|
|
201
|
+
}, w = {
|
|
202
|
+
collateral: "collateral",
|
|
203
|
+
debt: "debt"
|
|
204
|
+
}, N = {
|
|
205
|
+
morpho_blue: "morpho_blue"
|
|
206
|
+
}, x = {
|
|
192
207
|
base: "base",
|
|
193
208
|
ethereum: "ethereum",
|
|
194
209
|
arbitrum: "arbitrum",
|
|
195
210
|
optimism: "optimism",
|
|
196
211
|
polygon: "polygon"
|
|
197
|
-
},
|
|
212
|
+
}, k = {
|
|
198
213
|
NUMBER_1: 1,
|
|
199
214
|
NUMBER_2: 2
|
|
200
|
-
},
|
|
215
|
+
}, O = {
|
|
201
216
|
"eip155:8453": "eip155:8453",
|
|
202
217
|
"eip155:84532": "eip155:84532",
|
|
203
218
|
"eip155:137": "eip155:137",
|
|
@@ -206,30 +221,30 @@ const e = {
|
|
|
206
221
|
"eip155:4801": "eip155:4801",
|
|
207
222
|
"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
|
|
208
223
|
"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1"
|
|
209
|
-
},
|
|
224
|
+
}, q = {
|
|
210
225
|
exact: "exact",
|
|
211
226
|
upto: "upto",
|
|
212
227
|
"batch-settlement": "batch-settlement"
|
|
213
|
-
},
|
|
228
|
+
}, U = {
|
|
214
229
|
base: "base",
|
|
215
230
|
"base-sepolia": "base-sepolia",
|
|
216
231
|
solana: "solana",
|
|
217
232
|
"solana-devnet": "solana-devnet"
|
|
218
|
-
},
|
|
233
|
+
}, D = {
|
|
219
234
|
exact: "exact"
|
|
220
|
-
},
|
|
235
|
+
}, B = {
|
|
221
236
|
deposit: "deposit"
|
|
222
|
-
},
|
|
237
|
+
}, M = {
|
|
223
238
|
voucher: "voucher"
|
|
224
|
-
},
|
|
239
|
+
}, I = {
|
|
225
240
|
refund: "refund"
|
|
226
|
-
},
|
|
241
|
+
}, C = {
|
|
227
242
|
claim: "claim"
|
|
228
|
-
},
|
|
243
|
+
}, L = {
|
|
229
244
|
settle: "settle"
|
|
230
|
-
},
|
|
245
|
+
}, F = {
|
|
231
246
|
exact: "exact"
|
|
232
|
-
},
|
|
247
|
+
}, Y = {
|
|
233
248
|
base: "base",
|
|
234
249
|
ethereum: "ethereum",
|
|
235
250
|
solana: "solana",
|
|
@@ -240,39 +255,39 @@ const e = {
|
|
|
240
255
|
polygon: "polygon",
|
|
241
256
|
world: "world",
|
|
242
257
|
"world-sepolia": "world-sepolia"
|
|
243
|
-
},
|
|
258
|
+
}, z = {
|
|
244
259
|
FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK",
|
|
245
260
|
FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE"
|
|
246
|
-
},
|
|
261
|
+
}, W = {
|
|
247
262
|
ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH",
|
|
248
263
|
ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT",
|
|
249
264
|
ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING",
|
|
250
265
|
ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED",
|
|
251
266
|
ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED"
|
|
252
|
-
},
|
|
267
|
+
}, X = {
|
|
253
268
|
totp: "totp",
|
|
254
269
|
sms: "sms",
|
|
255
270
|
passkey: "passkey"
|
|
256
|
-
},
|
|
271
|
+
}, G = {
|
|
257
272
|
totp: "totp"
|
|
258
|
-
},
|
|
273
|
+
}, V = {
|
|
259
274
|
sms: "sms"
|
|
260
|
-
},
|
|
275
|
+
}, H = {
|
|
261
276
|
passkey: "passkey"
|
|
262
|
-
},
|
|
277
|
+
}, K = {
|
|
263
278
|
passkey: "passkey"
|
|
264
|
-
},
|
|
279
|
+
}, j = {
|
|
265
280
|
passkey: "passkey"
|
|
266
|
-
},
|
|
281
|
+
}, Z = {
|
|
267
282
|
CARD: "CARD",
|
|
268
283
|
ACH: "ACH",
|
|
269
284
|
APPLE_PAY: "APPLE_PAY",
|
|
270
285
|
PAYPAL: "PAYPAL",
|
|
271
286
|
FIAT_WALLET: "FIAT_WALLET",
|
|
272
287
|
CRYPTO_WALLET: "CRYPTO_WALLET"
|
|
273
|
-
},
|
|
288
|
+
}, J = {
|
|
274
289
|
refresh_token: "refresh_token"
|
|
275
|
-
},
|
|
290
|
+
}, Q = {
|
|
276
291
|
base: "base",
|
|
277
292
|
"base-sepolia": "base-sepolia",
|
|
278
293
|
ethereum: "ethereum",
|
|
@@ -284,7 +299,7 @@ const e = {
|
|
|
284
299
|
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
285
300
|
world: "world",
|
|
286
301
|
"world-sepolia": "world-sepolia"
|
|
287
|
-
},
|
|
302
|
+
}, $ = {
|
|
288
303
|
base: "base",
|
|
289
304
|
"base-sepolia": "base-sepolia",
|
|
290
305
|
ethereum: "ethereum",
|
|
@@ -296,73 +311,79 @@ const e = {
|
|
|
296
311
|
"arbitrum-sepolia": "arbitrum-sepolia",
|
|
297
312
|
world: "world",
|
|
298
313
|
"world-sepolia": "world-sepolia"
|
|
299
|
-
},
|
|
314
|
+
}, ee = {
|
|
300
315
|
solana: "solana",
|
|
301
316
|
"solana-devnet": "solana-devnet"
|
|
302
|
-
},
|
|
317
|
+
}, te = {
|
|
303
318
|
solana: "solana",
|
|
304
319
|
"solana-devnet": "solana-devnet"
|
|
305
|
-
},
|
|
320
|
+
}, ae = {
|
|
306
321
|
segwit: "segwit"
|
|
307
|
-
},
|
|
322
|
+
}, oe = {
|
|
308
323
|
bitcoin: "bitcoin",
|
|
309
324
|
"bitcoin-testnet": "bitcoin-testnet"
|
|
310
|
-
},
|
|
325
|
+
}, ie = {
|
|
311
326
|
NUMBER_0: 0,
|
|
312
327
|
NUMBER_1: 1
|
|
313
328
|
};
|
|
314
329
|
export {
|
|
330
|
+
A as BorrowPositionHealthStatus,
|
|
331
|
+
w as BorrowProductAssetCapabilityType,
|
|
332
|
+
P as BorrowProductNetwork,
|
|
333
|
+
R as BorrowProductProtocol,
|
|
315
334
|
a as CapabilityName,
|
|
316
|
-
|
|
317
|
-
|
|
335
|
+
ae as CreateEndUserBtcAccountBodyAddressType,
|
|
336
|
+
oe as CreateEndUserBtcAccountBodyNetwork,
|
|
318
337
|
c as DeveloperJWTAuthenticationType,
|
|
319
338
|
l as EmailAuthenticationType,
|
|
320
339
|
m as EndUserBtcAccountAddressType,
|
|
321
340
|
y as EndUserBtcAccountNetwork,
|
|
322
|
-
|
|
323
|
-
|
|
341
|
+
z as EndUserOnrampFeeType,
|
|
342
|
+
W as EndUserOnrampOrderStatus,
|
|
324
343
|
t as ErrorType,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
344
|
+
v as EvmEip7702DelegationNetwork,
|
|
345
|
+
E as EvmEip7702DelegationOperationStatus,
|
|
346
|
+
x as EvmSwapsNetwork,
|
|
328
347
|
b as EvmUserOperationNetwork,
|
|
329
348
|
g as EvmUserOperationStatus,
|
|
330
349
|
s as InitiateEmailAuthenticationNextStepType,
|
|
331
|
-
|
|
332
|
-
|
|
350
|
+
i as InitiateEmailAuthenticationRequestType,
|
|
351
|
+
H as InitiatePasskeyMfaEnrollmentType,
|
|
333
352
|
r as InitiateSiweAuthenticationRequestType,
|
|
334
353
|
_ as InitiateSmsAuthenticationNextStepType,
|
|
335
354
|
n as InitiateSmsAuthenticationRequestType,
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
355
|
+
V as InitiateSmsMfaEnrollmentType,
|
|
356
|
+
G as InitiateTotpMfaEnrollmentType,
|
|
357
|
+
o as IosAttestationRegistrationResponsePlatform,
|
|
358
|
+
X as MfaMethod,
|
|
359
|
+
S as MorphoBlueOnchainStateType,
|
|
360
|
+
N as MorphoBlueProtocolDetailsType,
|
|
361
|
+
Y as Network,
|
|
341
362
|
e as OAuth2ProviderType,
|
|
342
|
-
|
|
363
|
+
Z as OnrampQuotePaymentMethodTypeId,
|
|
343
364
|
f as OtpEmailLogoStatus,
|
|
344
365
|
u as PasskeySummaryTransportsItem,
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
366
|
+
h as PasskeyUserVerification,
|
|
367
|
+
J as RefreshAccessTokenBodyGrantType,
|
|
368
|
+
$ as SendEvmAssetWithEndUserAccountBodyNetwork,
|
|
369
|
+
Q as SendEvmTransactionWithEndUserAccountBodyNetwork,
|
|
370
|
+
te as SendSolanaAssetWithEndUserAccountBodyNetwork,
|
|
371
|
+
ee as SendSolanaTransactionWithEndUserAccountBodyNetwork,
|
|
372
|
+
ie as SignBtcHashWithEndUserAccountBodyChange,
|
|
352
373
|
p as SiweAuthenticationType,
|
|
353
374
|
d as SmsAuthenticationType,
|
|
354
375
|
T as SpendPermissionNetwork,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
376
|
+
K as SubmitPasskeyRegistrationType,
|
|
377
|
+
j as SubmitPasskeyVerificationType,
|
|
378
|
+
C as X402BatchSettlementClaimPayloadType,
|
|
379
|
+
B as X402BatchSettlementDepositPayloadType,
|
|
380
|
+
I as X402BatchSettlementRefundPayloadType,
|
|
381
|
+
L as X402BatchSettlementSettlePayloadType,
|
|
382
|
+
M as X402BatchSettlementVoucherPayloadType,
|
|
383
|
+
U as X402V1Network,
|
|
384
|
+
F as X402V1PaymentPayloadScheme,
|
|
385
|
+
D as X402V1PaymentRequirementsScheme,
|
|
386
|
+
O as X402V2Network,
|
|
387
|
+
q as X402V2PaymentRequirementsScheme,
|
|
388
|
+
k as X402Version
|
|
368
389
|
};
|