@gardenfi/core 0.2.0-beta.70 → 0.2.0-beta.71

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 (299) hide show
  1. package/dist/index.cjs +1 -31
  2. package/dist/index.js +27 -7808
  3. package/dist/index10.cjs +1 -0
  4. package/dist/index10.js +101 -0
  5. package/dist/index100.cjs +1 -0
  6. package/dist/index100.js +37 -0
  7. package/dist/index101.cjs +1 -0
  8. package/dist/index101.js +369 -0
  9. package/dist/index102.cjs +1 -0
  10. package/dist/index102.js +23 -0
  11. package/dist/index103.cjs +1 -0
  12. package/dist/index103.js +58 -0
  13. package/dist/index104.cjs +1 -0
  14. package/dist/index104.js +5 -0
  15. package/dist/index105.cjs +1 -0
  16. package/dist/index105.js +51 -0
  17. package/dist/index106.cjs +1 -0
  18. package/dist/index106.js +28 -0
  19. package/dist/index107.cjs +1 -0
  20. package/dist/index107.js +4 -0
  21. package/dist/index108.cjs +1 -0
  22. package/dist/index108.js +4 -0
  23. package/dist/index109.cjs +1 -0
  24. package/dist/index109.js +64 -0
  25. package/dist/index11.cjs +20 -0
  26. package/dist/index11.js +380 -0
  27. package/dist/index110.cjs +1 -0
  28. package/dist/index110.js +37 -0
  29. package/dist/index111.cjs +1 -0
  30. package/dist/index111.js +4 -0
  31. package/dist/index112.cjs +1 -0
  32. package/dist/index112.js +60 -0
  33. package/dist/index113.cjs +1 -0
  34. package/dist/index113.js +4 -0
  35. package/dist/index114.cjs +1 -0
  36. package/dist/index114.js +42 -0
  37. package/dist/index115.cjs +1 -0
  38. package/dist/index115.js +45 -0
  39. package/dist/index116.cjs +1 -0
  40. package/dist/index116.js +20 -0
  41. package/dist/index117.cjs +1 -0
  42. package/dist/index117.js +111 -0
  43. package/dist/index118.cjs +1 -0
  44. package/dist/index118.js +23 -0
  45. package/dist/index119.cjs +1 -0
  46. package/dist/index119.js +228 -0
  47. package/dist/index12.cjs +1 -0
  48. package/dist/index12.js +22 -0
  49. package/dist/index120.cjs +1 -0
  50. package/dist/index120.js +6 -0
  51. package/dist/index121.cjs +1 -0
  52. package/dist/index121.js +160 -0
  53. package/dist/index122.cjs +1 -0
  54. package/dist/index122.js +4 -0
  55. package/dist/index123.cjs +1 -0
  56. package/dist/index123.js +75 -0
  57. package/dist/index124.cjs +1 -0
  58. package/dist/index124.js +7 -0
  59. package/dist/index125.cjs +1 -0
  60. package/dist/index125.js +107 -0
  61. package/dist/index126.cjs +1 -0
  62. package/dist/index126.js +15 -0
  63. package/dist/index127.cjs +1 -0
  64. package/dist/index127.js +35 -0
  65. package/dist/index128.cjs +1 -0
  66. package/dist/index128.js +32 -0
  67. package/dist/index129.cjs +1 -0
  68. package/dist/index129.js +4 -0
  69. package/dist/index13.cjs +1 -0
  70. package/dist/index13.js +396 -0
  71. package/dist/index130.cjs +1 -0
  72. package/dist/index130.js +21 -0
  73. package/dist/index131.cjs +1 -0
  74. package/dist/index131.js +4 -0
  75. package/dist/index132.cjs +1 -0
  76. package/dist/index132.js +358 -0
  77. package/dist/index133.cjs +1 -0
  78. package/dist/index133.js +241 -0
  79. package/dist/index134.cjs +1 -0
  80. package/dist/index134.js +70 -0
  81. package/dist/index135.cjs +1 -0
  82. package/dist/index135.js +64 -0
  83. package/dist/index136.cjs +1 -0
  84. package/dist/index136.js +14 -0
  85. package/dist/index137.cjs +1 -0
  86. package/dist/index137.js +47 -0
  87. package/dist/index138.cjs +1 -0
  88. package/dist/index138.js +65 -0
  89. package/dist/index139.cjs +1 -0
  90. package/dist/index139.js +228 -0
  91. package/dist/index14.cjs +1 -0
  92. package/dist/index14.js +23 -0
  93. package/dist/index140.cjs +1 -0
  94. package/dist/index140.js +5 -0
  95. package/dist/index141.cjs +1 -0
  96. package/dist/index141.js +171 -0
  97. package/dist/index142.cjs +1 -0
  98. package/dist/index142.js +30 -0
  99. package/dist/index143.cjs +1 -0
  100. package/dist/index143.js +23 -0
  101. package/dist/index144.cjs +1 -0
  102. package/dist/index144.js +72 -0
  103. package/dist/index145.cjs +1 -0
  104. package/dist/index145.js +130 -0
  105. package/dist/index146.cjs +1 -0
  106. package/dist/index146.js +9 -0
  107. package/dist/index147.cjs +1 -0
  108. package/dist/index147.js +4 -0
  109. package/dist/index148.cjs +1 -0
  110. package/dist/index148.js +28 -0
  111. package/dist/index149.cjs +1 -0
  112. package/dist/index149.js +4 -0
  113. package/dist/index15.cjs +1 -0
  114. package/dist/index15.js +4 -0
  115. package/dist/index16.cjs +1 -0
  116. package/dist/index16.js +34 -0
  117. package/dist/index17.cjs +1 -0
  118. package/dist/index17.js +27 -0
  119. package/dist/index18.cjs +1 -0
  120. package/dist/index18.js +33 -0
  121. package/dist/index19.cjs +1 -0
  122. package/dist/index19.js +32 -0
  123. package/dist/index2.cjs +1 -0
  124. package/dist/index2.js +412 -0
  125. package/dist/index20.cjs +1 -0
  126. package/dist/index20.js +55 -0
  127. package/dist/index21.cjs +1 -0
  128. package/dist/index21.js +30 -0
  129. package/dist/index22.cjs +1 -0
  130. package/dist/index22.js +17 -0
  131. package/dist/index23.cjs +1 -0
  132. package/dist/index23.js +11 -0
  133. package/dist/index24.cjs +1 -0
  134. package/dist/index24.js +11 -0
  135. package/dist/index25.cjs +1 -0
  136. package/dist/index25.js +140 -0
  137. package/dist/index26.cjs +1 -0
  138. package/dist/index26.js +4 -0
  139. package/dist/index27.cjs +1 -0
  140. package/dist/index27.js +15 -0
  141. package/dist/index28.cjs +1 -0
  142. package/dist/index28.js +39 -0
  143. package/dist/index29.cjs +1 -0
  144. package/dist/index29.js +44 -0
  145. package/dist/index3.cjs +1 -0
  146. package/dist/index3.js +5 -0
  147. package/dist/index30.cjs +1 -0
  148. package/dist/index30.js +26 -0
  149. package/dist/index31.cjs +1 -0
  150. package/dist/index31.js +28 -0
  151. package/dist/index32.cjs +1 -0
  152. package/dist/index32.js +57 -0
  153. package/dist/index33.cjs +1 -0
  154. package/dist/index33.js +30 -0
  155. package/dist/index34.cjs +3 -0
  156. package/dist/index34.js +30 -0
  157. package/dist/index35.cjs +1 -0
  158. package/dist/index35.js +17 -0
  159. package/dist/index36.cjs +2 -0
  160. package/dist/index36.js +27 -0
  161. package/dist/index37.cjs +1 -0
  162. package/dist/index37.js +43 -0
  163. package/dist/index38.cjs +1 -0
  164. package/dist/index38.js +201 -0
  165. package/dist/index39.cjs +1 -0
  166. package/dist/index39.js +4 -0
  167. package/dist/index4.cjs +1 -0
  168. package/dist/index4.js +18 -0
  169. package/dist/index40.cjs +1 -0
  170. package/dist/index40.js +4 -0
  171. package/dist/index41.cjs +1 -0
  172. package/dist/index41.js +4 -0
  173. package/dist/index42.cjs +1 -0
  174. package/dist/index42.js +15 -0
  175. package/dist/index43.cjs +1 -0
  176. package/dist/index43.js +14 -0
  177. package/dist/index44.cjs +1 -0
  178. package/dist/index44.js +6 -0
  179. package/dist/index45.cjs +1 -0
  180. package/dist/index45.js +48 -0
  181. package/dist/index46.cjs +1 -0
  182. package/dist/index46.js +45 -0
  183. package/dist/index47.cjs +1 -0
  184. package/dist/index47.js +174 -0
  185. package/dist/index48.cjs +1 -0
  186. package/dist/index48.js +15 -0
  187. package/dist/index49.cjs +1 -0
  188. package/dist/index49.js +7 -0
  189. package/dist/index5.cjs +1 -0
  190. package/dist/index5.js +110 -0
  191. package/dist/index50.cjs +1 -0
  192. package/dist/index50.js +19 -0
  193. package/dist/index51.cjs +1 -0
  194. package/dist/index51.js +14 -0
  195. package/dist/index52.cjs +1 -0
  196. package/dist/index52.js +177 -0
  197. package/dist/index53.cjs +1 -0
  198. package/dist/index53.js +24 -0
  199. package/dist/index54.cjs +1 -0
  200. package/dist/index54.js +4 -0
  201. package/dist/index55.cjs +1 -0
  202. package/dist/index55.js +37 -0
  203. package/dist/index56.cjs +1 -0
  204. package/dist/index56.js +11 -0
  205. package/dist/index57.cjs +1 -0
  206. package/dist/index57.js +37 -0
  207. package/dist/index58.cjs +1 -0
  208. package/dist/index58.js +58 -0
  209. package/dist/index59.cjs +2 -0
  210. package/dist/index59.js +62 -0
  211. package/dist/index6.cjs +1 -0
  212. package/dist/index6.js +5 -0
  213. package/dist/index60.cjs +1 -0
  214. package/dist/index60.js +6 -0
  215. package/dist/index61.cjs +1 -0
  216. package/dist/index61.js +130 -0
  217. package/dist/index62.cjs +2 -0
  218. package/dist/index62.js +45 -0
  219. package/dist/index63.cjs +1 -0
  220. package/dist/index63.js +11 -0
  221. package/dist/index64.cjs +1 -0
  222. package/dist/index64.js +13 -0
  223. package/dist/index65.cjs +1 -0
  224. package/dist/index65.js +14 -0
  225. package/dist/index66.cjs +1 -0
  226. package/dist/index66.js +16 -0
  227. package/dist/index67.cjs +1 -0
  228. package/dist/index67.js +9 -0
  229. package/dist/index68.cjs +1 -0
  230. package/dist/index68.js +20 -0
  231. package/dist/index69.cjs +1 -0
  232. package/dist/index69.js +81 -0
  233. package/dist/index7.cjs +1 -0
  234. package/dist/index7.js +76 -0
  235. package/dist/index70.cjs +1 -0
  236. package/dist/index70.js +17 -0
  237. package/dist/index71.cjs +1 -0
  238. package/dist/index71.js +21 -0
  239. package/dist/index72.cjs +1 -0
  240. package/dist/index72.js +24 -0
  241. package/dist/index73.cjs +1 -0
  242. package/dist/index73.js +16 -0
  243. package/dist/index74.cjs +1 -0
  244. package/dist/index74.js +4 -0
  245. package/dist/index75.cjs +1 -0
  246. package/dist/index75.js +4 -0
  247. package/dist/index76.cjs +1 -0
  248. package/dist/index76.js +9 -0
  249. package/dist/index77.cjs +2 -0
  250. package/dist/index77.js +37 -0
  251. package/dist/index78.cjs +1 -0
  252. package/dist/index78.js +8 -0
  253. package/dist/index79.cjs +1 -0
  254. package/dist/index79.js +22 -0
  255. package/dist/index8.cjs +1 -0
  256. package/dist/index8.js +62 -0
  257. package/dist/index80.cjs +1 -0
  258. package/dist/index80.js +34 -0
  259. package/dist/index81.cjs +1 -0
  260. package/dist/index81.js +4 -0
  261. package/dist/index82.cjs +6 -0
  262. package/dist/index82.js +949 -0
  263. package/dist/index83.cjs +1 -0
  264. package/dist/index83.js +4 -0
  265. package/dist/index84.cjs +1 -0
  266. package/dist/index84.js +64 -0
  267. package/dist/index85.cjs +1 -0
  268. package/dist/index85.js +35 -0
  269. package/dist/index86.cjs +1 -0
  270. package/dist/index86.js +89 -0
  271. package/dist/index87.cjs +1 -0
  272. package/dist/index87.js +15 -0
  273. package/dist/index88.cjs +1 -0
  274. package/dist/index88.js +9 -0
  275. package/dist/index89.cjs +1 -0
  276. package/dist/index89.js +115 -0
  277. package/dist/index9.cjs +1 -0
  278. package/dist/index9.js +63 -0
  279. package/dist/index90.cjs +1 -0
  280. package/dist/index90.js +9 -0
  281. package/dist/index91.cjs +1 -0
  282. package/dist/index91.js +35 -0
  283. package/dist/index92.cjs +1 -0
  284. package/dist/index92.js +4 -0
  285. package/dist/index93.cjs +1 -0
  286. package/dist/index93.js +40 -0
  287. package/dist/index94.cjs +1 -0
  288. package/dist/index94.js +31 -0
  289. package/dist/index95.cjs +1 -0
  290. package/dist/index95.js +23 -0
  291. package/dist/index96.cjs +1 -0
  292. package/dist/index96.js +9 -0
  293. package/dist/index97.cjs +1 -0
  294. package/dist/index97.js +7 -0
  295. package/dist/index98.cjs +1 -0
  296. package/dist/index98.js +13 -0
  297. package/dist/index99.cjs +1 -0
  298. package/dist/index99.js +22 -0
  299. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index85.cjs");var i=g.native;function p(r){return r.name||r.toString().match(/function (.*?)\s*\(/)[1]}function s(r){return i.Nil(r)?"":p(r.constructor)}function h(r){return i.Function(r)?"":i.String(r)?JSON.stringify(r):r&&i.Object(r)?"":r}function _(r,t){Error.captureStackTrace&&Error.captureStackTrace(r,t)}function u(r){return i.Function(r)?r.toJSON?r.toJSON():p(r):i.Array(r)?"Array":r&&i.Object(r)?"Object":r!==void 0?r:""}function S(r,t,n){var e=h(t);return"Expected "+u(r)+", got"+(n!==""?" "+n:"")+(e!==""?" "+e:"")}function o(r,t,n){n=n||s(t),this.message=S(r,t,n),_(this,o),this.__type=r,this.__value=t,this.__valueTypeName=n}o.prototype=Object.create(Error.prototype);o.prototype.constructor=o;function E(r,t,n,e,c){var a='" of type ';return t==="key"&&(a='" with key type '),S('property "'+u(n)+a+u(r),e,c)}function f(r,t,n,e,c){r?(c=c||s(e),this.message=E(r,n,t,e,c)):this.message='Unexpected property "'+t+'"',_(this,o),this.__label=n,this.__property=t,this.__type=r,this.__value=e,this.__valueTypeName=c}f.prototype=Object.create(Error.prototype);f.prototype.constructor=o;function y(r,t){return new o(r,{},t)}function T(r,t,n){return r instanceof f?(t=t+"."+r.__property,r=new f(r.__type,t,r.__label,r.__value,r.__valueTypeName)):r instanceof o&&(r=new f(r.__type,t,n,r.__value,r.__valueTypeName)),_(r),r}var O={TfTypeError:o,TfPropertyTypeError:f,tfCustomError:y,tfSubError:T,tfJSON:u,getValueTypeName:s};exports.errors=O;
@@ -0,0 +1,64 @@
1
+ import { n as E } from "./index85.js";
2
+ var i = E;
3
+ function p(r) {
4
+ return r.name || r.toString().match(/function (.*?)\s*\(/)[1];
5
+ }
6
+ function u(r) {
7
+ return i.Nil(r) ? "" : p(r.constructor);
8
+ }
9
+ function S(r) {
10
+ return i.Function(r) ? "" : i.String(r) ? JSON.stringify(r) : r && i.Object(r) ? "" : r;
11
+ }
12
+ function _(r, t) {
13
+ Error.captureStackTrace && Error.captureStackTrace(r, t);
14
+ }
15
+ function s(r) {
16
+ return i.Function(r) ? r.toJSON ? r.toJSON() : p(r) : i.Array(r) ? "Array" : r && i.Object(r) ? "Object" : r !== void 0 ? r : "";
17
+ }
18
+ function h(r, t, n) {
19
+ var e = S(t);
20
+ return "Expected " + s(r) + ", got" + (n !== "" ? " " + n : "") + (e !== "" ? " " + e : "");
21
+ }
22
+ function o(r, t, n) {
23
+ n = n || u(t), this.message = h(r, t, n), _(this, o), this.__type = r, this.__value = t, this.__valueTypeName = n;
24
+ }
25
+ o.prototype = Object.create(Error.prototype);
26
+ o.prototype.constructor = o;
27
+ function g(r, t, n, e, c) {
28
+ var a = '" of type ';
29
+ return t === "key" && (a = '" with key type '), h('property "' + s(n) + a + s(r), e, c);
30
+ }
31
+ function f(r, t, n, e, c) {
32
+ r ? (c = c || u(e), this.message = g(r, n, t, e, c)) : this.message = 'Unexpected property "' + t + '"', _(this, o), this.__label = n, this.__property = t, this.__type = r, this.__value = e, this.__valueTypeName = c;
33
+ }
34
+ f.prototype = Object.create(Error.prototype);
35
+ f.prototype.constructor = o;
36
+ function y(r, t) {
37
+ return new o(r, {}, t);
38
+ }
39
+ function T(r, t, n) {
40
+ return r instanceof f ? (t = t + "." + r.__property, r = new f(
41
+ r.__type,
42
+ t,
43
+ r.__label,
44
+ r.__value,
45
+ r.__valueTypeName
46
+ )) : r instanceof o && (r = new f(
47
+ r.__type,
48
+ t,
49
+ n,
50
+ r.__value,
51
+ r.__valueTypeName
52
+ )), _(r), r;
53
+ }
54
+ var m = {
55
+ TfTypeError: o,
56
+ TfPropertyTypeError: f,
57
+ tfCustomError: y,
58
+ tfSubError: T,
59
+ tfJSON: s,
60
+ getValueTypeName: u
61
+ };
62
+ export {
63
+ m as e
64
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t={Array:function(n){return n!=null&&n.constructor===Array},Boolean:function(n){return typeof n=="boolean"},Function:function(n){return typeof n=="function"},Nil:function(n){return n==null},Number:function(n){return typeof n=="number"},Object:function(n){return typeof n=="object"},String:function(n){return typeof n=="string"},"":function(){return!0}};t.Null=t.Nil;for(var r in t)t[r].toJSON=(function(n){return n}).bind(null,r);var e=t;exports.native=e;
@@ -0,0 +1,35 @@
1
+ var t = {
2
+ Array: function(n) {
3
+ return n != null && n.constructor === Array;
4
+ },
5
+ Boolean: function(n) {
6
+ return typeof n == "boolean";
7
+ },
8
+ Function: function(n) {
9
+ return typeof n == "function";
10
+ },
11
+ Nil: function(n) {
12
+ return n == null;
13
+ },
14
+ Number: function(n) {
15
+ return typeof n == "number";
16
+ },
17
+ Object: function(n) {
18
+ return typeof n == "object";
19
+ },
20
+ String: function(n) {
21
+ return typeof n == "string";
22
+ },
23
+ "": function() {
24
+ return !0;
25
+ }
26
+ };
27
+ t.Null = t.Nil;
28
+ for (var r in t)
29
+ t[r].toJSON = (function(n) {
30
+ return n;
31
+ }).bind(null, r);
32
+ var u = t;
33
+ export {
34
+ u as n
35
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("./index85.cjs"),M=require("./index84.cjs");var I,b;function H(){if(b)return I;b=1;var o=J.native,S=M.errors;function N(n){return Buffer.isBuffer(n)}function g(n){return typeof n=="string"&&/^([0-9a-f]{2})+$/i.test(n)}function f(n,e){var r=n.toJSON();function i(t){if(!n(t))return!1;if(t.length===e)return!0;throw S.tfCustomError(r+"(Length: "+e+")",r+"(Length: "+t.length+")")}return i.toJSON=function(){return r},i}var a=f.bind(null,o.Array),h=f.bind(null,N),_=f.bind(null,g),x=f.bind(null,o.String);function d(n,e,r){r=r||o.Number;function i(t,E){return r(t,E)&&t>n&&t<e}return i.toJSON=function(){return`${r.toJSON()} between [${n}, ${e}]`},i}var u=Math.pow(2,53)-1;function y(n){return typeof n=="number"&&isFinite(n)}function U(n){return n<<24>>24===n}function O(n){return n<<16>>16===n}function m(n){return(n|0)===n}function B(n){return typeof n=="number"&&n>=-u&&n<=u&&Math.floor(n)===n}function R(n){return(n&255)===n}function p(n){return(n&65535)===n}function q(n){return n>>>0===n}function A(n){return typeof n=="number"&&n>=0&&n<=u&&Math.floor(n)===n}var c={ArrayN:a,Buffer:N,BufferN:h,Finite:y,Hex:g,HexN:_,Int8:U,Int16:O,Int32:m,Int53:B,Range:d,StringN:x,UInt8:R,UInt16:p,UInt32:q,UInt53:A};for(var s in c)c[s].toJSON=(function(n){return n}).bind(null,s);return I=c,I}exports.__require=H;
@@ -0,0 +1,89 @@
1
+ import { n as H } from "./index85.js";
2
+ import { e as L } from "./index84.js";
3
+ var I, a;
4
+ function q() {
5
+ if (a) return I;
6
+ a = 1;
7
+ var o = H, h = L;
8
+ function N(n) {
9
+ return Buffer.isBuffer(n);
10
+ }
11
+ function g(n) {
12
+ return typeof n == "string" && /^([0-9a-f]{2})+$/i.test(n);
13
+ }
14
+ function e(n, f) {
15
+ var r = n.toJSON();
16
+ function i(t) {
17
+ if (!n(t)) return !1;
18
+ if (t.length === f) return !0;
19
+ throw h.tfCustomError(r + "(Length: " + f + ")", r + "(Length: " + t.length + ")");
20
+ }
21
+ return i.toJSON = function() {
22
+ return r;
23
+ }, i;
24
+ }
25
+ var x = e.bind(null, o.Array), _ = e.bind(null, N), b = e.bind(null, g), m = e.bind(null, o.String);
26
+ function S(n, f, r) {
27
+ r = r || o.Number;
28
+ function i(t, J) {
29
+ return r(t, J) && t > n && t < f;
30
+ }
31
+ return i.toJSON = function() {
32
+ return `${r.toJSON()} between [${n}, ${f}]`;
33
+ }, i;
34
+ }
35
+ var u = Math.pow(2, 53) - 1;
36
+ function U(n) {
37
+ return typeof n == "number" && isFinite(n);
38
+ }
39
+ function p(n) {
40
+ return n << 24 >> 24 === n;
41
+ }
42
+ function d(n) {
43
+ return n << 16 >> 16 === n;
44
+ }
45
+ function y(n) {
46
+ return (n | 0) === n;
47
+ }
48
+ function B(n) {
49
+ return typeof n == "number" && n >= -u && n <= u && Math.floor(n) === n;
50
+ }
51
+ function O(n) {
52
+ return (n & 255) === n;
53
+ }
54
+ function R(n) {
55
+ return (n & 65535) === n;
56
+ }
57
+ function A(n) {
58
+ return n >>> 0 === n;
59
+ }
60
+ function E(n) {
61
+ return typeof n == "number" && n >= 0 && n <= u && Math.floor(n) === n;
62
+ }
63
+ var c = {
64
+ ArrayN: x,
65
+ Buffer: N,
66
+ BufferN: _,
67
+ Finite: U,
68
+ Hex: g,
69
+ HexN: b,
70
+ Int8: p,
71
+ Int16: d,
72
+ Int32: y,
73
+ Int53: B,
74
+ Range: S,
75
+ StringN: m,
76
+ UInt8: O,
77
+ UInt16: R,
78
+ UInt32: A,
79
+ UInt53: E
80
+ };
81
+ for (var s in c)
82
+ c[s].toJSON = (function(n) {
83
+ return n;
84
+ }).bind(null, s);
85
+ return I = c, I;
86
+ }
87
+ export {
88
+ q as __require
89
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index59.cjs");class i extends t.BaseError{constructor({offset:r,position:s,size:e}){super(`Slice ${s==="start"?"starting":"ending"} at offset "${r}" is out-of-bounds (size: ${e}).`,{name:"SliceOffsetOutOfBoundsError"})}}class d extends t.BaseError{constructor({size:r,targetSize:s,type:e}){super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (${r}) exceeds padding size (${s}).`,{name:"SizeExceedsPaddingSizeError"})}}exports.SizeExceedsPaddingSizeError=d;exports.SliceOffsetOutOfBoundsError=i;
@@ -0,0 +1,15 @@
1
+ import { BaseError as o } from "./index59.js";
2
+ class d extends o {
3
+ constructor({ offset: r, position: s, size: e }) {
4
+ super(`Slice ${s === "start" ? "starting" : "ending"} at offset "${r}" is out-of-bounds (size: ${e}).`, { name: "SliceOffsetOutOfBoundsError" });
5
+ }
6
+ }
7
+ class n extends o {
8
+ constructor({ size: r, targetSize: s, type: e }) {
9
+ super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (${r}) exceeds padding size (${s}).`, { name: "SizeExceedsPaddingSizeError" });
10
+ }
11
+ }
12
+ export {
13
+ n as SizeExceedsPaddingSizeError,
14
+ d as SliceOffsetOutOfBoundsError
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index89.cjs"),s=require("./index60.cjs"),r=require("./index58.cjs");function o(t,i){return e.sha256(s.isHex(t,{strict:!1})?r.toBytes(t):t)}exports.sha256=o;
@@ -0,0 +1,9 @@
1
+ import { sha256 as o } from "./index89.js";
2
+ import { isHex as s } from "./index60.js";
3
+ import { toBytes as r } from "./index58.js";
4
+ function p(t, i) {
5
+ return o(s(t, { strict: !1 }) ? r(t) : t);
6
+ }
7
+ export {
8
+ p as sha256
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("./index109.cjs"),s=require("./index110.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(){super(64,32,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:d,B:o,C:x,D:e,E:a,F:i,G:c,H:r}=this;return[d,o,x,e,a,i,c,r]}set(d,o,x,e,a,i,c,r){this.A=d|0,this.B=o|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(d,o){for(let t=0;t<16;t++,o+=4)f[t]=d.getUint32(o,!1);for(let t=16;t<64;t++){const A=f[t-15],n=f[t-2],C=s.rotr(A,7)^s.rotr(A,18)^A>>>3,u=s.rotr(n,17)^s.rotr(n,19)^n>>>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:h,H:l}=this;for(let t=0;t<64;t++){const A=s.rotr(c,6)^s.rotr(c,11)^s.rotr(c,25),n=l+A+H.Chi(c,r,h)+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=h,h=r,r=c,c=i+n|0,i=a,a=e,e=x,x=n+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,h=h+this.G|0,l=l+this.H|0,this.set(x,e,a,i,c,r,h,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;
@@ -0,0 +1,115 @@
1
+ import { HashMD as m, Chi as p, Maj as u } from "./index109.js";
2
+ import { wrapConstructor as D, rotr as i } from "./index110.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() {
80
+ super(64, 32, 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: d, B: o, C: t, D: s, E: a, F: f, G: c, H: e } = this;
84
+ return [d, o, t, s, a, f, c, e];
85
+ }
86
+ // prettier-ignore
87
+ set(d, o, t, s, a, f, c, e) {
88
+ this.A = d | 0, this.B = o | 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(d, o) {
91
+ for (let x = 0; x < 16; x++, o += 4)
92
+ h[x] = d.getUint32(o, !1);
93
+ for (let x = 16; x < 64; x++) {
94
+ const A = h[x - 15], n = h[x - 2], C = i(A, 7) ^ i(A, 18) ^ A >>> 3, H = i(n, 17) ^ i(n, 19) ^ n >>> 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: r, H: l } = this;
98
+ for (let x = 0; x < 64; x++) {
99
+ const A = i(c, 6) ^ i(c, 11) ^ i(c, 25), n = l + A + p(c, e, r) + g[x] + h[x] | 0, H = (i(t, 2) ^ i(t, 13) ^ i(t, 22)) + u(t, s, a) | 0;
100
+ l = r, r = e, e = c, c = f + n | 0, f = a, a = s, s = t, t = n + 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, r = r + this.G | 0, l = l + this.H | 0, this.set(t, s, a, f, c, e, r, 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());
112
+ export {
113
+ w as SHA256,
114
+ G as sha256
115
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@catalogfi/utils"),u=require("@gardenfi/utils"),i=require("./index10.cjs");class a{constructor(t){this.quoteUrl=new u.Url("/quote",t)}async getQuote(t,e,s=!1){try{const o=this.quoteUrl.addSearchParams({order_pair:t,amount:e.toString(),exact_out:s.toString()}),n=await r.Fetcher.get(o);return n.error?r.Err(n.error):n.result?r.Ok(n.result):r.Err("GetQuote: Unexpected error, result is undefined")}catch(o){return r.Err("GetQuote:",String(o))}}async getAttestedQuote(t){try{const e=await r.Fetcher.post(this.quoteUrl.endpoint("/attested").toString(),{body:JSON.stringify(t),headers:{"Content-Type":"application/json"}});return e.error?r.Err(e.error):e.result?r.Ok(e.result):r.Err("GetAttestedQuote: Unexpected error, result is undefined")}catch(e){return console.log("error :",e),r.Err("GetAttestedQuote:",String(e))}}async getStrategies(){try{const t=await r.Fetcher.get(this.quoteUrl.endpoint("/strategies"));if(t.error)return r.Err(t.error);if(!t.result)return r.Err("GetStrategies: Unexpected error, result is undefined");const e={};for(const s of Object.values(t.result)){const o=i.constructOrderPair(s.source_chain,s.source_asset.asset,s.dest_chain,s.dest_asset.asset);e[o]={id:s.id,minAmount:s.min_amount,maxAmount:s.max_amount}}return r.Ok(e)}catch(t){return r.Err("GetStrategies:",String(t))}}}exports.Quote=a;
package/dist/index9.js ADDED
@@ -0,0 +1,63 @@
1
+ import { Fetcher as u, Err as o, Ok as i } from "@catalogfi/utils";
2
+ import { Url as a } from "@gardenfi/utils";
3
+ import { constructOrderPair as c } from "./index10.js";
4
+ class m {
5
+ constructor(t) {
6
+ this.quoteUrl = new a("/quote", t);
7
+ }
8
+ async getQuote(t, r, e = !1) {
9
+ try {
10
+ const s = this.quoteUrl.addSearchParams({
11
+ order_pair: t,
12
+ amount: r.toString(),
13
+ exact_out: e.toString()
14
+ }), n = await u.get(s);
15
+ return n.error ? o(n.error) : n.result ? i(n.result) : o("GetQuote: Unexpected error, result is undefined");
16
+ } catch (s) {
17
+ return o("GetQuote:", String(s));
18
+ }
19
+ }
20
+ async getAttestedQuote(t) {
21
+ try {
22
+ const r = await u.post(this.quoteUrl.endpoint("/attested").toString(), {
23
+ body: JSON.stringify(t),
24
+ headers: {
25
+ "Content-Type": "application/json"
26
+ }
27
+ });
28
+ return r.error ? o(r.error) : r.result ? i(r.result) : o("GetAttestedQuote: Unexpected error, result is undefined");
29
+ } catch (r) {
30
+ return console.log("error :", r), o("GetAttestedQuote:", String(r));
31
+ }
32
+ }
33
+ async getStrategies() {
34
+ try {
35
+ const t = await u.get(
36
+ this.quoteUrl.endpoint("/strategies")
37
+ );
38
+ if (t.error) return o(t.error);
39
+ if (!t.result)
40
+ return o("GetStrategies: Unexpected error, result is undefined");
41
+ const r = {};
42
+ for (const e of Object.values(t.result)) {
43
+ const s = c(
44
+ e.source_chain,
45
+ e.source_asset.asset,
46
+ e.dest_chain,
47
+ e.dest_asset.asset
48
+ );
49
+ r[s] = {
50
+ id: e.id,
51
+ minAmount: e.min_amount,
52
+ maxAmount: e.max_amount
53
+ };
54
+ }
55
+ return i(r);
56
+ } catch (t) {
57
+ return o("GetStrategies:", String(t));
58
+ }
59
+ }
60
+ }
61
+ export {
62
+ m as Quote
63
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index45.cjs"),r=require("./index88.cjs");function c(t){const{commitment:o,version:s=1}=t,n=t.to??(typeof o=="string"?"hex":"bytes"),e=r.sha256(o);return e.set([s],0),n==="bytes"?e:i.bytesToHex(e)}exports.commitmentToVersionedHash=c;
@@ -0,0 +1,9 @@
1
+ import { bytesToHex as i } from "./index45.js";
2
+ import { sha256 as m } from "./index88.js";
3
+ function f(t) {
4
+ const { commitment: e, version: s = 1 } = t, n = t.to ?? (typeof e == "string" ? "hex" : "bytes"), o = m(e);
5
+ return o.set([s], 0), n === "bytes" ? o : i(o);
6
+ }
7
+ export {
8
+ f as commitmentToVersionedHash
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index124.cjs"),y=require("./index93.cjs"),u=require("./index61.cjs"),B=require("./index49.cjs"),h=require("./index58.cjs"),d=require("./index45.cjs");function f(t){const a=t.to??(typeof t.data=="string"?"hex":"bytes"),n=typeof t.data=="string"?h.hexToBytes(t.data):t.data,s=B.size(n);if(!s)throw new y.EmptyBlobError;if(s>o.maxBytesPerTransaction)throw new y.BlobSizeTooLargeError({maxSize:o.maxBytesPerTransaction,size:s});const r=[];let b=!0,i=0;for(;b;){const e=u.createCursor(new Uint8Array(o.bytesPerBlob));let l=0;for(;l<o.fieldElementsPerBlob;){const c=n.slice(i,i+(o.bytesPerFieldElement-1));if(e.pushByte(0),e.pushBytes(c),c.length<31){e.pushByte(128),b=!1;break}l++,i+=31}r.push(e)}return a==="bytes"?r.map(e=>e.bytes):r.map(e=>d.bytesToHex(e.bytes))}exports.toBlobs=f;
@@ -0,0 +1,35 @@
1
+ import { maxBytesPerTransaction as y, bytesPerBlob as a, fieldElementsPerBlob as f, bytesPerFieldElement as p } from "./index124.js";
2
+ import { EmptyBlobError as c, BlobSizeTooLargeError as h } from "./index93.js";
3
+ import { createCursor as B } from "./index61.js";
4
+ import { size as u } from "./index49.js";
5
+ import { hexToBytes as x } from "./index58.js";
6
+ import { bytesToHex as d } from "./index45.js";
7
+ function S(e) {
8
+ const m = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), i = typeof e.data == "string" ? x(e.data) : e.data, o = u(i);
9
+ if (!o)
10
+ throw new c();
11
+ if (o > y)
12
+ throw new h({
13
+ maxSize: y,
14
+ size: o
15
+ });
16
+ const s = [];
17
+ let n = !0, r = 0;
18
+ for (; n; ) {
19
+ const t = B(new Uint8Array(a));
20
+ let l = 0;
21
+ for (; l < f; ) {
22
+ const b = i.slice(r, r + (p - 1));
23
+ if (t.pushByte(0), t.pushBytes(b), b.length < 31) {
24
+ t.pushByte(128), n = !1;
25
+ break;
26
+ }
27
+ l++, r += 31;
28
+ }
29
+ s.push(t);
30
+ }
31
+ return m === "bytes" ? s.map((t) => t.bytes) : s.map((t) => d(t.bytes));
32
+ }
33
+ export {
34
+ S as toBlobs
35
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=1;exports.versionedHashVersionKzg=e;
@@ -0,0 +1,4 @@
1
+ const e = 1;
2
+ export {
3
+ e as versionedHashVersionKzg
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index92.cjs"),s=require("./index59.cjs");class i extends s.BaseError{constructor({maxSize:e,size:r}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${r} bytes`],name:"BlobSizeTooLargeError"})}}class n extends s.BaseError{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class t extends s.BaseError{constructor({hash:e,size:r}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${r}`],name:"InvalidVersionedHashSizeError"})}}class d extends s.BaseError{constructor({hash:e,version:r}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${a.versionedHashVersionKzg}`,`Received: ${r}`],name:"InvalidVersionedHashVersionError"})}}exports.BlobSizeTooLargeError=i;exports.EmptyBlobError=n;exports.InvalidVersionedHashSizeError=t;exports.InvalidVersionedHashVersionError=d;
@@ -0,0 +1,40 @@
1
+ import { versionedHashVersionKzg as a } from "./index92.js";
2
+ import { BaseError as s } from "./index59.js";
3
+ class t extends s {
4
+ constructor({ maxSize: e, size: r }) {
5
+ super("Blob size is too large.", {
6
+ metaMessages: [`Max: ${e} bytes`, `Given: ${r} bytes`],
7
+ name: "BlobSizeTooLargeError"
8
+ });
9
+ }
10
+ }
11
+ class d extends s {
12
+ constructor() {
13
+ super("Blob data must not be empty.", { name: "EmptyBlobError" });
14
+ }
15
+ }
16
+ class l extends s {
17
+ constructor({ hash: e, size: r }) {
18
+ super(`Versioned hash "${e}" size is invalid.`, {
19
+ metaMessages: ["Expected: 32", `Received: ${r}`],
20
+ name: "InvalidVersionedHashSizeError"
21
+ });
22
+ }
23
+ }
24
+ class c extends s {
25
+ constructor({ hash: e, version: r }) {
26
+ super(`Versioned hash "${e}" version is invalid.`, {
27
+ metaMessages: [
28
+ `Expected: ${a}`,
29
+ `Received: ${r}`
30
+ ],
31
+ name: "InvalidVersionedHashVersionError"
32
+ });
33
+ }
34
+ }
35
+ export {
36
+ t as BlobSizeTooLargeError,
37
+ d as EmptyBlobError,
38
+ l as InvalidVersionedHashSizeError,
39
+ c as InvalidVersionedHashVersionError
40
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index87.cjs"),l=require("./index60.cjs"),r=require("./index49.cjs");function x(i,s,e,{strict:t}={}){return l.isHex(i,{strict:!1})?f(i,s,e,{strict:t}):o(i,s,e,{strict:t})}function n(i,s,e){if(r.size(i)!==e-s)throw new u.SliceOffsetOutOfBoundsError({offset:e,position:"end",size:r.size(i)})}function o(i,s,e,{strict:t}={}){const c=i.slice(s,e);return t&&n(c,s,e),c}function f(i,s,e,{strict:t}={}){const c=`0x${i.replace("0x","").slice(s*2,e*2)}`;return t&&n(c,s,e),c}exports.slice=x;exports.sliceBytes=o;exports.sliceHex=f;
@@ -0,0 +1,31 @@
1
+ import { SliceOffsetOutOfBoundsError as n } from "./index87.js";
2
+ import { isHex as c } from "./index60.js";
3
+ import { size as s } from "./index49.js";
4
+ function O(e, f, i, { strict: o } = {}) {
5
+ return c(e, { strict: !1 }) ? l(e, f, i, {
6
+ strict: o
7
+ }) : u(e, f, i, {
8
+ strict: o
9
+ });
10
+ }
11
+ function t(e, f, i) {
12
+ if (s(e) !== i - f)
13
+ throw new n({
14
+ offset: i,
15
+ position: "end",
16
+ size: s(e)
17
+ });
18
+ }
19
+ function u(e, f, i, { strict: o } = {}) {
20
+ const r = e.slice(f, i);
21
+ return o && t(r, f, i), r;
22
+ }
23
+ function l(e, f, i, { strict: o } = {}) {
24
+ const r = `0x${e.replace("0x", "").slice(f * 2, i * 2)}`;
25
+ return o && t(r, f, i), r;
26
+ }
27
+ export {
28
+ O as slice,
29
+ u as sliceBytes,
30
+ l as sliceHex
31
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index59.cjs");class t extends o.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class i extends o.BaseError{constructor({length:e,position:r}){super(`Position \`${r}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class n extends o.BaseError{constructor({count:e,limit:r}){super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}exports.NegativeOffsetError=t;exports.PositionOutOfBoundsError=i;exports.RecursiveReadLimitExceededError=n;
@@ -0,0 +1,23 @@
1
+ import { BaseError as o } from "./index59.js";
2
+ class i extends o {
3
+ constructor({ offset: e }) {
4
+ super(`Offset \`${e}\` cannot be negative.`, {
5
+ name: "NegativeOffsetError"
6
+ });
7
+ }
8
+ }
9
+ class n extends o {
10
+ constructor({ length: e, position: r }) {
11
+ super(`Position \`${r}\` is out of bounds (\`0 < position < ${e}\`).`, { name: "PositionOutOfBoundsError" });
12
+ }
13
+ }
14
+ class c extends o {
15
+ constructor({ count: e, limit: r }) {
16
+ super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${e}\`).`, { name: "RecursiveReadLimitExceededError" });
17
+ }
18
+ }
19
+ export {
20
+ i as NegativeOffsetError,
21
+ n as PositionOutOfBoundsError,
22
+ c as RecursiveReadLimitExceededError
23
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index125.cjs"),s=require("./index60.cjs"),c=require("./index58.cjs");function r(e,o){return t.keccak_256(s.isHex(e,{strict:!1})?c.toBytes(e):e)}exports.keccak256=r;
@@ -0,0 +1,9 @@
1
+ import { keccak_256 as o } from "./index125.js";
2
+ import { isHex as r } from "./index60.js";
3
+ import { toBytes as c } from "./index58.js";
4
+ function k(t, e) {
5
+ return o(r(t, { strict: !1 }) ? c(t) : t);
6
+ }
7
+ export {
8
+ k as keccak256
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={ether:-9,wei:9};exports.gweiUnits=e;
@@ -0,0 +1,7 @@
1
+ const e = {
2
+ ether: -9,
3
+ wei: 9
4
+ };
5
+ export {
6
+ e as gweiUnits
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(r,i){let t=r.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(i,"0");let[l,e]=[t.slice(0,t.length-i),t.slice(t.length-i)];return e=e.replace(/(0+)$/,""),`${n?"-":""}${l||"0"}${e?`.${e}`:""}`}exports.formatUnits=o;
@@ -0,0 +1,13 @@
1
+ function a(r, n) {
2
+ let t = r.toString();
3
+ const i = t.startsWith("-");
4
+ i && (t = t.slice(1)), t = t.padStart(n, "0");
5
+ let [l, e] = [
6
+ t.slice(0, t.length - n),
7
+ t.slice(t.length - n)
8
+ ];
9
+ return e = e.replace(/(0+)$/, ""), `${i ? "-" : ""}${l || "0"}${e ? `.${e}` : ""}`;
10
+ }
11
+ export {
12
+ a as formatUnits
13
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index111.cjs");typeof Object.create=="function"?r.__module.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:r.__module.exports=function(e,t){if(t){e.super_=t;var o=function(){};o.prototype=t.prototype,e.prototype=new o,e.prototype.constructor=e}};var n=r.__module.exports;exports.inherits_browserExports=n;