@initia/initia.js 0.2.27 → 0.2.28

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
@@ -213,7 +213,10 @@ class I extends m {
213
213
  * Turns the Coin into an Integer coin with ceiling the amount.
214
214
  */
215
215
  toIntCeilCoin() {
216
- return new I(this.denom, O(this.amount).toFixed(0, dt.ROUND_CEIL));
216
+ return new I(
217
+ this.denom,
218
+ O(this.amount).toFixed(0, dt.ROUND_CEIL)
219
+ );
217
220
  }
218
221
  /**
219
222
  * Turns the Coin into a Decimal coin.
@@ -21835,11 +21838,12 @@ class $s extends m {
21835
21838
  * @param bridge_executors the account addresses of bridge executor who can execute permissioned bridge messages
21836
21839
  * @param admin the account address of admin who can execute permissioned cosmos messages
21837
21840
  * @param fee_whitelist the list of addresses that are allowed to pay zero fee
21841
+ * @param hook_max_gas max gas for hook execution of `MsgFinalizeTokenDeposit`
21838
21842
  */
21839
- constructor(e, r, o, s, n, i) {
21843
+ constructor(e, r, o, s, n, i, c) {
21840
21844
  super();
21841
21845
  _(this, "min_gas_prices");
21842
- this.max_validators = e, this.historical_entries = r, this.bridge_executors = s, this.admin = n, this.fee_whitelist = i, this.min_gas_prices = new l(o);
21846
+ this.max_validators = e, this.historical_entries = r, this.bridge_executors = s, this.admin = n, this.fee_whitelist = i, this.hook_max_gas = c, this.min_gas_prices = new l(o);
21843
21847
  }
21844
21848
  static fromAmino(e) {
21845
21849
  const {
@@ -21849,7 +21853,8 @@ class $s extends m {
21849
21853
  min_gas_prices: s,
21850
21854
  bridge_executors: n,
21851
21855
  admin: i,
21852
- fee_whitelist: c
21856
+ fee_whitelist: c,
21857
+ hook_max_gas: d
21853
21858
  }
21854
21859
  } = e;
21855
21860
  return new $s(
@@ -21858,7 +21863,8 @@ class $s extends m {
21858
21863
  l.fromAmino(s),
21859
21864
  n,
21860
21865
  i,
21861
- c
21866
+ c,
21867
+ parseInt(d)
21862
21868
  );
21863
21869
  }
21864
21870
  toAmino() {
@@ -21868,7 +21874,8 @@ class $s extends m {
21868
21874
  min_gas_prices: o,
21869
21875
  bridge_executors: s,
21870
21876
  admin: n,
21871
- fee_whitelist: i
21877
+ fee_whitelist: i,
21878
+ hook_max_gas: c
21872
21879
  } = this;
21873
21880
  return {
21874
21881
  type: "opchild/Params",
@@ -21878,7 +21885,8 @@ class $s extends m {
21878
21885
  min_gas_prices: o.toAmino(),
21879
21886
  bridge_executors: s,
21880
21887
  admin: n,
21881
- fee_whitelist: i
21888
+ fee_whitelist: i,
21889
+ hook_max_gas: c.toFixed()
21882
21890
  }
21883
21891
  };
21884
21892
  }
@@ -21889,7 +21897,8 @@ class $s extends m {
21889
21897
  min_gas_prices: s,
21890
21898
  bridge_executors: n,
21891
21899
  admin: i,
21892
- fee_whitelist: c
21900
+ fee_whitelist: c,
21901
+ hook_max_gas: d
21893
21902
  } = e;
21894
21903
  return new $s(
21895
21904
  r,
@@ -21897,7 +21906,8 @@ class $s extends m {
21897
21906
  l.fromData(s),
21898
21907
  n,
21899
21908
  i,
21900
- c
21909
+ c,
21910
+ parseInt(d)
21901
21911
  );
21902
21912
  }
21903
21913
  toData() {
@@ -21907,7 +21917,8 @@ class $s extends m {
21907
21917
  min_gas_prices: o,
21908
21918
  bridge_executors: s,
21909
21919
  admin: n,
21910
- fee_whitelist: i
21920
+ fee_whitelist: i,
21921
+ hook_max_gas: c
21911
21922
  } = this;
21912
21923
  return {
21913
21924
  "@type": "/opinit.opchild.v1.Params",
@@ -21916,7 +21927,8 @@ class $s extends m {
21916
21927
  min_gas_prices: o.toData(),
21917
21928
  bridge_executors: s,
21918
21929
  admin: n,
21919
- fee_whitelist: i
21930
+ fee_whitelist: i,
21931
+ hook_max_gas: c.toFixed()
21920
21932
  };
21921
21933
  }
21922
21934
  static fromProto(e) {
@@ -21926,7 +21938,8 @@ class $s extends m {
21926
21938
  l.fromProto(e.minGasPrices),
21927
21939
  e.bridgeExecutors,
21928
21940
  e.admin,
21929
- e.feeWhitelist
21941
+ e.feeWhitelist,
21942
+ Number(e.hookMaxGas)
21930
21943
  );
21931
21944
  }
21932
21945
  toProto() {
@@ -21936,7 +21949,8 @@ class $s extends m {
21936
21949
  min_gas_prices: o,
21937
21950
  bridge_executors: s,
21938
21951
  admin: n,
21939
- fee_whitelist: i
21952
+ fee_whitelist: i,
21953
+ hook_max_gas: c
21940
21954
  } = this;
21941
21955
  return Mf.fromPartial({
21942
21956
  maxValidators: e,
@@ -21944,7 +21958,8 @@ class $s extends m {
21944
21958
  minGasPrices: o.toProto(),
21945
21959
  bridgeExecutors: s,
21946
21960
  admin: n,
21947
- feeWhitelist: i
21961
+ feeWhitelist: i,
21962
+ hookMaxGas: BigInt(c)
21948
21963
  });
21949
21964
  }
21950
21965
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@initia/initia.js",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "The JavaScript SDK for Initia",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Initia Foundation",