@ocap/client 1.19.2 → 1.19.4
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 +28 -0
- package/dist/bundle.js +1 -1
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +198 -0
- package/dist/schema/graphql.txt +2 -2
- package/dist/types.js +77 -0
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +28 -0
- package/docs/README.md +97 -0
- package/lib/base.js +1 -1
- package/lib/node.d.ts +28 -0
- package/lib/schema/graphql.json +198 -0
- package/lib/schema/graphql.txt +2 -2
- package/lib/types.js +77 -0
- package/lib/types.js.map +1 -1
- package/package.json +12 -12
package/dist/types.js
CHANGED
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
* // estimateGas,
|
|
48
48
|
* // listTokenFlows,
|
|
49
49
|
* // verifyAccountRisk,
|
|
50
|
+
* // getTokenDistribution,
|
|
50
51
|
* // ]
|
|
51
52
|
*/
|
|
52
53
|
|
|
@@ -297,6 +298,14 @@
|
|
|
297
298
|
* @property {number} height
|
|
298
299
|
*/
|
|
299
300
|
|
|
301
|
+
/**
|
|
302
|
+
* Structure of GraphQLClient.RequestGetTokenDistributionInput
|
|
303
|
+
*
|
|
304
|
+
* @memberof GraphQLClient
|
|
305
|
+
* @typedef {object} GraphQLClient.RequestGetTokenDistributionInput
|
|
306
|
+
* @property {string} tokenAddress
|
|
307
|
+
*/
|
|
308
|
+
|
|
300
309
|
/**
|
|
301
310
|
* Structure of GraphQLClient.RequestGetTxInput
|
|
302
311
|
*
|
|
@@ -2106,6 +2115,33 @@
|
|
|
2106
2115
|
* @property {...GraphQLClient.StakeState} state
|
|
2107
2116
|
*/
|
|
2108
2117
|
|
|
2118
|
+
/**
|
|
2119
|
+
* Structure of GraphQLClient.ResponseGetTokenDistribution
|
|
2120
|
+
*
|
|
2121
|
+
* Checkout the following snippet for the format of ResponseGetTokenDistribution:
|
|
2122
|
+
* ```json
|
|
2123
|
+
{
|
|
2124
|
+
"code": "abc",
|
|
2125
|
+
"data": {
|
|
2126
|
+
"tokenAddress": "abc",
|
|
2127
|
+
"txTime": "abc",
|
|
2128
|
+
"account": "abc",
|
|
2129
|
+
"gas": "abc",
|
|
2130
|
+
"fee": "abc",
|
|
2131
|
+
"slashedVault": "abc",
|
|
2132
|
+
"stake": "abc",
|
|
2133
|
+
"revokedStake": "abc",
|
|
2134
|
+
"gasStake": "abc"
|
|
2135
|
+
}
|
|
2136
|
+
}
|
|
2137
|
+
* ```
|
|
2138
|
+
*
|
|
2139
|
+
* @memberof GraphQLClient
|
|
2140
|
+
* @typedef {object} GraphQLClient.ResponseGetTokenDistribution
|
|
2141
|
+
* @property {string} code
|
|
2142
|
+
* @property {...GraphQLClient.TokenDistribution} data
|
|
2143
|
+
*/
|
|
2144
|
+
|
|
2109
2145
|
/**
|
|
2110
2146
|
* Structure of GraphQLClient.ResponseGetTokenState
|
|
2111
2147
|
*
|
|
@@ -2530,6 +2566,22 @@
|
|
|
2530
2566
|
* @property {string} renaissanceTime
|
|
2531
2567
|
*/
|
|
2532
2568
|
|
|
2569
|
+
/**
|
|
2570
|
+
* Structure of GraphQLClient.TokenDistribution
|
|
2571
|
+
*
|
|
2572
|
+
* @memberof GraphQLClient
|
|
2573
|
+
* @typedef {object} GraphQLClient.TokenDistribution
|
|
2574
|
+
* @property {string} tokenAddress
|
|
2575
|
+
* @property {string} txTime
|
|
2576
|
+
* @property {string} account
|
|
2577
|
+
* @property {string} gas
|
|
2578
|
+
* @property {string} fee
|
|
2579
|
+
* @property {string} slashedVault
|
|
2580
|
+
* @property {string} stake
|
|
2581
|
+
* @property {string} revokedStake
|
|
2582
|
+
* @property {string} gasStake
|
|
2583
|
+
*/
|
|
2584
|
+
|
|
2533
2585
|
/**
|
|
2534
2586
|
* Structure of GraphQLClient.TokenInfo
|
|
2535
2587
|
*
|
|
@@ -3583,6 +3635,21 @@
|
|
|
3583
3635
|
* @property {string} tokenAddress
|
|
3584
3636
|
*/
|
|
3585
3637
|
|
|
3638
|
+
/**
|
|
3639
|
+
* Structure of GraphQLClient.GetTokenDistributionParams
|
|
3640
|
+
*
|
|
3641
|
+
* Checkout the following snippet for the format of GetTokenDistributionParams:
|
|
3642
|
+
* ```json
|
|
3643
|
+
{
|
|
3644
|
+
"tokenAddress": "abc"
|
|
3645
|
+
}
|
|
3646
|
+
* ```
|
|
3647
|
+
*
|
|
3648
|
+
* @memberof GraphQLClient
|
|
3649
|
+
* @typedef {object} GraphQLClient.GetTokenDistributionParams
|
|
3650
|
+
* @property {string} tokenAddress
|
|
3651
|
+
*/
|
|
3652
|
+
|
|
3586
3653
|
/**
|
|
3587
3654
|
* Structure of GraphQLClient.SendTxParams
|
|
3588
3655
|
*
|
|
@@ -5266,6 +5333,16 @@
|
|
|
5266
5333
|
* @returns {Promise<GraphQLClient.ResponseVerifyAccountRisk>} Checkout {@link GraphQLClient.ResponseVerifyAccountRisk} for resolved data format
|
|
5267
5334
|
*/
|
|
5268
5335
|
|
|
5336
|
+
/**
|
|
5337
|
+
* getTokenDistribution
|
|
5338
|
+
*
|
|
5339
|
+
* @name GraphQLClient#getTokenDistribution
|
|
5340
|
+
* @param {GraphQLClient.GetTokenDistributionParams} params
|
|
5341
|
+
* @function
|
|
5342
|
+
* @memberof GraphQLClient
|
|
5343
|
+
* @returns {Promise<GraphQLClient.ResponseGetTokenDistribution>} Checkout {@link GraphQLClient.ResponseGetTokenDistribution} for resolved data format
|
|
5344
|
+
*/
|
|
5345
|
+
|
|
5269
5346
|
/**
|
|
5270
5347
|
* sendTx
|
|
5271
5348
|
*
|