@gardenfi/swap 0.1.2 → 0.1.3-beta.1
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/index104.cjs +1 -1
- package/dist/index104.js +4 -4
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +1 -1
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +1 -1
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +1 -1
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +2 -2
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +8 -8
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +4 -4
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +2 -2
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +2 -2
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +3 -3
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +1 -1
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +1 -1
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +2 -2
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +2 -2
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +1 -1
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +1 -1
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +1 -1
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +1 -1
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +1 -1
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +1 -1
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +1 -1
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +1 -1
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +2 -2
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +1 -1
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +1 -1
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +1 -1
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +1 -1
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +2 -2
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +3 -3
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +2 -2
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +2 -2
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +2 -2
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +3 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +3 -3
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +2 -2
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +1 -1
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +3 -3
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +1 -1
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +15 -15
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +4 -4
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +3 -3
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +1 -1
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +3 -3
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +1 -1
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +6 -6
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +1 -1
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +1 -1
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +1 -1
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +1 -1
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +1 -1
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +1 -1
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +2 -2
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +1 -1
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +1 -1
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +1 -1
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +2 -2
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +3 -3
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +2 -2
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +4 -4
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +2 -2
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +2 -2
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +4 -4
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +2 -2
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +2 -2
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +3 -3
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +1 -1
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +41 -36
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -2
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +320 -15
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +604 -7
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +110 -8
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +167 -42
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +291 -310
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +94 -606
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +44 -97
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +52 -166
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +41 -298
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +15 -93
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +310 -49
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +57 -51
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +18 -43
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +28 -14
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +3 -317
- package/dist/index315.cjs +7 -1
- package/dist/index315.js +232 -54
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +47 -19
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +208 -25
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +81 -3
- package/dist/index319.cjs +1 -7
- package/dist/index319.js +27 -235
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +77 -48
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +34 -209
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +14 -80
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +8 -29
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +7 -76
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +1 -1
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +1 -1
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +1 -1
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +1 -1
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +1 -1
- package/dist/index349.cjs +2 -1
- package/dist/index349.js +193 -4
- package/dist/index350.cjs +1 -2
- package/dist/index350.js +52 -168
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +331 -65
- package/dist/index352.cjs +1 -1
- package/dist/index352.js +149 -332
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +5 -161
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +5 -5
- package/dist/index356.cjs +1 -1
- package/dist/index356.js +3 -3
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +1 -1
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +1 -1
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +1 -1
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +1 -1
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +275 -3
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +170 -140
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +10 -276
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +107 -170
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +10 -10
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +3 -107
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +140 -9
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +22 -2
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +2 -22
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +24 -83
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +15 -11
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +103 -24
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +12 -18
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +58 -107
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +522 -12
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +30 -59
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +26 -522
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +12 -16
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +34 -11
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +16 -14
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +16 -37
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +17 -14
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +19 -17
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +42 -17
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +39 -15
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +29 -49
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +29 -46
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +19 -25
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +18 -27
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +14 -16
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +15 -28
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +14 -28
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +86 -13
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +13 -13
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +6 -6
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +3 -3
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +2 -2
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +728 -20
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +482 -688
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +18 -520
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +19 -11
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +30 -11
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +24 -16
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +4 -45
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +6 -42
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +16 -171
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +12 -20
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -26
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +11 -26
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +17 -3
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +45 -6
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +42 -16
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +171 -12
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +1 -1
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +3 -3
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +1 -1
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +1 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +2 -2
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +2 -2
- package/dist/src/lib/store/swapStore.d.ts +1 -1
- package/package.json +4 -4
package/dist/index214.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index189.cjs"),l=require("./index100.cjs"),u=require("./index222.cjs"),f=require("./index71.cjs"),m=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index189.cjs"),l=require("./index100.cjs"),u=require("./index222.cjs"),f=require("./index71.cjs"),m=require("./index88.cjs"),h=new TextEncoder;function A(e,n={}){return typeof e=="number"||typeof e=="bigint"?B(e,n):typeof e=="boolean"?x(e,n):l.isHex(e)?c(e,n):T(e,n)}function x(e,n={}){const t=new Uint8Array(1);return t[0]=Number(e),typeof n.size=="number"?(f.assertSize(t,{size:n.size}),u.pad(t,{size:n.size})):t}const i={zero:48,nine:57,A:65,F:70,a:97,f:102};function g(e){if(e>=i.zero&&e<=i.nine)return e-i.zero;if(e>=i.A&&e<=i.F)return e-(i.A-10);if(e>=i.a&&e<=i.f)return e-(i.a-10)}function c(e,n={}){let t=e;n.size&&(f.assertSize(t,{size:n.size}),t=u.pad(t,{dir:"right",size:n.size}));let r=t.slice(2);r.length%2&&(r=`0${r}`);const d=r.length/2,y=new Uint8Array(d);for(let s=0,o=0;s<d;s++){const b=g(r.charCodeAt(o++)),z=g(r.charCodeAt(o++));if(b===void 0||z===void 0)throw new a.BaseError(`Invalid byte sequence ("${r[o-2]}${r[o-1]}" in "${r}").`);y[s]=b*16+z}return y}function B(e,n){const t=m.numberToHex(e,n);return c(t)}function T(e,n={}){const t=h.encode(e);return typeof n.size=="number"?(f.assertSize(t,{size:n.size}),u.pad(t,{dir:"right",size:n.size})):t}exports.boolToBytes=x;exports.hexToBytes=c;exports.numberToBytes=B;exports.stringToBytes=T;exports.toBytes=A;
|
package/dist/index214.js
CHANGED
|
@@ -2,7 +2,7 @@ import { BaseError as g } from "./index189.js";
|
|
|
2
2
|
import { isHex as x } from "./index100.js";
|
|
3
3
|
import { pad as s } from "./index222.js";
|
|
4
4
|
import { assertSize as u } from "./index71.js";
|
|
5
|
-
import { numberToHex as h } from "./
|
|
5
|
+
import { numberToHex as h } from "./index88.js";
|
|
6
6
|
const A = /* @__PURE__ */ new TextEncoder();
|
|
7
7
|
function F(e, n = {}) {
|
|
8
8
|
return typeof e == "number" || typeof e == "bigint" ? T(e, n) : typeof e == "boolean" ? B(e, n) : x(e) ? y(e, n) : l(e, n);
|
package/dist/index215.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index187.cjs"),g=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index187.cjs"),g=require("./index85.cjs"),l=require("./index189.cjs"),b=require("./index80.cjs"),x=require("./index86.cjs"),u=require("./index87.cjs"),d=require("./index222.cjs"),y=require("./index81.cjs"),A=require("./index212.cjs"),a=require("./index88.cjs"),z=require("./index223.cjs");function w(e,n){if(e.length!==n.length)throw new f.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:n.length});const o=H({params:e,values:n}),t=p(o);return t.length===0?"0x":t}function H({params:e,values:n}){const o=[];for(let t=0;t<e.length;t++)o.push(h({param:e[t],value:n[t]}));return o}function h({param:e,value:n}){const o=m(e.type);if(o){const[t,r]=o;return P(n,{length:t,param:{...e,type:r}})}if(e.type==="tuple")return L(n,{param:e});if(e.type==="address")return E(n);if(e.type==="bool")return q(n);if(e.type.startsWith("uint")||e.type.startsWith("int")){const t=e.type.startsWith("int"),[,,r="256"]=z.integerRegex.exec(e.type)??[];return T(n,{signed:t,size:Number(r)})}if(e.type.startsWith("bytes"))return S(n,{param:e});if(e.type==="string")return I(n);throw new f.InvalidAbiEncodingTypeError(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function p(e){let n=0;for(let i=0;i<e.length;i++){const{dynamic:c,encoded:s}=e[i];c?n+=32:n+=y.size(s)}const o=[],t=[];let r=0;for(let i=0;i<e.length;i++){const{dynamic:c,encoded:s}=e[i];c?(o.push(a.numberToHex(n+r,{size:32})),t.push(s),r+=y.size(s)):o.push(s)}return u.concat([...o,...t])}function E(e){if(!x.isAddress(e))throw new g.InvalidAddressError({address:e});return{dynamic:!1,encoded:d.padHex(e.toLowerCase())}}function P(e,{length:n,param:o}){const t=n===null;if(!Array.isArray(e))throw new f.InvalidArrayError(e);if(!t&&e.length!==n)throw new f.AbiEncodingArrayLengthMismatchError({expectedLength:n,givenLength:e.length,type:`${o.type}[${n}]`});let r=!1;const i=[];for(let c=0;c<e.length;c++){const s=h({param:o,value:e[c]});s.dynamic&&(r=!0),i.push(s)}if(t||r){const c=p(i);if(t){const s=a.numberToHex(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?u.concat([s,c]):s}}if(r)return{dynamic:!0,encoded:c}}return{dynamic:!1,encoded:u.concat(i.map(({encoded:c})=>c))}}function S(e,{param:n}){const[,o]=n.type.split("bytes"),t=y.size(e);if(!o){let r=e;return t%32!==0&&(r=d.padHex(r,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:u.concat([d.padHex(a.numberToHex(t,{size:32})),r])}}if(t!==Number.parseInt(o,10))throw new f.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(o,10),value:e});return{dynamic:!1,encoded:d.padHex(e,{dir:"right"})}}function q(e){if(typeof e!="boolean")throw new l.BaseError(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:d.padHex(a.boolToHex(e))}}function T(e,{signed:n,size:o=256}){if(typeof o=="number"){const t=2n**(BigInt(o)-(n?1n:0n))-1n,r=n?-t-1n:0n;if(e>t||e<r)throw new b.IntegerOutOfRangeError({max:t.toString(),min:r.toString(),signed:n,size:o/8,value:e.toString()})}return{dynamic:!1,encoded:a.numberToHex(e,{size:32,signed:n})}}function I(e){const n=a.stringToHex(e),o=Math.ceil(y.size(n)/32),t=[];for(let r=0;r<o;r++)t.push(d.padHex(A.slice(n,r*32,(r+1)*32),{dir:"right"}));return{dynamic:!0,encoded:u.concat([d.padHex(a.numberToHex(y.size(n),{size:32})),...t])}}function L(e,{param:n}){let o=!1;const t=[];for(let r=0;r<n.components.length;r++){const i=n.components[r],c=Array.isArray(e)?r:i.name,s=h({param:i,value:e[c]});t.push(s),s.dynamic&&(o=!0)}return{dynamic:o,encoded:o?p(t):u.concat(t.map(({encoded:r})=>r))}}function m(e){const n=e.match(/^(.*)\[(\d+)?\]$/);return n?[n[2]?Number(n[2]):null,n[1]]:void 0}exports.encodeAbiParameters=w;exports.getArrayComponents=m;
|
package/dist/index215.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AbiEncodingLengthMismatchError as y, InvalidAbiEncodingTypeError as u, InvalidArrayError as g, AbiEncodingArrayLengthMismatchError as l, AbiEncodingBytesSizeMismatchError as b } from "./index187.js";
|
|
2
|
-
import { InvalidAddressError as w } from "./
|
|
2
|
+
import { InvalidAddressError as w } from "./index85.js";
|
|
3
3
|
import { BaseError as A } from "./index189.js";
|
|
4
|
-
import { IntegerOutOfRangeError as x } from "./
|
|
5
|
-
import { isAddress as z } from "./
|
|
6
|
-
import { concat as f } from "./
|
|
4
|
+
import { IntegerOutOfRangeError as x } from "./index80.js";
|
|
5
|
+
import { isAddress as z } from "./index86.js";
|
|
6
|
+
import { concat as f } from "./index87.js";
|
|
7
7
|
import { padHex as d } from "./index222.js";
|
|
8
|
-
import { size as a } from "./
|
|
8
|
+
import { size as a } from "./index81.js";
|
|
9
9
|
import { slice as E } from "./index212.js";
|
|
10
|
-
import { numberToHex as m, boolToHex as P, stringToHex as S } from "./
|
|
10
|
+
import { numberToHex as m, boolToHex as P, stringToHex as S } from "./index88.js";
|
|
11
11
|
import { integerRegex as I } from "./index223.js";
|
|
12
12
|
function K(e, t) {
|
|
13
13
|
if (e.length !== t.length)
|
package/dist/index217.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index187.cjs"),D=require("./index218.cjs"),x=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index187.cjs"),D=require("./index218.cjs"),x=require("./index81.cjs"),S=require("./index219.cjs"),E=require("./index210.cjs"),T=require("./index188.cjs"),v="/docs/contract/decodeEventLog";function q(o){const{abi:u,data:c,strict:w,topics:y}=o,d=w??!0,[p,...I]=y;if(!p)throw new a.AbiEventSignatureEmptyTopicsError({docsPath:v});const i=u.find(e=>e.type==="event"&&p===S.toEventSelector(T.formatAbiItem(e)));if(!(i&&"name"in i)||i.type!=="event")throw new a.AbiEventSignatureNotFoundError(p,{docsPath:v});const{name:A,inputs:s}=i,m=s==null?void 0:s.some(e=>!("name"in e&&e.name)),r=m?[]:{},b=s.map((e,n)=>[e,n]).filter(([e])=>"indexed"in e&&e.indexed),h=[];for(let e=0;e<b.length;e++){const[n,t]=b[e],f=I[e];if(!f){if(d)throw new a.DecodeLogTopicsMismatch({abiItem:i,param:n});h.push([n,t]);continue}r[m?t:n.name||t]=L({param:n,value:f})}const g=s.filter(e=>!("indexed"in e&&e.indexed)),l=d?g:[...h.map(([e])=>e),...g];if(l.length>0){if(c&&c!=="0x")try{const e=E.decodeAbiParameters(l,c);if(e){let n=0;if(!d)for(const[t,f]of h)r[m?f:t.name||f]=e[n++];if(m)for(let t=0;t<s.length;t++)r[t]===void 0&&n<e.length&&(r[t]=e[n++]);else for(let t=0;t<g.length;t++)r[g[t].name]=e[n++]}}catch(e){if(d)throw e instanceof a.AbiDecodingDataSizeTooSmallError||e instanceof D.PositionOutOfBoundsError?new a.DecodeLogDataMismatch({abiItem:i,data:c,params:l,size:x.size(c)}):e}else if(d)throw new a.DecodeLogDataMismatch({abiItem:i,data:"0x",params:l,size:0})}return{eventName:A,args:Object.values(r).length>0?r:void 0}}function L({param:o,value:u}){return o.type==="string"||o.type==="bytes"||o.type==="tuple"||o.type.match(/^(.*)\[(\d+)?\]$/)?u:(E.decodeAbiParameters([o],u)||[])[0]}exports.decodeEventLog=q;
|
package/dist/index217.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbiEventSignatureEmptyTopicsError as A, AbiEventSignatureNotFoundError as D, DecodeLogTopicsMismatch as T, AbiDecodingDataSizeTooSmallError as S, DecodeLogDataMismatch as w } from "./index187.js";
|
|
2
2
|
import { PositionOutOfBoundsError as z } from "./index218.js";
|
|
3
|
-
import { size as L } from "./
|
|
3
|
+
import { size as L } from "./index81.js";
|
|
4
4
|
import { toEventSelector as O } from "./index219.js";
|
|
5
5
|
import { decodeAbiParameters as I } from "./index210.js";
|
|
6
6
|
import { formatAbiItem as P } from "./index188.js";
|
package/dist/index224.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index187.cjs"),d=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index187.cjs"),d=require("./index87.cjs"),m=require("./index216.cjs"),f=require("./index215.cjs"),l=require("./index188.cjs"),A=require("./index195.cjs"),n="/docs/contract/encodeErrorResult";function E(a){const{abi:i,errorName:t,args:r}=a;let e=i[0];if(t){const s=A.getAbiItem({abi:i,args:r,name:t});if(!s)throw new o.AbiErrorNotFoundError(t,{docsPath:n});e=s}if(e.type!=="error")throw new o.AbiErrorNotFoundError(void 0,{docsPath:n});const u=l.formatAbiItem(e),b=m.toFunctionSelector(u);let c="0x";if(r&&r.length>0){if(!e.inputs)throw new o.AbiErrorInputsNotFoundError(e.name,{docsPath:n});c=f.encodeAbiParameters(e.inputs,r)}return d.concatHex([b,c])}exports.encodeErrorResult=E;
|
package/dist/index224.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AbiErrorNotFoundError as c, AbiErrorInputsNotFoundError as u } from "./index187.js";
|
|
2
|
-
import { concatHex as d } from "./
|
|
2
|
+
import { concatHex as d } from "./index87.js";
|
|
3
3
|
import { toFunctionSelector as p } from "./index216.js";
|
|
4
4
|
import { encodeAbiParameters as b } from "./index215.js";
|
|
5
5
|
import { formatAbiItem as l } from "./index188.js";
|
package/dist/index226.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index247.cjs"),o=require("./index100.cjs"),i=require("./index214.cjs"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index247.cjs"),o=require("./index100.cjs"),i=require("./index214.cjs"),n=require("./index88.cjs");function u(e,r){const s=r||"hex",t=c.keccak_256(o.isHex(e,{strict:!1})?i.toBytes(e):e);return s==="bytes"?t:n.toHex(t)}exports.keccak256=u;
|
package/dist/index226.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { keccak_256 as c } from "./index247.js";
|
|
2
2
|
import { isHex as i } from "./index100.js";
|
|
3
3
|
import { toBytes as m } from "./index214.js";
|
|
4
|
-
import { toHex as s } from "./
|
|
4
|
+
import { toHex as s } from "./index88.js";
|
|
5
5
|
function x(t, r) {
|
|
6
6
|
const e = r || "hex", o = c(i(t, { strict: !1 }) ? m(t) : t);
|
|
7
7
|
return e === "bytes" ? o : s(o);
|
package/dist/index231.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index214.cjs"),l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index214.cjs"),l=require("./index88.cjs");function c(o){const{kzg:s}=o,n=o.to??(typeof o.blobs[0]=="string"?"hex":"bytes"),e=typeof o.blobs[0]=="string"?o.blobs.map(t=>i.hexToBytes(t)):o.blobs,b=[];for(const t of e)b.push(Uint8Array.from(s.blobToKzgCommitment(t)));return n==="bytes"?b:b.map(t=>l.bytesToHex(t))}exports.blobsToCommitments=c;
|
package/dist/index231.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hexToBytes as i } from "./index214.js";
|
|
2
|
-
import { bytesToHex as f } from "./
|
|
2
|
+
import { bytesToHex as f } from "./index88.js";
|
|
3
3
|
function y(o) {
|
|
4
4
|
const { kzg: s } = o, n = o.to ?? (typeof o.blobs[0] == "string" ? "hex" : "bytes"), m = typeof o.blobs[0] == "string" ? o.blobs.map((t) => i(t)) : o.blobs, b = [];
|
|
5
5
|
for (const t of m)
|
package/dist/index232.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index214.cjs"),y=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index214.cjs"),y=require("./index88.cjs");function f(t){const{kzg:c}=t,e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),n=typeof t.blobs[0]=="string"?t.blobs.map(o=>b.hexToBytes(o)):t.blobs,i=typeof t.commitments[0]=="string"?t.commitments.map(o=>b.hexToBytes(o)):t.commitments,s=[];for(let o=0;o<n.length;o++){const l=n[o],m=i[o];s.push(Uint8Array.from(c.computeBlobKzgProof(l,m)))}return e==="bytes"?s:s.map(o=>y.bytesToHex(o))}exports.blobsToProofs=f;
|
package/dist/index232.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { hexToBytes as b } from "./index214.js";
|
|
2
|
-
import { bytesToHex as y } from "./
|
|
2
|
+
import { bytesToHex as y } from "./index88.js";
|
|
3
3
|
function h(t) {
|
|
4
4
|
const { kzg: m } = t, c = t.to ?? (typeof t.blobs[0] == "string" ? "hex" : "bytes"), s = typeof t.blobs[0] == "string" ? t.blobs.map((o) => b(o)) : t.blobs, i = typeof t.commitments[0] == "string" ? t.commitments.map((o) => b(o)) : t.commitments, n = [];
|
|
5
5
|
for (let o = 0; o < s.length; o++) {
|
package/dist/index234.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index88.cjs"),r=require("./index235.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/index234.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bytesToHex as i } from "./
|
|
1
|
+
import { bytesToHex as i } from "./index88.js";
|
|
2
2
|
import { sha256 as m } from "./index235.js";
|
|
3
3
|
function f(t) {
|
|
4
4
|
const { commitment: e, version: s = 1 } = t, n = t.to ?? (typeof e == "string" ? "hex" : "bytes"), o = m(e);
|
package/dist/index237.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index238.cjs"),y=require("./index239.cjs"),u=require("./index211.cjs"),B=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index238.cjs"),y=require("./index239.cjs"),u=require("./index211.cjs"),B=require("./index81.cjs"),h=require("./index214.cjs"),d=require("./index88.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/index237.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { maxBytesPerTransaction as y, fieldElementsPerBlob as a, bytesPerFieldElement as f, bytesPerBlob as p } from "./index238.js";
|
|
2
2
|
import { EmptyBlobError as c, BlobSizeTooLargeError as h } from "./index239.js";
|
|
3
3
|
import { createCursor as B } from "./index211.js";
|
|
4
|
-
import { size as u } from "./
|
|
4
|
+
import { size as u } from "./index81.js";
|
|
5
5
|
import { hexToBytes as x } from "./index214.js";
|
|
6
|
-
import { bytesToHex as d } from "./
|
|
6
|
+
import { bytesToHex as d } from "./index88.js";
|
|
7
7
|
function S(e) {
|
|
8
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
9
|
if (!o)
|
package/dist/index24.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),f=require("./index7.cjs"),w=require("./index23.cjs"),a=require("./index34.cjs"),p=require("@gardenfi/react-hooks"),S=require("@gardenfi/garden-book"),g=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),f=require("./index7.cjs"),w=require("./index23.cjs"),a=require("./index34.cjs"),p=require("@gardenfi/react-hooks"),S=require("@gardenfi/garden-book"),g=require("./index62.cjs"),d=require("./index63.cjs"),u=require("framer-motion"),T=()=>{const{transactions:c,isLoading:m}=w.transactionHistoryStore(),{allAssets:s}=f.assetInfoStore(),{pendingOrders:o}=p.useGarden(),i=t.useMemo(()=>c.filter(e=>a.getAssetFromSwap(e.source_swap,s)&&a.getAssetFromSwap(e.destination_swap,s)),[c,s]),l=t.useMemo(()=>(o==null?void 0:o.filter(e=>a.getAssetFromSwap(e.source_swap,s)&&a.getAssetFromSwap(e.destination_swap,s)))??[],[o,s]),n=t.useMemo(()=>[...l,...i],[l,i]);return t.createElement(u.AnimatePresence,{mode:"wait"},t.createElement(u.motion.div,{className:"flex w-full flex-col overflow-y-auto scrollbar-hide h-full"},m?t.createElement(d.TransactionsSkeleton,null):n.length===0?t.createElement(S.Typography,{size:"h5",className:"py-4 text-center"},"No transactions found."):n.map((e,r)=>t.createElement("div",{key:e.order_id||r,className:"w-full"},t.createElement(g.TransactionRow,{order:e,status:e.status,isLast:r===n.length-1,isFirst:r===0})))))};exports.Transactions=T;
|
package/dist/index24.js
CHANGED
|
@@ -4,8 +4,8 @@ import { transactionHistoryStore as u } from "./index23.js";
|
|
|
4
4
|
import { getAssetFromSwap as a } from "./index34.js";
|
|
5
5
|
import { useGarden as w } from "@gardenfi/react-hooks";
|
|
6
6
|
import { Typography as d } from "@gardenfi/garden-book";
|
|
7
|
-
import { TransactionRow as h } from "./
|
|
8
|
-
import { TransactionsSkeleton as y } from "./
|
|
7
|
+
import { TransactionRow as h } from "./index62.js";
|
|
8
|
+
import { TransactionsSkeleton as y } from "./index63.js";
|
|
9
9
|
import { AnimatePresence as E, motion as T } from "framer-motion";
|
|
10
10
|
const L = () => {
|
|
11
11
|
const { transactions: l, isLoading: f } = u(), { allAssets: e } = p(), { pendingOrders: o } = w(), m = i(
|
package/dist/index240.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./index104.cjs"),p=require("./index241.cjs"),h=require("./index179.cjs"),g=require("./index193.cjs"),E=require("./index215.cjs"),L=require("./index98.cjs"),R=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./index104.cjs"),p=require("./index241.cjs"),h=require("./index179.cjs"),g=require("./index193.cjs"),E=require("./index215.cjs"),L=require("./index98.cjs"),R=require("./index87.cjs"),S=require("./index100.cjs"),q=require("./index242.cjs"),O=require("./index207.cjs"),T="0x556f1830",w={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function x(c,{blockNumber:u,blockTag:l,data:a,to:n}){const{args:i}=g.decodeErrorResult({data:a,abi:[w]}),[r,o,s,d,t]=i,{ccipRead:e}=c,y=e&&typeof(e==null?void 0:e.request)=="function"?e.request:b;try{if(!L.isAddressEqual(n,r))throw new p.OffchainLookupSenderMismatchError({sender:r,to:n});const f=o.includes(q.localBatchGatewayUrl)?await q.localBatchGatewayRequest({data:s,ccipRequest:y}):await y({data:s,sender:r,urls:o}),{data:m}=await k.call(c,{blockNumber:u,blockTag:l,data:R.concat([d,E.encodeAbiParameters([{type:"bytes"},{type:"bytes"}],[f,t])]),to:n});return m}catch(f){throw new p.OffchainLookupError({callbackSelector:d,cause:f,data:a,extraData:t,sender:r,urls:o})}}async function b({data:c,sender:u,urls:l}){var n;let a=new Error("An unknown error occurred.");for(let i=0;i<l.length;i++){const r=l[i],o=r.includes("{data}")?"GET":"POST",s=o==="POST"?{data:c,sender:u}:void 0,d=o==="POST"?{"Content-Type":"application/json"}:{};try{const t=await fetch(r.replace("{sender}",u.toLowerCase()).replace("{data}",c),{body:JSON.stringify(s),headers:d,method:o});let e;if((n=t.headers.get("Content-Type"))!=null&&n.startsWith("application/json")?e=(await t.json()).data:e=await t.text(),!t.ok){a=new h.HttpRequestError({body:s,details:e!=null&&e.error?O.stringify(e.error):t.statusText,headers:t.headers,status:t.status,url:r});continue}if(!S.isHex(e)){a=new p.OffchainLookupResponseMalformedError({result:e,url:r});continue}return e}catch(t){a=new h.HttpRequestError({body:s,details:t.message,url:r})}}throw a}exports.ccipRequest=b;exports.offchainLookup=x;exports.offchainLookupAbiItem=w;exports.offchainLookupSignature=T;
|
package/dist/index240.js
CHANGED
|
@@ -4,7 +4,7 @@ import { HttpRequestError as d } from "./index179.js";
|
|
|
4
4
|
import { decodeErrorResult as g } from "./index193.js";
|
|
5
5
|
import { encodeAbiParameters as q } from "./index215.js";
|
|
6
6
|
import { isAddressEqual as E } from "./index98.js";
|
|
7
|
-
import { concat as L } from "./
|
|
7
|
+
import { concat as L } from "./index87.js";
|
|
8
8
|
import { isHex as O } from "./index100.js";
|
|
9
9
|
import { localBatchGatewayUrl as x, localBatchGatewayRequest as S } from "./index242.js";
|
|
10
10
|
import { stringify as T } from "./index207.js";
|
package/dist/index242.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index44.cjs"),y=require("./index192.cjs"),h=require("./index220.cjs"),n=require("./index224.cjs"),w=require("./index228.cjs"),u="x-batch-gateway:true";async function i(t){const{data:l,ccipRequest:o}=t,{args:[d]}=h.decodeFunctionData({abi:c.batchGatewayAbi,data:l}),a=[],s=[];return await Promise.all(d.map(async(r,e)=>{try{s[e]=r.urls.includes(u)?await i({data:r.data,ccipRequest:o}):await o(r),a[e]=!1}catch(b){a[e]=!0,s[e]=g(b)}})),w.encodeFunctionResult({abi:c.batchGatewayAbi,functionName:"query",result:[a,s]})}function g(t){return t.name==="HttpRequestError"&&t.status?n.encodeErrorResult({abi:c.batchGatewayAbi,errorName:"HttpError",args:[t.status,t.shortMessage]}):n.encodeErrorResult({abi:[y.solidityError],errorName:"Error",args:["shortMessage"in t?t.shortMessage:t.message]})}exports.localBatchGatewayRequest=i;exports.localBatchGatewayUrl=u;
|
package/dist/index242.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { batchGatewayAbi as o } from "./
|
|
1
|
+
import { batchGatewayAbi as o } from "./index44.js";
|
|
2
2
|
import { solidityError as l } from "./index192.js";
|
|
3
3
|
import { decodeFunctionData as f } from "./index220.js";
|
|
4
4
|
import { encodeErrorResult as n } from "./index224.js";
|
package/dist/index243.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index214.cjs"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index214.cjs"),o=require("./index88.cjs"),n=require("./index226.cjs"),s=require("./index244.cjs");function c(e){const t=new Uint8Array(32).fill(0);return e?s.encodedLabelToLabelhash(e)||n.keccak256(r.stringToBytes(e)):o.bytesToHex(t)}exports.labelhash=c;
|
package/dist/index243.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { stringToBytes as t } from "./index214.js";
|
|
2
|
-
import { bytesToHex as e } from "./
|
|
2
|
+
import { bytesToHex as e } from "./index88.js";
|
|
3
3
|
import { keccak256 as i } from "./index226.js";
|
|
4
4
|
import { encodedLabelToLabelhash as n } from "./index244.js";
|
|
5
5
|
function c(r) {
|
package/dist/index245.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index87.cjs"),n=require("./index214.cjs"),r=require("./index88.cjs"),a=require("./index226.cjs"),h=require("./index244.cjs");function b(s){let e=new Uint8Array(32).fill(0);if(!s)return r.bytesToHex(e);const o=s.split(".");for(let t=o.length-1;t>=0;t-=1){const c=h.encodedLabelToLabelhash(o[t]),l=c?n.toBytes(c):a.keccak256(n.stringToBytes(o[t]),"bytes");e=a.keccak256(i.concat([e,l]),"bytes")}return r.bytesToHex(e)}exports.namehash=b;
|
package/dist/index245.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { concat as a } from "./
|
|
1
|
+
import { concat as a } from "./index87.js";
|
|
2
2
|
import { toBytes as m, stringToBytes as c } from "./index214.js";
|
|
3
|
-
import { bytesToHex as n } from "./
|
|
3
|
+
import { bytesToHex as n } from "./index88.js";
|
|
4
4
|
import { keccak256 as i } from "./index226.js";
|
|
5
5
|
import { encodedLabelToLabelhash as f } from "./index244.js";
|
|
6
6
|
function u(r) {
|
package/dist/index255.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index185.cjs"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index185.cjs"),o=require("./index87.cjs"),s=require("./index81.cjs"),r=require("./index88.cjs");function c(e){const t=typeof e=="string"?r.stringToHex(e):typeof e.raw=="string"?e.raw:r.bytesToHex(e.raw),i=r.stringToHex(`${n.presignMessagePrefix}${s.size(t)}`);return o.concat([i,t])}exports.toPrefixedMessage=c;
|
package/dist/index255.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { presignMessagePrefix as e } from "./index185.js";
|
|
2
|
-
import { concat as n } from "./
|
|
3
|
-
import { size as f } from "./
|
|
4
|
-
import { stringToHex as o, bytesToHex as p } from "./
|
|
2
|
+
import { concat as n } from "./index87.js";
|
|
3
|
+
import { size as f } from "./index81.js";
|
|
4
|
+
import { stringToHex as o, bytesToHex as p } from "./index88.js";
|
|
5
5
|
function u(r) {
|
|
6
6
|
const t = typeof r == "string" ? o(r) : typeof r.raw == "string" ? r.raw : p(r.raw), i = o(`${e}${f(t)}`);
|
|
7
7
|
return n([i, t]);
|
package/dist/index256.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index215.cjs"),D=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index215.cjs"),D=require("./index87.cjs"),y=require("./index88.cjs"),s=require("./index226.cjs"),u=require("./index257.cjs");function b(a){const{domain:n={},message:e,primaryType:t}=a,o={EIP712Domain:u.getTypesForEIP712Domain({domain:n}),...a.types};u.validateTypedData({domain:n,message:e,primaryType:t,types:o});const c=["0x1901"];return n&&c.push(f({domain:n,types:o})),t!=="EIP712Domain"&&c.push(d({data:e,primaryType:t,types:o})),s.keccak256(D.concat(c))}function f({domain:a,types:n}){return d({data:a,primaryType:"EIP712Domain",types:n})}function d({data:a,primaryType:n,types:e}){const t=m({data:a,primaryType:n,types:e});return s.keccak256(t)}function m({data:a,primaryType:n,types:e}){const t=[{type:"bytes32"}],o=[l({primaryType:n,types:e})];for(const c of e[n]){const[r,i]=T({types:e,name:c.name,type:c.type,value:a[c.name]});t.push(r),o.push(i)}return p.encodeAbiParameters(t,o)}function l({primaryType:a,types:n}){const e=y.toHex(h({primaryType:a,types:n}));return s.keccak256(e)}function h({primaryType:a,types:n}){let e="";const t=k({primaryType:a,types:n});t.delete(a);const o=[a,...Array.from(t).sort()];for(const c of o)e+=`${c}(${n[c].map(({name:r,type:i})=>`${i} ${r}`).join(",")})`;return e}function k({primaryType:a,types:n},e=new Set){const t=a.match(/^\w*/u),o=t==null?void 0:t[0];if(e.has(o)||n[o]===void 0)return e;e.add(o);for(const c of n[o])k({primaryType:c.type,types:n},e);return e}function T({types:a,name:n,type:e,value:t}){if(a[e]!==void 0)return[{type:"bytes32"},s.keccak256(m({data:t,primaryType:e,types:a}))];if(e==="bytes")return[{type:"bytes32"},s.keccak256(t)];if(e==="string")return[{type:"bytes32"},s.keccak256(y.toHex(t))];if(e.lastIndexOf("]")===e.length-1){const o=e.slice(0,e.lastIndexOf("[")),c=t.map(r=>T({name:n,type:o,types:a,value:r}));return[{type:"bytes32"},s.keccak256(p.encodeAbiParameters(c.map(([r])=>r),c.map(([,r])=>r)))]}return[{type:e},t]}exports.encodeType=h;exports.hashDomain=f;exports.hashStruct=d;exports.hashTypedData=b;
|
package/dist/index256.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { encodeAbiParameters as d } from "./index215.js";
|
|
2
|
-
import { concat as h } from "./
|
|
3
|
-
import { toHex as p } from "./
|
|
2
|
+
import { concat as h } from "./index87.js";
|
|
3
|
+
import { toHex as p } from "./index88.js";
|
|
4
4
|
import { keccak256 as s } from "./index226.js";
|
|
5
5
|
import { getTypesForEIP712Domain as T, validateTypedData as D } from "./index257.js";
|
|
6
6
|
function k(o) {
|
package/dist/index257.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index187.cjs"),z=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index187.cjs"),z=require("./index85.cjs"),o=require("./index209.cjs"),T=require("./index86.cjs"),u=require("./index81.cjs"),q=require("./index88.cjs"),g=require("./index223.cjs");function P(e){const{domain:n,message:b,primaryType:a,types:r}=e,c=(l,h)=>{for(const v of l){const{name:I,type:s}=v,t=h[I],y=s.match(g.integerRegex);if(y&&(typeof t=="number"||typeof t=="bigint")){const[w,i,D]=y;q.numberToHex(t,{signed:i==="int",size:Number.parseInt(D,10)/8})}if(s==="address"&&typeof t=="string"&&!T.isAddress(t))throw new z.InvalidAddressError({address:t});const f=s.match(g.bytesRegex);if(f){const[w,i]=f;if(i&&u.size(t)!==Number.parseInt(i,10))throw new E.BytesSizeMismatchError({expectedSize:Number.parseInt(i,10),givenSize:u.size(t)})}const p=r[s];p&&(x(s),c(p,t))}};if(r.EIP712Domain&&n){if(typeof n!="object")throw new o.InvalidDomainError({domain:n});c(r.EIP712Domain,n)}if(a!=="EIP712Domain")if(r[a])c(r[a],b);else throw new o.InvalidPrimaryTypeError({primaryType:a,types:r})}function d({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function x(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new o.InvalidStructTypeError({type:e})}exports.getTypesForEIP712Domain=d;exports.validateTypedData=P;
|
package/dist/index257.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BytesSizeMismatchError as m } from "./index187.js";
|
|
2
|
-
import { InvalidAddressError as w } from "./
|
|
2
|
+
import { InvalidAddressError as w } from "./index85.js";
|
|
3
3
|
import { InvalidDomainError as E, InvalidPrimaryTypeError as z, InvalidStructTypeError as D } from "./index209.js";
|
|
4
|
-
import { isAddress as T } from "./
|
|
5
|
-
import { size as y } from "./
|
|
6
|
-
import { numberToHex as x } from "./
|
|
4
|
+
import { isAddress as T } from "./index86.js";
|
|
5
|
+
import { size as y } from "./index81.js";
|
|
6
|
+
import { numberToHex as x } from "./index88.js";
|
|
7
7
|
import { integerRegex as P, bytesRegex as S } from "./index223.js";
|
|
8
8
|
function j(e) {
|
|
9
9
|
const { domain: n, message: g, primaryType: o, types: r } = e, f = (h, b) => {
|
package/dist/index259.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index100.cjs"),d=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index100.cjs"),d=require("./index81.cjs"),o=require("./index71.cjs"),c=require("./index88.cjs");async function g({hash:e,signature:r}){const u=n.isHex(e)?e:c.toHex(e),{secp256k1:i}=await Promise.resolve().then(()=>require("./index260.cjs"));return`0x${(()=>{if(typeof r=="object"&&"r"in r&&"s"in r){const{r:v,s:y,v:b,yParity:f}=r,a=Number(f??b),H=s(a);return new i.Signature(o.hexToBigInt(v),o.hexToBigInt(y)).addRecoveryBit(H)}const t=n.isHex(r)?r:c.toHex(r);if(d.size(t)!==65)throw new Error("invalid signature length");const l=o.hexToNumber(`0x${t.slice(130)}`),x=s(l);return i.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(x)})().recoverPublicKey(u.substring(2)).toHex(!1)}`}function s(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}exports.recoverPublicKey=g;
|
package/dist/index259.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isHex as i } from "./index100.js";
|
|
2
|
-
import { size as b } from "./
|
|
2
|
+
import { size as b } from "./index81.js";
|
|
3
3
|
import { hexToBigInt as n, hexToNumber as d } from "./index71.js";
|
|
4
|
-
import { toHex as c } from "./
|
|
4
|
+
import { toHex as c } from "./index88.js";
|
|
5
5
|
async function R({ hash: r, signature: e }) {
|
|
6
6
|
const u = i(r) ? r : c(r), { secp256k1: t } = await import("./index260.js");
|
|
7
7
|
return `0x${(() => {
|
package/dist/index261.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index123.cjs"),u=require("./index184.cjs"),d=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index123.cjs"),u=require("./index184.cjs"),d=require("./index85.cjs"),n=require("./index206.cjs"),i=require("./index86.cjs");function w(a){const{account:t,maxFeePerGas:e,maxPriorityFeePerGas:r,to:s}=a,o=t?c.parseAccount(t):void 0;if(o&&!i.isAddress(o.address))throw new d.InvalidAddressError({address:o.address});if(s&&!i.isAddress(s))throw new d.InvalidAddressError({address:s});if(e&&e>u.maxUint256)throw new n.FeeCapTooHighError({maxFeePerGas:e});if(r&&e&&r>e)throw new n.TipAboveFeeCapError({maxFeePerGas:e,maxPriorityFeePerGas:r})}exports.assertRequest=w;
|
package/dist/index261.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { parseAccount as d } from "./index123.js";
|
|
2
2
|
import { maxUint256 as m } from "./index184.js";
|
|
3
|
-
import { InvalidAddressError as i } from "./
|
|
3
|
+
import { InvalidAddressError as i } from "./index85.js";
|
|
4
4
|
import { FeeCapTooHighError as c, TipAboveFeeCapError as f } from "./index206.js";
|
|
5
|
-
import { isAddress as a } from "./
|
|
5
|
+
import { isAddress as a } from "./index86.js";
|
|
6
6
|
function A(n) {
|
|
7
7
|
const { account: s, maxFeePerGas: r, maxPriorityFeePerGas: o, to: e } = n, t = s ? d(s) : void 0;
|
|
8
8
|
if (t && !a(t.address))
|
package/dist/index262.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index263.cjs"),w=require("./index184.cjs"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./index263.cjs"),w=require("./index184.cjs"),t=require("./index85.cjs"),P=require("./index189.cjs"),h=require("./index239.cjs"),d=require("./index79.cjs"),n=require("./index206.cjs"),c=require("./index86.cjs"),I=require("./index81.cjs"),u=require("./index212.cjs"),l=require("./index71.cjs");function m(o){const{authorizationList:e}=o;if(e)for(const s of e){const{chainId:r}=s,i=s.address;if(!c.isAddress(i))throw new t.InvalidAddressError({address:i});if(r<0)throw new d.InvalidChainIdError({chainId:r})}f(o)}function T(o){const{blobVersionedHashes:e}=o;if(e){if(e.length===0)throw new h.EmptyBlobError;for(const s of e){const r=I.size(s),i=l.hexToNumber(u.slice(s,0,1));if(r!==32)throw new h.InvalidVersionedHashSizeError({hash:s,size:r});if(i!==E.versionedHashVersionKzg)throw new h.InvalidVersionedHashVersionError({hash:s,version:i})}}f(o)}function f(o){const{chainId:e,maxPriorityFeePerGas:s,maxFeePerGas:r,to:i}=o;if(e<=0)throw new d.InvalidChainIdError({chainId:e});if(i&&!c.isAddress(i))throw new t.InvalidAddressError({address:i});if(r&&r>w.maxUint256)throw new n.FeeCapTooHighError({maxFeePerGas:r});if(s&&r&&s>r)throw new n.TipAboveFeeCapError({maxFeePerGas:r,maxPriorityFeePerGas:s})}function x(o){const{chainId:e,maxPriorityFeePerGas:s,gasPrice:r,maxFeePerGas:i,to:a}=o;if(e<=0)throw new d.InvalidChainIdError({chainId:e});if(a&&!c.isAddress(a))throw new t.InvalidAddressError({address:a});if(s||i)throw new P.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>w.maxUint256)throw new n.FeeCapTooHighError({maxFeePerGas:r})}function v(o){const{chainId:e,maxPriorityFeePerGas:s,gasPrice:r,maxFeePerGas:i,to:a}=o;if(a&&!c.isAddress(a))throw new t.InvalidAddressError({address:a});if(typeof e<"u"&&e<=0)throw new d.InvalidChainIdError({chainId:e});if(s||i)throw new P.BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>w.maxUint256)throw new n.FeeCapTooHighError({maxFeePerGas:r})}exports.assertTransactionEIP1559=f;exports.assertTransactionEIP2930=x;exports.assertTransactionEIP4844=T;exports.assertTransactionEIP7702=m;exports.assertTransactionLegacy=v;
|
package/dist/index262.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { versionedHashVersionKzg as c } from "./index263.js";
|
|
2
2
|
import { maxUint256 as m } from "./index184.js";
|
|
3
|
-
import { InvalidAddressError as s } from "./
|
|
3
|
+
import { InvalidAddressError as s } from "./index85.js";
|
|
4
4
|
import { BaseError as h } from "./index189.js";
|
|
5
5
|
import { EmptyBlobError as P, InvalidVersionedHashSizeError as p, InvalidVersionedHashVersionError as x } from "./index239.js";
|
|
6
|
-
import { InvalidChainIdError as n } from "./
|
|
6
|
+
import { InvalidChainIdError as n } from "./index79.js";
|
|
7
7
|
import { FeeCapTooHighError as w, TipAboveFeeCapError as E } from "./index206.js";
|
|
8
|
-
import { isAddress as f } from "./
|
|
9
|
-
import { size as F } from "./
|
|
8
|
+
import { isAddress as f } from "./index86.js";
|
|
9
|
+
import { size as F } from "./index81.js";
|
|
10
10
|
import { slice as I } from "./index212.js";
|
|
11
11
|
import { hexToNumber as G } from "./index71.js";
|
|
12
12
|
function C(t) {
|
package/dist/index265.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index85.cjs"),d=require("./index199.cjs"),l=require("./index86.cjs");function a(e){if(!e||e.length===0)return[];const n=[];for(let t=0;t<e.length;t++){const{address:i,storageKeys:r}=e[t];for(let s=0;s<r.length;s++)if(r[s].length-2!==64)throw new d.InvalidStorageKeySizeError({storageKey:r[s]});if(!l.isAddress(i,{strict:!1}))throw new o.InvalidAddressError({address:i});n.push([i,r])}return n}exports.serializeAccessList=a;
|
package/dist/index265.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InvalidAddressError as s } from "./
|
|
1
|
+
import { InvalidAddressError as s } from "./index85.js";
|
|
2
2
|
import { InvalidStorageKeySizeError as l } from "./index199.js";
|
|
3
|
-
import { isAddress as f } from "./
|
|
3
|
+
import { isAddress as f } from "./index86.js";
|
|
4
4
|
function a(r) {
|
|
5
5
|
if (!r || r.length === 0)
|
|
6
6
|
return [];
|
package/dist/index266.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index88.cjs"),c=require("./index90.cjs");function u(t){if(!t||t.length===0)return[];const e=[];for(const r of t){const{chainId:i,nonce:o,...s}=r,a=r.address;e.push([i?n.toHex(i):"0x",a,o?n.toHex(o):"0x",...c.toYParitySignatureArray({},s)])}return e}exports.serializeAuthorizationList=u;
|
package/dist/index266.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toHex as i } from "./
|
|
2
|
-
import { toYParitySignatureArray as c } from "./
|
|
1
|
+
import { toHex as i } from "./index88.js";
|
|
2
|
+
import { toYParitySignatureArray as c } from "./index90.js";
|
|
3
3
|
function f(r) {
|
|
4
4
|
if (!r || r.length === 0)
|
|
5
5
|
return [];
|
package/dist/index275.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index85.cjs"),a=require("./index201.cjs"),f=require("./index198.cjs"),S=require("./index86.cjs"),c=require("./index88.cjs");function d(r){if(!(!r||r.length===0))return r.reduce((t,{slot:e,value:n})=>{if(e.length!==66)throw new a.InvalidBytesLengthError({size:e.length,targetSize:66,type:"hex"});if(n.length!==66)throw new a.InvalidBytesLengthError({size:n.length,targetSize:66,type:"hex"});return t[e]=n,t},{})}function u(r){const{balance:t,nonce:e,state:n,stateDiff:s,code:o}=r,i={};if(o!==void 0&&(i.code=o),t!==void 0&&(i.balance=c.numberToHex(t)),e!==void 0&&(i.nonce=c.numberToHex(e)),n!==void 0&&(i.state=d(n)),s!==void 0){if(i.state)throw new f.StateAssignmentConflictError;i.stateDiff=d(s)}return i}function h(r){if(!r)return;const t={};for(const{address:e,...n}of r){if(!S.isAddress(e,{strict:!1}))throw new l.InvalidAddressError({address:e});if(t[e])throw new f.AccountStateConflictError({address:e});t[e]=u(n)}return t}exports.serializeAccountStateOverride=u;exports.serializeStateMapping=d;exports.serializeStateOverride=h;
|
package/dist/index275.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { InvalidAddressError as a } from "./
|
|
1
|
+
import { InvalidAddressError as a } from "./index85.js";
|
|
2
2
|
import { InvalidBytesLengthError as d } from "./index201.js";
|
|
3
3
|
import { AccountStateConflictError as u, StateAssignmentConflictError as h } from "./index198.js";
|
|
4
|
-
import { isAddress as l } from "./
|
|
5
|
-
import { numberToHex as c } from "./
|
|
4
|
+
import { isAddress as l } from "./index86.js";
|
|
5
|
+
import { numberToHex as c } from "./index88.js";
|
|
6
6
|
function s(r) {
|
|
7
7
|
if (!(!r || r.length === 0))
|
|
8
8
|
return r.reduce((t, { slot: e, value: n }) => {
|
package/dist/index278.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index354.cjs");class r extends Error{static setStaticOptions(t){r.prototype.docsOrigin=t.docsOrigin,r.prototype.showVersion=t.showVersion,r.prototype.version=t.version}constructor(t,e={}){const i=(()=>{var a;if(e.cause instanceof r){if(e.cause.details)return e.cause.details;if(e.cause.shortMessage)return e.cause.shortMessage}return e.cause&&"details"in e.cause&&typeof e.cause.details=="string"?e.cause.details:(a=e.cause)!=null&&a.message?e.cause.message:e.details})(),u=e.cause instanceof r&&e.cause.docsPath||e.docsPath,n=e.docsOrigin??r.prototype.docsOrigin,l=`${n}${u??""}`,c=!!(e.version??r.prototype.showVersion),o=e.version??r.prototype.version,b=[t||"An error occurred.",...e.metaMessages?["",...e.metaMessages]:[],...i||u||c?["",i?`Details: ${i}`:void 0,u?`See: ${l}`:void 0,c?`Version: ${o}`:void 0]:[]].filter(a=>typeof a=="string").join(`
|
|
2
2
|
`);super(b,e.cause?{cause:e.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=e.cause,this.details=i,this.docs=l,this.docsOrigin=n,this.docsPath=u,this.shortMessage=t,this.showVersion=c,this.version=o}walk(t){return d(this,t)}}Object.defineProperty(r,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${f.getVersion()}`}});r.setStaticOptions(r.defaultStaticOptions);function d(s,t){return t!=null&&t(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause?d(s.cause,t):t?null:s}exports.BaseError=r;
|
package/dist/index278.js
CHANGED
package/dist/index29.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),n=require("./index39.cjs"),s=({open:e,onClose:t,children:o})=>r.createElement(n.BottomSheet,{open:e,onClose:t},o);exports.ResponsiveModal=s;
|
package/dist/index29.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import r from "react";
|
|
2
|
-
import { BottomSheet as m } from "./
|
|
2
|
+
import { BottomSheet as m } from "./index39.js";
|
|
3
3
|
const a = ({ open: e, onClose: t, children: o }) => /* @__PURE__ */ r.createElement(m, { open: e, onClose: t }, o);
|
|
4
4
|
export {
|
|
5
5
|
a as ResponsiveModal
|
package/dist/index299.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var d=i=>{throw TypeError(i)},p=(i,t,e)=>t.has(i)||d("Cannot "+e),r=(i,t,e)=>(p(i,t,"read from private field"),t.get(i)),o=(i,t,e)=>t.has(i)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,e),l=(i,t,e,a)=>(p(i,t,"write to private field"),t.set(i,e),e),h,s;const u=class f{constructor({prefix:t,cache:e}={}){o(this,h),o(this,s),l(this,h,t??[]),l(this,s,e??new Map)}read(t,e){const a=[r(this,h),...t].join(":");if(r(this,s).has(a))return r(this,s).get(a);const n=e();return r(this,s).set(a,n),typeof n=="object"&&n!==null&&"then"in n?Promise.resolve(n).then(c=>(r(this,s).set(a,c),c)).catch(c=>{throw r(this,s).delete(a),c}):n}readSync(t,e){const a=[r(this,h),...t].join(":");if(r(this,s).has(a))return r(this,s).get(a);const n=e();return r(this,s).set(a,n),n}clear(t){const e=[...r(this,h),...t??[]].join(":");if(!e){r(this,s).clear();return}for(const a of r(this,s).keys())a.startsWith(e)&&r(this,s).delete(a)}scope(t){return new f({prefix:[...r(this,h),...Array.isArray(t)?t:[t]],cache:r(this,s)})}};h=new WeakMap;s=new WeakMap;let y=u;exports.ClientCache=y;
|