@gardenfi/utils 2.1.3-beta.17 → 2.1.3-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +26 -24
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +114 -34
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +16 -9
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +9 -15
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +5 -65
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +10 -11
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +3 -13
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +26 -8
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +4 -10
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +6 -26
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +46 -13
- package/dist/index109.cjs +1 -3
- package/dist/index109.js +117 -104
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +37 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +7 -51
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +21 -24
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +16 -116
- package/dist/index113.cjs +1 -20
- package/dist/index113.js +40 -326
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +21 -80
- package/dist/index115.cjs +1 -4
- package/dist/index115.js +11 -194
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +6 -24
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +103 -178
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +3 -13
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +4 -25
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +19 -134
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +9 -3
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +2 -89
- package/dist/index122.cjs +2 -1
- package/dist/index122.js +3 -33
- package/dist/index123.cjs +20 -1
- package/dist/index123.js +326 -15
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +14 -2
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +4 -75
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +2 -139
- package/dist/index127.cjs +1 -3
- package/dist/index127.js +6 -450
- package/dist/index128.cjs +3 -1
- package/dist/index128.js +209 -58
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +32 -7
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +136 -10
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +20 -68
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +5 -5
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +72 -20
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +5 -3
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +5 -14
- package/dist/index135.cjs +9 -1
- package/dist/index135.js +33 -86
- package/dist/index136.cjs +3 -1
- package/dist/index136.js +110 -18
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +3 -14
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +21 -43
- package/dist/index139.cjs +3 -1
- package/dist/index139.js +451 -38
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +15 -2
- package/dist/index140.cjs +2 -1
- package/dist/index140.js +54 -7
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +23 -35
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +33 -8
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +35 -9
- package/dist/index144.cjs +4 -1
- package/dist/index144.js +194 -15
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +7 -94
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +12 -20
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +18 -4
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +27 -6
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +8 -26
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +2 -35
- package/dist/index150.cjs +1 -2
- package/dist/index150.js +53 -22
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +45 -9
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +8 -8
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +7 -10
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +16 -11
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +18 -13
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +21 -14
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +51 -7
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +11 -21
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +161 -6
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +33 -17
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +21 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +127 -40
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +37 -16
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +6 -21
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +24 -77
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +188 -41
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +4 -12
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +61 -51
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +3 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +20 -5
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +14 -184
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +16 -5
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +23 -11
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +11 -13
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +34 -13
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +3 -6
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +18 -13
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +25 -101
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +36 -6
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +10 -151
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +22 -32
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +185 -117
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +27 -30
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +64 -8
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +9 -68
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +32 -8
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +23 -70
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +24 -19
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +3 -110
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +14 -23
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +102 -49
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +77 -103
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +121 -2
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +6 -9
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +7 -2
- package/dist/index192.cjs +1 -2
- package/dist/index192.js +24 -3
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +37 -13
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +13 -4
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +43 -2
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +6 -32
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +11 -21
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +19 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +78 -5
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -13
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +2 -6
- package/dist/index201.cjs +1 -9
- package/dist/index201.js +30 -28
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +112 -3
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +43 -20
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +31 -32
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +8 -35
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +6 -8
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +6 -12
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +11 -18
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +9 -26
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +13 -464
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +13 -8
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +31 -54
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +5 -9
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +7 -7
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +8 -161
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +20 -127
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +30 -26
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +18 -189
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +4 -4
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +18 -3
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +464 -36
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +10 -20
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +21 -16
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +22 -11
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +5 -34
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +6 -3
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +8 -27
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +104 -25
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +111 -27
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +18 -6
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +169 -25
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +36 -31
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +17 -34
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +10 -42
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +15 -77
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +23 -2
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +2 -38
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +13 -49
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +12 -6
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +47 -6
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +10 -31
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +8 -5
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +13 -32
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +9 -8
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +13 -3
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +14 -17
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -10
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +30 -5
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +24 -8
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +11 -103
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +25 -3
- package/dist/index248.cjs +2 -1
- package/dist/index248.js +23 -17
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +13 -171
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +57 -11
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +15 -17
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +51 -24
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +24 -12
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +13 -15
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +15 -5
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +5 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +12 -9
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +10 -16
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +16 -3
- package/dist/index259.cjs +2 -1
- package/dist/index259.js +40 -139
- package/dist/index26.cjs +16 -1
- package/dist/index26.js +113 -57
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +2 -156
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +5 -9
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +9 -112
- package/dist/index263.cjs +1 -2
- package/dist/index263.js +16 -131
- package/dist/index264.cjs +1 -2
- package/dist/index264.js +8 -41
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +67 -2
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +65 -5
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +185 -9
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +20 -17
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +42 -8
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +32 -13
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +72 -62
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +36 -61
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +15 -185
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +12 -21
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +12 -42
- package/dist/index275.cjs +2 -1
- package/dist/index275.js +18 -76
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +12 -39
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +11 -16
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +16 -13
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +221 -10
- package/dist/index28.cjs +1 -16
- package/dist/index28.js +30 -113
- package/dist/index280.cjs +1 -2
- package/dist/index280.js +6 -18
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +7 -15
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +26 -11
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +34 -103
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +17 -15
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +64 -208
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +67 -6
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +4 -7
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +137 -23
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +153 -17
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +11 -16
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +9 -108
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +110 -39
- package/dist/index292.cjs +2 -1
- package/dist/index292.js +126 -70
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +29 -2
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +37 -10
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +11 -19
- package/dist/index296.cjs +1 -2
- package/dist/index296.js +18 -65
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +68 -4
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +2 -41
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +40 -7
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +7 -45
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +635 -55
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +200 -71
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +173 -4
- package/dist/index303.cjs +2 -1
- package/dist/index303.js +62 -190
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +4 -68
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +37 -654
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +7 -206
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +56 -171
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +61 -47
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +4 -45
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +30 -9
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +194 -4
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +19 -5
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +64 -2
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +43 -20
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +7 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +107 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +7 -0
- package/dist/index317.cjs +1 -0
- package/dist/index317.js +4 -0
- package/dist/index318.cjs +1 -0
- package/dist/index318.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +29 -18
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +16 -125
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +30 -57
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +43 -22
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +151 -10
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +33 -18
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +38 -6
- package/dist/index39.cjs +2 -1
- package/dist/index39.js +59 -10
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +5 -5
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +32 -32
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +15 -16
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -16
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +2 -8
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +26 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +30 -23
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +3 -22
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +8 -57
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +66 -38
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +8 -36
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +25 -163
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +67 -107
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +16 -27
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +110 -3
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +61 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +25 -4
- package/dist/index56.cjs +1 -2
- package/dist/index56.js +38 -57
- package/dist/index57.cjs +1 -2
- package/dist/index57.js +36 -53
- package/dist/index58.cjs +1 -3
- package/dist/index58.js +54 -211
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +161 -12
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +2 -2
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +39 -11
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +9 -24
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +33 -25
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -47
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +50 -19
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +84 -10
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +38 -37
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -8
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +6 -7
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +17 -31
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +17 -24
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +8 -36
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +13 -36
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +7 -9
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +9 -29
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +46 -22
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +13 -85
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +16 -50
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +13 -23
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +6 -41
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +35 -17
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +24 -2
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +8 -5
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +8 -33
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +26 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +10 -13
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +9 -109
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +115 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +80 -6
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +180 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +6 -21
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +13 -8
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -124
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +13 -31
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +93 -13
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +75 -7
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +88 -9
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +138 -16
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +68 -72
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +22 -34
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +108 -45
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +6 -14
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +50 -13
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/localConfig.d.ts +17 -0
- package/package.json +1 -1
package/dist/index78.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/index78.js
CHANGED
|
@@ -1,44 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
async function k(e, i) {
|
|
7
|
-
return G(e, i);
|
|
8
|
-
}
|
|
9
|
-
async function G(e, i) {
|
|
10
|
-
var P, m;
|
|
11
|
-
const { block: a, chain: t = e.chain, request: u } = i || {};
|
|
12
|
-
try {
|
|
13
|
-
const r = ((P = t == null ? void 0 : t.fees) == null ? void 0 : P.maxPriorityFeePerGas) ?? ((m = t == null ? void 0 : t.fees) == null ? void 0 : m.defaultPriorityFee);
|
|
14
|
-
if (typeof r == "function") {
|
|
15
|
-
const o = a || await n(e, c, "getBlock")({}), f = await r({
|
|
16
|
-
block: o,
|
|
17
|
-
client: e,
|
|
18
|
-
request: u
|
|
19
|
-
});
|
|
20
|
-
if (f === null)
|
|
21
|
-
throw new Error();
|
|
22
|
-
return f;
|
|
23
|
-
}
|
|
24
|
-
if (typeof r < "u")
|
|
25
|
-
return r;
|
|
26
|
-
const s = await e.request({
|
|
27
|
-
method: "eth_maxPriorityFeePerGas"
|
|
28
|
-
});
|
|
29
|
-
return p(s);
|
|
30
|
-
} catch {
|
|
31
|
-
const [r, s] = await Promise.all([
|
|
32
|
-
a ? Promise.resolve(a) : n(e, c, "getBlock")({}),
|
|
33
|
-
n(e, F, "getGasPrice")({})
|
|
34
|
-
]);
|
|
35
|
-
if (typeof r.baseFeePerGas != "bigint")
|
|
36
|
-
throw new y();
|
|
37
|
-
const o = s - r.baseFeePerGas;
|
|
38
|
-
return o < 0n ? 0n : o;
|
|
39
|
-
}
|
|
1
|
+
async function r(e) {
|
|
2
|
+
const t = await e.request({
|
|
3
|
+
method: "eth_gasPrice"
|
|
4
|
+
});
|
|
5
|
+
return BigInt(t);
|
|
40
6
|
}
|
|
41
7
|
export {
|
|
42
|
-
|
|
43
|
-
G as internal_estimateMaxPriorityFeePerGas
|
|
8
|
+
r as getGasPrice
|
|
44
9
|
};
|
package/dist/index79.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("./index177.cjs"),q=require("./index181.cjs"),m=require("./index151.cjs"),y=require("./index158.cjs");async function T(i,{address:a,blockHash:g,fromBlock:o,toBlock:s,event:n,events:c,args:u,strict:L}={}){const b=L??!1,t=c??(n?[n]:void 0);let e=[];t&&(e=[t.flatMap(p=>l.encodeEventTopics({abi:[p],eventName:p.name,args:c?void 0:u}))],n&&(e=e[0]));let r;g?r=await i.request({method:"eth_getLogs",params:[{address:a,topics:e,blockHash:g}]}):r=await i.request({method:"eth_getLogs",params:[{address:a,topics:e,fromBlock:typeof o=="bigint"?m.numberToHex(o):o,toBlock:typeof s=="bigint"?m.numberToHex(s):s}]});const d=r.map(f=>y.formatLog(f));return t?q.parseEventLogs({abi:t,args:u,logs:d,strict:b}):d}exports.getLogs=T;
|
package/dist/index79.js
CHANGED
|
@@ -1,20 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { encodeEventTopics as h } from "./index177.js";
|
|
2
|
+
import { parseEventLogs as l } from "./index181.js";
|
|
3
|
+
import { numberToHex as u } from "./index151.js";
|
|
4
|
+
import { formatLog as y } from "./index158.js";
|
|
5
|
+
async function T(n, { address: a, blockHash: m, fromBlock: o, toBlock: i, event: r, events: f, args: g, strict: L } = {}) {
|
|
6
|
+
const b = L ?? !1, e = f ?? (r ? [r] : void 0);
|
|
7
|
+
let t = [];
|
|
8
|
+
e && (t = [e.flatMap((c) => h({
|
|
9
|
+
abi: [c],
|
|
10
|
+
eventName: c.name,
|
|
11
|
+
args: f ? void 0 : g
|
|
12
|
+
}))], r && (t = t[0]));
|
|
13
|
+
let s;
|
|
14
|
+
m ? s = await n.request({
|
|
15
|
+
method: "eth_getLogs",
|
|
16
|
+
params: [{ address: a, topics: t, blockHash: m }]
|
|
17
|
+
}) : s = await n.request({
|
|
18
|
+
method: "eth_getLogs",
|
|
19
|
+
params: [
|
|
20
|
+
{
|
|
21
|
+
address: a,
|
|
22
|
+
topics: t,
|
|
23
|
+
fromBlock: typeof o == "bigint" ? u(o) : o,
|
|
24
|
+
toBlock: typeof i == "bigint" ? u(i) : i
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
});
|
|
28
|
+
const p = s.map((d) => y(d));
|
|
29
|
+
return e ? l({
|
|
30
|
+
abi: e,
|
|
31
|
+
args: g,
|
|
32
|
+
logs: p,
|
|
33
|
+
strict: b
|
|
34
|
+
}) : p;
|
|
17
35
|
}
|
|
18
36
|
export {
|
|
19
|
-
T as
|
|
37
|
+
T as getLogs
|
|
20
38
|
};
|
package/dist/index8.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class r extends URL{constructor(t,e){super(t,e)}endpoint(t){t.startsWith("/")||(t=`/${t}`);const e=`${this.pathname!=="/"?this.pathname:""}${t}`;return new r(e,this)}socket(){if(this.protocol==="https:")return this.origin.replace("https","wss");if(this.protocol==="http:")return this.origin.replace("http","ws");throw new Error("Invalid protocol")}addSearchParams(t){const e=new URLSearchParams(this.search);for(const s in t)e.set(s,t[s]);return new r(`${this.pathname}?${e.toString()}`,this)}}exports.Url=r;
|
package/dist/index8.js
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
class r extends URL {
|
|
2
|
+
constructor(t, s) {
|
|
3
|
+
super(t, s);
|
|
4
|
+
}
|
|
5
|
+
endpoint(t) {
|
|
6
|
+
t.startsWith("/") || (t = `/${t}`);
|
|
7
|
+
const s = `${this.pathname !== "/" ? this.pathname : ""}${t}`;
|
|
8
|
+
return new r(s, this);
|
|
9
|
+
}
|
|
10
|
+
socket() {
|
|
11
|
+
if (this.protocol === "https:")
|
|
12
|
+
return this.origin.replace("https", "wss");
|
|
13
|
+
if (this.protocol === "http:")
|
|
14
|
+
return this.origin.replace("http", "ws");
|
|
15
|
+
throw new Error("Invalid protocol");
|
|
16
|
+
}
|
|
17
|
+
addSearchParams(t) {
|
|
18
|
+
const s = new URLSearchParams(this.search);
|
|
19
|
+
for (const e in t)
|
|
20
|
+
s.set(e, t[e]);
|
|
21
|
+
return new r(`${this.pathname}?${s.toString()}`, this);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
2
24
|
export {
|
|
3
|
-
|
|
25
|
+
r as Url
|
|
4
26
|
};
|
package/dist/index80.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index151.cjs"),u=require("./index250.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/index80.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { numberToHex as c } from "./index151.js";
|
|
2
|
+
import { formatProof as s } from "./index250.js";
|
|
3
|
+
async function d(t, { address: e, blockNumber: o, blockTag: r, storageKeys: n }) {
|
|
4
|
+
const f = r ?? "latest", a = o !== void 0 ? c(o) : void 0, m = await t.request({
|
|
5
|
+
method: "eth_getProof",
|
|
6
|
+
params: [e, n, a || f]
|
|
4
7
|
});
|
|
5
|
-
return
|
|
8
|
+
return s(m);
|
|
6
9
|
}
|
|
7
10
|
export {
|
|
8
|
-
|
|
11
|
+
d as getProof
|
|
9
12
|
};
|
package/dist/index81.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("./index151.cjs");async function d(t,{address:a,blockNumber:e,blockTag:n="latest",slot:o}){const r=e!==void 0?u.numberToHex(e):void 0;return await t.request({method:"eth_getStorageAt",params:[a,o,r||n]})}exports.getStorageAt=d;
|
package/dist/index81.js
CHANGED
|
@@ -1,36 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
maxSize: e
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function a(i, e = {}) {
|
|
12
|
-
const { signed: n } = e;
|
|
13
|
-
e.size && u(i, { size: e.size });
|
|
14
|
-
const r = BigInt(i);
|
|
15
|
-
if (!n)
|
|
16
|
-
return r;
|
|
17
|
-
const o = (i.length - 2) / 2, s = (1n << BigInt(o) * 8n - 1n) - 1n;
|
|
18
|
-
return r <= s ? r : r - BigInt(`0x${"f".padStart(o * 2, "f")}`) - 1n;
|
|
19
|
-
}
|
|
20
|
-
function g(i, e = {}) {
|
|
21
|
-
let n = i;
|
|
22
|
-
if (e.size && (u(n, { size: e.size }), n = t(n)), t(n) === "0x00")
|
|
23
|
-
return !1;
|
|
24
|
-
if (t(n) === "0x01")
|
|
25
|
-
return !0;
|
|
26
|
-
throw new m(n);
|
|
27
|
-
}
|
|
28
|
-
function w(i, e = {}) {
|
|
29
|
-
return Number(a(i, e));
|
|
1
|
+
import { numberToHex as d } from "./index151.js";
|
|
2
|
+
async function i(e, { address: a, blockNumber: t, blockTag: n = "latest", slot: o }) {
|
|
3
|
+
const r = t !== void 0 ? d(t) : void 0;
|
|
4
|
+
return await e.request({
|
|
5
|
+
method: "eth_getStorageAt",
|
|
6
|
+
params: [a, o, r || n]
|
|
7
|
+
});
|
|
30
8
|
}
|
|
31
9
|
export {
|
|
32
|
-
|
|
33
|
-
a as hexToBigInt,
|
|
34
|
-
g as hexToBool,
|
|
35
|
-
w as hexToNumber
|
|
10
|
+
i as getStorageAt
|
|
36
11
|
};
|
package/dist/index82.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 f=require("./index136.cjs"),s=require("./index151.cjs"),g=require("./index157.cjs");async function l(t,{blockHash:a,blockNumber:n,blockTag:T,hash:r,index:o}){var c,d,m;const u=T||"latest",i=n!==void 0?s.numberToHex(n):void 0;let e=null;if(r?e=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):a?e=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[a,s.numberToHex(o)]},{dedupe:!0}):e=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[i||u,s.numberToHex(o)]},{dedupe:!!i}),!e)throw new f.TransactionNotFoundError({blockHash:a,blockNumber:n,blockTag:u,hash:r,index:o});return(((m=(d=(c=t.chain)==null?void 0:c.formatters)==null?void 0:d.transaction)==null?void 0:m.format)||g.formatTransaction)(e)}exports.getTransaction=l;
|
package/dist/index82.js
CHANGED
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { TransactionNotFoundError as p } from "./index136.js";
|
|
2
|
+
import { numberToHex as s } from "./index151.js";
|
|
3
|
+
import { formatTransaction as T } from "./index157.js";
|
|
4
|
+
async function h(e, { blockHash: a, blockNumber: r, blockTag: c, hash: o, index: n }) {
|
|
5
|
+
var i, u, f;
|
|
6
|
+
const m = c || "latest", d = r !== void 0 ? s(r) : void 0;
|
|
7
|
+
let t = null;
|
|
8
|
+
if (o ? t = await e.request({
|
|
9
|
+
method: "eth_getTransactionByHash",
|
|
10
|
+
params: [o]
|
|
11
|
+
}, { dedupe: !0 }) : a ? t = await e.request({
|
|
12
|
+
method: "eth_getTransactionByBlockHashAndIndex",
|
|
13
|
+
params: [a, s(n)]
|
|
14
|
+
}, { dedupe: !0 }) : t = await e.request({
|
|
15
|
+
method: "eth_getTransactionByBlockNumberAndIndex",
|
|
16
|
+
params: [d || m, s(n)]
|
|
17
|
+
}, { dedupe: !!d }), !t)
|
|
18
|
+
throw new p({
|
|
19
|
+
blockHash: a,
|
|
20
|
+
blockNumber: r,
|
|
21
|
+
blockTag: m,
|
|
22
|
+
hash: o,
|
|
23
|
+
index: n
|
|
24
|
+
});
|
|
25
|
+
return (((f = (u = (i = e.chain) == null ? void 0 : i.formatters) == null ? void 0 : u.transaction) == null ? void 0 : f.format) || T)(t);
|
|
9
26
|
}
|
|
10
27
|
export {
|
|
11
|
-
|
|
28
|
+
h as getTransaction
|
|
12
29
|
};
|
package/dist/index83.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("./index30.cjs"),i=require("./index70.cjs"),g=require("./index82.cjs");async function b(r,{hash:n,transactionReceipt:e}){const[c,o]=await Promise.all([u.getAction(r,i.getBlockNumber,"getBlockNumber")({}),n?u.getAction(r,g.getTransaction,"getTransaction")({hash:n}):void 0]),t=(e==null?void 0:e.blockNumber)||(o==null?void 0:o.blockNumber);return t?c-t+1n:0n}exports.getTransactionConfirmations=b;
|
package/dist/index83.js
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return
|
|
10
|
-
docsPath: e,
|
|
11
|
-
...o
|
|
12
|
-
});
|
|
1
|
+
import { getAction as b } from "./index30.js";
|
|
2
|
+
import { getBlockNumber as t } from "./index70.js";
|
|
3
|
+
import { getTransaction as f } from "./index82.js";
|
|
4
|
+
async function N(m, { hash: n, transactionReceipt: o }) {
|
|
5
|
+
const [e, r] = await Promise.all([
|
|
6
|
+
b(m, t, "getBlockNumber")({}),
|
|
7
|
+
n ? b(m, f, "getTransaction")({ hash: n }) : void 0
|
|
8
|
+
]), u = (o == null ? void 0 : o.blockNumber) || (r == null ? void 0 : r.blockNumber);
|
|
9
|
+
return u ? e - u + 1n : 0n;
|
|
13
10
|
}
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
N as getTransactionConfirmations
|
|
16
13
|
};
|
package/dist/index84.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index183.cjs"),u=require("./index151.cjs");async function s(e,{address:n,blockTag:o="latest",blockNumber:t}){const r=await e.request({method:"eth_getTransactionCount",params:[n,t?u.numberToHex(t):o]},{dedupe:!!t});return a.hexToNumber(r)}exports.getTransactionCount=s;
|
package/dist/index84.js
CHANGED
|
@@ -1,112 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { commitmentsToVersionedHashes as _ } from "./index154.js";
|
|
10
|
-
import { toBlobSidecars as B } from "./index155.js";
|
|
11
|
-
import { getAction as p } from "./index43.js";
|
|
12
|
-
import { assertRequest as E } from "./index64.js";
|
|
13
|
-
import { getTransactionType as M } from "./index156.js";
|
|
14
|
-
import { getChainId as N } from "./index92.js";
|
|
15
|
-
const A = [
|
|
16
|
-
"blobVersionedHashes",
|
|
17
|
-
"chainId",
|
|
18
|
-
"fees",
|
|
19
|
-
"gas",
|
|
20
|
-
"nonce",
|
|
21
|
-
"type"
|
|
22
|
-
], w = /* @__PURE__ */ new Map();
|
|
23
|
-
async function X(s, a) {
|
|
24
|
-
const { account: u = s.account, blobs: c, chain: d, gas: g, kzg: y, nonce: G, nonceManager: h, parameters: i = A, type: x } = a, n = u && F(u), e = { ...a, ...n ? { from: n == null ? void 0 : n.address } : {} };
|
|
25
|
-
let f;
|
|
26
|
-
async function l() {
|
|
27
|
-
return f || (f = await p(s, I, "getBlock")({ blockTag: "latest" }), f);
|
|
28
|
-
}
|
|
29
|
-
let m;
|
|
30
|
-
async function P() {
|
|
31
|
-
return m || (d ? d.id : typeof a.chainId < "u" ? a.chainId : (m = await p(s, N, "getChainId")({}), m));
|
|
32
|
-
}
|
|
33
|
-
if (i.includes("nonce") && typeof G > "u" && n)
|
|
34
|
-
if (h) {
|
|
35
|
-
const t = await P();
|
|
36
|
-
e.nonce = await h.consume({
|
|
37
|
-
address: n.address,
|
|
38
|
-
chainId: t,
|
|
39
|
-
client: s
|
|
40
|
-
});
|
|
41
|
-
} else
|
|
42
|
-
e.nonce = await p(s, T, "getTransactionCount")({
|
|
43
|
-
address: n.address,
|
|
44
|
-
blockTag: "pending"
|
|
45
|
-
});
|
|
46
|
-
if ((i.includes("blobVersionedHashes") || i.includes("sidecars")) && c && y) {
|
|
47
|
-
const t = q({ blobs: c, kzg: y });
|
|
48
|
-
if (i.includes("blobVersionedHashes")) {
|
|
49
|
-
const o = _({
|
|
50
|
-
commitments: t,
|
|
51
|
-
to: "hex"
|
|
52
|
-
});
|
|
53
|
-
e.blobVersionedHashes = o;
|
|
54
|
-
}
|
|
55
|
-
if (i.includes("sidecars")) {
|
|
56
|
-
const o = V({ blobs: c, commitments: t, kzg: y }), r = B({
|
|
57
|
-
blobs: c,
|
|
58
|
-
commitments: t,
|
|
59
|
-
proofs: o,
|
|
60
|
-
to: "hex"
|
|
61
|
-
});
|
|
62
|
-
e.sidecars = r;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if (i.includes("chainId") && (e.chainId = await P()), (i.includes("fees") || i.includes("type")) && typeof x > "u")
|
|
66
|
-
try {
|
|
67
|
-
e.type = M(e);
|
|
68
|
-
} catch {
|
|
69
|
-
let t = w.get(s.uid);
|
|
70
|
-
if (typeof t > "u") {
|
|
71
|
-
const o = await l();
|
|
72
|
-
t = typeof (o == null ? void 0 : o.baseFeePerGas) == "bigint", w.set(s.uid, t);
|
|
73
|
-
}
|
|
74
|
-
e.type = t ? "eip1559" : "legacy";
|
|
75
|
-
}
|
|
76
|
-
if (i.includes("fees"))
|
|
77
|
-
if (e.type !== "legacy" && e.type !== "eip2930") {
|
|
78
|
-
if (typeof e.maxFeePerGas > "u" || typeof e.maxPriorityFeePerGas > "u") {
|
|
79
|
-
const t = await l(), { maxFeePerGas: o, maxPriorityFeePerGas: r } = await b(s, {
|
|
80
|
-
block: t,
|
|
81
|
-
chain: d,
|
|
82
|
-
request: e
|
|
83
|
-
});
|
|
84
|
-
if (typeof a.maxPriorityFeePerGas > "u" && a.maxFeePerGas && a.maxFeePerGas < r)
|
|
85
|
-
throw new C({
|
|
86
|
-
maxPriorityFeePerGas: r
|
|
87
|
-
});
|
|
88
|
-
e.maxPriorityFeePerGas = r, e.maxFeePerGas = o;
|
|
89
|
-
}
|
|
90
|
-
} else {
|
|
91
|
-
if (typeof a.maxFeePerGas < "u" || typeof a.maxPriorityFeePerGas < "u")
|
|
92
|
-
throw new H();
|
|
93
|
-
if (typeof a.gasPrice > "u") {
|
|
94
|
-
const t = await l(), { gasPrice: o } = await b(s, {
|
|
95
|
-
block: t,
|
|
96
|
-
chain: d,
|
|
97
|
-
request: e,
|
|
98
|
-
type: "legacy"
|
|
99
|
-
});
|
|
100
|
-
e.gasPrice = o;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return i.includes("gas") && typeof g > "u" && (e.gas = await p(s, k, "estimateGas")({
|
|
104
|
-
...e,
|
|
105
|
-
account: n && { address: n.address, type: "json-rpc" }
|
|
106
|
-
})), E(e), delete e.parameters, e;
|
|
1
|
+
import { hexToNumber as r } from "./index183.js";
|
|
2
|
+
import { numberToHex as s } from "./index151.js";
|
|
3
|
+
async function m(o, { address: e, blockTag: n = "latest", blockNumber: t }) {
|
|
4
|
+
const a = await o.request({
|
|
5
|
+
method: "eth_getTransactionCount",
|
|
6
|
+
params: [e, t ? s(t) : n]
|
|
7
|
+
}, { dedupe: !!t });
|
|
8
|
+
return r(a);
|
|
107
9
|
}
|
|
108
10
|
export {
|
|
109
|
-
|
|
110
|
-
w as eip1559NetworkCache,
|
|
111
|
-
X as prepareTransactionRequest
|
|
11
|
+
m as getTransactionCount
|
|
112
12
|
};
|
package/dist/index85.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 N=require("./index22.cjs"),P=require("./index123.cjs"),v=require("./index39.cjs"),_=require("./index128.cjs"),x=require("./index171.cjs"),O=require("./index178.cjs"),T=require("./index215.cjs"),y=require("./index222.cjs"),B=require("./index30.cjs"),M=require("./index34.cjs");async function Z(l,m){var A;const{allowFailure:u=!0,batchSize:j,blockNumber:w,blockTag:k,multicallAddress:p,stateOverride:z}=m,d=m.contracts,C=j??(typeof((A=l.batch)==null?void 0:A.multicall)=="object"&&l.batch.multicall.batchSize||1024);let g=p;if(!g){if(!l.chain)throw new Error("client chain not configured. multicallAddress is required.");g=T.getChainContractAddress({blockNumber:w,chain:l.chain,contract:"multicall3"})}const r=[[]];let a=0,f=0;for(let t=0;t<d.length;t++){const{abi:c,address:s,args:e,functionName:i}=d[t];try{const n=O.encodeFunctionData({abi:c,args:e,functionName:i});f+=(n.length-2)/2,C>0&&f>C&&r[a].length>0&&(a++,f=(n.length-2)/2,r[a]=[]),r[a]=[...r[a],{allowFailure:!0,callData:n,target:s}]}catch(n){const b=y.getContractError(n,{abi:c,address:s,args:e,docsPath:"/docs/contract/multicall",functionName:i});if(!u)throw b;r[a]=[...r[a],{allowFailure:!0,callData:"0x",target:s}]}}const q=await Promise.allSettled(r.map(t=>B.getAction(l,M.readContract,"readContract")({abi:N.multicall3Abi,address:g,args:[t],blockNumber:w,blockTag:k,functionName:"aggregate3",stateOverride:z}))),o=[];for(let t=0;t<q.length;t++){const c=q[t];if(c.status==="rejected"){if(!u)throw c.reason;for(let e=0;e<r[t].length;e++)o.push({status:"failure",error:c.reason,result:void 0});continue}const s=c.value;for(let e=0;e<s.length;e++){const{returnData:i,success:n}=s[e],{callData:b}=r[t][e],{abi:D,address:R,functionName:S,args:E}=d[o.length];try{if(b==="0x")throw new P.AbiDecodingZeroDataError;if(!n)throw new _.RawContractError({data:i});const h=x.decodeFunctionResult({abi:D,args:E,data:i,functionName:S});o.push(u?{result:h,status:"success"}:h)}catch(h){const F=y.getContractError(h,{abi:D,address:R,args:E,docsPath:"/docs/contract/multicall",functionName:S});if(!u)throw F;o.push({error:F,result:void 0,status:"failure"})}}}if(o.length!==d.length)throw new v.BaseError("multicall results mismatch");return o}exports.multicall=Z;
|
package/dist/index85.js
CHANGED
|
@@ -1,11 +1,118 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { multicall3Abi as x } from "./index22.js";
|
|
2
|
+
import { AbiDecodingZeroDataError as P } from "./index123.js";
|
|
3
|
+
import { BaseError as _ } from "./index39.js";
|
|
4
|
+
import { RawContractError as v } from "./index128.js";
|
|
5
|
+
import { decodeFunctionResult as q } from "./index171.js";
|
|
6
|
+
import { encodeFunctionData as B } from "./index178.js";
|
|
7
|
+
import { getChainContractAddress as O } from "./index215.js";
|
|
8
|
+
import { getContractError as E } from "./index222.js";
|
|
9
|
+
import { getAction as T } from "./index30.js";
|
|
10
|
+
import { readContract as Z } from "./index34.js";
|
|
11
|
+
async function W(n, w) {
|
|
12
|
+
var A;
|
|
13
|
+
const { allowFailure: u = !0, batchSize: F, blockNumber: b, blockTag: j, multicallAddress: y, stateOverride: N } = w, h = w.contracts, p = F ?? (typeof ((A = n.batch) == null ? void 0 : A.multicall) == "object" && n.batch.multicall.batchSize || 1024);
|
|
14
|
+
let d = y;
|
|
15
|
+
if (!d) {
|
|
16
|
+
if (!n.chain)
|
|
17
|
+
throw new Error("client chain not configured. multicallAddress is required.");
|
|
18
|
+
d = O({
|
|
19
|
+
blockNumber: b,
|
|
20
|
+
chain: n.chain,
|
|
21
|
+
contract: "multicall3"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const e = [[]];
|
|
25
|
+
let a = 0, f = 0;
|
|
26
|
+
for (let t = 0; t < h.length; t++) {
|
|
27
|
+
const { abi: o, address: s, args: r, functionName: i } = h[t];
|
|
28
|
+
try {
|
|
29
|
+
const c = B({ abi: o, args: r, functionName: i });
|
|
30
|
+
f += (c.length - 2) / 2, // Check if batching is enabled.
|
|
31
|
+
p > 0 && // Check if the current size of the batch exceeds the size limit.
|
|
32
|
+
f > p && // Check if the current chunk is not already empty.
|
|
33
|
+
e[a].length > 0 && (a++, f = (c.length - 2) / 2, e[a] = []), e[a] = [
|
|
34
|
+
...e[a],
|
|
35
|
+
{
|
|
36
|
+
allowFailure: !0,
|
|
37
|
+
callData: c,
|
|
38
|
+
target: s
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
} catch (c) {
|
|
42
|
+
const g = E(c, {
|
|
43
|
+
abi: o,
|
|
44
|
+
address: s,
|
|
45
|
+
args: r,
|
|
46
|
+
docsPath: "/docs/contract/multicall",
|
|
47
|
+
functionName: i
|
|
48
|
+
});
|
|
49
|
+
if (!u)
|
|
50
|
+
throw g;
|
|
51
|
+
e[a] = [
|
|
52
|
+
...e[a],
|
|
53
|
+
{
|
|
54
|
+
allowFailure: !0,
|
|
55
|
+
callData: "0x",
|
|
56
|
+
target: s
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const C = await Promise.allSettled(e.map((t) => T(n, Z, "readContract")({
|
|
62
|
+
abi: x,
|
|
63
|
+
address: d,
|
|
64
|
+
args: [t],
|
|
65
|
+
blockNumber: b,
|
|
66
|
+
blockTag: j,
|
|
67
|
+
functionName: "aggregate3",
|
|
68
|
+
stateOverride: N
|
|
69
|
+
}))), l = [];
|
|
70
|
+
for (let t = 0; t < C.length; t++) {
|
|
71
|
+
const o = C[t];
|
|
72
|
+
if (o.status === "rejected") {
|
|
73
|
+
if (!u)
|
|
74
|
+
throw o.reason;
|
|
75
|
+
for (let r = 0; r < e[t].length; r++)
|
|
76
|
+
l.push({
|
|
77
|
+
status: "failure",
|
|
78
|
+
error: o.reason,
|
|
79
|
+
result: void 0
|
|
80
|
+
});
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
const s = o.value;
|
|
84
|
+
for (let r = 0; r < s.length; r++) {
|
|
85
|
+
const { returnData: i, success: c } = s[r], { callData: g } = e[t][r], { abi: D, address: R, functionName: S, args: k } = h[l.length];
|
|
86
|
+
try {
|
|
87
|
+
if (g === "0x")
|
|
88
|
+
throw new P();
|
|
89
|
+
if (!c)
|
|
90
|
+
throw new v({ data: i });
|
|
91
|
+
const m = q({
|
|
92
|
+
abi: D,
|
|
93
|
+
args: k,
|
|
94
|
+
data: i,
|
|
95
|
+
functionName: S
|
|
96
|
+
});
|
|
97
|
+
l.push(u ? { result: m, status: "success" } : m);
|
|
98
|
+
} catch (m) {
|
|
99
|
+
const z = E(m, {
|
|
100
|
+
abi: D,
|
|
101
|
+
address: R,
|
|
102
|
+
args: k,
|
|
103
|
+
docsPath: "/docs/contract/multicall",
|
|
104
|
+
functionName: S
|
|
105
|
+
});
|
|
106
|
+
if (!u)
|
|
107
|
+
throw z;
|
|
108
|
+
l.push({ error: z, result: void 0, status: "failure" });
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (l.length !== h.length)
|
|
113
|
+
throw new _("multicall results mismatch");
|
|
114
|
+
return l;
|
|
8
115
|
}
|
|
9
116
|
export {
|
|
10
|
-
|
|
117
|
+
W as multicall
|
|
11
118
|
};
|
package/dist/index86.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("./index244.cjs"),F=require("./index46.cjs"),y=require("./index123.cjs"),C=require("./index128.cjs"),H=require("./index144.cjs"),S=require("./index171.cjs"),A=require("./index178.cjs"),U=require("./index151.cjs"),j=require("./index222.cjs"),z=require("./index245.cjs"),I=require("./index156.cjs"),L=require("./index158.cjs"),M=require("./index185.cjs"),P=require("./index237.cjs"),V=require("./index198.cjs");async function Z(p,O){const{blockNumber:m,blockTag:w="latest",blocks:q,returnFullTransactions:N,traceTransfers:R,validation:x}=O;try{const c=[];for(const t of q){const l=t.blockOverrides?D.toRpc(t.blockOverrides):void 0,e=t.calls.map(n=>{const r=n,s=r.account?F.parseAccount(r.account):void 0,u={...r,data:r.abi?A.encodeFunctionData(r):r.data,from:r.from??(s==null?void 0:s.address)};return V.assertRequest(u),M.formatTransactionRequest(u)}),f=t.stateOverrides?P.serializeStateOverride(t.stateOverrides):void 0;c.push({blockOverrides:l,calls:e,stateOverrides:f})}const a=(m?U.numberToHex(m):void 0)||w;return(await p.request({method:"eth_simulateV1",params:[{blockStateCalls:c,returnFullTransactions:N,traceTransfers:R,validation:x},a]})).map((t,l)=>({...I.formatBlock(t),calls:t.calls.map((e,f)=>{var k,g;const{abi:n,args:r,functionName:s,to:u}=q[l].calls[f],b=((k=e.error)==null?void 0:k.data)??e.returnData,E=BigInt(e.gasUsed),h=(g=e.logs)==null?void 0:g.map(o=>L.formatLog(o)),i=e.status==="0x1"?"success":"failure",T=n&&i==="success"&&b!=="0x"?S.decodeFunctionResult({abi:n,data:b,functionName:s}):null,B=(()=>{var v;if(i==="success")return;let o;if(((v=e.error)==null?void 0:v.data)==="0x"?o=new y.AbiDecodingZeroDataError:e.error&&(o=new C.RawContractError(e.error)),!!o)return j.getContractError(o,{abi:n??[],address:u,args:r,functionName:s??"<unknown>"})})();return{data:b,gasUsed:E,logs:h,status:i,...i==="success"?{result:T}:{error:B}}})}))}catch(c){const d=c,a=z.getNodeError(d,{});throw a instanceof H.UnknownNodeError?d:a}}exports.simulateBlocks=Z;
|