@gardenfi/utils 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/index107.cjs +1 -1
  2. package/dist/index107.js +1 -1
  3. package/dist/index110.cjs +1 -1
  4. package/dist/index110.js +1 -1
  5. package/dist/index111.cjs +1 -1
  6. package/dist/index111.js +4 -4
  7. package/dist/index113.cjs +1 -1
  8. package/dist/index113.js +1 -1
  9. package/dist/index114.cjs +1 -1
  10. package/dist/index114.js +1 -1
  11. package/dist/index115.cjs +1 -1
  12. package/dist/index115.js +1 -1
  13. package/dist/index116.cjs +1 -1
  14. package/dist/index116.js +1 -1
  15. package/dist/index119.cjs +1 -1
  16. package/dist/index119.js +1 -1
  17. package/dist/index195.cjs +1 -1
  18. package/dist/index195.js +3 -3
  19. package/dist/index225.cjs +1 -1
  20. package/dist/index225.js +2 -2
  21. package/dist/index229.cjs +1 -1
  22. package/dist/index229.js +1 -1
  23. package/dist/index23.cjs +1 -1
  24. package/dist/index23.js +6 -6
  25. package/dist/index233.cjs +1 -1
  26. package/dist/index233.js +10 -25
  27. package/dist/index234.cjs +1 -1
  28. package/dist/index234.js +16 -13
  29. package/dist/index235.cjs +1 -1
  30. package/dist/index235.js +21 -14
  31. package/dist/index236.cjs +1 -1
  32. package/dist/index236.js +30 -5
  33. package/dist/index237.cjs +1 -1
  34. package/dist/index237.js +2 -14
  35. package/dist/index238.cjs +1 -1
  36. package/dist/index238.js +12 -9
  37. package/dist/index239.cjs +1 -1
  38. package/dist/index239.js +12 -16
  39. package/dist/index240.cjs +1 -1
  40. package/dist/index240.js +47 -10
  41. package/dist/index241.cjs +1 -1
  42. package/dist/index241.js +10 -15
  43. package/dist/index242.cjs +1 -1
  44. package/dist/index242.js +7 -22
  45. package/dist/index243.cjs +1 -1
  46. package/dist/index243.js +9 -30
  47. package/dist/index244.cjs +1 -1
  48. package/dist/index244.js +14 -2
  49. package/dist/index245.cjs +1 -1
  50. package/dist/index245.js +14 -13
  51. package/dist/index246.cjs +1 -1
  52. package/dist/index246.js +9 -12
  53. package/dist/index247.cjs +1 -1
  54. package/dist/index247.js +24 -47
  55. package/dist/index248.cjs +1 -1
  56. package/dist/index248.js +12 -11
  57. package/dist/index249.cjs +1 -1
  58. package/dist/index249.js +24 -7
  59. package/dist/index250.cjs +1 -1
  60. package/dist/index250.js +12 -8
  61. package/dist/index251.cjs +1 -1
  62. package/dist/index251.js +15 -13
  63. package/dist/index252.cjs +2 -1
  64. package/dist/index252.js +21 -11
  65. package/dist/index253.cjs +1 -1
  66. package/dist/index253.js +52 -9
  67. package/dist/index254.cjs +1 -1
  68. package/dist/index254.js +25 -24
  69. package/dist/index255.cjs +1 -1
  70. package/dist/index255.js +13 -12
  71. package/dist/index256.cjs +1 -1
  72. package/dist/index256.js +15 -24
  73. package/dist/index257.cjs +1 -1
  74. package/dist/index257.js +5 -13
  75. package/dist/index258.cjs +1 -1
  76. package/dist/index258.js +13 -15
  77. package/dist/index259.cjs +1 -2
  78. package/dist/index259.js +10 -24
  79. package/dist/index260.cjs +1 -1
  80. package/dist/index260.js +16 -52
  81. package/dist/index261.cjs +1 -2
  82. package/dist/index261.js +102 -40
  83. package/dist/index262.cjs +1 -1
  84. package/dist/index262.js +7 -2
  85. package/dist/index263.cjs +1 -1
  86. package/dist/index263.js +224 -5
  87. package/dist/index264.cjs +1 -1
  88. package/dist/index264.js +6 -10
  89. package/dist/index265.cjs +1 -1
  90. package/dist/index265.js +7 -20
  91. package/dist/index266.cjs +1 -1
  92. package/dist/index266.js +26 -8
  93. package/dist/index267.cjs +1 -1
  94. package/dist/index267.js +5 -66
  95. package/dist/index268.cjs +2 -1
  96. package/dist/index268.js +40 -64
  97. package/dist/index269.cjs +1 -1
  98. package/dist/index269.js +2 -187
  99. package/dist/index270.cjs +1 -1
  100. package/dist/index270.js +8 -20
  101. package/dist/index271.cjs +1 -1
  102. package/dist/index271.js +17 -40
  103. package/dist/index272.cjs +1 -1
  104. package/dist/index272.js +8 -76
  105. package/dist/index273.cjs +1 -1
  106. package/dist/index273.js +66 -40
  107. package/dist/index274.cjs +1 -1
  108. package/dist/index274.js +64 -15
  109. package/dist/index275.cjs +1 -1
  110. package/dist/index275.js +185 -12
  111. package/dist/index276.cjs +1 -1
  112. package/dist/index276.js +21 -11
  113. package/dist/index277.cjs +1 -2
  114. package/dist/index277.js +42 -18
  115. package/dist/index278.cjs +1 -1
  116. package/dist/index278.js +75 -13
  117. package/dist/index279.cjs +1 -1
  118. package/dist/index279.js +40 -11
  119. package/dist/index280.cjs +1 -1
  120. package/dist/index280.js +15 -102
  121. package/dist/index281.cjs +1 -1
  122. package/dist/index281.js +13 -6
  123. package/dist/index282.cjs +1 -1
  124. package/dist/index282.js +10 -222
  125. package/dist/index283.cjs +2 -1
  126. package/dist/index283.js +18 -6
  127. package/dist/index284.cjs +1 -1
  128. package/dist/index284.js +15 -7
  129. package/dist/index285.cjs +1 -1
  130. package/dist/index285.js +11 -26
  131. package/dist/index287.cjs +1 -1
  132. package/dist/index287.js +1 -1
  133. package/dist/index288.cjs +1 -1
  134. package/dist/index288.js +3 -139
  135. package/dist/index289.cjs +1 -1
  136. package/dist/index289.js +137 -39
  137. package/dist/index29.cjs +1 -1
  138. package/dist/index29.js +2 -2
  139. package/dist/index290.cjs +1 -1
  140. package/dist/index290.js +149 -72
  141. package/dist/index291.cjs +1 -1
  142. package/dist/index291.js +10 -2
  143. package/dist/index292.cjs +1 -1
  144. package/dist/index292.js +113 -3
  145. package/dist/index293.cjs +2 -1
  146. package/dist/index293.js +122 -128
  147. package/dist/index294.cjs +1 -1
  148. package/dist/index294.js +8 -152
  149. package/dist/index295.cjs +1 -1
  150. package/dist/index295.js +19 -9
  151. package/dist/index296.cjs +1 -1
  152. package/dist/index296.js +130 -104
  153. package/dist/index297.cjs +1 -2
  154. package/dist/index297.js +35 -127
  155. package/dist/index298.cjs +1 -1
  156. package/dist/index298.js +77 -10
  157. package/dist/index299.cjs +1 -1
  158. package/dist/index299.js +2 -20
  159. package/dist/index300.cjs +1 -1
  160. package/dist/index300.js +698 -68
  161. package/dist/index301.cjs +1 -1
  162. package/dist/index301.js +178 -675
  163. package/dist/index302.cjs +1 -1
  164. package/dist/index302.js +67 -200
  165. package/dist/index305.cjs +1 -1
  166. package/dist/index305.js +1 -1
  167. package/dist/index306.cjs +1 -1
  168. package/dist/index306.js +1 -1
  169. package/dist/index310.cjs +1 -1
  170. package/dist/index310.js +2 -2
  171. package/dist/index311.cjs +1 -1
  172. package/dist/index311.js +1 -1
  173. package/dist/index33.cjs +1 -1
  174. package/dist/index33.js +1 -1
  175. package/dist/index39.cjs +1 -1
  176. package/dist/index39.js +1 -1
  177. package/dist/index53.cjs +1 -1
  178. package/dist/index53.js +1 -1
  179. package/dist/index56.cjs +1 -1
  180. package/dist/index56.js +2 -2
  181. package/dist/index57.cjs +1 -1
  182. package/dist/index57.js +1 -1
  183. package/dist/index58.cjs +1 -1
  184. package/dist/index58.js +2 -2
  185. package/dist/index59.cjs +1 -1
  186. package/dist/index59.js +1 -1
  187. package/dist/index60.cjs +1 -1
  188. package/dist/index60.js +2 -2
  189. package/dist/index61.cjs +1 -1
  190. package/dist/index61.js +6 -6
  191. package/dist/index62.cjs +1 -1
  192. package/dist/index62.js +2 -2
  193. package/dist/index63.cjs +1 -1
  194. package/dist/index63.js +1 -1
  195. package/dist/index64.cjs +1 -1
  196. package/dist/index64.js +1 -1
  197. package/dist/index65.cjs +1 -1
  198. package/dist/index65.js +1 -1
  199. package/dist/index67.cjs +1 -1
  200. package/dist/index67.js +4 -4
  201. package/dist/index76.cjs +1 -1
  202. package/dist/index76.js +1 -1
  203. package/dist/index77.cjs +1 -1
  204. package/dist/index77.js +1 -1
  205. package/dist/index82.cjs +1 -1
  206. package/dist/index82.js +1 -1
  207. package/dist/index88.cjs +1 -1
  208. package/dist/index88.js +3 -3
  209. package/dist/index89.cjs +1 -1
  210. package/dist/index89.js +2 -2
  211. package/dist/index91.cjs +1 -1
  212. package/dist/index91.js +1 -1
  213. package/dist/index92.cjs +1 -1
  214. package/dist/index92.js +1 -1
  215. package/dist/index98.cjs +1 -1
  216. package/dist/index98.js +3 -3
  217. package/package.json +1 -1
package/dist/index63.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index249.cjs");async function o(e){const r=c.createFilterRequestScope(e,{method:"eth_newBlockFilter"}),t=await e.request({method:"eth_newBlockFilter"});return{id:t,request:r(t),type:"block"}}exports.createBlockFilter=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index242.cjs");async function o(e){const r=c.createFilterRequestScope(e,{method:"eth_newBlockFilter"}),t=await e.request({method:"eth_newBlockFilter"});return{id:t,request:r(t),type:"block"}}exports.createBlockFilter=o;
package/dist/index63.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createFilterRequestScope as r } from "./index249.js";
1
+ import { createFilterRequestScope as r } from "./index242.js";
2
2
  async function i(e) {
3
3
  const o = r(e, {
4
4
  method: "eth_newBlockFilter"
package/dist/index64.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index179.cjs"),u=require("./index153.cjs"),q=require("./index249.cjs");async function f(o,{address:d,args:s,event:e,events:p,fromBlock:n,strict:b,toBlock:i}={}){const r=p??(e?[e]:void 0),l=q.createFilterRequestScope(o,{method:"eth_newFilter"});let t=[];r&&(t=[r.flatMap(a=>m.encodeEventTopics({abi:[a],eventName:a.name,args:s}))],e&&(t=t[0]));const c=await o.request({method:"eth_newFilter",params:[{address:d,fromBlock:typeof n=="bigint"?u.numberToHex(n):n,toBlock:typeof i=="bigint"?u.numberToHex(i):i,...t.length?{topics:t}:{}}]});return{abi:r,args:s,eventName:e?e.name:void 0,fromBlock:n,id:c,request:l(c),strict:!!b,toBlock:i,type:"event"}}exports.createEventFilter=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index179.cjs"),u=require("./index153.cjs"),q=require("./index242.cjs");async function f(o,{address:d,args:s,event:e,events:p,fromBlock:n,strict:b,toBlock:i}={}){const r=p??(e?[e]:void 0),l=q.createFilterRequestScope(o,{method:"eth_newFilter"});let t=[];r&&(t=[r.flatMap(a=>m.encodeEventTopics({abi:[a],eventName:a.name,args:s}))],e&&(t=t[0]));const c=await o.request({method:"eth_newFilter",params:[{address:d,fromBlock:typeof n=="bigint"?u.numberToHex(n):n,toBlock:typeof i=="bigint"?u.numberToHex(i):i,...t.length?{topics:t}:{}}]});return{abi:r,args:s,eventName:e?e.name:void 0,fromBlock:n,id:c,request:l(c),strict:!!b,toBlock:i,type:"event"}}exports.createEventFilter=f;
package/dist/index64.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { encodeEventTopics as b } from "./index179.js";
2
2
  import { numberToHex as m } from "./index153.js";
3
- import { createFilterRequestScope as h } from "./index249.js";
3
+ import { createFilterRequestScope as h } from "./index242.js";
4
4
  async function l(r, { address: p, args: a, event: e, events: c, fromBlock: n, strict: f, toBlock: i } = {}) {
5
5
  const o = c ?? (e ? [e] : void 0), u = h(r, {
6
6
  method: "eth_newFilter"
package/dist/index65.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index249.cjs");async function i(e){const n=r.createFilterRequestScope(e,{method:"eth_newPendingTransactionFilter"}),t=await e.request({method:"eth_newPendingTransactionFilter"});return{id:t,request:n(t),type:"transaction"}}exports.createPendingTransactionFilter=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index242.cjs");async function i(e){const n=r.createFilterRequestScope(e,{method:"eth_newPendingTransactionFilter"}),t=await e.request({method:"eth_newPendingTransactionFilter"});return{id:t,request:n(t),type:"transaction"}}exports.createPendingTransactionFilter=i;
package/dist/index65.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createFilterRequestScope as r } from "./index249.js";
1
+ import { createFilterRequestScope as r } from "./index242.js";
2
2
  async function a(e) {
3
3
  const n = r(e, {
4
4
  method: "eth_newPendingTransactionFilter"
package/dist/index67.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./index48.cjs"),N=require("./index41.cjs"),_=require("./index250.cjs"),y=require("./index153.cjs"),I=require("./index251.cjs"),V=require("./index246.cjs"),j=require("./index187.cjs"),C=require("./index247.cjs"),M=require("./index200.cjs"),$=require("./index99.cjs"),D=require("./index69.cjs");async function J(r,n){var m,f,q;const{account:d=r.account}=n,e=d?L.parseAccount(d):void 0;try{let w=function(u){const{block:o,request:t,rpcStateOverride:s}=u;return r.request({method:"eth_estimateGas",params:s?[t,o??"latest",s]:o?[t,o]:[t]})};const{accessList:i,authorizationList:a,blobs:G,blobVersionedHashes:z,blockNumber:b,blockTag:H,data:l,gas:O,gasPrice:P,maxFeePerBlobGas:R,maxFeePerGas:T,maxPriorityFeePerGas:k,nonce:A,value:B,stateOverride:E,...c}=await $.prepareTransactionRequest(r,{...n,parameters:(e==null?void 0:e.type)==="local"?void 0:["blobVersionedHashes"]}),h=(typeof b=="bigint"?y.numberToHex(b):void 0)||H,p=C.serializeStateOverride(E),S=await(async()=>{if(c.to)return c.to;if(a&&a.length>0)return await _.recoverAuthorizationAddress({authorization:a[0]}).catch(()=>{throw new N.BaseError("`to` is required. Could not infer from `authorizationList`")})})();M.assertRequest(n);const v=(q=(f=(m=r.chain)==null?void 0:m.formatters)==null?void 0:f.transactionRequest)==null?void 0:q.format,g=(v||j.formatTransactionRequest)({...V.extract(c,{format:v}),from:e==null?void 0:e.address,accessList:i,authorizationList:a,blobs:G,blobVersionedHashes:z,data:l,gas:O,gasPrice:P,maxFeePerBlobGas:R,maxFeePerGas:T,maxPriorityFeePerGas:k,nonce:A,to:S,value:B});let x=BigInt(await w({block:h,request:g,rpcStateOverride:p}));if(a){const u=await D.getBalance(r,{address:g.from}),o=await Promise.all(a.map(async t=>{const{address:s}=t,F=await w({block:h,request:{authorizationList:void 0,data:l,from:e==null?void 0:e.address,to:s,value:y.numberToHex(u)},rpcStateOverride:p}).catch(()=>100000n);return 2n*BigInt(F)}));x+=o.reduce((t,s)=>t+s,0n)}return x}catch(i){throw I.getEstimateGasError(i,{...n,account:e,chain:r.chain})}}exports.estimateGas=J;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./index48.cjs"),N=require("./index41.cjs"),_=require("./index243.cjs"),y=require("./index153.cjs"),I=require("./index244.cjs"),V=require("./index239.cjs"),j=require("./index187.cjs"),C=require("./index240.cjs"),M=require("./index200.cjs"),$=require("./index99.cjs"),D=require("./index69.cjs");async function J(r,n){var m,f,q;const{account:d=r.account}=n,e=d?L.parseAccount(d):void 0;try{let w=function(u){const{block:o,request:t,rpcStateOverride:s}=u;return r.request({method:"eth_estimateGas",params:s?[t,o??"latest",s]:o?[t,o]:[t]})};const{accessList:i,authorizationList:a,blobs:G,blobVersionedHashes:z,blockNumber:b,blockTag:H,data:l,gas:O,gasPrice:P,maxFeePerBlobGas:R,maxFeePerGas:T,maxPriorityFeePerGas:k,nonce:A,value:B,stateOverride:E,...c}=await $.prepareTransactionRequest(r,{...n,parameters:(e==null?void 0:e.type)==="local"?void 0:["blobVersionedHashes"]}),h=(typeof b=="bigint"?y.numberToHex(b):void 0)||H,p=C.serializeStateOverride(E),S=await(async()=>{if(c.to)return c.to;if(a&&a.length>0)return await _.recoverAuthorizationAddress({authorization:a[0]}).catch(()=>{throw new N.BaseError("`to` is required. Could not infer from `authorizationList`")})})();M.assertRequest(n);const v=(q=(f=(m=r.chain)==null?void 0:m.formatters)==null?void 0:f.transactionRequest)==null?void 0:q.format,g=(v||j.formatTransactionRequest)({...V.extract(c,{format:v}),from:e==null?void 0:e.address,accessList:i,authorizationList:a,blobs:G,blobVersionedHashes:z,data:l,gas:O,gasPrice:P,maxFeePerBlobGas:R,maxFeePerGas:T,maxPriorityFeePerGas:k,nonce:A,to:S,value:B});let x=BigInt(await w({block:h,request:g,rpcStateOverride:p}));if(a){const u=await D.getBalance(r,{address:g.from}),o=await Promise.all(a.map(async t=>{const{address:s}=t,F=await w({block:h,request:{authorizationList:void 0,data:l,from:e==null?void 0:e.address,to:s,value:y.numberToHex(u)},rpcStateOverride:p}).catch(()=>100000n);return 2n*BigInt(F)}));x+=o.reduce((t,s)=>t+s,0n)}return x}catch(i){throw I.getEstimateGasError(i,{...n,account:e,chain:r.chain})}}exports.estimateGas=J;
package/dist/index67.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { parseAccount as N } from "./index48.js";
2
2
  import { BaseError as S } from "./index41.js";
3
- import { recoverAuthorizationAddress as _ } from "./index250.js";
3
+ import { recoverAuthorizationAddress as _ } from "./index243.js";
4
4
  import { numberToHex as G } from "./index153.js";
5
- import { getEstimateGasError as I } from "./index251.js";
6
- import { extract as V } from "./index246.js";
5
+ import { getEstimateGasError as I } from "./index244.js";
6
+ import { extract as V } from "./index239.js";
7
7
  import { formatTransactionRequest as C } from "./index187.js";
8
- import { serializeStateOverride as j } from "./index247.js";
8
+ import { serializeStateOverride as j } from "./index240.js";
9
9
  import { assertRequest as D } from "./index200.js";
10
10
  import { prepareTransactionRequest as J } from "./index99.js";
11
11
  import { getBalance as K } from "./index69.js";
package/dist/index76.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index252.cjs"),d=require("./index32.cjs"),f=require("./index36.cjs");async function g(a,i){const{address:n,factory:r,factoryData:o}=i;try{const[e,t,c,s,u,m,y]=await d.getAction(a,f.readContract,"readContract")({abi:l,address:n,functionName:"eip712Domain",factory:r,factoryData:o});return{domain:{name:t,version:c,chainId:Number(s),verifyingContract:u,salt:m},extensions:y,fields:e}}catch(e){const t=e;throw t.name==="ContractFunctionExecutionError"&&t.cause.name==="ContractFunctionZeroDataError"?new p.Eip712DomainNotFoundError({address:n}):t}}const l=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];exports.getEip712Domain=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index245.cjs"),d=require("./index32.cjs"),f=require("./index36.cjs");async function g(a,i){const{address:n,factory:r,factoryData:o}=i;try{const[e,t,c,s,u,m,y]=await d.getAction(a,f.readContract,"readContract")({abi:l,address:n,functionName:"eip712Domain",factory:r,factoryData:o});return{domain:{name:t,version:c,chainId:Number(s),verifyingContract:u,salt:m},extensions:y,fields:e}}catch(e){const t=e;throw t.name==="ContractFunctionExecutionError"&&t.cause.name==="ContractFunctionZeroDataError"?new p.Eip712DomainNotFoundError({address:n}):t}}const l=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];exports.getEip712Domain=g;
package/dist/index76.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Eip712DomainNotFoundError as u } from "./index252.js";
1
+ import { Eip712DomainNotFoundError as u } from "./index245.js";
2
2
  import { getAction as d } from "./index32.js";
3
3
  import { readContract as f } from "./index36.js";
4
4
  async function E(a, o) {
package/dist/index77.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index153.cjs"),a=require("./index253.cjs");async function y(r,{blockCount:i,blockNumber:e,blockTag:n="latest",rewardPercentiles:s}){const t=typeof e=="bigint"?o.numberToHex(e):void 0,u=await r.request({method:"eth_feeHistory",params:[o.numberToHex(i),t||n,s]},{dedupe:!!t});return a.formatFeeHistory(u)}exports.getFeeHistory=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index153.cjs"),a=require("./index246.cjs");async function y(r,{blockCount:i,blockNumber:e,blockTag:n="latest",rewardPercentiles:s}){const t=typeof e=="bigint"?o.numberToHex(e):void 0,u=await r.request({method:"eth_feeHistory",params:[o.numberToHex(i),t||n,s]},{dedupe:!!t});return a.formatFeeHistory(u)}exports.getFeeHistory=y;
package/dist/index77.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { numberToHex as o } from "./index153.js";
2
- import { formatFeeHistory as f } from "./index253.js";
2
+ import { formatFeeHistory as f } from "./index246.js";
3
3
  async function u(r, { blockCount: i, blockNumber: e, blockTag: n = "latest", rewardPercentiles: s }) {
4
4
  const t = typeof e == "bigint" ? o(e) : void 0, a = await r.request({
5
5
  method: "eth_feeHistory",
package/dist/index82.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index153.cjs"),u=require("./index258.cjs");async function i(o,{address:t,blockNumber:e,blockTag:r,storageKeys:n}){const a=r??"latest",c=e!==void 0?s.numberToHex(e):void 0,f=await o.request({method:"eth_getProof",params:[t,n,c||a]});return u.formatProof(f)}exports.getProof=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index153.cjs"),u=require("./index251.cjs");async function i(o,{address:t,blockNumber:e,blockTag:r,storageKeys:n}){const a=r??"latest",c=e!==void 0?s.numberToHex(e):void 0,f=await o.request({method:"eth_getProof",params:[t,n,c||a]});return u.formatProof(f)}exports.getProof=i;
package/dist/index82.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { numberToHex as c } from "./index153.js";
2
- import { formatProof as s } from "./index258.js";
2
+ import { formatProof as s } from "./index251.js";
3
3
  async function d(t, { address: e, blockNumber: o, blockTag: r, storageKeys: n }) {
4
4
  const f = r ?? "latest", a = o !== void 0 ? c(o) : void 0, m = await t.request({
5
5
  method: "eth_getProof",
package/dist/index88.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index243.cjs"),B=require("./index48.cjs"),D=require("./index125.cjs"),F=require("./index130.cjs"),C=require("./index146.cjs"),H=require("./index173.cjs"),A=require("./index180.cjs"),U=require("./index157.cjs"),j=require("./index153.cjs"),z=require("./index224.cjs"),I=require("./index254.cjs"),L=require("./index158.cjs"),M=require("./index160.cjs"),P=require("./index187.cjs"),V=require("./index247.cjs"),Z=require("./index200.cjs");async function _(v,x){const{blockNumber:q,blockTag:O="latest",blocks:m,returnFullTransactions:w,traceTransfers:N,validation:R}=x;try{const a=[];for(const t of m){const f=t.blockOverrides?y.toRpc(t.blockOverrides):void 0,r=t.calls.map(c=>{const e=c,o=e.account?B.parseAccount(e.account):void 0,i=e.abi?A.encodeFunctionData(e):e.data,s={...e,data:e.dataSuffix?U.concat([i||"0x",e.dataSuffix]):i,from:e.from??(o==null?void 0:o.address)};return Z.assertRequest(s),P.formatTransactionRequest(s)}),b=t.stateOverrides?V.serializeStateOverride(t.stateOverrides):void 0;a.push({blockOverrides:f,calls:r,stateOverrides:b})}const u=(typeof q=="bigint"?j.numberToHex(q):void 0)||O;return(await v.request({method:"eth_simulateV1",params:[{blockStateCalls:a,returnFullTransactions:w,traceTransfers:N,validation:R},u]})).map((t,f)=>({...L.formatBlock(t),calls:t.calls.map((r,b)=>{var g,k;const{abi:c,args:e,functionName:o,to:i}=m[f].calls[b],s=((g=r.error)==null?void 0:g.data)??r.returnData,E=BigInt(r.gasUsed),h=(k=r.logs)==null?void 0:k.map(n=>M.formatLog(n)),d=r.status==="0x1"?"success":"failure",S=c&&d==="success"&&s!=="0x"?H.decodeFunctionResult({abi:c,data:s,functionName:o}):null,T=(()=>{var p;if(d==="success")return;let n;if(((p=r.error)==null?void 0:p.data)==="0x"?n=new D.AbiDecodingZeroDataError:r.error&&(n=new F.RawContractError(r.error)),!!n)return z.getContractError(n,{abi:c??[],address:i??"0x",args:e,functionName:o??"<unknown>"})})();return{data:s,gasUsed:E,logs:h,status:d,...d==="success"?{result:S}:{error:T}}})}))}catch(a){const l=a,u=I.getNodeError(l,{});throw u instanceof C.UnknownNodeError?l:u}}exports.simulateBlocks=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index236.cjs"),B=require("./index48.cjs"),D=require("./index125.cjs"),F=require("./index130.cjs"),C=require("./index146.cjs"),H=require("./index173.cjs"),A=require("./index180.cjs"),U=require("./index157.cjs"),j=require("./index153.cjs"),z=require("./index224.cjs"),I=require("./index247.cjs"),L=require("./index158.cjs"),M=require("./index160.cjs"),P=require("./index187.cjs"),V=require("./index240.cjs"),Z=require("./index200.cjs");async function _(v,x){const{blockNumber:q,blockTag:O="latest",blocks:m,returnFullTransactions:w,traceTransfers:N,validation:R}=x;try{const a=[];for(const t of m){const f=t.blockOverrides?y.toRpc(t.blockOverrides):void 0,r=t.calls.map(c=>{const e=c,o=e.account?B.parseAccount(e.account):void 0,i=e.abi?A.encodeFunctionData(e):e.data,s={...e,data:e.dataSuffix?U.concat([i||"0x",e.dataSuffix]):i,from:e.from??(o==null?void 0:o.address)};return Z.assertRequest(s),P.formatTransactionRequest(s)}),b=t.stateOverrides?V.serializeStateOverride(t.stateOverrides):void 0;a.push({blockOverrides:f,calls:r,stateOverrides:b})}const u=(typeof q=="bigint"?j.numberToHex(q):void 0)||O;return(await v.request({method:"eth_simulateV1",params:[{blockStateCalls:a,returnFullTransactions:w,traceTransfers:N,validation:R},u]})).map((t,f)=>({...L.formatBlock(t),calls:t.calls.map((r,b)=>{var g,k;const{abi:c,args:e,functionName:o,to:i}=m[f].calls[b],s=((g=r.error)==null?void 0:g.data)??r.returnData,E=BigInt(r.gasUsed),h=(k=r.logs)==null?void 0:k.map(n=>M.formatLog(n)),d=r.status==="0x1"?"success":"failure",S=c&&d==="success"&&s!=="0x"?H.decodeFunctionResult({abi:c,data:s,functionName:o}):null,T=(()=>{var p;if(d==="success")return;let n;if(((p=r.error)==null?void 0:p.data)==="0x"?n=new D.AbiDecodingZeroDataError:r.error&&(n=new F.RawContractError(r.error)),!!n)return z.getContractError(n,{abi:c??[],address:i??"0x",args:e,functionName:o??"<unknown>"})})();return{data:s,gasUsed:E,logs:h,status:d,...d==="success"?{result:S}:{error:T}}})}))}catch(a){const l=a,u=I.getNodeError(l,{});throw u instanceof C.UnknownNodeError?l:u}}exports.simulateBlocks=_;
package/dist/index88.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toRpc as S } from "./index243.js";
1
+ import { toRpc as S } from "./index236.js";
2
2
  import { parseAccount as y } from "./index48.js";
3
3
  import { AbiDecodingZeroDataError as B } from "./index125.js";
4
4
  import { RawContractError as C } from "./index130.js";
@@ -8,11 +8,11 @@ import { encodeFunctionData as U } from "./index180.js";
8
8
  import { concat as A } from "./index157.js";
9
9
  import { numberToHex as z } from "./index153.js";
10
10
  import { getContractError as I } from "./index224.js";
11
- import { getNodeError as L } from "./index254.js";
11
+ import { getNodeError as L } from "./index247.js";
12
12
  import { formatBlock as V } from "./index158.js";
13
13
  import { formatLog as Z } from "./index160.js";
14
14
  import { formatTransactionRequest as _ } from "./index187.js";
15
- import { serializeStateOverride as j } from "./index247.js";
15
+ import { serializeStateOverride as j } from "./index240.js";
16
16
  import { assertRequest as G } from "./index200.js";
17
17
  async function ir(v, w) {
18
18
  const { blockNumber: p, blockTag: N = "latest", blocks: b, returnFullTransactions: O, traceTransfers: h, validation: E } = w;
package/dist/index89.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index255.cjs"),a=require("./index256.cjs"),K=require("./index48.cjs"),t=require("./index120.cjs"),Q=require("./index121.cjs"),W=require("./index41.cjs"),X=require("./index180.cjs"),Y=require("./index62.cjs"),Z=require("./index88.cjs"),v=require("./index185.cjs"),$="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function _(h,r){const{blockNumber:k,blockTag:C,calls:N,stateOverrides:q,traceAssetChanges:f,traceTransfers:T,validation:w}=r,n=r.account?K.parseAccount(r.account):void 0;if(f&&!n)throw new W.BaseError("`account` is required when `traceAssetChanges` is true");const B=n?z.encode(z.from("constructor(bytes, bytes)"),{bytecode:Q.deploylessCallViaBytecodeBytecode,args:[$,a.encodeData(a.from("function getBalance(address)"),[n.address])]}):void 0,c=f?await Promise.all(r.calls.map(async s=>{if(!s.data&&!s.abi)return;const{accessList:e}=await Y.createAccessList(h,{account:n.address,...s,data:s.abi?X.encodeFunctionData(s):s.data});return e.map(({address:o,storageKeys:d})=>d.length>0?o:null)})).then(s=>s.flat().filter(Boolean)):[],i=await Z.simulateBlocks(h,{blockNumber:k,blockTag:C,blocks:[...f?[{calls:[{data:B}],stateOverrides:q},{calls:c.map((s,e)=>({abi:[a.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[n.address],to:s,from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]}]:[],{calls:[...N,{}].map(s=>({...s,from:n==null?void 0:n.address})),stateOverrides:q},...f?[{calls:[{data:B}]},{calls:c.map((s,e)=>({abi:[a.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[n.address],to:s,from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:c.map((s,e)=>({to:s,abi:[a.from("function decimals() returns (uint256)")],functionName:"decimals",from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:c.map((s,e)=>({to:s,abi:[a.from("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:c.map((s,e)=>({to:s,abi:[a.from("function symbol() returns (string)")],functionName:"symbol",from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]}]:[]],traceTransfers:T,validation:w}),P=f?i[2]:i[0],[l,u,,b,m,g,A,p]=f?i:[],{calls:I,...D}=P,F=I.slice(0,-1)??[],L=(l==null?void 0:l.calls)??[],R=(u==null?void 0:u.calls)??[],U=[...L,...R].map(s=>s.status==="success"?v.hexToBigInt(s.data):null),E=(b==null?void 0:b.calls)??[],H=(m==null?void 0:m.calls)??[],S=[...E,...H].map(s=>s.status==="success"?v.hexToBigInt(s.data):null),j=((g==null?void 0:g.calls)??[]).map(s=>s.status==="success"?s.result:null),x=((p==null?void 0:p.calls)??[]).map(s=>s.status==="success"?s.result:null),M=((A==null?void 0:A.calls)??[]).map(s=>s.status==="success"?s.result:null),y=[];for(const[s,e]of S.entries()){const o=U[s];if(typeof e!="bigint"||typeof o!="bigint")continue;const d=j[s-1],V=x[s-1],G=M[s-1],O=s===0?{address:t.ethAddress,decimals:18,symbol:"ETH"}:{address:c[s-1],decimals:G||d?Number(d??1):void 0,symbol:V??void 0};y.some(J=>J.token.address===O.address)||y.push({token:O,value:{pre:o,post:e,diff:e-o}})}return{assetChanges:y,block:D,results:F}}exports.simulateCalls=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index248.cjs"),a=require("./index249.cjs"),K=require("./index48.cjs"),t=require("./index120.cjs"),Q=require("./index121.cjs"),W=require("./index41.cjs"),X=require("./index180.cjs"),Y=require("./index62.cjs"),Z=require("./index88.cjs"),v=require("./index185.cjs"),$="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function _(h,r){const{blockNumber:k,blockTag:C,calls:N,stateOverrides:q,traceAssetChanges:f,traceTransfers:T,validation:w}=r,n=r.account?K.parseAccount(r.account):void 0;if(f&&!n)throw new W.BaseError("`account` is required when `traceAssetChanges` is true");const B=n?z.encode(z.from("constructor(bytes, bytes)"),{bytecode:Q.deploylessCallViaBytecodeBytecode,args:[$,a.encodeData(a.from("function getBalance(address)"),[n.address])]}):void 0,c=f?await Promise.all(r.calls.map(async s=>{if(!s.data&&!s.abi)return;const{accessList:e}=await Y.createAccessList(h,{account:n.address,...s,data:s.abi?X.encodeFunctionData(s):s.data});return e.map(({address:o,storageKeys:d})=>d.length>0?o:null)})).then(s=>s.flat().filter(Boolean)):[],i=await Z.simulateBlocks(h,{blockNumber:k,blockTag:C,blocks:[...f?[{calls:[{data:B}],stateOverrides:q},{calls:c.map((s,e)=>({abi:[a.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[n.address],to:s,from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]}]:[],{calls:[...N,{}].map(s=>({...s,from:n==null?void 0:n.address})),stateOverrides:q},...f?[{calls:[{data:B}]},{calls:c.map((s,e)=>({abi:[a.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[n.address],to:s,from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:c.map((s,e)=>({to:s,abi:[a.from("function decimals() returns (uint256)")],functionName:"decimals",from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:c.map((s,e)=>({to:s,abi:[a.from("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]},{calls:c.map((s,e)=>({to:s,abi:[a.from("function symbol() returns (string)")],functionName:"symbol",from:t.zeroAddress,nonce:e})),stateOverrides:[{address:t.zeroAddress,nonce:0}]}]:[]],traceTransfers:T,validation:w}),P=f?i[2]:i[0],[l,u,,b,m,g,A,p]=f?i:[],{calls:I,...D}=P,F=I.slice(0,-1)??[],L=(l==null?void 0:l.calls)??[],R=(u==null?void 0:u.calls)??[],U=[...L,...R].map(s=>s.status==="success"?v.hexToBigInt(s.data):null),E=(b==null?void 0:b.calls)??[],H=(m==null?void 0:m.calls)??[],S=[...E,...H].map(s=>s.status==="success"?v.hexToBigInt(s.data):null),j=((g==null?void 0:g.calls)??[]).map(s=>s.status==="success"?s.result:null),x=((p==null?void 0:p.calls)??[]).map(s=>s.status==="success"?s.result:null),M=((A==null?void 0:A.calls)??[]).map(s=>s.status==="success"?s.result:null),y=[];for(const[s,e]of S.entries()){const o=U[s];if(typeof e!="bigint"||typeof o!="bigint")continue;const d=j[s-1],V=x[s-1],G=M[s-1],O=s===0?{address:t.ethAddress,decimals:18,symbol:"ETH"}:{address:c[s-1],decimals:G||d?Number(d??1):void 0,symbol:V??void 0};y.some(J=>J.token.address===O.address)||y.push({token:O,value:{pre:o,post:e,diff:e-o}})}return{assetChanges:y,block:D,results:F}}exports.simulateCalls=_;
package/dist/index89.js CHANGED
@@ -1,5 +1,5 @@
1
- import { encode as K, from as M } from "./index255.js";
2
- import { encodeData as Q, from as c } from "./index256.js";
1
+ import { encode as K, from as M } from "./index248.js";
2
+ import { encodeData as Q, from as c } from "./index249.js";
3
3
  import { parseAccount as S } from "./index48.js";
4
4
  import { zeroAddress as f, ethAddress as W } from "./index120.js";
5
5
  import { deploylessCallViaBytecodeBytecode as X } from "./index121.js";
package/dist/index91.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index226.cjs"),y=require("./index260.cjs");async function f(e,{address:s,message:a,factory:r,factoryData:t,signature:i,...o}){const c=n.hashMessage(a);return y.verifyHash(e,{address:s,factory:r,factoryData:t,hash:c,signature:i,...o})}exports.verifyMessage=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index226.cjs"),y=require("./index253.cjs");async function f(e,{address:s,message:a,factory:r,factoryData:t,signature:i,...o}){const c=n.hashMessage(a);return y.verifyHash(e,{address:s,factory:r,factoryData:t,hash:c,signature:i,...o})}exports.verifyMessage=f;
package/dist/index91.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { hashMessage as h } from "./index226.js";
2
- import { verifyHash as i } from "./index260.js";
2
+ import { verifyHash as i } from "./index253.js";
3
3
  async function m(r, { address: a, message: o, factory: s, factoryData: t, signature: e, ...f }) {
4
4
  const c = h(o);
5
5
  return i(r, {
package/dist/index92.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index190.cjs"),h=require("./index260.cjs");async function p(a,e){const{address:t,factory:r,factoryData:s,signature:y,message:o,primaryType:c,types:i,domain:n,...f}=e,d=u.hashTypedData({message:o,primaryType:c,types:i,domain:n});return h.verifyHash(a,{address:t,factory:r,factoryData:s,hash:d,signature:y,...f})}exports.verifyTypedData=p;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index190.cjs"),h=require("./index253.cjs");async function p(a,e){const{address:t,factory:r,factoryData:s,signature:y,message:o,primaryType:c,types:i,domain:n,...f}=e,d=u.hashTypedData({message:o,primaryType:c,types:i,domain:n});return h.verifyHash(a,{address:t,factory:r,factoryData:s,hash:d,signature:y,...f})}exports.verifyTypedData=p;
package/dist/index92.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { hashTypedData as m } from "./index190.js";
2
- import { verifyHash as d } from "./index260.js";
2
+ import { verifyHash as d } from "./index253.js";
3
3
  async function D(a, t) {
4
4
  const { address: r, factory: e, factoryData: o, signature: s, message: y, primaryType: c, types: f, domain: i, ...n } = t, p = m({ message: y, primaryType: c, types: f, domain: i });
5
5
  return d(a, {
package/dist/index98.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index226.cjs"),f=require("./index277.cjs"),h=require("./index278.cjs"),M=require("./index260.cjs");async function S(a,r){const{address:i,domain:t,message:s,nonce:n,scheme:d,signature:c,time:o=new Date,...g}=r,e=f.parseSiweMessage(s);if(!e.address||!h.validateSiweMessage({address:i,domain:t,message:e,nonce:n,scheme:d,time:o}))return!1;const u=l.hashMessage(s);return M.verifyHash(a,{address:e.address,hash:u,signature:c,...g})}exports.verifySiweMessage=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index226.cjs"),f=require("./index283.cjs"),h=require("./index284.cjs"),M=require("./index253.cjs");async function S(a,r){const{address:i,domain:t,message:s,nonce:n,scheme:d,signature:c,time:o=new Date,...g}=r,e=f.parseSiweMessage(s);if(!e.address||!h.validateSiweMessage({address:i,domain:t,message:e,nonce:n,scheme:d,time:o}))return!1;const u=l.hashMessage(s);return M.verifyHash(a,{address:e.address,hash:u,signature:c,...g})}exports.verifySiweMessage=S;
package/dist/index98.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { hashMessage as g } from "./index226.js";
2
- import { parseSiweMessage as l } from "./index277.js";
3
- import { validateSiweMessage as p } from "./index278.js";
4
- import { verifyHash as h } from "./index260.js";
2
+ import { parseSiweMessage as l } from "./index283.js";
3
+ import { validateSiweMessage as p } from "./index284.js";
4
+ import { verifyHash as h } from "./index253.js";
5
5
  async function S(a, r) {
6
6
  const { address: i, domain: t, message: s, nonce: o, scheme: n, signature: d, time: m = /* @__PURE__ */ new Date(), ...f } = r, e = l(s);
7
7
  if (!e.address || !p({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/utils",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "vite build",