@0xsequence/api 3.0.0-beta.9 → 3.0.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.
@@ -1,5 +1,5 @@
1
1
 
2
- 
3
- > @0xsequence/api@3.0.0-beta.9 build /Users/taylan/Development/Horizon/sequence.js/packages/services/api
2
+
3
+ > @0xsequence/api@3.0.0 build /home/taylan/development/sequence/sequence.js/packages/services/api
4
4
  > tsc
5
5
 
@@ -0,0 +1,4 @@
1
+
2
+ > @0xsequence/api@3.0.0 lint /home/taylan/development/sequence/sequence.js/packages/services/api
3
+ > eslint . --max-warnings 0
4
+
@@ -0,0 +1,5 @@
1
+
2
+ > @0xsequence/api@3.0.0 test /home/taylan/development/sequence/sequence.js/packages/services/api
3
+ > echo
4
+
5
+
@@ -0,0 +1,4 @@
1
+
2
+ > @0xsequence/api@3.0.0 typecheck /home/taylan/development/sequence/sequence.js/packages/services/api
3
+ > tsc --noEmit
4
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,90 @@
1
1
  # @0xsequence/api
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - f68be62: ethauth support
8
+ - 49d8a2f: New chains, minor fixes
9
+ - 3411232: Beta release with dapp connector fixes
10
+ - 23cb9e9: New chains, relayer rpc fix
11
+ - f5f6a7a: dapp-client updates
12
+ - e7de3b1: Fix signer 404 error, minor fixes
13
+ - 493836f: multicall3 optimization
14
+ - 30e1f1a: 3.0.0 beta
15
+ - d5017e8: Beta release for v3
16
+ - 24a5fab: Final RC before 3.0.0
17
+ - e5e1a03: Apple auth fixes
18
+ - 0b63113: Apple auth fix
19
+ - a89134a: Userdata service updates
20
+ - 7c6c811: 3.0.0-beta.3 with fixes
21
+ - 3.0.0 release
22
+ - 98ce38b: 3.0.0-beta.2 with identity instrument updates
23
+ - 747e6b5: Relayer fee options fix
24
+ - 40c19ff: dapp client updates for EOA login
25
+ - 6d5de25: 3.0.0-beta.1
26
+ - 934acd1: RC5 upgrade
27
+
28
+ ## 3.0.0-beta.19
29
+
30
+ ### Patch Changes
31
+
32
+ - Final RC before 3.0.0
33
+
34
+ ## 3.0.0-beta.18
35
+
36
+ ### Patch Changes
37
+
38
+ - multicall3 optimization
39
+
40
+ ## 3.0.0-beta.17
41
+
42
+ ### Patch Changes
43
+
44
+ - New chains, relayer rpc fix
45
+
46
+ ## 3.0.0-beta.16
47
+
48
+ ### Patch Changes
49
+
50
+ - ethauth support
51
+
52
+ ## 3.0.0-beta.15
53
+
54
+ ### Patch Changes
55
+
56
+ - New chains, minor fixes
57
+
58
+ ## 3.0.0-beta.14
59
+
60
+ ### Patch Changes
61
+
62
+ - Relayer fee options fix
63
+
64
+ ## 3.0.0-beta.13
65
+
66
+ ### Patch Changes
67
+
68
+ - Userdata service updates
69
+
70
+ ## 3.0.0-beta.12
71
+
72
+ ### Patch Changes
73
+
74
+ - Beta release with dapp connector fixes
75
+
76
+ ## 3.0.0-beta.11
77
+
78
+ ### Patch Changes
79
+
80
+ - 3.0.0 beta
81
+
82
+ ## 3.0.0-beta.10
83
+
84
+ ### Patch Changes
85
+
86
+ - dapp-client updates
87
+
3
88
  ## 3.0.0-beta.9
4
89
 
5
90
  ### Patch Changes
package/dist/api.gen.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export declare const WebrpcVersion = "v1";
2
2
  export declare const WebrpcSchemaVersion = "v0.4.0";
3
- export declare const WebrpcSchemaHash = "d7026da603b2c29baf21c6aceeebc86eada372d8";
3
+ export declare const WebrpcSchemaHash = "3c15fa79614e43a5321cd2ac0c080e80af291bd1";
4
4
  export interface APIClient {
5
5
  /**
6
6
  *
@@ -148,14 +148,6 @@ export interface APIClient {
148
148
  */
149
149
  getLifiSwapRoutes(req: GetLifiSwapRoutesRequest, headers?: object, signal?: AbortSignal): Promise<GetLifiSwapRoutesResponse>;
150
150
  getLifiSwapQuote(req: GetLifiSwapQuoteRequest, headers?: object, signal?: AbortSignal): Promise<GetLifiSwapQuoteResponse>;
151
- /**
152
- *
153
- * Chain abstraction
154
- *
155
- */
156
- getIntentCallsPayloads(req: GetIntentCallsPayloadsRequest, headers?: object, signal?: AbortSignal): Promise<GetIntentCallsPayloadsResponse>;
157
- commitIntentConfig(req: CommitIntentConfigRequest, headers?: object, signal?: AbortSignal): Promise<CommitIntentConfigResponse>;
158
- getIntentConfig(req: GetIntentConfigRequest, headers?: object, signal?: AbortSignal): Promise<GetIntentConfigResponse>;
159
151
  /**
160
152
  *
161
153
  * Inventory, payments and management
@@ -185,22 +177,6 @@ export interface APIClient {
185
177
  checkoutOptionsGetTransakContractID(req: CheckoutOptionsGetTransakContractIDRequest, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsGetTransakContractIDResponse>;
186
178
  fortePayCreateIntent(req: FortePayCreateIntentRequest, headers?: object, signal?: AbortSignal): Promise<FortePayCreateIntentResponse>;
187
179
  fortePayGetPaymentStatuses(req: FortePayGetPaymentStatusesRequest, headers?: object, signal?: AbortSignal): Promise<FortePayGetPaymentStatusesResponse>;
188
- /**
189
- *
190
- * CCTP
191
- *
192
- */
193
- getCCTPTransfer(req: GetCCTPTransferRequest, headers?: object, signal?: AbortSignal): Promise<GetCCTPTransferResponse>;
194
- queueCCTPTransfer(req: QueueCCTPTransferRequest, headers?: object, signal?: AbortSignal): Promise<QueueCCTPTransferResponse>;
195
- /**
196
- *
197
- * Intent Machine Worker
198
- *
199
- */
200
- queueIntentConfigExecution(req: QueueIntentConfigExecutionRequest, headers?: object, signal?: AbortSignal): Promise<QueueIntentConfigExecutionResponse>;
201
- getIntentConfigExecutionStatus(req: GetIntentConfigExecutionStatusRequest, headers?: object, signal?: AbortSignal): Promise<GetIntentConfigExecutionStatusResponse>;
202
- listIntentConfigs(req: ListIntentConfigsRequest, headers?: object, signal?: AbortSignal): Promise<ListIntentConfigsResponse>;
203
- queueMetaTxnReceipt(req: QueueMetaTxnReceiptRequest, headers?: object, signal?: AbortSignal): Promise<QueueMetaTxnReceiptResponse>;
204
180
  }
205
181
  export declare enum SortOrder {
206
182
  DESC = "DESC",
@@ -315,35 +291,6 @@ export interface MetaTxn {
315
291
  contract: string;
316
292
  input: string;
317
293
  }
318
- export interface Call {
319
- to: string;
320
- value?: string;
321
- data?: string;
322
- gasLimit?: string;
323
- delegateCall?: boolean;
324
- onlyFallback?: boolean;
325
- behaviorOnError?: number;
326
- }
327
- export interface IntentCallsPayload {
328
- chainId: string;
329
- space?: string;
330
- nonce?: string;
331
- calls: Array<Call>;
332
- }
333
- export interface IntentConfig {
334
- id: number;
335
- configHash: string;
336
- originIntentAddress: string;
337
- destinationIntentAddress: string;
338
- mainSigner: string;
339
- calls: Array<IntentCallsPayload>;
340
- preconditions: Array<IntentPrecondition>;
341
- executionStatus?: string;
342
- metaTxnId?: string;
343
- txnHash?: string;
344
- updatedAt?: string;
345
- createdAt?: string;
346
- }
347
294
  export interface MetaTxnReceipt {
348
295
  metaTxID: string;
349
296
  status: string;
@@ -377,26 +324,6 @@ export interface TupleComponent {
377
324
  type: string;
378
325
  value: any;
379
326
  }
380
- export interface AddressOverrides {
381
- trailsLiFiSapientSignerAddress?: string;
382
- trailsRelaySapientSignerAddress?: string;
383
- trailsCCTPV2SapientSignerAddress?: string;
384
- }
385
- export interface TakerFee {
386
- address: string;
387
- bps: number;
388
- }
389
- export interface OriginCall {
390
- chainId: number;
391
- to: string;
392
- transactionData: string;
393
- transactionValue: string;
394
- }
395
- export interface IntentPrecondition {
396
- type: string;
397
- chainId: string;
398
- data: any;
399
- }
400
327
  export interface UserStorage {
401
328
  userAddress: string;
402
329
  key: string;
@@ -520,17 +447,6 @@ export interface OffchainInventory {
520
447
  createdAt: string;
521
448
  deletedAt?: string;
522
449
  }
523
- export interface CCTPTransfer {
524
- id: string;
525
- sourceTxHash: string;
526
- sourceChainId: number;
527
- destinationChainId: number;
528
- message: string;
529
- attestation: string;
530
- status: string;
531
- createdAt: string;
532
- updatedAt: string;
533
- }
534
450
  export interface OffchainPayment {
535
451
  id: number;
536
452
  offchainInventoryId: number;
@@ -844,33 +760,6 @@ export interface ChainExecuteQuote {
844
760
  export interface ExecuteQuote {
845
761
  chainQuotes: Array<ChainExecuteQuote>;
846
762
  }
847
- export interface TrailsFee {
848
- executeQuote: ExecuteQuote;
849
- crossChainFee?: CrossChainFee;
850
- takerFeeAmount?: string;
851
- takerFeeUSD?: number;
852
- trailsFixedFeeUSD: number;
853
- feeToken?: string;
854
- originTokenTotalAmount?: string;
855
- totalFeeAmount?: string;
856
- totalFeeUSD?: string;
857
- quoteProvider?: string;
858
- }
859
- export interface IntentQuote {
860
- fromAmount: string;
861
- fromAmountMin: string;
862
- toAmount: string;
863
- toAmountMin: string;
864
- priceImpact: number;
865
- priceImpactUsd: string;
866
- maxSlippage: number;
867
- quoteProvider: string;
868
- quoteProviderRequestId: string;
869
- quoteProviderFeeUsd: string;
870
- feeQuotes: {
871
- [key: string]: string;
872
- };
873
- }
874
763
  export interface PingRequest {
875
764
  }
876
765
  export interface PingResponse {
@@ -1257,10 +1146,6 @@ export interface GetLifiTokensResponse {
1257
1146
  }
1258
1147
  export interface GetLifiSwapRoutesRequest {
1259
1148
  params: GetLifiSwapRouteParams;
1260
- chainId: number;
1261
- toTokenAddress: string;
1262
- toTokenAmount: string;
1263
- walletAddress: string;
1264
1149
  }
1265
1150
  export interface GetLifiSwapRoutesResponse {
1266
1151
  routes: Array<LifiSwapRoute>;
@@ -1271,53 +1156,6 @@ export interface GetLifiSwapQuoteRequest {
1271
1156
  export interface GetLifiSwapQuoteResponse {
1272
1157
  quote: LifiSwapQuote;
1273
1158
  }
1274
- export interface GetIntentCallsPayloadsRequest {
1275
- userAddress: string;
1276
- destinationChainId: number;
1277
- destinationTokenAddress: string;
1278
- destinationTokenAmount: string;
1279
- destinationToAddress: string;
1280
- originChainId: number;
1281
- originTokenAddress: string;
1282
- originTokenAmount: string;
1283
- destinationCallData?: string;
1284
- destinationCallValue?: string;
1285
- provider?: string;
1286
- addressOverrides?: AddressOverrides;
1287
- destinationSalt?: string;
1288
- takerFee?: TakerFee;
1289
- slippageTolerance?: number;
1290
- tradeType?: TradeType;
1291
- }
1292
- export interface GetIntentCallsPayloadsResponse {
1293
- calls: Array<IntentCallsPayload>;
1294
- preconditions: Array<IntentPrecondition>;
1295
- metaTxns: Array<MetaTxn>;
1296
- trailsFee: TrailsFee;
1297
- quote: IntentQuote;
1298
- feeQuotes: {
1299
- [key: string]: string;
1300
- };
1301
- originIntentAddress: string;
1302
- destinationIntentAddress: string;
1303
- }
1304
- export interface CommitIntentConfigRequest {
1305
- originIntentAddress: string;
1306
- destinationIntentAddress: string;
1307
- mainSigner: string;
1308
- calls: Array<IntentCallsPayload>;
1309
- preconditions: Array<IntentPrecondition>;
1310
- addressOverrides?: AddressOverrides;
1311
- }
1312
- export interface CommitIntentConfigResponse {
1313
- config: IntentConfig;
1314
- }
1315
- export interface GetIntentConfigRequest {
1316
- intentAddress: string;
1317
- }
1318
- export interface GetIntentConfigResponse {
1319
- config: IntentConfig;
1320
- }
1321
1159
  export interface ListCurrencyGroupsRequest {
1322
1160
  }
1323
1161
  export interface ListCurrencyGroupsResponse {
@@ -1450,47 +1288,6 @@ export interface FortePayGetPaymentStatusesRequest {
1450
1288
  export interface FortePayGetPaymentStatusesResponse {
1451
1289
  statuses: Array<FortePaymentStatus>;
1452
1290
  }
1453
- export interface GetCCTPTransferRequest {
1454
- id: string;
1455
- }
1456
- export interface GetCCTPTransferResponse {
1457
- transfer: CCTPTransfer;
1458
- }
1459
- export interface QueueCCTPTransferRequest {
1460
- sourceTxHash?: string;
1461
- metaTxHash?: string;
1462
- sourceChainId: number;
1463
- destinationChainId: number;
1464
- }
1465
- export interface QueueCCTPTransferResponse {
1466
- transfer: CCTPTransfer;
1467
- }
1468
- export interface QueueIntentConfigExecutionRequest {
1469
- intentConfigId: number;
1470
- }
1471
- export interface QueueIntentConfigExecutionResponse {
1472
- status: boolean;
1473
- }
1474
- export interface GetIntentConfigExecutionStatusRequest {
1475
- intentConfigId: number;
1476
- }
1477
- export interface GetIntentConfigExecutionStatusResponse {
1478
- executionStatus: string;
1479
- }
1480
- export interface ListIntentConfigsRequest {
1481
- page?: Page;
1482
- executionStatus?: string;
1483
- }
1484
- export interface ListIntentConfigsResponse {
1485
- page: Page;
1486
- intentConfigs: Array<IntentConfig>;
1487
- }
1488
- export interface QueueMetaTxnReceiptRequest {
1489
- metaTxID: string;
1490
- }
1491
- export interface QueueMetaTxnReceiptResponse {
1492
- status: boolean;
1493
- }
1494
1291
  export declare class API implements APIClient {
1495
1292
  protected hostname: string;
1496
1293
  protected fetch: Fetch;
@@ -1555,9 +1352,6 @@ export declare class API implements APIClient {
1555
1352
  getLifiTokens: (req: GetLifiTokensRequest) => readonly ["API", "getLifiTokens", GetLifiTokensRequest];
1556
1353
  getLifiSwapRoutes: (req: GetLifiSwapRoutesRequest) => readonly ["API", "getLifiSwapRoutes", GetLifiSwapRoutesRequest];
1557
1354
  getLifiSwapQuote: (req: GetLifiSwapQuoteRequest) => readonly ["API", "getLifiSwapQuote", GetLifiSwapQuoteRequest];
1558
- getIntentCallsPayloads: (req: GetIntentCallsPayloadsRequest) => readonly ["API", "getIntentCallsPayloads", GetIntentCallsPayloadsRequest];
1559
- commitIntentConfig: (req: CommitIntentConfigRequest) => readonly ["API", "commitIntentConfig", CommitIntentConfigRequest];
1560
- getIntentConfig: (req: GetIntentConfigRequest) => readonly ["API", "getIntentConfig", GetIntentConfigRequest];
1561
1355
  listCurrencyGroups: () => readonly ["API", "listCurrencyGroups"];
1562
1356
  addOffchainInventory: (req: AddOffchainInventoryRequest) => readonly ["API", "addOffchainInventory", AddOffchainInventoryRequest];
1563
1357
  getOffchainInventory: (req: GetOffchainInventoryRequest) => readonly ["API", "getOffchainInventory", GetOffchainInventoryRequest];
@@ -1577,12 +1371,6 @@ export declare class API implements APIClient {
1577
1371
  checkoutOptionsGetTransakContractID: (req: CheckoutOptionsGetTransakContractIDRequest) => readonly ["API", "checkoutOptionsGetTransakContractID", CheckoutOptionsGetTransakContractIDRequest];
1578
1372
  fortePayCreateIntent: (req: FortePayCreateIntentRequest) => readonly ["API", "fortePayCreateIntent", FortePayCreateIntentRequest];
1579
1373
  fortePayGetPaymentStatuses: (req: FortePayGetPaymentStatusesRequest) => readonly ["API", "fortePayGetPaymentStatuses", FortePayGetPaymentStatusesRequest];
1580
- getCCTPTransfer: (req: GetCCTPTransferRequest) => readonly ["API", "getCCTPTransfer", GetCCTPTransferRequest];
1581
- queueCCTPTransfer: (req: QueueCCTPTransferRequest) => readonly ["API", "queueCCTPTransfer", QueueCCTPTransferRequest];
1582
- queueIntentConfigExecution: (req: QueueIntentConfigExecutionRequest) => readonly ["API", "queueIntentConfigExecution", QueueIntentConfigExecutionRequest];
1583
- getIntentConfigExecutionStatus: (req: GetIntentConfigExecutionStatusRequest) => readonly ["API", "getIntentConfigExecutionStatus", GetIntentConfigExecutionStatusRequest];
1584
- listIntentConfigs: (req: ListIntentConfigsRequest) => readonly ["API", "listIntentConfigs", ListIntentConfigsRequest];
1585
- queueMetaTxnReceipt: (req: QueueMetaTxnReceiptRequest) => readonly ["API", "queueMetaTxnReceipt", QueueMetaTxnReceiptRequest];
1586
1374
  };
1587
1375
  ping: (headers?: object, signal?: AbortSignal) => Promise<PingResponse>;
1588
1376
  version: (headers?: object, signal?: AbortSignal) => Promise<VersionResponse>;
@@ -1641,9 +1429,6 @@ export declare class API implements APIClient {
1641
1429
  getLifiTokens: (req: GetLifiTokensRequest, headers?: object, signal?: AbortSignal) => Promise<GetLifiTokensResponse>;
1642
1430
  getLifiSwapRoutes: (req: GetLifiSwapRoutesRequest, headers?: object, signal?: AbortSignal) => Promise<GetLifiSwapRoutesResponse>;
1643
1431
  getLifiSwapQuote: (req: GetLifiSwapQuoteRequest, headers?: object, signal?: AbortSignal) => Promise<GetLifiSwapQuoteResponse>;
1644
- getIntentCallsPayloads: (req: GetIntentCallsPayloadsRequest, headers?: object, signal?: AbortSignal) => Promise<GetIntentCallsPayloadsResponse>;
1645
- commitIntentConfig: (req: CommitIntentConfigRequest, headers?: object, signal?: AbortSignal) => Promise<CommitIntentConfigResponse>;
1646
- getIntentConfig: (req: GetIntentConfigRequest, headers?: object, signal?: AbortSignal) => Promise<GetIntentConfigResponse>;
1647
1432
  listCurrencyGroups: (headers?: object, signal?: AbortSignal) => Promise<ListCurrencyGroupsResponse>;
1648
1433
  addOffchainInventory: (req: AddOffchainInventoryRequest, headers?: object, signal?: AbortSignal) => Promise<AddOffchainInventoryResponse>;
1649
1434
  getOffchainInventory: (req: GetOffchainInventoryRequest, headers?: object, signal?: AbortSignal) => Promise<GetOffchainInventoryResponse>;
@@ -1663,12 +1448,6 @@ export declare class API implements APIClient {
1663
1448
  checkoutOptionsGetTransakContractID: (req: CheckoutOptionsGetTransakContractIDRequest, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsGetTransakContractIDResponse>;
1664
1449
  fortePayCreateIntent: (req: FortePayCreateIntentRequest, headers?: object, signal?: AbortSignal) => Promise<FortePayCreateIntentResponse>;
1665
1450
  fortePayGetPaymentStatuses: (req: FortePayGetPaymentStatusesRequest, headers?: object, signal?: AbortSignal) => Promise<FortePayGetPaymentStatusesResponse>;
1666
- getCCTPTransfer: (req: GetCCTPTransferRequest, headers?: object, signal?: AbortSignal) => Promise<GetCCTPTransferResponse>;
1667
- queueCCTPTransfer: (req: QueueCCTPTransferRequest, headers?: object, signal?: AbortSignal) => Promise<QueueCCTPTransferResponse>;
1668
- queueIntentConfigExecution: (req: QueueIntentConfigExecutionRequest, headers?: object, signal?: AbortSignal) => Promise<QueueIntentConfigExecutionResponse>;
1669
- getIntentConfigExecutionStatus: (req: GetIntentConfigExecutionStatusRequest, headers?: object, signal?: AbortSignal) => Promise<GetIntentConfigExecutionStatusResponse>;
1670
- listIntentConfigs: (req: ListIntentConfigsRequest, headers?: object, signal?: AbortSignal) => Promise<ListIntentConfigsResponse>;
1671
- queueMetaTxnReceipt: (req: QueueMetaTxnReceiptRequest, headers?: object, signal?: AbortSignal) => Promise<QueueMetaTxnReceiptResponse>;
1672
1451
  }
1673
1452
  export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
1674
1453
  export declare const JsonEncode: <T = any>(obj: T, _typ?: string) => string;