@gardenfi/utils 2.1.3-beta.1 → 2.1.3-beta.11

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 (149) hide show
  1. package/dist/index104.cjs +1 -1
  2. package/dist/index104.js +1 -1
  3. package/dist/index107.cjs +1 -1
  4. package/dist/index107.js +71 -42
  5. package/dist/index108.cjs +1 -1
  6. package/dist/index108.js +2 -2
  7. package/dist/index110.cjs +1 -1
  8. package/dist/index110.js +1 -1
  9. package/dist/index111.cjs +1 -1
  10. package/dist/index111.js +1 -1
  11. package/dist/index112.cjs +1 -1
  12. package/dist/index112.js +1 -1
  13. package/dist/index113.cjs +1 -1
  14. package/dist/index113.js +1 -1
  15. package/dist/index125.cjs +1 -1
  16. package/dist/index125.js +1 -1
  17. package/dist/index15.cjs +1 -1
  18. package/dist/index15.js +4 -4
  19. package/dist/index166.cjs +1 -1
  20. package/dist/index166.js +36 -34
  21. package/dist/index192.cjs +1 -1
  22. package/dist/index192.js +15 -18
  23. package/dist/index222.cjs +1 -1
  24. package/dist/index222.js +2 -2
  25. package/dist/index225.cjs +1 -1
  26. package/dist/index225.js +43 -43
  27. package/dist/index226.cjs +1 -1
  28. package/dist/index226.js +3 -113
  29. package/dist/index23.cjs +1 -1
  30. package/dist/index23.js +13 -31
  31. package/dist/index231.cjs +1 -1
  32. package/dist/index231.js +1 -1
  33. package/dist/index232.cjs +1 -1
  34. package/dist/index232.js +1 -1
  35. package/dist/index233.cjs +1 -1
  36. package/dist/index233.js +2 -2
  37. package/dist/index24.cjs +1 -1
  38. package/dist/index24.js +58 -32
  39. package/dist/index245.cjs +1 -1
  40. package/dist/index245.js +3 -3
  41. package/dist/index246.cjs +1 -1
  42. package/dist/index246.js +3 -3
  43. package/dist/index247.cjs +1 -2
  44. package/dist/index247.js +13 -24
  45. package/dist/index248.cjs +1 -1
  46. package/dist/index248.js +15 -13
  47. package/dist/index249.cjs +2 -1
  48. package/dist/index249.js +23 -14
  49. package/dist/index25.cjs +16 -1
  50. package/dist/index25.js +113 -11
  51. package/dist/index26.cjs +1 -1
  52. package/dist/index26.js +32 -58
  53. package/dist/index266.cjs +1 -1
  54. package/dist/index266.js +1 -1
  55. package/dist/index27.cjs +1 -1
  56. package/dist/index27.js +31 -13
  57. package/dist/index277.cjs +1 -1
  58. package/dist/index277.js +103 -16
  59. package/dist/index278.cjs +1 -1
  60. package/dist/index278.js +13 -220
  61. package/dist/index279.cjs +1 -1
  62. package/dist/index279.js +214 -6
  63. package/dist/index28.cjs +1 -16
  64. package/dist/index28.js +11 -113
  65. package/dist/index280.cjs +1 -1
  66. package/dist/index280.js +7 -7
  67. package/dist/index281.cjs +1 -1
  68. package/dist/index281.js +7 -27
  69. package/dist/index282.cjs +1 -1
  70. package/dist/index282.js +26 -34
  71. package/dist/index283.cjs +1 -1
  72. package/dist/index283.js +13 -12
  73. package/dist/index284.cjs +1 -1
  74. package/dist/index284.js +89 -51
  75. package/dist/index285.cjs +1 -1
  76. package/dist/index285.js +3 -67
  77. package/dist/index286.cjs +1 -1
  78. package/dist/index286.js +140 -3
  79. package/dist/index287.cjs +1 -1
  80. package/dist/index287.js +143 -128
  81. package/dist/index288.cjs +1 -1
  82. package/dist/index288.js +9 -155
  83. package/dist/index289.cjs +1 -1
  84. package/dist/index289.js +111 -7
  85. package/dist/index290.cjs +2 -1
  86. package/dist/index290.js +116 -95
  87. package/dist/index291.cjs +1 -2
  88. package/dist/index291.js +8 -131
  89. package/dist/index292.cjs +1 -1
  90. package/dist/index292.js +19 -40
  91. package/dist/index293.cjs +1 -1
  92. package/dist/index293.js +43 -2
  93. package/dist/index294.cjs +1 -1
  94. package/dist/index294.js +74 -202
  95. package/dist/index295.cjs +1 -1
  96. package/dist/index295.js +2 -69
  97. package/dist/index296.cjs +1 -1
  98. package/dist/index296.js +68 -11
  99. package/dist/index297.cjs +1 -1
  100. package/dist/index297.js +656 -18
  101. package/dist/index298.cjs +1 -1
  102. package/dist/index298.js +197 -633
  103. package/dist/index299.cjs +1 -1
  104. package/dist/index299.js +78 -73
  105. package/dist/index300.cjs +2 -2
  106. package/dist/index300.js +7 -7
  107. package/dist/index302.cjs +1 -1
  108. package/dist/index302.js +1 -1
  109. package/dist/index303.cjs +1 -1
  110. package/dist/index303.js +2 -2
  111. package/dist/index305.cjs +1 -1
  112. package/dist/index305.js +1 -1
  113. package/dist/index307.cjs +1 -1
  114. package/dist/index307.js +2 -2
  115. package/dist/index308.cjs +1 -1
  116. package/dist/index308.js +1 -1
  117. package/dist/index310.cjs +1 -1
  118. package/dist/index310.js +1 -1
  119. package/dist/index311.cjs +1 -1
  120. package/dist/index311.js +5 -105
  121. package/dist/index312.cjs +1 -1
  122. package/dist/index312.js +2 -5
  123. package/dist/index313.cjs +1 -1
  124. package/dist/index313.js +22 -2
  125. package/dist/index36.cjs +1 -1
  126. package/dist/index36.js +1 -1
  127. package/dist/index43.cjs +1 -1
  128. package/dist/index43.js +40 -21
  129. package/dist/index44.cjs +1 -1
  130. package/dist/index44.js +24 -24
  131. package/dist/index58.cjs +1 -1
  132. package/dist/index58.js +98 -97
  133. package/dist/index79.cjs +1 -1
  134. package/dist/index79.js +1 -1
  135. package/dist/index84.cjs +1 -1
  136. package/dist/index84.js +53 -51
  137. package/dist/index9.cjs +1 -1
  138. package/dist/index9.js +4 -4
  139. package/dist/index90.cjs +1 -1
  140. package/dist/index90.js +44 -42
  141. package/dist/index92.cjs +1 -1
  142. package/dist/index92.js +15 -15
  143. package/package.json +1 -1
  144. package/dist/index314.cjs +0 -1
  145. package/dist/index314.js +0 -22
  146. package/dist/index315.cjs +0 -1
  147. package/dist/index315.js +0 -74
  148. package/dist/index316.cjs +0 -1
  149. package/dist/index316.js +0 -24
package/dist/index225.js CHANGED
@@ -1,59 +1,59 @@
1
- import { anumber as d, aexists as k, abytes as B, aoutput as A } from "./index282.js";
2
- import { rotlSH as H, rotlSL as m, rotlBH as S, rotlBL as T, split as F } from "./index283.js";
3
- import { wrapConstructor as X, Hash as E, u32 as U, isLE as x, byteSwap32 as I, toBytes as P } from "./index284.js";
4
- const y = [], b = [], L = [], M = /* @__PURE__ */ BigInt(0), f = /* @__PURE__ */ BigInt(1), R = /* @__PURE__ */ BigInt(2), j = /* @__PURE__ */ BigInt(7), C = /* @__PURE__ */ BigInt(256), q = /* @__PURE__ */ BigInt(113);
5
- for (let i = 0, t = f, s = 1, n = 0; i < 24; i++) {
6
- [s, n] = [n, (2 * s + 3 * n) % 5], y.push(2 * (5 * n + s)), b.push((i + 1) * (i + 2) / 2 % 64);
7
- let o = M;
1
+ import { split as L, rotlSH as T, rotlSL as S, rotlBH as m, rotlBL as F } from "./index283.js";
2
+ import { createHasher as X, Hash as E, anumber as d, u32 as U, swap32IfBE as I, aexists as x, toBytes as P, abytes as k, aoutput as M, clean as y } from "./index284.js";
3
+ const R = BigInt(0), f = BigInt(1), j = BigInt(2), q = BigInt(7), v = BigInt(256), z = BigInt(113), _ = [], g = [], B = [];
4
+ for (let n = 0, t = f, s = 1, i = 0; n < 24; n++) {
5
+ [s, i] = [i, (2 * s + 3 * i) % 5], _.push(2 * (5 * i + s)), g.push((n + 1) * (n + 2) / 2 % 64);
6
+ let o = R;
8
7
  for (let r = 0; r < 7; r++)
9
- t = (t << f ^ (t >> j) * q) % C, t & R && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
10
- L.push(o);
8
+ t = (t << f ^ (t >> q) * z) % v, t & j && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
9
+ B.push(o);
11
10
  }
12
- const [v, z] = /* @__PURE__ */ F(L, !0), O = (i, t, s) => s > 32 ? S(i, t, s) : H(i, t, s), w = (i, t, s) => s > 32 ? T(i, t, s) : m(i, t, s);
13
- function D(i, t = 24) {
11
+ const A = L(B, !0), C = A[0], D = A[1], O = (n, t, s) => s > 32 ? m(n, t, s) : T(n, t, s), w = (n, t, s) => s > 32 ? F(n, t, s) : S(n, t, s);
12
+ function G(n, t = 24) {
14
13
  const s = new Uint32Array(10);
15
- for (let n = 24 - t; n < 24; n++) {
14
+ for (let i = 24 - t; i < 24; i++) {
16
15
  for (let e = 0; e < 10; e++)
17
- s[e] = i[e] ^ i[e + 10] ^ i[e + 20] ^ i[e + 30] ^ i[e + 40];
16
+ s[e] = n[e] ^ n[e + 10] ^ n[e + 20] ^ n[e + 30] ^ n[e + 40];
18
17
  for (let e = 0; e < 10; e += 2) {
19
- const h = (e + 8) % 10, l = (e + 2) % 10, u = s[l], c = s[l + 1], _ = O(u, c, 1) ^ s[h], g = w(u, c, 1) ^ s[h + 1];
18
+ const h = (e + 8) % 10, l = (e + 2) % 10, u = s[l], c = s[l + 1], b = O(u, c, 1) ^ s[h], H = w(u, c, 1) ^ s[h + 1];
20
19
  for (let a = 0; a < 50; a += 10)
21
- i[e + a] ^= _, i[e + a + 1] ^= g;
20
+ n[e + a] ^= b, n[e + a + 1] ^= H;
22
21
  }
23
- let o = i[2], r = i[3];
22
+ let o = n[2], r = n[3];
24
23
  for (let e = 0; e < 24; e++) {
25
- const h = b[e], l = O(o, r, h), u = w(o, r, h), c = y[e];
26
- o = i[c], r = i[c + 1], i[c] = l, i[c + 1] = u;
24
+ const h = g[e], l = O(o, r, h), u = w(o, r, h), c = _[e];
25
+ o = n[c], r = n[c + 1], n[c] = l, n[c + 1] = u;
27
26
  }
28
27
  for (let e = 0; e < 50; e += 10) {
29
28
  for (let h = 0; h < 10; h++)
30
- s[h] = i[e + h];
29
+ s[h] = n[e + h];
31
30
  for (let h = 0; h < 10; h++)
32
- i[e + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
31
+ n[e + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
33
32
  }
34
- i[0] ^= v[n], i[1] ^= z[n];
33
+ n[0] ^= C[i], n[1] ^= D[i];
35
34
  }
36
- s.fill(0);
35
+ y(s);
37
36
  }
38
37
  class p extends E {
39
38
  // NOTE: we accept arguments in bytes instead of bits here.
40
- constructor(t, s, n, o = !1, r = 24) {
41
- if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = o, this.rounds = r, d(n), 0 >= this.blockLen || this.blockLen >= 200)
42
- throw new Error("Sha3 supports only keccak-f1600 function");
39
+ constructor(t, s, i, o = !1, r = 24) {
40
+ if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = s, this.outputLen = i, this.enableXOF = o, this.rounds = r, d(i), !(0 < t && t < 200))
41
+ throw new Error("only keccak-f1600 function is supported");
43
42
  this.state = new Uint8Array(200), this.state32 = U(this.state);
44
43
  }
44
+ clone() {
45
+ return this._cloneInto();
46
+ }
45
47
  keccak() {
46
- x || I(this.state32), D(this.state32, this.rounds), x || I(this.state32), this.posOut = 0, this.pos = 0;
48
+ I(this.state32), G(this.state32, this.rounds), I(this.state32), this.posOut = 0, this.pos = 0;
47
49
  }
48
50
  update(t) {
49
- k(this);
50
- const { blockLen: s, state: n } = this;
51
- t = P(t);
52
- const o = t.length;
51
+ x(this), t = P(t), k(t);
52
+ const { blockLen: s, state: i } = this, o = t.length;
53
53
  for (let r = 0; r < o; ) {
54
54
  const e = Math.min(s - this.pos, o - r);
55
55
  for (let h = 0; h < e; h++)
56
- n[this.pos++] ^= t[r++];
56
+ i[this.pos++] ^= t[r++];
57
57
  this.pos === s && this.keccak();
58
58
  }
59
59
  return this;
@@ -62,15 +62,15 @@ class p extends E {
62
62
  if (this.finished)
63
63
  return;
64
64
  this.finished = !0;
65
- const { state: t, suffix: s, pos: n, blockLen: o } = this;
66
- t[n] ^= s, s & 128 && n === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
65
+ const { state: t, suffix: s, pos: i, blockLen: o } = this;
66
+ t[i] ^= s, s & 128 && i === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
67
67
  }
68
68
  writeInto(t) {
69
- k(this, !1), B(t), this.finish();
70
- const s = this.state, { blockLen: n } = this;
69
+ x(this, !1), k(t), this.finish();
70
+ const s = this.state, { blockLen: i } = this;
71
71
  for (let o = 0, r = t.length; o < r; ) {
72
- this.posOut >= n && this.keccak();
73
- const e = Math.min(n - this.posOut, r - o);
72
+ this.posOut >= i && this.keccak();
73
+ const e = Math.min(i - this.posOut, r - o);
74
74
  t.set(s.subarray(this.posOut, this.posOut + e), o), this.posOut += e, o += e;
75
75
  }
76
76
  return t;
@@ -84,7 +84,7 @@ class p extends E {
84
84
  return d(t), this.xofInto(new Uint8Array(t));
85
85
  }
86
86
  digestInto(t) {
87
- if (A(t, this), this.finished)
87
+ if (M(t, this), this.finished)
88
88
  throw new Error("digest() was already called");
89
89
  return this.writeInto(t), this.destroy(), t;
90
90
  }
@@ -92,16 +92,16 @@ class p extends E {
92
92
  return this.digestInto(new Uint8Array(this.outputLen));
93
93
  }
94
94
  destroy() {
95
- this.destroyed = !0, this.state.fill(0);
95
+ this.destroyed = !0, y(this.state);
96
96
  }
97
97
  _cloneInto(t) {
98
- const { blockLen: s, suffix: n, outputLen: o, rounds: r, enableXOF: e } = this;
99
- return t || (t = new p(s, n, o, e, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = n, t.outputLen = o, t.enableXOF = e, t.destroyed = this.destroyed, t;
98
+ const { blockLen: s, suffix: i, outputLen: o, rounds: r, enableXOF: e } = this;
99
+ return t || (t = new p(s, i, o, e, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = i, t.outputLen = o, t.enableXOF = e, t.destroyed = this.destroyed, t;
100
100
  }
101
101
  }
102
- const G = (i, t, s) => X(() => new p(t, i, s)), Q = /* @__PURE__ */ G(1, 136, 256 / 8);
102
+ const J = (n, t, s) => X(() => new p(t, n, s)), Q = J(1, 136, 256 / 8);
103
103
  export {
104
104
  p as Keccak,
105
- D as keccakP,
105
+ G as keccakP,
106
106
  Q as keccak_256
107
107
  };
package/dist/index226.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("./index285.cjs"),s=require("./index284.cjs"),S=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),b=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),f=new Uint32Array(64);class g extends H.HashMD{constructor(o=32){super(64,o,8,!1),this.A=b[0]|0,this.B=b[1]|0,this.C=b[2]|0,this.D=b[3]|0,this.E=b[4]|0,this.F=b[5]|0,this.G=b[6]|0,this.H=b[7]|0}get(){const{A:o,B:h,C:x,D:e,E:a,F:i,G:c,H:r}=this;return[o,h,x,e,a,i,c,r]}set(o,h,x,e,a,i,c,r){this.A=o|0,this.B=h|0,this.C=x|0,this.D=e|0,this.E=a|0,this.F=i|0,this.G=c|0,this.H=r|0}process(o,h){for(let t=0;t<16;t++,h+=4)f[t]=o.getUint32(h,!1);for(let t=16;t<64;t++){const A=f[t-15],d=f[t-2],C=s.rotr(A,7)^s.rotr(A,18)^A>>>3,u=s.rotr(d,17)^s.rotr(d,19)^d>>>10;f[t]=u+f[t-7]+C+f[t-16]|0}let{A:x,B:e,C:a,D:i,E:c,F:r,G:n,H:l}=this;for(let t=0;t<64;t++){const A=s.rotr(c,6)^s.rotr(c,11)^s.rotr(c,25),d=l+A+H.Chi(c,r,n)+S[t]+f[t]|0,u=(s.rotr(x,2)^s.rotr(x,13)^s.rotr(x,22))+H.Maj(x,e,a)|0;l=n,n=r,r=c,c=i+d|0,i=a,a=e,e=x,x=d+u|0}x=x+this.A|0,e=e+this.B|0,a=a+this.C|0,i=i+this.D|0,c=c+this.E|0,r=r+this.F|0,n=n+this.G|0,l=l+this.H|0,this.set(x,e,a,i,c,r,n,l)}roundClean(){f.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const y=s.wrapConstructor(()=>new g);exports.SHA256=g;exports.sha256=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index277.cjs"),s=e.sha256;exports.sha256=s;
package/dist/index226.js CHANGED
@@ -1,115 +1,5 @@
1
- import { HashMD as m, Chi as p, Maj as u } from "./index285.js";
2
- import { wrapConstructor as D, rotr as i } from "./index284.js";
3
- const g = /* @__PURE__ */ new Uint32Array([
4
- 1116352408,
5
- 1899447441,
6
- 3049323471,
7
- 3921009573,
8
- 961987163,
9
- 1508970993,
10
- 2453635748,
11
- 2870763221,
12
- 3624381080,
13
- 310598401,
14
- 607225278,
15
- 1426881987,
16
- 1925078388,
17
- 2162078206,
18
- 2614888103,
19
- 3248222580,
20
- 3835390401,
21
- 4022224774,
22
- 264347078,
23
- 604807628,
24
- 770255983,
25
- 1249150122,
26
- 1555081692,
27
- 1996064986,
28
- 2554220882,
29
- 2821834349,
30
- 2952996808,
31
- 3210313671,
32
- 3336571891,
33
- 3584528711,
34
- 113926993,
35
- 338241895,
36
- 666307205,
37
- 773529912,
38
- 1294757372,
39
- 1396182291,
40
- 1695183700,
41
- 1986661051,
42
- 2177026350,
43
- 2456956037,
44
- 2730485921,
45
- 2820302411,
46
- 3259730800,
47
- 3345764771,
48
- 3516065817,
49
- 3600352804,
50
- 4094571909,
51
- 275423344,
52
- 430227734,
53
- 506948616,
54
- 659060556,
55
- 883997877,
56
- 958139571,
57
- 1322822218,
58
- 1537002063,
59
- 1747873779,
60
- 1955562222,
61
- 2024104815,
62
- 2227730452,
63
- 2361852424,
64
- 2428436474,
65
- 2756734187,
66
- 3204031479,
67
- 3329325298
68
- ]), b = /* @__PURE__ */ new Uint32Array([
69
- 1779033703,
70
- 3144134277,
71
- 1013904242,
72
- 2773480762,
73
- 1359893119,
74
- 2600822924,
75
- 528734635,
76
- 1541459225
77
- ]), h = /* @__PURE__ */ new Uint32Array(64);
78
- class w extends m {
79
- constructor(o = 32) {
80
- super(64, o, 8, !1), this.A = b[0] | 0, this.B = b[1] | 0, this.C = b[2] | 0, this.D = b[3] | 0, this.E = b[4] | 0, this.F = b[5] | 0, this.G = b[6] | 0, this.H = b[7] | 0;
81
- }
82
- get() {
83
- const { A: o, B: r, C: t, D: s, E: a, F: f, G: c, H: e } = this;
84
- return [o, r, t, s, a, f, c, e];
85
- }
86
- // prettier-ignore
87
- set(o, r, t, s, a, f, c, e) {
88
- this.A = o | 0, this.B = r | 0, this.C = t | 0, this.D = s | 0, this.E = a | 0, this.F = f | 0, this.G = c | 0, this.H = e | 0;
89
- }
90
- process(o, r) {
91
- for (let x = 0; x < 16; x++, r += 4)
92
- h[x] = o.getUint32(r, !1);
93
- for (let x = 16; x < 64; x++) {
94
- const A = h[x - 15], d = h[x - 2], C = i(A, 7) ^ i(A, 18) ^ A >>> 3, H = i(d, 17) ^ i(d, 19) ^ d >>> 10;
95
- h[x] = H + h[x - 7] + C + h[x - 16] | 0;
96
- }
97
- let { A: t, B: s, C: a, D: f, E: c, F: e, G: n, H: l } = this;
98
- for (let x = 0; x < 64; x++) {
99
- const A = i(c, 6) ^ i(c, 11) ^ i(c, 25), d = l + A + p(c, e, n) + g[x] + h[x] | 0, H = (i(t, 2) ^ i(t, 13) ^ i(t, 22)) + u(t, s, a) | 0;
100
- l = n, n = e, e = c, c = f + d | 0, f = a, a = s, s = t, t = d + H | 0;
101
- }
102
- t = t + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, f = f + this.D | 0, c = c + this.E | 0, e = e + this.F | 0, n = n + this.G | 0, l = l + this.H | 0, this.set(t, s, a, f, c, e, n, l);
103
- }
104
- roundClean() {
105
- h.fill(0);
106
- }
107
- destroy() {
108
- this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
109
- }
110
- }
111
- const G = /* @__PURE__ */ D(() => new w());
1
+ import { sha256 as s } from "./index277.js";
2
+ const o = s;
112
3
  export {
113
- w as SHA256,
114
- G as sha256
4
+ o as sha256
115
5
  };
package/dist/index23.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index213.cjs"),a=e.defineChain({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0});exports.sepolia=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index44.cjs"),c=require("./index98.cjs");function r(e){const{key:t="wallet",name:l="Wallet Client",transport:n}=e;return i.createClient({...e,key:t,name:l,transport:n,type:"walletClient"}).extend(c.walletActions)}exports.createWalletClient=r;
package/dist/index23.js CHANGED
@@ -1,33 +1,15 @@
1
- import { defineChain as e } from "./index213.js";
2
- const s = /* @__PURE__ */ e({
3
- id: 11155111,
4
- name: "Sepolia",
5
- nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
6
- rpcUrls: {
7
- default: {
8
- http: ["https://sepolia.drpc.org"]
9
- }
10
- },
11
- blockExplorers: {
12
- default: {
13
- name: "Etherscan",
14
- url: "https://sepolia.etherscan.io",
15
- apiUrl: "https://api-sepolia.etherscan.io/api"
16
- }
17
- },
18
- contracts: {
19
- multicall3: {
20
- address: "0xca11bde05977b3631167028862be2a173976ca11",
21
- blockCreated: 751532
22
- },
23
- ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
24
- ensUniversalResolver: {
25
- address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",
26
- blockCreated: 5317080
27
- }
28
- },
29
- testnet: !0
30
- });
1
+ import { createClient as i } from "./index44.js";
2
+ import { walletActions as o } from "./index98.js";
3
+ function m(t) {
4
+ const { key: e = "wallet", name: l = "Wallet Client", transport: n } = t;
5
+ return i({
6
+ ...t,
7
+ key: e,
8
+ name: l,
9
+ transport: n,
10
+ type: "walletClient"
11
+ }).extend(o);
12
+ }
31
13
  export {
32
- s as sepolia
14
+ m as createWalletClient
33
15
  };
package/dist/index231.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index149.cjs"),a=require("./index286.cjs"),c=require("./index148.cjs");function h(i){const r=i.replace(/^\.|\.$/gm,"");if(r.length===0)return new Uint8Array(1);const e=new Uint8Array(l.stringToBytes(r).byteLength+2);let t=0;const o=r.split(".");for(let s=0;s<o.length;s++){let n=l.stringToBytes(o[s]);n.byteLength>255&&(n=l.stringToBytes(a.encodeLabelhash(c.labelhash(o[s])))),e[t]=n.length,e.set(n,t+1),t+=n.length+1}return e.byteLength!==t+1?e.slice(0,t+1):e}exports.packetToBytes=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index149.cjs"),a=require("./index285.cjs"),c=require("./index148.cjs");function h(i){const r=i.replace(/^\.|\.$/gm,"");if(r.length===0)return new Uint8Array(1);const e=new Uint8Array(l.stringToBytes(r).byteLength+2);let t=0;const o=r.split(".");for(let s=0;s<o.length;s++){let n=l.stringToBytes(o[s]);n.byteLength>255&&(n=l.stringToBytes(a.encodeLabelhash(c.labelhash(o[s])))),e[t]=n.length,e.set(n,t+1),t+=n.length+1}return e.byteLength!==t+1?e.slice(0,t+1):e}exports.packetToBytes=h;
package/dist/index231.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { stringToBytes as i } from "./index149.js";
2
- import { encodeLabelhash as h } from "./index286.js";
2
+ import { encodeLabelhash as h } from "./index285.js";
3
3
  import { labelhash as f } from "./index148.js";
4
4
  function y(s) {
5
5
  const o = s.replace(/^\.|\.$/gm, "");
package/dist/index232.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index287.cjs");async function f(i,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?l(i,{gatewayUrls:t,record:r}):e.parseAvatarUri({uri:r,gatewayUrls:t})}async function l(i,{gatewayUrls:t,record:r}){const n=e.parseNftUri(r),o=await e.getNftTokenUri(i,{nft:n}),{uri:a,isOnChain:c,isEncoded:p}=e.resolveAvatarUri({uri:o,gatewayUrls:t});if(c&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const u=p?atob(a.replace("data:application/json;base64,","")):a,d=JSON.parse(u);return e.parseAvatarUri({uri:e.getJsonImage(d),gatewayUrls:t})}let s=n.tokenID;return n.namespace==="erc1155"&&(s=s.replace("0x","").padStart(64,"0")),e.getMetadataAvatarUri({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,s)})}exports.parseAvatarRecord=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index286.cjs");async function f(i,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?l(i,{gatewayUrls:t,record:r}):e.parseAvatarUri({uri:r,gatewayUrls:t})}async function l(i,{gatewayUrls:t,record:r}){const n=e.parseNftUri(r),o=await e.getNftTokenUri(i,{nft:n}),{uri:a,isOnChain:c,isEncoded:p}=e.resolveAvatarUri({uri:o,gatewayUrls:t});if(c&&(a.includes("data:application/json;base64,")||a.startsWith("{"))){const u=p?atob(a.replace("data:application/json;base64,","")):a,d=JSON.parse(u);return e.parseAvatarUri({uri:e.getJsonImage(d),gatewayUrls:t})}let s=n.tokenID;return n.namespace==="erc1155"&&(s=s.replace("0x","").padStart(64,"0")),e.getMetadataAvatarUri({gatewayUrls:t,uri:a.replace(/(?:0x)?{id}/,s)})}exports.parseAvatarRecord=f;
package/dist/index232.js CHANGED
@@ -1,4 +1,4 @@
1
- import { parseAvatarUri as o, parseNftUri as f, getNftTokenUri as v, resolveAvatarUri as l, getJsonImage as A, getMetadataAvatarUri as N } from "./index287.js";
1
+ import { parseAvatarUri as o, parseNftUri as f, getNftTokenUri as v, resolveAvatarUri as l, getJsonImage as A, getMetadataAvatarUri as N } from "./index286.js";
2
2
  async function b(r, { gatewayUrls: t, record: e }) {
3
3
  return /eip155:/i.test(e) ? U(r, { gatewayUrls: t, record: e }) : o({ uri: e, gatewayUrls: t });
4
4
  }
package/dist/index233.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index288.cjs"),a=require("./index289.cjs");function i(t){return{...typeof t.baseFeePerGas=="bigint"&&{baseFeePerGas:e.fromNumber(t.baseFeePerGas)},...typeof t.blobBaseFee=="bigint"&&{blobBaseFee:e.fromNumber(t.blobBaseFee)},...typeof t.feeRecipient=="string"&&{feeRecipient:t.feeRecipient},...typeof t.gasLimit=="bigint"&&{gasLimit:e.fromNumber(t.gasLimit)},...typeof t.number=="bigint"&&{number:e.fromNumber(t.number)},...typeof t.prevRandao=="bigint"&&{prevRandao:e.fromNumber(t.prevRandao)},...typeof t.time=="bigint"&&{time:e.fromNumber(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(a.toRpc)}}}exports.toRpc=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index287.cjs"),a=require("./index288.cjs");function i(t){return{...typeof t.baseFeePerGas=="bigint"&&{baseFeePerGas:e.fromNumber(t.baseFeePerGas)},...typeof t.blobBaseFee=="bigint"&&{blobBaseFee:e.fromNumber(t.blobBaseFee)},...typeof t.feeRecipient=="string"&&{feeRecipient:t.feeRecipient},...typeof t.gasLimit=="bigint"&&{gasLimit:e.fromNumber(t.gasLimit)},...typeof t.number=="bigint"&&{number:e.fromNumber(t.number)},...typeof t.prevRandao=="bigint"&&{prevRandao:e.fromNumber(t.prevRandao)},...typeof t.time=="bigint"&&{time:e.fromNumber(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(a.toRpc)}}}exports.toRpc=i;
package/dist/index233.js CHANGED
@@ -1,5 +1,5 @@
1
- import { fromNumber as a } from "./index288.js";
2
- import { toRpc as e } from "./index289.js";
1
+ import { fromNumber as a } from "./index287.js";
2
+ import { toRpc as e } from "./index288.js";
3
3
  function n(t) {
4
4
  return {
5
5
  ...typeof t.baseFeePerGas == "bigint" && {
package/dist/index24.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index213.cjs"),t=e.defineChain({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}});exports.mainnet=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("./index47.cjs"),E=require("./index48.cjs"),F=require("./index49.cjs"),H=require("./index50.cjs"),U=require("./index51.cjs");function _(k,r={}){const{batch:o,fetchOptions:u,key:l="http",methods:h,name:q="HTTP JSON-RPC",onFetchRequest:d,onFetchResponse:y,retryDelay:R,raw:f}=r;return({chain:n,retryCount:w,timeout:S})=>{const{batchSize:m=1e3,wait:C=0}=typeof o=="object"?o:{},b=r.retryCount??w,c=S??r.timeout??1e4,e=n==null?void 0:n.rpcUrls.default.http[0];if(!e)throw new E.UrlRequiredError;const a=H.getHttpRpcClient(e,{fetchOptions:u,onRequest:d,onResponse:y,timeout:c});return U.createTransport({key:l,methods:h,name:q,async request({method:T,params:B}){const i={method:T,params:B},{schedule:O}=F.createBatchScheduler({id:e,wait:C,shouldSplitBatch(t){return t.length>m},fn:t=>a.request({body:t}),sort:(t,g)=>t.id-g.id}),P=async t=>o?O(t):[await a.request({body:t})],[{error:s,result:p}]=await P(i);if(f)return{error:s,result:p};if(s)throw new j.RpcRequestError({body:i,error:s,url:e});return p},retryCount:b,retryDelay:R,timeout:c,type:"http"},{fetchOptions:u,url:e})}}exports.http=_;
package/dist/index24.js CHANGED
@@ -1,34 +1,60 @@
1
- import { defineChain as e } from "./index213.js";
2
- const t = /* @__PURE__ */ e({
3
- id: 1,
4
- name: "Ethereum",
5
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
6
- rpcUrls: {
7
- default: {
8
- http: ["https://eth.merkle.io"]
9
- }
10
- },
11
- blockExplorers: {
12
- default: {
13
- name: "Etherscan",
14
- url: "https://etherscan.io",
15
- apiUrl: "https://api.etherscan.io/api"
16
- }
17
- },
18
- contracts: {
19
- ensRegistry: {
20
- address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
21
- },
22
- ensUniversalResolver: {
23
- address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67",
24
- blockCreated: 19258213
25
- },
26
- multicall3: {
27
- address: "0xca11bde05977b3631167028862be2a173976ca11",
28
- blockCreated: 14353601
29
- }
30
- }
31
- });
1
+ import { RpcRequestError as O } from "./index47.js";
2
+ import { UrlRequiredError as P } from "./index48.js";
3
+ import { createBatchScheduler as U } from "./index49.js";
4
+ import { getHttpRpcClient as _ } from "./index50.js";
5
+ import { createTransport as j } from "./index51.js";
6
+ function g(k, e = {}) {
7
+ const { batch: o, fetchOptions: u, key: m = "http", methods: a, name: h = "HTTP JSON-RPC", onFetchRequest: f, onFetchResponse: y, retryDelay: d, raw: R } = e;
8
+ return ({ chain: n, retryCount: w, timeout: q }) => {
9
+ const { batchSize: C = 1e3, wait: S = 0 } = typeof o == "object" ? o : {}, b = e.retryCount ?? w, c = q ?? e.timeout ?? 1e4, r = n == null ? void 0 : n.rpcUrls.default.http[0];
10
+ if (!r)
11
+ throw new P();
12
+ const p = _(r, {
13
+ fetchOptions: u,
14
+ onRequest: f,
15
+ onResponse: y,
16
+ timeout: c
17
+ });
18
+ return j({
19
+ key: m,
20
+ methods: a,
21
+ name: h,
22
+ async request({ method: T, params: B }) {
23
+ const i = { method: T, params: B }, { schedule: E } = U({
24
+ id: r,
25
+ wait: S,
26
+ shouldSplitBatch(t) {
27
+ return t.length > C;
28
+ },
29
+ fn: (t) => p.request({
30
+ body: t
31
+ }),
32
+ sort: (t, H) => t.id - H.id
33
+ }), F = async (t) => o ? E(t) : [
34
+ await p.request({
35
+ body: t
36
+ })
37
+ ], [{ error: s, result: l }] = await F(i);
38
+ if (R)
39
+ return { error: s, result: l };
40
+ if (s)
41
+ throw new O({
42
+ body: i,
43
+ error: s,
44
+ url: r
45
+ });
46
+ return l;
47
+ },
48
+ retryCount: b,
49
+ retryDelay: d,
50
+ timeout: c,
51
+ type: "http"
52
+ }, {
53
+ fetchOptions: u,
54
+ url: r
55
+ });
56
+ };
57
+ }
32
58
  export {
33
- t as mainnet
59
+ g as http
34
60
  };
package/dist/index245.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index290.cjs"),i=require("./index291.cjs"),u=require("./index288.cjs");function s(e,o){var n;const{bytecode:r,args:t}=o;return u.concat(r,(n=e.inputs)!=null&&n.length&&(t!=null&&t.length)?i.encode(e.inputs,t):"0x")}function d(e){return c.from(e)}exports.encode=s;exports.from=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index289.cjs"),i=require("./index290.cjs"),u=require("./index287.cjs");function s(e,o){var n;const{bytecode:r,args:t}=o;return u.concat(r,(n=e.inputs)!=null&&n.length&&(t!=null&&t.length)?i.encode(e.inputs,t):"0x")}function d(e){return c.from(e)}exports.encode=s;exports.from=d;
package/dist/index245.js CHANGED
@@ -1,6 +1,6 @@
1
- import { from as m } from "./index290.js";
2
- import { encode as c } from "./index291.js";
3
- import { concat as f } from "./index288.js";
1
+ import { from as m } from "./index289.js";
2
+ import { encode as c } from "./index290.js";
3
+ import { concat as f } from "./index287.js";
4
4
  function d(o, t) {
5
5
  var e;
6
6
  const { bytecode: r, args: n } = t;
package/dist/index246.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index290.cjs"),s=require("./index291.cjs"),m=require("./index288.cjs");function d(e,...t){const{overloads:r}=e,o=r?u([e,...r],e.name,{args:t[0]}):e,c=f(o),i=t.length>0?s.encode(o.inputs,t[0]):void 0;return i?m.concat(c,i):c}function l(e,t={}){return n.from(e,t)}function u(e,t,r){const o=n.fromAbi(e,t,r);if(o.type!=="function")throw new n.NotFoundError({name:t,type:"function"});return o}function f(e){return n.getSelector(e)}exports.encodeData=d;exports.from=l;exports.fromAbi=u;exports.getSelector=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index289.cjs"),s=require("./index290.cjs"),m=require("./index287.cjs");function d(e,...t){const{overloads:r}=e,o=r?u([e,...r],e.name,{args:t[0]}):e,c=f(o),i=t.length>0?s.encode(o.inputs,t[0]):void 0;return i?m.concat(c,i):c}function l(e,t={}){return n.from(e,t)}function u(e,t,r){const o=n.fromAbi(e,t,r);if(o.type!=="function")throw new n.NotFoundError({name:t,type:"function"});return o}function f(e){return n.getSelector(e)}exports.encodeData=d;exports.from=l;exports.fromAbi=u;exports.getSelector=f;
package/dist/index246.js CHANGED
@@ -1,6 +1,6 @@
1
- import { from as c, fromAbi as m, NotFoundError as i, getSelector as s } from "./index290.js";
2
- import { encode as u } from "./index291.js";
3
- import { concat as d } from "./index288.js";
1
+ import { from as c, fromAbi as m, NotFoundError as i, getSelector as s } from "./index289.js";
2
+ import { encode as u } from "./index290.js";
3
+ import { concat as d } from "./index287.js";
4
4
  function S(o, ...t) {
5
5
  const { overloads: r } = o, e = r ? p([o, ...r], o.name, {
6
6
  args: t[0]
package/dist/index247.cjs CHANGED
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index38.cjs");class c extends t.BaseError{constructor({docsPath:o}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
2
- `),{docsPath:o,docsSlug:"account",name:"AccountNotFoundError"})}}class u extends t.BaseError{constructor({docsPath:o,metaMessages:e,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:o,metaMessages:e,name:"AccountTypeNotSupportedError"})}}exports.AccountNotFoundError=c;exports.AccountTypeNotSupportedError=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index143.cjs"),i=require("./index135.cjs"),s=require("./index244.cjs");function u(r,{docsPath:o,...e}){const t=(()=>{const n=s.getNodeError(r,e);return n instanceof c.UnknownNodeError?r:n})();return new i.TransactionExecutionError(t,{docsPath:o,...e})}exports.getTransactionError=u;
package/dist/index247.js CHANGED
@@ -1,27 +1,16 @@
1
- import { BaseError as t } from "./index38.js";
2
- class u extends t {
3
- constructor({ docsPath: o } = {}) {
4
- super([
5
- "Could not find an Account to execute with this Action.",
6
- "Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."
7
- ].join(`
8
- `), {
9
- docsPath: o,
10
- docsSlug: "account",
11
- name: "AccountNotFoundError"
12
- });
13
- }
14
- }
15
- class s extends t {
16
- constructor({ docsPath: o, metaMessages: c, type: r }) {
17
- super(`Account type "${r}" is not supported.`, {
18
- docsPath: o,
19
- metaMessages: c,
20
- name: "AccountTypeNotSupportedError"
21
- });
22
- }
1
+ import { UnknownNodeError as c } from "./index143.js";
2
+ import { TransactionExecutionError as i } from "./index135.js";
3
+ import { getNodeError as u } from "./index244.js";
4
+ function s(r, { docsPath: t, ...o }) {
5
+ const e = (() => {
6
+ const n = u(r, o);
7
+ return n instanceof c ? r : n;
8
+ })();
9
+ return new i(e, {
10
+ docsPath: t,
11
+ ...o
12
+ });
23
13
  }
24
14
  export {
25
- u as AccountNotFoundError,
26
- s as AccountTypeNotSupportedError
15
+ s as getTransactionError
27
16
  };
package/dist/index248.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index143.cjs"),i=require("./index135.cjs"),s=require("./index244.cjs");function u(r,{docsPath:o,...e}){const t=(()=>{const n=s.getNodeError(r,e);return n instanceof c.UnknownNodeError?r:n})();return new i.TransactionExecutionError(t,{docsPath:o,...e})}exports.getTransactionError=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index182.cjs");function a(e){return e.map(n=>({...n,value:BigInt(n.value)}))}function r(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?t.hexToNumber(e.nonce):void 0,storageProof:e.storageProof?a(e.storageProof):void 0}}exports.formatProof=r;
package/dist/index248.js CHANGED
@@ -1,16 +1,18 @@
1
- import { UnknownNodeError as c } from "./index143.js";
2
- import { TransactionExecutionError as i } from "./index135.js";
3
- import { getNodeError as u } from "./index244.js";
4
- function s(r, { docsPath: t, ...o }) {
5
- const e = (() => {
6
- const n = u(r, o);
7
- return n instanceof c ? r : n;
8
- })();
9
- return new i(e, {
10
- docsPath: t,
11
- ...o
12
- });
1
+ import { hexToNumber as a } from "./index182.js";
2
+ function t(e) {
3
+ return e.map((n) => ({
4
+ ...n,
5
+ value: BigInt(n.value)
6
+ }));
7
+ }
8
+ function o(e) {
9
+ return {
10
+ ...e,
11
+ balance: e.balance ? BigInt(e.balance) : void 0,
12
+ nonce: e.nonce ? a(e.nonce) : void 0,
13
+ storageProof: e.storageProof ? t(e.storageProof) : void 0
14
+ };
13
15
  }
14
16
  export {
15
- s as getTransactionError
17
+ o as formatProof
16
18
  };
package/dist/index249.cjs CHANGED
@@ -1 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index182.cjs");function a(e){return e.map(n=>({...n,value:BigInt(n.value)}))}function r(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?t.hexToNumber(e.nonce):void 0,storageProof:e.storageProof?a(e.storageProof):void 0}}exports.formatProof=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index38.cjs");class c extends t.BaseError{constructor({docsPath:o}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
2
+ `),{docsPath:o,docsSlug:"account",name:"AccountNotFoundError"})}}class u extends t.BaseError{constructor({docsPath:o,metaMessages:e,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:o,metaMessages:e,name:"AccountTypeNotSupportedError"})}}exports.AccountNotFoundError=c;exports.AccountTypeNotSupportedError=u;