@gardenfi/utils 2.1.2-beta.9 → 2.1.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +20 -21
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +11 -5
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +5 -10
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +14 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +3 -20
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +27 -5
- package/dist/index105.cjs +1 -0
- package/dist/index105.js +7 -0
- package/dist/index106.cjs +1 -0
- package/dist/index106.js +9 -0
- package/dist/index107.cjs +1 -0
- package/dist/index107.js +62 -0
- package/dist/index108.cjs +1 -0
- package/dist/index108.js +128 -0
- package/dist/index109.cjs +1 -0
- package/dist/index109.js +10 -0
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +24 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +20 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +43 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +24 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +14 -0
- package/dist/index115.cjs +1 -0
- package/dist/index115.js +9 -0
- package/dist/index116.cjs +1 -0
- package/dist/index116.js +109 -0
- package/dist/index117.cjs +1 -0
- package/dist/index117.js +5 -0
- package/dist/index118.cjs +1 -0
- package/dist/index118.js +6 -0
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +11 -0
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +4 -0
- package/dist/index121.cjs +2 -0
- package/dist/index121.js +5 -0
- package/dist/index122.cjs +20 -0
- package/dist/index122.js +329 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +16 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +7 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +4 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +10 -0
- package/dist/index127.cjs +3 -0
- package/dist/index127.js +218 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +34 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +24 -0
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +8 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +76 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +8 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +8 -0
- package/dist/index134.cjs +9 -0
- package/dist/index134.js +38 -0
- package/dist/index135.cjs +3 -0
- package/dist/index135.js +113 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +5 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +26 -0
- package/dist/index138.cjs +3 -0
- package/dist/index138.js +454 -0
- package/dist/index139.cjs +2 -0
- package/dist/index139.js +57 -0
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +29 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +36 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +38 -0
- package/dist/index143.cjs +4 -0
- package/dist/index143.js +197 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +11 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +15 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +21 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +30 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +11 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +58 -0
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +19 -18
- package/dist/index150.cjs +1 -0
- package/dist/index150.js +48 -0
- package/dist/index151.cjs +1 -0
- package/dist/index151.js +11 -0
- package/dist/index152.cjs +1 -0
- package/dist/index152.js +10 -0
- package/dist/index153.cjs +1 -0
- package/dist/index153.js +19 -0
- package/dist/index154.cjs +1 -0
- package/dist/index154.js +21 -0
- package/dist/index155.cjs +1 -0
- package/dist/index155.js +24 -0
- package/dist/index156.cjs +1 -0
- package/dist/index156.js +54 -0
- package/dist/index157.cjs +1 -0
- package/dist/index157.js +14 -0
- package/dist/index158.cjs +1 -0
- package/dist/index158.js +164 -0
- package/dist/index159.cjs +1 -0
- package/dist/index159.js +24 -0
- package/dist/index160.cjs +1 -0
- package/dist/index160.js +130 -0
- package/dist/index161.cjs +1 -0
- package/dist/index161.js +41 -0
- package/dist/index162.cjs +1 -0
- package/dist/index162.js +9 -0
- package/dist/index163.cjs +1 -0
- package/dist/index163.js +30 -0
- package/dist/index164.cjs +1 -0
- package/dist/index164.js +194 -0
- package/dist/index165.cjs +1 -0
- package/dist/index165.js +6 -0
- package/dist/index166.cjs +1 -0
- package/dist/index166.js +65 -0
- package/dist/index167.cjs +1 -0
- package/dist/index167.js +5 -0
- package/dist/index168.cjs +1 -0
- package/dist/index168.js +23 -0
- package/dist/index169.cjs +1 -0
- package/dist/index169.js +19 -0
- package/dist/index170.cjs +1 -0
- package/dist/index170.js +26 -0
- package/dist/index171.cjs +1 -0
- package/dist/index171.js +14 -0
- package/dist/index172.cjs +1 -0
- package/dist/index172.js +37 -0
- package/dist/index173.cjs +1 -0
- package/dist/index173.js +5 -0
- package/dist/index174.cjs +1 -0
- package/dist/index174.js +21 -0
- package/dist/index175.cjs +1 -0
- package/dist/index175.js +30 -0
- package/dist/index176.cjs +1 -0
- package/dist/index176.js +39 -0
- package/dist/index177.cjs +1 -0
- package/dist/index177.js +13 -0
- package/dist/index178.cjs +1 -0
- package/dist/index178.js +28 -0
- package/dist/index179.cjs +1 -0
- package/dist/index179.js +31 -0
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +120 -12
- package/dist/index180.cjs +1 -0
- package/dist/index180.js +68 -0
- package/dist/index181.cjs +1 -0
- package/dist/index181.js +12 -0
- package/dist/index182.cjs +1 -0
- package/dist/index182.js +36 -0
- package/dist/index183.cjs +1 -0
- package/dist/index183.js +27 -0
- package/dist/index184.cjs +1 -0
- package/dist/index184.js +27 -0
- package/dist/index185.cjs +1 -0
- package/dist/index185.js +6 -0
- package/dist/index186.cjs +1 -0
- package/dist/index186.js +17 -0
- package/dist/index187.cjs +1 -0
- package/dist/index187.js +106 -0
- package/dist/index188.cjs +1 -0
- package/dist/index188.js +83 -0
- package/dist/index189.cjs +1 -0
- package/dist/index189.js +8 -0
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -36
- package/dist/index190.cjs +1 -0
- package/dist/index190.js +9 -0
- package/dist/index191.cjs +1 -0
- package/dist/index191.js +30 -0
- package/dist/index192.cjs +1 -0
- package/dist/index192.js +40 -0
- package/dist/index193.cjs +1 -0
- package/dist/index193.js +16 -0
- package/dist/index194.cjs +1 -0
- package/dist/index194.js +45 -0
- package/dist/index195.cjs +1 -0
- package/dist/index195.js +8 -0
- package/dist/index196.cjs +1 -0
- package/dist/index196.js +14 -0
- package/dist/index197.cjs +1 -0
- package/dist/index197.js +22 -0
- package/dist/index198.cjs +1 -0
- package/dist/index198.js +81 -0
- package/dist/index199.cjs +1 -0
- package/dist/index199.js +4 -0
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -31
- package/dist/index200.cjs +1 -0
- package/dist/index200.js +40 -0
- package/dist/index201.cjs +1 -0
- package/dist/index201.js +114 -0
- package/dist/index202.cjs +1 -0
- package/dist/index202.js +52 -0
- package/dist/index203.cjs +1 -0
- package/dist/index203.js +35 -0
- package/dist/index204.cjs +1 -0
- package/dist/index204.js +11 -0
- package/dist/index205.cjs +1 -0
- package/dist/index205.js +9 -0
- package/dist/index206.cjs +1 -0
- package/dist/index206.js +9 -0
- package/dist/index207.cjs +1 -0
- package/dist/index207.js +14 -0
- package/dist/index208.cjs +1 -0
- package/dist/index208.js +13 -0
- package/dist/index209.cjs +1 -0
- package/dist/index209.js +16 -0
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +464 -32
- package/dist/index210.cjs +1 -0
- package/dist/index210.js +35 -0
- package/dist/index211.cjs +1 -0
- package/dist/index211.js +7 -0
- package/dist/index212.cjs +1 -0
- package/dist/index212.js +10 -0
- package/dist/index213.cjs +1 -0
- package/dist/index213.js +11 -0
- package/dist/index214.cjs +1 -0
- package/dist/index214.js +23 -0
- package/dist/index215.cjs +1 -0
- package/dist/index215.js +34 -0
- package/dist/index216.cjs +1 -0
- package/dist/index216.js +23 -0
- package/dist/index217.cjs +1 -0
- package/dist/index217.js +6 -0
- package/dist/index218.cjs +1 -0
- package/dist/index218.js +20 -0
- package/dist/index219.cjs +1 -0
- package/dist/index219.js +13 -0
- package/dist/index22.cjs +1 -16
- package/dist/index22.js +35 -113
- package/dist/index220.cjs +1 -0
- package/dist/index220.js +24 -0
- package/dist/index221.cjs +1 -0
- package/dist/index221.js +25 -0
- package/dist/index222.cjs +1 -0
- package/dist/index222.js +8 -0
- package/dist/index223.cjs +1 -0
- package/dist/index223.js +8 -0
- package/dist/index224.cjs +1 -0
- package/dist/index224.js +11 -0
- package/dist/index225.cjs +1 -0
- package/dist/index225.js +107 -0
- package/dist/index226.cjs +1 -0
- package/dist/index226.js +115 -0
- package/dist/index227.cjs +1 -0
- package/dist/index227.js +21 -0
- package/dist/index228.cjs +1 -0
- package/dist/index228.js +174 -0
- package/dist/index229.cjs +1 -0
- package/dist/index229.js +20 -0
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +30 -41
- package/dist/index230.cjs +1 -0
- package/dist/index230.js +13 -0
- package/dist/index231.cjs +1 -0
- package/dist/index231.js +19 -0
- package/dist/index232.cjs +1 -0
- package/dist/index232.js +25 -0
- package/dist/index233.cjs +1 -0
- package/dist/index233.js +33 -0
- package/dist/index234.cjs +1 -0
- package/dist/index234.js +4 -0
- package/dist/index235.cjs +1 -0
- package/dist/index235.js +16 -0
- package/dist/index236.cjs +1 -0
- package/dist/index236.js +15 -0
- package/dist/index237.cjs +1 -0
- package/dist/index237.js +50 -0
- package/dist/index238.cjs +1 -0
- package/dist/index238.js +14 -0
- package/dist/index239.cjs +1 -0
- package/dist/index239.js +10 -0
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +31 -45
- package/dist/index240.cjs +1 -0
- package/dist/index240.js +12 -0
- package/dist/index241.cjs +1 -0
- package/dist/index241.js +16 -0
- package/dist/index242.cjs +1 -0
- package/dist/index242.js +17 -0
- package/dist/index243.cjs +1 -0
- package/dist/index243.js +12 -0
- package/dist/index244.cjs +1 -0
- package/dist/index244.js +27 -0
- package/dist/index245.cjs +1 -0
- package/dist/index245.js +15 -0
- package/dist/index246.cjs +1 -0
- package/dist/index246.js +27 -0
- package/dist/index247.cjs +2 -0
- package/dist/index247.js +27 -0
- package/dist/index248.cjs +1 -0
- package/dist/index248.js +16 -0
- package/dist/index249.cjs +1 -0
- package/dist/index249.js +18 -0
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +11 -25
- package/dist/index250.cjs +1 -0
- package/dist/index250.js +55 -0
- package/dist/index251.cjs +1 -0
- package/dist/index251.js +28 -0
- package/dist/index252.cjs +1 -0
- package/dist/index252.js +16 -0
- package/dist/index253.cjs +1 -0
- package/dist/index253.js +18 -0
- package/dist/index254.cjs +1 -0
- package/dist/index254.js +8 -0
- package/dist/index255.cjs +1 -0
- package/dist/index255.js +16 -0
- package/dist/index256.cjs +1 -0
- package/dist/index256.js +13 -0
- package/dist/index257.cjs +1 -0
- package/dist/index257.js +19 -0
- package/dist/index258.cjs +2 -0
- package/dist/index258.js +44 -0
- package/dist/index259.cjs +1 -0
- package/dist/index259.js +4 -0
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +57 -6
- package/dist/index260.cjs +1 -0
- package/dist/index260.js +8 -0
- package/dist/index261.cjs +1 -0
- package/dist/index261.js +13 -0
- package/dist/index262.cjs +1 -0
- package/dist/index262.js +22 -0
- package/dist/index263.cjs +1 -0
- package/dist/index263.js +11 -0
- package/dist/index264.cjs +1 -0
- package/dist/index264.js +69 -0
- package/dist/index265.cjs +1 -0
- package/dist/index265.js +68 -0
- package/dist/index266.cjs +1 -0
- package/dist/index266.js +189 -0
- package/dist/index267.cjs +1 -0
- package/dist/index267.js +25 -0
- package/dist/index268.cjs +1 -0
- package/dist/index268.js +45 -0
- package/dist/index269.cjs +1 -0
- package/dist/index269.js +79 -0
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +12 -13
- package/dist/index270.cjs +1 -0
- package/dist/index270.js +43 -0
- package/dist/index271.cjs +1 -0
- package/dist/index271.js +19 -0
- package/dist/index272.cjs +1 -0
- package/dist/index272.js +16 -0
- package/dist/index273.cjs +1 -0
- package/dist/index273.js +15 -0
- package/dist/index274.cjs +2 -0
- package/dist/index274.js +21 -0
- package/dist/index275.cjs +1 -0
- package/dist/index275.js +17 -0
- package/dist/index276.cjs +1 -0
- package/dist/index276.js +14 -0
- package/dist/index277.cjs +1 -0
- package/dist/index277.js +19 -0
- package/dist/index278.cjs +1 -0
- package/dist/index278.js +226 -0
- package/dist/index279.cjs +1 -0
- package/dist/index279.js +9 -0
- package/dist/index28.cjs +16 -1
- package/dist/index28.js +113 -15
- package/dist/index280.cjs +1 -0
- package/dist/index280.js +9 -0
- package/dist/index281.cjs +1 -0
- package/dist/index281.js +29 -0
- package/dist/index282.cjs +1 -0
- package/dist/index282.js +37 -0
- package/dist/index283.cjs +1 -0
- package/dist/index283.js +21 -0
- package/dist/index284.cjs +1 -0
- package/dist/index284.js +73 -0
- package/dist/index285.cjs +1 -0
- package/dist/index285.js +70 -0
- package/dist/index286.cjs +1 -0
- package/dist/index286.js +6 -0
- package/dist/index287.cjs +1 -0
- package/dist/index287.js +143 -0
- package/dist/index288.cjs +1 -0
- package/dist/index288.js +158 -0
- package/dist/index289.cjs +1 -0
- package/dist/index289.js +12 -0
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +7 -5
- package/dist/index290.cjs +1 -0
- package/dist/index290.js +116 -0
- package/dist/index291.cjs +2 -0
- package/dist/index291.js +137 -0
- package/dist/index292.cjs +1 -0
- package/dist/index292.js +43 -0
- package/dist/index293.cjs +1 -0
- package/dist/index293.js +4 -0
- package/dist/index294.cjs +1 -0
- package/dist/index294.js +209 -0
- package/dist/index295.cjs +1 -0
- package/dist/index295.js +71 -0
- package/dist/index296.cjs +1 -0
- package/dist/index296.js +14 -0
- package/dist/index297.cjs +1 -0
- package/dist/index297.js +22 -0
- package/dist/index298.cjs +1 -0
- package/dist/index298.js +645 -0
- package/dist/index299.cjs +1 -0
- package/dist/index299.js +175 -0
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +30 -12
- package/dist/index300.cjs +2 -0
- package/dist/index300.js +69 -0
- package/dist/index301.cjs +1 -0
- package/dist/index301.js +7 -0
- package/dist/index302.cjs +1 -0
- package/dist/index302.js +43 -0
- package/dist/index303.cjs +1 -0
- package/dist/index303.js +10 -0
- package/dist/index304.cjs +1 -0
- package/dist/index304.js +65 -0
- package/dist/index305.cjs +1 -0
- package/dist/index305.js +80 -0
- package/dist/index306.cjs +1 -0
- package/dist/index306.js +6 -0
- package/dist/index307.cjs +1 -0
- package/dist/index307.js +197 -0
- package/dist/index308.cjs +1 -0
- package/dist/index308.js +66 -0
- package/dist/index309.cjs +1 -0
- package/dist/index309.js +47 -0
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +28 -9
- package/dist/index310.cjs +1 -0
- package/dist/index310.js +7 -0
- package/dist/index311.cjs +1 -0
- package/dist/index311.js +107 -0
- package/dist/index312.cjs +1 -0
- package/dist/index312.js +7 -0
- package/dist/index313.cjs +1 -0
- package/dist/index313.js +4 -0
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +22 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +74 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +16 -12
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +33 -11
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +44 -13
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +150 -22
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +34 -54
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +38 -16
- package/dist/index38.cjs +2 -1
- package/dist/index38.js +59 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +32 -8
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +27 -25
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +15 -171
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +7 -102
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +2 -22
- package/dist/index43.cjs +1 -2
- package/dist/index43.js +26 -50
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +30 -23
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +3 -12
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +8 -33
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +65 -109
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +9 -16
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +26 -221
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +19 -47
- package/dist/index50.cjs +1 -2
- package/dist/index50.js +71 -59
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +19 -21
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +110 -104
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +60 -3
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +23 -16
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +40 -8
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +37 -10
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +58 -11
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +164 -12
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +40 -18
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +9 -6
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +34 -40
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +9 -78
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +50 -14
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +84 -17
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +41 -8
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +7 -190
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +6 -64
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +17 -4
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +8 -40
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +13 -34
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +7 -69
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +9 -67
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +47 -2
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +13 -231
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +17 -2
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +13 -6
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +6 -11
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +36 -8
- package/dist/index79.cjs +1 -5
- package/dist/index79.js +9 -56
- package/dist/index80.cjs +1 -2
- package/dist/index80.js +8 -34
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +26 -5
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +11 -2
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +14 -6
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +111 -28
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +79 -26
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +182 -3
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +6 -11
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +13 -19
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +13 -12
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +17 -16
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +93 -8
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +71 -639
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +86 -170
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +138 -18
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +68 -126
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +24 -2
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +110 -2
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +6 -37
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +50 -38
- package/dist/index99.cjs +1 -2
- package/dist/index99.js +17 -3
- package/dist/src/lib/digestKey/digestKey.d.ts +4 -2
- package/dist/src/lib/result.d.ts +13 -9
- package/dist/src/lib/utils.d.ts +2 -1
- package/package.json +2 -3
package/dist/index74.js
CHANGED
|
@@ -1,234 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
const T = /* @__PURE__ */ Array.from({ length: 256 }, (t, n) => n.toString(16).padStart(2, "0"));
|
|
15
|
-
function B(t) {
|
|
16
|
-
b(t);
|
|
17
|
-
let n = "";
|
|
18
|
-
for (let r = 0; r < t.length; r++)
|
|
19
|
-
n += T[t[r]];
|
|
20
|
-
return n;
|
|
21
|
-
}
|
|
22
|
-
function S(t) {
|
|
23
|
-
const n = t.toString(16);
|
|
24
|
-
return n.length & 1 ? "0" + n : n;
|
|
25
|
-
}
|
|
26
|
-
function U(t) {
|
|
27
|
-
if (typeof t != "string")
|
|
28
|
-
throw new Error("hex string expected, got " + typeof t);
|
|
29
|
-
return t === "" ? d : BigInt("0x" + t);
|
|
30
|
-
}
|
|
31
|
-
const s = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
|
|
32
|
-
function E(t) {
|
|
33
|
-
if (t >= s._0 && t <= s._9)
|
|
34
|
-
return t - s._0;
|
|
35
|
-
if (t >= s.A && t <= s.F)
|
|
36
|
-
return t - (s.A - 10);
|
|
37
|
-
if (t >= s.a && t <= s.f)
|
|
38
|
-
return t - (s.a - 10);
|
|
39
|
-
}
|
|
40
|
-
function m(t) {
|
|
41
|
-
if (typeof t != "string")
|
|
42
|
-
throw new Error("hex string expected, got " + typeof t);
|
|
43
|
-
const n = t.length, r = n / 2;
|
|
44
|
-
if (n % 2)
|
|
45
|
-
throw new Error("hex string expected, got unpadded hex of length " + n);
|
|
46
|
-
const e = new Uint8Array(r);
|
|
47
|
-
for (let o = 0, i = 0; o < r; o++, i += 2) {
|
|
48
|
-
const a = E(t.charCodeAt(i)), f = E(t.charCodeAt(i + 1));
|
|
49
|
-
if (a === void 0 || f === void 0) {
|
|
50
|
-
const c = t[i] + t[i + 1];
|
|
51
|
-
throw new Error('hex string expected, got non-hex character "' + c + '" at index ' + i);
|
|
52
|
-
}
|
|
53
|
-
e[o] = a * 16 + f;
|
|
54
|
-
}
|
|
55
|
-
return e;
|
|
56
|
-
}
|
|
57
|
-
function V(t) {
|
|
58
|
-
return U(B(t));
|
|
59
|
-
}
|
|
60
|
-
function H(t) {
|
|
61
|
-
return b(t), U(B(Uint8Array.from(t).reverse()));
|
|
62
|
-
}
|
|
63
|
-
function v(t, n) {
|
|
64
|
-
return m(t.toString(16).padStart(n * 2, "0"));
|
|
65
|
-
}
|
|
66
|
-
function C(t, n) {
|
|
67
|
-
return v(t, n).reverse();
|
|
68
|
-
}
|
|
69
|
-
function M(t) {
|
|
70
|
-
return m(S(t));
|
|
71
|
-
}
|
|
72
|
-
function R(t, n, r) {
|
|
73
|
-
let e;
|
|
74
|
-
if (typeof n == "string")
|
|
75
|
-
try {
|
|
76
|
-
e = m(n);
|
|
77
|
-
} catch (i) {
|
|
78
|
-
throw new Error(t + " must be hex string or Uint8Array, cause: " + i);
|
|
79
|
-
}
|
|
80
|
-
else if (h(n))
|
|
81
|
-
e = Uint8Array.from(n);
|
|
82
|
-
else
|
|
83
|
-
throw new Error(t + " must be hex string or Uint8Array");
|
|
84
|
-
const o = e.length;
|
|
85
|
-
if (typeof r == "number" && o !== r)
|
|
86
|
-
throw new Error(t + " of length " + r + " expected, got " + o);
|
|
87
|
-
return e;
|
|
88
|
-
}
|
|
89
|
-
function _(...t) {
|
|
90
|
-
let n = 0;
|
|
91
|
-
for (let e = 0; e < t.length; e++) {
|
|
92
|
-
const o = t[e];
|
|
93
|
-
b(o), n += o.length;
|
|
94
|
-
}
|
|
95
|
-
const r = new Uint8Array(n);
|
|
96
|
-
for (let e = 0, o = 0; e < t.length; e++) {
|
|
97
|
-
const i = t[e];
|
|
98
|
-
r.set(i, o), o += i.length;
|
|
99
|
-
}
|
|
100
|
-
return r;
|
|
101
|
-
}
|
|
102
|
-
function j(t, n) {
|
|
103
|
-
if (t.length !== n.length)
|
|
104
|
-
return !1;
|
|
105
|
-
let r = 0;
|
|
106
|
-
for (let e = 0; e < t.length; e++)
|
|
107
|
-
r |= t[e] ^ n[e];
|
|
108
|
-
return r === 0;
|
|
109
|
-
}
|
|
110
|
-
function z(t) {
|
|
111
|
-
if (typeof t != "string")
|
|
112
|
-
throw new Error("string expected");
|
|
113
|
-
return new Uint8Array(new TextEncoder().encode(t));
|
|
114
|
-
}
|
|
115
|
-
const w = (t) => typeof t == "bigint" && d <= t;
|
|
116
|
-
function N(t, n, r) {
|
|
117
|
-
return w(t) && w(n) && w(r) && n <= t && t < r;
|
|
118
|
-
}
|
|
119
|
-
function D(t, n, r, e) {
|
|
120
|
-
if (!N(n, r, e))
|
|
121
|
-
throw new Error("expected valid " + t + ": " + r + " <= n < " + e + ", got " + n);
|
|
122
|
-
}
|
|
123
|
-
function G(t) {
|
|
124
|
-
let n;
|
|
125
|
-
for (n = 0; t > d; t >>= y, n += 1)
|
|
126
|
-
;
|
|
127
|
-
return n;
|
|
128
|
-
}
|
|
129
|
-
function P(t, n) {
|
|
130
|
-
return t >> BigInt(n) & y;
|
|
131
|
-
}
|
|
132
|
-
function W(t, n, r) {
|
|
133
|
-
return t | (r ? y : d) << BigInt(n);
|
|
134
|
-
}
|
|
135
|
-
const q = (t) => (I << BigInt(t - 1)) - y, p = (t) => new Uint8Array(t), A = (t) => Uint8Array.from(t);
|
|
136
|
-
function J(t, n, r) {
|
|
137
|
-
if (typeof t != "number" || t < 2)
|
|
138
|
-
throw new Error("hashLen must be a number");
|
|
139
|
-
if (typeof n != "number" || n < 2)
|
|
140
|
-
throw new Error("qByteLen must be a number");
|
|
141
|
-
if (typeof r != "function")
|
|
142
|
-
throw new Error("hmacFn must be a function");
|
|
143
|
-
let e = p(t), o = p(t), i = 0;
|
|
144
|
-
const a = () => {
|
|
145
|
-
e.fill(1), o.fill(0), i = 0;
|
|
146
|
-
}, f = (...u) => r(o, e, ...u), c = (u = p()) => {
|
|
147
|
-
o = f(A([0]), u), e = f(), u.length !== 0 && (o = f(A([1]), u), e = f());
|
|
148
|
-
}, x = () => {
|
|
149
|
-
if (i++ >= 1e3)
|
|
150
|
-
throw new Error("drbg: tried 1000 values");
|
|
151
|
-
let u = 0;
|
|
152
|
-
const l = [];
|
|
153
|
-
for (; u < n; ) {
|
|
154
|
-
e = f();
|
|
155
|
-
const g = e.slice();
|
|
156
|
-
l.push(g), u += e.length;
|
|
157
|
-
}
|
|
158
|
-
return _(...l);
|
|
159
|
-
};
|
|
160
|
-
return (u, l) => {
|
|
161
|
-
a(), c(u);
|
|
162
|
-
let g;
|
|
163
|
-
for (; !(g = l(x())); )
|
|
164
|
-
c();
|
|
165
|
-
return a(), g;
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
const k = {
|
|
169
|
-
bigint: (t) => typeof t == "bigint",
|
|
170
|
-
function: (t) => typeof t == "function",
|
|
171
|
-
boolean: (t) => typeof t == "boolean",
|
|
172
|
-
string: (t) => typeof t == "string",
|
|
173
|
-
stringOrUint8Array: (t) => typeof t == "string" || h(t),
|
|
174
|
-
isSafeInteger: (t) => Number.isSafeInteger(t),
|
|
175
|
-
array: (t) => Array.isArray(t),
|
|
176
|
-
field: (t, n) => n.Fp.isValid(t),
|
|
177
|
-
hash: (t) => typeof t == "function" && Number.isSafeInteger(t.outputLen)
|
|
178
|
-
};
|
|
179
|
-
function K(t, n, r = {}) {
|
|
180
|
-
const e = (o, i, a) => {
|
|
181
|
-
const f = k[i];
|
|
182
|
-
if (typeof f != "function")
|
|
183
|
-
throw new Error("invalid validator function");
|
|
184
|
-
const c = t[o];
|
|
185
|
-
if (!(a && c === void 0) && !f(c, t))
|
|
186
|
-
throw new Error("param " + String(o) + " is invalid. Expected " + i + ", got " + c);
|
|
187
|
-
};
|
|
188
|
-
for (const [o, i] of Object.entries(n))
|
|
189
|
-
e(o, i, !1);
|
|
190
|
-
for (const [o, i] of Object.entries(r))
|
|
191
|
-
e(o, i, !0);
|
|
192
|
-
return t;
|
|
193
|
-
}
|
|
194
|
-
const Q = () => {
|
|
195
|
-
throw new Error("not implemented");
|
|
196
|
-
};
|
|
197
|
-
function X(t) {
|
|
198
|
-
const n = /* @__PURE__ */ new WeakMap();
|
|
199
|
-
return (r, ...e) => {
|
|
200
|
-
const o = n.get(r);
|
|
201
|
-
if (o !== void 0)
|
|
202
|
-
return o;
|
|
203
|
-
const i = t(r, ...e);
|
|
204
|
-
return n.set(r, i), i;
|
|
205
|
-
};
|
|
1
|
+
import { numberToHex as o } from "./index150.js";
|
|
2
|
+
import { formatFeeHistory as f } from "./index243.js";
|
|
3
|
+
async function u(r, { blockCount: i, blockNumber: e, blockTag: n = "latest", rewardPercentiles: s }) {
|
|
4
|
+
const t = typeof e == "bigint" ? o(e) : void 0, a = await r.request({
|
|
5
|
+
method: "eth_feeHistory",
|
|
6
|
+
params: [
|
|
7
|
+
o(i),
|
|
8
|
+
t || n,
|
|
9
|
+
s
|
|
10
|
+
]
|
|
11
|
+
}, { dedupe: !!t });
|
|
12
|
+
return f(a);
|
|
206
13
|
}
|
|
207
14
|
export {
|
|
208
|
-
|
|
209
|
-
O as abool,
|
|
210
|
-
b as abytes,
|
|
211
|
-
P as bitGet,
|
|
212
|
-
G as bitLen,
|
|
213
|
-
q as bitMask,
|
|
214
|
-
W as bitSet,
|
|
215
|
-
B as bytesToHex,
|
|
216
|
-
V as bytesToNumberBE,
|
|
217
|
-
H as bytesToNumberLE,
|
|
218
|
-
_ as concatBytes,
|
|
219
|
-
J as createHmacDrbg,
|
|
220
|
-
R as ensureBytes,
|
|
221
|
-
j as equalBytes,
|
|
222
|
-
m as hexToBytes,
|
|
223
|
-
U as hexToNumber,
|
|
224
|
-
N as inRange,
|
|
225
|
-
h as isBytes,
|
|
226
|
-
X as memoized,
|
|
227
|
-
Q as notImplemented,
|
|
228
|
-
v as numberToBytesBE,
|
|
229
|
-
C as numberToBytesLE,
|
|
230
|
-
S as numberToHexUnpadded,
|
|
231
|
-
M as numberToVarBytesBE,
|
|
232
|
-
z as utf8ToBytes,
|
|
233
|
-
K as validateObject
|
|
15
|
+
u as getFeeHistory
|
|
234
16
|
};
|
package/dist/index75.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 r=require("./index180.cjs"),a=require("./index157.cjs");async function i(g,{filter:t}){const n="strict"in t&&t.strict,e=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof e[0]=="string")return e;const s=e.map(o=>a.formatLog(o));return!("abi"in t)||!t.abi?s:r.parseEventLogs({abi:t.abi,logs:s,strict:n})}exports.getFilterChanges=i;
|
package/dist/index75.js
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { parseEventLogs as a } from "./index180.js";
|
|
2
|
+
import { formatLog as i } from "./index157.js";
|
|
3
|
+
async function m(e, { filter: t }) {
|
|
4
|
+
const n = "strict" in t && t.strict, o = await t.request({
|
|
5
|
+
method: "eth_getFilterChanges",
|
|
6
|
+
params: [t.id]
|
|
7
|
+
});
|
|
8
|
+
if (typeof o[0] == "string")
|
|
9
|
+
return o;
|
|
10
|
+
const s = o.map((r) => i(r));
|
|
11
|
+
return !("abi" in t) || !t.abi ? s : a({
|
|
12
|
+
abi: t.abi,
|
|
13
|
+
logs: s,
|
|
14
|
+
strict: n
|
|
15
|
+
});
|
|
16
|
+
}
|
|
2
17
|
export {
|
|
3
|
-
|
|
18
|
+
m as getFilterChanges
|
|
4
19
|
};
|
package/dist/index76.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 r=require("./index180.cjs"),a=require("./index157.cjs");async function g(n,{filter:t}){const o=t.strict??!1,e=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(s=>a.formatLog(s));return t.abi?r.parseEventLogs({abi:t.abi,logs:e,strict:o}):e}exports.getFilterLogs=g;
|
package/dist/index76.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { parseEventLogs as a } from "./index180.js";
|
|
2
|
+
import { formatLog as e } from "./index157.js";
|
|
3
|
+
async function c(g, { filter: t }) {
|
|
4
|
+
const s = t.strict ?? !1, o = (await t.request({
|
|
5
|
+
method: "eth_getFilterLogs",
|
|
6
|
+
params: [t.id]
|
|
7
|
+
})).map((r) => e(r));
|
|
8
|
+
return t.abi ? a({
|
|
9
|
+
abi: t.abi,
|
|
10
|
+
logs: o,
|
|
11
|
+
strict: s
|
|
12
|
+
}) : o;
|
|
6
13
|
}
|
|
7
14
|
export {
|
|
8
|
-
|
|
15
|
+
c as getFilterLogs
|
|
9
16
|
};
|
package/dist/index77.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(
|
|
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/index77.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
function r(
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
logIndex: n.logIndex ? Number(n.logIndex) : null,
|
|
7
|
-
transactionHash: n.transactionHash ? n.transactionHash : null,
|
|
8
|
-
transactionIndex: n.transactionIndex ? Number(n.transactionIndex) : null,
|
|
9
|
-
...a ? { args: t, eventName: a } : {}
|
|
10
|
-
};
|
|
1
|
+
async function r(e) {
|
|
2
|
+
const t = await e.request({
|
|
3
|
+
method: "eth_gasPrice"
|
|
4
|
+
});
|
|
5
|
+
return BigInt(t);
|
|
11
6
|
}
|
|
12
7
|
export {
|
|
13
|
-
r as
|
|
8
|
+
r as getGasPrice
|
|
14
9
|
};
|
package/dist/index78.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("./index176.cjs"),q=require("./index180.cjs"),m=require("./index150.cjs"),y=require("./index157.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/index78.js
CHANGED
|
@@ -1,10 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { encodeEventTopics as h } from "./index176.js";
|
|
2
|
+
import { parseEventLogs as l } from "./index180.js";
|
|
3
|
+
import { numberToHex as u } from "./index150.js";
|
|
4
|
+
import { formatLog as y } from "./index157.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;
|
|
35
|
+
}
|
|
8
36
|
export {
|
|
9
|
-
|
|
37
|
+
T as getLogs
|
|
10
38
|
};
|
package/dist/index79.cjs
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`),{name:"AbiEncodingArrayLengthMismatchError"})}}class a extends n.BaseError{constructor({expectedSize:r,value:e}){super(`Size of bytes "${e}" (bytes${i.size(e)}) does not match expected size (bytes${r}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class c extends n.BaseError{constructor({expectedLength:r,givenLength:e}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${r}`,`Given length (values): ${e}`].join(`
|
|
3
|
-
`),{name:"AbiEncodingLengthMismatchError"})}}class d extends n.BaseError{constructor({expectedSize:r,givenSize:e}){super(`Expected bytes${r}, got bytes${e}.`,{name:"BytesSizeMismatchError"})}}class E extends n.BaseError{constructor(r,{docsPath:e}){super([`Type "${r}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
|
|
4
|
-
`),{docsPath:e,name:"InvalidAbiEncodingType"})}}class g extends n.BaseError{constructor(r){super([`Value "${r}" is not a valid array.`].join(`
|
|
5
|
-
`),{name:"InvalidArrayError"})}}exports.AbiEncodingArrayLengthMismatchError=o;exports.AbiEncodingBytesSizeMismatchError=a;exports.AbiEncodingLengthMismatchError=c;exports.BytesSizeMismatchError=d;exports.InvalidAbiEncodingTypeError=E;exports.InvalidArrayError=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index150.cjs"),u=require("./index249.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/index79.js
CHANGED
|
@@ -1,59 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
].join(`
|
|
10
|
-
`), { name: "AbiEncodingArrayLengthMismatchError" });
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
class d extends n {
|
|
14
|
-
constructor({ expectedSize: e, value: r }) {
|
|
15
|
-
super(`Size of bytes "${r}" (bytes${i(r)}) does not match expected size (bytes${e}).`, { name: "AbiEncodingBytesSizeMismatchError" });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
class m extends n {
|
|
19
|
-
constructor({ expectedLength: e, givenLength: r }) {
|
|
20
|
-
super([
|
|
21
|
-
"ABI encoding params/values length mismatch.",
|
|
22
|
-
`Expected length (params): ${e}`,
|
|
23
|
-
`Given length (values): ${r}`
|
|
24
|
-
].join(`
|
|
25
|
-
`), { name: "AbiEncodingLengthMismatchError" });
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
class E extends n {
|
|
29
|
-
constructor({ expectedSize: e, givenSize: r }) {
|
|
30
|
-
super(`Expected bytes${e}, got bytes${r}.`, {
|
|
31
|
-
name: "BytesSizeMismatchError"
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
class g extends n {
|
|
36
|
-
constructor(e, { docsPath: r }) {
|
|
37
|
-
super([
|
|
38
|
-
`Type "${e}" is not a valid encoding type.`,
|
|
39
|
-
"Please provide a valid ABI type."
|
|
40
|
-
].join(`
|
|
41
|
-
`), { docsPath: r, name: "InvalidAbiEncodingType" });
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
class l extends n {
|
|
45
|
-
constructor(e) {
|
|
46
|
-
super([`Value "${e}" is not a valid array.`].join(`
|
|
47
|
-
`), {
|
|
48
|
-
name: "InvalidArrayError"
|
|
49
|
-
});
|
|
50
|
-
}
|
|
1
|
+
import { numberToHex as c } from "./index150.js";
|
|
2
|
+
import { formatProof as s } from "./index249.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]
|
|
7
|
+
});
|
|
8
|
+
return s(m);
|
|
51
9
|
}
|
|
52
10
|
export {
|
|
53
|
-
|
|
54
|
-
d as AbiEncodingBytesSizeMismatchError,
|
|
55
|
-
m as AbiEncodingLengthMismatchError,
|
|
56
|
-
E as BytesSizeMismatchError,
|
|
57
|
-
g as InvalidAbiEncodingTypeError,
|
|
58
|
-
l as InvalidArrayError
|
|
11
|
+
d as getProof
|
|
59
12
|
};
|
package/dist/index80.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`),{cause:r,name:"TipAboveFeeCapError"})}}Object.defineProperty(n,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});exports.FeeCapTooHighError=i;exports.TipAboveFeeCapError=n;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index150.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/index80.js
CHANGED
|
@@ -1,37 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
});
|
|
9
|
-
}
|
|
1
|
+
import { numberToHex as d } from "./index150.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
|
+
});
|
|
10
8
|
}
|
|
11
|
-
Object.defineProperty(n, "nodeMessage", {
|
|
12
|
-
enumerable: !0,
|
|
13
|
-
configurable: !0,
|
|
14
|
-
writable: !0,
|
|
15
|
-
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
16
|
-
});
|
|
17
|
-
class h extends o {
|
|
18
|
-
constructor({ cause: r, maxPriorityFeePerGas: e, maxFeePerGas: t } = {}) {
|
|
19
|
-
super([
|
|
20
|
-
`The provided tip (\`maxPriorityFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t ? ` = ${a(t)} gwei` : ""}).`
|
|
21
|
-
].join(`
|
|
22
|
-
`), {
|
|
23
|
-
cause: r,
|
|
24
|
-
name: "TipAboveFeeCapError"
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
Object.defineProperty(h, "nodeMessage", {
|
|
29
|
-
enumerable: !0,
|
|
30
|
-
configurable: !0,
|
|
31
|
-
writable: !0,
|
|
32
|
-
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
33
|
-
});
|
|
34
9
|
export {
|
|
35
|
-
|
|
36
|
-
h as TipAboveFeeCapError
|
|
10
|
+
i as getStorageAt
|
|
37
11
|
};
|
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 f=require("./index135.cjs"),s=require("./index150.cjs"),g=require("./index156.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/index81.js
CHANGED
|
@@ -1,8 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { TransactionNotFoundError as p } from "./index135.js";
|
|
2
|
+
import { numberToHex as s } from "./index150.js";
|
|
3
|
+
import { formatTransaction as T } from "./index156.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);
|
|
5
26
|
}
|
|
6
27
|
export {
|
|
7
|
-
|
|
28
|
+
h as getTransaction
|
|
8
29
|
};
|
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 u=require("./index29.cjs"),i=require("./index69.cjs"),g=require("./index81.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/index82.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { getAction as b } from "./index29.js";
|
|
2
|
+
import { getBlockNumber as t } from "./index69.js";
|
|
3
|
+
import { getTransaction as f } from "./index81.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;
|
|
10
|
+
}
|
|
2
11
|
export {
|
|
3
|
-
|
|
12
|
+
N as getTransactionConfirmations
|
|
4
13
|
};
|
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 a=require("./index182.cjs"),u=require("./index150.cjs");async function i(e,{address:n,blockTag:o="latest",blockNumber:t}){const r=await e.request({method:"eth_getTransactionCount",params:[n,typeof t=="bigint"?u.numberToHex(t):o]},{dedupe:!!t});return a.hexToNumber(r)}exports.getTransactionCount=i;
|
package/dist/index83.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { hexToNumber as r } from "./index182.js";
|
|
2
|
+
import { numberToHex as i } from "./index150.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: [
|
|
7
|
+
e,
|
|
8
|
+
typeof t == "bigint" ? i(t) : n
|
|
9
|
+
]
|
|
10
|
+
}, {
|
|
11
|
+
dedupe: !!t
|
|
12
|
+
});
|
|
13
|
+
return r(a);
|
|
6
14
|
}
|
|
7
15
|
export {
|
|
8
|
-
|
|
16
|
+
m as getTransactionCount
|
|
9
17
|
};
|
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 N=require("./index21.cjs"),P=require("./index122.cjs"),v=require("./index38.cjs"),_=require("./index127.cjs"),x=require("./index170.cjs"),O=require("./index177.cjs"),T=require("./index214.cjs"),y=require("./index221.cjs"),B=require("./index29.cjs"),M=require("./index33.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;
|