@ocap/client 1.13.46 → 1.13.50
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 +15 -2
- package/dist/bundle.js +3 -3
- package/dist/extension.js +11 -8
- package/dist/extension.js.map +1 -1
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +152 -13
- package/dist/schema/graphql.txt +2 -2
- package/dist/types.js +30 -4
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +30 -1
- package/docs/README.md +70 -40
- package/lib/base.js +1 -1
- package/lib/extension.js +11 -8
- package/lib/extension.js.map +1 -1
- package/lib/node.d.ts +15 -2
- package/lib/schema/graphql.json +152 -13
- package/lib/schema/graphql.txt +2 -2
- package/lib/types.js +30 -4
- package/lib/types.js.map +1 -1
- package/package.json +11 -11
package/docs/QUERIES.md
CHANGED
|
@@ -823,6 +823,13 @@
|
|
|
823
823
|
typeUrl
|
|
824
824
|
value
|
|
825
825
|
}
|
|
826
|
+
foreignToken {
|
|
827
|
+
chainId
|
|
828
|
+
chainName
|
|
829
|
+
chainType
|
|
830
|
+
contractAddress
|
|
831
|
+
type
|
|
832
|
+
}
|
|
826
833
|
}
|
|
827
834
|
}
|
|
828
835
|
}
|
|
@@ -2215,6 +2222,13 @@ No arguments
|
|
|
2215
2222
|
typeUrl
|
|
2216
2223
|
value
|
|
2217
2224
|
}
|
|
2225
|
+
foreignToken {
|
|
2226
|
+
chainId
|
|
2227
|
+
chainName
|
|
2228
|
+
chainType
|
|
2229
|
+
contractAddress
|
|
2230
|
+
type
|
|
2231
|
+
}
|
|
2218
2232
|
}
|
|
2219
2233
|
}
|
|
2220
2234
|
}
|
|
@@ -2662,6 +2676,13 @@ No arguments
|
|
|
2662
2676
|
typeUrl
|
|
2663
2677
|
value
|
|
2664
2678
|
}
|
|
2679
|
+
foreignToken {
|
|
2680
|
+
chainId
|
|
2681
|
+
chainName
|
|
2682
|
+
chainType
|
|
2683
|
+
contractAddress
|
|
2684
|
+
type
|
|
2685
|
+
}
|
|
2665
2686
|
seedValidators {
|
|
2666
2687
|
address
|
|
2667
2688
|
endpoint
|
|
@@ -2691,12 +2712,13 @@ No arguments
|
|
|
2691
2712
|
* **paging**, optional, null
|
|
2692
2713
|
* **tokenAddress**, optional, null
|
|
2693
2714
|
* **erc20TokenAddress**, optional, null
|
|
2715
|
+
* **foreignTokenAddress**, optional, null
|
|
2694
2716
|
|
|
2695
2717
|
#### Result Format
|
|
2696
2718
|
|
|
2697
2719
|
```graphql
|
|
2698
2720
|
{
|
|
2699
|
-
listRollups(tokenAddress: "abc", erc20TokenAddress: "abc") {
|
|
2721
|
+
listRollups(tokenAddress: "abc", erc20TokenAddress: "abc", foreignTokenAddress: "abc") {
|
|
2700
2722
|
code
|
|
2701
2723
|
page {
|
|
2702
2724
|
cursor
|
|
@@ -2741,6 +2763,13 @@ No arguments
|
|
|
2741
2763
|
typeUrl
|
|
2742
2764
|
value
|
|
2743
2765
|
}
|
|
2766
|
+
foreignToken {
|
|
2767
|
+
chainId
|
|
2768
|
+
chainName
|
|
2769
|
+
chainType
|
|
2770
|
+
contractAddress
|
|
2771
|
+
type
|
|
2772
|
+
}
|
|
2744
2773
|
seedValidators {
|
|
2745
2774
|
address
|
|
2746
2775
|
endpoint
|
package/docs/README.md
CHANGED
|
@@ -223,6 +223,7 @@ Please note that, due to internal implementation of google-protobuf, all `repeat
|
|
|
223
223
|
* [ExchangeInfoV2](#GraphQLClient.ExchangeInfoV2) : `object`
|
|
224
224
|
* [ExchangeTx](#GraphQLClient.ExchangeTx) : `object`
|
|
225
225
|
* [ExchangeV2Tx](#GraphQLClient.ExchangeV2Tx) : `object`
|
|
226
|
+
* [ForeignToken](#GraphQLClient.ForeignToken) : `object`
|
|
226
227
|
* [ForgeState](#GraphQLClient.ForgeState) : `object`
|
|
227
228
|
* [ForgeState_AccountConfigEntry](#GraphQLClient.ForgeState_AccountConfigEntry) : `object`
|
|
228
229
|
* [ForgeState_GasEntry](#GraphQLClient.ForgeState_GasEntry) : `object`
|
|
@@ -2152,11 +2153,12 @@ Structure of GraphQLClient.RequestListRollupsInput
|
|
|
2152
2153
|
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)
|
|
2153
2154
|
**Properties**
|
|
2154
2155
|
|
|
2155
|
-
| Name
|
|
2156
|
-
|
|
|
2157
|
-
| ...paging
|
|
2158
|
-
| tokenAddress
|
|
2159
|
-
| erc20TokenAddress
|
|
2156
|
+
| Name | Type |
|
|
2157
|
+
| ------------------- | --------------------------------------- |
|
|
2158
|
+
| ...paging | [`PageInput`](#GraphQLClient.PageInput) |
|
|
2159
|
+
| tokenAddress | `string` |
|
|
2160
|
+
| erc20TokenAddress | `string` |
|
|
2161
|
+
| foreignTokenAddress | `string` |
|
|
2160
2162
|
|
|
2161
2163
|
### GraphQLClient.RequestListStakesInput : `object`
|
|
2162
2164
|
|
|
@@ -2862,7 +2864,6 @@ Structure of GraphQLClient.CreateRollupTx
|
|
|
2862
2864
|
| -------------------- | ------------------------------------------ |
|
|
2863
2865
|
| address | `string` |
|
|
2864
2866
|
| tokenAddress | `string` |
|
|
2865
|
-
| erc20TokenAddress | `string` |
|
|
2866
2867
|
| contractAddress | `string` |
|
|
2867
2868
|
| seedValidators | `Array.<...GraphQLClient.RollupValidator>` |
|
|
2868
2869
|
| minStakeAmount | `string` |
|
|
@@ -2905,7 +2906,14 @@ Checkout the following snippet for the format of CreateTokenTx:
|
|
|
2905
2906
|
"icon": "abc",
|
|
2906
2907
|
"totalSupply": "abc",
|
|
2907
2908
|
"address": "abc",
|
|
2908
|
-
"
|
|
2909
|
+
"initialSupply": "abc",
|
|
2910
|
+
"foreignToken": {
|
|
2911
|
+
"type": "abc",
|
|
2912
|
+
"contractAddress": "abc",
|
|
2913
|
+
"chainType": "abc",
|
|
2914
|
+
"chainName": "abc",
|
|
2915
|
+
"chainId": 123
|
|
2916
|
+
},
|
|
2909
2917
|
"data": {
|
|
2910
2918
|
"typeUrl": "abc",
|
|
2911
2919
|
"value": "abc"
|
|
@@ -2916,18 +2924,19 @@ Checkout the following snippet for the format of CreateTokenTx:
|
|
|
2916
2924
|
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)
|
|
2917
2925
|
**Properties**
|
|
2918
2926
|
|
|
2919
|
-
| Name
|
|
2920
|
-
|
|
|
2921
|
-
| name
|
|
2922
|
-
| description
|
|
2923
|
-
| symbol
|
|
2924
|
-
| unit
|
|
2925
|
-
| decimal
|
|
2926
|
-
| icon
|
|
2927
|
-
| totalSupply
|
|
2928
|
-
| address
|
|
2929
|
-
|
|
|
2930
|
-
| ...
|
|
2927
|
+
| Name | Type |
|
|
2928
|
+
| --------------- | --------------------------------------------- |
|
|
2929
|
+
| name | `string` |
|
|
2930
|
+
| description | `string` |
|
|
2931
|
+
| symbol | `string` |
|
|
2932
|
+
| unit | `string` |
|
|
2933
|
+
| decimal | `number` |
|
|
2934
|
+
| icon | `string` |
|
|
2935
|
+
| totalSupply | `string` |
|
|
2936
|
+
| address | `string` |
|
|
2937
|
+
| initialSupply | `string` |
|
|
2938
|
+
| ...foreignToken | [`ForeignToken`](#GraphQLClient.ForeignToken) |
|
|
2939
|
+
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
2931
2940
|
|
|
2932
2941
|
### GraphQLClient.DeclareConfig : `object`
|
|
2933
2942
|
|
|
@@ -3162,6 +3171,21 @@ Structure of GraphQLClient.ExchangeV2Tx
|
|
|
3162
3171
|
| expiredAt | `string` |
|
|
3163
3172
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
3164
3173
|
|
|
3174
|
+
### GraphQLClient.ForeignToken : `object`
|
|
3175
|
+
|
|
3176
|
+
Structure of GraphQLClient.ForeignToken
|
|
3177
|
+
|
|
3178
|
+
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)
|
|
3179
|
+
**Properties**
|
|
3180
|
+
|
|
3181
|
+
| Name | Type |
|
|
3182
|
+
| --------------- | -------- |
|
|
3183
|
+
| type | `string` |
|
|
3184
|
+
| contractAddress | `string` |
|
|
3185
|
+
| chainType | `string` |
|
|
3186
|
+
| chainName | `string` |
|
|
3187
|
+
| chainId | `number` |
|
|
3188
|
+
|
|
3165
3189
|
### GraphQLClient.ForgeState : `object`
|
|
3166
3190
|
|
|
3167
3191
|
Structure of GraphQLClient.ForgeState
|
|
@@ -3498,6 +3522,7 @@ Structure of GraphQLClient.IndexedRollupState
|
|
|
3498
3522
|
| minWithdrawFee | `string` |
|
|
3499
3523
|
| maxWithdrawFee | `string` |
|
|
3500
3524
|
| paused | `boolean` |
|
|
3525
|
+
| ...foreignToken | [`ForeignToken`](#GraphQLClient.ForeignToken) |
|
|
3501
3526
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
3502
3527
|
|
|
3503
3528
|
### GraphQLClient.IndexedRollupValidator : `object`
|
|
@@ -3569,21 +3594,22 @@ Structure of GraphQLClient.IndexedTokenState
|
|
|
3569
3594
|
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)
|
|
3570
3595
|
**Properties**
|
|
3571
3596
|
|
|
3572
|
-
| Name | Type
|
|
3573
|
-
| -------------------- |
|
|
3574
|
-
| name | `string`
|
|
3575
|
-
| description | `string`
|
|
3576
|
-
| symbol | `string`
|
|
3577
|
-
| unit | `string`
|
|
3578
|
-
| decimal | `number`
|
|
3579
|
-
| issuer | `string`
|
|
3580
|
-
| icon | `string`
|
|
3581
|
-
| totalSupply | `string`
|
|
3582
|
-
| address | `string`
|
|
3583
|
-
| genesisTime | `string`
|
|
3584
|
-
| renaissanceTime | `string`
|
|
3585
|
-
| erc20ContractAddress | `string`
|
|
3586
|
-
| ...
|
|
3597
|
+
| Name | Type |
|
|
3598
|
+
| -------------------- | --------------------------------------------- |
|
|
3599
|
+
| name | `string` |
|
|
3600
|
+
| description | `string` |
|
|
3601
|
+
| symbol | `string` |
|
|
3602
|
+
| unit | `string` |
|
|
3603
|
+
| decimal | `number` |
|
|
3604
|
+
| issuer | `string` |
|
|
3605
|
+
| icon | `string` |
|
|
3606
|
+
| totalSupply | `string` |
|
|
3607
|
+
| address | `string` |
|
|
3608
|
+
| genesisTime | `string` |
|
|
3609
|
+
| renaissanceTime | `string` |
|
|
3610
|
+
| erc20ContractAddress | `string` |
|
|
3611
|
+
| ...foreignToken | [`ForeignToken`](#GraphQLClient.ForeignToken) |
|
|
3612
|
+
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
3587
3613
|
|
|
3588
3614
|
### GraphQLClient.IndexedTransaction : `object`
|
|
3589
3615
|
|
|
@@ -4432,6 +4458,7 @@ Structure of GraphQLClient.RollupState
|
|
|
4432
4458
|
| minWithdrawFee | `string` |
|
|
4433
4459
|
| maxWithdrawFee | `string` |
|
|
4434
4460
|
| paused | `boolean` |
|
|
4461
|
+
| ...foreignToken | [`ForeignToken`](#GraphQLClient.ForeignToken) |
|
|
4435
4462
|
| ...context | [`StateContext`](#GraphQLClient.StateContext) |
|
|
4436
4463
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
4437
4464
|
|
|
@@ -4644,6 +4671,7 @@ Structure of GraphQLClient.TokenState
|
|
|
4644
4671
|
| icon | `string` |
|
|
4645
4672
|
| totalSupply | `string` |
|
|
4646
4673
|
| erc20ContractAddress | `string` |
|
|
4674
|
+
| ...foreignToken | [`ForeignToken`](#GraphQLClient.ForeignToken) |
|
|
4647
4675
|
| ...context | [`StateContext`](#GraphQLClient.StateContext) |
|
|
4648
4676
|
| ...data | [`Any`](#GraphQLClient.Any) |
|
|
4649
4677
|
|
|
@@ -5671,18 +5699,20 @@ Checkout the following snippet for the format of ListRollupsParams:
|
|
|
5671
5699
|
```json
|
|
5672
5700
|
{
|
|
5673
5701
|
"tokenAddress": "abc",
|
|
5674
|
-
"erc20TokenAddress": "abc"
|
|
5702
|
+
"erc20TokenAddress": "abc",
|
|
5703
|
+
"foreignTokenAddress": "abc"
|
|
5675
5704
|
}
|
|
5676
5705
|
```
|
|
5677
5706
|
|
|
5678
5707
|
**Kind**: static typedef of [`GraphQLClient`](#GraphQLClient)
|
|
5679
5708
|
**Properties**
|
|
5680
5709
|
|
|
5681
|
-
| Name
|
|
5682
|
-
|
|
|
5683
|
-
| ...paging
|
|
5684
|
-
| tokenAddress
|
|
5685
|
-
| erc20TokenAddress
|
|
5710
|
+
| Name | Type |
|
|
5711
|
+
| ------------------- | --------------------------------------- |
|
|
5712
|
+
| ...paging | [`PageInput`](#GraphQLClient.PageInput) |
|
|
5713
|
+
| tokenAddress | `string` |
|
|
5714
|
+
| erc20TokenAddress | `string` |
|
|
5715
|
+
| foreignTokenAddress | `string` |
|
|
5686
5716
|
|
|
5687
5717
|
### GraphQLClient.GetRollupBlockParams : `object`
|
|
5688
5718
|
|