@pioneer-platform/pioneer-react 0.2.42 → 0.2.45

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.
Files changed (91) hide show
  1. package/dist/index.d.ts +3 -8
  2. package/dist/index.js +18 -16
  3. package/dist/{index_2ae7b728.js → index_00dd884e.js} +5 -6
  4. package/dist/{index_d62adee3.js → index_089e7234.js} +1 -1
  5. package/dist/{index_6fc14522.js → index_1a6a5598.js} +5 -6
  6. package/dist/{index_5cbed275.js → index_1afbfab1.js} +246 -4473
  7. package/dist/{index_f59a43d2.js → index_2149ed8d.js} +8 -8
  8. package/dist/{index_7f071019.js → index_25e511bb.js} +15 -15
  9. package/dist/{index_b2be5e4e.js → index_28e5444b.js} +3 -4
  10. package/dist/{index_f575e7b4.js → index_31d055bf.js} +8 -9
  11. package/dist/{index_ebeabe97.js → index_3433fe56.js} +3 -4
  12. package/dist/{index_318d1d68.js → index_3ed7e242.js} +28 -28
  13. package/dist/{index_0d526d38.js → index_3fea9d52.js} +19 -19
  14. package/dist/{index_47b407db.js → index_40cbc1cb.js} +4 -5
  15. package/dist/{index_7d621758.js → index_40f2115a.js} +3 -4
  16. package/dist/{index_ed259edc.js → index_47217799.js} +5 -6
  17. package/dist/{index_5d556ec6.js → index_51bbd44a.js} +3 -4
  18. package/dist/{index_8e0864da.js → index_53605da3.js} +2 -2
  19. package/dist/{index_45b009da.js → index_5c12821e.js} +10 -11
  20. package/dist/{index_9fef85a2.js → index_5dc59e18.js} +3 -4
  21. package/dist/{index_ac8af4f0.js → index_61702928.js} +3 -4
  22. package/dist/{index_4b36612f.js → index_64ff18e7.js} +1 -1
  23. package/dist/{index_13b1e6a1.js → index_65017d87.js} +1 -1
  24. package/dist/{index_b752bc5a.js → index_6becad0b.js} +13 -13
  25. package/dist/{index_89463ea0.js → index_740490f1.js} +4 -5
  26. package/dist/{index_de955e45.js → index_75f700d8.js} +4 -5
  27. package/dist/{index_e525ec6b.js → index_7640e861.js} +8 -453
  28. package/dist/{index_d85153be.js → index_7c11b3c7.js} +3 -3
  29. package/dist/{index_61bfdb70.js → index_7c574e7d.js} +8 -9
  30. package/dist/{index_97f1ff39.js → index_7ddfebf7.js} +14 -14
  31. package/dist/{index_e47e2842.js → index_81dd7d0f.js} +7 -8
  32. package/dist/{index_a005a882.js → index_87afedd4.js} +8 -8
  33. package/dist/{index_0bbcbffb.js → index_87d14dd6.js} +6 -7
  34. package/dist/{index_aa947e34.js → index_9346dd3d.js} +7 -7
  35. package/dist/{index_70cc14bd.js → index_96d5aad1.js} +1223 -40
  36. package/dist/{index_ff288a7a.js → index_97081f9b.js} +7 -8
  37. package/dist/{index_4c07ec7c.js → index_9c378228.js} +11 -13
  38. package/dist/{index_54e4e367.js → index_a96dcbb2.js} +13 -13
  39. package/dist/{index_265bb459.js → index_a9d0b958.js} +29 -52
  40. package/dist/{index_d869d4f8.js → index_abaa7487.js} +6 -7
  41. package/dist/{index_d90e262e.js → index_b1b7d385.js} +13 -13
  42. package/dist/index_b4b501fc.js +449 -0
  43. package/dist/index_b62d8ff4.js +30 -0
  44. package/dist/{index_81d780b7.js → index_b6e5a809.js} +1 -1
  45. package/dist/{index_6424cb67.js → index_bd7bbccf.js} +2 -4
  46. package/dist/{index_381aee34.js → index_c2bc068c.js} +1 -1
  47. package/dist/{index_7861fcf0.js → index_c587fd1b.js} +3 -4
  48. package/dist/{index_239b8e07.js → index_c8c2dada.js} +1 -1
  49. package/dist/{index_bfa7b443.js → index_d26b5754.js} +7 -8
  50. package/dist/{index_015b6eba.js → index_d77fc157.js} +6154 -32027
  51. package/dist/{index_e4776b9a.js → index_db264e60.js} +13 -13
  52. package/dist/{index_2143ad7f.js → index_f044b02a.js} +1 -1
  53. package/dist/{index_1d49c612.js → index_fad80d95.js} +4 -5
  54. package/dist/lib/components/pioneer/Pioneer/Balances.js +4 -4
  55. package/dist/lib/components/pioneer/Pioneer/Paths.js +4 -4
  56. package/dist/lib/components/pioneer/Pioneer/Pubkeys.js +4 -4
  57. package/dist/lib/components/pioneer/Pioneer/Send.js +1 -1
  58. package/dist/lib/components/pioneer/Pioneer/Wallets.js +1 -1
  59. package/dist/lib/components/pioneer/index.js +7 -7
  60. package/dist/lib/pages/home/index.js +2 -9
  61. package/package.json +2 -2
  62. package/src/index.tsx +21 -21
  63. package/src/lib/components/pioneer/Pioneer/Balances.tsx +4 -4
  64. package/src/lib/components/pioneer/Pioneer/Paths.tsx +4 -4
  65. package/src/lib/components/pioneer/Pioneer/Pubkeys.tsx +4 -4
  66. package/src/lib/components/pioneer/Pioneer/Send.tsx +1 -1
  67. package/src/lib/components/pioneer/Pioneer/Wallets.tsx +2 -2
  68. package/src/lib/components/pioneer/index.tsx +6 -41
  69. package/src/lib/pages/home/index.tsx +5 -5
  70. package/dist/index_bbcb3c14.js +0 -31
  71. package/dist/lib/components/AssetSelect/index.d.ts +0 -4
  72. package/dist/lib/components/AssetSelect/index.js +0 -72
  73. package/dist/lib/components/BlockchainSelect/index.d.ts +0 -4
  74. package/dist/lib/components/BlockchainSelect/index.js +0 -88
  75. package/dist/lib/components/MiddleEllipsis/index.d.ts +0 -6
  76. package/dist/lib/components/MiddleEllipsis/index.js +0 -12
  77. package/dist/lib/components/Onboarding/index.d.ts +0 -6
  78. package/dist/lib/components/Onboarding/index.js +0 -113
  79. package/dist/lib/components/WalletSelect/index.d.ts +0 -4
  80. package/dist/lib/components/WalletSelect/index.js +0 -62
  81. package/dist/lib/components/modals/AssetModal.d.ts +0 -7
  82. package/dist/lib/components/modals/AssetModal.js +0 -28
  83. package/dist/lib/components/modals/SettingsModal.d.ts +0 -7
  84. package/dist/lib/components/modals/SettingsModal.js +0 -33
  85. package/src/lib/components/AssetSelect/index.tsx +0 -168
  86. package/src/lib/components/BlockchainSelect/index.tsx +0 -166
  87. package/src/lib/components/MiddleEllipsis/index.tsx +0 -27
  88. package/src/lib/components/Onboarding/index.tsx +0 -251
  89. package/src/lib/components/WalletSelect/index.tsx +0 -112
  90. package/src/lib/components/modals/AssetModal.tsx +0 -67
  91. package/src/lib/components/modals/SettingsModal.tsx +0 -95
@@ -1,10 +1,9 @@
1
- import { w as requireBrowser$8, q as dist, x as requireElliptic, y as getDefaultExportFromCjs, z as bnExports } from "./index_318d1d68.js";
1
+ import { w as requireBrowser$8, q as dist, x as requireElliptic, y as getDefaultExportFromCjs, z as bnExports } from "./index_3ed7e242.js";
2
2
  import "./index_86436d56.js";
3
- import "./index_4b36612f.js";
4
- import "./index_015b6eba.js";
3
+ import "./index_64ff18e7.js";
4
+ import "./index_d77fc157.js";
5
5
  import "react";
6
6
  import "@chakra-ui/react";
7
- import "@emotion/react";
8
7
  function F(e, r) {
9
8
  for (var t = 0; t < r.length; t++) {
10
9
  const o = r[t];
@@ -1,4 +1,4 @@
1
- import { D, i, j as b$1, q as q$1 } from "./index_015b6eba.js";
1
+ import { D, i, b as b$1, q as q$1 } from "./index_d77fc157.js";
2
2
  var rt = Object.defineProperty;
3
3
  var st = (n, t, e) => t in n ? rt(n, t, { enumerable: true, configurable: true, writable: true, value: e }) : n[t] = e;
4
4
  var _ = (n, t, e) => (st(n, typeof t != "symbol" ? t + "" : t, e), e), it = (n, t, e) => {
@@ -1,4 +1,4 @@
1
- import { r as require$$0$1, c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index_015b6eba.js";
1
+ import { r as require$$0$1, c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index_d77fc157.js";
2
2
  var elliptic = {};
3
3
  const name = "elliptic";
4
4
  const version = "6.5.4";
@@ -1,19 +1,19 @@
1
- import { v as vn } from "./index_381aee34.js";
2
- import "./index_265bb459.js";
3
- import "./index_2143ad7f.js";
4
- import "./index_e525ec6b.js";
5
- import "./index_6424cb67.js";
6
- import "./index_5cbed275.js";
7
- import "./index_4b36612f.js";
8
- import "./index_8e0864da.js";
9
- import "./index_13b1e6a1.js";
1
+ import { v as vn } from "./index_c2bc068c.js";
2
+ import "./index_a9d0b958.js";
3
+ import "./index_f044b02a.js";
4
+ import "./index_b4b501fc.js";
5
+ import "./index_bd7bbccf.js";
6
+ import "./index_1afbfab1.js";
7
+ import "./index_64ff18e7.js";
8
+ import "./index_7640e861.js";
9
+ import "./index_53605da3.js";
10
+ import "./index_65017d87.js";
10
11
  import "./index_86436d56.js";
11
- import "./index_015b6eba.js";
12
+ import "./index_d77fc157.js";
12
13
  import "react";
13
14
  import "@chakra-ui/react";
14
- import "@emotion/react";
15
- import "./index_d85153be.js";
16
- import "./index_70cc14bd.js";
15
+ import "./index_7c11b3c7.js";
16
+ import "./index_96d5aad1.js";
17
17
  var e;
18
18
  (function(o) {
19
19
  o.blue = "blue", o.nanoS = "nanoS", o.nanoSP = "nanoSP", o.nanoX = "nanoX", o.stax = "stax";
@@ -1,10 +1,9 @@
1
- import { c as commonjsGlobal, d as dist, g as getAugmentedNamespace, b as buffer, a as getDefaultExportFromCjs } from "./index_f59a43d2.js";
1
+ import { c as commonjsGlobal, d as dist, g as getAugmentedNamespace, b as buffer, a as getDefaultExportFromCjs } from "./index_2149ed8d.js";
2
2
  import "./index_86436d56.js";
3
- import "./index_d85153be.js";
4
- import "./index_015b6eba.js";
3
+ import "./index_7c11b3c7.js";
4
+ import "./index_d77fc157.js";
5
5
  import "react";
6
6
  import "@chakra-ui/react";
7
- import "@emotion/react";
8
7
  const Tp = Symbol(), bc = Object.getPrototypeOf, Ho = /* @__PURE__ */ new WeakMap(), Bp = (t) => t && (Ho.has(t) ? Ho.get(t) : bc(t) === Object.prototype || bc(t) === Array.prototype), Np = (t) => Bp(t) && t[Tp] || null, vc = (t, e = true) => {
9
8
  Ho.set(t, e);
10
9
  }, Xn = (t) => typeof t == "object" && t !== null, Pr = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakSet(), Lp = (t = Object.is, e = (s, l) => new Proxy(s, l), r = (s) => Xn(s) && !sn.has(s) && (Array.isArray(s) || !(Symbol.iterator in s)) && !(s instanceof WeakMap) && !(s instanceof WeakSet) && !(s instanceof Error) && !(s instanceof Number) && !(s instanceof Date) && !(s instanceof String) && !(s instanceof RegExp) && !(s instanceof ArrayBuffer), i = (s) => s.configurable && s.enumerable && s.writable, a = (s) => {
@@ -418,7 +417,7 @@ let eb = class {
418
417
  }
419
418
  async initUi() {
420
419
  if (typeof window < "u") {
421
- await import("./index_47b407db.js");
420
+ await import("./index_40cbc1cb.js");
422
421
  const e = document.createElement("wcm-modal");
423
422
  document.body.insertAdjacentElement("beforeend", e), ir.setIsUiLoaded(true);
424
423
  }
@@ -1,11 +1,10 @@
1
- import { b as On, d as Pg, a as Rg } from "./index_1d49c612.js";
2
- import { r as build } from "./index_318d1d68.js";
1
+ import { b as On, d as Pg, a as Rg } from "./index_fad80d95.js";
2
+ import { r as build } from "./index_3ed7e242.js";
3
3
  import "./index_86436d56.js";
4
- import "./index_4b36612f.js";
5
- import "./index_015b6eba.js";
4
+ import "./index_64ff18e7.js";
5
+ import "./index_d77fc157.js";
6
6
  import "react";
7
7
  import "@chakra-ui/react";
8
- import "@emotion/react";
9
8
  function he(e, t) {
10
9
  for (var n = 0; n < t.length; n++) {
11
10
  const r = t[n];
@@ -1,25 +1,4 @@
1
- import { r as require$$0, c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index_015b6eba.js";
2
- function _mergeNamespaces(n, m) {
3
- for (var i = 0; i < m.length; i++) {
4
- const e = m[i];
5
- if (typeof e !== "string" && !Array.isArray(e)) {
6
- for (const k in e) {
7
- if (k !== "default" && !(k in n)) {
8
- const d = Object.getOwnPropertyDescriptor(e, k);
9
- if (d) {
10
- Object.defineProperty(n, k, d.get ? d : {
11
- enumerable: true,
12
- get: () => e[k]
13
- });
14
- }
15
- }
16
- }
17
- }
18
- }
19
- return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
20
- }
21
- var build = {};
22
- var decimal = {};
1
+ import { r as require$$0, c as commonjsGlobal, g as getDefaultExportFromCjs } from "./index_d77fc157.js";
23
2
  var bn = { exports: {} };
24
3
  bn.exports;
25
4
  (function(module) {
@@ -178,8 +157,8 @@ bn.exports;
178
157
  }
179
158
  return this._strip();
180
159
  };
181
- function parseHex4Bits(string, index2) {
182
- var c = string.charCodeAt(index2);
160
+ function parseHex4Bits(string, index) {
161
+ var c = string.charCodeAt(index);
183
162
  if (c >= 48 && c <= 57) {
184
163
  return c - 48;
185
164
  } else if (c >= 65 && c <= 70) {
@@ -190,10 +169,10 @@ bn.exports;
190
169
  assert(false, "Invalid character in " + string);
191
170
  }
192
171
  }
193
- function parseHexByte(string, lowerBound, index2) {
194
- var r = parseHex4Bits(string, index2);
195
- if (index2 - 1 >= lowerBound) {
196
- r |= parseHex4Bits(string, index2 - 1) << 4;
172
+ function parseHexByte(string, lowerBound, index) {
173
+ var r = parseHex4Bits(string, index);
174
+ if (index - 1 >= lowerBound) {
175
+ r |= parseHex4Bits(string, index - 1) << 4;
197
176
  }
198
177
  return r;
199
178
  }
@@ -2813,431 +2792,7 @@ bn.exports;
2813
2792
  })(bn);
2814
2793
  var bnExports = bn.exports;
2815
2794
  const Sg = /* @__PURE__ */ getDefaultExportFromCjs(bnExports);
2816
- var __importDefault$1 = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
2817
- return mod && mod.__esModule ? mod : { "default": mod };
2818
- };
2819
- Object.defineProperty(decimal, "__esModule", { value: true });
2820
- decimal.Decimal = void 0;
2821
- const bn_js_1$1 = __importDefault$1(bnExports);
2822
- const maxFractionalDigits = 100;
2823
- class Decimal {
2824
- static fromUserInput(input, fractionalDigits) {
2825
- Decimal.verifyFractionalDigits(fractionalDigits);
2826
- const badCharacter = input.match(/[^0-9.]/);
2827
- if (badCharacter) {
2828
- throw new Error(`Invalid character at position ${badCharacter.index + 1}`);
2829
- }
2830
- let whole;
2831
- let fractional;
2832
- if (input === "") {
2833
- whole = "0";
2834
- fractional = "";
2835
- } else if (input.search(/\./) === -1) {
2836
- whole = input;
2837
- fractional = "";
2838
- } else {
2839
- const parts = input.split(".");
2840
- switch (parts.length) {
2841
- case 0:
2842
- case 1:
2843
- throw new Error("Fewer than two elements in split result. This must not happen here.");
2844
- case 2:
2845
- if (!parts[1])
2846
- throw new Error("Fractional part missing");
2847
- whole = parts[0];
2848
- fractional = parts[1].replace(/0+$/, "");
2849
- break;
2850
- default:
2851
- throw new Error("More than one separator found");
2852
- }
2853
- }
2854
- if (fractional.length > fractionalDigits) {
2855
- throw new Error("Got more fractional digits than supported");
2856
- }
2857
- const quantity = `${whole}${fractional.padEnd(fractionalDigits, "0")}`;
2858
- return new Decimal(quantity, fractionalDigits);
2859
- }
2860
- static fromAtomics(atomics, fractionalDigits) {
2861
- Decimal.verifyFractionalDigits(fractionalDigits);
2862
- return new Decimal(atomics, fractionalDigits);
2863
- }
2864
- /**
2865
- * Creates a Decimal with value 0.0 and the given number of fractial digits.
2866
- *
2867
- * Fractional digits are not relevant for the value but needed to be able
2868
- * to perform arithmetic operations with other decimals.
2869
- */
2870
- static zero(fractionalDigits) {
2871
- Decimal.verifyFractionalDigits(fractionalDigits);
2872
- return new Decimal("0", fractionalDigits);
2873
- }
2874
- /**
2875
- * Creates a Decimal with value 1.0 and the given number of fractial digits.
2876
- *
2877
- * Fractional digits are not relevant for the value but needed to be able
2878
- * to perform arithmetic operations with other decimals.
2879
- */
2880
- static one(fractionalDigits) {
2881
- Decimal.verifyFractionalDigits(fractionalDigits);
2882
- return new Decimal("1" + "0".repeat(fractionalDigits), fractionalDigits);
2883
- }
2884
- static verifyFractionalDigits(fractionalDigits) {
2885
- if (!Number.isInteger(fractionalDigits))
2886
- throw new Error("Fractional digits is not an integer");
2887
- if (fractionalDigits < 0)
2888
- throw new Error("Fractional digits must not be negative");
2889
- if (fractionalDigits > maxFractionalDigits) {
2890
- throw new Error(`Fractional digits must not exceed ${maxFractionalDigits}`);
2891
- }
2892
- }
2893
- static compare(a, b) {
2894
- if (a.fractionalDigits !== b.fractionalDigits)
2895
- throw new Error("Fractional digits do not match");
2896
- return a.data.atomics.cmp(new bn_js_1$1.default(b.atomics));
2897
- }
2898
- get atomics() {
2899
- return this.data.atomics.toString();
2900
- }
2901
- get fractionalDigits() {
2902
- return this.data.fractionalDigits;
2903
- }
2904
- constructor(atomics, fractionalDigits) {
2905
- if (!atomics.match(/^[0-9]+$/)) {
2906
- throw new Error("Invalid string format. Only non-negative integers in decimal representation supported.");
2907
- }
2908
- this.data = {
2909
- atomics: new bn_js_1$1.default(atomics),
2910
- fractionalDigits
2911
- };
2912
- }
2913
- /** Creates a new instance with the same value */
2914
- clone() {
2915
- return new Decimal(this.atomics, this.fractionalDigits);
2916
- }
2917
- /** Returns the greatest decimal <= this which has no fractional part (rounding down) */
2918
- floor() {
2919
- const factor = new bn_js_1$1.default(10).pow(new bn_js_1$1.default(this.data.fractionalDigits));
2920
- const whole = this.data.atomics.div(factor);
2921
- const fractional = this.data.atomics.mod(factor);
2922
- if (fractional.isZero()) {
2923
- return this.clone();
2924
- } else {
2925
- return Decimal.fromAtomics(whole.mul(factor).toString(), this.fractionalDigits);
2926
- }
2927
- }
2928
- /** Returns the smallest decimal >= this which has no fractional part (rounding up) */
2929
- ceil() {
2930
- const factor = new bn_js_1$1.default(10).pow(new bn_js_1$1.default(this.data.fractionalDigits));
2931
- const whole = this.data.atomics.div(factor);
2932
- const fractional = this.data.atomics.mod(factor);
2933
- if (fractional.isZero()) {
2934
- return this.clone();
2935
- } else {
2936
- return Decimal.fromAtomics(whole.addn(1).mul(factor).toString(), this.fractionalDigits);
2937
- }
2938
- }
2939
- toString() {
2940
- const factor = new bn_js_1$1.default(10).pow(new bn_js_1$1.default(this.data.fractionalDigits));
2941
- const whole = this.data.atomics.div(factor);
2942
- const fractional = this.data.atomics.mod(factor);
2943
- if (fractional.isZero()) {
2944
- return whole.toString();
2945
- } else {
2946
- const fullFractionalPart = fractional.toString().padStart(this.data.fractionalDigits, "0");
2947
- const trimmedFractionalPart = fullFractionalPart.replace(/0+$/, "");
2948
- return `${whole.toString()}.${trimmedFractionalPart}`;
2949
- }
2950
- }
2951
- /**
2952
- * Returns an approximation as a float type. Only use this if no
2953
- * exact calculation is required.
2954
- */
2955
- toFloatApproximation() {
2956
- const out = Number(this.toString());
2957
- if (Number.isNaN(out))
2958
- throw new Error("Conversion to number failed");
2959
- return out;
2960
- }
2961
- /**
2962
- * a.plus(b) returns a+b.
2963
- *
2964
- * Both values need to have the same fractional digits.
2965
- */
2966
- plus(b) {
2967
- if (this.fractionalDigits !== b.fractionalDigits)
2968
- throw new Error("Fractional digits do not match");
2969
- const sum = this.data.atomics.add(new bn_js_1$1.default(b.atomics));
2970
- return new Decimal(sum.toString(), this.fractionalDigits);
2971
- }
2972
- /**
2973
- * a.minus(b) returns a-b.
2974
- *
2975
- * Both values need to have the same fractional digits.
2976
- * The resulting difference needs to be non-negative.
2977
- */
2978
- minus(b) {
2979
- if (this.fractionalDigits !== b.fractionalDigits)
2980
- throw new Error("Fractional digits do not match");
2981
- const difference = this.data.atomics.sub(new bn_js_1$1.default(b.atomics));
2982
- if (difference.ltn(0))
2983
- throw new Error("Difference must not be negative");
2984
- return new Decimal(difference.toString(), this.fractionalDigits);
2985
- }
2986
- /**
2987
- * a.multiply(b) returns a*b.
2988
- *
2989
- * We only allow multiplication by unsigned integers to avoid rounding errors.
2990
- */
2991
- multiply(b) {
2992
- const product = this.data.atomics.mul(new bn_js_1$1.default(b.toString()));
2993
- return new Decimal(product.toString(), this.fractionalDigits);
2994
- }
2995
- equals(b) {
2996
- return Decimal.compare(this, b) === 0;
2997
- }
2998
- isLessThan(b) {
2999
- return Decimal.compare(this, b) < 0;
3000
- }
3001
- isLessThanOrEqual(b) {
3002
- return Decimal.compare(this, b) <= 0;
3003
- }
3004
- isGreaterThan(b) {
3005
- return Decimal.compare(this, b) > 0;
3006
- }
3007
- isGreaterThanOrEqual(b) {
3008
- return Decimal.compare(this, b) >= 0;
3009
- }
3010
- }
3011
- decimal.Decimal = Decimal;
3012
- var integers = {};
3013
- var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
3014
- return mod && mod.__esModule ? mod : { "default": mod };
3015
- };
3016
- Object.defineProperty(integers, "__esModule", { value: true });
3017
- integers.Uint64 = integers.Uint53 = integers.Int53 = integers.Uint32 = void 0;
3018
- const bn_js_1 = __importDefault(bnExports);
3019
- const uint64MaxValue = new bn_js_1.default("18446744073709551615", 10, "be");
3020
- class Uint32 {
3021
- /** @deprecated use Uint32.fromBytes */
3022
- static fromBigEndianBytes(bytes) {
3023
- return Uint32.fromBytes(bytes);
3024
- }
3025
- /**
3026
- * Creates a Uint32 from a fixed length byte array.
3027
- *
3028
- * @param bytes a list of exactly 4 bytes
3029
- * @param endianess defaults to big endian
3030
- */
3031
- static fromBytes(bytes, endianess = "be") {
3032
- if (bytes.length !== 4) {
3033
- throw new Error("Invalid input length. Expected 4 bytes.");
3034
- }
3035
- for (let i = 0; i < bytes.length; ++i) {
3036
- if (!Number.isInteger(bytes[i]) || bytes[i] > 255 || bytes[i] < 0) {
3037
- throw new Error("Invalid value in byte. Found: " + bytes[i]);
3038
- }
3039
- }
3040
- const beBytes = endianess === "be" ? bytes : Array.from(bytes).reverse();
3041
- return new Uint32(beBytes[0] * 2 ** 24 + beBytes[1] * 2 ** 16 + beBytes[2] * 2 ** 8 + beBytes[3]);
3042
- }
3043
- static fromString(str) {
3044
- if (!str.match(/^[0-9]+$/)) {
3045
- throw new Error("Invalid string format");
3046
- }
3047
- return new Uint32(Number.parseInt(str, 10));
3048
- }
3049
- constructor(input) {
3050
- if (Number.isNaN(input)) {
3051
- throw new Error("Input is not a number");
3052
- }
3053
- if (!Number.isInteger(input)) {
3054
- throw new Error("Input is not an integer");
3055
- }
3056
- if (input < 0 || input > 4294967295) {
3057
- throw new Error("Input not in uint32 range: " + input.toString());
3058
- }
3059
- this.data = input;
3060
- }
3061
- toBytesBigEndian() {
3062
- return new Uint8Array([
3063
- Math.floor(this.data / 2 ** 24) & 255,
3064
- Math.floor(this.data / 2 ** 16) & 255,
3065
- Math.floor(this.data / 2 ** 8) & 255,
3066
- Math.floor(this.data / 2 ** 0) & 255
3067
- ]);
3068
- }
3069
- toBytesLittleEndian() {
3070
- return new Uint8Array([
3071
- Math.floor(this.data / 2 ** 0) & 255,
3072
- Math.floor(this.data / 2 ** 8) & 255,
3073
- Math.floor(this.data / 2 ** 16) & 255,
3074
- Math.floor(this.data / 2 ** 24) & 255
3075
- ]);
3076
- }
3077
- toNumber() {
3078
- return this.data;
3079
- }
3080
- toBigInt() {
3081
- return BigInt(this.toNumber());
3082
- }
3083
- toString() {
3084
- return this.data.toString();
3085
- }
3086
- }
3087
- integers.Uint32 = Uint32;
3088
- class Int53 {
3089
- static fromString(str) {
3090
- if (!str.match(/^-?[0-9]+$/)) {
3091
- throw new Error("Invalid string format");
3092
- }
3093
- return new Int53(Number.parseInt(str, 10));
3094
- }
3095
- constructor(input) {
3096
- if (Number.isNaN(input)) {
3097
- throw new Error("Input is not a number");
3098
- }
3099
- if (!Number.isInteger(input)) {
3100
- throw new Error("Input is not an integer");
3101
- }
3102
- if (input < Number.MIN_SAFE_INTEGER || input > Number.MAX_SAFE_INTEGER) {
3103
- throw new Error("Input not in int53 range: " + input.toString());
3104
- }
3105
- this.data = input;
3106
- }
3107
- toNumber() {
3108
- return this.data;
3109
- }
3110
- toBigInt() {
3111
- return BigInt(this.toNumber());
3112
- }
3113
- toString() {
3114
- return this.data.toString();
3115
- }
3116
- }
3117
- integers.Int53 = Int53;
3118
- class Uint53 {
3119
- static fromString(str) {
3120
- const signed = Int53.fromString(str);
3121
- return new Uint53(signed.toNumber());
3122
- }
3123
- constructor(input) {
3124
- const signed = new Int53(input);
3125
- if (signed.toNumber() < 0) {
3126
- throw new Error("Input is negative");
3127
- }
3128
- this.data = signed;
3129
- }
3130
- toNumber() {
3131
- return this.data.toNumber();
3132
- }
3133
- toBigInt() {
3134
- return BigInt(this.toNumber());
3135
- }
3136
- toString() {
3137
- return this.data.toString();
3138
- }
3139
- }
3140
- integers.Uint53 = Uint53;
3141
- class Uint64 {
3142
- /** @deprecated use Uint64.fromBytes */
3143
- static fromBytesBigEndian(bytes) {
3144
- return Uint64.fromBytes(bytes);
3145
- }
3146
- /**
3147
- * Creates a Uint64 from a fixed length byte array.
3148
- *
3149
- * @param bytes a list of exactly 8 bytes
3150
- * @param endianess defaults to big endian
3151
- */
3152
- static fromBytes(bytes, endianess = "be") {
3153
- if (bytes.length !== 8) {
3154
- throw new Error("Invalid input length. Expected 8 bytes.");
3155
- }
3156
- for (let i = 0; i < bytes.length; ++i) {
3157
- if (!Number.isInteger(bytes[i]) || bytes[i] > 255 || bytes[i] < 0) {
3158
- throw new Error("Invalid value in byte. Found: " + bytes[i]);
3159
- }
3160
- }
3161
- const beBytes = endianess === "be" ? Array.from(bytes) : Array.from(bytes).reverse();
3162
- return new Uint64(new bn_js_1.default(beBytes));
3163
- }
3164
- static fromString(str) {
3165
- if (!str.match(/^[0-9]+$/)) {
3166
- throw new Error("Invalid string format");
3167
- }
3168
- return new Uint64(new bn_js_1.default(str, 10, "be"));
3169
- }
3170
- static fromNumber(input) {
3171
- if (Number.isNaN(input)) {
3172
- throw new Error("Input is not a number");
3173
- }
3174
- if (!Number.isInteger(input)) {
3175
- throw new Error("Input is not an integer");
3176
- }
3177
- let bigint;
3178
- try {
3179
- bigint = new bn_js_1.default(input);
3180
- } catch {
3181
- throw new Error("Input is not a safe integer");
3182
- }
3183
- return new Uint64(bigint);
3184
- }
3185
- constructor(data) {
3186
- if (data.isNeg()) {
3187
- throw new Error("Input is negative");
3188
- }
3189
- if (data.gt(uint64MaxValue)) {
3190
- throw new Error("Input exceeds uint64 range");
3191
- }
3192
- this.data = data;
3193
- }
3194
- toBytesBigEndian() {
3195
- return Uint8Array.from(this.data.toArray("be", 8));
3196
- }
3197
- toBytesLittleEndian() {
3198
- return Uint8Array.from(this.data.toArray("le", 8));
3199
- }
3200
- toString() {
3201
- return this.data.toString(10);
3202
- }
3203
- toBigInt() {
3204
- return BigInt(this.toString());
3205
- }
3206
- toNumber() {
3207
- return this.data.toNumber();
3208
- }
3209
- }
3210
- integers.Uint64 = Uint64;
3211
- (function(exports) {
3212
- Object.defineProperty(exports, "__esModule", { value: true });
3213
- exports.Uint64 = exports.Uint53 = exports.Uint32 = exports.Int53 = exports.Decimal = void 0;
3214
- var decimal_1 = decimal;
3215
- Object.defineProperty(exports, "Decimal", { enumerable: true, get: function() {
3216
- return decimal_1.Decimal;
3217
- } });
3218
- var integers_1 = integers;
3219
- Object.defineProperty(exports, "Int53", { enumerable: true, get: function() {
3220
- return integers_1.Int53;
3221
- } });
3222
- Object.defineProperty(exports, "Uint32", { enumerable: true, get: function() {
3223
- return integers_1.Uint32;
3224
- } });
3225
- Object.defineProperty(exports, "Uint53", { enumerable: true, get: function() {
3226
- return integers_1.Uint53;
3227
- } });
3228
- Object.defineProperty(exports, "Uint64", { enumerable: true, get: function() {
3229
- return integers_1.Uint64;
3230
- } });
3231
- })(build);
3232
- const Yi = /* @__PURE__ */ getDefaultExportFromCjs(build);
3233
- const index = /* @__PURE__ */ _mergeNamespaces({
3234
- __proto__: null,
3235
- default: Yi
3236
- }, [build]);
3237
2795
  export {
3238
2796
  Sg as S,
3239
- Yi as Y,
3240
- bnExports as a,
3241
- build as b,
3242
- index as i
2797
+ bnExports as b
3243
2798
  };
@@ -27,7 +27,7 @@ var __privateMethod = (obj, member, method) => {
27
27
  return method;
28
28
  };
29
29
  var _r, _s, _v, _networkV, _privateKey, _type, _to, _data, _nonce, _gasLimit, _gasPrice, _maxPriorityFeePerGas, _maxFeePerGas, _value, _chainId, _sig, _accessList, _transactions, _logs, _startBlock, _throwUnsupported, throwUnsupported_fn;
30
- import { h as crypto_1 } from "./index_015b6eba.js";
30
+ import { e as crypto } from "./index_d77fc157.js";
31
31
  function number(n) {
32
32
  if (!Number.isSafeInteger(n) || n < 0)
33
33
  throw new Error(`Wrong positive integer: ${n}`);
@@ -123,8 +123,8 @@ function wrapConstructor(hashCons) {
123
123
  return hashC;
124
124
  }
125
125
  function randomBytes(bytesLength = 32) {
126
- if (crypto_1 && typeof crypto_1.getRandomValues === "function") {
127
- return crypto_1.getRandomValues(new Uint8Array(bytesLength));
126
+ if (crypto && typeof crypto.getRandomValues === "function") {
127
+ return crypto.getRandomValues(new Uint8Array(bytesLength));
128
128
  }
129
129
  throw new Error("crypto.getRandomValues must be defined");
130
130
  }
@@ -1,10 +1,9 @@
1
- import { r as re } from "./index_aa947e34.js";
2
- import { A as A$1 } from "./index_4b36612f.js";
1
+ import { r as re } from "./index_9346dd3d.js";
2
+ import { A as A$1 } from "./index_64ff18e7.js";
3
3
  import "./index_86436d56.js";
4
- import "./index_015b6eba.js";
4
+ import "./index_d77fc157.js";
5
5
  import "react";
6
6
  import "@chakra-ui/react";
7
- import "@emotion/react";
8
7
  var nt = Object.defineProperty, at = (u85, c, l) => c in u85 ? nt(u85, c, { enumerable: true, configurable: true, writable: true, value: l }) : u85[c] = l, qr = (u85, c, l) => (at(u85, typeof c != "symbol" ? c + "" : c, l), l), ot = (u85, c, l) => {
9
8
  if (!c.has(u85))
10
9
  throw TypeError("Cannot " + l);
@@ -20232,7 +20231,7 @@ class CosmosClient {
20232
20231
  }) => {
20233
20232
  if (!F)
20234
20233
  throw new Error("Signer not defined");
20235
- const { SigningStargateClient: Y } = await import("./index_bfa7b443.js").then((J) => J.i);
20234
+ const { SigningStargateClient: Y } = await import("./index_d26b5754.js").then((J) => J.i);
20236
20235
  return (await (await Y.connectWithSigner(this.rpcUrl, F)).sendTokens(
20237
20236
  h,
20238
20237
  P,
@@ -20241,10 +20240,10 @@ class CosmosClient {
20241
20240
  $
20242
20241
  )).transactionHash;
20243
20242
  }), tt(this, Zr, async () => {
20244
- const { StargateClient: h } = await import("./index_bfa7b443.js").then((P) => P.i);
20243
+ const { StargateClient: h } = await import("./index_d26b5754.js").then((P) => P.i);
20245
20244
  return await h.connect(this.rpcUrl);
20246
20245
  }), tt(this, Xr, async (h, P) => {
20247
- const { Secp256k1HdWallet: v } = await import("./index_ed259edc.js").then((g) => g.i), { stringToPath: $ } = await import("./index_6fc14522.js").then((g) => g.i);
20246
+ const { Secp256k1HdWallet: v } = await import("./index_47217799.js").then((g) => g.i), { stringToPath: $ } = await import("./index_1a6a5598.js").then((g) => g.i);
20248
20247
  return await v.fromMnemonic(h, {
20249
20248
  prefix: this.prefix,
20250
20249
  hdPaths: [$(P)]
@@ -20342,14 +20341,14 @@ const O$1 = (u85) => ("recipientAddress" in u85 && u85.recipientAddress && (u85.
20342
20341
  }) => ({
20343
20342
  transfer: c.transfer,
20344
20343
  getSigner: async (l) => {
20345
- const { DirectSecp256k1HdWallet: m } = await import("./index_d869d4f8.js").then((h) => h.i), { stringToPath: q } = await import("./index_6fc14522.js").then((h) => h.i);
20344
+ const { DirectSecp256k1HdWallet: m } = await import("./index_abaa7487.js").then((h) => h.i), { stringToPath: q } = await import("./index_1a6a5598.js").then((h) => h.i);
20346
20345
  return m.fromMnemonic(l, {
20347
20346
  prefix: c.prefix,
20348
20347
  hdPaths: [q(`${u85}/0`)]
20349
20348
  });
20350
20349
  },
20351
20350
  getSignerFromPrivateKey: async (l) => {
20352
- const { DirectSecp256k1Wallet: m } = await import("./index_d869d4f8.js").then((q) => q.i);
20351
+ const { DirectSecp256k1Wallet: m } = await import("./index_abaa7487.js").then((q) => q.i);
20353
20352
  return m.fromKey(l, c.prefix);
20354
20353
  },
20355
20354
  getAccount: c.getAccount,