@initia/initia.js 0.2.30 → 0.2.31

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/index.es.js CHANGED
@@ -1525,7 +1525,7 @@ class jt extends m {
1525
1525
  toAmino() {
1526
1526
  const { max_tokens: e, allow_list: r, deny_list: o, authorization_type: s } = this;
1527
1527
  return {
1528
- type: "mstake/StakeAuthorization",
1528
+ type: "mstaking/StakeAuthorization",
1529
1529
  value: {
1530
1530
  max_tokens: e.toAmino(),
1531
1531
  allow_list: r.toAmino(),
@@ -4610,7 +4610,7 @@ var ka;
4610
4610
  return Ie.fromAmino(o);
4611
4611
  case "cosmos-sdk/GenericAuthorization":
4612
4612
  return Se.fromAmino(o);
4613
- case "mstake/StakeAuthorization":
4613
+ case "mstaking/StakeAuthorization":
4614
4614
  return jt.fromAmino(o);
4615
4615
  case "move/ExecuteAuthorization":
4616
4616
  return Ee.fromAmino(o);
@@ -8505,7 +8505,7 @@ class Cr extends m {
8505
8505
  }
8506
8506
  class $r extends m {
8507
8507
  /**
8508
- * @param proposal_id Id of porposal to deposit to
8508
+ * @param proposal_id id of proposal to deposit to
8509
8509
  * @param depositor depositor's account address
8510
8510
  * @param amount amount to deposit
8511
8511
  */
@@ -12311,7 +12311,7 @@ class Cn extends m {
12311
12311
  /**
12312
12312
  * @param fee encapsulates the recv, ack and timeout fees associated with an IBC packet
12313
12313
  * @param source_port_id the source port unique identifier
12314
- * @param source_channel_id the source channel unique identifer
12314
+ * @param source_channel_id the source channel unique identifier
12315
12315
  * @param signer account address to refund fee if necessary
12316
12316
  * @param relayers optional list of relayers permitted to the receive packet fees
12317
12317
  */
@@ -12814,7 +12814,7 @@ class Ms extends m {
12814
12814
  }
12815
12815
  toAmino() {
12816
12816
  return {
12817
- type: "ibc-hooks/Params",
12817
+ type: "ibchooks/Params",
12818
12818
  value: { default_allowed: this.default_allowed }
12819
12819
  };
12820
12820
  }
@@ -20497,7 +20497,7 @@ class ce extends m {
20497
20497
  * @param proposer the address of the proposer
20498
20498
  * @param batch_info the information about batch submission
20499
20499
  * @param submission_interval the time interval at which checkpoints must be submitted
20500
- * @param finalization_period the minium time duration that must elapse before a withdrawal can be finalized
20500
+ * @param finalization_period the minimum time duration that must elapse before a withdrawal can be finalized
20501
20501
  * @param submission_start_height the first l2 block will be recorded on l1
20502
20502
  * @param oracle_enabled flag to enable oracle
20503
20503
  * @param metadata normally IBC channelID for permissioned IBC relayer
@@ -25496,6 +25496,15 @@ class yg extends W {
25496
25496
  async bondedValidators(t, e = {}) {
25497
25497
  return this.c.get(`/initia/mstaking/v1/delegators/${t}/validators`, e).then((r) => [r.validators.map(ot.fromData), r.pagination]);
25498
25498
  }
25499
+ /**
25500
+ * Query sum of all the delegations' balance of a delegator.
25501
+ */
25502
+ async totalDelegationBalance(t, e = {}) {
25503
+ return this.c.get(
25504
+ `/initia/mstaking/v1/delegators/${t}/total_delegation_balance`,
25505
+ e
25506
+ ).then((r) => l.fromData(r.balance));
25507
+ }
25499
25508
  /**
25500
25509
  * Query all current registered validators, including validators that are not currently in the validating set.
25501
25510
  */
@@ -26305,7 +26314,7 @@ class Mg extends W {
26305
26314
  ]);
26306
26315
  }
26307
26316
  /**
26308
- * Query the binary code and metadata for a singe wasm code.
26317
+ * Query the binary code and metadata for a single wasm code.
26309
26318
  * @param code_id unique code identifier
26310
26319
  */
26311
26320
  async codeInfo(t, e = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@initia/initia.js",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "description": "The JavaScript SDK for Initia",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Initia Foundation",