@ocap/client 1.21.2 → 1.22.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/lib/node.d.ts CHANGED
@@ -75,6 +75,7 @@ declare class GraphQLClient {
75
75
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>,
76
76
  extra?: any
77
77
  ): Promise<string>;
78
+ sendBurnTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>, extra?: any): Promise<string>;
78
79
  sendClaimBlockRewardTx(
79
80
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>,
80
81
  extra?: any
@@ -104,6 +105,10 @@ declare class GraphQLClient {
104
105
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>,
105
106
  extra?: any
106
107
  ): Promise<string>;
108
+ sendCreateTokenFactoryTx(
109
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenFactoryTx>>,
110
+ extra?: any
111
+ ): Promise<string>;
107
112
  sendCreateTokenTx(
108
113
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>,
109
114
  extra?: any
@@ -125,6 +130,7 @@ declare class GraphQLClient {
125
130
  extra?: any
126
131
  ): Promise<string>;
127
132
  sendMintAssetTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>, extra?: any): Promise<string>;
133
+ sendMintTokenTx(param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>, extra?: any): Promise<string>;
128
134
  sendPauseRollupTx(
129
135
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>,
130
136
  extra?: any
@@ -158,6 +164,10 @@ declare class GraphQLClient {
158
164
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>,
159
165
  extra?: any
160
166
  ): Promise<string>;
167
+ sendUpdateTokenFactoryTx(
168
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateTokenFactoryTx>>,
169
+ extra?: any
170
+ ): Promise<string>;
161
171
  sendUpgradeNodeTx(
162
172
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>,
163
173
  extra?: any
@@ -175,6 +185,9 @@ declare class GraphQLClient {
175
185
  encodeAcquireAssetV3Tx(
176
186
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>
177
187
  ): Promise<GraphQLClient.EncodeTxResult>;
188
+ encodeBurnTokenTx(
189
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>
190
+ ): Promise<GraphQLClient.EncodeTxResult>;
178
191
  encodeClaimBlockRewardTx(
179
192
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>
180
193
  ): Promise<GraphQLClient.EncodeTxResult>;
@@ -199,6 +212,9 @@ declare class GraphQLClient {
199
212
  encodeCreateRollupTx(
200
213
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>
201
214
  ): Promise<GraphQLClient.EncodeTxResult>;
215
+ encodeCreateTokenFactoryTx(
216
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenFactoryTx>>
217
+ ): Promise<GraphQLClient.EncodeTxResult>;
202
218
  encodeCreateTokenTx(
203
219
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>
204
220
  ): Promise<GraphQLClient.EncodeTxResult>;
@@ -226,6 +242,9 @@ declare class GraphQLClient {
226
242
  encodeMintAssetTx(
227
243
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>
228
244
  ): Promise<GraphQLClient.EncodeTxResult>;
245
+ encodeMintTokenTx(
246
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>
247
+ ): Promise<GraphQLClient.EncodeTxResult>;
229
248
  encodePauseRollupTx(
230
249
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>
231
250
  ): Promise<GraphQLClient.EncodeTxResult>;
@@ -262,6 +281,9 @@ declare class GraphQLClient {
262
281
  encodeUpdateRollupTx(
263
282
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>
264
283
  ): Promise<GraphQLClient.EncodeTxResult>;
284
+ encodeUpdateTokenFactoryTx(
285
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateTokenFactoryTx>>
286
+ ): Promise<GraphQLClient.EncodeTxResult>;
265
287
  encodeUpgradeNodeTx(
266
288
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>
267
289
  ): Promise<GraphQLClient.EncodeTxResult>;
@@ -277,6 +299,9 @@ declare class GraphQLClient {
277
299
  signAcquireAssetV3Tx(
278
300
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.AcquireAssetV3Tx>>
279
301
  ): Promise<GraphQLClient.Transaction>;
302
+ signBurnTokenTx(
303
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.BurnTokenTx>>
304
+ ): Promise<GraphQLClient.Transaction>;
280
305
  signClaimBlockRewardTx(
281
306
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.ClaimBlockRewardTx>>
282
307
  ): Promise<GraphQLClient.Transaction>;
@@ -301,6 +326,9 @@ declare class GraphQLClient {
301
326
  signCreateRollupTx(
302
327
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateRollupTx>>
303
328
  ): Promise<GraphQLClient.Transaction>;
329
+ signCreateTokenFactoryTx(
330
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenFactoryTx>>
331
+ ): Promise<GraphQLClient.Transaction>;
304
332
  signCreateTokenTx(
305
333
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.CreateTokenTx>>
306
334
  ): Promise<GraphQLClient.Transaction>;
@@ -328,6 +356,9 @@ declare class GraphQLClient {
328
356
  signMintAssetTx(
329
357
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintAssetTx>>
330
358
  ): Promise<GraphQLClient.Transaction>;
359
+ signMintTokenTx(
360
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.MintTokenTx>>
361
+ ): Promise<GraphQLClient.Transaction>;
331
362
  signPauseRollupTx(
332
363
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.PauseRollupTx>>
333
364
  ): Promise<GraphQLClient.Transaction>;
@@ -362,6 +393,9 @@ declare class GraphQLClient {
362
393
  signUpdateRollupTx(
363
394
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateRollupTx>>
364
395
  ): Promise<GraphQLClient.Transaction>;
396
+ signUpdateTokenFactoryTx(
397
+ param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpdateTokenFactoryTx>>
398
+ ): Promise<GraphQLClient.Transaction>;
365
399
  signUpgradeNodeTx(
366
400
  param: GraphQLClient.TxParam<PartialDeep<GraphQLClient.UpgradeNodeTx>>
367
401
  ): Promise<GraphQLClient.Transaction>;
@@ -434,6 +468,9 @@ declare class GraphQLClient {
434
468
  params: PartialDeep<GraphQLClient.GetEvidenceStateParams>
435
469
  ): Promise<GraphQLClient.ResponseGetEvidenceState>;
436
470
  getForgeState(params: PartialDeep<GraphQLClient.GetForgeStateParams>): Promise<GraphQLClient.ResponseGetForgeState>;
471
+ getTokenFactoryState(
472
+ params: PartialDeep<GraphQLClient.GetTokenFactoryStateParams>
473
+ ): Promise<GraphQLClient.ResponseGetTokenFactoryState>;
437
474
  getTx(params: PartialDeep<GraphQLClient.GetTxParams>): Promise<GraphQLClient.ResponseGetTx>;
438
475
  getBlock(params: PartialDeep<GraphQLClient.GetBlockParams>): Promise<GraphQLClient.ResponseGetBlock>;
439
476
  getBlocks(params: PartialDeep<GraphQLClient.GetBlocksParams>): Promise<GraphQLClient.ResponseGetBlocks>;
@@ -491,6 +528,9 @@ declare class GraphQLClient {
491
528
  getTokenDistribution(
492
529
  params: PartialDeep<GraphQLClient.GetTokenDistributionParams>
493
530
  ): Promise<GraphQLClient.ResponseGetTokenDistribution>;
531
+ listTokenFactories(
532
+ params: PartialDeep<GraphQLClient.ListTokenFactoriesParams>
533
+ ): Promise<GraphQLClient.ResponseListTokenFactories>;
494
534
  sendTx(params: PartialDeep<GraphQLClient.SendTxParams>): Promise<GraphQLClient.ResponseSendTx>;
495
535
  }
496
536
 
@@ -888,6 +928,7 @@ declare namespace GraphQLClient {
888
928
  rollupFilter: GraphQLClient.RollupFilterInput;
889
929
  stakeFilter: GraphQLClient.StakeFilterInput;
890
930
  delegationFilter: GraphQLClient.DelegationFilterInput;
931
+ tokenFactoryFilter: GraphQLClient.TokenFactoryFilterInput;
891
932
  }
892
933
 
893
934
  interface RequestSearchInput {
@@ -922,6 +963,10 @@ declare namespace GraphQLClient {
922
963
  field: string;
923
964
  }
924
965
 
966
+ interface TokenFactoryFilterInput {
967
+ tokenFactories: string[];
968
+ }
969
+
925
970
  interface TokenFilterInput {
926
971
  tokens: string[];
927
972
  }
@@ -1277,6 +1322,14 @@ declare namespace GraphQLClient {
1277
1322
  data: GraphQLClient.Any;
1278
1323
  }
1279
1324
 
1325
+ interface CurveConfig {
1326
+ type: string;
1327
+ basePrice: string;
1328
+ fixedPrice: string;
1329
+ slope: string;
1330
+ constant: number;
1331
+ }
1332
+
1280
1333
  interface DelegateConfig {
1281
1334
  deltaInterval: number;
1282
1335
  typeUrls: string[];
@@ -1633,6 +1686,23 @@ declare namespace GraphQLClient {
1633
1686
  data: GraphQLClient.Any;
1634
1687
  }
1635
1688
 
1689
+ interface IndexedTokenFactoryState {
1690
+ address: string;
1691
+ owner: string;
1692
+ tokenAddress: string;
1693
+ reserveAddress: string;
1694
+ curve: GraphQLClient.CurveConfig;
1695
+ feeRate: number;
1696
+ currentSupply: string;
1697
+ reserveBalance: string;
1698
+ status: string;
1699
+ genesisTime: string;
1700
+ renaissanceTime: string;
1701
+ token: GraphQLClient.IndexedTokenInput;
1702
+ reserveToken: GraphQLClient.IndexedTokenInput;
1703
+ data: GraphQLClient.Any;
1704
+ }
1705
+
1636
1706
  interface IndexedTokenFlow {
1637
1707
  value: string;
1638
1708
  hash: string;
@@ -1661,6 +1731,7 @@ declare namespace GraphQLClient {
1661
1731
  genesisTime: string;
1662
1732
  renaissanceTime: string;
1663
1733
  foreignToken: GraphQLClient.ForeignToken;
1734
+ tokenFactoryAddress: string;
1664
1735
  data: GraphQLClient.Any;
1665
1736
  }
1666
1737
 
@@ -1908,6 +1979,11 @@ declare namespace GraphQLClient {
1908
1979
  data: GraphQLClient.TokenDistribution;
1909
1980
  }
1910
1981
 
1982
+ interface ResponseGetTokenFactoryState {
1983
+ code: string;
1984
+ state: GraphQLClient.TokenFactoryState;
1985
+ }
1986
+
1911
1987
  interface ResponseGetTokenState {
1912
1988
  code: string;
1913
1989
  state: GraphQLClient.TokenState;
@@ -1983,6 +2059,12 @@ declare namespace GraphQLClient {
1983
2059
  stakes: GraphQLClient.IndexedStakeState[];
1984
2060
  }
1985
2061
 
2062
+ interface ResponseListTokenFactories {
2063
+ code: string;
2064
+ page: GraphQLClient.PageInfo;
2065
+ tokenFactories: GraphQLClient.IndexedTokenFactoryState[];
2066
+ }
2067
+
1986
2068
  interface ResponseListTokenFlows {
1987
2069
  code: string;
1988
2070
  page: GraphQLClient.PageInfo;
@@ -2178,6 +2260,20 @@ declare namespace GraphQLClient {
2178
2260
  gasStake: string;
2179
2261
  }
2180
2262
 
2263
+ interface TokenFactoryState {
2264
+ address: string;
2265
+ tokenAddress: string;
2266
+ reserveAddress: string;
2267
+ currentSupply: string;
2268
+ reserveBalance: string;
2269
+ feeRate: number;
2270
+ curve: GraphQLClient.CurveConfig;
2271
+ context: GraphQLClient.StateContext;
2272
+ token: GraphQLClient.TokenState;
2273
+ reserveToken: GraphQLClient.TokenState;
2274
+ data: GraphQLClient.Any;
2275
+ }
2276
+
2181
2277
  interface TokenInfo {
2182
2278
  address: string;
2183
2279
  balance: string;
@@ -2217,6 +2313,7 @@ declare namespace GraphQLClient {
2217
2313
  icon: string;
2218
2314
  totalSupply: string;
2219
2315
  foreignToken: GraphQLClient.ForeignToken;
2316
+ tokenFactoryAddress: string;
2220
2317
  context: GraphQLClient.StateContext;
2221
2318
  data: GraphQLClient.Any;
2222
2319
  }
@@ -2480,6 +2577,10 @@ declare namespace GraphQLClient {
2480
2577
  keys: string[];
2481
2578
  }
2482
2579
 
2580
+ interface GetTokenFactoryStateParams {
2581
+ address: string;
2582
+ }
2583
+
2483
2584
  interface GetTxParams {
2484
2585
  hash: string;
2485
2586
  }
@@ -2543,6 +2644,7 @@ declare namespace GraphQLClient {
2543
2644
  rollupFilter: GraphQLClient.RollupFilterInput;
2544
2645
  stakeFilter: GraphQLClient.StakeFilterInput;
2545
2646
  delegationFilter: GraphQLClient.DelegationFilterInput;
2647
+ tokenFactoryFilter: GraphQLClient.TokenFactoryFilterInput;
2546
2648
  }
2547
2649
 
2548
2650
  interface ListTokensParams {
@@ -2645,6 +2747,14 @@ declare namespace GraphQLClient {
2645
2747
  tokenAddress: string;
2646
2748
  }
2647
2749
 
2750
+ interface ListTokenFactoriesParams {
2751
+ tokenAddress: string;
2752
+ reserveAddress: string;
2753
+ owner: string;
2754
+ paging: GraphQLClient.PageInput;
2755
+ timeFilter: GraphQLClient.TimeFilterInput;
2756
+ }
2757
+
2648
2758
  interface SendTxParams {
2649
2759
  commit: boolean;
2650
2760
  token: string;