@gardenfi/utils 3.0.0-beta.7 → 3.0.0-beta.8
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/index100.cjs +1 -2
- package/dist/index100.js +3 -121
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +18 -14
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +20 -24
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +33 -31
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +21 -42
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +8 -6
- package/dist/index106.cjs +4 -1
- package/dist/index106.js +193 -102
- package/dist/index107.cjs +3 -1
- package/dist/index107.js +451 -37
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +27 -8
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +160 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +22 -2
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +127 -75
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +38 -15
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +6 -151
- package/dist/index114.cjs +1 -20
- package/dist/index114.js +27 -326
- package/dist/index115.cjs +1 -3
- package/dist/index115.js +55 -451
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +42 -70
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +191 -16
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +4 -11
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +68 -120
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +20 -5
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +3 -46
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +15 -37
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +23 -6
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +11 -90
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +18 -14
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +34 -3
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +3 -27
- package/dist/index128.cjs +1 -2
- package/dist/index128.js +18 -24
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +27 -9
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +36 -8
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +8 -10
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +10 -11
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +24 -12
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +27 -20
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +3 -14
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +75 -4
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +9 -6
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +21 -18
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +8 -10
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +9 -57
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +11 -6
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +6 -13
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +6 -7
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +12 -137
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +32 -7
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +5 -22
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +36 -16
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +109 -41
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +170 -20
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +46 -77
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +32 -11
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +7 -13
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +17 -6
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +20 -41
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +32 -5
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +41 -32
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +22 -9
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +19 -58
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +50 -18
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +11 -105
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +24 -78
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +24 -9
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +101 -87
- package/dist/index164.cjs +1 -2
- package/dist/index164.js +3 -3
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +6 -9
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +30 -12
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +3 -4
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +18 -2
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +6 -32
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +8 -21
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +103 -5
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +80 -5
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -5
- package/dist/index174.cjs +1 -9
- package/dist/index174.js +6 -35
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +28 -3
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +33 -17
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +13 -20
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +16 -35
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +77 -7
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -8
- package/dist/index180.cjs +1 -4
- package/dist/index180.js +2 -195
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +14 -27
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +18 -161
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +170 -126
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +17 -27
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +10 -191
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +31 -4
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +2 -21
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +14 -3
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +12 -16
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +44 -31
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +12 -3
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +7 -27
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +68 -23
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +45 -27
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +37 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +17 -6
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +6 -32
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +10 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +13 -37
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +13 -49
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +8 -32
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +34 -16
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +16 -42
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +29 -104
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +15 -3
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +6 -5
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +103 -3
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +73 -15
- package/dist/index209.cjs +2 -1
- package/dist/index209.js +24 -8
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +25 -5
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +18 -27
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +15 -78
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +6 -2
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +13 -18
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +10 -17
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +16 -10
- package/dist/index217.cjs +2 -1
- package/dist/index217.js +40 -102
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +2 -17
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +5 -214
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +9 -9
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +10 -42
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +18 -107
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +8 -78
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +67 -2
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +65 -24
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +184 -42
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +28 -9
- package/dist/index227.cjs +1 -2
- package/dist/index227.js +59 -24
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +41 -2
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +16 -5
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +12 -9
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +11 -19
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +12 -8
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +20 -67
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +106 -63
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +99 -184
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +6 -28
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +7 -77
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +25 -39
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +16 -16
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +213 -12
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +24 -11
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +47 -13
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -19
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +206 -6
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +43 -7
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +74 -22
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +2 -12
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +11 -19
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +18 -656
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -2
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +68 -206
- package/dist/index251.cjs +2 -1
- package/dist/index251.js +88 -174
- package/dist/index252.cjs +1 -2
- package/dist/index252.js +14 -91
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +657 -14
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +176 -67
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +5 -5
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +3 -3
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +7 -13
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +31 -34
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +27 -30
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +16 -55
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +31 -43
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +41 -22
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +151 -6
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +41 -18
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +57 -14
- package/dist/index38.cjs +2 -1
- package/dist/index38.js +59 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +13 -13
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +37 -10
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +15 -12
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -11
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +20 -3
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -22
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +45 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +33 -3
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +3 -16
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +9 -5
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +60 -171
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +75 -101
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +7 -171
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +15 -110
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +10 -30
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +6 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +15 -4
- package/dist/index56.cjs +1 -2
- package/dist/index56.js +3 -59
- package/dist/index57.cjs +1 -2
- package/dist/index57.js +25 -53
- package/dist/index58.cjs +1 -3
- package/dist/index58.js +159 -210
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +4 -23
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +6 -18
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +90 -10
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +10 -20
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +6 -13
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +13 -12
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +125 -24
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +136 -26
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -47
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +21 -16
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +17 -11
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +39 -27
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +21 -36
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +11 -7
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +6 -29
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +5 -22
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +19 -7
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +106 -70
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +76 -44
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +6 -20
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +27 -36
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +13 -9
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +90 -17
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +4 -7
- package/dist/index82.cjs +2 -1
- package/dist/index82.js +3 -10
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +9 -14
- package/dist/index84.cjs +20 -1
- package/dist/index84.js +324 -162
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +13 -77
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +4 -13
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +12 -51
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +2 -8
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +1 -1
- package/dist/index90.cjs +2 -1
- package/dist/index90.js +54 -21
- package/dist/index91.cjs +3 -1
- package/dist/index91.js +215 -8
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +32 -32
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +21 -16
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +5 -73
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +72 -34
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +5 -16
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +5 -75
- package/dist/index98.cjs +9 -1
- package/dist/index98.js +35 -12
- package/dist/index99.cjs +2 -1
- package/dist/index99.js +119 -28
- package/package.json +1 -1
package/dist/index187.js
CHANGED
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
class i extends o {
|
|
3
|
-
constructor({ offset: e }) {
|
|
4
|
-
super(`Offset \`${e}\` cannot be negative.`, {
|
|
5
|
-
name: "NegativeOffsetError"
|
|
6
|
-
});
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
class n extends o {
|
|
10
|
-
constructor({ length: e, position: r }) {
|
|
11
|
-
super(`Position \`${r}\` is out of bounds (\`0 < position < ${e}\`).`, { name: "PositionOutOfBoundsError" });
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
class c extends o {
|
|
15
|
-
constructor({ count: e, limit: r }) {
|
|
16
|
-
super(`Recursive read limit of \`${r}\` exceeded (recursive read count: \`${e}\`).`, { name: "RecursiveReadLimitExceededError" });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
const a = "0x82ad56cb";
|
|
19
2
|
export {
|
|
20
|
-
|
|
21
|
-
n as PositionOutOfBoundsError,
|
|
22
|
-
c as RecursiveReadLimitExceededError
|
|
3
|
+
a as aggregate3Signature
|
|
23
4
|
};
|
package/dist/index188.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index91.cjs"),u=require("./index106.cjs"),i=require("./index241.cjs");function l(r,{docsPath:t,...e}){const n=(()=>{const o=i.getNodeError(r,e);return o instanceof u.UnknownNodeError?r:o})();return new c.CallExecutionError(n,{docsPath:t,...e})}exports.getCallError=l;
|
package/dist/index188.js
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { CallExecutionError as c } from "./index91.js";
|
|
2
|
+
import { UnknownNodeError as i } from "./index106.js";
|
|
3
|
+
import { getNodeError as u } from "./index241.js";
|
|
4
|
+
function a(r, { docsPath: t, ...o }) {
|
|
5
|
+
const e = (() => {
|
|
6
|
+
const n = u(r, o);
|
|
7
|
+
return n instanceof i ? r : n;
|
|
8
|
+
})();
|
|
9
|
+
return new c(e, {
|
|
10
|
+
docsPath: t,
|
|
11
|
+
...o
|
|
12
|
+
});
|
|
13
|
+
}
|
|
3
14
|
export {
|
|
4
|
-
|
|
15
|
+
a as getCallError
|
|
5
16
|
};
|
package/dist/index189.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function y(c,{format:n}){if(!n)return{};const r={};function i(e){const s=Object.keys(e);for(const t of s)t in c&&(r[t]=c[t]),e[t]&&typeof e[t]=="object"&&!Array.isArray(e[t])&&i(e[t])}const o=n(c||{});return i(o),r}exports.extract=y;
|
package/dist/index189.js
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return {
|
|
13
|
-
functionName: t.name,
|
|
14
|
-
args: "inputs" in t && t.inputs && t.inputs.length > 0 ? m(t.inputs, r(o, 4)) : void 0
|
|
15
|
-
};
|
|
1
|
+
function y(t, { format: r }) {
|
|
2
|
+
if (!r)
|
|
3
|
+
return {};
|
|
4
|
+
const e = {};
|
|
5
|
+
function i(c) {
|
|
6
|
+
const s = Object.keys(c);
|
|
7
|
+
for (const n of s)
|
|
8
|
+
n in t && (e[n] = t[n]), c[n] && typeof c[n] == "object" && !Array.isArray(c[n]) && i(c[n]);
|
|
9
|
+
}
|
|
10
|
+
const o = r(t || {});
|
|
11
|
+
return i(o), e;
|
|
16
12
|
}
|
|
17
13
|
export {
|
|
18
|
-
|
|
14
|
+
y as extract
|
|
19
15
|
};
|
package/dist/index190.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index87.cjs"),a=require("./index101.cjs"),f=require("./index98.cjs"),S=require("./index124.cjs"),c=require("./index116.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/index190.js
CHANGED
|
@@ -1,37 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { InvalidAddressError as a } from "./index87.js";
|
|
2
|
+
import { InvalidBytesLengthError as d } from "./index101.js";
|
|
3
|
+
import { AccountStateConflictError as u, StateAssignmentConflictError as h } from "./index98.js";
|
|
4
|
+
import { isAddress as l } from "./index124.js";
|
|
5
|
+
import { numberToHex as c } from "./index116.js";
|
|
6
|
+
function s(r) {
|
|
7
|
+
if (!(!r || r.length === 0))
|
|
8
|
+
return r.reduce((t, { slot: e, value: n }) => {
|
|
9
|
+
if (e.length !== 66)
|
|
10
|
+
throw new d({
|
|
11
|
+
size: e.length,
|
|
12
|
+
targetSize: 66,
|
|
13
|
+
type: "hex"
|
|
14
|
+
});
|
|
15
|
+
if (n.length !== 66)
|
|
16
|
+
throw new d({
|
|
17
|
+
size: n.length,
|
|
18
|
+
targetSize: 66,
|
|
19
|
+
type: "hex"
|
|
20
|
+
});
|
|
21
|
+
return t[e] = n, t;
|
|
22
|
+
}, {});
|
|
4
23
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
type: "hex"
|
|
14
|
-
});
|
|
15
|
-
return `0x${e[r === "right" ? "padEnd" : "padStart"](t * 2, "0")}`;
|
|
24
|
+
function m(r) {
|
|
25
|
+
const { balance: t, nonce: e, state: n, stateDiff: o, code: f } = r, i = {};
|
|
26
|
+
if (f !== void 0 && (i.code = f), t !== void 0 && (i.balance = c(t)), e !== void 0 && (i.nonce = c(e)), n !== void 0 && (i.state = s(n)), o !== void 0) {
|
|
27
|
+
if (i.state)
|
|
28
|
+
throw new h();
|
|
29
|
+
i.stateDiff = s(o);
|
|
30
|
+
}
|
|
31
|
+
return i;
|
|
16
32
|
}
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
for (let a = 0; a < t; a++) {
|
|
28
|
-
const o = r === "right";
|
|
29
|
-
e[o ? a : t - a - 1] = n[o ? a : n.length - a - 1];
|
|
33
|
+
function A(r) {
|
|
34
|
+
if (!r)
|
|
35
|
+
return;
|
|
36
|
+
const t = {};
|
|
37
|
+
for (const { address: e, ...n } of r) {
|
|
38
|
+
if (!l(e, { strict: !1 }))
|
|
39
|
+
throw new a({ address: e });
|
|
40
|
+
if (t[e])
|
|
41
|
+
throw new u({ address: e });
|
|
42
|
+
t[e] = m(n);
|
|
30
43
|
}
|
|
31
|
-
return
|
|
44
|
+
return t;
|
|
32
45
|
}
|
|
33
46
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
47
|
+
m as serializeAccountStateOverride,
|
|
48
|
+
s as serializeStateMapping,
|
|
49
|
+
A as serializeStateOverride
|
|
37
50
|
};
|
package/dist/index191.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index223.cjs"),c=require("./index224.cjs"),o=require("./index225.cjs");function a(t){const n=c.parseStructs(t),r=[],i=t.length;for(let e=0;e<i;e++){const s=t[e];u.isStructSignature(s)||r.push(o.parseSignature(s,n))}return r}exports.parseAbi=a;
|
package/dist/index191.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { isStructSignature as c } from "./index223.js";
|
|
2
|
+
import { parseStructs as s } from "./index224.js";
|
|
3
|
+
import { parseSignature as p } from "./index225.js";
|
|
4
|
+
function a(t) {
|
|
5
|
+
const i = s(t), o = [], e = t.length;
|
|
6
|
+
for (let r = 0; r < e; r++) {
|
|
7
|
+
const n = t[r];
|
|
8
|
+
c(n) || o.push(p(n, i));
|
|
9
|
+
}
|
|
10
|
+
return o;
|
|
11
|
+
}
|
|
2
12
|
export {
|
|
3
|
-
|
|
4
|
-
t as integerRegex
|
|
13
|
+
a as parseAbi
|
|
5
14
|
};
|
package/dist/index192.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function p(e,{method:u}){var s,o;const r={};return e.transport.type==="fallback"&&((o=(s=e.transport).onResponse)==null||o.call(s,({method:t,response:a,status:c,transport:n})=>{c==="success"&&u===t&&(r[a]=n.request)})),t=>r[t]||e.request}exports.createFilterRequestScope=p;
|
package/dist/index192.js
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const e = "/docs/contract/encodeErrorResult";
|
|
8
|
-
function F(a) {
|
|
9
|
-
const { abi: n, errorName: t, args: o } = a;
|
|
10
|
-
let r = n[0];
|
|
11
|
-
if (t) {
|
|
12
|
-
const m = w({ abi: n, args: o, name: t });
|
|
13
|
-
if (!m)
|
|
14
|
-
throw new c(t, { docsPath: e });
|
|
15
|
-
r = m;
|
|
16
|
-
}
|
|
17
|
-
if (r.type !== "error")
|
|
18
|
-
throw new c(void 0, { docsPath: e });
|
|
19
|
-
const f = l(r), s = p(f);
|
|
20
|
-
let i = "0x";
|
|
21
|
-
if (o && o.length > 0) {
|
|
22
|
-
if (!r.inputs)
|
|
23
|
-
throw new u(r.name, { docsPath: e });
|
|
24
|
-
i = b(r.inputs, o);
|
|
25
|
-
}
|
|
26
|
-
return d([s, i]);
|
|
1
|
+
function c(e, { method: p }) {
|
|
2
|
+
var r, o;
|
|
3
|
+
const t = {};
|
|
4
|
+
return e.transport.type === "fallback" && ((o = (r = e.transport).onResponse) == null || o.call(r, ({ method: s, response: n, status: u, transport: a }) => {
|
|
5
|
+
u === "success" && p === s && (t[n] = a.request);
|
|
6
|
+
})), (s) => t[s] || e.request;
|
|
27
7
|
}
|
|
28
8
|
export {
|
|
29
|
-
|
|
9
|
+
c as createFilterRequestScope
|
|
30
10
|
};
|
package/dist/index193.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./index47.cjs"),P=require("./index38.cjs"),E=require("./index198.cjs"),F=require("./index116.cjs"),S=require("./index199.cjs"),B=require("./index189.cjs"),N=require("./index162.cjs"),_=require("./index190.cjs"),g=require("./index178.cjs"),V=require("./index58.cjs");async function j(t,e){var u,m,d;const{account:c=t.account,prepare:o=!0}=e,r=c?O.parseAccount(c):void 0,q=(()=>{if(Array.isArray(o))return o;if((r==null?void 0:r.type)!=="local")return["blobVersionedHashes"]})();try{const a=await(async()=>{if(e.to)return e.to;if(e.authorizationList&&e.authorizationList.length>0)return await E.recoverAuthorizationAddress({authorization:e.authorizationList[0]}).catch(()=>{throw new P.BaseError("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:l,authorizationList:p,blobs:x,blobVersionedHashes:y,blockNumber:b,blockTag:v,data:z,gas:s,gasPrice:G,maxFeePerBlobGas:A,maxFeePerGas:w,maxPriorityFeePerGas:R,nonce:T,value:k,stateOverride:H,...L}=o?await V.prepareTransactionRequest(t,{...e,parameters:q,to:a}):e;if(s&&e.gas!==s)return s;const i=(typeof b=="bigint"?F.numberToHex(b):void 0)||v,h=_.serializeStateOverride(H);g.assertRequest(e);const f=(d=(m=(u=t.chain)==null?void 0:u.formatters)==null?void 0:m.transactionRequest)==null?void 0:d.format,n=(f||N.formatTransactionRequest)({...B.extract(L,{format:f}),account:r,accessList:l,authorizationList:p,blobs:x,blobVersionedHashes:y,data:z,gasPrice:G,maxFeePerBlobGas:A,maxFeePerGas:w,maxPriorityFeePerGas:R,nonce:T,to:a,value:k},"estimateGas");return BigInt(await t.request({method:"eth_estimateGas",params:h?[n,i??t.experimental_blockTag??"latest",h]:i?[n,i]:[n]}))}catch(a){throw S.getEstimateGasError(a,{...e,account:r,chain:t.chain})}}exports.estimateGas=j;
|
package/dist/index193.js
CHANGED
|
@@ -1,28 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { parseAccount as F } from "./index47.js";
|
|
2
|
+
import { BaseError as R } from "./index38.js";
|
|
3
|
+
import { recoverAuthorizationAddress as B } from "./index198.js";
|
|
4
|
+
import { numberToHex as E } from "./index116.js";
|
|
5
|
+
import { getEstimateGasError as N } from "./index199.js";
|
|
6
|
+
import { extract as O } from "./index189.js";
|
|
7
|
+
import { formatTransactionRequest as _ } from "./index162.js";
|
|
8
|
+
import { serializeStateOverride as S } from "./index190.js";
|
|
9
|
+
import { assertRequest as V } from "./index178.js";
|
|
10
|
+
import { prepareTransactionRequest as C } from "./index58.js";
|
|
11
|
+
async function $(r, t) {
|
|
12
|
+
var c, u, f;
|
|
13
|
+
const { account: m = r.account, prepare: a = !0 } = t, e = m ? F(m) : void 0, b = (() => {
|
|
14
|
+
if (Array.isArray(a))
|
|
15
|
+
return a;
|
|
16
|
+
if ((e == null ? void 0 : e.type) !== "local")
|
|
17
|
+
return ["blobVersionedHashes"];
|
|
18
|
+
})();
|
|
19
|
+
try {
|
|
20
|
+
const o = await (async () => {
|
|
21
|
+
if (t.to)
|
|
22
|
+
return t.to;
|
|
23
|
+
if (t.authorizationList && t.authorizationList.length > 0)
|
|
24
|
+
return await B({
|
|
25
|
+
authorization: t.authorizationList[0]
|
|
26
|
+
}).catch(() => {
|
|
27
|
+
throw new R("`to` is required. Could not infer from `authorizationList`");
|
|
28
|
+
});
|
|
29
|
+
})(), { accessList: l, authorizationList: x, blobs: y, blobVersionedHashes: z, blockNumber: p, blockTag: q, data: w, gas: i, gasPrice: G, maxFeePerBlobGas: k, maxFeePerGas: L, maxPriorityFeePerGas: v, nonce: A, value: H, stateOverride: P, ...T } = a ? await C(r, {
|
|
30
|
+
...t,
|
|
31
|
+
parameters: b,
|
|
32
|
+
to: o
|
|
33
|
+
}) : t;
|
|
34
|
+
if (i && t.gas !== i)
|
|
35
|
+
return i;
|
|
36
|
+
const n = (typeof p == "bigint" ? E(p) : void 0) || q, h = S(P);
|
|
37
|
+
V(t);
|
|
38
|
+
const d = (f = (u = (c = r.chain) == null ? void 0 : c.formatters) == null ? void 0 : u.transactionRequest) == null ? void 0 : f.format, s = (d || _)({
|
|
39
|
+
// Pick out extra data that might exist on the chain's transaction request type.
|
|
40
|
+
...O(T, { format: d }),
|
|
41
|
+
account: e,
|
|
42
|
+
accessList: l,
|
|
43
|
+
authorizationList: x,
|
|
44
|
+
blobs: y,
|
|
45
|
+
blobVersionedHashes: z,
|
|
46
|
+
data: w,
|
|
47
|
+
gasPrice: G,
|
|
48
|
+
maxFeePerBlobGas: k,
|
|
49
|
+
maxFeePerGas: L,
|
|
50
|
+
maxPriorityFeePerGas: v,
|
|
51
|
+
nonce: A,
|
|
52
|
+
to: o,
|
|
53
|
+
value: H
|
|
54
|
+
}, "estimateGas");
|
|
55
|
+
return BigInt(await r.request({
|
|
56
|
+
method: "eth_estimateGas",
|
|
57
|
+
params: h ? [
|
|
58
|
+
s,
|
|
59
|
+
n ?? r.experimental_blockTag ?? "latest",
|
|
60
|
+
h
|
|
61
|
+
] : n ? [s, n] : [s]
|
|
62
|
+
}));
|
|
63
|
+
} catch (o) {
|
|
64
|
+
throw N(o, {
|
|
65
|
+
...t,
|
|
66
|
+
account: e,
|
|
67
|
+
chain: r.chain
|
|
14
68
|
});
|
|
15
|
-
if (!e)
|
|
16
|
-
throw new i(o, { docsPath: r });
|
|
17
|
-
t = e;
|
|
18
69
|
}
|
|
19
|
-
if (t.type !== "function")
|
|
20
|
-
throw new i(void 0, { docsPath: r });
|
|
21
|
-
return {
|
|
22
|
-
abi: [t],
|
|
23
|
-
functionName: a(f(t))
|
|
24
|
-
};
|
|
25
70
|
}
|
|
26
71
|
export {
|
|
27
|
-
|
|
72
|
+
$ as estimateGas
|
|
28
73
|
};
|
package/dist/index194.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index104.cjs"),u=require("./index29.cjs"),b=require("./index195.cjs"),m=require("./index196.cjs"),p=require("./index197.cjs");async function y(i,G){var f,F;const{block:s,chain:t=i.chain,request:e,type:l="eip1559"}=G||{},o=await(async()=>{var r,a;return typeof((r=t==null?void 0:t.fees)==null?void 0:r.baseFeeMultiplier)=="function"?t.fees.baseFeeMultiplier({block:s,client:i,request:e}):((a=t==null?void 0:t.fees)==null?void 0:a.baseFeeMultiplier)??1.2})();if(o<1)throw new g.BaseFeeScalarError;const P=10**(((f=o.toString().split(".")[1])==null?void 0:f.length)??0),n=r=>r*BigInt(Math.ceil(o*P))/BigInt(P),c=s||await u.getAction(i,m.getBlock,"getBlock")({});if(typeof((F=t==null?void 0:t.fees)==null?void 0:F.estimateFeesPerGas)=="function"){const r=await t.fees.estimateFeesPerGas({block:s,client:i,multiply:n,request:e,type:l});if(r!==null)return r}if(l==="eip1559"){if(typeof c.baseFeePerGas!="bigint")throw new g.Eip1559FeesNotSupportedError;const r=typeof(e==null?void 0:e.maxPriorityFeePerGas)=="bigint"?e.maxPriorityFeePerGas:await b.internal_estimateMaxPriorityFeePerGas(i,{block:c,chain:t,request:e}),a=n(c.baseFeePerGas);return{maxFeePerGas:(e==null?void 0:e.maxFeePerGas)??a+r,maxPriorityFeePerGas:r}}return{gasPrice:(e==null?void 0:e.gasPrice)??n(await u.getAction(i,p.getGasPrice,"getGasPrice")({}))}}exports.internal_estimateFeesPerGas=y;
|
package/dist/index194.js
CHANGED
|
@@ -1,31 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
throw new i(void 0, { docsPath: r });
|
|
16
|
-
if (!t.outputs)
|
|
17
|
-
throw new a(t.name, { docsPath: r });
|
|
18
|
-
const s = (() => {
|
|
19
|
-
if (t.outputs.length === 0)
|
|
20
|
-
return [];
|
|
21
|
-
if (t.outputs.length === 1)
|
|
22
|
-
return [n];
|
|
23
|
-
if (Array.isArray(n))
|
|
24
|
-
return n;
|
|
25
|
-
throw new f(n);
|
|
1
|
+
import { BaseFeeScalarError as b, Eip1559FeesNotSupportedError as G } from "./index104.js";
|
|
2
|
+
import { getAction as P } from "./index29.js";
|
|
3
|
+
import { internal_estimateMaxPriorityFeePerGas as g } from "./index195.js";
|
|
4
|
+
import { getBlock as y } from "./index196.js";
|
|
5
|
+
import { getGasPrice as u } from "./index197.js";
|
|
6
|
+
async function _(i, F) {
|
|
7
|
+
var l, p;
|
|
8
|
+
const { block: a, chain: t = i.chain, request: e, type: f = "eip1559" } = F || {}, s = await (async () => {
|
|
9
|
+
var r, o;
|
|
10
|
+
return typeof ((r = t == null ? void 0 : t.fees) == null ? void 0 : r.baseFeeMultiplier) == "function" ? t.fees.baseFeeMultiplier({
|
|
11
|
+
block: a,
|
|
12
|
+
client: i,
|
|
13
|
+
request: e
|
|
14
|
+
}) : ((o = t == null ? void 0 : t.fees) == null ? void 0 : o.baseFeeMultiplier) ?? 1.2;
|
|
26
15
|
})();
|
|
27
|
-
|
|
16
|
+
if (s < 1)
|
|
17
|
+
throw new b();
|
|
18
|
+
const m = 10 ** (((l = s.toString().split(".")[1]) == null ? void 0 : l.length) ?? 0), n = (r) => r * BigInt(Math.ceil(s * m)) / BigInt(m), c = a || await P(i, y, "getBlock")({});
|
|
19
|
+
if (typeof ((p = t == null ? void 0 : t.fees) == null ? void 0 : p.estimateFeesPerGas) == "function") {
|
|
20
|
+
const r = await t.fees.estimateFeesPerGas({
|
|
21
|
+
block: a,
|
|
22
|
+
client: i,
|
|
23
|
+
multiply: n,
|
|
24
|
+
request: e,
|
|
25
|
+
type: f
|
|
26
|
+
});
|
|
27
|
+
if (r !== null)
|
|
28
|
+
return r;
|
|
29
|
+
}
|
|
30
|
+
if (f === "eip1559") {
|
|
31
|
+
if (typeof c.baseFeePerGas != "bigint")
|
|
32
|
+
throw new G();
|
|
33
|
+
const r = typeof (e == null ? void 0 : e.maxPriorityFeePerGas) == "bigint" ? e.maxPriorityFeePerGas : await g(i, {
|
|
34
|
+
block: c,
|
|
35
|
+
chain: t,
|
|
36
|
+
request: e
|
|
37
|
+
}), o = n(c.baseFeePerGas);
|
|
38
|
+
return {
|
|
39
|
+
maxFeePerGas: (e == null ? void 0 : e.maxFeePerGas) ?? o + r,
|
|
40
|
+
maxPriorityFeePerGas: r
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
gasPrice: (e == null ? void 0 : e.gasPrice) ?? n(await P(i, u, "getGasPrice")({}))
|
|
45
|
+
};
|
|
28
46
|
}
|
|
29
47
|
export {
|
|
30
|
-
|
|
48
|
+
_ as internal_estimateFeesPerGas
|
|
31
49
|
};
|
package/dist/index195.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index104.cjs"),l=require("./index155.cjs"),a=require("./index29.cjs"),u=require("./index196.cjs"),m=require("./index197.cjs");async function G(r,f){var n,c;const{block:i,chain:t=r.chain,request:g}=f||{};try{const e=((n=t==null?void 0:t.fees)==null?void 0:n.maxPriorityFeePerGas)??((c=t==null?void 0:t.fees)==null?void 0:c.defaultPriorityFee);if(typeof e=="function"){const o=i||await a.getAction(r,u.getBlock,"getBlock")({}),P=await e({block:o,client:r,request:g});if(P===null)throw new Error;return P}if(typeof e<"u")return e;const s=await r.request({method:"eth_maxPriorityFeePerGas"});return l.hexToBigInt(s)}catch{const[e,s]=await Promise.all([i?Promise.resolve(i):a.getAction(r,u.getBlock,"getBlock")({}),a.getAction(r,m.getGasPrice,"getGasPrice")({})]);if(typeof e.baseFeePerGas!="bigint")throw new y.Eip1559FeesNotSupportedError;const o=s-e.baseFeePerGas;return o<0n?0n:o}}exports.internal_estimateMaxPriorityFeePerGas=G;
|
package/dist/index195.js
CHANGED
|
@@ -1,9 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Eip1559FeesNotSupportedError as y } from "./index104.js";
|
|
2
|
+
import { hexToBigInt as p } from "./index155.js";
|
|
3
|
+
import { getAction as s } from "./index29.js";
|
|
4
|
+
import { getBlock as f } from "./index196.js";
|
|
5
|
+
import { getGasPrice as F } from "./index197.js";
|
|
6
|
+
async function b(r, c) {
|
|
7
|
+
var n, P;
|
|
8
|
+
const { block: i, chain: t = r.chain, request: u } = c || {};
|
|
9
|
+
try {
|
|
10
|
+
const e = ((n = t == null ? void 0 : t.fees) == null ? void 0 : n.maxPriorityFeePerGas) ?? ((P = t == null ? void 0 : t.fees) == null ? void 0 : P.defaultPriorityFee);
|
|
11
|
+
if (typeof e == "function") {
|
|
12
|
+
const o = i || await s(r, f, "getBlock")({}), m = await e({
|
|
13
|
+
block: o,
|
|
14
|
+
client: r,
|
|
15
|
+
request: u
|
|
16
|
+
});
|
|
17
|
+
if (m === null)
|
|
18
|
+
throw new Error();
|
|
19
|
+
return m;
|
|
20
|
+
}
|
|
21
|
+
if (typeof e < "u")
|
|
22
|
+
return e;
|
|
23
|
+
const a = await r.request({
|
|
24
|
+
method: "eth_maxPriorityFeePerGas"
|
|
25
|
+
});
|
|
26
|
+
return p(a);
|
|
27
|
+
} catch {
|
|
28
|
+
const [e, a] = await Promise.all([
|
|
29
|
+
i ? Promise.resolve(i) : s(r, f, "getBlock")({}),
|
|
30
|
+
s(r, F, "getGasPrice")({})
|
|
31
|
+
]);
|
|
32
|
+
if (typeof e.baseFeePerGas != "bigint")
|
|
33
|
+
throw new y();
|
|
34
|
+
const o = a - e.baseFeePerGas;
|
|
35
|
+
return o < 0n ? 0n : o;
|
|
36
|
+
}
|
|
6
37
|
}
|
|
7
38
|
export {
|
|
8
|
-
|
|
39
|
+
b as internal_estimateMaxPriorityFeePerGas
|
|
9
40
|
};
|
package/dist/index196.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index89.cjs"),f=require("./index116.cjs"),m=require("./index158.cjs");async function B(e,{blockHash:o,blockNumber:r,blockTag:l=e.experimental_blockTag??"latest",includeTransactions:i}={}){var c,s,u;const n=i??!1,a=r!==void 0?f.numberToHex(r):void 0;let t=null;if(o?t=await e.request({method:"eth_getBlockByHash",params:[o,n]},{dedupe:!0}):t=await e.request({method:"eth_getBlockByNumber",params:[a||l,n]},{dedupe:!!a}),!t)throw new d.BlockNotFoundError({blockHash:o,blockNumber:r});return(((u=(s=(c=e.chain)==null?void 0:c.formatters)==null?void 0:s.block)==null?void 0:u.format)||m.formatBlock)(t,"getBlock")}exports.getBlock=B;
|
package/dist/index196.js
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
5
|
-
|
|
1
|
+
import { BlockNotFoundError as d } from "./index89.js";
|
|
2
|
+
import { numberToHex as i } from "./index116.js";
|
|
3
|
+
import { formatBlock as l } from "./index158.js";
|
|
4
|
+
async function h(e, { blockHash: t, blockNumber: r, blockTag: u = e.experimental_blockTag ?? "latest", includeTransactions: c } = {}) {
|
|
5
|
+
var m, s, f;
|
|
6
|
+
const a = c ?? !1, n = r !== void 0 ? i(r) : void 0;
|
|
7
|
+
let o = null;
|
|
8
|
+
if (t ? o = await e.request({
|
|
9
|
+
method: "eth_getBlockByHash",
|
|
10
|
+
params: [t, a]
|
|
11
|
+
}, { dedupe: !0 }) : o = await e.request({
|
|
12
|
+
method: "eth_getBlockByNumber",
|
|
13
|
+
params: [n || u, a]
|
|
14
|
+
}, { dedupe: !!n }), !o)
|
|
15
|
+
throw new d({ blockHash: t, blockNumber: r });
|
|
16
|
+
return (((f = (s = (m = e.chain) == null ? void 0 : m.formatters) == null ? void 0 : s.block) == null ? void 0 : f.format) || l)(o, "getBlock");
|
|
6
17
|
}
|
|
7
18
|
export {
|
|
8
|
-
|
|
19
|
+
h as getBlock
|
|
9
20
|
};
|
package/dist/index197.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function r(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}exports.getGasPrice=r;
|
package/dist/index197.js
CHANGED
|
@@ -1,35 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { bytesToHex as d } from "./index33.js";
|
|
7
|
-
function S(e) {
|
|
8
|
-
const m = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), i = typeof e.data == "string" ? x(e.data) : e.data, o = u(i);
|
|
9
|
-
if (!o)
|
|
10
|
-
throw new c();
|
|
11
|
-
if (o > y)
|
|
12
|
-
throw new h({
|
|
13
|
-
maxSize: y,
|
|
14
|
-
size: o
|
|
15
|
-
});
|
|
16
|
-
const s = [];
|
|
17
|
-
let n = !0, r = 0;
|
|
18
|
-
for (; n; ) {
|
|
19
|
-
const t = B(new Uint8Array(p));
|
|
20
|
-
let l = 0;
|
|
21
|
-
for (; l < a; ) {
|
|
22
|
-
const b = i.slice(r, r + (f - 1));
|
|
23
|
-
if (t.pushByte(0), t.pushBytes(b), b.length < 31) {
|
|
24
|
-
t.pushByte(128), n = !1;
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
l++, r += 31;
|
|
28
|
-
}
|
|
29
|
-
s.push(t);
|
|
30
|
-
}
|
|
31
|
-
return m === "bytes" ? s.map((t) => t.bytes) : s.map((t) => d(t.bytes));
|
|
1
|
+
async function r(e) {
|
|
2
|
+
const t = await e.request({
|
|
3
|
+
method: "eth_gasPrice"
|
|
4
|
+
});
|
|
5
|
+
return BigInt(t);
|
|
32
6
|
}
|
|
33
7
|
export {
|
|
34
|
-
|
|
8
|
+
r as getGasPrice
|
|
35
9
|
};
|
package/dist/index198.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index173.cjs"),s=require("./index216.cjs");async function i(e){const{authorization:r,signature:t}=e;return o.recoverAddress({hash:s.hashAuthorization(r),signature:t??r})}exports.recoverAuthorizationAddress=i;
|
package/dist/index198.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { recoverAddress as i } from "./index173.js";
|
|
2
|
+
import { hashAuthorization as e } from "./index216.js";
|
|
3
|
+
async function a(o) {
|
|
4
|
+
const { authorization: r, signature: t } = o;
|
|
5
|
+
return i({
|
|
6
|
+
hash: e(r),
|
|
7
|
+
signature: t ?? r
|
|
8
|
+
});
|
|
9
|
+
}
|
|
2
10
|
export {
|
|
3
|
-
|
|
4
|
-
e as bytesPerFieldElement,
|
|
5
|
-
s as fieldElementsPerBlob,
|
|
6
|
-
l as maxBytesPerTransaction
|
|
11
|
+
a as recoverAuthorizationAddress
|
|
7
12
|
};
|
package/dist/index199.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index103.cjs"),i=require("./index106.cjs"),u=require("./index241.cjs");function a(e,{docsPath:o,...r}){const n=(()=>{const t=u.getNodeError(e,r);return t instanceof i.UnknownNodeError?e:t})();return new s.EstimateGasExecutionError(n,{docsPath:o,...r})}exports.getEstimateGasError=a;
|