@ocap/client 1.18.142 → 1.18.144

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
@@ -39,6 +39,8 @@
39
39
  * [listDelegations](#listdelegations)
40
40
  * [search](#search)
41
41
  * [estimateGas](#estimategas)
42
+ * [listTokenFlows](#listtokenflows)
43
+ * [verifyAccountRisk](#verifyaccountrisk)
42
44
  * [Subscriptions](#subscriptions)
43
45
  * [Mutations](#mutations)
44
46
  * [sendTx](#sendtx)
@@ -2924,6 +2926,66 @@ No arguments
2924
2926
  }
2925
2927
  ```
2926
2928
 
2929
+ ### listTokenFlows
2930
+
2931
+ #### Arguments
2932
+
2933
+ * **accountAddress**, optional, null
2934
+ * **tokenAddress**, optional, null
2935
+ * **paging**, optional, null
2936
+ * **depth**, optional, null
2937
+ * **direction**, optional, null
2938
+
2939
+ #### Result Format
2940
+
2941
+ ```graphql
2942
+ {
2943
+ listTokenFlows(accountAddress: "abc", tokenAddress: "abc", depth: 123) {
2944
+ code
2945
+ data {
2946
+ from
2947
+ hash
2948
+ to
2949
+ value
2950
+ }
2951
+ page {
2952
+ cursor
2953
+ next
2954
+ total
2955
+ }
2956
+ }
2957
+ }
2958
+ ```
2959
+
2960
+ ### verifyAccountRisk
2961
+
2962
+ #### Arguments
2963
+
2964
+ * **accountAddress**, optional, null
2965
+ * **tokenAddress**, optional, null
2966
+
2967
+ #### Result Format
2968
+
2969
+ ```graphql
2970
+ {
2971
+ verifyAccountRisk(accountAddress: "abc", tokenAddress: "abc") {
2972
+ code
2973
+ data {
2974
+ isRisky
2975
+ reason
2976
+ data {
2977
+ accountCount
2978
+ address
2979
+ balance
2980
+ transferIn
2981
+ transferOut
2982
+ txCount
2983
+ }
2984
+ }
2985
+ }
2986
+ }
2987
+ ```
2988
+
2927
2989
 
2928
2990
  ## Subscriptions
2929
2991
 
package/docs/README.md CHANGED
@@ -148,6 +148,8 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
148
148
  * [listDelegations(params)](#GraphQLClient+listDelegations) ⇒ [`Promise.<ResponseListDelegations>`](#GraphQLClient.ResponseListDelegations)
149
149
  * [search(params)](#GraphQLClient+search) ⇒ [`Promise.<ResponseSearch>`](#GraphQLClient.ResponseSearch)
150
150
  * [estimateGas(params)](#GraphQLClient+estimateGas) ⇒ [`Promise.<ResponseEstimateGas>`](#GraphQLClient.ResponseEstimateGas)
151
+ * [listTokenFlows(params)](#GraphQLClient+listTokenFlows) ⇒ [`Promise.<ResponseListTokenFlows>`](#GraphQLClient.ResponseListTokenFlows)
152
+ * [verifyAccountRisk(params)](#GraphQLClient+verifyAccountRisk) ⇒ [`Promise.<ResponseVerifyAccountRisk>`](#GraphQLClient.ResponseVerifyAccountRisk)
151
153
  * [sendTx(params)](#GraphQLClient+sendTx) ⇒ [`Promise.<ResponseSendTx>`](#GraphQLClient.ResponseSendTx)
152
154
  * *static*
153
155
  * [WalletObject](#GraphQLClient.WalletObject) : `Object`
@@ -180,11 +182,13 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
180
182
  * [RequestListRollupValidatorsInput](#GraphQLClient.RequestListRollupValidatorsInput) : `object`
181
183
  * [RequestListRollupsInput](#GraphQLClient.RequestListRollupsInput) : `object`
182
184
  * [RequestListStakesInput](#GraphQLClient.RequestListStakesInput) : `object`
185
+ * [RequestListTokenFlowsInput](#GraphQLClient.RequestListTokenFlowsInput) : `object`
183
186
  * [RequestListTokensInput](#GraphQLClient.RequestListTokensInput) : `object`
184
187
  * [RequestListTopAccountsInput](#GraphQLClient.RequestListTopAccountsInput) : `object`
185
188
  * [RequestListTransactionsInput](#GraphQLClient.RequestListTransactionsInput) : `object`
186
189
  * [RequestSearchInput](#GraphQLClient.RequestSearchInput) : `object`
187
190
  * [RequestSendTxInput](#GraphQLClient.RequestSendTxInput) : `object`
191
+ * [RequestVerifyAccountRiskInput](#GraphQLClient.RequestVerifyAccountRiskInput) : `object`
188
192
  * [RollupFilterInput](#GraphQLClient.RollupFilterInput) : `object`
189
193
  * [StakeFilterInput](#GraphQLClient.StakeFilterInput) : `object`
190
194
  * [TimeFilterInput](#GraphQLClient.TimeFilterInput) : `object`
@@ -255,6 +259,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
255
259
  * [IndexedRollupState](#GraphQLClient.IndexedRollupState) : `object`
256
260
  * [IndexedRollupValidator](#GraphQLClient.IndexedRollupValidator) : `object`
257
261
  * [IndexedStakeState](#GraphQLClient.IndexedStakeState) : `object`
262
+ * [IndexedTokenFlow](#GraphQLClient.IndexedTokenFlow) : `object`
258
263
  * [IndexedTokenInput](#GraphQLClient.IndexedTokenInput) : `object`
259
264
  * [IndexedTokenState](#GraphQLClient.IndexedTokenState) : `object`
260
265
  * [IndexedTransaction](#GraphQLClient.IndexedTransaction) : `object`
@@ -308,11 +313,13 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
308
313
  * [ResponseListRollupValidators](#GraphQLClient.ResponseListRollupValidators) : `object`
309
314
  * [ResponseListRollups](#GraphQLClient.ResponseListRollups) : `object`
310
315
  * [ResponseListStakes](#GraphQLClient.ResponseListStakes) : `object`
316
+ * [ResponseListTokenFlows](#GraphQLClient.ResponseListTokenFlows) : `object`
311
317
  * [ResponseListTokens](#GraphQLClient.ResponseListTokens) : `object`
312
318
  * [ResponseListTopAccounts](#GraphQLClient.ResponseListTopAccounts) : `object`
313
319
  * [ResponseListTransactions](#GraphQLClient.ResponseListTransactions) : `object`
314
320
  * [ResponseSearch](#GraphQLClient.ResponseSearch) : `object`
315
321
  * [ResponseSendTx](#GraphQLClient.ResponseSendTx) : `object`
322
+ * [ResponseVerifyAccountRisk](#GraphQLClient.ResponseVerifyAccountRisk) : `object`
316
323
  * [ResumeRollupTx](#GraphQLClient.ResumeRollupTx) : `object`
317
324
  * [ReturnStakeTx](#GraphQLClient.ReturnStakeTx) : `object`
318
325
  * [RevokeDelegateTx](#GraphQLClient.RevokeDelegateTx) : `object`
@@ -352,6 +359,8 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
352
359
  * [ValidatorsInfo](#GraphQLClient.ValidatorsInfo) : `object`
353
360
  * [VariableInput](#GraphQLClient.VariableInput) : `object`
354
361
  * [VaultConfig](#GraphQLClient.VaultConfig) : `object`
362
+ * [VerifyAccountRiskResult](#GraphQLClient.VerifyAccountRiskResult) : `object`
363
+ * [VerifyAccountRiskResult\_BalanceRisky](#GraphQLClient.VerifyAccountRiskResult_BalanceRisky) : `object`
355
364
  * [Version](#GraphQLClient.Version) : `object`
356
365
  * [WalletType](#GraphQLClient.WalletType) : `object`
357
366
  * [WithdrawTokenV2Tx](#GraphQLClient.WithdrawTokenV2Tx) : `object`
@@ -385,6 +394,8 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
385
394
  * [ListDelegationsParams](#GraphQLClient.ListDelegationsParams) : `object`
386
395
  * [SearchParams](#GraphQLClient.SearchParams) : `object`
387
396
  * [EstimateGasParams](#GraphQLClient.EstimateGasParams) : `object`
397
+ * [ListTokenFlowsParams](#GraphQLClient.ListTokenFlowsParams) : `object`
398
+ * [VerifyAccountRiskParams](#GraphQLClient.VerifyAccountRiskParams) : `object`
388
399
  * [SendTxParams](#GraphQLClient.SendTxParams) : `object`
389
400
  * [AccountMigrateTxInput](#GraphQLClient.AccountMigrateTxInput) : `Object`
390
401
  * [AcquireAssetV2TxInput](#GraphQLClient.AcquireAssetV2TxInput) : `Object`
@@ -769,6 +780,8 @@ const methods = client.getQueries();
769
780
  // listDelegations,
770
781
  // search,
771
782
  // estimateGas,
783
+ // listTokenFlows,
784
+ // verifyAccountRisk,
772
785
  // ]
773
786
  ```
774
787
 
@@ -2013,6 +2026,28 @@ estimateGas
2013
2026
  | ------ | ------------------------------------------------------- |
2014
2027
  | params | [`EstimateGasParams`](#GraphQLClient.EstimateGasParams) |
2015
2028
 
2029
+ ### graphQLClient.listTokenFlows(params) ⇒ [`Promise.<ResponseListTokenFlows>`](#GraphQLClient.ResponseListTokenFlows)
2030
+
2031
+ listTokenFlows
2032
+
2033
+ **Kind**: instance method of [`GraphQLClient`](#GraphQLClient)\
2034
+ **Returns**: [`Promise.<ResponseListTokenFlows>`](#GraphQLClient.ResponseListTokenFlows) - Checkout [ResponseListTokenFlows](#GraphQLClient.ResponseListTokenFlows) for resolved data format
2035
+
2036
+ | Param | Type |
2037
+ | ------ | ------------------------------------------------------------- |
2038
+ | params | [`ListTokenFlowsParams`](#GraphQLClient.ListTokenFlowsParams) |
2039
+
2040
+ ### graphQLClient.verifyAccountRisk(params) ⇒ [`Promise.<ResponseVerifyAccountRisk>`](#GraphQLClient.ResponseVerifyAccountRisk)
2041
+
2042
+ verifyAccountRisk
2043
+
2044
+ **Kind**: instance method of [`GraphQLClient`](#GraphQLClient)\
2045
+ **Returns**: [`Promise.<ResponseVerifyAccountRisk>`](#GraphQLClient.ResponseVerifyAccountRisk) - Checkout [ResponseVerifyAccountRisk](#GraphQLClient.ResponseVerifyAccountRisk) for resolved data format
2046
+
2047
+ | Param | Type |
2048
+ | ------ | ------------------------------------------------------------------- |
2049
+ | params | [`VerifyAccountRiskParams`](#GraphQLClient.VerifyAccountRiskParams) |
2050
+
2016
2051
  ### graphQLClient.sendTx(params) ⇒ [`Promise.<ResponseSendTx>`](#GraphQLClient.ResponseSendTx)
2017
2052
 
2018
2053
  sendTx
@@ -2405,6 +2440,21 @@ Structure of GraphQLClient.RequestListStakesInput
2405
2440
  | ...timeFilter | [`TimeFilterInput`](#GraphQLClient.TimeFilterInput) |
2406
2441
  | ...assetFilter | [`AssetFilterInput`](#GraphQLClient.AssetFilterInput) |
2407
2442
 
2443
+ ### GraphQLClient.RequestListTokenFlowsInput : `object`
2444
+
2445
+ Structure of GraphQLClient.RequestListTokenFlowsInput
2446
+
2447
+ **Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
2448
+ **Properties**
2449
+
2450
+ | Name | Type |
2451
+ | -------------- | --------------------------------------- |
2452
+ | ...paging | [`PageInput`](#GraphQLClient.PageInput) |
2453
+ | accountAddress | `string` |
2454
+ | tokenAddress | `string` |
2455
+ | depth | `number` |
2456
+ | ...direction | `GraphQLClient.TokenFlowDirection` |
2457
+
2408
2458
  ### GraphQLClient.RequestListTokensInput : `object`
2409
2459
 
2410
2460
  Structure of GraphQLClient.RequestListTokensInput
@@ -2480,6 +2530,18 @@ Structure of GraphQLClient.RequestSendTxInput
2480
2530
  | token | `string` |
2481
2531
  | commit | `boolean` |
2482
2532
 
2533
+ ### GraphQLClient.RequestVerifyAccountRiskInput : `object`
2534
+
2535
+ Structure of GraphQLClient.RequestVerifyAccountRiskInput
2536
+
2537
+ **Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
2538
+ **Properties**
2539
+
2540
+ | Name | Type |
2541
+ | -------------- | -------- |
2542
+ | accountAddress | `string` |
2543
+ | tokenAddress | `string` |
2544
+
2483
2545
  ### GraphQLClient.RollupFilterInput : `object`
2484
2546
 
2485
2547
  Structure of GraphQLClient.RollupFilterInput
@@ -3840,6 +3902,20 @@ Structure of GraphQLClient.IndexedStakeState
3840
3902
  | nonce | `string` |
3841
3903
  | ...data | [`Any`](#GraphQLClient.Any) |
3842
3904
 
3905
+ ### GraphQLClient.IndexedTokenFlow : `object`
3906
+
3907
+ Structure of GraphQLClient.IndexedTokenFlow
3908
+
3909
+ **Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
3910
+ **Properties**
3911
+
3912
+ | Name | Type |
3913
+ | ----- | -------- |
3914
+ | value | `string` |
3915
+ | hash | `string` |
3916
+ | from | `string` |
3917
+ | to | `string` |
3918
+
3843
3919
  ### GraphQLClient.IndexedTokenInput : `object`
3844
3920
 
3845
3921
  Structure of GraphQLClient.IndexedTokenInput
@@ -4596,6 +4672,19 @@ Structure of GraphQLClient.ResponseListStakes
4596
4672
  | ...page | [`PageInfo`](#GraphQLClient.PageInfo) |
4597
4673
  | stakes | `Array.<...GraphQLClient.IndexedStakeState>` |
4598
4674
 
4675
+ ### GraphQLClient.ResponseListTokenFlows : `object`
4676
+
4677
+ Structure of GraphQLClient.ResponseListTokenFlows
4678
+
4679
+ **Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
4680
+ **Properties**
4681
+
4682
+ | Name | Type |
4683
+ | ------- | ------------------------------------------- |
4684
+ | code | `string` |
4685
+ | ...page | [`PageInfo`](#GraphQLClient.PageInfo) |
4686
+ | data | `Array.<...GraphQLClient.IndexedTokenFlow>` |
4687
+
4599
4688
  ### GraphQLClient.ResponseListTokens : `object`
4600
4689
 
4601
4690
  Structure of GraphQLClient.ResponseListTokens
@@ -4669,6 +4758,38 @@ Checkout the following snippet for the format of ResponseSendTx:
4669
4758
  | code | `string` |
4670
4759
  | hash | `string` |
4671
4760
 
4761
+ ### GraphQLClient.ResponseVerifyAccountRisk : `object`
4762
+
4763
+ Structure of GraphQLClient.ResponseVerifyAccountRisk
4764
+
4765
+ Checkout the following snippet for the format of ResponseVerifyAccountRisk:
4766
+
4767
+ ```json
4768
+ {
4769
+ "code": "abc",
4770
+ "data": {
4771
+ "isRisky": true,
4772
+ "reason": "abc",
4773
+ "data": {
4774
+ "address": "abc",
4775
+ "balance": "abc",
4776
+ "transferIn": "abc",
4777
+ "transferOut": "abc",
4778
+ "accountCount": 123,
4779
+ "txCount": 123
4780
+ }
4781
+ }
4782
+ }
4783
+ ```
4784
+
4785
+ **Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
4786
+ **Properties**
4787
+
4788
+ | Name | Type |
4789
+ | ------- | ------------------------------------------------------------------- |
4790
+ | code | `string` |
4791
+ | ...data | [`VerifyAccountRiskResult`](#GraphQLClient.VerifyAccountRiskResult) |
4792
+
4672
4793
  ### GraphQLClient.ResumeRollupTx : `object`
4673
4794
 
4674
4795
  Structure of GraphQLClient.ResumeRollupTx
@@ -5385,6 +5506,35 @@ Structure of GraphQLClient.VaultConfig
5385
5506
  | txFee | `string` |
5386
5507
  | txGas | `Array.<string>` |
5387
5508
 
5509
+ ### GraphQLClient.VerifyAccountRiskResult : `object`
5510
+
5511
+ Structure of GraphQLClient.VerifyAccountRiskResult
5512
+
5513
+ **Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
5514
+ **Properties**
5515
+
5516
+ | Name | Type |
5517
+ | ------- | ---------------------------------------------------------------------------------------------- |
5518
+ | isRisky | `boolean` |
5519
+ | reason | `string` |
5520
+ | ...data | [`VerifyAccountRiskResult\_BalanceRisky`](#GraphQLClient.VerifyAccountRiskResult_BalanceRisky) |
5521
+
5522
+ ### GraphQLClient.VerifyAccountRiskResult\_BalanceRisky : `object`
5523
+
5524
+ Structure of GraphQLClient.VerifyAccountRiskResult\_BalanceRisky
5525
+
5526
+ **Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
5527
+ **Properties**
5528
+
5529
+ | Name | Type |
5530
+ | ------------ | -------- |
5531
+ | address | `string` |
5532
+ | balance | `string` |
5533
+ | transferIn | `string` |
5534
+ | transferOut | `string` |
5535
+ | accountCount | `number` |
5536
+ | txCount | `number` |
5537
+
5388
5538
  ### GraphQLClient.Version : `object`
5389
5539
 
5390
5540
  Structure of GraphQLClient.Version
@@ -6113,6 +6263,53 @@ Checkout the following snippet for the format of EstimateGasParams:
6113
6263
  | typeUrl | `string` |
6114
6264
  | tx | `string` |
6115
6265
 
6266
+ ### GraphQLClient.ListTokenFlowsParams : `object`
6267
+
6268
+ Structure of GraphQLClient.ListTokenFlowsParams
6269
+
6270
+ Checkout the following snippet for the format of ListTokenFlowsParams:
6271
+
6272
+ ```json
6273
+ {
6274
+ "accountAddress": "abc",
6275
+ "tokenAddress": "abc",
6276
+ "depth": 123,
6277
+ "direction": "IN"
6278
+ }
6279
+ ```
6280
+
6281
+ **Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
6282
+ **Properties**
6283
+
6284
+ | Name | Type |
6285
+ | -------------- | --------------------------------------- |
6286
+ | accountAddress | `string` |
6287
+ | tokenAddress | `string` |
6288
+ | ...paging | [`PageInput`](#GraphQLClient.PageInput) |
6289
+ | depth | `number` |
6290
+ | ...direction | `GraphQLClient.TokenFlowDirection` |
6291
+
6292
+ ### GraphQLClient.VerifyAccountRiskParams : `object`
6293
+
6294
+ Structure of GraphQLClient.VerifyAccountRiskParams
6295
+
6296
+ Checkout the following snippet for the format of VerifyAccountRiskParams:
6297
+
6298
+ ```json
6299
+ {
6300
+ "accountAddress": "abc",
6301
+ "tokenAddress": "abc"
6302
+ }
6303
+ ```
6304
+
6305
+ **Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)\
6306
+ **Properties**
6307
+
6308
+ | Name | Type |
6309
+ | -------------- | -------- |
6310
+ | accountAddress | `string` |
6311
+ | tokenAddress | `string` |
6312
+
6116
6313
  ### GraphQLClient.SendTxParams : `object`
6117
6314
 
6118
6315
  Structure of GraphQLClient.SendTxParams