@ocap/client 1.13.68 → 1.13.72

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/types.js CHANGED
@@ -1527,6 +1527,7 @@
1527
1527
  * @property {number} publisherFeeShare
1528
1528
  * @property {number} publishWaitingPeriod
1529
1529
  * @property {number} publishSlashRate
1530
+ * @property {Array<string>} migrateHistory
1530
1531
  * @property {...GraphQLClient.Any} data
1531
1532
  */
1532
1533
 
@@ -1655,6 +1656,57 @@
1655
1656
  * @property {...GraphQLClient.Any} data
1656
1657
  */
1657
1658
 
1659
+ /**
1660
+ * Structure of GraphQLClient.MigrateRollupContractTx
1661
+ *
1662
+ * Checkout the following snippet for the format of MigrateRollupContractTx:
1663
+ * ```json
1664
+ {
1665
+ "rollup": "abc",
1666
+ "to": "abc",
1667
+ "data": {
1668
+ "typeUrl": "abc",
1669
+ "value": "abc"
1670
+ }
1671
+ }
1672
+ * ```
1673
+ *
1674
+ * @memberof GraphQLClient
1675
+ * @typedef {object} GraphQLClient.MigrateRollupContractTx
1676
+ * @property {string} rollup
1677
+ * @property {string} to
1678
+ * @property {...GraphQLClient.Any} data
1679
+ */
1680
+
1681
+ /**
1682
+ * Structure of GraphQLClient.MigrateRollupTokenTx
1683
+ *
1684
+ * Checkout the following snippet for the format of MigrateRollupTokenTx:
1685
+ * ```json
1686
+ {
1687
+ "rollup": "abc",
1688
+ "from": "abc",
1689
+ "to": "abc",
1690
+ "token": {
1691
+ "address": "abc",
1692
+ "value": "abc"
1693
+ },
1694
+ "data": {
1695
+ "typeUrl": "abc",
1696
+ "value": "abc"
1697
+ }
1698
+ }
1699
+ * ```
1700
+ *
1701
+ * @memberof GraphQLClient
1702
+ * @typedef {object} GraphQLClient.MigrateRollupTokenTx
1703
+ * @property {string} rollup
1704
+ * @property {string} from
1705
+ * @property {string} to
1706
+ * @property {...GraphQLClient.TokenInput} token
1707
+ * @property {...GraphQLClient.Any} data
1708
+ */
1709
+
1658
1710
  /**
1659
1711
  * Structure of GraphQLClient.MintAssetTx
1660
1712
  *
@@ -1753,6 +1805,26 @@
1753
1805
  * @property {string} hash
1754
1806
  */
1755
1807
 
1808
+ /**
1809
+ * Structure of GraphQLClient.PauseRollupTx
1810
+ *
1811
+ * Checkout the following snippet for the format of PauseRollupTx:
1812
+ * ```json
1813
+ {
1814
+ "rollup": "abc",
1815
+ "data": {
1816
+ "typeUrl": "abc",
1817
+ "value": "abc"
1818
+ }
1819
+ }
1820
+ * ```
1821
+ *
1822
+ * @memberof GraphQLClient
1823
+ * @typedef {object} GraphQLClient.PauseRollupTx
1824
+ * @property {string} rollup
1825
+ * @property {...GraphQLClient.Any} data
1826
+ */
1827
+
1756
1828
  /**
1757
1829
  * Structure of GraphQLClient.PeerInfo
1758
1830
  *
@@ -2208,6 +2280,26 @@
2208
2280
  * @property {string} hash
2209
2281
  */
2210
2282
 
2283
+ /**
2284
+ * Structure of GraphQLClient.ResumeRollupTx
2285
+ *
2286
+ * Checkout the following snippet for the format of ResumeRollupTx:
2287
+ * ```json
2288
+ {
2289
+ "rollup": "abc",
2290
+ "data": {
2291
+ "typeUrl": "abc",
2292
+ "value": "abc"
2293
+ }
2294
+ }
2295
+ * ```
2296
+ *
2297
+ * @memberof GraphQLClient
2298
+ * @typedef {object} GraphQLClient.ResumeRollupTx
2299
+ * @property {string} rollup
2300
+ * @property {...GraphQLClient.Any} data
2301
+ */
2302
+
2211
2303
  /**
2212
2304
  * Structure of GraphQLClient.RevokeDelegateTx
2213
2305
  *
@@ -2292,6 +2384,7 @@
2292
2384
  * @property {number} leaveWaitingPeriod
2293
2385
  * @property {number} publishWaitingPeriod
2294
2386
  * @property {number} publishSlashRate
2387
+ * @property {Array<string>} migrateHistory
2295
2388
  * @property {...GraphQLClient.StateContext} context
2296
2389
  * @property {...GraphQLClient.Any} data
2297
2390
  */
@@ -2626,12 +2719,11 @@
2626
2719
  "maxDepositFee": "abc",
2627
2720
  "minWithdrawFee": "abc",
2628
2721
  "maxWithdrawFee": "abc",
2629
- "paused": true,
2630
- "rollup": "abc",
2631
2722
  "publisherFeeShare": 123,
2632
2723
  "leaveWaitingPeriod": 123,
2633
2724
  "publishWaitingPeriod": 123,
2634
2725
  "publishSlashRate": 123,
2726
+ "rollup": "abc",
2635
2727
  "data": {
2636
2728
  "typeUrl": "abc",
2637
2729
  "value": "abc"
@@ -2660,12 +2752,11 @@
2660
2752
  * @property {string} maxDepositFee
2661
2753
  * @property {string} minWithdrawFee
2662
2754
  * @property {string} maxWithdrawFee
2663
- * @property {boolean} paused
2664
- * @property {string} rollup
2665
2755
  * @property {number} publisherFeeShare
2666
2756
  * @property {number} leaveWaitingPeriod
2667
2757
  * @property {number} publishWaitingPeriod
2668
2758
  * @property {number} publishSlashRate
2759
+ * @property {string} rollup
2669
2760
  * @property {...GraphQLClient.Any} data
2670
2761
  */
2671
2762
 
@@ -3862,6 +3953,58 @@
3862
3953
  * @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
3863
3954
  */
3864
3955
 
3956
+ /**
3957
+ * @memberof GraphQLClient
3958
+ * @typedef {Object} GraphQLClient.MigrateRollupContractTxInput
3959
+ * @prop {object} input
3960
+ * @prop {object} input.tx - data of the transaction
3961
+ * @prop {GraphQLClient.MigrateRollupContractTx} input.tx.itx - the actual transaction object
3962
+ * @prop {string} [input.tx.pk] - the sender pk
3963
+ * @prop {string} [input.tx.from] - the sender address, can be derived from wallet
3964
+ * @prop {number} [input.tx.nonce] - the tx nonce, defaults to Date.now if not set
3965
+ * @prop {string} [input.tx.chainId] - the chainId
3966
+ * @prop {string} [input.tx.signature] - transaction signature
3967
+ * @prop {array} [input.tx.signatures] - transaction signatures, should be set when it's a multisig transaction
3968
+ * @prop {object} input.wallet - the wallet used to sign the transaction, either a forge managed wallet or user managed wallet
3969
+ * @prop {string} [input.signature] - the signature of the tx, if this parameter exist, we will not sign the transaction
3970
+ */
3971
+
3972
+ /**
3973
+ * Send MigrateRollupContractTx transaction and get the hash, use {@link GraphQLClient#getTx} to get transaction detail
3974
+ *
3975
+ * @memberof GraphQLClient
3976
+ * @function
3977
+ * @name GraphQLClient#sendMigrateRollupContractTx
3978
+ * @param {GraphQLClient.MigrateRollupContractTxInput} params
3979
+ * @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
3980
+ */
3981
+
3982
+ /**
3983
+ * @memberof GraphQLClient
3984
+ * @typedef {Object} GraphQLClient.MigrateRollupTokenTxInput
3985
+ * @prop {object} input
3986
+ * @prop {object} input.tx - data of the transaction
3987
+ * @prop {GraphQLClient.MigrateRollupTokenTx} input.tx.itx - the actual transaction object
3988
+ * @prop {string} [input.tx.pk] - the sender pk
3989
+ * @prop {string} [input.tx.from] - the sender address, can be derived from wallet
3990
+ * @prop {number} [input.tx.nonce] - the tx nonce, defaults to Date.now if not set
3991
+ * @prop {string} [input.tx.chainId] - the chainId
3992
+ * @prop {string} [input.tx.signature] - transaction signature
3993
+ * @prop {array} [input.tx.signatures] - transaction signatures, should be set when it's a multisig transaction
3994
+ * @prop {object} input.wallet - the wallet used to sign the transaction, either a forge managed wallet or user managed wallet
3995
+ * @prop {string} [input.signature] - the signature of the tx, if this parameter exist, we will not sign the transaction
3996
+ */
3997
+
3998
+ /**
3999
+ * Send MigrateRollupTokenTx transaction and get the hash, use {@link GraphQLClient#getTx} to get transaction detail
4000
+ *
4001
+ * @memberof GraphQLClient
4002
+ * @function
4003
+ * @name GraphQLClient#sendMigrateRollupTokenTx
4004
+ * @param {GraphQLClient.MigrateRollupTokenTxInput} params
4005
+ * @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
4006
+ */
4007
+
3865
4008
  /**
3866
4009
  * @memberof GraphQLClient
3867
4010
  * @typedef {Object} GraphQLClient.MintAssetTxInput
@@ -3888,6 +4031,58 @@
3888
4031
  * @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
3889
4032
  */
3890
4033
 
4034
+ /**
4035
+ * @memberof GraphQLClient
4036
+ * @typedef {Object} GraphQLClient.PauseRollupTxInput
4037
+ * @prop {object} input
4038
+ * @prop {object} input.tx - data of the transaction
4039
+ * @prop {GraphQLClient.PauseRollupTx} input.tx.itx - the actual transaction object
4040
+ * @prop {string} [input.tx.pk] - the sender pk
4041
+ * @prop {string} [input.tx.from] - the sender address, can be derived from wallet
4042
+ * @prop {number} [input.tx.nonce] - the tx nonce, defaults to Date.now if not set
4043
+ * @prop {string} [input.tx.chainId] - the chainId
4044
+ * @prop {string} [input.tx.signature] - transaction signature
4045
+ * @prop {array} [input.tx.signatures] - transaction signatures, should be set when it's a multisig transaction
4046
+ * @prop {object} input.wallet - the wallet used to sign the transaction, either a forge managed wallet or user managed wallet
4047
+ * @prop {string} [input.signature] - the signature of the tx, if this parameter exist, we will not sign the transaction
4048
+ */
4049
+
4050
+ /**
4051
+ * Send PauseRollupTx transaction and get the hash, use {@link GraphQLClient#getTx} to get transaction detail
4052
+ *
4053
+ * @memberof GraphQLClient
4054
+ * @function
4055
+ * @name GraphQLClient#sendPauseRollupTx
4056
+ * @param {GraphQLClient.PauseRollupTxInput} params
4057
+ * @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
4058
+ */
4059
+
4060
+ /**
4061
+ * @memberof GraphQLClient
4062
+ * @typedef {Object} GraphQLClient.ResumeRollupTxInput
4063
+ * @prop {object} input
4064
+ * @prop {object} input.tx - data of the transaction
4065
+ * @prop {GraphQLClient.ResumeRollupTx} input.tx.itx - the actual transaction object
4066
+ * @prop {string} [input.tx.pk] - the sender pk
4067
+ * @prop {string} [input.tx.from] - the sender address, can be derived from wallet
4068
+ * @prop {number} [input.tx.nonce] - the tx nonce, defaults to Date.now if not set
4069
+ * @prop {string} [input.tx.chainId] - the chainId
4070
+ * @prop {string} [input.tx.signature] - transaction signature
4071
+ * @prop {array} [input.tx.signatures] - transaction signatures, should be set when it's a multisig transaction
4072
+ * @prop {object} input.wallet - the wallet used to sign the transaction, either a forge managed wallet or user managed wallet
4073
+ * @prop {string} [input.signature] - the signature of the tx, if this parameter exist, we will not sign the transaction
4074
+ */
4075
+
4076
+ /**
4077
+ * Send ResumeRollupTx transaction and get the hash, use {@link GraphQLClient#getTx} to get transaction detail
4078
+ *
4079
+ * @memberof GraphQLClient
4080
+ * @function
4081
+ * @name GraphQLClient#sendResumeRollupTx
4082
+ * @param {GraphQLClient.ResumeRollupTxInput} params
4083
+ * @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
4084
+ */
4085
+
3891
4086
  /**
3892
4087
  * @memberof GraphQLClient
3893
4088
  * @typedef {Object} GraphQLClient.RevokeDelegateTxInput
@@ -4318,6 +4513,26 @@
4318
4513
  * @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
4319
4514
  */
4320
4515
 
4516
+ /**
4517
+ * Encode a MigrateRollupContractTx transaction for later use
4518
+ *
4519
+ * @name GraphQLClient#encodeMigrateRollupContractTx
4520
+ * @function
4521
+ * @memberof GraphQLClient
4522
+ * @param {GraphQLClient.MigrateRollupContractTxInput} params
4523
+ * @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
4524
+ */
4525
+
4526
+ /**
4527
+ * Encode a MigrateRollupTokenTx transaction for later use
4528
+ *
4529
+ * @name GraphQLClient#encodeMigrateRollupTokenTx
4530
+ * @function
4531
+ * @memberof GraphQLClient
4532
+ * @param {GraphQLClient.MigrateRollupTokenTxInput} params
4533
+ * @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
4534
+ */
4535
+
4321
4536
  /**
4322
4537
  * Encode a MintAssetTx transaction for later use
4323
4538
  *
@@ -4328,6 +4543,26 @@
4328
4543
  * @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
4329
4544
  */
4330
4545
 
4546
+ /**
4547
+ * Encode a PauseRollupTx transaction for later use
4548
+ *
4549
+ * @name GraphQLClient#encodePauseRollupTx
4550
+ * @function
4551
+ * @memberof GraphQLClient
4552
+ * @param {GraphQLClient.PauseRollupTxInput} params
4553
+ * @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
4554
+ */
4555
+
4556
+ /**
4557
+ * Encode a ResumeRollupTx transaction for later use
4558
+ *
4559
+ * @name GraphQLClient#encodeResumeRollupTx
4560
+ * @function
4561
+ * @memberof GraphQLClient
4562
+ * @param {GraphQLClient.ResumeRollupTxInput} params
4563
+ * @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
4564
+ */
4565
+
4331
4566
  /**
4332
4567
  * Encode a RevokeDelegateTx transaction for later use
4333
4568
  *