@ocap/client 1.30.17 → 1.30.19
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 +66 -44
- package/dist/bundle.js +1 -1
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +6298 -6172
- package/dist/schema/graphql.txt +2 -2
- package/dist/types.js +219 -151
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +14 -101
- package/docs/README.md +1149 -1078
- package/lib/base.js +1 -1
- package/lib/node.d.ts +66 -44
- package/lib/schema/graphql.json +6298 -6172
- package/lib/schema/graphql.txt +2 -2
- package/lib/types.js +219 -151
- package/lib/types.js.map +1 -1
- package/package.json +11 -11
package/lib/node.d.ts
CHANGED
|
@@ -657,11 +657,6 @@ enum StatusCode {
|
|
|
657
657
|
TIMEOUT,
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
enum TokenFactoryStatus {
|
|
661
|
-
TOKEN_FACTORY_ACTIVE,
|
|
662
|
-
TOKEN_FACTORY_PAUSED,
|
|
663
|
-
}
|
|
664
|
-
|
|
665
660
|
enum TokenFlowDirection {
|
|
666
661
|
IN,
|
|
667
662
|
OUT,
|
|
@@ -747,7 +742,7 @@ interface RequestEstimateGasInput {
|
|
|
747
742
|
interface RequestGetAccountStateInput {
|
|
748
743
|
address: string;
|
|
749
744
|
keys: string[];
|
|
750
|
-
height:
|
|
745
|
+
height: number;
|
|
751
746
|
traceMigration: boolean;
|
|
752
747
|
}
|
|
753
748
|
|
|
@@ -757,7 +752,7 @@ interface RequestGetAccountTokensInput {
|
|
|
757
752
|
}
|
|
758
753
|
|
|
759
754
|
interface RequestGetBlockInput {
|
|
760
|
-
height:
|
|
755
|
+
height: number;
|
|
761
756
|
}
|
|
762
757
|
|
|
763
758
|
interface RequestGetBlocksInput {
|
|
@@ -776,14 +771,14 @@ interface RequestGetEvidenceStateInput {
|
|
|
776
771
|
|
|
777
772
|
interface RequestGetRollupBlockInput {
|
|
778
773
|
hash: string;
|
|
779
|
-
height:
|
|
774
|
+
height: number;
|
|
780
775
|
rollupAddress: string;
|
|
781
776
|
}
|
|
782
777
|
|
|
783
778
|
interface RequestGetStateInput {
|
|
784
779
|
address: string;
|
|
785
780
|
keys: string[];
|
|
786
|
-
height:
|
|
781
|
+
height: number;
|
|
787
782
|
}
|
|
788
783
|
|
|
789
784
|
interface RequestGetTokenDistributionInput {
|
|
@@ -1073,10 +1068,10 @@ interface AssetLimit {
|
|
|
1073
1068
|
address: string[];
|
|
1074
1069
|
to: string[];
|
|
1075
1070
|
txCount: number;
|
|
1076
|
-
validUntil:
|
|
1071
|
+
validUntil: number;
|
|
1077
1072
|
rate: GraphQLClient.RateLimit;
|
|
1078
1073
|
txSent: number;
|
|
1079
|
-
lastTx:
|
|
1074
|
+
lastTx: number;
|
|
1080
1075
|
}
|
|
1081
1076
|
|
|
1082
1077
|
interface AssetState {
|
|
@@ -1165,13 +1160,18 @@ interface ChainInfo {
|
|
|
1165
1160
|
votingPower: string;
|
|
1166
1161
|
totalTxs: string;
|
|
1167
1162
|
version: string;
|
|
1168
|
-
forgeAppsVersion:
|
|
1163
|
+
forgeAppsVersion: GraphQLClient.ChainInfo_ForgeAppsVersionEntry[];
|
|
1169
1164
|
supportedTxs: string[];
|
|
1170
1165
|
}
|
|
1171
1166
|
|
|
1167
|
+
interface ChainInfo_ForgeAppsVersionEntry {
|
|
1168
|
+
key: string;
|
|
1169
|
+
value: string;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
1172
|
interface ClaimBlockRewardTx {
|
|
1173
1173
|
rollup: string;
|
|
1174
|
-
blockHeight:
|
|
1174
|
+
blockHeight: number;
|
|
1175
1175
|
blockHash: string;
|
|
1176
1176
|
evidence: GraphQLClient.Evidence;
|
|
1177
1177
|
publisher: string;
|
|
@@ -1236,7 +1236,7 @@ interface CreateFactoryTx {
|
|
|
1236
1236
|
|
|
1237
1237
|
interface CreateRollupBlockTx {
|
|
1238
1238
|
hash: string;
|
|
1239
|
-
height:
|
|
1239
|
+
height: number;
|
|
1240
1240
|
merkleRoot: string;
|
|
1241
1241
|
previousHash: string;
|
|
1242
1242
|
txsHash: string;
|
|
@@ -1341,8 +1341,8 @@ interface DelegateOp {
|
|
|
1341
1341
|
|
|
1342
1342
|
interface DelegateOpState {
|
|
1343
1343
|
rule: string;
|
|
1344
|
-
numTxs:
|
|
1345
|
-
numTxsDelta:
|
|
1344
|
+
numTxs: number;
|
|
1345
|
+
numTxsDelta: number;
|
|
1346
1346
|
balance: string;
|
|
1347
1347
|
balanceDelta: string;
|
|
1348
1348
|
limit: GraphQLClient.DelegateLimit;
|
|
@@ -1350,21 +1350,26 @@ interface DelegateOpState {
|
|
|
1350
1350
|
|
|
1351
1351
|
interface DelegateState {
|
|
1352
1352
|
address: string;
|
|
1353
|
-
ops:
|
|
1353
|
+
ops: GraphQLClient.DelegateState_OpsEntry[];
|
|
1354
1354
|
from: string;
|
|
1355
1355
|
to: string;
|
|
1356
1356
|
deny: string[];
|
|
1357
|
-
validUntil:
|
|
1357
|
+
validUntil: number;
|
|
1358
1358
|
context: GraphQLClient.StateContext;
|
|
1359
1359
|
data: GraphQLClient.Any;
|
|
1360
1360
|
}
|
|
1361
1361
|
|
|
1362
|
+
interface DelegateState_OpsEntry {
|
|
1363
|
+
key: string;
|
|
1364
|
+
value: GraphQLClient.DelegateOpState;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1362
1367
|
interface DelegateTx {
|
|
1363
1368
|
address: string;
|
|
1364
1369
|
to: string;
|
|
1365
1370
|
ops: GraphQLClient.DelegateOp[];
|
|
1366
1371
|
deny: string[];
|
|
1367
|
-
validUntil:
|
|
1372
|
+
validUntil: number;
|
|
1368
1373
|
data: GraphQLClient.Any;
|
|
1369
1374
|
}
|
|
1370
1375
|
|
|
@@ -1426,7 +1431,7 @@ interface ForeignToken {
|
|
|
1426
1431
|
interface ForgeState {
|
|
1427
1432
|
address: string;
|
|
1428
1433
|
consensus: GraphQLClient.ConsensusParams;
|
|
1429
|
-
tasks:
|
|
1434
|
+
tasks: GraphQLClient.ForgeState_TasksEntry[];
|
|
1430
1435
|
version: string;
|
|
1431
1436
|
token: GraphQLClient.ForgeToken;
|
|
1432
1437
|
txConfig: GraphQLClient.TransactionConfig;
|
|
@@ -1437,6 +1442,11 @@ interface ForgeState {
|
|
|
1437
1442
|
data: GraphQLClient.Any;
|
|
1438
1443
|
}
|
|
1439
1444
|
|
|
1445
|
+
interface ForgeState_TasksEntry {
|
|
1446
|
+
key: number;
|
|
1447
|
+
value: GraphQLClient.UpgradeTasks;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1440
1450
|
interface ForgeStats {
|
|
1441
1451
|
numBlocks: string[];
|
|
1442
1452
|
numTxs: string[];
|
|
@@ -1533,10 +1543,15 @@ interface IndexedDelegationState {
|
|
|
1533
1543
|
to: string;
|
|
1534
1544
|
genesisTime: string;
|
|
1535
1545
|
renaissanceTime: string;
|
|
1536
|
-
ops:
|
|
1546
|
+
ops: GraphQLClient.IndexedDelegationState_OpsEntry[];
|
|
1537
1547
|
data: GraphQLClient.Any;
|
|
1538
1548
|
}
|
|
1539
1549
|
|
|
1550
|
+
interface IndexedDelegationState_OpsEntry {
|
|
1551
|
+
key: string;
|
|
1552
|
+
value: GraphQLClient.DelegateOpState;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1540
1555
|
interface IndexedFactoryInput {
|
|
1541
1556
|
value: string;
|
|
1542
1557
|
tokens: GraphQLClient.IndexedTokenInput[];
|
|
@@ -1567,7 +1582,7 @@ interface IndexedFactoryState {
|
|
|
1567
1582
|
|
|
1568
1583
|
interface IndexedRollupBlock {
|
|
1569
1584
|
hash: string;
|
|
1570
|
-
height:
|
|
1585
|
+
height: number;
|
|
1571
1586
|
merkleRoot: string;
|
|
1572
1587
|
previousHash: string;
|
|
1573
1588
|
txsHash: string;
|
|
@@ -1608,7 +1623,7 @@ interface IndexedRollupState {
|
|
|
1608
1623
|
proposerFeeShare: number;
|
|
1609
1624
|
minDepositAmount: string;
|
|
1610
1625
|
minWithdrawAmount: string;
|
|
1611
|
-
blockHeight:
|
|
1626
|
+
blockHeight: number;
|
|
1612
1627
|
blockHash: string;
|
|
1613
1628
|
minBlockConfirmation: number;
|
|
1614
1629
|
totalDepositAmount: string;
|
|
@@ -1644,9 +1659,9 @@ interface IndexedRollupValidator {
|
|
|
1644
1659
|
revokedStake: string;
|
|
1645
1660
|
availableStake: string;
|
|
1646
1661
|
totalGain: string;
|
|
1647
|
-
proposedBlockCount:
|
|
1648
|
-
verifiedBlockCount:
|
|
1649
|
-
latestBlockHeight:
|
|
1662
|
+
proposedBlockCount: number;
|
|
1663
|
+
verifiedBlockCount: number;
|
|
1664
|
+
latestBlockHeight: number;
|
|
1650
1665
|
latestBlockHash: string;
|
|
1651
1666
|
rollup: string;
|
|
1652
1667
|
}
|
|
@@ -1828,13 +1843,18 @@ interface NodeInfo {
|
|
|
1828
1843
|
votingPower: string;
|
|
1829
1844
|
totalTxs: string;
|
|
1830
1845
|
version: string;
|
|
1831
|
-
forgeAppsVersion:
|
|
1846
|
+
forgeAppsVersion: GraphQLClient.NodeInfo_ForgeAppsVersionEntry[];
|
|
1832
1847
|
supportedTxs: string[];
|
|
1833
1848
|
ip: string;
|
|
1834
1849
|
geoInfo: GraphQLClient.GeoInfo;
|
|
1835
1850
|
p2pAddress: string;
|
|
1836
1851
|
}
|
|
1837
1852
|
|
|
1853
|
+
interface NodeInfo_ForgeAppsVersionEntry {
|
|
1854
|
+
key: string;
|
|
1855
|
+
value: string;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1838
1858
|
interface PageInfo {
|
|
1839
1859
|
cursor: string;
|
|
1840
1860
|
next: boolean;
|
|
@@ -1866,8 +1886,8 @@ interface PubKey {
|
|
|
1866
1886
|
}
|
|
1867
1887
|
|
|
1868
1888
|
interface RateLimit {
|
|
1869
|
-
interval:
|
|
1870
|
-
anchor:
|
|
1889
|
+
interval: number;
|
|
1890
|
+
anchor: number;
|
|
1871
1891
|
}
|
|
1872
1892
|
|
|
1873
1893
|
interface ReceiptChange {
|
|
@@ -2125,7 +2145,7 @@ interface RevokeStakeTx {
|
|
|
2125
2145
|
|
|
2126
2146
|
interface RollupBlock {
|
|
2127
2147
|
hash: string;
|
|
2128
|
-
height:
|
|
2148
|
+
height: number;
|
|
2129
2149
|
merkleRoot: string;
|
|
2130
2150
|
previousHash: string;
|
|
2131
2151
|
txsHash: string;
|
|
@@ -2164,7 +2184,7 @@ interface RollupState {
|
|
|
2164
2184
|
publisherFeeShare: number;
|
|
2165
2185
|
minDepositAmount: string;
|
|
2166
2186
|
minWithdrawAmount: string;
|
|
2167
|
-
blockHeight:
|
|
2187
|
+
blockHeight: number;
|
|
2168
2188
|
blockHash: string;
|
|
2169
2189
|
tokenInfo: GraphQLClient.IndexedTokenInput;
|
|
2170
2190
|
totalDepositAmount: string;
|
|
@@ -2260,17 +2280,18 @@ interface TokenDistribution {
|
|
|
2260
2280
|
|
|
2261
2281
|
interface TokenFactoryState {
|
|
2262
2282
|
address: string;
|
|
2263
|
-
|
|
2283
|
+
owner: string;
|
|
2264
2284
|
tokenAddress: string;
|
|
2265
2285
|
reserveAddress: string;
|
|
2266
2286
|
curve: GraphQLClient.CurveConfig;
|
|
2267
2287
|
currentSupply: string;
|
|
2268
2288
|
reserveBalance: string;
|
|
2269
2289
|
feeRate: number;
|
|
2270
|
-
status:
|
|
2290
|
+
status: string;
|
|
2271
2291
|
token: GraphQLClient.TokenState;
|
|
2272
2292
|
reserveToken: GraphQLClient.TokenState;
|
|
2273
2293
|
context: GraphQLClient.StateContext;
|
|
2294
|
+
data: GraphQLClient.Any;
|
|
2274
2295
|
}
|
|
2275
2296
|
|
|
2276
2297
|
interface TokenInfo {
|
|
@@ -2300,11 +2321,11 @@ interface TokenLimit {
|
|
|
2300
2321
|
txCount: number;
|
|
2301
2322
|
txAllowance: string;
|
|
2302
2323
|
totalAllowance: string;
|
|
2303
|
-
validUntil:
|
|
2324
|
+
validUntil: number;
|
|
2304
2325
|
rate: GraphQLClient.RateLimit;
|
|
2305
2326
|
txSent: number;
|
|
2306
2327
|
spentAllowance: string;
|
|
2307
|
-
lastTx:
|
|
2328
|
+
lastTx: number;
|
|
2308
2329
|
decimal: number;
|
|
2309
2330
|
symbol: string;
|
|
2310
2331
|
}
|
|
@@ -2425,18 +2446,19 @@ interface TxFeeConfig {
|
|
|
2425
2446
|
}
|
|
2426
2447
|
|
|
2427
2448
|
interface TxGasConfig {
|
|
2428
|
-
price:
|
|
2429
|
-
createState:
|
|
2430
|
-
updateState:
|
|
2431
|
-
dataStorage:
|
|
2449
|
+
price: number;
|
|
2450
|
+
createState: number;
|
|
2451
|
+
updateState: number;
|
|
2452
|
+
dataStorage: number;
|
|
2432
2453
|
minStake: string;
|
|
2433
2454
|
maxStake: string;
|
|
2434
|
-
stakeLockPeriod:
|
|
2455
|
+
stakeLockPeriod: number;
|
|
2435
2456
|
}
|
|
2436
2457
|
|
|
2437
2458
|
interface TxStakeConfig {
|
|
2438
2459
|
createToken: string;
|
|
2439
|
-
|
|
2460
|
+
createCreditToken: string;
|
|
2461
|
+
createTokenLockPeriod: number;
|
|
2440
2462
|
}
|
|
2441
2463
|
|
|
2442
2464
|
interface UnconfirmedTxs {
|
|
@@ -2492,7 +2514,7 @@ interface UpgradeInfo {
|
|
|
2492
2514
|
}
|
|
2493
2515
|
|
|
2494
2516
|
interface UpgradeNodeTx {
|
|
2495
|
-
height:
|
|
2517
|
+
height: number;
|
|
2496
2518
|
version: string;
|
|
2497
2519
|
override: boolean;
|
|
2498
2520
|
}
|
|
@@ -2555,8 +2577,8 @@ interface VerifyAccountRiskResult_BalanceRisky {
|
|
|
2555
2577
|
}
|
|
2556
2578
|
|
|
2557
2579
|
interface Version {
|
|
2558
|
-
block:
|
|
2559
|
-
app:
|
|
2580
|
+
block: number;
|
|
2581
|
+
app: number;
|
|
2560
2582
|
}
|
|
2561
2583
|
|
|
2562
2584
|
interface WalletType {
|