@gardenfi/utils 2.1.2-beta.1 → 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 -104
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +64 -16
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +11 -78
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +13 -18
- 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 -31
- 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 -1
- package/dist/index21.js +464 -32
- 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 -16
- package/dist/index22.js +35 -113
- 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 -29
- 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 +19 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +8 -11
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +30 -18
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +17 -16
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +13 -40
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +7 -34
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +9 -69
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +16 -112
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +68 -62
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +36 -2
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +46 -16
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +13 -222
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +13 -231
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +7 -40
- package/dist/src/lib/approve.d.ts +2 -1
- package/package.json +2 -3
package/dist/index135.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { parseAccount as m } from "./index52.js";
|
|
2
|
+
import { AccountNotFoundError as p } from "./index136.js";
|
|
3
|
+
import { encodeFunctionData as h } from "./index36.js";
|
|
4
|
+
import { numberToHex as c } from "./index30.js";
|
|
5
|
+
import { getTransactionError as b } from "./index137.js";
|
|
6
|
+
async function A(r, n) {
|
|
7
|
+
const { account: e = r.account, capabilities: i, chain: s = r.chain, forceAtomic: u = !1, id: d, version: l = "2.0.0" } = n;
|
|
8
|
+
if (typeof e > "u")
|
|
9
|
+
throw new p({
|
|
10
|
+
docsPath: "/experimental/eip5792/sendCalls"
|
|
11
|
+
});
|
|
12
|
+
const a = e ? m(e) : null, f = n.calls.map((t) => {
|
|
13
|
+
const o = t;
|
|
14
|
+
return {
|
|
15
|
+
data: o.abi ? h({
|
|
16
|
+
abi: o.abi,
|
|
17
|
+
functionName: o.functionName,
|
|
18
|
+
args: o.args
|
|
19
|
+
}) : o.data,
|
|
20
|
+
to: o.to,
|
|
21
|
+
value: o.value ? c(o.value) : void 0
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
try {
|
|
25
|
+
const t = await r.request({
|
|
26
|
+
method: "wallet_sendCalls",
|
|
27
|
+
params: [
|
|
28
|
+
{
|
|
29
|
+
atomicRequired: u,
|
|
30
|
+
calls: f,
|
|
31
|
+
capabilities: i,
|
|
32
|
+
chainId: c(s.id),
|
|
33
|
+
from: a == null ? void 0 : a.address,
|
|
34
|
+
id: d,
|
|
35
|
+
version: l
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}, { retryCount: 0 });
|
|
39
|
+
return typeof t == "string" ? { id: t } : t;
|
|
40
|
+
} catch (t) {
|
|
41
|
+
throw b(t, {
|
|
42
|
+
...n,
|
|
43
|
+
account: a,
|
|
44
|
+
chain: n.chain
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
A as sendCalls
|
|
50
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index55.cjs");class c extends t.BaseError{constructor({docsPath:o}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
|
|
2
|
+
`),{docsPath:o,docsSlug:"account",name:"AccountNotFoundError"})}}class u extends t.BaseError{constructor({docsPath:o,metaMessages:e,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:o,metaMessages:e,name:"AccountTypeNotSupportedError"})}}exports.AccountNotFoundError=c;exports.AccountTypeNotSupportedError=u;
|
package/dist/index136.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseError as t } from "./index55.js";
|
|
2
|
+
class u extends t {
|
|
3
|
+
constructor({ docsPath: o } = {}) {
|
|
4
|
+
super([
|
|
5
|
+
"Could not find an Account to execute with this Action.",
|
|
6
|
+
"Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."
|
|
7
|
+
].join(`
|
|
8
|
+
`), {
|
|
9
|
+
docsPath: o,
|
|
10
|
+
docsSlug: "account",
|
|
11
|
+
name: "AccountNotFoundError"
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
class s extends t {
|
|
16
|
+
constructor({ docsPath: o, metaMessages: c, type: r }) {
|
|
17
|
+
super(`Account type "${r}" is not supported.`, {
|
|
18
|
+
docsPath: o,
|
|
19
|
+
metaMessages: c,
|
|
20
|
+
name: "AccountTypeNotSupportedError"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
u as AccountNotFoundError,
|
|
26
|
+
s as AccountTypeNotSupportedError
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index115.cjs"),i=require("./index108.cjs"),s=require("./index116.cjs");function u(r,{docsPath:o,...e}){const t=(()=>{const n=s.getNodeError(r,e);return n instanceof c.UnknownNodeError?r:n})();return new i.TransactionExecutionError(t,{docsPath:o,...e})}exports.getTransactionError=u;
|
package/dist/index137.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UnknownNodeError as c } from "./index115.js";
|
|
2
|
+
import { TransactionExecutionError as i } from "./index108.js";
|
|
3
|
+
import { getNodeError as u } from "./index116.js";
|
|
4
|
+
function s(r, { docsPath: t, ...o }) {
|
|
5
|
+
const e = (() => {
|
|
6
|
+
const n = u(r, o);
|
|
7
|
+
return n instanceof c ? r : n;
|
|
8
|
+
})();
|
|
9
|
+
return new i(e, {
|
|
10
|
+
docsPath: t,
|
|
11
|
+
...o
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
s as getTransactionError
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index80.cjs"),l=require("./index110.cjs");async function f(a,r){const{atomic:i=!1,chainId:n,receipts:e,version:o="2.0.0",...u}=await a.request({method:"wallet_getCallsStatus",params:[r.id]}),[c,d]=(()=>{const t=u.status;return t>=100&&t<200?["pending",t]:t>=200&&t<300?["success",t]:t>=300&&t<700?["failure",t]:t==="CONFIRMED"?["success",200]:t==="PENDING"?["pending",100]:[void 0,t]})();return{...u,atomic:i,chainId:n?s.hexToNumber(n):void 0,receipts:(e==null?void 0:e.map(t=>({...t,blockNumber:s.hexToBigInt(t.blockNumber),gasUsed:s.hexToBigInt(t.gasUsed),status:l.receiptStatuses[t.status]})))??[],statusCode:d,status:c,version:o}}exports.getCallsStatus=f;
|
package/dist/index138.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { hexToNumber as f, hexToBigInt as u } from "./index80.js";
|
|
2
|
+
import { receiptStatuses as m } from "./index110.js";
|
|
3
|
+
async function p(a, r) {
|
|
4
|
+
const { atomic: o = !1, chainId: e, receipts: t, version: i = "2.0.0", ...n } = await a.request({
|
|
5
|
+
method: "wallet_getCallsStatus",
|
|
6
|
+
params: [r.id]
|
|
7
|
+
}), [d, c] = (() => {
|
|
8
|
+
const s = n.status;
|
|
9
|
+
return s >= 100 && s < 200 ? ["pending", s] : s >= 200 && s < 300 ? ["success", s] : s >= 300 && s < 700 ? ["failure", s] : s === "CONFIRMED" ? ["success", 200] : s === "PENDING" ? ["pending", 100] : [void 0, s];
|
|
10
|
+
})();
|
|
11
|
+
return {
|
|
12
|
+
...n,
|
|
13
|
+
atomic: o,
|
|
14
|
+
// @ts-expect-error: for backwards compatibility
|
|
15
|
+
chainId: e ? f(e) : void 0,
|
|
16
|
+
receipts: (t == null ? void 0 : t.map((s) => ({
|
|
17
|
+
...s,
|
|
18
|
+
blockNumber: u(s.blockNumber),
|
|
19
|
+
gasUsed: u(s.gasUsed),
|
|
20
|
+
status: m[s.status]
|
|
21
|
+
}))) ?? [],
|
|
22
|
+
statusCode: c,
|
|
23
|
+
status: d,
|
|
24
|
+
version: i
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
p as getCallsStatus
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function e(t,s){const{id:a}=s;await t.request({method:"wallet_showCallsStatus",params:[a]})}exports.showCallsStatus=e;
|
package/dist/index139.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index55.cjs"),f=require("./index122.cjs"),p=require("./index123.cjs"),C=require("./index141.cjs"),T=require("./index124.cjs"),y=require("./index138.cjs");async function q(e,o){const{id:s,pollingInterval:m=e.pollingInterval,status:v=({statusCode:r})=>r>=200,timeout:a=6e4}=o,w=T.stringify(["waitForCallsStatus",e.uid,s]),{promise:g,resolve:S,reject:l}=C.withResolvers();let i;const n=f.observe(w,{resolve:S,reject:l},r=>{const u=p.poll(async()=>{const c=t=>{clearTimeout(i),u(),t(),n()};try{const t=await y.getCallsStatus(e,{id:s});if(!v(t))return;c(()=>r.resolve(t))}catch(t){c(()=>r.reject(t))}},{interval:m,emitOnBegin:!0});return u});return i=a?setTimeout(()=>{n(),clearTimeout(i),l(new d({id:s}))},a):void 0,await g}class d extends b.BaseError{constructor({id:o}){super(`Timed out while waiting for call bundle with id "${o}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}exports.WaitForCallsStatusTimeoutError=d;exports.waitForCallsStatus=q;
|
package/dist/index140.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BaseError as w } from "./index55.js";
|
|
2
|
+
import { observe as g } from "./index122.js";
|
|
3
|
+
import { poll as T } from "./index123.js";
|
|
4
|
+
import { withResolvers as b } from "./index141.js";
|
|
5
|
+
import { stringify as C } from "./index124.js";
|
|
6
|
+
import { getCallsStatus as S } from "./index138.js";
|
|
7
|
+
async function B(r, o) {
|
|
8
|
+
const { id: i, pollingInterval: c = r.pollingInterval, status: d = ({ statusCode: e }) => e >= 200, timeout: n = 6e4 } = o, f = C(["waitForCallsStatus", r.uid, i]), { promise: p, resolve: v, reject: a } = b();
|
|
9
|
+
let s;
|
|
10
|
+
const l = g(f, { resolve: v, reject: a }, (e) => {
|
|
11
|
+
const u = T(async () => {
|
|
12
|
+
const m = (t) => {
|
|
13
|
+
clearTimeout(s), u(), t(), l();
|
|
14
|
+
};
|
|
15
|
+
try {
|
|
16
|
+
const t = await S(r, { id: i });
|
|
17
|
+
if (!d(t))
|
|
18
|
+
return;
|
|
19
|
+
m(() => e.resolve(t));
|
|
20
|
+
} catch (t) {
|
|
21
|
+
m(() => e.reject(t));
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
interval: c,
|
|
25
|
+
emitOnBegin: !0
|
|
26
|
+
});
|
|
27
|
+
return u;
|
|
28
|
+
});
|
|
29
|
+
return s = n ? setTimeout(() => {
|
|
30
|
+
l(), clearTimeout(s), a(new h({ id: i }));
|
|
31
|
+
}, n) : void 0, await p;
|
|
32
|
+
}
|
|
33
|
+
class h extends w {
|
|
34
|
+
constructor({ id: o }) {
|
|
35
|
+
super(`Timed out while waiting for call bundle with id "${o}" to be confirmed.`, { name: "WaitForCallsStatusTimeoutError" });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
h as WaitForCallsStatusTimeoutError,
|
|
40
|
+
B as waitForCallsStatus
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}exports.withResolvers=i;
|
package/dist/index141.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index30.cjs"),u=require("./index143.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/index142.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { numberToHex as c } from "./index30.js";
|
|
2
|
+
import { formatProof as s } from "./index143.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);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
d as getProof
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index80.cjs");function a(e){return e.map(n=>({...n,value:BigInt(n.value)}))}function r(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?t.hexToNumber(e.nonce):void 0,storageProof:e.storageProof?a(e.storageProof):void 0}}exports.formatProof=r;
|
package/dist/index143.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { hexToNumber as a } from "./index80.js";
|
|
2
|
+
function t(e) {
|
|
3
|
+
return e.map((n) => ({
|
|
4
|
+
...n,
|
|
5
|
+
value: BigInt(n.value)
|
|
6
|
+
}));
|
|
7
|
+
}
|
|
8
|
+
function o(e) {
|
|
9
|
+
return {
|
|
10
|
+
...e,
|
|
11
|
+
balance: e.balance ? BigInt(e.balance) : void 0,
|
|
12
|
+
nonce: e.nonce ? a(e.nonce) : void 0,
|
|
13
|
+
storageProof: e.storageProof ? t(e.storageProof) : void 0
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
o as formatProof
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("./index86.cjs"),k=require("./index108.cjs"),g=require("./index43.cjs"),O=require("./index122.cjs"),S=require("./index141.cjs"),y=require("./index145.cjs"),$=require("./index124.cjs"),P=require("./index78.cjs"),W=require("./index106.cjs"),q=require("./index20.cjs"),x=require("./index125.cjs");async function z(n,{confirmations:c=1,hash:p,onReplaced:h,pollingInterval:m=n.pollingInterval,retryCount:w=6,retryDelay:R=({count:d})=>~~(1<<d)*200,timeout:N=18e4}){const d=$.stringify(["waitForTransactionReceipt",n.uid,p]);let a,o,e,i=!1;const{promise:B,resolve:F,reject:v}=S.withResolvers(),A=N?setTimeout(()=>v(new k.WaitForTransactionReceiptTimeoutError({hash:p})),N):void 0,j=O.observe(d,{onReplaced:h,resolve:F,reject:v},r=>{const E=g.getAction(n,x.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:m,async onBlockNumber(_){const u=b=>{clearTimeout(A),E(),b(),j()};let l=_;if(!i)try{if(e){if(c>1&&(!e.blockNumber||l-e.blockNumber+1n<c))return;u(()=>r.resolve(e));return}if(a||(i=!0,await y.withRetry(async()=>{a=await g.getAction(n,W.getTransaction,"getTransaction")({hash:p}),a.blockNumber&&(l=a.blockNumber)},{delay:R,retryCount:w}),i=!1),e=await g.getAction(n,q.getTransactionReceipt,"getTransactionReceipt")({hash:p}),c>1&&(!e.blockNumber||l-e.blockNumber+1n<c))return;u(()=>r.resolve(e))}catch(b){if(b instanceof k.TransactionNotFoundError||b instanceof k.TransactionReceiptNotFoundError){if(!a){i=!1;return}try{o=a,i=!0;const f=await y.withRetry(()=>g.getAction(n,P.getBlock,"getBlock")({blockNumber:l,includeTransactions:!0}),{delay:R,retryCount:w,shouldRetry:({error:s})=>s instanceof M.BlockNotFoundError});i=!1;const t=f.transactions.find(({from:s,nonce:I})=>s===o.from&&I===o.nonce);if(!t||(e=await g.getAction(n,q.getTransactionReceipt,"getTransactionReceipt")({hash:t.hash}),c>1&&(!e.blockNumber||l-e.blockNumber+1n<c)))return;let T="replaced";t.to===o.to&&t.value===o.value&&t.input===o.input?T="repriced":t.from===t.to&&t.value===0n&&(T="cancelled"),u(()=>{var s;(s=r.onReplaced)==null||s.call(r,{reason:T,replacedTransaction:o,transaction:t,transactionReceipt:e}),r.resolve(e)})}catch(f){u(()=>r.reject(f))}}else u(()=>r.reject(b))}}})});return B}exports.waitForTransactionReceipt=z;
|
package/dist/index144.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { BlockNotFoundError as A } from "./index86.js";
|
|
2
|
+
import { WaitForTransactionReceiptTimeoutError as M, TransactionNotFoundError as O, TransactionReceiptNotFoundError as W } from "./index108.js";
|
|
3
|
+
import { getAction as f } from "./index43.js";
|
|
4
|
+
import { observe as q } from "./index122.js";
|
|
5
|
+
import { withResolvers as z } from "./index141.js";
|
|
6
|
+
import { withRetry as v } from "./index145.js";
|
|
7
|
+
import { stringify as G } from "./index124.js";
|
|
8
|
+
import { getBlock as H } from "./index78.js";
|
|
9
|
+
import { getTransaction as J } from "./index106.js";
|
|
10
|
+
import { getTransactionReceipt as R } from "./index20.js";
|
|
11
|
+
import { watchBlockNumber as K } from "./index125.js";
|
|
12
|
+
async function D(o, {
|
|
13
|
+
confirmations: a = 1,
|
|
14
|
+
hash: m,
|
|
15
|
+
onReplaced: y,
|
|
16
|
+
pollingInterval: B = o.pollingInterval,
|
|
17
|
+
retryCount: k = 6,
|
|
18
|
+
retryDelay: N = ({ count: b }) => ~~(1 << b) * 200,
|
|
19
|
+
// exponential backoff
|
|
20
|
+
timeout: w = 18e4
|
|
21
|
+
}) {
|
|
22
|
+
const b = G(["waitForTransactionReceipt", o.uid, m]);
|
|
23
|
+
let c, n, r, i = !1;
|
|
24
|
+
const { promise: h, resolve: F, reject: g } = z(), E = w ? setTimeout(() => g(new M({ hash: m })), w) : void 0, _ = q(b, { onReplaced: y, resolve: F, reject: g }, (t) => {
|
|
25
|
+
const j = f(o, K, "watchBlockNumber")({
|
|
26
|
+
emitMissed: !0,
|
|
27
|
+
emitOnBegin: !0,
|
|
28
|
+
poll: !0,
|
|
29
|
+
pollingInterval: B,
|
|
30
|
+
async onBlockNumber(I) {
|
|
31
|
+
const l = (p) => {
|
|
32
|
+
clearTimeout(E), j(), p(), _();
|
|
33
|
+
};
|
|
34
|
+
let u = I;
|
|
35
|
+
if (!i)
|
|
36
|
+
try {
|
|
37
|
+
if (r) {
|
|
38
|
+
if (a > 1 && (!r.blockNumber || u - r.blockNumber + 1n < a))
|
|
39
|
+
return;
|
|
40
|
+
l(() => t.resolve(r));
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (c || (i = !0, await v(async () => {
|
|
44
|
+
c = await f(o, J, "getTransaction")({ hash: m }), c.blockNumber && (u = c.blockNumber);
|
|
45
|
+
}, {
|
|
46
|
+
delay: N,
|
|
47
|
+
retryCount: k
|
|
48
|
+
}), i = !1), r = await f(o, R, "getTransactionReceipt")({ hash: m }), a > 1 && (!r.blockNumber || u - r.blockNumber + 1n < a))
|
|
49
|
+
return;
|
|
50
|
+
l(() => t.resolve(r));
|
|
51
|
+
} catch (p) {
|
|
52
|
+
if (p instanceof O || p instanceof W) {
|
|
53
|
+
if (!c) {
|
|
54
|
+
i = !1;
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
try {
|
|
58
|
+
n = c, i = !0;
|
|
59
|
+
const d = await v(() => f(o, H, "getBlock")({
|
|
60
|
+
blockNumber: u,
|
|
61
|
+
includeTransactions: !0
|
|
62
|
+
}), {
|
|
63
|
+
delay: N,
|
|
64
|
+
retryCount: k,
|
|
65
|
+
shouldRetry: ({ error: s }) => s instanceof A
|
|
66
|
+
});
|
|
67
|
+
i = !1;
|
|
68
|
+
const e = d.transactions.find(({ from: s, nonce: x }) => s === n.from && x === n.nonce);
|
|
69
|
+
if (!e || (r = await f(o, R, "getTransactionReceipt")({
|
|
70
|
+
hash: e.hash
|
|
71
|
+
}), a > 1 && (!r.blockNumber || u - r.blockNumber + 1n < a)))
|
|
72
|
+
return;
|
|
73
|
+
let T = "replaced";
|
|
74
|
+
e.to === n.to && e.value === n.value && e.input === n.input ? T = "repriced" : e.from === e.to && e.value === 0n && (T = "cancelled"), l(() => {
|
|
75
|
+
var s;
|
|
76
|
+
(s = t.onReplaced) == null || s.call(t, {
|
|
77
|
+
reason: T,
|
|
78
|
+
replacedTransaction: n,
|
|
79
|
+
transaction: e,
|
|
80
|
+
transactionReceipt: r
|
|
81
|
+
}), t.resolve(r);
|
|
82
|
+
});
|
|
83
|
+
} catch (d) {
|
|
84
|
+
l(() => t.reject(d));
|
|
85
|
+
}
|
|
86
|
+
} else
|
|
87
|
+
l(() => t.reject(p));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
return h;
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
D as waitForTransactionReceipt
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index241.cjs");function f(n,{delay:e=100,retryCount:o=2,shouldRetry:c=()=>!0}={}){return new Promise((s,y)=>{const a=async({count:r=0}={})=>{const w=async({error:t})=>{const i=typeof e=="function"?e({count:r,error:t}):e;i&&await u.wait(i),a({count:r+1})};try{const t=await n();s(t)}catch(t){if(r<o&&await c({count:r,error:t}))return w({error:t});y(t)}};a()})}exports.withRetry=f;
|
package/dist/index145.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { wait as w } from "./index241.js";
|
|
2
|
+
function p(n, { delay: e = 100, retryCount: o = 2, shouldRetry: c = () => !0 } = {}) {
|
|
3
|
+
return new Promise((s, y) => {
|
|
4
|
+
const a = async ({ count: r = 0 } = {}) => {
|
|
5
|
+
const f = async ({ error: t }) => {
|
|
6
|
+
const i = typeof e == "function" ? e({ count: r, error: t }) : e;
|
|
7
|
+
i && await w(i), a({ count: r + 1 });
|
|
8
|
+
};
|
|
9
|
+
try {
|
|
10
|
+
const t = await n();
|
|
11
|
+
s(t);
|
|
12
|
+
} catch (t) {
|
|
13
|
+
if (r < o && await c({ count: r, error: t }))
|
|
14
|
+
return f({ error: t });
|
|
15
|
+
y(t);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
a();
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
p as withRetry
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index132.cjs");async function r(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(s=>t.getAddress(s))}exports.requestAddresses=r;
|
package/dist/index146.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function r(e,s){return e.request({method:"wallet_requestPermissions",params:[s]},{retryCount:0})}exports.requestPermissions=r;
|
package/dist/index147.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index52.cjs"),f=require("./index136.cjs"),g=require("./index149.cjs"),s=require("./index43.cjs"),h=require("./index91.cjs"),A=require("./index107.cjs");async function p(o,n){var i;const{account:c=o.account,chainId:u,nonce:a}=n;if(!c)throw new f.AccountNotFoundError({docsPath:"/docs/eip7702/prepareAuthorization"});const r=d.parseAccount(c),t=(()=>{if(n.executor)return n.executor==="self"?n.executor:d.parseAccount(n.executor)})(),e={address:n.contractAddress??n.address,chainId:u,nonce:a};return typeof e.chainId>"u"&&(e.chainId=((i=o.chain)==null?void 0:i.id)??await s.getAction(o,h.getChainId,"getChainId")({})),typeof e.nonce>"u"&&(e.nonce=await s.getAction(o,A.getTransactionCount,"getTransactionCount")({address:r.address,blockTag:"pending"}),(t==="self"||t!=null&&t.address&&g.isAddressEqual(t.address,r.address))&&(e.nonce+=1)),e}exports.prepareAuthorization=p;
|
package/dist/index148.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { parseAccount as e } from "./index52.js";
|
|
2
|
+
import { AccountNotFoundError as f } from "./index136.js";
|
|
3
|
+
import { isAddressEqual as h } from "./index149.js";
|
|
4
|
+
import { getAction as a } from "./index43.js";
|
|
5
|
+
import { getChainId as p } from "./index91.js";
|
|
6
|
+
import { getTransactionCount as g } from "./index107.js";
|
|
7
|
+
async function y(r, o) {
|
|
8
|
+
var i;
|
|
9
|
+
const { account: c = r.account, chainId: s, nonce: u } = o;
|
|
10
|
+
if (!c)
|
|
11
|
+
throw new f({
|
|
12
|
+
docsPath: "/docs/eip7702/prepareAuthorization"
|
|
13
|
+
});
|
|
14
|
+
const d = e(c), t = (() => {
|
|
15
|
+
if (o.executor)
|
|
16
|
+
return o.executor === "self" ? o.executor : e(o.executor);
|
|
17
|
+
})(), n = {
|
|
18
|
+
address: o.contractAddress ?? o.address,
|
|
19
|
+
chainId: s,
|
|
20
|
+
nonce: u
|
|
21
|
+
};
|
|
22
|
+
return typeof n.chainId > "u" && (n.chainId = ((i = r.chain) == null ? void 0 : i.id) ?? await a(r, p, "getChainId")({})), typeof n.nonce > "u" && (n.nonce = await a(r, g, "getTransactionCount")({
|
|
23
|
+
address: d.address,
|
|
24
|
+
blockTag: "pending"
|
|
25
|
+
}), (t === "self" || t != null && t.address && h(t.address, d.address)) && (n.nonce += 1)), n;
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
y as prepareAuthorization
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index205.cjs"),d=require("./index222.cjs");function t(s,r){if(!d.isAddress(s,{strict:!1}))throw new e.InvalidAddressError({address:s});if(!d.isAddress(r,{strict:!1}))throw new e.InvalidAddressError({address:r});return s.toLowerCase()===r.toLowerCase()}exports.isAddressEqual=t;
|
package/dist/index149.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InvalidAddressError as e } from "./index205.js";
|
|
2
|
+
import { isAddress as o } from "./index222.js";
|
|
3
|
+
function i(r, s) {
|
|
4
|
+
if (!o(r, { strict: !1 }))
|
|
5
|
+
throw new e({ address: r });
|
|
6
|
+
if (!o(s, { strict: !1 }))
|
|
7
|
+
throw new e({ address: s });
|
|
8
|
+
return r.toLowerCase() === s.toLowerCase();
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
i as isAddressEqual
|
|
12
|
+
};
|
package/dist/index15.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index17.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index17.cjs"),a=require("./index27.cjs"),s=require("./index26.cjs"),l=require("./index28.cjs"),b=require("./index24.cjs"),n={42161:s.mainnet,421614:a.sepolia},h=async e=>{const{chain:t}=e;if(!t)return r.Err("No chain found");const o=(u=>u in n)(t.id)?n[t.id]:t;return await i(o)},i=async e=>{const t=l.createPublicClient({chain:e,transport:b.http()});try{const c=await t.getBlockNumber();return r.Ok(Number(c))}catch(c){return r.Err("Failed to fetch evm block number",c)}},m=async e=>{try{const t=await e.getLatestTip();return r.Ok(t)}catch(t){return r.Err("Failed to fetch bitcoin block number",t)}};exports._fetchEVMBlockNumber=i;exports.fetchBitcoinBlockNumber=m;exports.fetchEVMBlockNumber=h;
|
package/dist/index15.js
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { Ok as n, Err as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Ok as n, Err as c } from "./index17.js";
|
|
2
|
+
import { sepolia as m } from "./index27.js";
|
|
3
|
+
import { mainnet as s } from "./index26.js";
|
|
4
|
+
import { createPublicClient as u } from "./index28.js";
|
|
5
|
+
import { http as b } from "./index24.js";
|
|
5
6
|
const e = {
|
|
6
|
-
42161:
|
|
7
|
-
421614:
|
|
8
|
-
},
|
|
7
|
+
42161: s,
|
|
8
|
+
421614: m
|
|
9
|
+
}, C = async (r) => {
|
|
9
10
|
const { chain: t } = r;
|
|
10
|
-
if (!t) return
|
|
11
|
+
if (!t) return c("No chain found");
|
|
11
12
|
const i = ((a) => a in e)(t.id) ? e[t.id] : t;
|
|
12
13
|
return await l(i);
|
|
13
14
|
}, l = async (r) => {
|
|
14
|
-
const t =
|
|
15
|
+
const t = u({
|
|
15
16
|
chain: r,
|
|
16
|
-
transport:
|
|
17
|
+
transport: b()
|
|
17
18
|
});
|
|
18
19
|
try {
|
|
19
|
-
const
|
|
20
|
-
return n(Number(
|
|
21
|
-
} catch (
|
|
22
|
-
return
|
|
20
|
+
const o = await t.getBlockNumber();
|
|
21
|
+
return n(Number(o));
|
|
22
|
+
} catch (o) {
|
|
23
|
+
return c("Failed to fetch evm block number", o);
|
|
23
24
|
}
|
|
24
|
-
},
|
|
25
|
+
}, d = async (r) => {
|
|
25
26
|
try {
|
|
26
27
|
const t = await r.getLatestTip();
|
|
27
28
|
return n(t);
|
|
28
29
|
} catch (t) {
|
|
29
|
-
return
|
|
30
|
+
return c("Failed to fetch bitcoin block number", t);
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
33
|
export {
|
|
33
34
|
l as _fetchEVMBlockNumber,
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
d as fetchBitcoinBlockNumber,
|
|
36
|
+
C as fetchEVMBlockNumber
|
|
36
37
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index209.cjs"),l=require("./index30.cjs");function c(o){const{kzg:s}=o,n=o.to??(typeof o.blobs[0]=="string"?"hex":"bytes"),e=typeof o.blobs[0]=="string"?o.blobs.map(t=>i.hexToBytes(t)):o.blobs,b=[];for(const t of e)b.push(Uint8Array.from(s.blobToKzgCommitment(t)));return n==="bytes"?b:b.map(t=>l.bytesToHex(t))}exports.blobsToCommitments=c;
|
package/dist/index150.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { hexToBytes as i } from "./index209.js";
|
|
2
|
+
import { bytesToHex as f } from "./index30.js";
|
|
3
|
+
function y(o) {
|
|
4
|
+
const { kzg: s } = o, n = o.to ?? (typeof o.blobs[0] == "string" ? "hex" : "bytes"), m = typeof o.blobs[0] == "string" ? o.blobs.map((t) => i(t)) : o.blobs, b = [];
|
|
5
|
+
for (const t of m)
|
|
6
|
+
b.push(Uint8Array.from(s.blobToKzgCommitment(t)));
|
|
7
|
+
return n === "bytes" ? b : b.map((t) => f(t));
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
y as blobsToCommitments
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index209.cjs"),y=require("./index30.cjs");function f(t){const{kzg:c}=t,e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),n=typeof t.blobs[0]=="string"?t.blobs.map(o=>b.hexToBytes(o)):t.blobs,i=typeof t.commitments[0]=="string"?t.commitments.map(o=>b.hexToBytes(o)):t.commitments,s=[];for(let o=0;o<n.length;o++){const l=n[o],m=i[o];s.push(Uint8Array.from(c.computeBlobKzgProof(l,m)))}return e==="bytes"?s:s.map(o=>y.bytesToHex(o))}exports.blobsToProofs=f;
|
package/dist/index151.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { hexToBytes as b } from "./index209.js";
|
|
2
|
+
import { bytesToHex as y } from "./index30.js";
|
|
3
|
+
function h(t) {
|
|
4
|
+
const { kzg: m } = t, c = t.to ?? (typeof t.blobs[0] == "string" ? "hex" : "bytes"), s = typeof t.blobs[0] == "string" ? t.blobs.map((o) => b(o)) : t.blobs, i = typeof t.commitments[0] == "string" ? t.commitments.map((o) => b(o)) : t.commitments, n = [];
|
|
5
|
+
for (let o = 0; o < s.length; o++) {
|
|
6
|
+
const f = s[o], l = i[o];
|
|
7
|
+
n.push(Uint8Array.from(m.computeBlobKzgProof(f, l)));
|
|
8
|
+
}
|
|
9
|
+
return c === "bytes" ? n : n.map((o) => y(o));
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
h as blobsToProofs
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index236.cjs");function c(o){const{commitments:e,version:s}=o,n=o.to??(typeof e[0]=="string"?"hex":"bytes"),t=[];for(const m of e)t.push(i.commitmentToVersionedHash({commitment:m,to:n,version:s}));return t}exports.commitmentsToVersionedHashes=c;
|
package/dist/index152.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { commitmentToVersionedHash as i } from "./index236.js";
|
|
2
|
+
function r(o) {
|
|
3
|
+
const { commitments: t, version: n } = o, e = o.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), s = [];
|
|
4
|
+
for (const m of t)
|
|
5
|
+
s.push(i({
|
|
6
|
+
commitment: m,
|
|
7
|
+
to: e,
|
|
8
|
+
version: n
|
|
9
|
+
}));
|
|
10
|
+
return s;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
r as commitmentsToVersionedHashes
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index150.cjs"),m=require("./index151.cjs"),u=require("./index238.cjs");function f(t){const{data:i,kzg:n,to:b}=t,s=t.blobs??u.toBlobs({data:i,to:b}),e=t.commitments??r.blobsToCommitments({blobs:s,kzg:n,to:b}),l=t.proofs??m.blobsToProofs({blobs:s,commitments:e,kzg:n,to:b}),c=[];for(let o=0;o<s.length;o++)c.push({blob:s[o],commitment:e[o],proof:l[o]});return c}exports.toBlobSidecars=f;
|
package/dist/index153.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { blobsToCommitments as f } from "./index150.js";
|
|
2
|
+
import { blobsToProofs as l } from "./index151.js";
|
|
3
|
+
import { toBlobs as p } from "./index238.js";
|
|
4
|
+
function k(t) {
|
|
5
|
+
const { data: i, kzg: n, to: m } = t, s = t.blobs ?? p({ data: i, to: m }), b = t.commitments ?? f({ blobs: s, kzg: n, to: m }), r = t.proofs ?? l({ blobs: s, commitments: b, kzg: n, to: m }), c = [];
|
|
6
|
+
for (let o = 0; o < s.length; o++)
|
|
7
|
+
c.push({
|
|
8
|
+
blob: s[o],
|
|
9
|
+
commitment: b[o],
|
|
10
|
+
proof: r[o]
|
|
11
|
+
});
|
|
12
|
+
return c;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
k as toBlobSidecars
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index108.cjs");function f(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new i.InvalidSerializableTransactionError({transaction:e})}exports.getTransactionType=f;
|
package/dist/index154.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { InvalidSerializableTransactionError as f } from "./index108.js";
|
|
2
|
+
function d(e) {
|
|
3
|
+
if (e.type)
|
|
4
|
+
return e.type;
|
|
5
|
+
if (typeof e.authorizationList < "u")
|
|
6
|
+
return "eip7702";
|
|
7
|
+
if (typeof e.blobs < "u" || typeof e.blobVersionedHashes < "u" || typeof e.maxFeePerBlobGas < "u" || typeof e.sidecars < "u")
|
|
8
|
+
return "eip4844";
|
|
9
|
+
if (typeof e.maxFeePerGas < "u" || typeof e.maxPriorityFeePerGas < "u")
|
|
10
|
+
return "eip1559";
|
|
11
|
+
if (typeof e.gasPrice < "u")
|
|
12
|
+
return typeof e.accessList < "u" ? "eip2930" : "legacy";
|
|
13
|
+
throw new f({ transaction: e });
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
d as getTransactionType
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index56.cjs");function i({chain:r,currentChainId:t}){if(!r)throw new e.ChainNotFoundError;if(t!==r.id)throw new e.ChainMismatchError({chain:r,currentChainId:t})}exports.assertCurrentChain=i;
|