@ocap/client 1.31.0 → 1.31.2

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/lib/node.d.ts CHANGED
@@ -48,6 +48,32 @@ declare class GraphQLClient {
48
48
  to: WalletObject;
49
49
  }, extra?: any): Promise<string>;
50
50
 
51
+ // Bridge withdraw (#1465): transfer_v2 into the bridge reserve with a clear-signing envelope
52
+ buildBridgeWithdrawTx(params: {
53
+ wallet: WalletObject;
54
+ bridge: string;
55
+ amount: string | number | bigint;
56
+ ethRecipient: string;
57
+ token?: string;
58
+ signing?: 'eip712' | 'eip191' | 'raw';
59
+ nonce?: string | number;
60
+ chainId?: string;
61
+ domain?: { name?: string; version?: string };
62
+ }): Promise<{ tx: object; signature: string; extra: string }>;
63
+
64
+ bridgeWithdraw(params: {
65
+ wallet: WalletObject;
66
+ bridge: string;
67
+ amount: string | number | bigint;
68
+ ethRecipient: string;
69
+ token?: string;
70
+ signing?: 'eip712' | 'eip191' | 'raw';
71
+ nonce?: string | number;
72
+ chainId?: string;
73
+ domain?: { name?: string; version?: string };
74
+ commit?: boolean;
75
+ }, extra?: any): Promise<string>;
76
+
51
77
  delegate(params: {
52
78
  from: WalletObject;
53
79
  to: WalletObject;
@@ -353,6 +379,7 @@ sendCreateTokenFactoryTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.
353
379
  sendUpdateTokenFactoryTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateTokenFactoryTx>>, extra?: any): Promise<string>;
354
380
  sendMintTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>, extra?: any): Promise<string>;
355
381
  sendBurnTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>, extra?: any): Promise<string>;
382
+ sendReleaseBridgeTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ReleaseBridgeTokenTx>>, extra?: any): Promise<string>;
356
383
  encodeAccountMigrateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>): Promise<GraphQLClient.EncodeTxResult>;
357
384
  encodeDelegateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>): Promise<GraphQLClient.EncodeTxResult>;
358
385
  encodeRevokeDelegateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeDelegateTx>>): Promise<GraphQLClient.EncodeTxResult>;
@@ -391,6 +418,7 @@ encodeCreateTokenFactoryTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClien
391
418
  encodeUpdateTokenFactoryTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateTokenFactoryTx>>): Promise<GraphQLClient.EncodeTxResult>;
392
419
  encodeMintTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>): Promise<GraphQLClient.EncodeTxResult>;
393
420
  encodeBurnTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>): Promise<GraphQLClient.EncodeTxResult>;
421
+ encodeReleaseBridgeTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ReleaseBridgeTokenTx>>): Promise<GraphQLClient.EncodeTxResult>;
394
422
  signAccountMigrateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>): Promise<GraphQLClient.Transaction>;
395
423
  signDelegateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.DelegateTx>>): Promise<GraphQLClient.Transaction>;
396
424
  signRevokeDelegateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.RevokeDelegateTx>>): Promise<GraphQLClient.Transaction>;
@@ -429,6 +457,7 @@ signCreateTokenFactoryTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.
429
457
  signUpdateTokenFactoryTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateTokenFactoryTx>>): Promise<GraphQLClient.Transaction>;
430
458
  signMintTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>): Promise<GraphQLClient.Transaction>;
431
459
  signBurnTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>): Promise<GraphQLClient.Transaction>;
460
+ signReleaseBridgeTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ReleaseBridgeTokenTx>>): Promise<GraphQLClient.Transaction>;
432
461
  multiSignExchangeV2Tx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ExchangeV2Tx>>): Promise<GraphQLClient.Transaction>;
433
462
  multiSignAccountMigrateTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AccountMigrateTx>>): Promise<GraphQLClient.Transaction>;
434
463
  multiSignTransferV3Tx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.TransferV3Tx>>): Promise<GraphQLClient.Transaction>;
@@ -709,6 +738,7 @@ interface AddressFilterInput {
709
738
  sender: string;
710
739
  receiver: string;
711
740
  direction: GraphQLClient.Direction;
741
+ gasPayer: string;
712
742
  }
713
743
 
714
744
  interface AssetFilterInput {
@@ -946,6 +976,8 @@ interface TokenFilterInput {
946
976
 
947
977
  interface TxFilterInput {
948
978
  txs: string[];
979
+ gasPayer: string;
980
+ evidences: string[];
949
981
  }
950
982
 
951
983
  interface TypeFilterInput {
@@ -1757,6 +1789,7 @@ interface IndexedTransaction {
1757
1789
  code: string;
1758
1790
  tokenSymbols: GraphQLClient.TokenMeta[];
1759
1791
  receipts: GraphQLClient.TransactionReceipt[];
1792
+ gasPayer: string;
1760
1793
  }
1761
1794
 
1762
1795
  interface JoinRollupTx {
@@ -1797,7 +1830,7 @@ interface LedgerEntry {
1797
1830
  sequence: number;
1798
1831
  hash: string;
1799
1832
  from: string;
1800
- nonce: number;
1833
+ nonce: string;
1801
1834
  pk: string;
1802
1835
  signature: string;
1803
1836
  txRaw: string;
@@ -1942,6 +1975,21 @@ interface ReceiptChange {
1942
1975
  value: string;
1943
1976
  }
1944
1977
 
1978
+ interface ReleaseBridgeTokenTx {
1979
+ kind: number;
1980
+ evidence: string;
1981
+ ordinal: number;
1982
+ to: string;
1983
+ amount: string;
1984
+ ethChainId: string;
1985
+ epoch: number;
1986
+ ethSender: string;
1987
+ claimSignature: string;
1988
+ signatures: string[];
1989
+ bridge: string;
1990
+ data: GraphQLClient.Any;
1991
+ }
1992
+
1945
1993
  interface ResponseEstimateGas {
1946
1994
  code: string;
1947
1995
  estimate: GraphQLClient.GasEstimate;
@@ -2455,6 +2503,7 @@ interface Transaction {
2455
2503
  serviceFee: string;
2456
2504
  gasFee: string;
2457
2505
  gasPaid: string;
2506
+ gasPayer: string;
2458
2507
  }
2459
2508
 
2460
2509
  interface TransactionConfig {
@@ -2655,6 +2704,7 @@ interface VaultConfig {
2655
2704
  slashedStake: string;
2656
2705
  txFee: string;
2657
2706
  txGas: string[];
2707
+ bridgeReserve: string;
2658
2708
  }
2659
2709
 
2660
2710
  interface VerifyAccountRiskResult {
@@ -683,6 +683,16 @@
683
683
  "ofType": null
684
684
  },
685
685
  "defaultValue": null
686
+ },
687
+ {
688
+ "name": "gasPayer",
689
+ "description": null,
690
+ "type": {
691
+ "kind": "SCALAR",
692
+ "name": "String",
693
+ "ofType": null
694
+ },
695
+ "defaultValue": null
686
696
  }
687
697
  ],
688
698
  "interfaces": null,
@@ -8701,6 +8711,18 @@
8701
8711
  },
8702
8712
  "isDeprecated": false,
8703
8713
  "deprecationReason": null
8714
+ },
8715
+ {
8716
+ "name": "gasPayer",
8717
+ "description": null,
8718
+ "args": [],
8719
+ "type": {
8720
+ "kind": "SCALAR",
8721
+ "name": "String",
8722
+ "ofType": null
8723
+ },
8724
+ "isDeprecated": false,
8725
+ "deprecationReason": null
8704
8726
  }
8705
8727
  ],
8706
8728
  "inputFields": null,
@@ -10154,6 +10176,169 @@
10154
10176
  "enumValues": null,
10155
10177
  "possibleTypes": null
10156
10178
  },
10179
+ {
10180
+ "kind": "OBJECT",
10181
+ "name": "ReleaseBridgeTokenTx",
10182
+ "description": null,
10183
+ "fields": [
10184
+ {
10185
+ "name": "kind",
10186
+ "description": null,
10187
+ "args": [],
10188
+ "type": {
10189
+ "kind": "SCALAR",
10190
+ "name": "Int",
10191
+ "ofType": null
10192
+ },
10193
+ "isDeprecated": false,
10194
+ "deprecationReason": null
10195
+ },
10196
+ {
10197
+ "name": "evidence",
10198
+ "description": null,
10199
+ "args": [],
10200
+ "type": {
10201
+ "kind": "SCALAR",
10202
+ "name": "String",
10203
+ "ofType": null
10204
+ },
10205
+ "isDeprecated": false,
10206
+ "deprecationReason": null
10207
+ },
10208
+ {
10209
+ "name": "ordinal",
10210
+ "description": null,
10211
+ "args": [],
10212
+ "type": {
10213
+ "kind": "SCALAR",
10214
+ "name": "Int",
10215
+ "ofType": null
10216
+ },
10217
+ "isDeprecated": false,
10218
+ "deprecationReason": null
10219
+ },
10220
+ {
10221
+ "name": "to",
10222
+ "description": null,
10223
+ "args": [],
10224
+ "type": {
10225
+ "kind": "SCALAR",
10226
+ "name": "String",
10227
+ "ofType": null
10228
+ },
10229
+ "isDeprecated": false,
10230
+ "deprecationReason": null
10231
+ },
10232
+ {
10233
+ "name": "amount",
10234
+ "description": null,
10235
+ "args": [],
10236
+ "type": {
10237
+ "kind": "SCALAR",
10238
+ "name": "String",
10239
+ "ofType": null
10240
+ },
10241
+ "isDeprecated": false,
10242
+ "deprecationReason": null
10243
+ },
10244
+ {
10245
+ "name": "ethChainId",
10246
+ "description": null,
10247
+ "args": [],
10248
+ "type": {
10249
+ "kind": "SCALAR",
10250
+ "name": "String",
10251
+ "ofType": null
10252
+ },
10253
+ "isDeprecated": false,
10254
+ "deprecationReason": null
10255
+ },
10256
+ {
10257
+ "name": "epoch",
10258
+ "description": null,
10259
+ "args": [],
10260
+ "type": {
10261
+ "kind": "SCALAR",
10262
+ "name": "Int",
10263
+ "ofType": null
10264
+ },
10265
+ "isDeprecated": false,
10266
+ "deprecationReason": null
10267
+ },
10268
+ {
10269
+ "name": "ethSender",
10270
+ "description": null,
10271
+ "args": [],
10272
+ "type": {
10273
+ "kind": "SCALAR",
10274
+ "name": "String",
10275
+ "ofType": null
10276
+ },
10277
+ "isDeprecated": false,
10278
+ "deprecationReason": null
10279
+ },
10280
+ {
10281
+ "name": "claimSignature",
10282
+ "description": null,
10283
+ "args": [],
10284
+ "type": {
10285
+ "kind": "SCALAR",
10286
+ "name": "String",
10287
+ "ofType": null
10288
+ },
10289
+ "isDeprecated": false,
10290
+ "deprecationReason": null
10291
+ },
10292
+ {
10293
+ "name": "signatures",
10294
+ "description": null,
10295
+ "args": [],
10296
+ "type": {
10297
+ "kind": "LIST",
10298
+ "name": null,
10299
+ "ofType": {
10300
+ "kind": "NON_NULL",
10301
+ "name": null,
10302
+ "ofType": {
10303
+ "kind": "SCALAR",
10304
+ "name": "String",
10305
+ "ofType": null
10306
+ }
10307
+ }
10308
+ },
10309
+ "isDeprecated": false,
10310
+ "deprecationReason": null
10311
+ },
10312
+ {
10313
+ "name": "bridge",
10314
+ "description": null,
10315
+ "args": [],
10316
+ "type": {
10317
+ "kind": "SCALAR",
10318
+ "name": "String",
10319
+ "ofType": null
10320
+ },
10321
+ "isDeprecated": false,
10322
+ "deprecationReason": null
10323
+ },
10324
+ {
10325
+ "name": "data",
10326
+ "description": null,
10327
+ "args": [],
10328
+ "type": {
10329
+ "kind": "OBJECT",
10330
+ "name": "Any",
10331
+ "ofType": null
10332
+ },
10333
+ "isDeprecated": false,
10334
+ "deprecationReason": null
10335
+ }
10336
+ ],
10337
+ "inputFields": null,
10338
+ "interfaces": [],
10339
+ "enumValues": null,
10340
+ "possibleTypes": null
10341
+ },
10157
10342
  {
10158
10343
  "kind": "INPUT_OBJECT",
10159
10344
  "name": "RequestEstimateGasInput",
@@ -17443,6 +17628,34 @@
17443
17628
  }
17444
17629
  },
17445
17630
  "defaultValue": null
17631
+ },
17632
+ {
17633
+ "name": "gasPayer",
17634
+ "description": null,
17635
+ "type": {
17636
+ "kind": "SCALAR",
17637
+ "name": "String",
17638
+ "ofType": null
17639
+ },
17640
+ "defaultValue": null
17641
+ },
17642
+ {
17643
+ "name": "evidences",
17644
+ "description": null,
17645
+ "type": {
17646
+ "kind": "LIST",
17647
+ "name": null,
17648
+ "ofType": {
17649
+ "kind": "NON_NULL",
17650
+ "name": null,
17651
+ "ofType": {
17652
+ "kind": "SCALAR",
17653
+ "name": "String",
17654
+ "ofType": null
17655
+ }
17656
+ }
17657
+ },
17658
+ "defaultValue": null
17446
17659
  }
17447
17660
  ],
17448
17661
  "interfaces": null,
@@ -18761,6 +18974,18 @@
18761
18974
  },
18762
18975
  "isDeprecated": false,
18763
18976
  "deprecationReason": null
18977
+ },
18978
+ {
18979
+ "name": "bridgeReserve",
18980
+ "description": null,
18981
+ "args": [],
18982
+ "type": {
18983
+ "kind": "SCALAR",
18984
+ "name": "String",
18985
+ "ofType": null
18986
+ },
18987
+ "isDeprecated": false,
18988
+ "deprecationReason": null
18764
18989
  }
18765
18990
  ],
18766
18991
  "inputFields": null,
@@ -19414,6 +19639,18 @@
19414
19639
  },
19415
19640
  "isDeprecated": false,
19416
19641
  "deprecationReason": null
19642
+ },
19643
+ {
19644
+ "name": "gasPayer",
19645
+ "description": null,
19646
+ "args": [],
19647
+ "type": {
19648
+ "kind": "SCALAR",
19649
+ "name": "String",
19650
+ "ofType": null
19651
+ },
19652
+ "isDeprecated": false,
19653
+ "deprecationReason": null
19417
19654
  }
19418
19655
  ],
19419
19656
  "inputFields": null,
@@ -19670,7 +19907,7 @@
19670
19907
  "args": [],
19671
19908
  "type": {
19672
19909
  "kind": "SCALAR",
19673
- "name": "Int",
19910
+ "name": "String",
19674
19911
  "ofType": null
19675
19912
  },
19676
19913
  "isDeprecated": false,