@gardenfi/utils 2.1.2 → 2.1.3-beta.2
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 -20
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +11 -3
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +5 -11
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +14 -19
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +3 -8
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +26 -18
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +4 -643
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +6 -172
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +57 -10
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +122 -124
- package/dist/index109.cjs +1 -2
- package/dist/index109.js +8 -3
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +22 -2
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +18 -2
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +39 -36
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +20 -37
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +12 -5
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +6 -10
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +106 -6
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +3 -21
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +4 -5
- 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 -93
- 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 -32
- 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 -16
- package/dist/index21.js +461 -111
- 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 -1
- package/dist/index22.js +36 -31
- 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 +28 -0
- package/dist/index231.cjs +1 -0
- package/dist/index231.js +16 -0
- package/dist/index232.cjs +1 -0
- package/dist/index232.js +18 -0
- package/dist/index233.cjs +1 -0
- package/dist/index233.js +8 -0
- package/dist/index234.cjs +1 -0
- package/dist/index234.js +16 -0
- package/dist/index235.cjs +1 -0
- package/dist/index235.js +13 -0
- package/dist/index236.cjs +1 -0
- package/dist/index236.js +19 -0
- package/dist/index237.cjs +1 -0
- package/dist/index237.js +13 -0
- package/dist/index238.cjs +1 -0
- package/dist/index238.js +19 -0
- package/dist/index239.cjs +1 -0
- package/dist/index239.js +25 -0
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +31 -45
- package/dist/index240.cjs +1 -0
- package/dist/index240.js +33 -0
- package/dist/index241.cjs +1 -0
- package/dist/index241.js +4 -0
- package/dist/index242.cjs +1 -0
- package/dist/index242.js +16 -0
- package/dist/index243.cjs +1 -0
- package/dist/index243.js +15 -0
- package/dist/index244.cjs +1 -0
- package/dist/index244.js +50 -0
- package/dist/index245.cjs +1 -0
- package/dist/index245.js +14 -0
- package/dist/index246.cjs +1 -0
- package/dist/index246.js +10 -0
- package/dist/index247.cjs +1 -0
- package/dist/index247.js +12 -0
- package/dist/index248.cjs +1 -0
- package/dist/index248.js +16 -0
- package/dist/index249.cjs +1 -0
- package/dist/index249.js +17 -0
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +11 -25
- package/dist/index250.cjs +1 -0
- package/dist/index250.js +12 -0
- package/dist/index251.cjs +1 -0
- package/dist/index251.js +27 -0
- package/dist/index252.cjs +1 -0
- package/dist/index252.js +15 -0
- package/dist/index253.cjs +1 -0
- package/dist/index253.js +27 -0
- package/dist/index254.cjs +2 -0
- package/dist/index254.js +27 -0
- package/dist/index255.cjs +1 -0
- package/dist/index255.js +16 -0
- package/dist/index256.cjs +1 -0
- package/dist/index256.js +18 -0
- package/dist/index257.cjs +1 -0
- package/dist/index257.js +55 -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 +43 -0
- package/dist/index287.cjs +1 -0
- package/dist/index287.js +4 -0
- package/dist/index288.cjs +1 -0
- package/dist/index288.js +209 -0
- package/dist/index289.cjs +1 -0
- package/dist/index289.js +6 -0
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +7 -5
- package/dist/index290.cjs +1 -0
- package/dist/index290.js +143 -0
- package/dist/index291.cjs +1 -0
- package/dist/index291.js +158 -0
- package/dist/index292.cjs +1 -0
- package/dist/index292.js +12 -0
- package/dist/index293.cjs +1 -0
- package/dist/index293.js +116 -0
- package/dist/index294.cjs +2 -0
- package/dist/index294.js +137 -0
- package/dist/index295.cjs +1 -0
- package/dist/index295.js +14 -0
- package/dist/index296.cjs +1 -0
- package/dist/index296.js +22 -0
- package/dist/index297.cjs +1 -0
- package/dist/index297.js +71 -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 +42 -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 -1
- package/dist/index43.js +26 -17
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +30 -6
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +3 -21
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +9 -8
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +66 -29
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -25
- package/dist/index49.cjs +1 -2
- package/dist/index49.js +27 -64
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +19 -47
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +70 -50
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +19 -12
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +109 -23
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +59 -74
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +24 -7
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +40 -32
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +37 -15
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +59 -2
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +165 -8
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +39 -19
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +9 -40
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +36 -34
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +9 -69
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +48 -110
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +83 -65
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +42 -2
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +8 -16
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +5 -222
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +17 -231
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +8 -12
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +13 -34
- package/dist/index71.cjs +1 -2
- package/dist/index71.js +7 -59
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +9 -21
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +46 -18
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +13 -42
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +16 -8
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +13 -104
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +6 -3
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +35 -17
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +9 -8
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +8 -10
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +26 -11
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +10 -13
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +14 -6
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +111 -74
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +80 -14
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +180 -17
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +5 -190
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +13 -64
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +13 -4
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +17 -16
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +94 -2
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +75 -6
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +88 -11
- package/dist/index93.cjs +1 -5
- package/dist/index93.js +137 -55
- package/dist/index94.cjs +1 -2
- package/dist/index94.js +68 -33
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +23 -5
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +109 -3
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +6 -6
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +50 -32
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +16 -27
- package/dist/src/lib/approve.d.ts +2 -1
- 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 +3 -2
- package/package.json +2 -3
package/dist/index58.js
CHANGED
|
@@ -1,11 +1,168 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { toRpc as J } from "./index240.js";
|
|
2
|
+
import { parseAccount as K } from "./index45.js";
|
|
3
|
+
import { multicall3Abi as z } from "./index21.js";
|
|
4
|
+
import { aggregate3Signature as Q } from "./index241.js";
|
|
5
|
+
import { deploylessCallViaBytecodeBytecode as U, deploylessCallViaFactoryBytecode as X } from "./index118.js";
|
|
6
|
+
import { BaseError as R } from "./index38.js";
|
|
7
|
+
import { ClientChainNotConfiguredError as T, ChainDoesNotSupportContract as Y } from "./index139.js";
|
|
8
|
+
import { CounterfactualDeploymentFailedError as Z, RawContractError as tt } from "./index127.js";
|
|
9
|
+
import { decodeFunctionResult as at } from "./index170.js";
|
|
10
|
+
import { encodeDeployData as j } from "./index174.js";
|
|
11
|
+
import { encodeFunctionData as et } from "./index177.js";
|
|
12
|
+
import { getChainContractAddress as rt } from "./index214.js";
|
|
13
|
+
import { numberToHex as G } from "./index150.js";
|
|
14
|
+
import { getCallError as ot } from "./index242.js";
|
|
15
|
+
import { extract as ct } from "./index243.js";
|
|
16
|
+
import { formatTransactionRequest as nt } from "./index184.js";
|
|
17
|
+
import { createBatchScheduler as st } from "./index49.js";
|
|
18
|
+
import { serializeStateOverride as it } from "./index244.js";
|
|
19
|
+
import { assertRequest as lt } from "./index197.js";
|
|
20
|
+
import { parseAbi as L } from "./index245.js";
|
|
21
|
+
async function _t(t, a) {
|
|
22
|
+
var E, O, P, V;
|
|
23
|
+
const { account: e = t.account, batch: i = !!((E = t.batch) != null && E.multicall), blockNumber: r, blockTag: g = "latest", accessList: x, blobs: B, blockOverrides: w, code: n, data: f, factory: l, factoryData: m, gas: p, gasPrice: F, maxFeePerBlobGas: C, maxFeePerGas: b, maxPriorityFeePerGas: h, nonce: y, to: o, value: k, stateOverride: M, ...$ } = a, D = e ? K(e) : void 0;
|
|
24
|
+
if (n && (l || m))
|
|
25
|
+
throw new R("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
26
|
+
if (n && o)
|
|
27
|
+
throw new R("Cannot provide both `code` & `to` as parameters.");
|
|
28
|
+
const S = n && f, A = l && m && o && f, q = S || A, W = S ? ft({
|
|
29
|
+
code: n,
|
|
30
|
+
data: f
|
|
31
|
+
}) : A ? mt({
|
|
32
|
+
data: f,
|
|
33
|
+
factory: l,
|
|
34
|
+
factoryData: m,
|
|
35
|
+
to: o
|
|
36
|
+
}) : f;
|
|
37
|
+
try {
|
|
38
|
+
lt(a);
|
|
39
|
+
const c = (typeof r == "bigint" ? G(r) : void 0) || g, d = w ? J(w) : void 0, u = it(M), _ = (V = (P = (O = t.chain) == null ? void 0 : O.formatters) == null ? void 0 : P.transactionRequest) == null ? void 0 : V.format, N = (_ || nt)({
|
|
40
|
+
// Pick out extra data that might exist on the chain's transaction request type.
|
|
41
|
+
...ct($, { format: _ }),
|
|
42
|
+
from: D == null ? void 0 : D.address,
|
|
43
|
+
accessList: x,
|
|
44
|
+
blobs: B,
|
|
45
|
+
data: W,
|
|
46
|
+
gas: p,
|
|
47
|
+
gasPrice: F,
|
|
48
|
+
maxFeePerBlobGas: C,
|
|
49
|
+
maxFeePerGas: b,
|
|
50
|
+
maxPriorityFeePerGas: h,
|
|
51
|
+
nonce: y,
|
|
52
|
+
to: q ? void 0 : o,
|
|
53
|
+
value: k
|
|
54
|
+
});
|
|
55
|
+
if (i && dt({ request: N }) && !u && !d)
|
|
56
|
+
try {
|
|
57
|
+
return await ut(t, {
|
|
58
|
+
...N,
|
|
59
|
+
blockNumber: r,
|
|
60
|
+
blockTag: g
|
|
61
|
+
});
|
|
62
|
+
} catch (s) {
|
|
63
|
+
if (!(s instanceof T) && !(s instanceof Y))
|
|
64
|
+
throw s;
|
|
65
|
+
}
|
|
66
|
+
const I = (() => {
|
|
67
|
+
const s = [
|
|
68
|
+
N,
|
|
69
|
+
c
|
|
70
|
+
];
|
|
71
|
+
return u && d ? [...s, u, d] : u ? [...s, u] : d ? [...s, {}, d] : s;
|
|
72
|
+
})(), H = await t.request({
|
|
73
|
+
method: "eth_call",
|
|
74
|
+
params: I
|
|
75
|
+
});
|
|
76
|
+
return H === "0x" ? { data: void 0 } : { data: H };
|
|
77
|
+
} catch (v) {
|
|
78
|
+
const c = pt(v), { offchainLookup: d, offchainLookupSignature: u } = await import("./index201.js");
|
|
79
|
+
if (t.ccipRead !== !1 && (c == null ? void 0 : c.slice(0, 10)) === u && o)
|
|
80
|
+
return { data: await d(t, { data: c, to: o }) };
|
|
81
|
+
throw q && (c == null ? void 0 : c.slice(0, 10)) === "0x101bb98d" ? new Z({ factory: l }) : ot(v, {
|
|
82
|
+
...a,
|
|
83
|
+
account: D,
|
|
84
|
+
chain: t.chain
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function dt({ request: t }) {
|
|
89
|
+
const { data: a, to: e, ...i } = t;
|
|
90
|
+
return !(!a || a.startsWith(Q) || !e || Object.values(i).filter((r) => typeof r < "u").length > 0);
|
|
91
|
+
}
|
|
92
|
+
async function ut(t, a) {
|
|
93
|
+
var C;
|
|
94
|
+
const { batchSize: e = 1024, wait: i = 0 } = typeof ((C = t.batch) == null ? void 0 : C.multicall) == "object" ? t.batch.multicall : {}, { blockNumber: r, blockTag: g = "latest", data: x, multicallAddress: B, to: w } = a;
|
|
95
|
+
let n = B;
|
|
96
|
+
if (!n) {
|
|
97
|
+
if (!t.chain)
|
|
98
|
+
throw new T();
|
|
99
|
+
n = rt({
|
|
100
|
+
blockNumber: r,
|
|
101
|
+
chain: t.chain,
|
|
102
|
+
contract: "multicall3"
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
const l = (typeof r == "bigint" ? G(r) : void 0) || g, { schedule: m } = st({
|
|
106
|
+
id: `${t.uid}.${l}`,
|
|
107
|
+
wait: i,
|
|
108
|
+
shouldSplitBatch(b) {
|
|
109
|
+
return b.reduce((y, { data: o }) => y + (o.length - 2), 0) > e * 2;
|
|
110
|
+
},
|
|
111
|
+
fn: async (b) => {
|
|
112
|
+
const h = b.map((k) => ({
|
|
113
|
+
allowFailure: !0,
|
|
114
|
+
callData: k.data,
|
|
115
|
+
target: k.to
|
|
116
|
+
})), y = et({
|
|
117
|
+
abi: z,
|
|
118
|
+
args: [h],
|
|
119
|
+
functionName: "aggregate3"
|
|
120
|
+
}), o = await t.request({
|
|
121
|
+
method: "eth_call",
|
|
122
|
+
params: [
|
|
123
|
+
{
|
|
124
|
+
data: y,
|
|
125
|
+
to: n
|
|
126
|
+
},
|
|
127
|
+
l
|
|
128
|
+
]
|
|
129
|
+
});
|
|
130
|
+
return at({
|
|
131
|
+
abi: z,
|
|
132
|
+
args: [h],
|
|
133
|
+
functionName: "aggregate3",
|
|
134
|
+
data: o || "0x"
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}), [{ returnData: p, success: F }] = await m({ data: x, to: w });
|
|
138
|
+
if (!F)
|
|
139
|
+
throw new tt({ data: p });
|
|
140
|
+
return p === "0x" ? { data: void 0 } : { data: p };
|
|
141
|
+
}
|
|
142
|
+
function ft(t) {
|
|
143
|
+
const { code: a, data: e } = t;
|
|
144
|
+
return j({
|
|
145
|
+
abi: L(["constructor(bytes, bytes)"]),
|
|
146
|
+
bytecode: U,
|
|
147
|
+
args: [a, e]
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
function mt(t) {
|
|
151
|
+
const { data: a, factory: e, factoryData: i, to: r } = t;
|
|
152
|
+
return j({
|
|
153
|
+
abi: L(["constructor(address, bytes, address, bytes)"]),
|
|
154
|
+
bytecode: X,
|
|
155
|
+
args: [r, a, e, i]
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
function pt(t) {
|
|
159
|
+
var e;
|
|
160
|
+
if (!(t instanceof R))
|
|
161
|
+
return;
|
|
162
|
+
const a = t.walk();
|
|
163
|
+
return typeof (a == null ? void 0 : a.data) == "object" ? (e = a.data) == null ? void 0 : e.data : a.data;
|
|
8
164
|
}
|
|
9
165
|
export {
|
|
10
|
-
|
|
166
|
+
_t as call,
|
|
167
|
+
pt as getRevertErrorData
|
|
11
168
|
};
|
package/dist/index59.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("./index45.cjs"),R=require("./index150.cjs"),F=require("./index242.cjs"),H=require("./index243.cjs"),T=require("./index184.cjs"),G=require("./index197.cjs");async function N(e,s){var c,o,n;const{account:r=e.account,blockNumber:a,blockTag:b="latest",blobs:l,data:q,gas:d,gasPrice:f,maxFeePerBlobGas:g,maxFeePerGas:x,maxPriorityFeePerGas:h,to:p,value:y,...P}=s,t=r?L.parseAccount(r):void 0;try{G.assertRequest(s);const k=(typeof a=="bigint"?R.numberToHex(a):void 0)||b,i=(n=(o=(c=e.chain)==null?void 0:c.formatters)==null?void 0:o.transactionRequest)==null?void 0:n.format,A=(i||T.formatTransactionRequest)({...H.extract(P,{format:i}),from:t==null?void 0:t.address,blobs:l,data:q,gas:d,gasPrice:f,maxFeePerBlobGas:g,maxFeePerGas:x,maxPriorityFeePerGas:h,to:p,value:y}),m=await e.request({method:"eth_createAccessList",params:[A,k]});return{accessList:m.accessList,gasUsed:BigInt(m.gasUsed)}}catch(u){throw F.getCallError(u,{...s,account:t,chain:e.chain})}}exports.createAccessList=N;
|
package/dist/index59.js
CHANGED
|
@@ -1,23 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { parseAccount as L } from "./index45.js";
|
|
2
|
+
import { numberToHex as A } from "./index150.js";
|
|
3
|
+
import { getCallError as G } from "./index242.js";
|
|
4
|
+
import { extract as H } from "./index243.js";
|
|
5
|
+
import { formatTransactionRequest as N } from "./index184.js";
|
|
6
|
+
import { assertRequest as R } from "./index197.js";
|
|
7
|
+
async function E(t, r) {
|
|
8
|
+
var a, c, m;
|
|
9
|
+
const { account: o = t.account, blockNumber: s, blockTag: u = "latest", blobs: b, data: p, gas: d, gasPrice: h, maxFeePerBlobGas: l, maxFeePerGas: x, maxPriorityFeePerGas: g, to: k, value: q, ...P } = r, e = o ? L(o) : void 0;
|
|
10
|
+
try {
|
|
11
|
+
R(r);
|
|
12
|
+
const y = (typeof s == "bigint" ? A(s) : void 0) || u, i = (m = (c = (a = t.chain) == null ? void 0 : a.formatters) == null ? void 0 : c.transactionRequest) == null ? void 0 : m.format, F = (i || N)({
|
|
13
|
+
// Pick out extra data that might exist on the chain's transaction request type.
|
|
14
|
+
...H(P, { format: i }),
|
|
15
|
+
from: e == null ? void 0 : e.address,
|
|
16
|
+
blobs: b,
|
|
17
|
+
data: p,
|
|
18
|
+
gas: d,
|
|
19
|
+
gasPrice: h,
|
|
20
|
+
maxFeePerBlobGas: l,
|
|
21
|
+
maxFeePerGas: x,
|
|
22
|
+
maxPriorityFeePerGas: g,
|
|
23
|
+
to: k,
|
|
24
|
+
value: q
|
|
25
|
+
}), f = await t.request({
|
|
26
|
+
method: "eth_createAccessList",
|
|
27
|
+
params: [F, y]
|
|
28
|
+
});
|
|
29
|
+
return {
|
|
30
|
+
accessList: f.accessList,
|
|
31
|
+
gasUsed: BigInt(f.gasUsed)
|
|
17
32
|
};
|
|
18
|
-
|
|
19
|
-
|
|
33
|
+
} catch (n) {
|
|
34
|
+
throw G(n, {
|
|
35
|
+
...r,
|
|
36
|
+
account: e,
|
|
37
|
+
chain: t.chain
|
|
38
|
+
});
|
|
39
|
+
}
|
|
20
40
|
}
|
|
21
41
|
export {
|
|
22
|
-
|
|
42
|
+
E as createAccessList
|
|
23
43
|
};
|
package/dist/index6.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index17.cjs"),a=require("./index5.cjs"),s=require("@peculiar/webcrypto"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index17.cjs"),a=require("./index5.cjs"),s=require("@peculiar/webcrypto"),o=require("./index22.cjs");class e{constructor(t){if(!e.isValidDigestKey(t))throw new Error("Invalid digest key format");this._digestKey=t;const r=o.privateKeyToAccount("0x"+t);this._userId=r.address}static from(t){return t=n.trim0x(t),this.isValidDigestKey(t)?a.Ok(new e(t)):a.Err("Invalid digest key format")}static generateRandom(){const t=e.generateRandomDigestKey();return e.from(t)}static isValidDigestKey(t){return/^[0-9a-fA-F]{64}$/.test(t)&&this.isValidPrivateKey(t)}static isValidPrivateKey(t){const r=BigInt("0x"+t),i=1n,f=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");return r>=i&&r<f}static generateRandomDigestKey(){const t=new s.Crypto,r=new Uint8Array(32);t.getRandomValues(r);const i=n.trim0x(Buffer.from(r).toString("hex"));return e.isValidPrivateKey(i)?i:e.generateRandomDigestKey()}get digestKey(){return this._digestKey}get userId(){return this._userId}}exports.DigestKey=e;
|
package/dist/index6.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { trim0x as a } from "./index17.js";
|
|
2
2
|
import { Err as n, Ok as o } from "./index5.js";
|
|
3
3
|
import { Crypto as s } from "@peculiar/webcrypto";
|
|
4
|
-
import { privateKeyToAccount as c } from "./
|
|
4
|
+
import { privateKeyToAccount as c } from "./index22.js";
|
|
5
5
|
class e {
|
|
6
6
|
constructor(t) {
|
|
7
7
|
if (!e.isValidDigestKey(t))
|
package/dist/index60.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index246.cjs");async function o(e){const r=c.createFilterRequestScope(e,{method:"eth_newBlockFilter"}),t=await e.request({method:"eth_newBlockFilter"});return{id:t,request:r(t),type:"block"}}exports.createBlockFilter=o;
|
package/dist/index60.js
CHANGED
|
@@ -1,43 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
|
|
10
|
-
const o = this.blockLen, e = new Uint8Array(o);
|
|
11
|
-
e.set(h.length > o ? t.create().update(h).digest() : h);
|
|
12
|
-
for (let s = 0; s < e.length; s++)
|
|
13
|
-
e[s] ^= 54;
|
|
14
|
-
this.iHash.update(e), this.oHash = t.create();
|
|
15
|
-
for (let s = 0; s < e.length; s++)
|
|
16
|
-
e[s] ^= 106;
|
|
17
|
-
this.oHash.update(e), e.fill(0);
|
|
18
|
-
}
|
|
19
|
-
update(t) {
|
|
20
|
-
return a(this), this.iHash.update(t), this;
|
|
21
|
-
}
|
|
22
|
-
digestInto(t) {
|
|
23
|
-
a(this), u(t, this.outputLen), this.finished = !0, this.iHash.digestInto(t), this.oHash.update(t), this.oHash.digestInto(t), this.destroy();
|
|
24
|
-
}
|
|
25
|
-
digest() {
|
|
26
|
-
const t = new Uint8Array(this.oHash.outputLen);
|
|
27
|
-
return this.digestInto(t), t;
|
|
28
|
-
}
|
|
29
|
-
_cloneInto(t) {
|
|
30
|
-
t || (t = Object.create(Object.getPrototypeOf(this), {}));
|
|
31
|
-
const { oHash: i, iHash: h, finished: o, destroyed: e, blockLen: s, outputLen: d } = this;
|
|
32
|
-
return t = t, t.finished = o, t.destroyed = e, t.blockLen = s, t.outputLen = d, t.oHash = i._cloneInto(t.oHash), t.iHash = h._cloneInto(t.iHash), t;
|
|
33
|
-
}
|
|
34
|
-
destroy() {
|
|
35
|
-
this.destroyed = !0, this.oHash.destroy(), this.iHash.destroy();
|
|
36
|
-
}
|
|
1
|
+
import { createFilterRequestScope as r } from "./index246.js";
|
|
2
|
+
async function i(e) {
|
|
3
|
+
const o = r(e, {
|
|
4
|
+
method: "eth_newBlockFilter"
|
|
5
|
+
}), t = await e.request({
|
|
6
|
+
method: "eth_newBlockFilter"
|
|
7
|
+
});
|
|
8
|
+
return { id: t, request: o(t), type: "block" };
|
|
37
9
|
}
|
|
38
|
-
const l = (n, t, i) => new r(n, t).update(i).digest();
|
|
39
|
-
l.create = (n, t) => new r(n, t);
|
|
40
10
|
export {
|
|
41
|
-
|
|
42
|
-
l as hmac
|
|
11
|
+
i as createBlockFilter
|
|
43
12
|
};
|
package/dist/index61.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index176.cjs"),u=require("./index150.cjs"),q=require("./index246.cjs");async function f(o,{address:d,args:s,event:e,events:p,fromBlock:n,strict:b,toBlock:i}={}){const r=p??(e?[e]:void 0),l=q.createFilterRequestScope(o,{method:"eth_newFilter"});let t=[];r&&(t=[r.flatMap(a=>m.encodeEventTopics({abi:[a],eventName:a.name,args:s}))],e&&(t=t[0]));const c=await o.request({method:"eth_newFilter",params:[{address:d,fromBlock:typeof n=="bigint"?u.numberToHex(n):n,toBlock:typeof i=="bigint"?u.numberToHex(i):i,...t.length?{topics:t}:{}}]});return{abi:r,args:s,eventName:e?e.name:void 0,fromBlock:n,id:c,request:l(c),strict:!!b,toBlock:i,type:"event"}}exports.createEventFilter=f;
|
package/dist/index61.js
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { encodeEventTopics as b } from "./index176.js";
|
|
2
|
+
import { numberToHex as m } from "./index150.js";
|
|
3
|
+
import { createFilterRequestScope as h } from "./index246.js";
|
|
4
|
+
async function l(r, { address: p, args: a, event: e, events: c, fromBlock: n, strict: f, toBlock: i } = {}) {
|
|
5
|
+
const o = c ?? (e ? [e] : void 0), u = h(r, {
|
|
6
|
+
method: "eth_newFilter"
|
|
7
|
+
});
|
|
8
|
+
let t = [];
|
|
9
|
+
o && (t = [o.flatMap((d) => b({
|
|
10
|
+
abi: [d],
|
|
11
|
+
eventName: d.name,
|
|
12
|
+
args: a
|
|
13
|
+
}))], e && (t = t[0]));
|
|
14
|
+
const s = await r.request({
|
|
15
|
+
method: "eth_newFilter",
|
|
16
|
+
params: [
|
|
17
|
+
{
|
|
18
|
+
address: p,
|
|
19
|
+
fromBlock: typeof n == "bigint" ? m(n) : n,
|
|
20
|
+
toBlock: typeof i == "bigint" ? m(i) : i,
|
|
21
|
+
...t.length ? { topics: t } : {}
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
abi: o,
|
|
27
|
+
args: a,
|
|
28
|
+
eventName: e ? e.name : void 0,
|
|
29
|
+
fromBlock: n,
|
|
30
|
+
id: s,
|
|
31
|
+
request: u(s),
|
|
32
|
+
strict: !!f,
|
|
33
|
+
toBlock: i,
|
|
34
|
+
type: "event"
|
|
35
|
+
};
|
|
30
36
|
}
|
|
31
37
|
export {
|
|
32
|
-
|
|
33
|
-
s as aexists,
|
|
34
|
-
f as ahash,
|
|
35
|
-
n as anumber,
|
|
36
|
-
u as aoutput
|
|
38
|
+
l as createEventFilter
|
|
37
39
|
};
|
package/dist/index62.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("./index246.cjs");async function i(e){const n=r.createFilterRequestScope(e,{method:"eth_newPendingTransactionFilter"}),t=await e.request({method:"eth_newPendingTransactionFilter"});return{id:t,request:n(t),type:"transaction"}}exports.createPendingTransactionFilter=i;
|
package/dist/index62.js
CHANGED
|
@@ -1,72 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return
|
|
9
|
-
}
|
|
10
|
-
function w(t, e) {
|
|
11
|
-
return t << 32 - e | t >>> e;
|
|
12
|
-
}
|
|
13
|
-
const b = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
14
|
-
function c(t) {
|
|
15
|
-
return t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255;
|
|
16
|
-
}
|
|
17
|
-
function a(t) {
|
|
18
|
-
for (let e = 0; e < t.length; e++)
|
|
19
|
-
t[e] = c(t[e]);
|
|
20
|
-
}
|
|
21
|
-
function s(t) {
|
|
22
|
-
if (typeof t != "string")
|
|
23
|
-
throw new Error("utf8ToBytes expected string, got " + typeof t);
|
|
24
|
-
return new Uint8Array(new TextEncoder().encode(t));
|
|
25
|
-
}
|
|
26
|
-
function y(t) {
|
|
27
|
-
return typeof t == "string" && (t = s(t)), i(t), t;
|
|
28
|
-
}
|
|
29
|
-
function x(...t) {
|
|
30
|
-
let e = 0;
|
|
31
|
-
for (let n = 0; n < t.length; n++) {
|
|
32
|
-
const r = t[n];
|
|
33
|
-
i(r), e += r.length;
|
|
34
|
-
}
|
|
35
|
-
const f = new Uint8Array(e);
|
|
36
|
-
for (let n = 0, r = 0; n < t.length; n++) {
|
|
37
|
-
const u = t[n];
|
|
38
|
-
f.set(u, r), r += u.length;
|
|
39
|
-
}
|
|
40
|
-
return f;
|
|
41
|
-
}
|
|
42
|
-
class h {
|
|
43
|
-
// Safe version that clones internal state
|
|
44
|
-
clone() {
|
|
45
|
-
return this._cloneInto();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function B(t) {
|
|
49
|
-
const e = (n) => t().update(y(n)).digest(), f = t();
|
|
50
|
-
return e.outputLen = f.outputLen, e.blockLen = f.blockLen, e.create = () => t(), e;
|
|
51
|
-
}
|
|
52
|
-
function d(t = 32) {
|
|
53
|
-
if (o && typeof o.getRandomValues == "function")
|
|
54
|
-
return o.getRandomValues(new Uint8Array(t));
|
|
55
|
-
if (o && typeof o.randomBytes == "function")
|
|
56
|
-
return o.randomBytes(t);
|
|
57
|
-
throw new Error("crypto.getRandomValues must be defined");
|
|
1
|
+
import { createFilterRequestScope as r } from "./index246.js";
|
|
2
|
+
async function a(e) {
|
|
3
|
+
const n = r(e, {
|
|
4
|
+
method: "eth_newPendingTransactionFilter"
|
|
5
|
+
}), t = await e.request({
|
|
6
|
+
method: "eth_newPendingTransactionFilter"
|
|
7
|
+
});
|
|
8
|
+
return { id: t, request: n(t), type: "transaction" };
|
|
58
9
|
}
|
|
59
10
|
export {
|
|
60
|
-
|
|
61
|
-
c as byteSwap,
|
|
62
|
-
a as byteSwap32,
|
|
63
|
-
x as concatBytes,
|
|
64
|
-
m as createView,
|
|
65
|
-
b as isLE,
|
|
66
|
-
d as randomBytes,
|
|
67
|
-
w as rotr,
|
|
68
|
-
y as toBytes,
|
|
69
|
-
g as u32,
|
|
70
|
-
s as utf8ToBytes,
|
|
71
|
-
B as wrapConstructor
|
|
11
|
+
a as createPendingTransactionFilter
|
|
72
12
|
};
|
package/dist/index63.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("./index137.cjs"),G=require("./index29.cjs"),b=require("./index65.cjs"),p=require("./index68.cjs"),y=require("./index77.cjs");async function k(s,o){return m(s,o)}async function m(s,o){var f,g;const{block:i,chain:t=s.chain,request:e,type:l="eip1559"}=o||{},n=await(async()=>{var r,a;return typeof((r=t==null?void 0:t.fees)==null?void 0:r.baseFeeMultiplier)=="function"?t.fees.baseFeeMultiplier({block:i,client:s,request:e}):((a=t==null?void 0:t.fees)==null?void 0:a.baseFeeMultiplier)??1.2})();if(n<1)throw new u.BaseFeeScalarError;const F=10**(((f=n.toString().split(".")[1])==null?void 0:f.length)??0),c=r=>r*BigInt(Math.ceil(n*F))/BigInt(F),P=i||await G.getAction(s,p.getBlock,"getBlock")({});if(typeof((g=t==null?void 0:t.fees)==null?void 0:g.estimateFeesPerGas)=="function"){const r=await t.fees.estimateFeesPerGas({block:i,client:s,multiply:c,request:e,type:l});if(r!==null)return r}if(l==="eip1559"){if(typeof P.baseFeePerGas!="bigint")throw new u.Eip1559FeesNotSupportedError;const r=typeof(e==null?void 0:e.maxPriorityFeePerGas)=="bigint"?e.maxPriorityFeePerGas:await b.internal_estimateMaxPriorityFeePerGas(s,{block:P,chain:t,request:e}),a=c(P.baseFeePerGas);return{maxFeePerGas:(e==null?void 0:e.maxFeePerGas)??a+r,maxPriorityFeePerGas:r}}return{gasPrice:(e==null?void 0:e.gasPrice)??c(await G.getAction(s,y.getGasPrice,"getGasPrice")({}))}}exports.estimateFeesPerGas=k;exports.internal_estimateFeesPerGas=m;
|