@ocap/client 1.30.18 → 1.30.20
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 +63 -37
- package/dist/bundle.js +1 -1
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +6379 -6242
- package/dist/schema/graphql.txt +2 -2
- package/dist/types.js +106 -39
- package/dist/types.js.map +1 -1
- package/lib/base.js +1 -1
- package/lib/node.d.ts +63 -37
- package/lib/schema/graphql.json +6379 -6242
- package/lib/schema/graphql.txt +2 -2
- package/lib/types.js +106 -39
- package/lib/types.js.map +1 -1
- package/package.json +11 -11
package/lib/types.js
CHANGED
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
* @typedef {object} GraphQLClient.RequestGetAccountStateInput
|
|
241
241
|
* @property {string} address
|
|
242
242
|
* @property {Array<string>} keys
|
|
243
|
-
* @property {
|
|
243
|
+
* @property {number} height
|
|
244
244
|
* @property {boolean} traceMigration
|
|
245
245
|
*/
|
|
246
246
|
|
|
@@ -266,12 +266,14 @@
|
|
|
266
266
|
*
|
|
267
267
|
* Checkout the following snippet for the format of RequestGetBlockInput:
|
|
268
268
|
* ```json
|
|
269
|
-
{
|
|
269
|
+
{
|
|
270
|
+
"height": 123
|
|
271
|
+
}
|
|
270
272
|
* ```
|
|
271
273
|
*
|
|
272
274
|
* @memberof GraphQLClient
|
|
273
275
|
* @typedef {object} GraphQLClient.RequestGetBlockInput
|
|
274
|
-
* @property {
|
|
276
|
+
* @property {number} height
|
|
275
277
|
*/
|
|
276
278
|
|
|
277
279
|
/**
|
|
@@ -328,6 +330,7 @@
|
|
|
328
330
|
* ```json
|
|
329
331
|
{
|
|
330
332
|
"hash": "abc",
|
|
333
|
+
"height": 123,
|
|
331
334
|
"rollupAddress": "abc"
|
|
332
335
|
}
|
|
333
336
|
* ```
|
|
@@ -335,7 +338,7 @@
|
|
|
335
338
|
* @memberof GraphQLClient
|
|
336
339
|
* @typedef {object} GraphQLClient.RequestGetRollupBlockInput
|
|
337
340
|
* @property {string} hash
|
|
338
|
-
* @property {
|
|
341
|
+
* @property {number} height
|
|
339
342
|
* @property {string} rollupAddress
|
|
340
343
|
*/
|
|
341
344
|
|
|
@@ -346,7 +349,7 @@
|
|
|
346
349
|
* @typedef {object} GraphQLClient.RequestGetStateInput
|
|
347
350
|
* @property {string} address
|
|
348
351
|
* @property {Array<string>} keys
|
|
349
|
-
* @property {
|
|
352
|
+
* @property {number} height
|
|
350
353
|
*/
|
|
351
354
|
|
|
352
355
|
/**
|
|
@@ -567,6 +570,7 @@
|
|
|
567
570
|
{
|
|
568
571
|
"accountAddress": "abc",
|
|
569
572
|
"tokenAddress": "abc",
|
|
573
|
+
"depth": 123,
|
|
570
574
|
"direction": "IN"
|
|
571
575
|
}
|
|
572
576
|
* ```
|
|
@@ -955,10 +959,10 @@
|
|
|
955
959
|
* @property {Array<string>} address
|
|
956
960
|
* @property {Array<string>} to
|
|
957
961
|
* @property {number} txCount
|
|
958
|
-
* @property {
|
|
962
|
+
* @property {number} validUntil
|
|
959
963
|
* @property {...GraphQLClient.RateLimit} rate
|
|
960
964
|
* @property {number} txSent
|
|
961
|
-
* @property {
|
|
965
|
+
* @property {number} lastTx
|
|
962
966
|
*/
|
|
963
967
|
|
|
964
968
|
/**
|
|
@@ -1071,10 +1075,19 @@
|
|
|
1071
1075
|
* @property {string} votingPower
|
|
1072
1076
|
* @property {string} totalTxs
|
|
1073
1077
|
* @property {string} version
|
|
1074
|
-
* @property {
|
|
1078
|
+
* @property {Array<...GraphQLClient.ChainInfo_ForgeAppsVersionEntry>} forgeAppsVersion
|
|
1075
1079
|
* @property {Array<string>} supportedTxs
|
|
1076
1080
|
*/
|
|
1077
1081
|
|
|
1082
|
+
/**
|
|
1083
|
+
* Structure of GraphQLClient.ChainInfo_ForgeAppsVersionEntry
|
|
1084
|
+
*
|
|
1085
|
+
* @memberof GraphQLClient
|
|
1086
|
+
* @typedef {object} GraphQLClient.ChainInfo_ForgeAppsVersionEntry
|
|
1087
|
+
* @property {string} key
|
|
1088
|
+
* @property {string} value
|
|
1089
|
+
*/
|
|
1090
|
+
|
|
1078
1091
|
/**
|
|
1079
1092
|
* Structure of GraphQLClient.ClaimBlockRewardTx
|
|
1080
1093
|
*
|
|
@@ -1082,6 +1095,7 @@
|
|
|
1082
1095
|
* ```json
|
|
1083
1096
|
{
|
|
1084
1097
|
"rollup": "abc",
|
|
1098
|
+
"blockHeight": 123,
|
|
1085
1099
|
"blockHash": "abc",
|
|
1086
1100
|
"evidence": {
|
|
1087
1101
|
"hash": "abc"
|
|
@@ -1097,7 +1111,7 @@
|
|
|
1097
1111
|
* @memberof GraphQLClient
|
|
1098
1112
|
* @typedef {object} GraphQLClient.ClaimBlockRewardTx
|
|
1099
1113
|
* @property {string} rollup
|
|
1100
|
-
* @property {
|
|
1114
|
+
* @property {number} blockHeight
|
|
1101
1115
|
* @property {string} blockHash
|
|
1102
1116
|
* @property {...GraphQLClient.Evidence} evidence
|
|
1103
1117
|
* @property {string} publisher
|
|
@@ -1227,7 +1241,7 @@
|
|
|
1227
1241
|
* @memberof GraphQLClient
|
|
1228
1242
|
* @typedef {object} GraphQLClient.CreateRollupBlockTx
|
|
1229
1243
|
* @property {string} hash
|
|
1230
|
-
* @property {
|
|
1244
|
+
* @property {number} height
|
|
1231
1245
|
* @property {string} merkleRoot
|
|
1232
1246
|
* @property {string} previousHash
|
|
1233
1247
|
* @property {string} txsHash
|
|
@@ -1380,8 +1394,8 @@
|
|
|
1380
1394
|
* @memberof GraphQLClient
|
|
1381
1395
|
* @typedef {object} GraphQLClient.DelegateOpState
|
|
1382
1396
|
* @property {string} rule
|
|
1383
|
-
* @property {
|
|
1384
|
-
* @property {
|
|
1397
|
+
* @property {number} numTxs
|
|
1398
|
+
* @property {number} numTxsDelta
|
|
1385
1399
|
* @property {string} balance
|
|
1386
1400
|
* @property {string} balanceDelta
|
|
1387
1401
|
* @property {...GraphQLClient.DelegateLimit} limit
|
|
@@ -1393,15 +1407,24 @@
|
|
|
1393
1407
|
* @memberof GraphQLClient
|
|
1394
1408
|
* @typedef {object} GraphQLClient.DelegateState
|
|
1395
1409
|
* @property {string} address
|
|
1396
|
-
* @property {
|
|
1410
|
+
* @property {Array<...GraphQLClient.DelegateState_OpsEntry>} ops
|
|
1397
1411
|
* @property {string} from
|
|
1398
1412
|
* @property {string} to
|
|
1399
1413
|
* @property {Array<string>} deny
|
|
1400
|
-
* @property {
|
|
1414
|
+
* @property {number} validUntil
|
|
1401
1415
|
* @property {...GraphQLClient.StateContext} context
|
|
1402
1416
|
* @property {...GraphQLClient.Any} data
|
|
1403
1417
|
*/
|
|
1404
1418
|
|
|
1419
|
+
/**
|
|
1420
|
+
* Structure of GraphQLClient.DelegateState_OpsEntry
|
|
1421
|
+
*
|
|
1422
|
+
* @memberof GraphQLClient
|
|
1423
|
+
* @typedef {object} GraphQLClient.DelegateState_OpsEntry
|
|
1424
|
+
* @property {string} key
|
|
1425
|
+
* @property {...GraphQLClient.DelegateOpState} value
|
|
1426
|
+
*/
|
|
1427
|
+
|
|
1405
1428
|
/**
|
|
1406
1429
|
* Structure of GraphQLClient.DelegateTx
|
|
1407
1430
|
*
|
|
@@ -1411,7 +1434,7 @@
|
|
|
1411
1434
|
* @property {string} to
|
|
1412
1435
|
* @property {Array<...GraphQLClient.DelegateOp>} ops
|
|
1413
1436
|
* @property {Array<string>} deny
|
|
1414
|
-
* @property {
|
|
1437
|
+
* @property {number} validUntil
|
|
1415
1438
|
* @property {...GraphQLClient.Any} data
|
|
1416
1439
|
*/
|
|
1417
1440
|
|
|
@@ -1530,7 +1553,7 @@
|
|
|
1530
1553
|
* @typedef {object} GraphQLClient.ForgeState
|
|
1531
1554
|
* @property {string} address
|
|
1532
1555
|
* @property {...GraphQLClient.ConsensusParams} consensus
|
|
1533
|
-
* @property {
|
|
1556
|
+
* @property {Array<...GraphQLClient.ForgeState_TasksEntry>} tasks
|
|
1534
1557
|
* @property {string} version
|
|
1535
1558
|
* @property {...GraphQLClient.ForgeToken} token
|
|
1536
1559
|
* @property {...GraphQLClient.TransactionConfig} txConfig
|
|
@@ -1541,6 +1564,15 @@
|
|
|
1541
1564
|
* @property {...GraphQLClient.Any} data
|
|
1542
1565
|
*/
|
|
1543
1566
|
|
|
1567
|
+
/**
|
|
1568
|
+
* Structure of GraphQLClient.ForgeState_TasksEntry
|
|
1569
|
+
*
|
|
1570
|
+
* @memberof GraphQLClient
|
|
1571
|
+
* @typedef {object} GraphQLClient.ForgeState_TasksEntry
|
|
1572
|
+
* @property {number} key
|
|
1573
|
+
* @property {...GraphQLClient.UpgradeTasks} value
|
|
1574
|
+
*/
|
|
1575
|
+
|
|
1544
1576
|
/**
|
|
1545
1577
|
* Structure of GraphQLClient.ForgeStats
|
|
1546
1578
|
*
|
|
@@ -1669,10 +1701,19 @@
|
|
|
1669
1701
|
* @property {string} to
|
|
1670
1702
|
* @property {string} genesisTime
|
|
1671
1703
|
* @property {string} renaissanceTime
|
|
1672
|
-
* @property {
|
|
1704
|
+
* @property {Array<...GraphQLClient.IndexedDelegationState_OpsEntry>} ops
|
|
1673
1705
|
* @property {...GraphQLClient.Any} data
|
|
1674
1706
|
*/
|
|
1675
1707
|
|
|
1708
|
+
/**
|
|
1709
|
+
* Structure of GraphQLClient.IndexedDelegationState_OpsEntry
|
|
1710
|
+
*
|
|
1711
|
+
* @memberof GraphQLClient
|
|
1712
|
+
* @typedef {object} GraphQLClient.IndexedDelegationState_OpsEntry
|
|
1713
|
+
* @property {string} key
|
|
1714
|
+
* @property {...GraphQLClient.DelegateOpState} value
|
|
1715
|
+
*/
|
|
1716
|
+
|
|
1676
1717
|
/**
|
|
1677
1718
|
* Structure of GraphQLClient.IndexedFactoryInput
|
|
1678
1719
|
*
|
|
@@ -1715,7 +1756,7 @@
|
|
|
1715
1756
|
* @memberof GraphQLClient
|
|
1716
1757
|
* @typedef {object} GraphQLClient.IndexedRollupBlock
|
|
1717
1758
|
* @property {string} hash
|
|
1718
|
-
* @property {
|
|
1759
|
+
* @property {number} height
|
|
1719
1760
|
* @property {string} merkleRoot
|
|
1720
1761
|
* @property {string} previousHash
|
|
1721
1762
|
* @property {string} txsHash
|
|
@@ -1760,7 +1801,7 @@
|
|
|
1760
1801
|
* @property {number} proposerFeeShare
|
|
1761
1802
|
* @property {string} minDepositAmount
|
|
1762
1803
|
* @property {string} minWithdrawAmount
|
|
1763
|
-
* @property {
|
|
1804
|
+
* @property {number} blockHeight
|
|
1764
1805
|
* @property {string} blockHash
|
|
1765
1806
|
* @property {number} minBlockConfirmation
|
|
1766
1807
|
* @property {string} totalDepositAmount
|
|
@@ -1800,9 +1841,9 @@
|
|
|
1800
1841
|
* @property {string} revokedStake
|
|
1801
1842
|
* @property {string} availableStake
|
|
1802
1843
|
* @property {string} totalGain
|
|
1803
|
-
* @property {
|
|
1804
|
-
* @property {
|
|
1805
|
-
* @property {
|
|
1844
|
+
* @property {number} proposedBlockCount
|
|
1845
|
+
* @property {number} verifiedBlockCount
|
|
1846
|
+
* @property {number} latestBlockHeight
|
|
1806
1847
|
* @property {string} latestBlockHash
|
|
1807
1848
|
* @property {string} rollup
|
|
1808
1849
|
*/
|
|
@@ -2070,13 +2111,22 @@
|
|
|
2070
2111
|
* @property {string} votingPower
|
|
2071
2112
|
* @property {string} totalTxs
|
|
2072
2113
|
* @property {string} version
|
|
2073
|
-
* @property {
|
|
2114
|
+
* @property {Array<...GraphQLClient.NodeInfo_ForgeAppsVersionEntry>} forgeAppsVersion
|
|
2074
2115
|
* @property {Array<string>} supportedTxs
|
|
2075
2116
|
* @property {string} ip
|
|
2076
2117
|
* @property {...GraphQLClient.GeoInfo} geoInfo
|
|
2077
2118
|
* @property {string} p2pAddress
|
|
2078
2119
|
*/
|
|
2079
2120
|
|
|
2121
|
+
/**
|
|
2122
|
+
* Structure of GraphQLClient.NodeInfo_ForgeAppsVersionEntry
|
|
2123
|
+
*
|
|
2124
|
+
* @memberof GraphQLClient
|
|
2125
|
+
* @typedef {object} GraphQLClient.NodeInfo_ForgeAppsVersionEntry
|
|
2126
|
+
* @property {string} key
|
|
2127
|
+
* @property {string} value
|
|
2128
|
+
*/
|
|
2129
|
+
|
|
2080
2130
|
/**
|
|
2081
2131
|
* Structure of GraphQLClient.PageInfo
|
|
2082
2132
|
*
|
|
@@ -2143,8 +2193,8 @@
|
|
|
2143
2193
|
*
|
|
2144
2194
|
* @memberof GraphQLClient
|
|
2145
2195
|
* @typedef {object} GraphQLClient.RateLimit
|
|
2146
|
-
* @property {
|
|
2147
|
-
* @property {
|
|
2196
|
+
* @property {number} interval
|
|
2197
|
+
* @property {number} anchor
|
|
2148
2198
|
*/
|
|
2149
2199
|
|
|
2150
2200
|
/**
|
|
@@ -2592,7 +2642,9 @@
|
|
|
2592
2642
|
"address": "abc",
|
|
2593
2643
|
"balance": "abc",
|
|
2594
2644
|
"transferIn": "abc",
|
|
2595
|
-
"transferOut": "abc"
|
|
2645
|
+
"transferOut": "abc",
|
|
2646
|
+
"accountCount": 123,
|
|
2647
|
+
"txCount": 123
|
|
2596
2648
|
}
|
|
2597
2649
|
}
|
|
2598
2650
|
}
|
|
@@ -2662,7 +2714,7 @@
|
|
|
2662
2714
|
* @memberof GraphQLClient
|
|
2663
2715
|
* @typedef {object} GraphQLClient.RollupBlock
|
|
2664
2716
|
* @property {string} hash
|
|
2665
|
-
* @property {
|
|
2717
|
+
* @property {number} height
|
|
2666
2718
|
* @property {string} merkleRoot
|
|
2667
2719
|
* @property {string} previousHash
|
|
2668
2720
|
* @property {string} txsHash
|
|
@@ -2705,7 +2757,7 @@
|
|
|
2705
2757
|
* @property {number} publisherFeeShare
|
|
2706
2758
|
* @property {string} minDepositAmount
|
|
2707
2759
|
* @property {string} minWithdrawAmount
|
|
2708
|
-
* @property {
|
|
2760
|
+
* @property {number} blockHeight
|
|
2709
2761
|
* @property {string} blockHash
|
|
2710
2762
|
* @property {...GraphQLClient.IndexedTokenInput} tokenInfo
|
|
2711
2763
|
* @property {string} totalDepositAmount
|
|
@@ -2886,11 +2938,11 @@
|
|
|
2886
2938
|
* @property {number} txCount
|
|
2887
2939
|
* @property {string} txAllowance
|
|
2888
2940
|
* @property {string} totalAllowance
|
|
2889
|
-
* @property {
|
|
2941
|
+
* @property {number} validUntil
|
|
2890
2942
|
* @property {...GraphQLClient.RateLimit} rate
|
|
2891
2943
|
* @property {number} txSent
|
|
2892
2944
|
* @property {string} spentAllowance
|
|
2893
|
-
* @property {
|
|
2945
|
+
* @property {number} lastTx
|
|
2894
2946
|
* @property {number} decimal
|
|
2895
2947
|
* @property {string} symbol
|
|
2896
2948
|
*/
|
|
@@ -3063,13 +3115,13 @@
|
|
|
3063
3115
|
*
|
|
3064
3116
|
* @memberof GraphQLClient
|
|
3065
3117
|
* @typedef {object} GraphQLClient.TxGasConfig
|
|
3066
|
-
* @property {
|
|
3067
|
-
* @property {
|
|
3068
|
-
* @property {
|
|
3069
|
-
* @property {
|
|
3118
|
+
* @property {number} price
|
|
3119
|
+
* @property {number} createState
|
|
3120
|
+
* @property {number} updateState
|
|
3121
|
+
* @property {number} dataStorage
|
|
3070
3122
|
* @property {string} minStake
|
|
3071
3123
|
* @property {string} maxStake
|
|
3072
|
-
* @property {
|
|
3124
|
+
* @property {number} stakeLockPeriod
|
|
3073
3125
|
*/
|
|
3074
3126
|
|
|
3075
3127
|
/**
|
|
@@ -3078,7 +3130,8 @@
|
|
|
3078
3130
|
* @memberof GraphQLClient
|
|
3079
3131
|
* @typedef {object} GraphQLClient.TxStakeConfig
|
|
3080
3132
|
* @property {string} createToken
|
|
3081
|
-
* @property {string}
|
|
3133
|
+
* @property {string} createCreditToken
|
|
3134
|
+
* @property {number} createTokenLockPeriod
|
|
3082
3135
|
*/
|
|
3083
3136
|
|
|
3084
3137
|
/**
|
|
@@ -3122,6 +3175,15 @@
|
|
|
3122
3175
|
{
|
|
3123
3176
|
"minStakeAmount": "abc",
|
|
3124
3177
|
"maxStakeAmount": "abc",
|
|
3178
|
+
"minSignerCount": 123,
|
|
3179
|
+
"maxSignerCount": 123,
|
|
3180
|
+
"minBlockSize": 123,
|
|
3181
|
+
"maxBlockSize": 123,
|
|
3182
|
+
"minBlockInterval": 123,
|
|
3183
|
+
"minBlockConfirmation": 123,
|
|
3184
|
+
"depositFeeRate": 123,
|
|
3185
|
+
"withdrawFeeRate": 123,
|
|
3186
|
+
"proposerFeeShare": 123,
|
|
3125
3187
|
"minDepositAmount": "abc",
|
|
3126
3188
|
"minWithdrawAmount": "abc",
|
|
3127
3189
|
"maxDepositAmount": "abc",
|
|
@@ -3130,6 +3192,10 @@
|
|
|
3130
3192
|
"maxDepositFee": "abc",
|
|
3131
3193
|
"minWithdrawFee": "abc",
|
|
3132
3194
|
"maxWithdrawFee": "abc",
|
|
3195
|
+
"publisherFeeShare": 123,
|
|
3196
|
+
"leaveWaitingPeriod": 123,
|
|
3197
|
+
"publishWaitingPeriod": 123,
|
|
3198
|
+
"publishSlashRate": 123,
|
|
3133
3199
|
"rollup": "abc",
|
|
3134
3200
|
"data": {
|
|
3135
3201
|
"typeUrl": "abc",
|
|
@@ -3193,6 +3259,7 @@
|
|
|
3193
3259
|
* Checkout the following snippet for the format of UpgradeNodeTx:
|
|
3194
3260
|
* ```json
|
|
3195
3261
|
{
|
|
3262
|
+
"height": 123,
|
|
3196
3263
|
"version": "abc",
|
|
3197
3264
|
"override": true
|
|
3198
3265
|
}
|
|
@@ -3200,7 +3267,7 @@
|
|
|
3200
3267
|
*
|
|
3201
3268
|
* @memberof GraphQLClient
|
|
3202
3269
|
* @typedef {object} GraphQLClient.UpgradeNodeTx
|
|
3203
|
-
* @property {
|
|
3270
|
+
* @property {number} height
|
|
3204
3271
|
* @property {string} version
|
|
3205
3272
|
* @property {boolean} override
|
|
3206
3273
|
*/
|
|
@@ -3303,8 +3370,8 @@
|
|
|
3303
3370
|
*
|
|
3304
3371
|
* @memberof GraphQLClient
|
|
3305
3372
|
* @typedef {object} GraphQLClient.Version
|
|
3306
|
-
* @property {
|
|
3307
|
-
* @property {
|
|
3373
|
+
* @property {number} block
|
|
3374
|
+
* @property {number} app
|
|
3308
3375
|
*/
|
|
3309
3376
|
|
|
3310
3377
|
/**
|