@gardenfi/utils 2.1.2-beta.0 → 2.1.2-beta.10
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 +28 -27
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +16 -18
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +64 -10
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +11 -19
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +13 -8
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +8 -12
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +10 -38
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +27 -5
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +9 -10
- package/dist/index108.cjs +3 -1
- package/dist/index108.js +111 -2
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +50 -126
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +24 -6
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +116 -2
- package/dist/index112.cjs +20 -1
- package/dist/index112.js +313 -24
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +79 -19
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +31 -5
- package/dist/index115.cjs +4 -2
- package/dist/index115.js +195 -3
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +24 -18
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +175 -637
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +11 -171
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +27 -0
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +5 -0
- package/dist/index121.cjs +1 -0
- package/dist/index121.js +91 -0
- package/dist/index122.cjs +1 -0
- package/dist/index122.js +35 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +18 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +4 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +78 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +141 -0
- package/dist/index127.cjs +3 -0
- package/dist/index127.js +454 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +65 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +9 -0
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +72 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +8 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +24 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +6 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +13 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +50 -0
- package/dist/index136.cjs +2 -0
- package/dist/index136.js +27 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +16 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +29 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +10 -0
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +41 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +11 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +12 -0
- package/dist/index143.cjs +1 -0
- package/dist/index143.js +18 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +96 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +23 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +7 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +9 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +29 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +12 -0
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +19 -18
- package/dist/index150.cjs +1 -0
- package/dist/index150.js +11 -0
- package/dist/index151.cjs +1 -0
- package/dist/index151.js +13 -0
- package/dist/index152.cjs +1 -0
- package/dist/index152.js +14 -0
- package/dist/index153.cjs +1 -0
- package/dist/index153.js +16 -0
- package/dist/index154.cjs +1 -0
- package/dist/index154.js +17 -0
- package/dist/index155.cjs +1 -0
- package/dist/index155.js +10 -0
- package/dist/index156.cjs +1 -0
- package/dist/index156.js +24 -0
- package/dist/index157.cjs +1 -0
- package/dist/index157.js +9 -0
- package/dist/index158.cjs +1 -0
- package/dist/index158.js +24 -0
- package/dist/index159.cjs +1 -0
- package/dist/index159.js +43 -0
- package/dist/index160.cjs +1 -0
- package/dist/index160.js +20 -0
- package/dist/index161.cjs +1 -0
- package/dist/index161.js +24 -0
- package/dist/index162.cjs +1 -0
- package/dist/index162.js +83 -0
- package/dist/index163.cjs +1 -0
- package/dist/index163.js +47 -0
- package/dist/index164.cjs +1 -0
- package/dist/index164.js +14 -0
- package/dist/index165.cjs +1 -0
- package/dist/index165.js +55 -0
- package/dist/index166.cjs +1 -0
- package/dist/index166.js +6 -0
- package/dist/index167.cjs +1 -0
- package/dist/index167.js +8 -0
- package/dist/index168.cjs +1 -0
- package/dist/index168.js +8 -0
- package/dist/index169.cjs +1 -0
- package/dist/index169.js +14 -0
- package/dist/index170.cjs +1 -0
- package/dist/index170.js +16 -0
- package/dist/index171.cjs +1 -0
- package/dist/index171.js +16 -0
- package/dist/index172.cjs +1 -0
- package/dist/index172.js +8 -0
- package/dist/index173.cjs +1 -0
- package/dist/index173.js +16 -0
- package/dist/index174.cjs +1 -0
- package/dist/index174.js +106 -0
- package/dist/index175.cjs +1 -0
- package/dist/index175.js +9 -0
- package/dist/index176.cjs +1 -0
- package/dist/index176.js +154 -0
- package/dist/index177.cjs +1 -0
- package/dist/index177.js +38 -0
- package/dist/index178.cjs +1 -0
- package/dist/index178.js +34 -0
- package/dist/index179.cjs +1 -0
- package/dist/index179.js +12 -0
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +120 -93
- package/dist/index180.cjs +1 -0
- package/dist/index180.js +71 -0
- package/dist/index181.cjs +1 -0
- package/dist/index181.js +12 -0
- package/dist/index182.cjs +1 -0
- package/dist/index182.js +74 -0
- package/dist/index183.cjs +1 -0
- package/dist/index183.js +22 -0
- package/dist/index184.cjs +1 -0
- package/dist/index184.js +113 -0
- package/dist/index185.cjs +1 -0
- package/dist/index185.js +26 -0
- package/dist/index186.cjs +1 -0
- package/dist/index186.js +53 -0
- package/dist/index187.cjs +1 -0
- package/dist/index187.js +109 -0
- package/dist/index188.cjs +1 -0
- package/dist/index188.js +11 -0
- package/dist/index189.cjs +1 -0
- package/dist/index189.js +4 -0
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -36
- package/dist/index190.cjs +2 -0
- package/dist/index190.js +5 -0
- package/dist/index191.cjs +1 -0
- package/dist/index191.js +16 -0
- package/dist/index192.cjs +1 -0
- package/dist/index192.js +7 -0
- package/dist/index193.cjs +1 -0
- package/dist/index193.js +4 -0
- package/dist/index194.cjs +1 -0
- package/dist/index194.js +34 -0
- package/dist/index195.cjs +1 -0
- package/dist/index195.js +24 -0
- package/dist/index196.cjs +1 -0
- package/dist/index196.js +8 -0
- package/dist/index197.cjs +1 -0
- package/dist/index197.js +8 -0
- package/dist/index198.cjs +1 -0
- package/dist/index198.js +8 -0
- package/dist/index199.cjs +9 -0
- package/dist/index199.js +38 -0
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -32
- package/dist/index200.cjs +1 -0
- package/dist/index200.js +5 -0
- package/dist/index201.cjs +1 -0
- package/dist/index201.js +29 -0
- package/dist/index202.cjs +1 -0
- package/dist/index202.js +36 -0
- package/dist/index203.cjs +1 -0
- package/dist/index203.js +38 -0
- package/dist/index204.cjs +1 -0
- package/dist/index204.js +11 -0
- package/dist/index205.cjs +1 -0
- package/dist/index205.js +15 -0
- package/dist/index206.cjs +1 -0
- package/dist/index206.js +21 -0
- package/dist/index207.cjs +1 -0
- package/dist/index207.js +30 -0
- package/dist/index208.cjs +1 -0
- package/dist/index208.js +11 -0
- package/dist/index209.cjs +1 -0
- package/dist/index209.js +58 -0
- package/dist/index21.cjs +1 -16
- package/dist/index21.js +461 -111
- package/dist/index210.cjs +1 -0
- package/dist/index210.js +11 -0
- package/dist/index211.cjs +1 -0
- package/dist/index211.js +10 -0
- package/dist/index212.cjs +1 -0
- package/dist/index212.js +21 -0
- package/dist/index213.cjs +1 -0
- package/dist/index213.js +164 -0
- package/dist/index214.cjs +1 -0
- package/dist/index214.js +130 -0
- package/dist/index215.cjs +1 -0
- package/dist/index215.js +41 -0
- package/dist/index216.cjs +1 -0
- package/dist/index216.js +30 -0
- package/dist/index217.cjs +1 -0
- package/dist/index217.js +194 -0
- package/dist/index218.cjs +1 -0
- package/dist/index218.js +6 -0
- package/dist/index219.cjs +1 -0
- package/dist/index219.js +5 -0
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -31
- package/dist/index220.cjs +1 -0
- package/dist/index220.js +23 -0
- package/dist/index221.cjs +1 -0
- package/dist/index221.js +19 -0
- package/dist/index222.cjs +1 -0
- package/dist/index222.js +14 -0
- package/dist/index223.cjs +1 -0
- package/dist/index223.js +37 -0
- package/dist/index224.cjs +1 -0
- package/dist/index224.js +5 -0
- package/dist/index225.cjs +1 -0
- package/dist/index225.js +30 -0
- package/dist/index226.cjs +1 -0
- package/dist/index226.js +28 -0
- package/dist/index227.cjs +1 -0
- package/dist/index227.js +31 -0
- package/dist/index228.cjs +1 -0
- package/dist/index228.js +9 -0
- package/dist/index229.cjs +1 -0
- package/dist/index229.js +26 -0
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +12 -17
- package/dist/index230.cjs +1 -0
- package/dist/index230.js +40 -0
- package/dist/index231.cjs +1 -0
- package/dist/index231.js +45 -0
- package/dist/index232.cjs +1 -0
- package/dist/index232.js +81 -0
- package/dist/index233.cjs +1 -0
- package/dist/index233.js +4 -0
- package/dist/index234.cjs +1 -0
- package/dist/index234.js +40 -0
- package/dist/index235.cjs +1 -0
- package/dist/index235.js +52 -0
- package/dist/index236.cjs +1 -0
- package/dist/index236.js +9 -0
- package/dist/index237.cjs +1 -0
- package/dist/index237.js +9 -0
- package/dist/index238.cjs +1 -0
- package/dist/index238.js +35 -0
- package/dist/index239.cjs +1 -0
- package/dist/index239.js +7 -0
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +57 -7
- package/dist/index240.cjs +1 -0
- package/dist/index240.js +11 -0
- package/dist/index241.cjs +1 -0
- package/dist/index241.js +6 -0
- package/dist/index242.cjs +1 -0
- package/dist/index242.js +20 -0
- package/dist/index243.cjs +1 -0
- package/dist/index243.js +13 -0
- package/dist/index244.cjs +1 -0
- package/dist/index244.js +8 -0
- package/dist/index245.cjs +1 -0
- package/dist/index245.js +11 -0
- package/dist/index246.cjs +1 -0
- package/dist/index246.js +107 -0
- package/dist/index247.cjs +1 -0
- package/dist/index247.js +115 -0
- package/dist/index248.cjs +1 -0
- package/dist/index248.js +21 -0
- package/dist/index249.cjs +1 -0
- package/dist/index249.js +174 -0
- package/dist/index25.cjs +16 -1
- package/dist/index25.js +112 -44
- package/dist/index250.cjs +1 -0
- package/dist/index250.js +20 -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 +1 -0
- package/dist/index258.js +6 -0
- package/dist/index259.cjs +1 -0
- package/dist/index259.js +143 -0
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +32 -22
- package/dist/index260.cjs +1 -0
- package/dist/index260.js +158 -0
- package/dist/index261.cjs +1 -0
- package/dist/index261.js +12 -0
- package/dist/index262.cjs +1 -0
- package/dist/index262.js +116 -0
- package/dist/index263.cjs +2 -0
- package/dist/index263.js +137 -0
- package/dist/index264.cjs +2 -0
- package/dist/index264.js +44 -0
- package/dist/index265.cjs +1 -0
- package/dist/index265.js +4 -0
- package/dist/index266.cjs +1 -0
- package/dist/index266.js +8 -0
- package/dist/index267.cjs +1 -0
- package/dist/index267.js +13 -0
- package/dist/index268.cjs +1 -0
- package/dist/index268.js +22 -0
- package/dist/index269.cjs +1 -0
- package/dist/index269.js +11 -0
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +31 -9
- package/dist/index270.cjs +1 -0
- package/dist/index270.js +69 -0
- package/dist/index271.cjs +1 -0
- package/dist/index271.js +68 -0
- package/dist/index272.cjs +1 -0
- package/dist/index272.js +189 -0
- package/dist/index273.cjs +1 -0
- package/dist/index273.js +25 -0
- package/dist/index274.cjs +1 -0
- package/dist/index274.js +45 -0
- package/dist/index275.cjs +1 -0
- package/dist/index275.js +79 -0
- package/dist/index276.cjs +1 -0
- package/dist/index276.js +43 -0
- package/dist/index277.cjs +1 -0
- package/dist/index277.js +19 -0
- package/dist/index278.cjs +1 -0
- package/dist/index278.js +16 -0
- package/dist/index279.cjs +1 -0
- package/dist/index279.js +15 -0
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +11 -31
- package/dist/index280.cjs +1 -0
- package/dist/index280.js +14 -0
- package/dist/index281.cjs +2 -0
- package/dist/index281.js +21 -0
- package/dist/index282.cjs +1 -0
- package/dist/index282.js +16 -0
- package/dist/index283.cjs +1 -0
- package/dist/index283.js +19 -0
- package/dist/index284.cjs +1 -0
- package/dist/index284.js +226 -0
- package/dist/index285.cjs +1 -0
- package/dist/index285.js +9 -0
- package/dist/index286.cjs +1 -0
- package/dist/index286.js +9 -0
- package/dist/index287.cjs +1 -0
- package/dist/index287.js +29 -0
- package/dist/index288.cjs +1 -0
- package/dist/index288.js +37 -0
- package/dist/index289.cjs +1 -0
- package/dist/index289.js +21 -0
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +16 -26
- package/dist/index290.cjs +1 -0
- package/dist/index290.js +73 -0
- package/dist/index291.cjs +1 -0
- package/dist/index291.js +70 -0
- package/dist/index292.cjs +1 -0
- package/dist/index292.js +31 -0
- package/dist/index293.cjs +1 -0
- package/dist/index293.js +41 -0
- package/dist/index294.cjs +1 -0
- package/dist/index294.js +14 -0
- package/dist/index295.cjs +1 -0
- package/dist/index295.js +22 -0
- package/dist/index296.cjs +2 -0
- package/dist/index296.js +69 -0
- package/dist/index297.cjs +1 -0
- package/dist/index297.js +7 -0
- package/dist/index298.cjs +1 -0
- package/dist/index298.js +43 -0
- package/dist/index299.cjs +1 -0
- package/dist/index299.js +10 -0
- package/dist/index30.cjs +1 -2
- package/dist/index30.js +39 -59
- package/dist/index300.cjs +1 -0
- package/dist/index300.js +65 -0
- package/dist/index301.cjs +1 -0
- package/dist/index301.js +80 -0
- package/dist/index302.cjs +1 -0
- package/dist/index302.js +6 -0
- package/dist/index303.cjs +1 -0
- package/dist/index303.js +197 -0
- package/dist/index304.cjs +1 -0
- package/dist/index304.js +71 -0
- package/dist/index305.cjs +1 -0
- package/dist/index305.js +4 -0
- package/dist/index306.cjs +1 -0
- package/dist/index306.js +43 -0
- package/dist/index307.cjs +1 -0
- package/dist/index307.js +645 -0
- package/dist/index308.cjs +1 -0
- package/dist/index308.js +209 -0
- package/dist/index309.cjs +1 -0
- package/dist/index309.js +175 -0
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +10 -51
- package/dist/index310.cjs +1 -0
- package/dist/index310.js +21 -0
- package/dist/index311.cjs +1 -0
- package/dist/index311.js +66 -0
- package/dist/index312.cjs +1 -0
- package/dist/index312.js +47 -0
- package/dist/index313.cjs +1 -0
- package/dist/index313.js +7 -0
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +107 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +7 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +4 -0
- package/dist/index317.cjs +1 -0
- package/dist/index317.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +18 -12
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +123 -24
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +59 -74
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +23 -23
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +10 -7
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +20 -32
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +6 -15
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +11 -2
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +43 -27
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +32 -8
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +16 -20
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +16 -41
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +7 -25
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -6
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +24 -13
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +21 -14
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +58 -5
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +40 -13
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +36 -9
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +160 -10
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +111 -11
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +3 -13
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +2 -56
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +4 -17
- package/dist/index55.cjs +2 -1
- package/dist/index55.js +59 -5
- package/dist/index56.cjs +2 -1
- package/dist/index56.js +54 -8
- package/dist/index57.cjs +3 -1
- package/dist/index57.js +208 -164
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +12 -102
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +12 -21
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +23 -11
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +27 -33
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +47 -6
- package/dist/index63.cjs +1 -2
- package/dist/index63.js +19 -59
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +12 -2
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +39 -5
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +9 -4
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -11
- package/dist/index68.cjs +1 -5
- package/dist/index68.js +31 -56
- package/dist/index69.cjs +1 -2
- package/dist/index69.js +34 -32
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +36 -5
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +9 -3
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +28 -20
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +22 -8
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +84 -9
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +50 -11
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +23 -6
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +40 -12
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +17 -32
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +6 -14
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +31 -62
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +9 -27
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +14 -3
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +109 -3
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +8 -8
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +5 -190
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +7 -18
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +21 -40
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +8 -34
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +30 -68
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +17 -16
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +13 -112
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +7 -67
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +10 -2
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +16 -16
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +68 -218
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +35 -231
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +46 -42
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +13 -103
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +13 -17
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +9 -78
- package/dist/src/lib/approve.d.ts +2 -1
- package/package.json +2 -3
package/dist/index90.js
CHANGED
|
@@ -1,115 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
310598401,
|
|
14
|
-
607225278,
|
|
15
|
-
1426881987,
|
|
16
|
-
1925078388,
|
|
17
|
-
2162078206,
|
|
18
|
-
2614888103,
|
|
19
|
-
3248222580,
|
|
20
|
-
3835390401,
|
|
21
|
-
4022224774,
|
|
22
|
-
264347078,
|
|
23
|
-
604807628,
|
|
24
|
-
770255983,
|
|
25
|
-
1249150122,
|
|
26
|
-
1555081692,
|
|
27
|
-
1996064986,
|
|
28
|
-
2554220882,
|
|
29
|
-
2821834349,
|
|
30
|
-
2952996808,
|
|
31
|
-
3210313671,
|
|
32
|
-
3336571891,
|
|
33
|
-
3584528711,
|
|
34
|
-
113926993,
|
|
35
|
-
338241895,
|
|
36
|
-
666307205,
|
|
37
|
-
773529912,
|
|
38
|
-
1294757372,
|
|
39
|
-
1396182291,
|
|
40
|
-
1695183700,
|
|
41
|
-
1986661051,
|
|
42
|
-
2177026350,
|
|
43
|
-
2456956037,
|
|
44
|
-
2730485921,
|
|
45
|
-
2820302411,
|
|
46
|
-
3259730800,
|
|
47
|
-
3345764771,
|
|
48
|
-
3516065817,
|
|
49
|
-
3600352804,
|
|
50
|
-
4094571909,
|
|
51
|
-
275423344,
|
|
52
|
-
430227734,
|
|
53
|
-
506948616,
|
|
54
|
-
659060556,
|
|
55
|
-
883997877,
|
|
56
|
-
958139571,
|
|
57
|
-
1322822218,
|
|
58
|
-
1537002063,
|
|
59
|
-
1747873779,
|
|
60
|
-
1955562222,
|
|
61
|
-
2024104815,
|
|
62
|
-
2227730452,
|
|
63
|
-
2361852424,
|
|
64
|
-
2428436474,
|
|
65
|
-
2756734187,
|
|
66
|
-
3204031479,
|
|
67
|
-
3329325298
|
|
68
|
-
]), b = /* @__PURE__ */ new Uint32Array([
|
|
69
|
-
1779033703,
|
|
70
|
-
3144134277,
|
|
71
|
-
1013904242,
|
|
72
|
-
2773480762,
|
|
73
|
-
1359893119,
|
|
74
|
-
2600822924,
|
|
75
|
-
528734635,
|
|
76
|
-
1541459225
|
|
77
|
-
]), h = /* @__PURE__ */ new Uint32Array(64);
|
|
78
|
-
class w extends m {
|
|
79
|
-
constructor() {
|
|
80
|
-
super(64, 32, 8, !1), this.A = b[0] | 0, this.B = b[1] | 0, this.C = b[2] | 0, this.D = b[3] | 0, this.E = b[4] | 0, this.F = b[5] | 0, this.G = b[6] | 0, this.H = b[7] | 0;
|
|
81
|
-
}
|
|
82
|
-
get() {
|
|
83
|
-
const { A: d, B: o, C: t, D: s, E: a, F: f, G: c, H: e } = this;
|
|
84
|
-
return [d, o, t, s, a, f, c, e];
|
|
85
|
-
}
|
|
86
|
-
// prettier-ignore
|
|
87
|
-
set(d, o, t, s, a, f, c, e) {
|
|
88
|
-
this.A = d | 0, this.B = o | 0, this.C = t | 0, this.D = s | 0, this.E = a | 0, this.F = f | 0, this.G = c | 0, this.H = e | 0;
|
|
89
|
-
}
|
|
90
|
-
process(d, o) {
|
|
91
|
-
for (let x = 0; x < 16; x++, o += 4)
|
|
92
|
-
h[x] = d.getUint32(o, !1);
|
|
93
|
-
for (let x = 16; x < 64; x++) {
|
|
94
|
-
const A = h[x - 15], n = h[x - 2], C = i(A, 7) ^ i(A, 18) ^ A >>> 3, H = i(n, 17) ^ i(n, 19) ^ n >>> 10;
|
|
95
|
-
h[x] = H + h[x - 7] + C + h[x - 16] | 0;
|
|
96
|
-
}
|
|
97
|
-
let { A: t, B: s, C: a, D: f, E: c, F: e, G: r, H: l } = this;
|
|
98
|
-
for (let x = 0; x < 64; x++) {
|
|
99
|
-
const A = i(c, 6) ^ i(c, 11) ^ i(c, 25), n = l + A + p(c, e, r) + g[x] + h[x] | 0, H = (i(t, 2) ^ i(t, 13) ^ i(t, 22)) + u(t, s, a) | 0;
|
|
100
|
-
l = r, r = e, e = c, c = f + n | 0, f = a, a = s, s = t, t = n + H | 0;
|
|
101
|
-
}
|
|
102
|
-
t = t + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, f = f + this.D | 0, c = c + this.E | 0, e = e + this.F | 0, r = r + this.G | 0, l = l + this.H | 0, this.set(t, s, a, f, c, e, r, l);
|
|
103
|
-
}
|
|
104
|
-
roundClean() {
|
|
105
|
-
h.fill(0);
|
|
106
|
-
}
|
|
107
|
-
destroy() {
|
|
108
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
109
|
-
}
|
|
1
|
+
import { hexToNumber as u } from "./index80.js";
|
|
2
|
+
import { numberToHex as m } from "./index30.js";
|
|
3
|
+
async function i(t, { blockHash: o, blockNumber: n, blockTag: a = "latest" } = {}) {
|
|
4
|
+
const r = n !== void 0 ? m(n) : void 0;
|
|
5
|
+
let e;
|
|
6
|
+
return o ? e = await t.request({
|
|
7
|
+
method: "eth_getBlockTransactionCountByHash",
|
|
8
|
+
params: [o]
|
|
9
|
+
}, { dedupe: !0 }) : e = await t.request({
|
|
10
|
+
method: "eth_getBlockTransactionCountByNumber",
|
|
11
|
+
params: [r || a]
|
|
12
|
+
}, { dedupe: !!r }), u(e);
|
|
110
13
|
}
|
|
111
|
-
const G = /* @__PURE__ */ D(() => new w());
|
|
112
14
|
export {
|
|
113
|
-
|
|
114
|
-
G as sha256
|
|
15
|
+
i as getBlockTransactionCount
|
|
115
16
|
};
|
package/dist/index91.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("./index80.cjs");async function r(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return n.hexToNumber(t)}exports.getChainId=r;
|
package/dist/index91.js
CHANGED
|
@@ -1,70 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
o.setUint32(t + u, e, i), o.setUint32(t + c, r, i);
|
|
8
|
-
}
|
|
9
|
-
function B(o, t, s) {
|
|
10
|
-
return o & t ^ ~o & s;
|
|
11
|
-
}
|
|
12
|
-
function L(o, t, s) {
|
|
13
|
-
return o & t ^ o & s ^ t & s;
|
|
14
|
-
}
|
|
15
|
-
class U extends b {
|
|
16
|
-
constructor(t, s, i, n) {
|
|
17
|
-
super(), this.blockLen = t, this.outputLen = s, this.padOffset = i, this.isLE = n, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(t), this.view = p(this.buffer);
|
|
18
|
-
}
|
|
19
|
-
update(t) {
|
|
20
|
-
g(this);
|
|
21
|
-
const { view: s, buffer: i, blockLen: n } = this;
|
|
22
|
-
t = a(t);
|
|
23
|
-
const h = t.length;
|
|
24
|
-
for (let e = 0; e < h; ) {
|
|
25
|
-
const r = Math.min(n - this.pos, h - e);
|
|
26
|
-
if (r === n) {
|
|
27
|
-
const u = p(t);
|
|
28
|
-
for (; n <= h - e; e += n)
|
|
29
|
-
this.process(u, e);
|
|
30
|
-
continue;
|
|
31
|
-
}
|
|
32
|
-
i.set(t.subarray(e, e + r), this.pos), this.pos += r, e += r, this.pos === n && (this.process(s, 0), this.pos = 0);
|
|
33
|
-
}
|
|
34
|
-
return this.length += t.length, this.roundClean(), this;
|
|
35
|
-
}
|
|
36
|
-
digestInto(t) {
|
|
37
|
-
g(this), d(t, this), this.finished = !0;
|
|
38
|
-
const { buffer: s, view: i, blockLen: n, isLE: h } = this;
|
|
39
|
-
let { pos: e } = this;
|
|
40
|
-
s[e++] = 128, this.buffer.subarray(e).fill(0), this.padOffset > n - e && (this.process(i, 0), e = 0);
|
|
41
|
-
for (let f = e; f < n; f++)
|
|
42
|
-
s[f] = 0;
|
|
43
|
-
w(i, n - 8, BigInt(this.length * 8), h), this.process(i, 0);
|
|
44
|
-
const r = p(t), u = this.outputLen;
|
|
45
|
-
if (u % 4)
|
|
46
|
-
throw new Error("_sha2: outputLen should be aligned to 32bit");
|
|
47
|
-
const c = u / 4, l = this.get();
|
|
48
|
-
if (c > l.length)
|
|
49
|
-
throw new Error("_sha2: outputLen bigger than state");
|
|
50
|
-
for (let f = 0; f < c; f++)
|
|
51
|
-
r.setUint32(4 * f, l[f], h);
|
|
52
|
-
}
|
|
53
|
-
digest() {
|
|
54
|
-
const { buffer: t, outputLen: s } = this;
|
|
55
|
-
this.digestInto(t);
|
|
56
|
-
const i = t.slice(0, s);
|
|
57
|
-
return this.destroy(), i;
|
|
58
|
-
}
|
|
59
|
-
_cloneInto(t) {
|
|
60
|
-
t || (t = new this.constructor()), t.set(...this.get());
|
|
61
|
-
const { blockLen: s, buffer: i, length: n, finished: h, destroyed: e, pos: r } = this;
|
|
62
|
-
return t.length = n, t.pos = r, t.finished = h, t.destroyed = e, n % s && t.buffer.set(i), t;
|
|
63
|
-
}
|
|
1
|
+
import { hexToNumber as n } from "./index80.js";
|
|
2
|
+
async function o(e) {
|
|
3
|
+
const t = await e.request({
|
|
4
|
+
method: "eth_chainId"
|
|
5
|
+
}, { dedupe: !0 });
|
|
6
|
+
return n(t);
|
|
64
7
|
}
|
|
65
8
|
export {
|
|
66
|
-
|
|
67
|
-
U as HashMD,
|
|
68
|
-
L as Maj,
|
|
69
|
-
w as setBigUint64
|
|
9
|
+
o as getChainId
|
|
70
10
|
};
|
package/dist/index92.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index30.cjs");async function i(o,{address:d,blockNumber:e,blockTag:r="latest"}){const t=e!==void 0?u.numberToHex(e):void 0,n=await o.request({method:"eth_getCode",params:[d,t||r]},{dedupe:!!t});if(n!=="0x")return n}exports.getCode=i;
|
package/dist/index92.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { numberToHex as u } from "./index30.js";
|
|
2
|
+
async function i(o, { address: d, blockNumber: e, blockTag: r = "latest" }) {
|
|
3
|
+
const n = e !== void 0 ? u(e) : void 0, t = await o.request({
|
|
4
|
+
method: "eth_getCode",
|
|
5
|
+
params: [d, n || r]
|
|
6
|
+
}, { dedupe: !!n });
|
|
7
|
+
if (t !== "0x")
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
2
10
|
export {
|
|
3
|
-
|
|
11
|
+
i as getCode
|
|
4
12
|
};
|
package/dist/index93.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 v=require("./index94.cjs"),b=require("./index43.cjs"),f=require("./index95.cjs");async function m(o,s){const{abi:e,address:r,args:c,blockHash:i,eventName:t,fromBlock:g,toBlock:a,strict:u}=s,n=t?v.getAbiItem({abi:e,name:t}):void 0,d=n?void 0:e.filter(l=>l.type==="event");return b.getAction(o,f.getLogs,"getLogs")({address:r,args:c,blockHash:i,event:n,events:d,fromBlock:g,toBlock:a,strict:u})}exports.getContractEvents=m;
|
package/dist/index93.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { getAbiItem as p } from "./index94.js";
|
|
2
|
+
import { getAction as v } from "./index43.js";
|
|
3
|
+
import { getLogs as l } from "./index95.js";
|
|
4
|
+
async function y(n, r) {
|
|
5
|
+
const { abi: t, address: s, args: c, blockHash: i, eventName: e, fromBlock: m, toBlock: a, strict: f } = r, o = e ? p({ abi: t, name: e }) : void 0, g = o ? void 0 : t.filter((d) => d.type === "event");
|
|
6
|
+
return v(n, l, "getLogs")({
|
|
7
|
+
address: s,
|
|
8
|
+
args: c,
|
|
9
|
+
blockHash: i,
|
|
10
|
+
event: o,
|
|
11
|
+
events: g,
|
|
12
|
+
fromBlock: m,
|
|
13
|
+
toBlock: a,
|
|
14
|
+
strict: f
|
|
15
|
+
});
|
|
15
16
|
}
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
-
i as getHash
|
|
18
|
+
y as getContractEvents
|
|
19
19
|
};
|
package/dist/index94.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index112.cjs"),g=require("./index166.cjs"),p=require("./index222.cjs"),m=require("./index219.cjs"),b=require("./index218.cjs");function A(s){const{abi:o,args:n=[],name:t}=s,u=g.isHex(t,{strict:!1}),i=o.filter(e=>u?e.type==="function"?b.toFunctionSelector(e)===t:e.type==="event"?m.toEventSelector(e)===t:!1:"name"in e&&e.name===t);if(i.length===0)return;if(i.length===1)return i[0];let r;for(const e of i){if(!("inputs"in e))continue;if(!n||n.length===0){if(!e.inputs||e.inputs.length===0)return e;continue}if(!e.inputs||e.inputs.length===0||e.inputs.length!==n.length)continue;if(n.every((c,d)=>{const a="inputs"in e&&e.inputs[d];return a?f(c,a):!1})){if(r&&"inputs"in r&&r.inputs){const c=l(e.inputs,r.inputs,n);if(c)throw new y.AbiItemAmbiguityError({abiItem:e,type:c[0]},{abiItem:r,type:c[1]})}r=e}}return r||i[0]}function f(s,o){const n=typeof s,t=o.type;switch(t){case"address":return p.isAddress(s,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return t==="tuple"&&"components"in o?Object.values(o.components).every((u,i)=>f(Object.values(s)[i],u)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(t)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(t)?n==="string"||s instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(t)?Array.isArray(s)&&s.every(u=>f(u,{...o,type:t.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function l(s,o,n){for(const t in s){const u=s[t],i=o[t];if(u.type==="tuple"&&i.type==="tuple"&&"components"in u&&"components"in i)return l(u.components,i.components,n[t]);const r=[u.type,i.type];if(r.includes("address")&&r.includes("bytes20")?!0:r.includes("address")&&r.includes("string")?p.isAddress(n[t],{strict:!1}):r.includes("address")&&r.includes("bytes")?p.isAddress(n[t],{strict:!1}):!1)return r}}exports.getAbiItem=A;exports.getAmbiguousTypes=l;exports.isArgOfType=f;
|
package/dist/index94.js
CHANGED
|
@@ -1,226 +1,76 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import { AbiItemAmbiguityError as y } from "./index112.js";
|
|
2
|
+
import { isHex as d } from "./index166.js";
|
|
3
|
+
import { isAddress as f } from "./index222.js";
|
|
4
|
+
import { toEventSelector as g } from "./index219.js";
|
|
5
|
+
import { toFunctionSelector as b } from "./index218.js";
|
|
6
|
+
function x(s) {
|
|
7
|
+
const { abi: o, args: n = [], name: e } = s, u = d(e, { strict: !1 }), i = o.filter((t) => u ? t.type === "function" ? b(t) === e : t.type === "event" ? g(t) === e : !1 : "name" in t && t.name === e);
|
|
8
|
+
if (i.length === 0)
|
|
9
|
+
return;
|
|
10
|
+
if (i.length === 1)
|
|
11
|
+
return i[0];
|
|
12
|
+
let r;
|
|
13
|
+
for (const t of i) {
|
|
14
|
+
if (!("inputs" in t))
|
|
15
|
+
continue;
|
|
16
|
+
if (!n || n.length === 0) {
|
|
17
|
+
if (!t.inputs || t.inputs.length === 0)
|
|
18
|
+
return t;
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
if (!t.inputs || t.inputs.length === 0 || t.inputs.length !== n.length)
|
|
22
|
+
continue;
|
|
23
|
+
if (n.every((c, m) => {
|
|
24
|
+
const l = "inputs" in t && t.inputs[m];
|
|
25
|
+
return l ? p(c, l) : !1;
|
|
26
|
+
})) {
|
|
27
|
+
if (r && "inputs" in r && r.inputs) {
|
|
28
|
+
const c = a(t.inputs, r.inputs, n);
|
|
29
|
+
if (c)
|
|
30
|
+
throw new y({
|
|
31
|
+
abiItem: t,
|
|
32
|
+
type: c[0]
|
|
33
|
+
}, {
|
|
34
|
+
abiItem: r,
|
|
35
|
+
type: c[1]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
r = t;
|
|
39
|
+
}
|
|
35
40
|
}
|
|
36
|
-
|
|
37
|
-
throw new Error("invert: does not exist");
|
|
38
|
-
return g(s, i);
|
|
41
|
+
return r || i[0];
|
|
39
42
|
}
|
|
40
|
-
function
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
43
|
+
function p(s, o) {
|
|
44
|
+
const n = typeof s, e = o.type;
|
|
45
|
+
switch (e) {
|
|
46
|
+
case "address":
|
|
47
|
+
return f(s, { strict: !1 });
|
|
48
|
+
case "bool":
|
|
49
|
+
return n === "boolean";
|
|
50
|
+
case "function":
|
|
51
|
+
return n === "string";
|
|
52
|
+
case "string":
|
|
53
|
+
return n === "string";
|
|
54
|
+
default:
|
|
55
|
+
return e === "tuple" && "components" in o ? Object.values(o.components).every((u, i) => p(Object.values(s)[i], u)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(e) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(e) ? n === "string" || s instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(e) ? Array.isArray(s) && s.every((u) => p(u, {
|
|
56
|
+
...o,
|
|
57
|
+
// Pop off `[]` or `[M]` from end of type
|
|
58
|
+
type: e.replace(/(\[[0-9]{0,}\])$/, "")
|
|
59
|
+
})) : !1;
|
|
56
60
|
}
|
|
57
|
-
const u = (r + c) / w;
|
|
58
|
-
return function(o, n) {
|
|
59
|
-
if (o.pow(n, i) === o.neg(o.ONE))
|
|
60
|
-
throw new Error("Cannot find square root");
|
|
61
|
-
let l = e, h = o.pow(o.mul(o.ONE, s), r), v = o.pow(n, u), a = o.pow(n, r);
|
|
62
|
-
for (; !o.eql(a, o.ONE); ) {
|
|
63
|
-
if (o.eql(a, o.ZERO))
|
|
64
|
-
return o.ZERO;
|
|
65
|
-
let q = 1;
|
|
66
|
-
for (let B = o.sqr(a); q < l && !o.eql(B, o.ONE); q++)
|
|
67
|
-
B = o.sqr(B);
|
|
68
|
-
const E = o.pow(h, c << BigInt(l - q - 1));
|
|
69
|
-
h = o.sqr(E), v = o.mul(v, E), a = o.mul(a, h), l = q;
|
|
70
|
-
}
|
|
71
|
-
return v;
|
|
72
|
-
};
|
|
73
61
|
}
|
|
74
|
-
function
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return
|
|
82
|
-
};
|
|
62
|
+
function a(s, o, n) {
|
|
63
|
+
for (const e in s) {
|
|
64
|
+
const u = s[e], i = o[e];
|
|
65
|
+
if (u.type === "tuple" && i.type === "tuple" && "components" in u && "components" in i)
|
|
66
|
+
return a(u.components, i.components, n[e]);
|
|
67
|
+
const r = [u.type, i.type];
|
|
68
|
+
if (r.includes("address") && r.includes("bytes20") ? !0 : r.includes("address") && r.includes("string") ? f(n[e], { strict: !1 }) : r.includes("address") && r.includes("bytes") ? f(n[e], { strict: !1 }) : !1)
|
|
69
|
+
return r;
|
|
83
70
|
}
|
|
84
|
-
if (t % m === N) {
|
|
85
|
-
const i = (t - N) / m;
|
|
86
|
-
return function(e, s) {
|
|
87
|
-
const u = e.mul(s, w), f = e.pow(u, i), o = e.mul(s, f), n = e.mul(e.mul(o, w), f), l = e.mul(o, e.sub(n, e.ONE));
|
|
88
|
-
if (!e.eql(e.sqr(l), s))
|
|
89
|
-
throw new Error("Cannot find square root");
|
|
90
|
-
return l;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
return j(t);
|
|
94
|
-
}
|
|
95
|
-
const A = [
|
|
96
|
-
"create",
|
|
97
|
-
"isValid",
|
|
98
|
-
"is0",
|
|
99
|
-
"neg",
|
|
100
|
-
"inv",
|
|
101
|
-
"sqrt",
|
|
102
|
-
"sqr",
|
|
103
|
-
"eql",
|
|
104
|
-
"add",
|
|
105
|
-
"sub",
|
|
106
|
-
"mul",
|
|
107
|
-
"pow",
|
|
108
|
-
"div",
|
|
109
|
-
"addN",
|
|
110
|
-
"subN",
|
|
111
|
-
"mulN",
|
|
112
|
-
"sqrN"
|
|
113
|
-
];
|
|
114
|
-
function Y(t) {
|
|
115
|
-
const i = {
|
|
116
|
-
ORDER: "bigint",
|
|
117
|
-
MASK: "bigint",
|
|
118
|
-
BYTES: "isSafeInteger",
|
|
119
|
-
BITS: "isSafeInteger"
|
|
120
|
-
}, r = A.reduce((e, s) => (e[s] = "function", e), i);
|
|
121
|
-
return M(t, r);
|
|
122
|
-
}
|
|
123
|
-
function k(t, i, r) {
|
|
124
|
-
if (r < d)
|
|
125
|
-
throw new Error("invalid exponent, negatives unsupported");
|
|
126
|
-
if (r === d)
|
|
127
|
-
return t.ONE;
|
|
128
|
-
if (r === c)
|
|
129
|
-
return i;
|
|
130
|
-
let e = t.ONE, s = i;
|
|
131
|
-
for (; r > d; )
|
|
132
|
-
r & c && (e = t.mul(e, s)), s = t.sqr(s), r >>= c;
|
|
133
|
-
return e;
|
|
134
|
-
}
|
|
135
|
-
function H(t, i) {
|
|
136
|
-
const r = new Array(i.length), e = i.reduce((u, f, o) => t.is0(f) ? u : (r[o] = u, t.mul(u, f)), t.ONE), s = t.inv(e);
|
|
137
|
-
return i.reduceRight((u, f, o) => t.is0(f) ? u : (r[o] = t.mul(u, r[o]), t.mul(u, f)), s), r;
|
|
138
|
-
}
|
|
139
|
-
function K(t, i) {
|
|
140
|
-
const r = i !== void 0 ? i : t.toString(2).length, e = Math.ceil(r / 8);
|
|
141
|
-
return { nBitLength: r, nByteLength: e };
|
|
142
|
-
}
|
|
143
|
-
function p(t, i, r = !1, e = {}) {
|
|
144
|
-
if (t <= d)
|
|
145
|
-
throw new Error("invalid field: expected ORDER > 0, got " + t);
|
|
146
|
-
const { nBitLength: s, nByteLength: u } = K(t, i);
|
|
147
|
-
if (u > 2048)
|
|
148
|
-
throw new Error("invalid field: expected ORDER of <= 2048 bytes");
|
|
149
|
-
let f;
|
|
150
|
-
const o = Object.freeze({
|
|
151
|
-
ORDER: t,
|
|
152
|
-
isLE: r,
|
|
153
|
-
BITS: s,
|
|
154
|
-
BYTES: u,
|
|
155
|
-
MASK: _(s),
|
|
156
|
-
ZERO: d,
|
|
157
|
-
ONE: c,
|
|
158
|
-
create: (n) => g(n, t),
|
|
159
|
-
isValid: (n) => {
|
|
160
|
-
if (typeof n != "bigint")
|
|
161
|
-
throw new Error("invalid field element: expected bigint, got " + typeof n);
|
|
162
|
-
return d <= n && n < t;
|
|
163
|
-
},
|
|
164
|
-
is0: (n) => n === d,
|
|
165
|
-
isOdd: (n) => (n & c) === c,
|
|
166
|
-
neg: (n) => g(-n, t),
|
|
167
|
-
eql: (n, l) => n === l,
|
|
168
|
-
sqr: (n) => g(n * n, t),
|
|
169
|
-
add: (n, l) => g(n + l, t),
|
|
170
|
-
sub: (n, l) => g(n - l, t),
|
|
171
|
-
mul: (n, l) => g(n * l, t),
|
|
172
|
-
pow: (n, l) => k(o, n, l),
|
|
173
|
-
div: (n, l) => g(n * I(l, t), t),
|
|
174
|
-
// Same as above, but doesn't normalize
|
|
175
|
-
sqrN: (n) => n * n,
|
|
176
|
-
addN: (n, l) => n + l,
|
|
177
|
-
subN: (n, l) => n - l,
|
|
178
|
-
mulN: (n, l) => n * l,
|
|
179
|
-
inv: (n) => I(n, t),
|
|
180
|
-
sqrt: e.sqrt || ((n) => (f || (f = z(t)), f(o, n))),
|
|
181
|
-
invertBatch: (n) => H(o, n),
|
|
182
|
-
// TODO: do we really need constant cmov?
|
|
183
|
-
// We don't have const-time bigints anyway, so probably will be not very useful
|
|
184
|
-
cmov: (n, l, h) => h ? l : n,
|
|
185
|
-
toBytes: (n) => r ? S(n, u) : x(n, u),
|
|
186
|
-
fromBytes: (n) => {
|
|
187
|
-
if (n.length !== u)
|
|
188
|
-
throw new Error("Field.fromBytes: expected " + u + " bytes, got " + n.length);
|
|
189
|
-
return r ? y(n) : L(n);
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
return Object.freeze(o);
|
|
193
|
-
}
|
|
194
|
-
function T(t) {
|
|
195
|
-
if (typeof t != "bigint")
|
|
196
|
-
throw new Error("field order must be bigint");
|
|
197
|
-
const i = t.toString(2).length;
|
|
198
|
-
return Math.ceil(i / 8);
|
|
199
|
-
}
|
|
200
|
-
function O(t) {
|
|
201
|
-
const i = T(t);
|
|
202
|
-
return i + Math.ceil(i / 2);
|
|
203
|
-
}
|
|
204
|
-
function G(t, i, r = !1) {
|
|
205
|
-
const e = t.length, s = T(i), u = O(i);
|
|
206
|
-
if (e < 16 || e < u || e > 1024)
|
|
207
|
-
throw new Error("expected " + u + "-1024 bytes of input, got " + e);
|
|
208
|
-
const f = r ? y(t) : L(t), o = g(f, i - c) + c;
|
|
209
|
-
return r ? S(o, s) : x(o, s);
|
|
210
71
|
}
|
|
211
72
|
export {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
z as FpSqrt,
|
|
216
|
-
T as getFieldBytesLength,
|
|
217
|
-
O as getMinHashLength,
|
|
218
|
-
I as invert,
|
|
219
|
-
G as mapHashToField,
|
|
220
|
-
g as mod,
|
|
221
|
-
K as nLength,
|
|
222
|
-
Z as pow,
|
|
223
|
-
V as pow2,
|
|
224
|
-
j as tonelliShanks,
|
|
225
|
-
Y as validateField
|
|
73
|
+
x as getAbiItem,
|
|
74
|
+
a as getAmbiguousTypes,
|
|
75
|
+
p as isArgOfType
|
|
226
76
|
};
|
package/dist/index95.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 l=require("./index69.cjs"),q=require("./index101.cjs"),m=require("./index30.cjs"),y=require("./index102.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;
|