@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.
- package/dist/index.cjs +1 -1
- package/dist/index.js +15 -14
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +55 -41
- package/dist/index100.cjs +1 -0
- package/dist/index100.js +37 -0
- package/dist/index101.cjs +1 -0
- package/dist/index101.js +369 -0
- package/dist/index102.cjs +1 -0
- package/dist/index102.js +23 -0
- package/dist/index103.cjs +1 -0
- package/dist/index103.js +58 -0
- package/dist/index104.cjs +1 -0
- package/dist/index104.js +5 -0
- package/dist/index105.cjs +1 -0
- package/dist/index105.js +51 -0
- package/dist/index106.cjs +1 -0
- package/dist/index106.js +28 -0
- package/dist/index107.cjs +1 -0
- package/dist/index107.js +4 -0
- package/dist/index108.cjs +1 -0
- package/dist/index108.js +4 -0
- package/dist/index109.cjs +1 -0
- package/dist/index109.js +64 -0
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +37 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +7 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +4 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +60 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +4 -0
- package/dist/index115.cjs +1 -0
- package/dist/index115.js +42 -0
- package/dist/index116.cjs +1 -0
- package/dist/index116.js +45 -0
- package/dist/index117.cjs +1 -0
- package/dist/index117.js +20 -0
- package/dist/index118.cjs +1 -0
- package/dist/index118.js +111 -0
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +23 -0
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +228 -0
- package/dist/index121.cjs +1 -0
- package/dist/index121.js +6 -0
- package/dist/index122.cjs +1 -0
- package/dist/index122.js +160 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +4 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +75 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +107 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +15 -0
- package/dist/index127.cjs +1 -0
- package/dist/index127.js +35 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +4 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +32 -0
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +21 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +4 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +358 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +241 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +70 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +64 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +14 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +47 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +65 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +228 -0
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -2
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +5 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +171 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +30 -0
- package/dist/index143.cjs +1 -0
- package/dist/index143.js +23 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +72 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +130 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +9 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +4 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +28 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +4 -0
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +30 -136
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +25 -2
- package/dist/index18.cjs +1 -3
- package/dist/index18.js +29 -26
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +32 -17
- package/dist/index20.cjs +1 -2
- package/dist/index20.js +53 -25
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +6 -38
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +9 -199
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +138 -2
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +13 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +36 -27
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +41 -14
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +26 -173
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +15 -22
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +24 -2
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +25 -34
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +54 -8
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +28 -2
- package/dist/index34.cjs +3 -6
- package/dist/index34.js +30 -949
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +17 -4
- package/dist/index36.cjs +2 -1
- package/dist/index36.js +23 -18
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +38 -29
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +197 -60
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +2 -33
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +2 -87
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +2 -49
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +12 -25
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +12 -2
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +4 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +45 -19
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +38 -30
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +165 -360
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +13 -21
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +3 -54
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +17 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +9 -70
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +175 -2
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +21 -57
- package/dist/index54.js +2 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +34 -39
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +9 -43
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +34 -17
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +50 -103
- package/dist/index59.cjs +2 -1
- package/dist/index59.js +58 -19
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +3 -225
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +128 -4
- package/dist/index62.cjs +2 -1
- package/dist/index62.js +37 -152
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -2
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +11 -13
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +12 -2
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +13 -32
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -2
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +17 -355
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +75 -235
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +14 -67
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +17 -60
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +6 -11
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +20 -43
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +13 -62
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +2 -226
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +2 -3
- package/dist/index77.cjs +2 -1
- package/dist/index77.js +32 -166
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +5 -27
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +18 -19
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +30 -68
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +2 -128
- package/dist/index82.cjs +6 -1
- package/dist/index82.js +949 -9
- package/dist/index83.cjs +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +61 -25
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +33 -2
- package/dist/index86.cjs +1 -0
- package/dist/index86.js +89 -0
- package/dist/index87.cjs +1 -0
- package/dist/index87.js +15 -0
- package/dist/index88.cjs +1 -0
- package/dist/index88.js +9 -0
- package/dist/index89.cjs +1 -0
- package/dist/index89.js +115 -0
- package/dist/index90.cjs +1 -0
- package/dist/index90.js +9 -0
- package/dist/index91.cjs +1 -0
- package/dist/index91.js +35 -0
- package/dist/index92.cjs +1 -0
- package/dist/index92.js +4 -0
- package/dist/index93.cjs +1 -0
- package/dist/index93.js +40 -0
- package/dist/index94.cjs +1 -0
- package/dist/index94.js +31 -0
- package/dist/index95.cjs +1 -0
- package/dist/index95.js +23 -0
- package/dist/index96.cjs +1 -0
- package/dist/index96.js +9 -0
- package/dist/index97.cjs +1 -0
- package/dist/index97.js +7 -0
- package/dist/index98.cjs +1 -0
- package/dist/index98.js +13 -0
- package/dist/index99.cjs +1 -0
- package/dist/index99.js +22 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/lib/utils.d.ts +3 -1
- package/package.json +2 -2
package/dist/index83.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
package/dist/index84.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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;
|
package/dist/index84.js
CHANGED
|
@@ -1,28 +1,64 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var i =
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
return e;
|
|
6
|
-
var t = !1;
|
|
7
|
-
function n() {
|
|
8
|
-
if (!t) {
|
|
9
|
-
if (o("throwDeprecation"))
|
|
10
|
-
throw new Error(r);
|
|
11
|
-
o("traceDeprecation") ? console.trace(r) : console.warn(r), t = !0;
|
|
12
|
-
}
|
|
13
|
-
return e.apply(this, arguments);
|
|
14
|
-
}
|
|
15
|
-
return n;
|
|
16
|
-
}
|
|
17
|
-
function o(e) {
|
|
18
|
-
try {
|
|
19
|
-
if (!a.localStorage) return !1;
|
|
20
|
-
} catch {
|
|
21
|
-
return !1;
|
|
22
|
-
}
|
|
23
|
-
var r = a.localStorage[e];
|
|
24
|
-
return r == null ? !1 : String(r).toLowerCase() === "true";
|
|
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];
|
|
25
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
|
+
};
|
|
26
62
|
export {
|
|
27
|
-
|
|
63
|
+
m as e
|
|
28
64
|
};
|
package/dist/index85.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
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;
|
package/dist/index85.js
CHANGED
|
@@ -1,4 +1,35 @@
|
|
|
1
|
-
var
|
|
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;
|
|
2
33
|
export {
|
|
3
|
-
|
|
34
|
+
u as n
|
|
4
35
|
};
|
package/dist/index86.cjs
ADDED
|
@@ -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;
|
package/dist/index86.js
ADDED
|
@@ -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
|
+
};
|
package/dist/index87.cjs
ADDED
|
@@ -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;
|
package/dist/index87.js
ADDED
|
@@ -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
|
+
};
|
package/dist/index88.cjs
ADDED
|
@@ -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;
|
package/dist/index88.js
ADDED
package/dist/index89.cjs
ADDED
|
@@ -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;
|
package/dist/index89.js
ADDED
|
@@ -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
|
+
};
|
package/dist/index90.cjs
ADDED
|
@@ -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;
|
package/dist/index90.js
ADDED
|
@@ -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
|
+
};
|
package/dist/index91.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index111.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;
|
package/dist/index91.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { maxBytesPerTransaction as y, bytesPerBlob as a, fieldElementsPerBlob as f, bytesPerFieldElement as p } from "./index111.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
|
+
};
|
package/dist/index92.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=1;exports.versionedHashVersionKzg=e;
|
package/dist/index92.js
ADDED
package/dist/index93.cjs
ADDED
|
@@ -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;
|
package/dist/index93.js
ADDED
|
@@ -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
|
+
};
|
package/dist/index94.cjs
ADDED
|
@@ -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;
|
package/dist/index94.js
ADDED
|
@@ -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
|
+
};
|
package/dist/index95.cjs
ADDED
|
@@ -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;
|
package/dist/index95.js
ADDED
|
@@ -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
|
+
};
|
package/dist/index96.cjs
ADDED
|
@@ -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;
|
package/dist/index96.js
ADDED
package/dist/index97.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={ether:-9,wei:9};exports.gweiUnits=e;
|
package/dist/index97.js
ADDED
package/dist/index98.cjs
ADDED
|
@@ -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;
|
package/dist/index98.js
ADDED
|
@@ -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
|
+
};
|
package/dist/index99.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index112.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;
|
package/dist/index99.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __module as o } from "./index112.js";
|
|
2
|
+
typeof Object.create == "function" ? o.exports = function(e, t) {
|
|
3
|
+
t && (e.super_ = t, e.prototype = Object.create(t.prototype, {
|
|
4
|
+
constructor: {
|
|
5
|
+
value: e,
|
|
6
|
+
enumerable: !1,
|
|
7
|
+
writable: !0,
|
|
8
|
+
configurable: !0
|
|
9
|
+
}
|
|
10
|
+
}));
|
|
11
|
+
} : o.exports = function(e, t) {
|
|
12
|
+
if (t) {
|
|
13
|
+
e.super_ = t;
|
|
14
|
+
var r = function() {
|
|
15
|
+
};
|
|
16
|
+
r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
var p = o.exports;
|
|
20
|
+
export {
|
|
21
|
+
p as i
|
|
22
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ export { SecretManager } from './lib/secretManager/secretManager';
|
|
|
11
11
|
export type { ISecretManager, Secret, } from './lib/secretManager/secretManager.types';
|
|
12
12
|
export { Quote } from './lib/quote/quote';
|
|
13
13
|
export type { IQuote, QuoteResponse, Strategies, } from './lib/quote/quote.types';
|
|
14
|
-
export { switchOrAddNetwork, constructOrderPair } from './lib/utils';
|
|
14
|
+
export { switchOrAddNetwork, constructOrderPair, evmToViemChainMap, } from './lib/utils';
|