@ocap/client 1.21.3 → 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/docs/QUERIES.md CHANGED
@@ -11,6 +11,7 @@
11
11
  * [getTokenState](#gettokenstate)
12
12
  * [getEvidenceState](#getevidencestate)
13
13
  * [getForgeState](#getforgestate)
14
+ * [getTokenFactoryState](#gettokenfactorystate)
14
15
  * [getTx](#gettx)
15
16
  * [getBlock](#getblock)
16
17
  * [getBlocks](#getblocks)
@@ -42,6 +43,7 @@
42
43
  * [listTokenFlows](#listtokenflows)
43
44
  * [verifyAccountRisk](#verifyaccountrisk)
44
45
  * [getTokenDistribution](#gettokendistribution)
46
+ * [listTokenFactories](#listtokenfactories)
45
47
  * [Subscriptions](#subscriptions)
46
48
  * [Mutations](#mutations)
47
49
  * [sendTx](#sendtx)
@@ -744,6 +746,7 @@
744
746
  issuer
745
747
  name
746
748
  symbol
749
+ tokenFactoryAddress
747
750
  totalSupply
748
751
  unit
749
752
  context {
@@ -1090,6 +1093,389 @@
1090
1093
  }
1091
1094
  ```
1092
1095
 
1096
+ ### getTokenFactoryState
1097
+
1098
+ #### Arguments
1099
+
1100
+ * **address**, optional, null
1101
+
1102
+ #### Result Format
1103
+
1104
+ ```graphql
1105
+ {
1106
+ getTokenFactoryState(address: "abc") {
1107
+ code
1108
+ state {
1109
+ address
1110
+ currentSupply
1111
+ feeRate
1112
+ reserveAddress
1113
+ reserveBalance
1114
+ tokenAddress
1115
+ context {
1116
+ genesisTime
1117
+ renaissanceTime
1118
+ genesisTx {
1119
+ code
1120
+ hash
1121
+ height
1122
+ index
1123
+ receiver
1124
+ sender
1125
+ time
1126
+ receipts {
1127
+ address
1128
+ changes {
1129
+ action
1130
+ target
1131
+ value
1132
+ }
1133
+ }
1134
+ tags {
1135
+ key
1136
+ value
1137
+ }
1138
+ tokenSymbols {
1139
+ address
1140
+ decimal
1141
+ symbol
1142
+ unit
1143
+ }
1144
+ tx {
1145
+ chainId
1146
+ delegator
1147
+ from
1148
+ gasFee
1149
+ gasPaid
1150
+ itxJson
1151
+ nonce
1152
+ pk
1153
+ receiver
1154
+ sender
1155
+ serviceFee
1156
+ signature
1157
+ signatures {
1158
+ delegator
1159
+ pk
1160
+ signature
1161
+ signer
1162
+ data {
1163
+ typeUrl
1164
+ value
1165
+ }
1166
+ }
1167
+ }
1168
+ }
1169
+ renaissanceTx {
1170
+ code
1171
+ hash
1172
+ height
1173
+ index
1174
+ receiver
1175
+ sender
1176
+ time
1177
+ receipts {
1178
+ address
1179
+ changes {
1180
+ action
1181
+ target
1182
+ value
1183
+ }
1184
+ }
1185
+ tags {
1186
+ key
1187
+ value
1188
+ }
1189
+ tokenSymbols {
1190
+ address
1191
+ decimal
1192
+ symbol
1193
+ unit
1194
+ }
1195
+ tx {
1196
+ chainId
1197
+ delegator
1198
+ from
1199
+ gasFee
1200
+ gasPaid
1201
+ itxJson
1202
+ nonce
1203
+ pk
1204
+ receiver
1205
+ sender
1206
+ serviceFee
1207
+ signature
1208
+ signatures {
1209
+ delegator
1210
+ pk
1211
+ signature
1212
+ signer
1213
+ data {
1214
+ typeUrl
1215
+ value
1216
+ }
1217
+ }
1218
+ }
1219
+ }
1220
+ }
1221
+ curve {
1222
+ basePrice
1223
+ constant
1224
+ fixedPrice
1225
+ slope
1226
+ type
1227
+ }
1228
+ data {
1229
+ typeUrl
1230
+ value
1231
+ }
1232
+ reserveToken {
1233
+ address
1234
+ decimal
1235
+ description
1236
+ icon
1237
+ issuer
1238
+ name
1239
+ symbol
1240
+ tokenFactoryAddress
1241
+ totalSupply
1242
+ unit
1243
+ context {
1244
+ genesisTime
1245
+ renaissanceTime
1246
+ genesisTx {
1247
+ code
1248
+ hash
1249
+ height
1250
+ index
1251
+ receiver
1252
+ sender
1253
+ time
1254
+ receipts {
1255
+ address
1256
+ changes {
1257
+ action
1258
+ target
1259
+ value
1260
+ }
1261
+ }
1262
+ tags {
1263
+ key
1264
+ value
1265
+ }
1266
+ tokenSymbols {
1267
+ address
1268
+ decimal
1269
+ symbol
1270
+ unit
1271
+ }
1272
+ tx {
1273
+ chainId
1274
+ delegator
1275
+ from
1276
+ gasFee
1277
+ gasPaid
1278
+ itxJson
1279
+ nonce
1280
+ pk
1281
+ receiver
1282
+ sender
1283
+ serviceFee
1284
+ signature
1285
+ signatures {
1286
+ delegator
1287
+ pk
1288
+ signature
1289
+ signer
1290
+ }
1291
+ }
1292
+ }
1293
+ renaissanceTx {
1294
+ code
1295
+ hash
1296
+ height
1297
+ index
1298
+ receiver
1299
+ sender
1300
+ time
1301
+ receipts {
1302
+ address
1303
+ changes {
1304
+ action
1305
+ target
1306
+ value
1307
+ }
1308
+ }
1309
+ tags {
1310
+ key
1311
+ value
1312
+ }
1313
+ tokenSymbols {
1314
+ address
1315
+ decimal
1316
+ symbol
1317
+ unit
1318
+ }
1319
+ tx {
1320
+ chainId
1321
+ delegator
1322
+ from
1323
+ gasFee
1324
+ gasPaid
1325
+ itxJson
1326
+ nonce
1327
+ pk
1328
+ receiver
1329
+ sender
1330
+ serviceFee
1331
+ signature
1332
+ signatures {
1333
+ delegator
1334
+ pk
1335
+ signature
1336
+ signer
1337
+ }
1338
+ }
1339
+ }
1340
+ }
1341
+ data {
1342
+ typeUrl
1343
+ value
1344
+ }
1345
+ foreignToken {
1346
+ chainId
1347
+ chainName
1348
+ chainType
1349
+ contractAddress
1350
+ type
1351
+ }
1352
+ }
1353
+ token {
1354
+ address
1355
+ decimal
1356
+ description
1357
+ icon
1358
+ issuer
1359
+ name
1360
+ symbol
1361
+ tokenFactoryAddress
1362
+ totalSupply
1363
+ unit
1364
+ context {
1365
+ genesisTime
1366
+ renaissanceTime
1367
+ genesisTx {
1368
+ code
1369
+ hash
1370
+ height
1371
+ index
1372
+ receiver
1373
+ sender
1374
+ time
1375
+ receipts {
1376
+ address
1377
+ changes {
1378
+ action
1379
+ target
1380
+ value
1381
+ }
1382
+ }
1383
+ tags {
1384
+ key
1385
+ value
1386
+ }
1387
+ tokenSymbols {
1388
+ address
1389
+ decimal
1390
+ symbol
1391
+ unit
1392
+ }
1393
+ tx {
1394
+ chainId
1395
+ delegator
1396
+ from
1397
+ gasFee
1398
+ gasPaid
1399
+ itxJson
1400
+ nonce
1401
+ pk
1402
+ receiver
1403
+ sender
1404
+ serviceFee
1405
+ signature
1406
+ signatures {
1407
+ delegator
1408
+ pk
1409
+ signature
1410
+ signer
1411
+ }
1412
+ }
1413
+ }
1414
+ renaissanceTx {
1415
+ code
1416
+ hash
1417
+ height
1418
+ index
1419
+ receiver
1420
+ sender
1421
+ time
1422
+ receipts {
1423
+ address
1424
+ changes {
1425
+ action
1426
+ target
1427
+ value
1428
+ }
1429
+ }
1430
+ tags {
1431
+ key
1432
+ value
1433
+ }
1434
+ tokenSymbols {
1435
+ address
1436
+ decimal
1437
+ symbol
1438
+ unit
1439
+ }
1440
+ tx {
1441
+ chainId
1442
+ delegator
1443
+ from
1444
+ gasFee
1445
+ gasPaid
1446
+ itxJson
1447
+ nonce
1448
+ pk
1449
+ receiver
1450
+ sender
1451
+ serviceFee
1452
+ signature
1453
+ signatures {
1454
+ delegator
1455
+ pk
1456
+ signature
1457
+ signer
1458
+ }
1459
+ }
1460
+ }
1461
+ }
1462
+ data {
1463
+ typeUrl
1464
+ value
1465
+ }
1466
+ foreignToken {
1467
+ chainId
1468
+ chainName
1469
+ chainType
1470
+ contractAddress
1471
+ type
1472
+ }
1473
+ }
1474
+ }
1475
+ }
1476
+ }
1477
+ ```
1478
+
1093
1479
  ### getTx
1094
1480
 
1095
1481
  #### Arguments
@@ -1820,6 +2206,7 @@ No arguments
1820
2206
  * **rollupFilter**, optional, null
1821
2207
  * **stakeFilter**, optional, null
1822
2208
  * **delegationFilter**, optional, null
2209
+ * **tokenFactoryFilter**, optional, null
1823
2210
 
1824
2211
  #### Result Format
1825
2212
 
@@ -1912,6 +2299,7 @@ No arguments
1912
2299
  name
1913
2300
  renaissanceTime
1914
2301
  symbol
2302
+ tokenFactoryAddress
1915
2303
  totalSupply
1916
2304
  unit
1917
2305
  data {
@@ -3014,6 +3402,68 @@ No arguments
3014
3402
  }
3015
3403
  ```
3016
3404
 
3405
+ ### listTokenFactories
3406
+
3407
+ #### Arguments
3408
+
3409
+ * **tokenAddress**, optional, null
3410
+ * **reserveAddress**, optional, null
3411
+ * **owner**, optional, null
3412
+ * **paging**, optional, null
3413
+ * **timeFilter**, optional, null
3414
+
3415
+ #### Result Format
3416
+
3417
+ ```graphql
3418
+ {
3419
+ listTokenFactories(tokenAddress: "abc", reserveAddress: "abc", owner: "abc") {
3420
+ code
3421
+ page {
3422
+ cursor
3423
+ next
3424
+ total
3425
+ }
3426
+ tokenFactories {
3427
+ address
3428
+ currentSupply
3429
+ feeRate
3430
+ genesisTime
3431
+ owner
3432
+ renaissanceTime
3433
+ reserveAddress
3434
+ reserveBalance
3435
+ status
3436
+ tokenAddress
3437
+ curve {
3438
+ basePrice
3439
+ constant
3440
+ fixedPrice
3441
+ slope
3442
+ type
3443
+ }
3444
+ data {
3445
+ typeUrl
3446
+ value
3447
+ }
3448
+ reserveToken {
3449
+ address
3450
+ decimal
3451
+ symbol
3452
+ unit
3453
+ value
3454
+ }
3455
+ token {
3456
+ address
3457
+ decimal
3458
+ symbol
3459
+ unit
3460
+ value
3461
+ }
3462
+ }
3463
+ }
3464
+ }
3465
+ ```
3466
+
3017
3467
 
3018
3468
  ## Subscriptions
3019
3469