@ocap/client 1.18.18 → 1.18.19

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
@@ -1179,6 +1179,7 @@
1179
1179
  * @property {...GraphQLClient.TransactionConfig} txConfig
1180
1180
  * @property {...GraphQLClient.UpgradeInfo} upgradeInfo
1181
1181
  * @property {Array<...GraphQLClient.AccountConfig>} accountConfig
1182
+ * @property {...GraphQLClient.VaultConfig} vaults
1182
1183
  * @property {...GraphQLClient.Any} data
1183
1184
  */
1184
1185
 
@@ -1456,6 +1457,7 @@
1456
1457
  * @property {number} revokeWaitingPeriod
1457
1458
  * @property {Array<...GraphQLClient.TokenInfo>} revokedTokens
1458
1459
  * @property {Array<string>} revokedAssets
1460
+ * @property {Array<string>} slashers
1459
1461
  * @property {...GraphQLClient.Any} data
1460
1462
  */
1461
1463
 
@@ -2243,6 +2245,17 @@
2243
2245
  * @property {string} id
2244
2246
  */
2245
2247
 
2248
+ /**
2249
+ * Structure of GraphQLClient.SlashStakeTx
2250
+ *
2251
+ * @memberof GraphQLClient
2252
+ * @typedef {object} GraphQLClient.SlashStakeTx
2253
+ * @property {string} address
2254
+ * @property {Array<...GraphQLClient.TransactionInput>} outputs
2255
+ * @property {string} message
2256
+ * @property {...GraphQLClient.Any} data
2257
+ */
2258
+
2246
2259
  /**
2247
2260
  * Structure of GraphQLClient.StakeState
2248
2261
  *
@@ -2258,6 +2271,7 @@
2258
2271
  * @property {number} revokeWaitingPeriod
2259
2272
  * @property {Array<...GraphQLClient.IndexedTokenInput>} revokedTokens
2260
2273
  * @property {Array<string>} revokedAssets
2274
+ * @property {Array<string>} slashers
2261
2275
  * @property {...GraphQLClient.StateContext} context
2262
2276
  * @property {...GraphQLClient.Any} data
2263
2277
  */
@@ -2273,6 +2287,7 @@
2273
2287
  * @property {boolean} locked
2274
2288
  * @property {string} message
2275
2289
  * @property {number} revokeWaitingPeriod
2290
+ * @property {Array<string>} slashers
2276
2291
  * @property {...GraphQLClient.Any} data
2277
2292
  */
2278
2293
 
@@ -2649,6 +2664,16 @@
2649
2664
  * @property {boolean} required
2650
2665
  */
2651
2666
 
2667
+ /**
2668
+ * Structure of GraphQLClient.VaultConfig
2669
+ *
2670
+ * @memberof GraphQLClient
2671
+ * @typedef {object} GraphQLClient.VaultConfig
2672
+ * @property {string} slashedStake
2673
+ * @property {string} txFee
2674
+ * @property {Array<string>} txGas
2675
+ */
2676
+
2652
2677
  /**
2653
2678
  * Structure of GraphQLClient.Version
2654
2679
  *
@@ -3888,6 +3913,33 @@
3888
3913
  * @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
3889
3914
  */
3890
3915
 
3916
+ /**
3917
+ * @memberof GraphQLClient
3918
+ * @typedef {Object} GraphQLClient.SlashStakeTxInput
3919
+ * @prop {object} input
3920
+ * @prop {object} input.tx - data of the transaction
3921
+ * @prop {GraphQLClient.SlashStakeTx} input.tx.itx - the actual transaction object
3922
+ * @prop {string} [input.tx.pk] - the sender pk
3923
+ * @prop {string} [input.tx.from] - the sender address, can be derived from wallet
3924
+ * @prop {number} [input.tx.nonce] - the tx nonce, defaults to Date.now if not set
3925
+ * @prop {string} [input.tx.chainId] - the chainId
3926
+ * @prop {string} [input.tx.signature] - transaction signature
3927
+ * @prop {array} [input.tx.signatures] - transaction signatures, should be set when it's a multisig transaction
3928
+ * @prop {object} input.wallet - the wallet used to sign the transaction, either a forge managed wallet or user managed wallet
3929
+ * @prop {string} [input.signature] - the signature of the tx, if this parameter exist, we will not sign the transaction
3930
+ */
3931
+
3932
+ /**
3933
+ * Send SlashStakeTx transaction and get the hash, use {@link GraphQLClient#getTx} to get transaction detail
3934
+ *
3935
+ * @memberof GraphQLClient
3936
+ * @function
3937
+ * @name GraphQLClient#sendSlashStakeTx
3938
+ * @param {GraphQLClient.SlashStakeTxInput} params
3939
+ * @param {object} extra
3940
+ * @returns {Promise<string>} returns transaction hash if success, otherwise error was thrown
3941
+ */
3942
+
3891
3943
  /**
3892
3944
  * @memberof GraphQLClient
3893
3945
  * @typedef {Object} GraphQLClient.StakeTxInput
@@ -4344,6 +4396,16 @@
4344
4396
  * @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
4345
4397
  */
4346
4398
 
4399
+ /**
4400
+ * Encode a SlashStakeTx transaction for later use
4401
+ *
4402
+ * @name GraphQLClient#encodeSlashStakeTx
4403
+ * @function
4404
+ * @memberof GraphQLClient
4405
+ * @param {GraphQLClient.SlashStakeTxInput} params
4406
+ * @returns {Promise<GraphQLClient.TxEncodeOutput>} result - we provide two formats of the encoding result, binary presentation and human readable object
4407
+ */
4408
+
4347
4409
  /**
4348
4410
  * Encode a StakeTx transaction for later use
4349
4411
  *