@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/dist/base.js +1 -1
- package/dist/browser.d.ts +110 -0
- package/dist/bundle.js +1 -1
- package/dist/extension.js +137 -0
- package/dist/extension.js.map +1 -1
- package/dist/report.html +2 -2
- package/dist/schema/graphql.json +734 -92
- package/dist/schema/graphql.txt +2 -2
- package/dist/types.js +288 -0
- package/dist/types.js.map +1 -1
- package/docs/QUERIES.md +450 -0
- package/docs/README.md +417 -59
- package/lib/base.js +1 -1
- package/lib/extension.js +137 -0
- package/lib/extension.js.map +1 -1
- package/lib/node.d.ts +110 -0
- package/lib/schema/graphql.json +734 -92
- package/lib/schema/graphql.txt +2 -2
- package/lib/types.js +288 -0
- package/lib/types.js.map +1 -1
- package/package.json +14 -14
package/lib/types.js
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
* // getTokenState,
|
|
18
18
|
* // getEvidenceState,
|
|
19
19
|
* // getForgeState,
|
|
20
|
+
* // getTokenFactoryState,
|
|
20
21
|
* // getTx,
|
|
21
22
|
* // getBlock,
|
|
22
23
|
* // getBlocks,
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
* // listTokenFlows,
|
|
49
50
|
* // verifyAccountRisk,
|
|
50
51
|
* // getTokenDistribution,
|
|
52
|
+
* // listTokenFactories,
|
|
51
53
|
* // ]
|
|
52
54
|
*/
|
|
53
55
|
|
|
@@ -464,6 +466,7 @@
|
|
|
464
466
|
* @property {...GraphQLClient.RollupFilterInput} rollupFilter
|
|
465
467
|
* @property {...GraphQLClient.StakeFilterInput} stakeFilter
|
|
466
468
|
* @property {...GraphQLClient.DelegationFilterInput} delegationFilter
|
|
469
|
+
* @property {...GraphQLClient.TokenFactoryFilterInput} tokenFactoryFilter
|
|
467
470
|
*/
|
|
468
471
|
|
|
469
472
|
/**
|
|
@@ -522,6 +525,14 @@
|
|
|
522
525
|
* @property {string} field
|
|
523
526
|
*/
|
|
524
527
|
|
|
528
|
+
/**
|
|
529
|
+
* Structure of GraphQLClient.TokenFactoryFilterInput
|
|
530
|
+
*
|
|
531
|
+
* @memberof GraphQLClient
|
|
532
|
+
* @typedef {object} GraphQLClient.TokenFactoryFilterInput
|
|
533
|
+
* @property {Array<string>} tokenFactories
|
|
534
|
+
*/
|
|
535
|
+
|
|
525
536
|
/**
|
|
526
537
|
* Structure of GraphQLClient.TokenFilterInput
|
|
527
538
|
*
|
|
@@ -1111,6 +1122,18 @@
|
|
|
1111
1122
|
* @property {...GraphQLClient.Any} data
|
|
1112
1123
|
*/
|
|
1113
1124
|
|
|
1125
|
+
/**
|
|
1126
|
+
* Structure of GraphQLClient.CurveConfig
|
|
1127
|
+
*
|
|
1128
|
+
* @memberof GraphQLClient
|
|
1129
|
+
* @typedef {object} GraphQLClient.CurveConfig
|
|
1130
|
+
* @property {string} type
|
|
1131
|
+
* @property {string} basePrice
|
|
1132
|
+
* @property {string} fixedPrice
|
|
1133
|
+
* @property {string} slope
|
|
1134
|
+
* @property {number} constant
|
|
1135
|
+
*/
|
|
1136
|
+
|
|
1114
1137
|
/**
|
|
1115
1138
|
* Structure of GraphQLClient.DelegateConfig
|
|
1116
1139
|
*
|
|
@@ -1616,6 +1639,27 @@
|
|
|
1616
1639
|
* @property {...GraphQLClient.Any} data
|
|
1617
1640
|
*/
|
|
1618
1641
|
|
|
1642
|
+
/**
|
|
1643
|
+
* Structure of GraphQLClient.IndexedTokenFactoryState
|
|
1644
|
+
*
|
|
1645
|
+
* @memberof GraphQLClient
|
|
1646
|
+
* @typedef {object} GraphQLClient.IndexedTokenFactoryState
|
|
1647
|
+
* @property {string} address
|
|
1648
|
+
* @property {string} owner
|
|
1649
|
+
* @property {string} tokenAddress
|
|
1650
|
+
* @property {string} reserveAddress
|
|
1651
|
+
* @property {...GraphQLClient.CurveConfig} curve
|
|
1652
|
+
* @property {number} feeRate
|
|
1653
|
+
* @property {string} currentSupply
|
|
1654
|
+
* @property {string} reserveBalance
|
|
1655
|
+
* @property {string} status
|
|
1656
|
+
* @property {string} genesisTime
|
|
1657
|
+
* @property {string} renaissanceTime
|
|
1658
|
+
* @property {...GraphQLClient.IndexedTokenInput} token
|
|
1659
|
+
* @property {...GraphQLClient.IndexedTokenInput} reserveToken
|
|
1660
|
+
* @property {...GraphQLClient.Any} data
|
|
1661
|
+
*/
|
|
1662
|
+
|
|
1619
1663
|
/**
|
|
1620
1664
|
* Structure of GraphQLClient.IndexedTokenFlow
|
|
1621
1665
|
*
|
|
@@ -1656,6 +1700,7 @@
|
|
|
1656
1700
|
* @property {string} genesisTime
|
|
1657
1701
|
* @property {string} renaissanceTime
|
|
1658
1702
|
* @property {...GraphQLClient.ForeignToken} foreignToken
|
|
1703
|
+
* @property {string} tokenFactoryAddress
|
|
1659
1704
|
* @property {...GraphQLClient.Any} data
|
|
1660
1705
|
*/
|
|
1661
1706
|
|
|
@@ -2120,6 +2165,15 @@
|
|
|
2120
2165
|
* @property {...GraphQLClient.TokenDistribution} data
|
|
2121
2166
|
*/
|
|
2122
2167
|
|
|
2168
|
+
/**
|
|
2169
|
+
* Structure of GraphQLClient.ResponseGetTokenFactoryState
|
|
2170
|
+
*
|
|
2171
|
+
* @memberof GraphQLClient
|
|
2172
|
+
* @typedef {object} GraphQLClient.ResponseGetTokenFactoryState
|
|
2173
|
+
* @property {string} code
|
|
2174
|
+
* @property {...GraphQLClient.TokenFactoryState} state
|
|
2175
|
+
*/
|
|
2176
|
+
|
|
2123
2177
|
/**
|
|
2124
2178
|
* Structure of GraphQLClient.ResponseGetTokenState
|
|
2125
2179
|
*
|
|
@@ -2247,6 +2301,16 @@
|
|
|
2247
2301
|
* @property {Array<...GraphQLClient.IndexedStakeState>} stakes
|
|
2248
2302
|
*/
|
|
2249
2303
|
|
|
2304
|
+
/**
|
|
2305
|
+
* Structure of GraphQLClient.ResponseListTokenFactories
|
|
2306
|
+
*
|
|
2307
|
+
* @memberof GraphQLClient
|
|
2308
|
+
* @typedef {object} GraphQLClient.ResponseListTokenFactories
|
|
2309
|
+
* @property {string} code
|
|
2310
|
+
* @property {...GraphQLClient.PageInfo} page
|
|
2311
|
+
* @property {Array<...GraphQLClient.IndexedTokenFactoryState>} tokenFactories
|
|
2312
|
+
*/
|
|
2313
|
+
|
|
2250
2314
|
/**
|
|
2251
2315
|
* Structure of GraphQLClient.ResponseListTokenFlows
|
|
2252
2316
|
*
|
|
@@ -2560,6 +2624,24 @@
|
|
|
2560
2624
|
* @property {string} gasStake
|
|
2561
2625
|
*/
|
|
2562
2626
|
|
|
2627
|
+
/**
|
|
2628
|
+
* Structure of GraphQLClient.TokenFactoryState
|
|
2629
|
+
*
|
|
2630
|
+
* @memberof GraphQLClient
|
|
2631
|
+
* @typedef {object} GraphQLClient.TokenFactoryState
|
|
2632
|
+
* @property {string} address
|
|
2633
|
+
* @property {string} tokenAddress
|
|
2634
|
+
* @property {string} reserveAddress
|
|
2635
|
+
* @property {string} currentSupply
|
|
2636
|
+
* @property {string} reserveBalance
|
|
2637
|
+
* @property {number} feeRate
|
|
2638
|
+
* @property {...GraphQLClient.CurveConfig} curve
|
|
2639
|
+
* @property {...GraphQLClient.StateContext} context
|
|
2640
|
+
* @property {...GraphQLClient.TokenState} token
|
|
2641
|
+
* @property {...GraphQLClient.TokenState} reserveToken
|
|
2642
|
+
* @property {...GraphQLClient.Any} data
|
|
2643
|
+
*/
|
|
2644
|
+
|
|
2563
2645
|
/**
|
|
2564
2646
|
* Structure of GraphQLClient.TokenInfo
|
|
2565
2647
|
*
|
|
@@ -2615,6 +2697,7 @@
|
|
|
2615
2697
|
* @property {string} icon
|
|
2616
2698
|
* @property {string} totalSupply
|
|
2617
2699
|
* @property {...GraphQLClient.ForeignToken} foreignToken
|
|
2700
|
+
* @property {string} tokenFactoryAddress
|
|
2618
2701
|
* @property {...GraphQLClient.StateContext} context
|
|
2619
2702
|
* @property {...GraphQLClient.Any} data
|
|
2620
2703
|
*/
|
|
@@ -3158,6 +3241,21 @@
|
|
|
3158
3241
|
* @property {Array<string>} keys
|
|
3159
3242
|
*/
|
|
3160
3243
|
|
|
3244
|
+
/**
|
|
3245
|
+
* Structure of GraphQLClient.GetTokenFactoryStateParams
|
|
3246
|
+
*
|
|
3247
|
+
* Checkout the following snippet for the format of GetTokenFactoryStateParams:
|
|
3248
|
+
* ```json
|
|
3249
|
+
{
|
|
3250
|
+
"address": "abc"
|
|
3251
|
+
}
|
|
3252
|
+
* ```
|
|
3253
|
+
*
|
|
3254
|
+
* @memberof GraphQLClient
|
|
3255
|
+
* @typedef {object} GraphQLClient.GetTokenFactoryStateParams
|
|
3256
|
+
* @property {string} address
|
|
3257
|
+
*/
|
|
3258
|
+
|
|
3161
3259
|
/**
|
|
3162
3260
|
* Structure of GraphQLClient.GetTxParams
|
|
3163
3261
|
*
|
|
@@ -3328,6 +3426,7 @@
|
|
|
3328
3426
|
* @property {...GraphQLClient.RollupFilterInput} rollupFilter
|
|
3329
3427
|
* @property {...GraphQLClient.StakeFilterInput} stakeFilter
|
|
3330
3428
|
* @property {...GraphQLClient.DelegationFilterInput} delegationFilter
|
|
3429
|
+
* @property {...GraphQLClient.TokenFactoryFilterInput} tokenFactoryFilter
|
|
3331
3430
|
*/
|
|
3332
3431
|
|
|
3333
3432
|
/**
|
|
@@ -3628,6 +3727,27 @@
|
|
|
3628
3727
|
* @property {string} tokenAddress
|
|
3629
3728
|
*/
|
|
3630
3729
|
|
|
3730
|
+
/**
|
|
3731
|
+
* Structure of GraphQLClient.ListTokenFactoriesParams
|
|
3732
|
+
*
|
|
3733
|
+
* Checkout the following snippet for the format of ListTokenFactoriesParams:
|
|
3734
|
+
* ```json
|
|
3735
|
+
{
|
|
3736
|
+
"tokenAddress": "abc",
|
|
3737
|
+
"reserveAddress": "abc",
|
|
3738
|
+
"owner": "abc"
|
|
3739
|
+
}
|
|
3740
|
+
* ```
|
|
3741
|
+
*
|
|
3742
|
+
* @memberof GraphQLClient
|
|
3743
|
+
* @typedef {object} GraphQLClient.ListTokenFactoriesParams
|
|
3744
|
+
* @property {string} tokenAddress
|
|
3745
|
+
* @property {string} reserveAddress
|
|
3746
|
+
* @property {string} owner
|
|
3747
|
+
* @property {...GraphQLClient.PageInput} paging
|
|
3748
|
+
* @property {...GraphQLClient.TimeFilterInput} timeFilter
|
|
3749
|
+
*/
|
|
3750
|
+
|
|
3631
3751
|
/**
|
|
3632
3752
|
* Structure of GraphQLClient.SendTxParams
|
|
3633
3753
|
*
|
|
@@ -3732,6 +3852,33 @@
|
|
|
3732
3852
|
* @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
|
|
3733
3853
|
*/
|
|
3734
3854
|
|
|
3855
|
+
/**
|
|
3856
|
+
* @memberof GraphQLClient
|
|
3857
|
+
* @typedef {Object} GraphQLClient.BurnTokenTxInput
|
|
3858
|
+
* @prop {object} input
|
|
3859
|
+
* @prop {object} input.tx - data of the transaction
|
|
3860
|
+
* @prop {GraphQLClient.BurnTokenTx} input.tx.itx - the actual transaction object
|
|
3861
|
+
* @prop {string} [input.tx.pk] - the sender pk
|
|
3862
|
+
* @prop {string} [input.tx.from] - the sender address, can be derived from wallet
|
|
3863
|
+
* @prop {number} [input.tx.nonce] - the tx nonce, defaults to Date.now if not set
|
|
3864
|
+
* @prop {string} [input.tx.chainId] - the chainId
|
|
3865
|
+
* @prop {string} [input.tx.signature] - transaction signature
|
|
3866
|
+
* @prop {array} [input.tx.signatures] - transaction signatures, should be set when it's a multisig transaction
|
|
3867
|
+
* @prop {object} input.wallet - the wallet used to sign the transaction, either a forge managed wallet or user managed wallet
|
|
3868
|
+
* @prop {string} [input.signature] - the signature of the tx, if this parameter exist, we will not sign the transaction
|
|
3869
|
+
*/
|
|
3870
|
+
|
|
3871
|
+
/**
|
|
3872
|
+
* Send BurnTokenTx transaction and get the hash, use {@link GraphQLClient#getTx} to get transaction detail
|
|
3873
|
+
*
|
|
3874
|
+
* @memberof GraphQLClient
|
|
3875
|
+
* @function
|
|
3876
|
+
* @name GraphQLClient#sendBurnTokenTx
|
|
3877
|
+
* @param {GraphQLClient.BurnTokenTxInput} params
|
|
3878
|
+
* @param {object} extra
|
|
3879
|
+
* @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
|
|
3880
|
+
*/
|
|
3881
|
+
|
|
3735
3882
|
/**
|
|
3736
3883
|
* @memberof GraphQLClient
|
|
3737
3884
|
* @typedef {Object} GraphQLClient.ClaimBlockRewardTxInput
|
|
@@ -3948,6 +4095,33 @@
|
|
|
3948
4095
|
* @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
|
|
3949
4096
|
*/
|
|
3950
4097
|
|
|
4098
|
+
/**
|
|
4099
|
+
* @memberof GraphQLClient
|
|
4100
|
+
* @typedef {Object} GraphQLClient.CreateTokenFactoryTxInput
|
|
4101
|
+
* @prop {object} input
|
|
4102
|
+
* @prop {object} input.tx - data of the transaction
|
|
4103
|
+
* @prop {GraphQLClient.CreateTokenFactoryTx} input.tx.itx - the actual transaction object
|
|
4104
|
+
* @prop {string} [input.tx.pk] - the sender pk
|
|
4105
|
+
* @prop {string} [input.tx.from] - the sender address, can be derived from wallet
|
|
4106
|
+
* @prop {number} [input.tx.nonce] - the tx nonce, defaults to Date.now if not set
|
|
4107
|
+
* @prop {string} [input.tx.chainId] - the chainId
|
|
4108
|
+
* @prop {string} [input.tx.signature] - transaction signature
|
|
4109
|
+
* @prop {array} [input.tx.signatures] - transaction signatures, should be set when it's a multisig transaction
|
|
4110
|
+
* @prop {object} input.wallet - the wallet used to sign the transaction, either a forge managed wallet or user managed wallet
|
|
4111
|
+
* @prop {string} [input.signature] - the signature of the tx, if this parameter exist, we will not sign the transaction
|
|
4112
|
+
*/
|
|
4113
|
+
|
|
4114
|
+
/**
|
|
4115
|
+
* Send CreateTokenFactoryTx transaction and get the hash, use {@link GraphQLClient#getTx} to get transaction detail
|
|
4116
|
+
*
|
|
4117
|
+
* @memberof GraphQLClient
|
|
4118
|
+
* @function
|
|
4119
|
+
* @name GraphQLClient#sendCreateTokenFactoryTx
|
|
4120
|
+
* @param {GraphQLClient.CreateTokenFactoryTxInput} params
|
|
4121
|
+
* @param {object} extra
|
|
4122
|
+
* @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
|
|
4123
|
+
*/
|
|
4124
|
+
|
|
3951
4125
|
/**
|
|
3952
4126
|
* @memberof GraphQLClient
|
|
3953
4127
|
* @typedef {Object} GraphQLClient.CreateTokenTxInput
|
|
@@ -4191,6 +4365,33 @@
|
|
|
4191
4365
|
* @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
|
|
4192
4366
|
*/
|
|
4193
4367
|
|
|
4368
|
+
/**
|
|
4369
|
+
* @memberof GraphQLClient
|
|
4370
|
+
* @typedef {Object} GraphQLClient.MintTokenTxInput
|
|
4371
|
+
* @prop {object} input
|
|
4372
|
+
* @prop {object} input.tx - data of the transaction
|
|
4373
|
+
* @prop {GraphQLClient.MintTokenTx} input.tx.itx - the actual transaction object
|
|
4374
|
+
* @prop {string} [input.tx.pk] - the sender pk
|
|
4375
|
+
* @prop {string} [input.tx.from] - the sender address, can be derived from wallet
|
|
4376
|
+
* @prop {number} [input.tx.nonce] - the tx nonce, defaults to Date.now if not set
|
|
4377
|
+
* @prop {string} [input.tx.chainId] - the chainId
|
|
4378
|
+
* @prop {string} [input.tx.signature] - transaction signature
|
|
4379
|
+
* @prop {array} [input.tx.signatures] - transaction signatures, should be set when it's a multisig transaction
|
|
4380
|
+
* @prop {object} input.wallet - the wallet used to sign the transaction, either a forge managed wallet or user managed wallet
|
|
4381
|
+
* @prop {string} [input.signature] - the signature of the tx, if this parameter exist, we will not sign the transaction
|
|
4382
|
+
*/
|
|
4383
|
+
|
|
4384
|
+
/**
|
|
4385
|
+
* Send MintTokenTx transaction and get the hash, use {@link GraphQLClient#getTx} to get transaction detail
|
|
4386
|
+
*
|
|
4387
|
+
* @memberof GraphQLClient
|
|
4388
|
+
* @function
|
|
4389
|
+
* @name GraphQLClient#sendMintTokenTx
|
|
4390
|
+
* @param {GraphQLClient.MintTokenTxInput} params
|
|
4391
|
+
* @param {object} extra
|
|
4392
|
+
* @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
|
|
4393
|
+
*/
|
|
4394
|
+
|
|
4194
4395
|
/**
|
|
4195
4396
|
* @memberof GraphQLClient
|
|
4196
4397
|
* @typedef {Object} GraphQLClient.PauseRollupTxInput
|
|
@@ -4515,6 +4716,33 @@
|
|
|
4515
4716
|
* @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
|
|
4516
4717
|
*/
|
|
4517
4718
|
|
|
4719
|
+
/**
|
|
4720
|
+
* @memberof GraphQLClient
|
|
4721
|
+
* @typedef {Object} GraphQLClient.UpdateTokenFactoryTxInput
|
|
4722
|
+
* @prop {object} input
|
|
4723
|
+
* @prop {object} input.tx - data of the transaction
|
|
4724
|
+
* @prop {GraphQLClient.UpdateTokenFactoryTx} input.tx.itx - the actual transaction object
|
|
4725
|
+
* @prop {string} [input.tx.pk] - the sender pk
|
|
4726
|
+
* @prop {string} [input.tx.from] - the sender address, can be derived from wallet
|
|
4727
|
+
* @prop {number} [input.tx.nonce] - the tx nonce, defaults to Date.now if not set
|
|
4728
|
+
* @prop {string} [input.tx.chainId] - the chainId
|
|
4729
|
+
* @prop {string} [input.tx.signature] - transaction signature
|
|
4730
|
+
* @prop {array} [input.tx.signatures] - transaction signatures, should be set when it's a multisig transaction
|
|
4731
|
+
* @prop {object} input.wallet - the wallet used to sign the transaction, either a forge managed wallet or user managed wallet
|
|
4732
|
+
* @prop {string} [input.signature] - the signature of the tx, if this parameter exist, we will not sign the transaction
|
|
4733
|
+
*/
|
|
4734
|
+
|
|
4735
|
+
/**
|
|
4736
|
+
* Send UpdateTokenFactoryTx transaction and get the hash, use {@link GraphQLClient#getTx} to get transaction detail
|
|
4737
|
+
*
|
|
4738
|
+
* @memberof GraphQLClient
|
|
4739
|
+
* @function
|
|
4740
|
+
* @name GraphQLClient#sendUpdateTokenFactoryTx
|
|
4741
|
+
* @param {GraphQLClient.UpdateTokenFactoryTxInput} params
|
|
4742
|
+
* @param {object} extra
|
|
4743
|
+
* @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
|
|
4744
|
+
*/
|
|
4745
|
+
|
|
4518
4746
|
/**
|
|
4519
4747
|
* @memberof GraphQLClient
|
|
4520
4748
|
* @typedef {Object} GraphQLClient.UpgradeNodeTxInput
|
|
@@ -4599,6 +4827,16 @@
|
|
|
4599
4827
|
* @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
4600
4828
|
*/
|
|
4601
4829
|
|
|
4830
|
+
/**
|
|
4831
|
+
* Encode a BurnTokenTx transaction for later use
|
|
4832
|
+
*
|
|
4833
|
+
* @name GraphQLClient#encodeBurnTokenTx
|
|
4834
|
+
* @function
|
|
4835
|
+
* @memberof GraphQLClient
|
|
4836
|
+
* @param {GraphQLClient.BurnTokenTxInput} params
|
|
4837
|
+
* @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
4838
|
+
*/
|
|
4839
|
+
|
|
4602
4840
|
/**
|
|
4603
4841
|
* Encode a ClaimBlockRewardTx transaction for later use
|
|
4604
4842
|
*
|
|
@@ -4679,6 +4917,16 @@
|
|
|
4679
4917
|
* @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
4680
4918
|
*/
|
|
4681
4919
|
|
|
4920
|
+
/**
|
|
4921
|
+
* Encode a CreateTokenFactoryTx transaction for later use
|
|
4922
|
+
*
|
|
4923
|
+
* @name GraphQLClient#encodeCreateTokenFactoryTx
|
|
4924
|
+
* @function
|
|
4925
|
+
* @memberof GraphQLClient
|
|
4926
|
+
* @param {GraphQLClient.CreateTokenFactoryTxInput} params
|
|
4927
|
+
* @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
4928
|
+
*/
|
|
4929
|
+
|
|
4682
4930
|
/**
|
|
4683
4931
|
* Encode a CreateTokenTx transaction for later use
|
|
4684
4932
|
*
|
|
@@ -4769,6 +5017,16 @@
|
|
|
4769
5017
|
* @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
4770
5018
|
*/
|
|
4771
5019
|
|
|
5020
|
+
/**
|
|
5021
|
+
* Encode a MintTokenTx transaction for later use
|
|
5022
|
+
*
|
|
5023
|
+
* @name GraphQLClient#encodeMintTokenTx
|
|
5024
|
+
* @function
|
|
5025
|
+
* @memberof GraphQLClient
|
|
5026
|
+
* @param {GraphQLClient.MintTokenTxInput} params
|
|
5027
|
+
* @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
5028
|
+
*/
|
|
5029
|
+
|
|
4772
5030
|
/**
|
|
4773
5031
|
* Encode a PauseRollupTx transaction for later use
|
|
4774
5032
|
*
|
|
@@ -4889,6 +5147,16 @@
|
|
|
4889
5147
|
* @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
4890
5148
|
*/
|
|
4891
5149
|
|
|
5150
|
+
/**
|
|
5151
|
+
* Encode a UpdateTokenFactoryTx transaction for later use
|
|
5152
|
+
*
|
|
5153
|
+
* @name GraphQLClient#encodeUpdateTokenFactoryTx
|
|
5154
|
+
* @function
|
|
5155
|
+
* @memberof GraphQLClient
|
|
5156
|
+
* @param {GraphQLClient.UpdateTokenFactoryTxInput} params
|
|
5157
|
+
* @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
|
|
5158
|
+
*/
|
|
5159
|
+
|
|
4892
5160
|
/**
|
|
4893
5161
|
* Encode a UpgradeNodeTx transaction for later use
|
|
4894
5162
|
*
|
|
@@ -4979,6 +5247,16 @@
|
|
|
4979
5247
|
* @returns {Promise<GraphQLClient.ResponseGetForgeState>} Checkout {@link GraphQLClient.ResponseGetForgeState} for resolved data format
|
|
4980
5248
|
*/
|
|
4981
5249
|
|
|
5250
|
+
/**
|
|
5251
|
+
* getTokenFactoryState
|
|
5252
|
+
*
|
|
5253
|
+
* @name GraphQLClient#getTokenFactoryState
|
|
5254
|
+
* @param {GraphQLClient.GetTokenFactoryStateParams} params
|
|
5255
|
+
* @function
|
|
5256
|
+
* @memberof GraphQLClient
|
|
5257
|
+
* @returns {Promise<GraphQLClient.ResponseGetTokenFactoryState>} Checkout {@link GraphQLClient.ResponseGetTokenFactoryState} for resolved data format
|
|
5258
|
+
*/
|
|
5259
|
+
|
|
4982
5260
|
/**
|
|
4983
5261
|
* getTx
|
|
4984
5262
|
*
|
|
@@ -5284,6 +5562,16 @@
|
|
|
5284
5562
|
* @returns {Promise<GraphQLClient.ResponseGetTokenDistribution>} Checkout {@link GraphQLClient.ResponseGetTokenDistribution} for resolved data format
|
|
5285
5563
|
*/
|
|
5286
5564
|
|
|
5565
|
+
/**
|
|
5566
|
+
* listTokenFactories
|
|
5567
|
+
*
|
|
5568
|
+
* @name GraphQLClient#listTokenFactories
|
|
5569
|
+
* @param {GraphQLClient.ListTokenFactoriesParams} params
|
|
5570
|
+
* @function
|
|
5571
|
+
* @memberof GraphQLClient
|
|
5572
|
+
* @returns {Promise<GraphQLClient.ResponseListTokenFactories>} Checkout {@link GraphQLClient.ResponseListTokenFactories} for resolved data format
|
|
5573
|
+
*/
|
|
5574
|
+
|
|
5287
5575
|
/**
|
|
5288
5576
|
* sendTx
|
|
5289
5577
|
*
|