@gardenfi/core 0.2.0-beta.72 → 0.2.0-beta.74

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 (276) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +15 -14
  3. package/dist/index10.cjs +1 -1
  4. package/dist/index10.js +55 -41
  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 +1 -1
  26. package/dist/index11.js +2 -2
  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 +7 -0
  31. package/dist/index112.cjs +1 -0
  32. package/dist/index112.js +4 -0
  33. package/dist/index113.cjs +1 -0
  34. package/dist/index113.js +60 -0
  35. package/dist/index114.cjs +1 -0
  36. package/dist/index114.js +4 -0
  37. package/dist/index115.cjs +1 -0
  38. package/dist/index115.js +42 -0
  39. package/dist/index116.cjs +1 -0
  40. package/dist/index116.js +45 -0
  41. package/dist/index117.cjs +1 -0
  42. package/dist/index117.js +20 -0
  43. package/dist/index118.cjs +1 -0
  44. package/dist/index118.js +111 -0
  45. package/dist/index119.cjs +1 -0
  46. package/dist/index119.js +23 -0
  47. package/dist/index120.cjs +1 -0
  48. package/dist/index120.js +228 -0
  49. package/dist/index121.cjs +1 -0
  50. package/dist/index121.js +6 -0
  51. package/dist/index122.cjs +1 -0
  52. package/dist/index122.js +160 -0
  53. package/dist/index123.cjs +1 -0
  54. package/dist/index123.js +4 -0
  55. package/dist/index124.cjs +1 -0
  56. package/dist/index124.js +75 -0
  57. package/dist/index125.cjs +1 -0
  58. package/dist/index125.js +107 -0
  59. package/dist/index126.cjs +1 -0
  60. package/dist/index126.js +15 -0
  61. package/dist/index127.cjs +1 -0
  62. package/dist/index127.js +35 -0
  63. package/dist/index128.cjs +1 -0
  64. package/dist/index128.js +4 -0
  65. package/dist/index129.cjs +1 -0
  66. package/dist/index129.js +32 -0
  67. package/dist/index130.cjs +1 -0
  68. package/dist/index130.js +21 -0
  69. package/dist/index131.cjs +1 -0
  70. package/dist/index131.js +4 -0
  71. package/dist/index132.cjs +1 -0
  72. package/dist/index132.js +358 -0
  73. package/dist/index133.cjs +1 -0
  74. package/dist/index133.js +241 -0
  75. package/dist/index134.cjs +1 -0
  76. package/dist/index134.js +70 -0
  77. package/dist/index135.cjs +1 -0
  78. package/dist/index135.js +64 -0
  79. package/dist/index136.cjs +1 -0
  80. package/dist/index136.js +14 -0
  81. package/dist/index137.cjs +1 -0
  82. package/dist/index137.js +47 -0
  83. package/dist/index138.cjs +1 -0
  84. package/dist/index138.js +65 -0
  85. package/dist/index139.cjs +1 -0
  86. package/dist/index139.js +228 -0
  87. package/dist/index14.cjs +1 -1
  88. package/dist/index14.js +2 -2
  89. package/dist/index140.cjs +1 -0
  90. package/dist/index140.js +5 -0
  91. package/dist/index141.cjs +1 -0
  92. package/dist/index141.js +171 -0
  93. package/dist/index142.cjs +1 -0
  94. package/dist/index142.js +30 -0
  95. package/dist/index143.cjs +1 -0
  96. package/dist/index143.js +23 -0
  97. package/dist/index144.cjs +1 -0
  98. package/dist/index144.js +72 -0
  99. package/dist/index145.cjs +1 -0
  100. package/dist/index145.js +130 -0
  101. package/dist/index146.cjs +1 -0
  102. package/dist/index146.js +9 -0
  103. package/dist/index147.cjs +1 -0
  104. package/dist/index147.js +4 -0
  105. package/dist/index148.cjs +1 -0
  106. package/dist/index148.js +28 -0
  107. package/dist/index149.cjs +1 -0
  108. package/dist/index149.js +4 -0
  109. package/dist/index16.cjs +1 -1
  110. package/dist/index16.js +30 -136
  111. package/dist/index17.cjs +1 -1
  112. package/dist/index17.js +25 -2
  113. package/dist/index18.cjs +1 -3
  114. package/dist/index18.js +29 -26
  115. package/dist/index19.cjs +1 -1
  116. package/dist/index19.js +32 -17
  117. package/dist/index20.cjs +1 -2
  118. package/dist/index20.js +53 -25
  119. package/dist/index21.cjs +1 -1
  120. package/dist/index21.js +6 -38
  121. package/dist/index22.cjs +1 -1
  122. package/dist/index22.js +9 -199
  123. package/dist/index23.cjs +1 -1
  124. package/dist/index23.js +138 -2
  125. package/dist/index24.js +2 -2
  126. package/dist/index25.cjs +1 -1
  127. package/dist/index25.js +13 -2
  128. package/dist/index26.cjs +1 -1
  129. package/dist/index26.js +36 -27
  130. package/dist/index27.cjs +1 -1
  131. package/dist/index27.js +41 -14
  132. package/dist/index28.cjs +1 -1
  133. package/dist/index28.js +26 -173
  134. package/dist/index29.cjs +1 -1
  135. package/dist/index29.js +15 -22
  136. package/dist/index30.cjs +1 -1
  137. package/dist/index30.js +24 -2
  138. package/dist/index31.cjs +1 -1
  139. package/dist/index31.js +25 -34
  140. package/dist/index32.cjs +1 -1
  141. package/dist/index32.js +54 -8
  142. package/dist/index33.cjs +1 -1
  143. package/dist/index33.js +28 -2
  144. package/dist/index34.cjs +3 -6
  145. package/dist/index34.js +30 -949
  146. package/dist/index35.cjs +1 -1
  147. package/dist/index35.js +17 -4
  148. package/dist/index36.cjs +2 -1
  149. package/dist/index36.js +23 -18
  150. package/dist/index37.cjs +1 -1
  151. package/dist/index37.js +38 -29
  152. package/dist/index38.cjs +1 -1
  153. package/dist/index38.js +197 -60
  154. package/dist/index39.cjs +1 -1
  155. package/dist/index39.js +2 -33
  156. package/dist/index40.cjs +1 -1
  157. package/dist/index40.js +2 -87
  158. package/dist/index41.cjs +1 -1
  159. package/dist/index41.js +2 -49
  160. package/dist/index42.cjs +1 -1
  161. package/dist/index42.js +12 -25
  162. package/dist/index43.cjs +1 -1
  163. package/dist/index43.js +12 -2
  164. package/dist/index44.cjs +1 -1
  165. package/dist/index44.js +4 -2
  166. package/dist/index45.cjs +1 -1
  167. package/dist/index45.js +45 -19
  168. package/dist/index46.cjs +1 -1
  169. package/dist/index46.js +38 -30
  170. package/dist/index47.cjs +1 -1
  171. package/dist/index47.js +165 -360
  172. package/dist/index48.cjs +1 -1
  173. package/dist/index48.js +13 -21
  174. package/dist/index49.cjs +1 -1
  175. package/dist/index49.js +3 -54
  176. package/dist/index50.cjs +1 -1
  177. package/dist/index50.js +17 -3
  178. package/dist/index51.cjs +1 -1
  179. package/dist/index51.js +9 -70
  180. package/dist/index52.cjs +1 -1
  181. package/dist/index52.js +175 -2
  182. package/dist/index53.cjs +1 -1
  183. package/dist/index53.js +21 -57
  184. package/dist/index54.js +2 -2
  185. package/dist/index55.cjs +1 -1
  186. package/dist/index55.js +34 -39
  187. package/dist/index56.cjs +1 -1
  188. package/dist/index56.js +9 -43
  189. package/dist/index57.cjs +1 -1
  190. package/dist/index57.js +34 -17
  191. package/dist/index58.cjs +1 -1
  192. package/dist/index58.js +50 -103
  193. package/dist/index59.cjs +2 -1
  194. package/dist/index59.js +58 -19
  195. package/dist/index60.cjs +1 -1
  196. package/dist/index60.js +3 -225
  197. package/dist/index61.cjs +1 -1
  198. package/dist/index61.js +128 -4
  199. package/dist/index62.cjs +2 -1
  200. package/dist/index62.js +37 -152
  201. package/dist/index63.cjs +1 -1
  202. package/dist/index63.js +9 -2
  203. package/dist/index64.cjs +1 -1
  204. package/dist/index64.js +11 -13
  205. package/dist/index65.cjs +1 -1
  206. package/dist/index65.js +12 -2
  207. package/dist/index66.cjs +1 -1
  208. package/dist/index66.js +13 -32
  209. package/dist/index67.cjs +1 -1
  210. package/dist/index67.js +7 -2
  211. package/dist/index68.cjs +1 -1
  212. package/dist/index68.js +17 -355
  213. package/dist/index69.cjs +1 -1
  214. package/dist/index69.js +75 -235
  215. package/dist/index70.cjs +1 -1
  216. package/dist/index70.js +14 -67
  217. package/dist/index71.cjs +1 -1
  218. package/dist/index71.js +17 -60
  219. package/dist/index72.cjs +1 -1
  220. package/dist/index72.js +6 -11
  221. package/dist/index73.cjs +1 -1
  222. package/dist/index73.js +20 -43
  223. package/dist/index74.cjs +1 -1
  224. package/dist/index74.js +13 -62
  225. package/dist/index75.cjs +1 -1
  226. package/dist/index75.js +2 -226
  227. package/dist/index76.cjs +1 -1
  228. package/dist/index76.js +2 -3
  229. package/dist/index77.cjs +2 -1
  230. package/dist/index77.js +32 -166
  231. package/dist/index78.cjs +1 -1
  232. package/dist/index78.js +5 -27
  233. package/dist/index79.cjs +1 -1
  234. package/dist/index79.js +18 -19
  235. package/dist/index80.cjs +1 -1
  236. package/dist/index80.js +30 -68
  237. package/dist/index81.cjs +1 -1
  238. package/dist/index81.js +2 -128
  239. package/dist/index82.cjs +6 -1
  240. package/dist/index82.js +949 -9
  241. package/dist/index83.cjs +1 -1
  242. package/dist/index84.cjs +1 -1
  243. package/dist/index84.js +61 -25
  244. package/dist/index85.cjs +1 -1
  245. package/dist/index85.js +33 -2
  246. package/dist/index86.cjs +1 -0
  247. package/dist/index86.js +89 -0
  248. package/dist/index87.cjs +1 -0
  249. package/dist/index87.js +15 -0
  250. package/dist/index88.cjs +1 -0
  251. package/dist/index88.js +9 -0
  252. package/dist/index89.cjs +1 -0
  253. package/dist/index89.js +115 -0
  254. package/dist/index90.cjs +1 -0
  255. package/dist/index90.js +9 -0
  256. package/dist/index91.cjs +1 -0
  257. package/dist/index91.js +35 -0
  258. package/dist/index92.cjs +1 -0
  259. package/dist/index92.js +4 -0
  260. package/dist/index93.cjs +1 -0
  261. package/dist/index93.js +40 -0
  262. package/dist/index94.cjs +1 -0
  263. package/dist/index94.js +31 -0
  264. package/dist/index95.cjs +1 -0
  265. package/dist/index95.js +23 -0
  266. package/dist/index96.cjs +1 -0
  267. package/dist/index96.js +9 -0
  268. package/dist/index97.cjs +1 -0
  269. package/dist/index97.js +7 -0
  270. package/dist/index98.cjs +1 -0
  271. package/dist/index98.js +13 -0
  272. package/dist/index99.cjs +1 -0
  273. package/dist/index99.js +22 -0
  274. package/dist/src/index.d.ts +1 -1
  275. package/dist/src/lib/utils.d.ts +3 -1
  276. package/package.json +2 -2
package/dist/index74.js CHANGED
@@ -1,65 +1,16 @@
1
- import "./index80.js";
2
- import { e as E } from "./index73.js";
3
- import { __exports as S } from "./index83.js";
4
- var u;
5
- function g(r) {
6
- var n = !1;
7
- return function() {
8
- n || (n = !0, r.apply(void 0, arguments));
9
- };
1
+ import { stringToBytes as p } from "./index58.js";
2
+ import { keccak256 as f } from "./index96.js";
3
+ import { LruMap as m } from "./index73.js";
4
+ const r = /* @__PURE__ */ new m(8192);
5
+ function a(s, o) {
6
+ if (r.has(`${s}.${o}`))
7
+ return r.get(`${s}.${o}`);
8
+ const c = s.substring(2).toLowerCase(), n = f(p(c)), e = c.split("");
9
+ for (let t = 0; t < 40; t += 2)
10
+ n[t >> 1] >> 4 >= 8 && e[t] && (e[t] = e[t].toUpperCase()), (n[t >> 1] & 15) >= 8 && e[t + 1] && (e[t + 1] = e[t + 1].toUpperCase());
11
+ const i = `0x${e.join("")}`;
12
+ return r.set(`${s}.${o}`, i), i;
10
13
  }
11
- var l = S.codes, h = l.ERR_MISSING_ARGS, y = l.ERR_STREAM_DESTROYED;
12
- function d(r) {
13
- if (r) throw r;
14
- }
15
- function w(r) {
16
- return r.setHeader && typeof r.abort == "function";
17
- }
18
- function _(r, n, t, e) {
19
- e = g(e);
20
- var o = !1;
21
- r.on("close", function() {
22
- o = !0;
23
- }), u === void 0 && (u = E), u(r, {
24
- readable: n,
25
- writable: t
26
- }, function(i) {
27
- if (i) return e(i);
28
- o = !0, e();
29
- });
30
- var f = !1;
31
- return function(i) {
32
- if (!o && !f) {
33
- if (f = !0, w(r)) return r.abort();
34
- if (typeof r.destroy == "function") return r.destroy();
35
- e(i || new y("pipe"));
36
- }
37
- };
38
- }
39
- function R(r) {
40
- r();
41
- }
42
- function A(r, n) {
43
- return r.pipe(n);
44
- }
45
- function D(r) {
46
- return !r.length || typeof r[r.length - 1] != "function" ? d : r.pop();
47
- }
48
- function G() {
49
- for (var r = arguments.length, n = new Array(r), t = 0; t < r; t++)
50
- n[t] = arguments[t];
51
- var e = D(n);
52
- if (Array.isArray(n[0]) && (n = n[0]), n.length < 2)
53
- throw new h("streams");
54
- var o, f = n.map(function(i, p) {
55
- var c = p < n.length - 1, v = p > 0;
56
- return _(i, c, v, function(a) {
57
- o || (o = a), a && f.forEach(R), !c && (f.forEach(R), e(o));
58
- });
59
- });
60
- return n.reduce(A);
61
- }
62
- var O = G;
63
14
  export {
64
- O as p
15
+ a as checksumAddress
65
16
  };
package/dist/index75.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index85.cjs");var a=typeof Reflect=="object"?Reflect:null,h=a&&typeof a.apply=="function"?a.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},l;a&&typeof a.ownKeys=="function"?l=a.ownKeys:Object.getOwnPropertySymbols?l=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:l=function(e){return Object.getOwnPropertyNames(e)};function j(t){console&&console.warn&&console.warn(t)}var L=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}p.__module.exports=o;p.__module.exports.once=M;o.EventEmitter=o;o.prototype._events=void 0;o.prototype._eventsCount=0;o.prototype._maxListeners=void 0;var m=10;function v(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(t){if(typeof t!="number"||t<0||L(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");m=t}});o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};o.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||L(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function y(t){return t._maxListeners===void 0?o.defaultMaxListeners:t._maxListeners}o.prototype.getMaxListeners=function(){return y(this)};o.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=e==="error",f=this._events;if(f!==void 0)i=i&&f.error===void 0;else if(!i)return!1;if(i){var s;if(n.length>0&&(s=n[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var c=f[e];if(c===void 0)return!1;if(typeof c=="function")h(c,this,n);else for(var d=c.length,x=E(c,d),r=0;r<d;++r)h(x[r],this,n);return!0};function g(t,e,n,r){var i,f,s;if(v(n),f=t._events,f===void 0?(f=t._events=Object.create(null),t._eventsCount=0):(f.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),f=t._events),s=f[e]),s===void 0)s=f[e]=n,++t._eventsCount;else if(typeof s=="function"?s=f[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=y(t),i>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,j(u)}return t}o.prototype.addListener=function(e,n){return g(this,e,n,!1)};o.prototype.on=o.prototype.addListener;o.prototype.prependListener=function(e,n){return g(this,e,n,!0)};function C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=C.bind(r);return i.listener=n,r.wrapFn=i,i}o.prototype.once=function(e,n){return v(n),this.on(e,_(this,e,n)),this};o.prototype.prependOnceListener=function(e,n){return v(n),this.prependListener(e,_(this,e,n)),this};o.prototype.removeListener=function(e,n){var r,i,f,s,u;if(v(n),i=this._events,i===void 0)return this;if(r=i[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(f=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){u=r[s].listener,f=s;break}if(f<0)return this;f===0?r.shift():R(r,f),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,u||n)}return this};o.prototype.off=o.prototype.removeListener;o.prototype.removeAllListeners=function(e){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var f=Object.keys(r),s;for(i=0;i<f.length;++i)s=f[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this};function b(t,e,n){var r=t._events;if(r===void 0)return[];var i=r[e];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?N(i):E(i,i.length)}o.prototype.listeners=function(e){return b(this,e,!0)};o.prototype.rawListeners=function(e){return b(this,e,!1)};o.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):w.call(t,e)};o.prototype.listenerCount=w;function w(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function E(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function R(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function N(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function M(t,e){return new Promise(function(n,r){function i(s){t.removeListener(e,f),r(s)}function f(){typeof t.removeListener=="function"&&t.removeListener("error",i),n([].slice.call(arguments))}O(t,e,f,{once:!0}),e!=="error"&&A(t,i,{once:!0})})}function A(t,e,n){typeof t.on=="function"&&O(t,"error",e,n)}function O(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function i(f){r.once&&t.removeEventListener(e,i),n(f)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var P=p.__module.exports;exports.eventsExports=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=2n**256n-1n;exports.maxUint256=t;
package/dist/index75.js CHANGED
@@ -1,228 +1,4 @@
1
- import { __module as p } from "./index85.js";
2
- var a = typeof Reflect == "object" ? Reflect : null, h = a && typeof a.apply == "function" ? a.apply : function(e, n, r) {
3
- return Function.prototype.apply.call(e, n, r);
4
- }, l;
5
- a && typeof a.ownKeys == "function" ? l = a.ownKeys : Object.getOwnPropertySymbols ? l = function(e) {
6
- return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
7
- } : l = function(e) {
8
- return Object.getOwnPropertyNames(e);
9
- };
10
- function C(t) {
11
- console && console.warn && console.warn(t);
12
- }
13
- var L = Number.isNaN || function(e) {
14
- return e !== e;
15
- };
16
- function o() {
17
- o.init.call(this);
18
- }
19
- p.exports = o;
20
- p.exports.once = M;
21
- o.EventEmitter = o;
22
- o.prototype._events = void 0;
23
- o.prototype._eventsCount = 0;
24
- o.prototype._maxListeners = void 0;
25
- var m = 10;
26
- function v(t) {
27
- if (typeof t != "function")
28
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
29
- }
30
- Object.defineProperty(o, "defaultMaxListeners", {
31
- enumerable: !0,
32
- get: function() {
33
- return m;
34
- },
35
- set: function(t) {
36
- if (typeof t != "number" || t < 0 || L(t))
37
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
38
- m = t;
39
- }
40
- });
41
- o.init = function() {
42
- (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
43
- };
44
- o.prototype.setMaxListeners = function(e) {
45
- if (typeof e != "number" || e < 0 || L(e))
46
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
47
- return this._maxListeners = e, this;
48
- };
49
- function y(t) {
50
- return t._maxListeners === void 0 ? o.defaultMaxListeners : t._maxListeners;
51
- }
52
- o.prototype.getMaxListeners = function() {
53
- return y(this);
54
- };
55
- o.prototype.emit = function(e) {
56
- for (var n = [], r = 1; r < arguments.length; r++) n.push(arguments[r]);
57
- var i = e === "error", f = this._events;
58
- if (f !== void 0)
59
- i = i && f.error === void 0;
60
- else if (!i)
61
- return !1;
62
- if (i) {
63
- var s;
64
- if (n.length > 0 && (s = n[0]), s instanceof Error)
65
- throw s;
66
- var u = new Error("Unhandled error." + (s ? " (" + s.message + ")" : ""));
67
- throw u.context = s, u;
68
- }
69
- var c = f[e];
70
- if (c === void 0)
71
- return !1;
72
- if (typeof c == "function")
73
- h(c, this, n);
74
- else
75
- for (var d = c.length, x = E(c, d), r = 0; r < d; ++r)
76
- h(x[r], this, n);
77
- return !0;
78
- };
79
- function g(t, e, n, r) {
80
- var i, f, s;
81
- if (v(n), f = t._events, f === void 0 ? (f = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (f.newListener !== void 0 && (t.emit(
82
- "newListener",
83
- e,
84
- n.listener ? n.listener : n
85
- ), f = t._events), s = f[e]), s === void 0)
86
- s = f[e] = n, ++t._eventsCount;
87
- else if (typeof s == "function" ? s = f[e] = r ? [n, s] : [s, n] : r ? s.unshift(n) : s.push(n), i = y(t), i > 0 && s.length > i && !s.warned) {
88
- s.warned = !0;
89
- var u = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
90
- u.name = "MaxListenersExceededWarning", u.emitter = t, u.type = e, u.count = s.length, C(u);
91
- }
92
- return t;
93
- }
94
- o.prototype.addListener = function(e, n) {
95
- return g(this, e, n, !1);
96
- };
97
- o.prototype.on = o.prototype.addListener;
98
- o.prototype.prependListener = function(e, n) {
99
- return g(this, e, n, !0);
100
- };
101
- function j() {
102
- if (!this.fired)
103
- return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
104
- }
105
- function _(t, e, n) {
106
- var r = { fired: !1, wrapFn: void 0, target: t, type: e, listener: n }, i = j.bind(r);
107
- return i.listener = n, r.wrapFn = i, i;
108
- }
109
- o.prototype.once = function(e, n) {
110
- return v(n), this.on(e, _(this, e, n)), this;
111
- };
112
- o.prototype.prependOnceListener = function(e, n) {
113
- return v(n), this.prependListener(e, _(this, e, n)), this;
114
- };
115
- o.prototype.removeListener = function(e, n) {
116
- var r, i, f, s, u;
117
- if (v(n), i = this._events, i === void 0)
118
- return this;
119
- if (r = i[e], r === void 0)
120
- return this;
121
- if (r === n || r.listener === n)
122
- --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete i[e], i.removeListener && this.emit("removeListener", e, r.listener || n));
123
- else if (typeof r != "function") {
124
- for (f = -1, s = r.length - 1; s >= 0; s--)
125
- if (r[s] === n || r[s].listener === n) {
126
- u = r[s].listener, f = s;
127
- break;
128
- }
129
- if (f < 0)
130
- return this;
131
- f === 0 ? r.shift() : R(r, f), r.length === 1 && (i[e] = r[0]), i.removeListener !== void 0 && this.emit("removeListener", e, u || n);
132
- }
133
- return this;
134
- };
135
- o.prototype.off = o.prototype.removeListener;
136
- o.prototype.removeAllListeners = function(e) {
137
- var n, r, i;
138
- if (r = this._events, r === void 0)
139
- return this;
140
- if (r.removeListener === void 0)
141
- return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : r[e] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete r[e]), this;
142
- if (arguments.length === 0) {
143
- var f = Object.keys(r), s;
144
- for (i = 0; i < f.length; ++i)
145
- s = f[i], s !== "removeListener" && this.removeAllListeners(s);
146
- return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
147
- }
148
- if (n = r[e], typeof n == "function")
149
- this.removeListener(e, n);
150
- else if (n !== void 0)
151
- for (i = n.length - 1; i >= 0; i--)
152
- this.removeListener(e, n[i]);
153
- return this;
154
- };
155
- function w(t, e, n) {
156
- var r = t._events;
157
- if (r === void 0)
158
- return [];
159
- var i = r[e];
160
- return i === void 0 ? [] : typeof i == "function" ? n ? [i.listener || i] : [i] : n ? N(i) : E(i, i.length);
161
- }
162
- o.prototype.listeners = function(e) {
163
- return w(this, e, !0);
164
- };
165
- o.prototype.rawListeners = function(e) {
166
- return w(this, e, !1);
167
- };
168
- o.listenerCount = function(t, e) {
169
- return typeof t.listenerCount == "function" ? t.listenerCount(e) : b.call(t, e);
170
- };
171
- o.prototype.listenerCount = b;
172
- function b(t) {
173
- var e = this._events;
174
- if (e !== void 0) {
175
- var n = e[t];
176
- if (typeof n == "function")
177
- return 1;
178
- if (n !== void 0)
179
- return n.length;
180
- }
181
- return 0;
182
- }
183
- o.prototype.eventNames = function() {
184
- return this._eventsCount > 0 ? l(this._events) : [];
185
- };
186
- function E(t, e) {
187
- for (var n = new Array(e), r = 0; r < e; ++r)
188
- n[r] = t[r];
189
- return n;
190
- }
191
- function R(t, e) {
192
- for (; e + 1 < t.length; e++)
193
- t[e] = t[e + 1];
194
- t.pop();
195
- }
196
- function N(t) {
197
- for (var e = new Array(t.length), n = 0; n < e.length; ++n)
198
- e[n] = t[n].listener || t[n];
199
- return e;
200
- }
201
- function M(t, e) {
202
- return new Promise(function(n, r) {
203
- function i(s) {
204
- t.removeListener(e, f), r(s);
205
- }
206
- function f() {
207
- typeof t.removeListener == "function" && t.removeListener("error", i), n([].slice.call(arguments));
208
- }
209
- O(t, e, f, { once: !0 }), e !== "error" && A(t, i, { once: !0 });
210
- });
211
- }
212
- function A(t, e, n) {
213
- typeof t.on == "function" && O(t, "error", e, n);
214
- }
215
- function O(t, e, n, r) {
216
- if (typeof t.on == "function")
217
- r.once ? t.once(e, n) : t.on(e, n);
218
- else if (typeof t.addEventListener == "function")
219
- t.addEventListener(e, function i(f) {
220
- r.once && t.removeEventListener(e, i), n(f);
221
- });
222
- else
223
- throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
224
- }
225
- var T = p.exports;
1
+ const n = 2n ** 256n - 1n;
226
2
  export {
227
- T as e
3
+ n as maxUint256
228
4
  };
package/dist/index76.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index75.cjs");var r=e.eventsExports.EventEmitter;exports.streamBrowser=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="2.21.30";exports.version=e;
package/dist/index76.js CHANGED
@@ -1,5 +1,4 @@
1
- import { e as r } from "./index75.js";
2
- var t = r.EventEmitter;
1
+ const o = "2.21.30";
3
2
  export {
4
- t as s
3
+ o as version
5
4
  };
package/dist/index77.cjs CHANGED
@@ -1 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index34.cjs");const j=require("./index61.cjs"),x=require("./index35.cjs");var f,v;function k(){if(v)return f;v=1;function c(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);r&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,t)}return e}function o(i){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?c(Object(e),!0).forEach(function(t){g(i,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(e,t))})}return i}function g(i,r,e){return r=d(r),r in i?Object.defineProperty(i,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[r]=e,i}function y(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function p(i,r){for(var e=0;e<r.length;e++){var t=r[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,d(t.key),t)}}function _(i,r,e){return r&&p(i.prototype,r),Object.defineProperty(i,"prototype",{writable:!1}),i}function d(i){var r=m(i,"string");return typeof r=="symbol"?r:String(r)}function m(i,r){if(typeof i!="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var t=e.call(i,r||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)}var O=x.__exports,u=O.Buffer,b=j,s=b.inspect,w=s&&s.custom||"inspect";function P(i,r,e){u.prototype.copy.call(i,r,e)}return f=function(){function i(){y(this,i),this.head=null,this.tail=null,this.length=0}return _(i,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(this.length===0)return"";for(var t=this.head,a=""+t.data;t=t.next;)a+=e+t.data;return a}},{key:"concat",value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),a=this.head,l=0;a;)P(a.data,t,l),l+=a.data.length,a=a.next;return t}},{key:"consume",value:function(e,t){var a;return e<this.head.data.length?(a=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):e===this.head.data.length?a=this.shift():a=t?this._getString(e):this._getBuffer(e),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,a=1,l=t.data;for(e-=l.length;t=t.next;){var n=t.data,h=e>n.length?n.length:e;if(h===n.length?l+=n:l+=n.slice(0,e),e-=h,e===0){h===n.length?(++a,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(h));break}++a}return this.length-=a,l}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),a=this.head,l=1;for(a.data.copy(t),e-=a.data.length;a=a.next;){var n=a.data,h=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,h),e-=h,e===0){h===n.length?(++l,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=n.slice(h));break}++l}return this.length-=l,t}},{key:w,value:function(e,t){return s(this,o(o({},t),{},{depth:0,customInspect:!1}))}}]),i}(),f}exports.__require=k;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index78.cjs"),t=require("./index59.cjs");class i extends t.BaseError{constructor({cause:r,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${a.formatGwei(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:r,name:"FeeCapTooHighError"})}}Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class n extends t.BaseError{constructor({cause:r,maxPriorityFeePerGas:e,maxFeePerGas:o}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${a.formatGwei(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${a.formatGwei(o)} gwei`:""}).`].join(`
2
+ `),{cause:r,name:"TipAboveFeeCapError"})}}Object.defineProperty(n,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});exports.FeeCapTooHighError=i;exports.TipAboveFeeCapError=n;
package/dist/index77.js CHANGED
@@ -1,171 +1,37 @@
1
- import "./index34.js";
2
- import j from "./index61.js";
3
- import { __exports as x } from "./index35.js";
4
- var s, v;
5
- function q() {
6
- if (v) return s;
7
- v = 1;
8
- function o(i, r) {
9
- var e = Object.keys(i);
10
- if (Object.getOwnPropertySymbols) {
11
- var t = Object.getOwnPropertySymbols(i);
12
- r && (t = t.filter(function(a) {
13
- return Object.getOwnPropertyDescriptor(i, a).enumerable;
14
- })), e.push.apply(e, t);
15
- }
16
- return e;
1
+ import { formatGwei as a } from "./index78.js";
2
+ import { BaseError as o } from "./index59.js";
3
+ class n extends o {
4
+ constructor({ cause: r, maxFeePerGas: e } = {}) {
5
+ super(`The fee cap (\`maxFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
6
+ cause: r,
7
+ name: "FeeCapTooHighError"
8
+ });
17
9
  }
18
- function c(i) {
19
- for (var r = 1; r < arguments.length; r++) {
20
- var e = arguments[r] != null ? arguments[r] : {};
21
- r % 2 ? o(Object(e), !0).forEach(function(t) {
22
- g(i, t, e[t]);
23
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(e)) : o(Object(e)).forEach(function(t) {
24
- Object.defineProperty(i, t, Object.getOwnPropertyDescriptor(e, t));
25
- });
26
- }
27
- return i;
28
- }
29
- function g(i, r, e) {
30
- return r = d(r), r in i ? Object.defineProperty(i, r, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[r] = e, i;
31
- }
32
- function p(i, r) {
33
- if (!(i instanceof r))
34
- throw new TypeError("Cannot call a class as a function");
35
- }
36
- function y(i, r) {
37
- for (var e = 0; e < r.length; e++) {
38
- var t = r[e];
39
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(i, d(t.key), t);
40
- }
41
- }
42
- function m(i, r, e) {
43
- return r && y(i.prototype, r), Object.defineProperty(i, "prototype", { writable: !1 }), i;
44
- }
45
- function d(i) {
46
- var r = _(i, "string");
47
- return typeof r == "symbol" ? r : String(r);
48
- }
49
- function _(i, r) {
50
- if (typeof i != "object" || i === null) return i;
51
- var e = i[Symbol.toPrimitive];
52
- if (e !== void 0) {
53
- var t = e.call(i, r || "default");
54
- if (typeof t != "object") return t;
55
- throw new TypeError("@@toPrimitive must return a primitive value.");
56
- }
57
- return (r === "string" ? String : Number)(i);
58
- }
59
- var O = x, u = O.Buffer, b = j, f = b.inspect, w = f && f.custom || "inspect";
60
- function P(i, r, e) {
61
- u.prototype.copy.call(i, r, e);
10
+ }
11
+ Object.defineProperty(n, "nodeMessage", {
12
+ enumerable: !0,
13
+ configurable: !0,
14
+ writable: !0,
15
+ value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
16
+ });
17
+ class h extends o {
18
+ constructor({ cause: r, maxPriorityFeePerGas: e, maxFeePerGas: t } = {}) {
19
+ super([
20
+ `The provided tip (\`maxPriorityFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t ? ` = ${a(t)} gwei` : ""}).`
21
+ ].join(`
22
+ `), {
23
+ cause: r,
24
+ name: "TipAboveFeeCapError"
25
+ });
62
26
  }
63
- return s = /* @__PURE__ */ function() {
64
- function i() {
65
- p(this, i), this.head = null, this.tail = null, this.length = 0;
66
- }
67
- return m(i, [{
68
- key: "push",
69
- value: function(e) {
70
- var t = {
71
- data: e,
72
- next: null
73
- };
74
- this.length > 0 ? this.tail.next = t : this.head = t, this.tail = t, ++this.length;
75
- }
76
- }, {
77
- key: "unshift",
78
- value: function(e) {
79
- var t = {
80
- data: e,
81
- next: this.head
82
- };
83
- this.length === 0 && (this.tail = t), this.head = t, ++this.length;
84
- }
85
- }, {
86
- key: "shift",
87
- value: function() {
88
- if (this.length !== 0) {
89
- var e = this.head.data;
90
- return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, e;
91
- }
92
- }
93
- }, {
94
- key: "clear",
95
- value: function() {
96
- this.head = this.tail = null, this.length = 0;
97
- }
98
- }, {
99
- key: "join",
100
- value: function(e) {
101
- if (this.length === 0) return "";
102
- for (var t = this.head, a = "" + t.data; t = t.next; ) a += e + t.data;
103
- return a;
104
- }
105
- }, {
106
- key: "concat",
107
- value: function(e) {
108
- if (this.length === 0) return u.alloc(0);
109
- for (var t = u.allocUnsafe(e >>> 0), a = this.head, l = 0; a; )
110
- P(a.data, t, l), l += a.data.length, a = a.next;
111
- return t;
112
- }
113
- // Consumes a specified amount of bytes or characters from the buffered data.
114
- }, {
115
- key: "consume",
116
- value: function(e, t) {
117
- var a;
118
- return e < this.head.data.length ? (a = this.head.data.slice(0, e), this.head.data = this.head.data.slice(e)) : e === this.head.data.length ? a = this.shift() : a = t ? this._getString(e) : this._getBuffer(e), a;
119
- }
120
- }, {
121
- key: "first",
122
- value: function() {
123
- return this.head.data;
124
- }
125
- // Consumes a specified amount of characters from the buffered data.
126
- }, {
127
- key: "_getString",
128
- value: function(e) {
129
- var t = this.head, a = 1, l = t.data;
130
- for (e -= l.length; t = t.next; ) {
131
- var n = t.data, h = e > n.length ? n.length : e;
132
- if (h === n.length ? l += n : l += n.slice(0, e), e -= h, e === 0) {
133
- h === n.length ? (++a, t.next ? this.head = t.next : this.head = this.tail = null) : (this.head = t, t.data = n.slice(h));
134
- break;
135
- }
136
- ++a;
137
- }
138
- return this.length -= a, l;
139
- }
140
- // Consumes a specified amount of bytes from the buffered data.
141
- }, {
142
- key: "_getBuffer",
143
- value: function(e) {
144
- var t = u.allocUnsafe(e), a = this.head, l = 1;
145
- for (a.data.copy(t), e -= a.data.length; a = a.next; ) {
146
- var n = a.data, h = e > n.length ? n.length : e;
147
- if (n.copy(t, t.length - e, 0, h), e -= h, e === 0) {
148
- h === n.length ? (++l, a.next ? this.head = a.next : this.head = this.tail = null) : (this.head = a, a.data = n.slice(h));
149
- break;
150
- }
151
- ++l;
152
- }
153
- return this.length -= l, t;
154
- }
155
- // Make sure the linked list only shows the minimal necessary information.
156
- }, {
157
- key: w,
158
- value: function(e, t) {
159
- return f(this, c(c({}, t), {}, {
160
- // Only inspect one level.
161
- depth: 0,
162
- // It should not recurse.
163
- customInspect: !1
164
- }));
165
- }
166
- }]), i;
167
- }(), s;
168
27
  }
28
+ Object.defineProperty(h, "nodeMessage", {
29
+ enumerable: !0,
30
+ configurable: !0,
31
+ writable: !0,
32
+ value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
33
+ });
169
34
  export {
170
- q as __require
35
+ n as FeeCapTooHighError,
36
+ h as TipAboveFeeCapError
171
37
  };
package/dist/index78.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(t,e){var i=this,a=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return a||d?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(l,this,t)):process.nextTick(l,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(r){!e&&r?i._writableState?i._writableState.errorEmitted?process.nextTick(s,i):(i._writableState.errorEmitted=!0,process.nextTick(o,i,r)):process.nextTick(o,i,r):e?(process.nextTick(s,i),e(r)):process.nextTick(s,i)}),this)}function o(t,e){l(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function S(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(t,e){t.emit("error",e)}function _(t,e){var i=t._readableState,a=t._writableState;i&&i.autoDestroy||a&&a.autoDestroy?t.destroy(e):t.emit("error",e)}var b={destroy:n,undestroy:S,errorOrDestroy:_};exports.destroy_1=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index97.cjs"),r=require("./index98.cjs");function n(t,e="wei"){return r.formatUnits(t,i.gweiUnits[e])}exports.formatGwei=n;
package/dist/index78.js CHANGED
@@ -1,30 +1,8 @@
1
- function n(t, e) {
2
- var i = this, a = this._readableState && this._readableState.destroyed, o = this._writableState && this._writableState.destroyed;
3
- return a || o ? (e ? e(t) : t && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(l, this, t)) : process.nextTick(l, this, t)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(t || null, function(r) {
4
- !e && r ? i._writableState ? i._writableState.errorEmitted ? process.nextTick(s, i) : (i._writableState.errorEmitted = !0, process.nextTick(d, i, r)) : process.nextTick(d, i, r) : e ? (process.nextTick(s, i), e(r)) : process.nextTick(s, i);
5
- }), this);
1
+ import { gweiUnits as i } from "./index97.js";
2
+ import { formatUnits as o } from "./index98.js";
3
+ function f(r, t = "wei") {
4
+ return o(r, i[t]);
6
5
  }
7
- function d(t, e) {
8
- l(t, e), s(t);
9
- }
10
- function s(t) {
11
- t._writableState && !t._writableState.emitClose || t._readableState && !t._readableState.emitClose || t.emit("close");
12
- }
13
- function _() {
14
- this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
15
- }
16
- function l(t, e) {
17
- t.emit("error", e);
18
- }
19
- function S(t, e) {
20
- var i = t._readableState, a = t._writableState;
21
- i && i.autoDestroy || a && a.autoDestroy ? t.destroy(e) : t.emit("error", e);
22
- }
23
- var h = {
24
- destroy: n,
25
- undestroy: _,
26
- errorOrDestroy: S
27
- };
28
6
  export {
29
- h as d
7
+ f as formatGwei
30
8
  };
package/dist/index79.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index80.cjs");const h=require("./index83.cjs");var n=h.__exports.codes.ERR_INVALID_OPT_VALUE;function u(e,a,t){return e.highWaterMark!=null?e.highWaterMark:a?e[t]:null}function g(e,a,t,i){var r=u(a,i,t);if(r!=null){if(!(isFinite(r)&&Math.floor(r)===r)||r<0){var o=i?t:"highWaterMark";throw new n(o,r)}return Math.floor(r)}return e.objectMode?16:16*1024}var M={getHighWaterMark:g};exports.state=M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index99.cjs"),n=require("./index100.cjs"),o=require("./index101.cjs"),a=require("./index102.cjs"),h=require("./index103.cjs");var u=s.inherits_browserExports,d=n.md5_js,c=o.ripemd160,p=a.sha_jsExports,i=h.cipherBase;function t(r){i.call(this,"digest"),this._hash=r}u(t,i);t.prototype._update=function(r){this._hash.update(r)};t.prototype._final=function(){return this._hash.digest()};var _=function(e){return e=e.toLowerCase(),e==="md5"?new d:e==="rmd160"||e==="ripemd160"?new c:new t(p(e))};exports.browser=_;
package/dist/index79.js CHANGED
@@ -1,23 +1,22 @@
1
- import "./index80.js";
2
- import { __exports as i } from "./index83.js";
3
- var n = i.codes.ERR_INVALID_OPT_VALUE;
4
- function M(t, e, a) {
5
- return t.highWaterMark != null ? t.highWaterMark : e ? t[a] : null;
1
+ import { i } from "./index99.js";
2
+ import { m as o } from "./index100.js";
3
+ import { r as a } from "./index101.js";
4
+ import { s as n } from "./index102.js";
5
+ import { c as h } from "./index103.js";
6
+ var p = i, m = o, f = a, u = n, e = h;
7
+ function s(t) {
8
+ e.call(this, "digest"), this._hash = t;
6
9
  }
7
- function g(t, e, a, h) {
8
- var r = M(e, h, a);
9
- if (r != null) {
10
- if (!(isFinite(r) && Math.floor(r) === r) || r < 0) {
11
- var o = h ? a : "highWaterMark";
12
- throw new n(o, r);
13
- }
14
- return Math.floor(r);
15
- }
16
- return t.objectMode ? 16 : 16 * 1024;
17
- }
18
- var k = {
19
- getHighWaterMark: g
10
+ p(s, e);
11
+ s.prototype._update = function(t) {
12
+ this._hash.update(t);
13
+ };
14
+ s.prototype._final = function() {
15
+ return this._hash.digest();
16
+ };
17
+ var b = function(r) {
18
+ return r = r.toLowerCase(), r === "md5" ? new m() : r === "rmd160" || r === "ripemd160" ? new f() : new s(u(r));
20
19
  };
21
20
  export {
22
- k as s
21
+ b
23
22
  };