@gardenfi/utils 2.5.3-beta.5 → 2.5.3-beta.7

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 (53) hide show
  1. package/dist/index112.cjs +1 -1
  2. package/dist/index112.js +1 -1
  3. package/dist/index133.cjs +1 -1
  4. package/dist/index133.js +1 -1
  5. package/dist/index209.cjs +1 -1
  6. package/dist/index209.js +46 -24
  7. package/dist/index210.cjs +1 -1
  8. package/dist/index210.js +9 -46
  9. package/dist/index211.cjs +1 -1
  10. package/dist/index211.js +24 -9
  11. package/dist/index212.cjs +2 -1
  12. package/dist/index212.js +41 -11
  13. package/dist/index213.cjs +1 -2
  14. package/dist/index213.js +2 -42
  15. package/dist/index214.cjs +1 -1
  16. package/dist/index214.js +6 -2
  17. package/dist/index215.cjs +1 -1
  18. package/dist/index215.js +10 -5
  19. package/dist/index216.cjs +1 -1
  20. package/dist/index216.js +18 -9
  21. package/dist/index217.cjs +1 -1
  22. package/dist/index217.js +8 -19
  23. package/dist/index218.cjs +1 -1
  24. package/dist/index218.js +66 -8
  25. package/dist/index219.cjs +1 -1
  26. package/dist/index219.js +64 -65
  27. package/dist/index220.cjs +1 -1
  28. package/dist/index220.js +183 -60
  29. package/dist/index221.cjs +1 -1
  30. package/dist/index221.js +25 -185
  31. package/dist/index222.cjs +1 -1
  32. package/dist/index222.js +61 -13
  33. package/dist/index223.cjs +1 -1
  34. package/dist/index223.js +18 -54
  35. package/dist/index224.cjs +1 -1
  36. package/dist/index224.js +10 -34
  37. package/dist/index225.cjs +1 -1
  38. package/dist/index225.js +7 -10
  39. package/dist/index226.cjs +1 -1
  40. package/dist/index226.js +11 -13
  41. package/dist/index232.cjs +1 -1
  42. package/dist/index232.js +1 -1
  43. package/dist/index242.cjs +1 -1
  44. package/dist/index242.js +1 -1
  45. package/dist/index31.cjs +1 -1
  46. package/dist/index31.js +2 -2
  47. package/dist/index43.cjs +1 -1
  48. package/dist/index43.js +1 -1
  49. package/dist/index49.cjs +1 -1
  50. package/dist/index49.js +3 -3
  51. package/dist/index63.cjs +1 -1
  52. package/dist/index63.js +1 -1
  53. package/package.json +1 -1
package/dist/index222.js CHANGED
@@ -1,31 +1,79 @@
1
- import { BaseError as r } from "./index213.js";
2
- class o extends r {
3
- constructor({ type: e }) {
4
- super("Unknown type.", {
1
+ import { BaseError as t } from "./index212.js";
2
+ class n extends t {
3
+ constructor({ param: e }) {
4
+ super("Invalid ABI parameter.", {
5
+ details: e
6
+ }), Object.defineProperty(this, "name", {
7
+ enumerable: !0,
8
+ configurable: !0,
9
+ writable: !0,
10
+ value: "InvalidParameterError"
11
+ });
12
+ }
13
+ }
14
+ class s extends t {
15
+ constructor({ param: e, name: r }) {
16
+ super("Invalid ABI parameter.", {
17
+ details: e,
18
+ metaMessages: [
19
+ `"${r}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`
20
+ ]
21
+ }), Object.defineProperty(this, "name", {
22
+ enumerable: !0,
23
+ configurable: !0,
24
+ writable: !0,
25
+ value: "SolidityProtectedKeywordError"
26
+ });
27
+ }
28
+ }
29
+ class l extends t {
30
+ constructor({ param: e, type: r, modifier: i }) {
31
+ super("Invalid ABI parameter.", {
32
+ details: e,
33
+ metaMessages: [
34
+ `Modifier "${i}" not allowed${r ? ` in "${r}" type` : ""}.`
35
+ ]
36
+ }), Object.defineProperty(this, "name", {
37
+ enumerable: !0,
38
+ configurable: !0,
39
+ writable: !0,
40
+ value: "InvalidModifierError"
41
+ });
42
+ }
43
+ }
44
+ class d extends t {
45
+ constructor({ param: e, type: r, modifier: i }) {
46
+ super("Invalid ABI parameter.", {
47
+ details: e,
5
48
  metaMessages: [
6
- `Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`
49
+ `Modifier "${i}" not allowed${r ? ` in "${r}" type` : ""}.`,
50
+ `Data location can only be specified for array, struct, or mapping types, but "${i}" was given.`
7
51
  ]
8
52
  }), Object.defineProperty(this, "name", {
9
53
  enumerable: !0,
10
54
  configurable: !0,
11
55
  writable: !0,
12
- value: "UnknownTypeError"
56
+ value: "InvalidFunctionModifierError"
13
57
  });
14
58
  }
15
59
  }
16
- class a extends r {
17
- constructor({ type: e }) {
18
- super("Unknown type.", {
19
- metaMessages: [`Type "${e}" is not a valid ABI type.`]
60
+ class u extends t {
61
+ constructor({ abiParameter: e }) {
62
+ super("Invalid ABI parameter.", {
63
+ details: JSON.stringify(e, null, 2),
64
+ metaMessages: ["ABI parameter type is invalid."]
20
65
  }), Object.defineProperty(this, "name", {
21
66
  enumerable: !0,
22
67
  configurable: !0,
23
68
  writable: !0,
24
- value: "UnknownSolidityTypeError"
69
+ value: "InvalidAbiTypeParameterError"
25
70
  });
26
71
  }
27
72
  }
28
73
  export {
29
- a as UnknownSolidityTypeError,
30
- o as UnknownTypeError
74
+ u as InvalidAbiTypeParameterError,
75
+ d as InvalidFunctionModifierError,
76
+ l as InvalidModifierError,
77
+ n as InvalidParameterError,
78
+ s as SolidityProtectedKeywordError
31
79
  };
package/dist/index223.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index213.cjs");class o extends t.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class n extends t.BaseError{constructor({param:e,name:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${r}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class s extends t.BaseError{constructor({param:e,type:r,modifier:i}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${i}" not allowed${r?` in "${r}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class l extends t.BaseError{constructor({param:e,type:r,modifier:i}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${i}" not allowed${r?` in "${r}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${i}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class d extends t.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}exports.InvalidAbiTypeParameterError=d;exports.InvalidFunctionModifierError=l;exports.InvalidModifierError=s;exports.InvalidParameterError=o;exports.SolidityProtectedKeywordError=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index212.cjs");class a extends e.BaseError{constructor({signature:r,type:n}){super(`Invalid ${n} signature.`,{details:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class u extends e.BaseError{constructor({signature:r}){super("Unknown signature.",{details:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class i extends e.BaseError{constructor({signature:r}){super("Invalid struct signature.",{details:r,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}exports.InvalidSignatureError=a;exports.InvalidStructSignatureError=i;exports.UnknownSignatureError=u;
package/dist/index223.js CHANGED
@@ -1,79 +1,43 @@
1
- import { BaseError as t } from "./index213.js";
2
- class n extends t {
3
- constructor({ param: e }) {
4
- super("Invalid ABI parameter.", {
1
+ import { BaseError as r } from "./index212.js";
2
+ class u extends r {
3
+ constructor({ signature: e, type: n }) {
4
+ super(`Invalid ${n} signature.`, {
5
5
  details: e
6
6
  }), Object.defineProperty(this, "name", {
7
7
  enumerable: !0,
8
8
  configurable: !0,
9
9
  writable: !0,
10
- value: "InvalidParameterError"
10
+ value: "InvalidSignatureError"
11
11
  });
12
12
  }
13
13
  }
14
- class s extends t {
15
- constructor({ param: e, name: r }) {
16
- super("Invalid ABI parameter.", {
17
- details: e,
18
- metaMessages: [
19
- `"${r}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`
20
- ]
21
- }), Object.defineProperty(this, "name", {
22
- enumerable: !0,
23
- configurable: !0,
24
- writable: !0,
25
- value: "SolidityProtectedKeywordError"
26
- });
27
- }
28
- }
29
- class l extends t {
30
- constructor({ param: e, type: r, modifier: i }) {
31
- super("Invalid ABI parameter.", {
32
- details: e,
33
- metaMessages: [
34
- `Modifier "${i}" not allowed${r ? ` in "${r}" type` : ""}.`
35
- ]
14
+ class i extends r {
15
+ constructor({ signature: e }) {
16
+ super("Unknown signature.", {
17
+ details: e
36
18
  }), Object.defineProperty(this, "name", {
37
19
  enumerable: !0,
38
20
  configurable: !0,
39
21
  writable: !0,
40
- value: "InvalidModifierError"
22
+ value: "UnknownSignatureError"
41
23
  });
42
24
  }
43
25
  }
44
- class d extends t {
45
- constructor({ param: e, type: r, modifier: i }) {
46
- super("Invalid ABI parameter.", {
26
+ class s extends r {
27
+ constructor({ signature: e }) {
28
+ super("Invalid struct signature.", {
47
29
  details: e,
48
- metaMessages: [
49
- `Modifier "${i}" not allowed${r ? ` in "${r}" type` : ""}.`,
50
- `Data location can only be specified for array, struct, or mapping types, but "${i}" was given.`
51
- ]
52
- }), Object.defineProperty(this, "name", {
53
- enumerable: !0,
54
- configurable: !0,
55
- writable: !0,
56
- value: "InvalidFunctionModifierError"
57
- });
58
- }
59
- }
60
- class u extends t {
61
- constructor({ abiParameter: e }) {
62
- super("Invalid ABI parameter.", {
63
- details: JSON.stringify(e, null, 2),
64
- metaMessages: ["ABI parameter type is invalid."]
30
+ metaMessages: ["No properties exist."]
65
31
  }), Object.defineProperty(this, "name", {
66
32
  enumerable: !0,
67
33
  configurable: !0,
68
34
  writable: !0,
69
- value: "InvalidAbiTypeParameterError"
35
+ value: "InvalidStructSignatureError"
70
36
  });
71
37
  }
72
38
  }
73
39
  export {
74
- u as InvalidAbiTypeParameterError,
75
- d as InvalidFunctionModifierError,
76
- l as InvalidModifierError,
77
- n as InvalidParameterError,
78
- s as SolidityProtectedKeywordError
40
+ u as InvalidSignatureError,
41
+ s as InvalidStructSignatureError,
42
+ i as UnknownSignatureError
79
43
  };
package/dist/index224.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index213.cjs");class a extends e.BaseError{constructor({signature:r,type:n}){super(`Invalid ${n} signature.`,{details:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class u extends e.BaseError{constructor({signature:r}){super("Unknown signature.",{details:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class i extends e.BaseError{constructor({signature:r}){super("Invalid struct signature.",{details:r,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}exports.InvalidSignatureError=a;exports.InvalidStructSignatureError=i;exports.UnknownSignatureError=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index212.cjs");class t extends s.BaseError{constructor({current:r,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${r.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}exports.InvalidParenthesisError=t;
package/dist/index224.js CHANGED
@@ -1,43 +1,19 @@
1
- import { BaseError as r } from "./index213.js";
2
- class u extends r {
3
- constructor({ signature: e, type: n }) {
4
- super(`Invalid ${n} signature.`, {
5
- details: e
1
+ import { BaseError as s } from "./index212.js";
2
+ class n extends s {
3
+ constructor({ current: r, depth: e }) {
4
+ super("Unbalanced parentheses.", {
5
+ metaMessages: [
6
+ `"${r.trim()}" has too many ${e > 0 ? "opening" : "closing"} parentheses.`
7
+ ],
8
+ details: `Depth "${e}"`
6
9
  }), Object.defineProperty(this, "name", {
7
10
  enumerable: !0,
8
11
  configurable: !0,
9
12
  writable: !0,
10
- value: "InvalidSignatureError"
11
- });
12
- }
13
- }
14
- class i extends r {
15
- constructor({ signature: e }) {
16
- super("Unknown signature.", {
17
- details: e
18
- }), Object.defineProperty(this, "name", {
19
- enumerable: !0,
20
- configurable: !0,
21
- writable: !0,
22
- value: "UnknownSignatureError"
23
- });
24
- }
25
- }
26
- class s extends r {
27
- constructor({ signature: e }) {
28
- super("Invalid struct signature.", {
29
- details: e,
30
- metaMessages: ["No properties exist."]
31
- }), Object.defineProperty(this, "name", {
32
- enumerable: !0,
33
- configurable: !0,
34
- writable: !0,
35
- value: "InvalidStructSignatureError"
13
+ value: "InvalidParenthesisError"
36
14
  });
37
15
  }
38
16
  }
39
17
  export {
40
- u as InvalidSignatureError,
41
- s as InvalidStructSignatureError,
42
- i as UnknownSignatureError
18
+ n as InvalidParenthesisError
43
19
  };
package/dist/index225.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index213.cjs");class t extends s.BaseError{constructor({current:r,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${r.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}exports.InvalidParenthesisError=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index212.cjs");class t extends r.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}exports.CircularReferenceError=t;
package/dist/index225.js CHANGED
@@ -1,19 +1,16 @@
1
- import { BaseError as s } from "./index213.js";
2
- class n extends s {
3
- constructor({ current: r, depth: e }) {
4
- super("Unbalanced parentheses.", {
5
- metaMessages: [
6
- `"${r.trim()}" has too many ${e > 0 ? "opening" : "closing"} parentheses.`
7
- ],
8
- details: `Depth "${e}"`
1
+ import { BaseError as r } from "./index212.js";
2
+ class a extends r {
3
+ constructor({ type: e }) {
4
+ super("Circular reference detected.", {
5
+ metaMessages: [`Struct "${e}" is a circular reference.`]
9
6
  }), Object.defineProperty(this, "name", {
10
7
  enumerable: !0,
11
8
  configurable: !0,
12
9
  writable: !0,
13
- value: "InvalidParenthesisError"
10
+ value: "CircularReferenceError"
14
11
  });
15
12
  }
16
13
  }
17
14
  export {
18
- n as InvalidParenthesisError
15
+ a as CircularReferenceError
19
16
  };
package/dist/index226.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index213.cjs");class t extends r.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}exports.CircularReferenceError=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index115.cjs"),t=new o.LruMap(8192);function i(r,{enabled:n=!0,id:e}){if(!n||!e)return r();if(t.get(e))return t.get(e);const u=r().finally(()=>t.delete(e));return t.set(e,u),u}exports.promiseCache=t;exports.withDedupe=i;
package/dist/index226.js CHANGED
@@ -1,16 +1,14 @@
1
- import { BaseError as r } from "./index213.js";
2
- class a extends r {
3
- constructor({ type: e }) {
4
- super("Circular reference detected.", {
5
- metaMessages: [`Struct "${e}" is a circular reference.`]
6
- }), Object.defineProperty(this, "name", {
7
- enumerable: !0,
8
- configurable: !0,
9
- writable: !0,
10
- value: "CircularReferenceError"
11
- });
12
- }
1
+ import { LruMap as u } from "./index115.js";
2
+ const t = /* @__PURE__ */ new u(8192);
3
+ function s(r, { enabled: o = !0, id: e }) {
4
+ if (!o || !e)
5
+ return r();
6
+ if (t.get(e))
7
+ return t.get(e);
8
+ const n = r().finally(() => t.delete(e));
9
+ return t.set(e, n), n;
13
10
  }
14
11
  export {
15
- a as CircularReferenceError
12
+ t as promiseCache,
13
+ s as withDedupe
16
14
  };
package/dist/index232.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index233.cjs"),n=require("./index215.cjs"),i=t=>{const r=typeof t=="string"?t:n.formatAbiItem(t);return e.normalizeSignature(r)};exports.toSignature=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index233.cjs"),n=require("./index214.cjs"),i=t=>{const r=typeof t=="string"?t:n.formatAbiItem(t);return e.normalizeSignature(r)};exports.toSignature=i;
package/dist/index232.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { normalizeSignature as o } from "./index233.js";
2
- import { formatAbiItem as n } from "./index215.js";
2
+ import { formatAbiItem as n } from "./index214.js";
3
3
  const m = (r) => {
4
4
  const t = typeof r == "string" ? r : n(r);
5
5
  return o(t);
package/dist/index242.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index210.cjs");function d(r,i={}){const{dir:n,size:e=32}=i;if(e===0)return r;const t=r.replace("0x","");if(t.length>e*2)throw new a.SizeExceedsPaddingSizeError({size:Math.ceil(t.length/2),targetSize:e,type:"Hex"});return`0x${t[n==="right"?"padEnd":"padStart"](e*2,"0")}`}exports.pad=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index209.cjs");function d(r,i={}){const{dir:n,size:e=32}=i;if(e===0)return r;const t=r.replace("0x","");if(t.length>e*2)throw new a.SizeExceedsPaddingSizeError({size:Math.ceil(t.length/2),targetSize:e,type:"Hex"});return`0x${t[n==="right"?"padEnd":"padStart"](e*2,"0")}`}exports.pad=d;
package/dist/index242.js CHANGED
@@ -1,4 +1,4 @@
1
- import { SizeExceedsPaddingSizeError as a } from "./index210.js";
1
+ import { SizeExceedsPaddingSizeError as a } from "./index209.js";
2
2
  function o(r, i = {}) {
3
3
  const { dir: n, size: e = 32 } = i;
4
4
  if (e === 0)
package/dist/index31.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index210.cjs"),a=require("./index211.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("./index209.cjs"),a=require("./index210.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/index31.js CHANGED
@@ -1,5 +1,5 @@
1
- import { fromNumber as a } from "./index210.js";
2
- import { toRpc as e } from "./index211.js";
1
+ import { fromNumber as a } from "./index209.js";
2
+ import { toRpc as e } from "./index210.js";
3
3
  function n(t) {
4
4
  return {
5
5
  ...typeof t.baseFeePerGas == "bigint" && {
package/dist/index43.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index37.cjs"),u=require("./index154.cjs"),i=require("./index209.cjs");function l(r,{docsPath:t,...e}){const n=(()=>{const o=i.getNodeError(r,e);return o instanceof u.UnknownNodeError?r:o})();return new c.CallExecutionError(n,{docsPath:t,...e})}exports.getCallError=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index37.cjs"),u=require("./index154.cjs"),i=require("./index211.cjs");function l(r,{docsPath:t,...e}){const n=(()=>{const o=i.getNodeError(r,e);return o instanceof u.UnknownNodeError?r:o})();return new c.CallExecutionError(n,{docsPath:t,...e})}exports.getCallError=l;
package/dist/index43.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CallExecutionError as c } from "./index37.js";
2
2
  import { UnknownNodeError as i } from "./index154.js";
3
- import { getNodeError as u } from "./index209.js";
3
+ import { getNodeError as u } from "./index211.js";
4
4
  function a(r, { docsPath: t, ...o }) {
5
5
  const e = (() => {
6
6
  const n = u(r, o);
package/dist/index49.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index219.cjs"),c=require("./index220.cjs"),o=require("./index221.cjs");function a(t){const n=c.parseStructs(t),r=[],i=t.length;for(let e=0;e<i;e++){const s=t[e];u.isStructSignature(s)||r.push(o.parseSignature(s,n))}return r}exports.parseAbi=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index218.cjs"),c=require("./index219.cjs"),o=require("./index220.cjs");function a(t){const n=c.parseStructs(t),r=[],i=t.length;for(let e=0;e<i;e++){const s=t[e];u.isStructSignature(s)||r.push(o.parseSignature(s,n))}return r}exports.parseAbi=a;
package/dist/index49.js CHANGED
@@ -1,6 +1,6 @@
1
- import { isStructSignature as c } from "./index219.js";
2
- import { parseStructs as s } from "./index220.js";
3
- import { parseSignature as p } from "./index221.js";
1
+ import { isStructSignature as c } from "./index218.js";
2
+ import { parseStructs as s } from "./index219.js";
3
+ import { parseSignature as p } from "./index220.js";
4
4
  function a(t) {
5
5
  const i = s(t), o = [], e = t.length;
6
6
  for (let r = 0; r < e; r++) {
package/dist/index63.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index152.cjs"),i=require("./index154.cjs"),u=require("./index209.cjs");function a(e,{docsPath:o,...r}){const n=(()=>{const t=u.getNodeError(e,r);return t instanceof i.UnknownNodeError?e:t})();return new s.EstimateGasExecutionError(n,{docsPath:o,...r})}exports.getEstimateGasError=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index152.cjs"),i=require("./index154.cjs"),u=require("./index211.cjs");function a(e,{docsPath:o,...r}){const n=(()=>{const t=u.getNodeError(e,r);return t instanceof i.UnknownNodeError?e:t})();return new s.EstimateGasExecutionError(n,{docsPath:o,...r})}exports.getEstimateGasError=a;
package/dist/index63.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { EstimateGasExecutionError as i } from "./index152.js";
2
2
  import { UnknownNodeError as m } from "./index154.js";
3
- import { getNodeError as s } from "./index209.js";
3
+ import { getNodeError as s } from "./index211.js";
4
4
  function a(r, { docsPath: e, ...o }) {
5
5
  const n = (() => {
6
6
  const t = s(r, o);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/utils",
3
- "version": "2.5.3-beta.5",
3
+ "version": "2.5.3-beta.7",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "vite build",