@ocap/client 1.18.34 → 1.18.35
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/base.js +1 -1
- package/dist/browser.d.ts +41 -31
- package/dist/bundle.js +1 -1
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +186 -50
- package/dist/schema/graphql.txt +2 -2
- package/dist/types.js +84 -77
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +8 -0
- package/docs/README.md +118 -111
- package/lib/base.js +1 -1
- package/lib/node.d.ts +41 -31
- package/lib/schema/graphql.json +186 -50
- package/lib/schema/graphql.txt +2 -2
- package/lib/types.js +84 -77
- package/lib/types.js.map +1 -1
- package/package.json +12 -12
package/docs/QUERIES.md
CHANGED
|
@@ -2229,6 +2229,7 @@ No arguments
|
|
|
2229
2229
|
address
|
|
2230
2230
|
blockHash
|
|
2231
2231
|
blockHeight
|
|
2232
|
+
closed
|
|
2232
2233
|
contractAddress
|
|
2233
2234
|
depositFeeRate
|
|
2234
2235
|
issuer
|
|
@@ -2258,6 +2259,8 @@ No arguments
|
|
|
2258
2259
|
tokenAddress
|
|
2259
2260
|
totalDepositAmount
|
|
2260
2261
|
totalWithdrawAmount
|
|
2262
|
+
vaultAddress
|
|
2263
|
+
vaultHistory
|
|
2261
2264
|
withdrawFeeRate
|
|
2262
2265
|
context {
|
|
2263
2266
|
genesisTime
|
|
@@ -2426,6 +2429,7 @@ No arguments
|
|
|
2426
2429
|
address
|
|
2427
2430
|
blockHash
|
|
2428
2431
|
blockHeight
|
|
2432
|
+
closed
|
|
2429
2433
|
contractAddress
|
|
2430
2434
|
depositFeeRate
|
|
2431
2435
|
genesisTime
|
|
@@ -2457,6 +2461,8 @@ No arguments
|
|
|
2457
2461
|
tokenAddress
|
|
2458
2462
|
totalDepositAmount
|
|
2459
2463
|
totalWithdrawAmount
|
|
2464
|
+
vaultAddress
|
|
2465
|
+
vaultHistory
|
|
2460
2466
|
withdrawFeeRate
|
|
2461
2467
|
data {
|
|
2462
2468
|
typeUrl
|
|
@@ -2507,6 +2513,7 @@ No arguments
|
|
|
2507
2513
|
code
|
|
2508
2514
|
block {
|
|
2509
2515
|
burnedAmount
|
|
2516
|
+
governance
|
|
2510
2517
|
hash
|
|
2511
2518
|
height
|
|
2512
2519
|
merkleRoot
|
|
@@ -2663,6 +2670,7 @@ No arguments
|
|
|
2663
2670
|
blocks {
|
|
2664
2671
|
burnedAmount
|
|
2665
2672
|
genesisTime
|
|
2673
|
+
governance
|
|
2666
2674
|
hash
|
|
2667
2675
|
height
|
|
2668
2676
|
merkleRoot
|
package/docs/README.md
CHANGED
|
@@ -48,6 +48,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
|
|
|
48
48
|
* [sendAcquireAssetV3Tx(params, extra)](#GraphQLClient+sendAcquireAssetV3Tx) ⇒ `Promise.<string>`
|
|
49
49
|
* [sendClaimBlockRewardTx(params, extra)](#GraphQLClient+sendClaimBlockRewardTx) ⇒ `Promise.<string>`
|
|
50
50
|
* [sendClaimStakeTx(params, extra)](#GraphQLClient+sendClaimStakeTx) ⇒ `Promise.<string>`
|
|
51
|
+
* [sendCloseRollupTx(params, extra)](#GraphQLClient+sendCloseRollupTx) ⇒ `Promise.<string>`
|
|
51
52
|
* [sendCreateAssetTx(params, extra)](#GraphQLClient+sendCreateAssetTx) ⇒ `Promise.<string>`
|
|
52
53
|
* [sendCreateFactoryTx(params, extra)](#GraphQLClient+sendCreateFactoryTx) ⇒ `Promise.<string>`
|
|
53
54
|
* [sendCreateRollupBlockTx(params, extra)](#GraphQLClient+sendCreateRollupBlockTx) ⇒ `Promise.<string>`
|
|
@@ -60,8 +61,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
|
|
|
60
61
|
* [sendExchangeV2Tx(params, extra)](#GraphQLClient+sendExchangeV2Tx) ⇒ `Promise.<string>`
|
|
61
62
|
* [sendJoinRollupTx(params, extra)](#GraphQLClient+sendJoinRollupTx) ⇒ `Promise.<string>`
|
|
62
63
|
* [sendLeaveRollupTx(params, extra)](#GraphQLClient+sendLeaveRollupTx) ⇒ `Promise.<string>`
|
|
63
|
-
* [
|
|
64
|
-
* [sendMigrateRollupTokenTx(params, extra)](#GraphQLClient+sendMigrateRollupTokenTx) ⇒ `Promise.<string>`
|
|
64
|
+
* [sendMigrateRollupTx(params, extra)](#GraphQLClient+sendMigrateRollupTx) ⇒ `Promise.<string>`
|
|
65
65
|
* [sendMintAssetTx(params, extra)](#GraphQLClient+sendMintAssetTx) ⇒ `Promise.<string>`
|
|
66
66
|
* [sendPauseRollupTx(params, extra)](#GraphQLClient+sendPauseRollupTx) ⇒ `Promise.<string>`
|
|
67
67
|
* [sendResumeRollupTx(params, extra)](#GraphQLClient+sendResumeRollupTx) ⇒ `Promise.<string>`
|
|
@@ -81,6 +81,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
|
|
|
81
81
|
* [encodeAcquireAssetV3Tx(params)](#GraphQLClient+encodeAcquireAssetV3Tx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
82
82
|
* [encodeClaimBlockRewardTx(params)](#GraphQLClient+encodeClaimBlockRewardTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
83
83
|
* [encodeClaimStakeTx(params)](#GraphQLClient+encodeClaimStakeTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
84
|
+
* [encodeCloseRollupTx(params)](#GraphQLClient+encodeCloseRollupTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
84
85
|
* [encodeCreateAssetTx(params)](#GraphQLClient+encodeCreateAssetTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
85
86
|
* [encodeCreateFactoryTx(params)](#GraphQLClient+encodeCreateFactoryTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
86
87
|
* [encodeCreateRollupBlockTx(params)](#GraphQLClient+encodeCreateRollupBlockTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
@@ -93,8 +94,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
|
|
|
93
94
|
* [encodeExchangeV2Tx(params)](#GraphQLClient+encodeExchangeV2Tx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
94
95
|
* [encodeJoinRollupTx(params)](#GraphQLClient+encodeJoinRollupTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
95
96
|
* [encodeLeaveRollupTx(params)](#GraphQLClient+encodeLeaveRollupTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
96
|
-
* [
|
|
97
|
-
* [encodeMigrateRollupTokenTx(params)](#GraphQLClient+encodeMigrateRollupTokenTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
97
|
+
* [encodeMigrateRollupTx(params)](#GraphQLClient+encodeMigrateRollupTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
98
98
|
* [encodeMintAssetTx(params)](#GraphQLClient+encodeMintAssetTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
99
99
|
* [encodePauseRollupTx(params)](#GraphQLClient+encodePauseRollupTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
100
100
|
* [encodeResumeRollupTx(params)](#GraphQLClient+encodeResumeRollupTx) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
@@ -205,6 +205,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
|
|
|
205
205
|
* [ChainInfo\_ForgeAppsVersionEntry](#GraphQLClient.ChainInfo_ForgeAppsVersionEntry) : `object`
|
|
206
206
|
* [ClaimBlockRewardTx](#GraphQLClient.ClaimBlockRewardTx) : `object`
|
|
207
207
|
* [ClaimStakeTx](#GraphQLClient.ClaimStakeTx) : `object`
|
|
208
|
+
* [CloseRollupTx](#GraphQLClient.CloseRollupTx) : `object`
|
|
208
209
|
* [ConsensusParams](#GraphQLClient.ConsensusParams) : `object`
|
|
209
210
|
* [CreateAssetTx](#GraphQLClient.CreateAssetTx) : `object`
|
|
210
211
|
* [CreateFactoryTx](#GraphQLClient.CreateFactoryTx) : `object`
|
|
@@ -247,8 +248,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
|
|
|
247
248
|
* [JoinRollupTx](#GraphQLClient.JoinRollupTx) : `object`
|
|
248
249
|
* [KVPair](#GraphQLClient.KVPair) : `object`
|
|
249
250
|
* [LeaveRollupTx](#GraphQLClient.LeaveRollupTx) : `object`
|
|
250
|
-
* [
|
|
251
|
-
* [MigrateRollupTokenTx](#GraphQLClient.MigrateRollupTokenTx) : `object`
|
|
251
|
+
* [MigrateRollupTx](#GraphQLClient.MigrateRollupTx) : `object`
|
|
252
252
|
* [MintAssetTx](#GraphQLClient.MintAssetTx) : `object`
|
|
253
253
|
* [Multisig](#GraphQLClient.Multisig) : `object`
|
|
254
254
|
* [NFTDisplay](#GraphQLClient.NFTDisplay) : `object`
|
|
@@ -373,6 +373,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
|
|
|
373
373
|
* [AcquireAssetV3TxInput](#GraphQLClient.AcquireAssetV3TxInput) : `Object`
|
|
374
374
|
* [ClaimBlockRewardTxInput](#GraphQLClient.ClaimBlockRewardTxInput) : `Object`
|
|
375
375
|
* [ClaimStakeTxInput](#GraphQLClient.ClaimStakeTxInput) : `Object`
|
|
376
|
+
* [CloseRollupTxInput](#GraphQLClient.CloseRollupTxInput) : `Object`
|
|
376
377
|
* [CreateAssetTxInput](#GraphQLClient.CreateAssetTxInput) : `Object`
|
|
377
378
|
* [CreateFactoryTxInput](#GraphQLClient.CreateFactoryTxInput) : `Object`
|
|
378
379
|
* [CreateRollupBlockTxInput](#GraphQLClient.CreateRollupBlockTxInput) : `Object`
|
|
@@ -385,8 +386,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
|
|
|
385
386
|
* [ExchangeV2TxInput](#GraphQLClient.ExchangeV2TxInput) : `Object`
|
|
386
387
|
* [JoinRollupTxInput](#GraphQLClient.JoinRollupTxInput) : `Object`
|
|
387
388
|
* [LeaveRollupTxInput](#GraphQLClient.LeaveRollupTxInput) : `Object`
|
|
388
|
-
* [
|
|
389
|
-
* [MigrateRollupTokenTxInput](#GraphQLClient.MigrateRollupTokenTxInput) : `Object`
|
|
389
|
+
* [MigrateRollupTxInput](#GraphQLClient.MigrateRollupTxInput) : `Object`
|
|
390
390
|
* [MintAssetTxInput](#GraphQLClient.MintAssetTxInput) : `Object`
|
|
391
391
|
* [PauseRollupTxInput](#GraphQLClient.PauseRollupTxInput) : `Object`
|
|
392
392
|
* [ResumeRollupTxInput](#GraphQLClient.ResumeRollupTxInput) : `Object`
|
|
@@ -882,6 +882,18 @@ Send ClaimStakeTx transaction and get the hash, use [getTx](#GraphQLClient+getTx
|
|
|
882
882
|
| params | [`ClaimStakeTxInput`](#GraphQLClient.ClaimStakeTxInput) |
|
|
883
883
|
| extra | `object` |
|
|
884
884
|
|
|
885
|
+
### graphQLClient.sendCloseRollupTx(params, extra) ⇒ `Promise.<string>`
|
|
886
|
+
|
|
887
|
+
Send CloseRollupTx transaction and get the hash, use [getTx](#GraphQLClient+getTx) to get transaction detail
|
|
888
|
+
|
|
889
|
+
**Kind**: instance method of [`GraphQLClient`](#GraphQLClient)\
|
|
890
|
+
**Returns**: `Promise.<string>` - returns transaction hash if success, otherwise error was thrown
|
|
891
|
+
|
|
892
|
+
| Param | Type |
|
|
893
|
+
| ------ | --------------------------------------------------------- |
|
|
894
|
+
| params | [`CloseRollupTxInput`](#GraphQLClient.CloseRollupTxInput) |
|
|
895
|
+
| extra | `object` |
|
|
896
|
+
|
|
885
897
|
### graphQLClient.sendCreateAssetTx(params, extra) ⇒ `Promise.<string>`
|
|
886
898
|
|
|
887
899
|
Send CreateAssetTx transaction and get the hash, use [getTx](#GraphQLClient+getTx) to get transaction detail
|
|
@@ -1026,29 +1038,17 @@ Send LeaveRollupTx transaction and get the hash, use [getTx](#GraphQLClient+getT
|
|
|
1026
1038
|
| params | [`LeaveRollupTxInput`](#GraphQLClient.LeaveRollupTxInput) |
|
|
1027
1039
|
| extra | `object` |
|
|
1028
1040
|
|
|
1029
|
-
### graphQLClient.
|
|
1030
|
-
|
|
1031
|
-
Send MigrateRollupContractTx transaction and get the hash, use [getTx](#GraphQLClient+getTx) to get transaction detail
|
|
1032
|
-
|
|
1033
|
-
**Kind**: instance method of [`GraphQLClient`](#GraphQLClient)\
|
|
1034
|
-
**Returns**: `Promise.<string>` - returns transaction hash if success, otherwise error was thrown
|
|
1035
|
-
|
|
1036
|
-
| Param | Type |
|
|
1037
|
-
| ------ | ----------------------------------------------------------------------------- |
|
|
1038
|
-
| params | [`MigrateRollupContractTxInput`](#GraphQLClient.MigrateRollupContractTxInput) |
|
|
1039
|
-
| extra | `object` |
|
|
1040
|
-
|
|
1041
|
-
### graphQLClient.sendMigrateRollupTokenTx(params, extra) ⇒ `Promise.<string>`
|
|
1041
|
+
### graphQLClient.sendMigrateRollupTx(params, extra) ⇒ `Promise.<string>`
|
|
1042
1042
|
|
|
1043
|
-
Send
|
|
1043
|
+
Send MigrateRollupTx transaction and get the hash, use [getTx](#GraphQLClient+getTx) to get transaction detail
|
|
1044
1044
|
|
|
1045
1045
|
**Kind**: instance method of [`GraphQLClient`](#GraphQLClient)\
|
|
1046
1046
|
**Returns**: `Promise.<string>` - returns transaction hash if success, otherwise error was thrown
|
|
1047
1047
|
|
|
1048
|
-
| Param | Type
|
|
1049
|
-
| ------ |
|
|
1050
|
-
| params | [`
|
|
1051
|
-
| extra | `object`
|
|
1048
|
+
| Param | Type |
|
|
1049
|
+
| ------ | ------------------------------------------------------------- |
|
|
1050
|
+
| params | [`MigrateRollupTxInput`](#GraphQLClient.MigrateRollupTxInput) |
|
|
1051
|
+
| extra | `object` |
|
|
1052
1052
|
|
|
1053
1053
|
### graphQLClient.sendMintAssetTx(params, extra) ⇒ `Promise.<string>`
|
|
1054
1054
|
|
|
@@ -1273,6 +1273,17 @@ Encode a ClaimStakeTx transaction for later use
|
|
|
1273
1273
|
| ------ | ------------------------------------------------------- |
|
|
1274
1274
|
| params | [`ClaimStakeTxInput`](#GraphQLClient.ClaimStakeTxInput) |
|
|
1275
1275
|
|
|
1276
|
+
### graphQLClient.encodeCloseRollupTx(params) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
1277
|
+
|
|
1278
|
+
Encode a CloseRollupTx transaction for later use
|
|
1279
|
+
|
|
1280
|
+
**Kind**: instance method of [`GraphQLClient`](#GraphQLClient)\
|
|
1281
|
+
**Returns**: [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput) - result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
1282
|
+
|
|
1283
|
+
| Param | Type |
|
|
1284
|
+
| ------ | --------------------------------------------------------- |
|
|
1285
|
+
| params | [`CloseRollupTxInput`](#GraphQLClient.CloseRollupTxInput) |
|
|
1286
|
+
|
|
1276
1287
|
### graphQLClient.encodeCreateAssetTx(params) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
1277
1288
|
|
|
1278
1289
|
Encode a CreateAssetTx transaction for later use
|
|
@@ -1405,27 +1416,16 @@ Encode a LeaveRollupTx transaction for later use
|
|
|
1405
1416
|
| ------ | --------------------------------------------------------- |
|
|
1406
1417
|
| params | [`LeaveRollupTxInput`](#GraphQLClient.LeaveRollupTxInput) |
|
|
1407
1418
|
|
|
1408
|
-
### graphQLClient.
|
|
1419
|
+
### graphQLClient.encodeMigrateRollupTx(params) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
1409
1420
|
|
|
1410
|
-
Encode a
|
|
1421
|
+
Encode a MigrateRollupTx transaction for later use
|
|
1411
1422
|
|
|
1412
1423
|
**Kind**: instance method of [`GraphQLClient`](#GraphQLClient)\
|
|
1413
1424
|
**Returns**: [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput) - result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
1414
1425
|
|
|
1415
|
-
| Param | Type
|
|
1416
|
-
| ------ |
|
|
1417
|
-
| params | [`
|
|
1418
|
-
|
|
1419
|
-
### graphQLClient.encodeMigrateRollupTokenTx(params) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
1420
|
-
|
|
1421
|
-
Encode a MigrateRollupTokenTx transaction for later use
|
|
1422
|
-
|
|
1423
|
-
**Kind**: instance method of [`GraphQLClient`](#GraphQLClient)\
|
|
1424
|
-
**Returns**: [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput) - result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
1425
|
-
|
|
1426
|
-
| Param | Type |
|
|
1427
|
-
| ------ | ----------------------------------------------------------------------- |
|
|
1428
|
-
| params | [`MigrateRollupTokenTxInput`](#GraphQLClient.MigrateRollupTokenTxInput) |
|
|
1426
|
+
| Param | Type |
|
|
1427
|
+
| ------ | ------------------------------------------------------------- |
|
|
1428
|
+
| params | [`MigrateRollupTxInput`](#GraphQLClient.MigrateRollupTxInput) |
|
|
1429
1429
|
|
|
1430
1430
|
### graphQLClient.encodeMintAssetTx(params) ⇒ [`Promise.<TxEncodeOutput>`](#GraphQLClient.TxEncodeOutput)
|
|
1431
1431
|
|
|
@@ -2851,6 +2851,32 @@ Checkout the following snippet for the format of ClaimStakeTx:
|
|
|
2851
2851
|
| ...evidence | [`Evidence`](#GraphQLClient.Evidence) |
|
|
2852
2852
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
2853
2853
|
|
|
2854
|
+
### GraphQLClient.CloseRollupTx : `object`
|
|
2855
|
+
|
|
2856
|
+
Structure of GraphQLClient.CloseRollupTx
|
|
2857
|
+
|
|
2858
|
+
Checkout the following snippet for the format of CloseRollupTx:
|
|
2859
|
+
|
|
2860
|
+
```json
|
|
2861
|
+
{
|
|
2862
|
+
"rollup": "abc",
|
|
2863
|
+
"message": "abc",
|
|
2864
|
+
"data": {
|
|
2865
|
+
"typeUrl": "abc",
|
|
2866
|
+
"value": "abc"
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
```
|
|
2870
|
+
|
|
2871
|
+
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
|
|
2872
|
+
**Properties**
|
|
2873
|
+
|
|
2874
|
+
| Name | Type |
|
|
2875
|
+
| ------- | --------------------------- |
|
|
2876
|
+
| rollup | `string` |
|
|
2877
|
+
| message | `string` |
|
|
2878
|
+
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
2879
|
+
|
|
2854
2880
|
### GraphQLClient.ConsensusParams : `object`
|
|
2855
2881
|
|
|
2856
2882
|
Structure of GraphQLClient.ConsensusParams
|
|
@@ -2930,6 +2956,7 @@ Structure of GraphQLClient.CreateRollupBlockTx
|
|
|
2930
2956
|
| signatures | `Array.<...GraphQLClient.Multisig>` |
|
|
2931
2957
|
| rollup | `string` |
|
|
2932
2958
|
| minReward | `string` |
|
|
2959
|
+
| governance | `boolean` |
|
|
2933
2960
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
2934
2961
|
|
|
2935
2962
|
### GraphQLClient.CreateRollupTx : `object`
|
|
@@ -2943,6 +2970,7 @@ Structure of GraphQLClient.CreateRollupTx
|
|
|
2943
2970
|
| -------------------- | ------------------------------------------ |
|
|
2944
2971
|
| address | `string` |
|
|
2945
2972
|
| tokenAddress | `string` |
|
|
2973
|
+
| vaultAddress | `string` |
|
|
2946
2974
|
| contractAddress | `string` |
|
|
2947
2975
|
| seedValidators | `Array.<...GraphQLClient.RollupValidator>` |
|
|
2948
2976
|
| minStakeAmount | `string` |
|
|
@@ -3495,6 +3523,7 @@ Structure of GraphQLClient.IndexedRollupBlock
|
|
|
3495
3523
|
| mintedAmount | `string` |
|
|
3496
3524
|
| burnedAmount | `string` |
|
|
3497
3525
|
| rewardAmount | `string` |
|
|
3526
|
+
| governance | `boolean` |
|
|
3498
3527
|
| ...tokenInfo | [`IndexedTokenInput`](#GraphQLClient.IndexedTokenInput) |
|
|
3499
3528
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
3500
3529
|
|
|
@@ -3509,6 +3538,7 @@ Structure of GraphQLClient.IndexedRollupState
|
|
|
3509
3538
|
| -------------------- | ------------------------------------------------------- |
|
|
3510
3539
|
| address | `string` |
|
|
3511
3540
|
| tokenAddress | `string` |
|
|
3541
|
+
| vaultAddress | `string` |
|
|
3512
3542
|
| contractAddress | `string` |
|
|
3513
3543
|
| seedValidators | `Array.<...GraphQLClient.RollupValidator>` |
|
|
3514
3544
|
| validators | `Array.<...GraphQLClient.RollupValidator>` |
|
|
@@ -3546,6 +3576,8 @@ Structure of GraphQLClient.IndexedRollupState
|
|
|
3546
3576
|
| publishWaitingPeriod | `number` |
|
|
3547
3577
|
| publishSlashRate | `number` |
|
|
3548
3578
|
| migrateHistory | `Array.<string>` |
|
|
3579
|
+
| closed | `boolean` |
|
|
3580
|
+
| vaultHistory | `Array.<string>` |
|
|
3549
3581
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
3550
3582
|
|
|
3551
3583
|
### GraphQLClient.IndexedRollupValidator : `object`
|
|
@@ -3698,16 +3730,18 @@ Structure of GraphQLClient.LeaveRollupTx
|
|
|
3698
3730
|
| signatures | `Array.<...GraphQLClient.Multisig>` |
|
|
3699
3731
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
3700
3732
|
|
|
3701
|
-
### GraphQLClient.
|
|
3733
|
+
### GraphQLClient.MigrateRollupTx : `object`
|
|
3702
3734
|
|
|
3703
|
-
Structure of GraphQLClient.
|
|
3735
|
+
Structure of GraphQLClient.MigrateRollupTx
|
|
3704
3736
|
|
|
3705
|
-
Checkout the following snippet for the format of
|
|
3737
|
+
Checkout the following snippet for the format of MigrateRollupTx:
|
|
3706
3738
|
|
|
3707
3739
|
```json
|
|
3708
3740
|
{
|
|
3709
3741
|
"rollup": "abc",
|
|
3710
3742
|
"to": "abc",
|
|
3743
|
+
"type": "abc",
|
|
3744
|
+
"message": "abc",
|
|
3711
3745
|
"data": {
|
|
3712
3746
|
"typeUrl": "abc",
|
|
3713
3747
|
"value": "abc"
|
|
@@ -3722,41 +3756,10 @@ Checkout the following snippet for the format of MigrateRollupContractTx:
|
|
|
3722
3756
|
| ------- | --------------------------- |
|
|
3723
3757
|
| rollup | `string` |
|
|
3724
3758
|
| to | `string` |
|
|
3759
|
+
| type | `string` |
|
|
3760
|
+
| message | `string` |
|
|
3725
3761
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
3726
3762
|
|
|
3727
|
-
### GraphQLClient.MigrateRollupTokenTx : `object`
|
|
3728
|
-
|
|
3729
|
-
Structure of GraphQLClient.MigrateRollupTokenTx
|
|
3730
|
-
|
|
3731
|
-
Checkout the following snippet for the format of MigrateRollupTokenTx:
|
|
3732
|
-
|
|
3733
|
-
```json
|
|
3734
|
-
{
|
|
3735
|
-
"rollup": "abc",
|
|
3736
|
-
"from": "abc",
|
|
3737
|
-
"to": "abc",
|
|
3738
|
-
"token": {
|
|
3739
|
-
"address": "abc",
|
|
3740
|
-
"value": "abc"
|
|
3741
|
-
},
|
|
3742
|
-
"data": {
|
|
3743
|
-
"typeUrl": "abc",
|
|
3744
|
-
"value": "abc"
|
|
3745
|
-
}
|
|
3746
|
-
}
|
|
3747
|
-
```
|
|
3748
|
-
|
|
3749
|
-
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
|
|
3750
|
-
**Properties**
|
|
3751
|
-
|
|
3752
|
-
| Name | Type |
|
|
3753
|
-
| -------- | ----------------------------------------- |
|
|
3754
|
-
| rollup | `string` |
|
|
3755
|
-
| from | `string` |
|
|
3756
|
-
| to | `string` |
|
|
3757
|
-
| ...token | [`TokenInput`](#GraphQLClient.TokenInput) |
|
|
3758
|
-
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
3759
|
-
|
|
3760
3763
|
### GraphQLClient.MintAssetTx : `object`
|
|
3761
3764
|
|
|
3762
3765
|
Structure of GraphQLClient.MintAssetTx
|
|
@@ -4505,6 +4508,7 @@ Structure of GraphQLClient.RollupBlock
|
|
|
4505
4508
|
| burnedAmount | `string` |
|
|
4506
4509
|
| rewardAmount | `string` |
|
|
4507
4510
|
| minReward | `string` |
|
|
4511
|
+
| governance | `boolean` |
|
|
4508
4512
|
| ...context | [`StateContext`](#GraphQLClient.StateContext) |
|
|
4509
4513
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
4510
4514
|
|
|
@@ -4519,6 +4523,7 @@ Structure of GraphQLClient.RollupState
|
|
|
4519
4523
|
| -------------------- | ------------------------------------------------------- |
|
|
4520
4524
|
| address | `string` |
|
|
4521
4525
|
| tokenAddress | `string` |
|
|
4526
|
+
| vaultAddress | `string` |
|
|
4522
4527
|
| contractAddress | `string` |
|
|
4523
4528
|
| seedValidators | `Array.<...GraphQLClient.RollupValidator>` |
|
|
4524
4529
|
| validators | `Array.<...GraphQLClient.RollupValidator>` |
|
|
@@ -4554,6 +4559,8 @@ Structure of GraphQLClient.RollupState
|
|
|
4554
4559
|
| publishWaitingPeriod | `number` |
|
|
4555
4560
|
| publishSlashRate | `number` |
|
|
4556
4561
|
| migrateHistory | `Array.<string>` |
|
|
4562
|
+
| closed | `boolean` |
|
|
4563
|
+
| vaultHistory | `Array.<string>` |
|
|
4557
4564
|
| ...context | [`StateContext`](#GraphQLClient.StateContext) |
|
|
4558
4565
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
4559
4566
|
|
|
@@ -5921,6 +5928,25 @@ Checkout the following snippet for the format of SendTxParams:
|
|
|
5921
5928
|
| input.wallet | `object` | the wallet used to sign the transaction, either a forge managed wallet or user managed wallet |
|
|
5922
5929
|
| [input.signature] | `string` | the signature of the tx, if this parameter exist, we will not sign the transaction |
|
|
5923
5930
|
|
|
5931
|
+
### GraphQLClient.CloseRollupTxInput : `Object`
|
|
5932
|
+
|
|
5933
|
+
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
|
|
5934
|
+
**Properties**
|
|
5935
|
+
|
|
5936
|
+
| Name | Type | Description |
|
|
5937
|
+
| --------------------- | ----------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
5938
|
+
| input | `object` | |
|
|
5939
|
+
| input.tx | `object` | data of the transaction |
|
|
5940
|
+
| input.tx.itx | [`CloseRollupTx`](#GraphQLClient.CloseRollupTx) | the actual transaction object |
|
|
5941
|
+
| [input.tx.pk] | `string` | the sender pk |
|
|
5942
|
+
| [input.tx.from] | `string` | the sender address, can be derived from wallet |
|
|
5943
|
+
| [input.tx.nonce] | `number` | the tx nonce, defaults to Date.now if not set |
|
|
5944
|
+
| [input.tx.chainId] | `string` | the chainId |
|
|
5945
|
+
| [input.tx.signature] | `string` | transaction signature |
|
|
5946
|
+
| [input.tx.signatures] | `array` | transaction signatures, should be set when it's a multisig transaction |
|
|
5947
|
+
| input.wallet | `object` | the wallet used to sign the transaction, either a forge managed wallet or user managed wallet |
|
|
5948
|
+
| [input.signature] | `string` | the signature of the tx, if this parameter exist, we will not sign the transaction |
|
|
5949
|
+
|
|
5924
5950
|
### GraphQLClient.CreateAssetTxInput : `Object`
|
|
5925
5951
|
|
|
5926
5952
|
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
|
|
@@ -6149,43 +6175,24 @@ Checkout the following snippet for the format of SendTxParams:
|
|
|
6149
6175
|
| input.wallet | `object` | the wallet used to sign the transaction, either a forge managed wallet or user managed wallet |
|
|
6150
6176
|
| [input.signature] | `string` | the signature of the tx, if this parameter exist, we will not sign the transaction |
|
|
6151
6177
|
|
|
6152
|
-
### GraphQLClient.
|
|
6153
|
-
|
|
6154
|
-
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
|
|
6155
|
-
**Properties**
|
|
6156
|
-
|
|
6157
|
-
| Name | Type | Description |
|
|
6158
|
-
| --------------------- | ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
6159
|
-
| input | `object` | |
|
|
6160
|
-
| input.tx | `object` | data of the transaction |
|
|
6161
|
-
| input.tx.itx | [`MigrateRollupContractTx`](#GraphQLClient.MigrateRollupContractTx) | the actual transaction object |
|
|
6162
|
-
| [input.tx.pk] | `string` | the sender pk |
|
|
6163
|
-
| [input.tx.from] | `string` | the sender address, can be derived from wallet |
|
|
6164
|
-
| [input.tx.nonce] | `number` | the tx nonce, defaults to Date.now if not set |
|
|
6165
|
-
| [input.tx.chainId] | `string` | the chainId |
|
|
6166
|
-
| [input.tx.signature] | `string` | transaction signature |
|
|
6167
|
-
| [input.tx.signatures] | `array` | transaction signatures, should be set when it's a multisig transaction |
|
|
6168
|
-
| input.wallet | `object` | the wallet used to sign the transaction, either a forge managed wallet or user managed wallet |
|
|
6169
|
-
| [input.signature] | `string` | the signature of the tx, if this parameter exist, we will not sign the transaction |
|
|
6170
|
-
|
|
6171
|
-
### GraphQLClient.MigrateRollupTokenTxInput : `Object`
|
|
6178
|
+
### GraphQLClient.MigrateRollupTxInput : `Object`
|
|
6172
6179
|
|
|
6173
6180
|
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
|
|
6174
6181
|
**Properties**
|
|
6175
6182
|
|
|
6176
|
-
| Name | Type
|
|
6177
|
-
| --------------------- |
|
|
6178
|
-
| input | `object`
|
|
6179
|
-
| input.tx | `object`
|
|
6180
|
-
| input.tx.itx | [`
|
|
6181
|
-
| [input.tx.pk] | `string`
|
|
6182
|
-
| [input.tx.from] | `string`
|
|
6183
|
-
| [input.tx.nonce] | `number`
|
|
6184
|
-
| [input.tx.chainId] | `string`
|
|
6185
|
-
| [input.tx.signature] | `string`
|
|
6186
|
-
| [input.tx.signatures] | `array`
|
|
6187
|
-
| input.wallet | `object`
|
|
6188
|
-
| [input.signature] | `string`
|
|
6183
|
+
| Name | Type | Description |
|
|
6184
|
+
| --------------------- | --------------------------------------------------- | --------------------------------------------------------------------------------------------- |
|
|
6185
|
+
| input | `object` | |
|
|
6186
|
+
| input.tx | `object` | data of the transaction |
|
|
6187
|
+
| input.tx.itx | [`MigrateRollupTx`](#GraphQLClient.MigrateRollupTx) | the actual transaction object |
|
|
6188
|
+
| [input.tx.pk] | `string` | the sender pk |
|
|
6189
|
+
| [input.tx.from] | `string` | the sender address, can be derived from wallet |
|
|
6190
|
+
| [input.tx.nonce] | `number` | the tx nonce, defaults to Date.now if not set |
|
|
6191
|
+
| [input.tx.chainId] | `string` | the chainId |
|
|
6192
|
+
| [input.tx.signature] | `string` | transaction signature |
|
|
6193
|
+
| [input.tx.signatures] | `array` | transaction signatures, should be set when it's a multisig transaction |
|
|
6194
|
+
| input.wallet | `object` | the wallet used to sign the transaction, either a forge managed wallet or user managed wallet |
|
|
6195
|
+
| [input.signature] | `string` | the signature of the tx, if this parameter exist, we will not sign the transaction |
|
|
6189
6196
|
|
|
6190
6197
|
### GraphQLClient.MintAssetTxInput : `Object`
|
|
6191
6198
|
|