@gardenfi/utils 2.4.3-beta.1 → 2.4.4
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/index100.cjs +1 -1
- package/dist/index100.js +5 -22
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +34 -108
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +9 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +8 -50
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +26 -16
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +10 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +14 -5
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +116 -13
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +81 -3
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +175 -24
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +6 -4
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +13 -6
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +12 -87
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +93 -123
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +75 -7
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +89 -21
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +137 -16
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +67 -38
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +23 -21
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +108 -10
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +5 -5
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +49 -105
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +17 -3
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +11 -4
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +6 -9
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +15 -2
- package/dist/index126.cjs +1 -2
- package/dist/index126.js +4 -3
- package/dist/index127.cjs +1 -20
- package/dist/index127.js +26 -326
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +4 -13
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +6 -4
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +89 -2
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +124 -6
- package/dist/index132.cjs +1 -3
- package/dist/index132.js +7 -215
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +22 -32
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +16 -20
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +40 -5
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +21 -73
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +11 -5
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +6 -5
- package/dist/index139.cjs +1 -9
- package/dist/index139.js +105 -34
- package/dist/index140.cjs +1 -3
- package/dist/index140.js +3 -111
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +4 -3
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +9 -24
- package/dist/index143.cjs +1 -3
- package/dist/index143.js +2 -452
- package/dist/index144.cjs +2 -2
- package/dist/index144.js +3 -55
- package/dist/index145.cjs +20 -1
- package/dist/index145.js +317 -17
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +11 -31
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +4 -35
- package/dist/index148.cjs +1 -4
- package/dist/index148.js +2 -195
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +6 -7
- package/dist/index150.cjs +3 -1
- package/dist/index150.js +211 -8
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +32 -19
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +20 -26
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -8
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +70 -52
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +5 -45
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +5 -8
- package/dist/index157.cjs +9 -1
- package/dist/index157.js +35 -7
- package/dist/index158.cjs +3 -1
- package/dist/index158.js +110 -16
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +3 -19
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +2 -2
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +23 -21
- package/dist/index161.cjs +3 -1
- package/dist/index161.js +451 -51
- package/dist/index162.cjs +2 -1
- package/dist/index162.js +54 -11
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +18 -153
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +32 -20
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +34 -126
- package/dist/index166.cjs +4 -1
- package/dist/index166.js +194 -38
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +8 -6
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +16 -25
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +19 -183
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +9 -4
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +7 -64
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +17 -3
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +16 -18
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +19 -14
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +51 -23
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +11 -11
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +158 -31
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +128 -3
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +38 -18
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +2 -2
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +6 -27
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +26 -35
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +191 -10
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +4 -26
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +63 -27
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +3 -66
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +20 -9
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +15 -32
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +23 -24
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +33 -23
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +3 -4
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +18 -14
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +25 -101
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +34 -78
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +10 -5
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +25 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +28 -27
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +63 -37
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +9 -13
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +23 -41
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +24 -5
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +3 -11
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +14 -19
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +73 -71
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +6 -2
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +26 -36
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +39 -108
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +5 -49
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +11 -32
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +19 -8
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +78 -6
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +2 -7
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +37 -11
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +110 -9
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +48 -12
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +31 -31
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +9 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +6 -7
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +6 -8
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +11 -20
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +9 -30
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +13 -3
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +31 -16
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +5 -11
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +7 -21
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +8 -22
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +20 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +31 -5
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +20 -8
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +3 -104
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +9 -9
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +18 -3
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +10 -18
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +19 -169
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +22 -17
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +5 -10
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +8 -16
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +103 -21
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +3 -31
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +19 -2
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +17 -13
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +10 -12
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +15 -46
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +21 -10
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +30 -7
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +2 -10
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +10 -10
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +11 -13
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +47 -9
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +11 -24
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +7 -12
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +9 -24
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +10 -10
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +14 -15
- package/dist/index253.cjs +1 -2
- package/dist/index253.js +9 -24
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +24 -52
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +12 -25
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +24 -13
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +12 -14
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +15 -5
- package/dist/index259.cjs +2 -1
- package/dist/index259.js +24 -13
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +52 -10
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +224 -16
- package/dist/index262.cjs +1 -2
- package/dist/index262.js +138 -40
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +147 -2
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +103 -5
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +6 -10
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +41 -18
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +78 -8
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +2 -67
- package/dist/index269.cjs +2 -1
- package/dist/index269.js +40 -64
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +2 -187
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +4 -21
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +9 -41
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +17 -74
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +8 -40
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +66 -16
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +64 -12
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +184 -10
- package/dist/index278.cjs +1 -2
- package/dist/index278.js +22 -18
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +41 -13
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +31 -27
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +76 -11
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +37 -100
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +16 -6
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +12 -223
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +12 -6
- package/dist/index285.cjs +2 -1
- package/dist/index285.js +19 -7
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +13 -25
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +11 -19
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +6 -146
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +7 -4
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +12 -8
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +23 -137
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +17 -153
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +3 -9
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +130 -103
- package/dist/index294.cjs +1 -2
- package/dist/index294.js +123 -102
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +9 -42
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +107 -72
- package/dist/index297.cjs +2 -1
- package/dist/index297.js +135 -2
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +27 -31
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +698 -68
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +178 -675
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +67 -138
- package/dist/index303.cjs +2 -1
- package/dist/index303.js +63 -198
- package/dist/index304.cjs +1 -2
- package/dist/index304.js +4 -66
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +40 -4
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +7 -40
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +62 -7
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +72 -57
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +4 -78
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +8 -12
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +195 -4
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +4 -194
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +4 -4
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +5 -45
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +44 -4
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +2 -5
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +22 -2
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +39 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +45 -31
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +24 -28
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +6 -16
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +13 -33
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +15 -44
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +5 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +12 -34
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +9 -56
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +11 -58
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +11 -13
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -37
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -15
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +55 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +16 -20
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +6 -2
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -45
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +170 -31
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +103 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +3 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +20 -67
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +7 -9
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +28 -25
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +29 -71
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +16 -19
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +33 -110
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +41 -57
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +150 -23
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +32 -37
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +36 -35
- package/dist/index62.cjs +2 -1
- package/dist/index62.js +58 -57
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +35 -164
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +14 -39
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +8 -9
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +2 -37
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +45 -9
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +29 -48
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +8 -88
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +65 -38
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +9 -8
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +28 -6
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +71 -17
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +19 -8
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +110 -13
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +60 -7
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +24 -9
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +38 -44
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +37 -13
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +58 -16
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +166 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +40 -6
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +8 -34
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +35 -8
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -7
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +49 -25
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +85 -10
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +41 -14
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +8 -117
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +6 -81
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +17 -177
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +8 -6
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +13 -13
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +7 -13
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +9 -103
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +45 -74
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +13 -89
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +16 -138
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +13 -69
- package/package.json +2 -3
- package/dist/index317.cjs +0 -1
- package/dist/index317.js +0 -24
package/dist/index63.js
CHANGED
|
@@ -1,169 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import { extract as nt } from "./index240.js";
|
|
16
|
-
import { formatTransactionRequest as st } from "./index189.js";
|
|
17
|
-
import { createBatchScheduler as it } from "./index54.js";
|
|
18
|
-
import { serializeStateOverride as lt } from "./index241.js";
|
|
19
|
-
import { assertRequest as ut } from "./index202.js";
|
|
20
|
-
import { parseAbi as G } from "./index242.js";
|
|
21
|
-
async function Vt(t, a) {
|
|
22
|
-
var q, E, O, P;
|
|
23
|
-
const { account: e = t.account, authorizationList: i, batch: r = !!((q = t.batch) != null && q.multicall), blockNumber: p, blockTag: C = t.experimental_blockTag ?? "latest", accessList: D, blobs: B, blockOverrides: f, code: b, data: n, factory: m, factoryData: l, gas: F, gasPrice: k, maxFeePerBlobGas: h, maxFeePerGas: y, maxPriorityFeePerGas: g, nonce: w, to: o, value: M, stateOverride: $, ...W } = a, x = e ? Q(e) : void 0;
|
|
24
|
-
if (b && (m || l))
|
|
25
|
-
throw new R("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
|
|
26
|
-
if (b && o)
|
|
27
|
-
throw new R("Cannot provide both `code` & `to` as parameters.");
|
|
28
|
-
const S = b && n, _ = m && l && o && n, A = S || _, I = S ? mt({
|
|
29
|
-
code: b,
|
|
30
|
-
data: n
|
|
31
|
-
}) : _ ? pt({
|
|
32
|
-
data: n,
|
|
33
|
-
factory: m,
|
|
34
|
-
factoryData: l,
|
|
35
|
-
to: o
|
|
36
|
-
}) : n;
|
|
37
|
-
try {
|
|
38
|
-
ut(a);
|
|
39
|
-
const c = (typeof p == "bigint" ? j(p) : void 0) || C, u = f ? K(f) : void 0, d = lt($), T = (P = (O = (E = t.chain) == null ? void 0 : E.formatters) == null ? void 0 : O.transactionRequest) == null ? void 0 : P.format, N = (T || st)({
|
|
40
|
-
// Pick out extra data that might exist on the chain's transaction request type.
|
|
41
|
-
...nt(W, { format: T }),
|
|
42
|
-
from: x == null ? void 0 : x.address,
|
|
43
|
-
accessList: D,
|
|
44
|
-
authorizationList: i,
|
|
45
|
-
blobs: B,
|
|
46
|
-
data: I,
|
|
47
|
-
gas: F,
|
|
48
|
-
gasPrice: k,
|
|
49
|
-
maxFeePerBlobGas: h,
|
|
50
|
-
maxFeePerGas: y,
|
|
51
|
-
maxPriorityFeePerGas: g,
|
|
52
|
-
nonce: w,
|
|
53
|
-
to: A ? void 0 : o,
|
|
54
|
-
value: M
|
|
55
|
-
});
|
|
56
|
-
if (r && dt({ request: N }) && !d && !u)
|
|
57
|
-
try {
|
|
58
|
-
return await ft(t, {
|
|
59
|
-
...N,
|
|
60
|
-
blockNumber: p,
|
|
61
|
-
blockTag: C
|
|
62
|
-
});
|
|
63
|
-
} catch (s) {
|
|
64
|
-
if (!(s instanceof H) && !(s instanceof Z))
|
|
65
|
-
throw s;
|
|
66
|
-
}
|
|
67
|
-
const J = (() => {
|
|
68
|
-
const s = [
|
|
69
|
-
N,
|
|
70
|
-
c
|
|
71
|
-
];
|
|
72
|
-
return d && u ? [...s, d, u] : d ? [...s, d] : u ? [...s, {}, u] : s;
|
|
73
|
-
})(), V = await t.request({
|
|
74
|
-
method: "eth_call",
|
|
75
|
-
params: J
|
|
76
|
-
});
|
|
77
|
-
return V === "0x" ? { data: void 0 } : { data: V };
|
|
78
|
-
} catch (v) {
|
|
79
|
-
const c = bt(v), { offchainLookup: u, offchainLookupSignature: d } = await import("./index206.js");
|
|
80
|
-
if (t.ccipRead !== !1 && (c == null ? void 0 : c.slice(0, 10)) === d && o)
|
|
81
|
-
return { data: await u(t, { data: c, to: o }) };
|
|
82
|
-
throw A && (c == null ? void 0 : c.slice(0, 10)) === "0x101bb98d" ? new tt({ factory: m }) : ct(v, {
|
|
83
|
-
...a,
|
|
84
|
-
account: x,
|
|
85
|
-
chain: t.chain
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function dt({ request: t }) {
|
|
90
|
-
const { data: a, to: e, ...i } = t;
|
|
91
|
-
return !(!a || a.startsWith(U) || !e || Object.values(i).filter((r) => typeof r < "u").length > 0);
|
|
92
|
-
}
|
|
93
|
-
async function ft(t, a) {
|
|
94
|
-
var k;
|
|
95
|
-
const { batchSize: e = 1024, wait: i = 0 } = typeof ((k = t.batch) == null ? void 0 : k.multicall) == "object" ? t.batch.multicall : {}, { blockNumber: r, blockTag: p = t.experimental_blockTag ?? "latest", data: C, multicallAddress: D, to: B } = a;
|
|
96
|
-
let f = D;
|
|
97
|
-
if (!f) {
|
|
98
|
-
if (!t.chain)
|
|
99
|
-
throw new H();
|
|
100
|
-
f = ot({
|
|
101
|
-
blockNumber: r,
|
|
102
|
-
chain: t.chain,
|
|
103
|
-
contract: "multicall3"
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
const n = (typeof r == "bigint" ? j(r) : void 0) || p, { schedule: m } = it({
|
|
107
|
-
id: `${t.uid}.${n}`,
|
|
108
|
-
wait: i,
|
|
109
|
-
shouldSplitBatch(h) {
|
|
110
|
-
return h.reduce((g, { data: w }) => g + (w.length - 2), 0) > e * 2;
|
|
111
|
-
},
|
|
112
|
-
fn: async (h) => {
|
|
113
|
-
const y = h.map((o) => ({
|
|
114
|
-
allowFailure: !0,
|
|
115
|
-
callData: o.data,
|
|
116
|
-
target: o.to
|
|
117
|
-
})), g = rt({
|
|
118
|
-
abi: z,
|
|
119
|
-
args: [y],
|
|
120
|
-
functionName: "aggregate3"
|
|
121
|
-
}), w = await t.request({
|
|
122
|
-
method: "eth_call",
|
|
123
|
-
params: [
|
|
124
|
-
{
|
|
125
|
-
data: g,
|
|
126
|
-
to: f
|
|
127
|
-
},
|
|
128
|
-
n
|
|
129
|
-
]
|
|
130
|
-
});
|
|
131
|
-
return et({
|
|
132
|
-
abi: z,
|
|
133
|
-
args: [y],
|
|
134
|
-
functionName: "aggregate3",
|
|
135
|
-
data: w || "0x"
|
|
1
|
+
const f = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
2
|
+
let k = 0;
|
|
3
|
+
function y(s, l, m) {
|
|
4
|
+
const i = ++k, c = () => f.get(s) || [], w = () => {
|
|
5
|
+
const n = c();
|
|
6
|
+
f.set(s, n.filter((e) => e.id !== i));
|
|
7
|
+
}, r = () => {
|
|
8
|
+
const n = c();
|
|
9
|
+
if (!n.some((t) => t.id === i))
|
|
10
|
+
return;
|
|
11
|
+
const e = g.get(s);
|
|
12
|
+
if (n.length === 1 && e) {
|
|
13
|
+
const t = e();
|
|
14
|
+
t instanceof Promise && t.catch(() => {
|
|
136
15
|
});
|
|
137
16
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
args: [r, a, e, i]
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
function bt(t) {
|
|
160
|
-
var e;
|
|
161
|
-
if (!(t instanceof R))
|
|
162
|
-
return;
|
|
163
|
-
const a = t.walk();
|
|
164
|
-
return typeof (a == null ? void 0 : a.data) == "object" ? (e = a.data) == null ? void 0 : e.data : a.data;
|
|
17
|
+
w();
|
|
18
|
+
}, o = c();
|
|
19
|
+
if (f.set(s, [
|
|
20
|
+
...o,
|
|
21
|
+
{ id: i, fns: l }
|
|
22
|
+
]), o && o.length > 0)
|
|
23
|
+
return r;
|
|
24
|
+
const u = {};
|
|
25
|
+
for (const n in l)
|
|
26
|
+
u[n] = (...e) => {
|
|
27
|
+
var p, h;
|
|
28
|
+
const t = c();
|
|
29
|
+
if (t.length !== 0)
|
|
30
|
+
for (const C of t)
|
|
31
|
+
(h = (p = C.fns)[n]) == null || h.call(p, ...e);
|
|
32
|
+
};
|
|
33
|
+
const a = m(u);
|
|
34
|
+
return typeof a == "function" && g.set(s, a), r;
|
|
165
35
|
}
|
|
166
36
|
export {
|
|
167
|
-
|
|
168
|
-
|
|
37
|
+
g as cleanupCache,
|
|
38
|
+
f as listenersCache,
|
|
39
|
+
y as observe
|
|
169
40
|
};
|
package/dist/index64.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("./index229.cjs");function s(o,{emitOnBegin:w,initialWaitTime:t,interval:c}){let e=!0;const a=()=>e=!1;return(async()=>{let n;w&&(n=await o({unpoll:a}));const r=await(t==null?void 0:t(n))??c;await u.wait(r);const l=async()=>{e&&(await o({unpoll:a}),await u.wait(c),l())};l()})(),a}exports.poll=s;
|
package/dist/index64.js
CHANGED
|
@@ -1,43 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const y = (typeof s == "bigint" ? A(s) : void 0) || u, i = (m = (c = (a = t.chain) == null ? void 0 : a.formatters) == null ? void 0 : c.transactionRequest) == null ? void 0 : m.format, F = (i || N)({
|
|
13
|
-
// Pick out extra data that might exist on the chain's transaction request type.
|
|
14
|
-
...H(P, { format: i }),
|
|
15
|
-
from: e == null ? void 0 : e.address,
|
|
16
|
-
blobs: b,
|
|
17
|
-
data: p,
|
|
18
|
-
gas: d,
|
|
19
|
-
gasPrice: h,
|
|
20
|
-
maxFeePerBlobGas: l,
|
|
21
|
-
maxFeePerGas: x,
|
|
22
|
-
maxPriorityFeePerGas: g,
|
|
23
|
-
to: k,
|
|
24
|
-
value: q
|
|
25
|
-
}), f = await t.request({
|
|
26
|
-
method: "eth_createAccessList",
|
|
27
|
-
params: [F, y]
|
|
28
|
-
});
|
|
29
|
-
return {
|
|
30
|
-
accessList: f.accessList,
|
|
31
|
-
gasUsed: BigInt(f.gasUsed)
|
|
1
|
+
import { wait as l } from "./index229.js";
|
|
2
|
+
function f(o, { emitOnBegin: r, initialWaitTime: t, interval: c }) {
|
|
3
|
+
let n = !0;
|
|
4
|
+
const a = () => n = !1;
|
|
5
|
+
return (async () => {
|
|
6
|
+
let w;
|
|
7
|
+
r && (w = await o({ unpoll: a }));
|
|
8
|
+
const s = await (t == null ? void 0 : t(w)) ?? c;
|
|
9
|
+
await l(s);
|
|
10
|
+
const u = async () => {
|
|
11
|
+
n && (await o({ unpoll: a }), await l(c), u());
|
|
32
12
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
...r,
|
|
36
|
-
account: e,
|
|
37
|
-
chain: t.chain
|
|
38
|
-
});
|
|
39
|
-
}
|
|
13
|
+
u();
|
|
14
|
+
})(), a;
|
|
40
15
|
}
|
|
41
16
|
export {
|
|
42
|
-
|
|
17
|
+
f as poll
|
|
43
18
|
};
|
package/dist/index65.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
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/index65.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
});
|
|
8
|
-
return { id: t, request: o(t), type: "block" };
|
|
1
|
+
function i() {
|
|
2
|
+
let e = () => {
|
|
3
|
+
}, n = () => {
|
|
4
|
+
};
|
|
5
|
+
return { promise: new Promise((r, o) => {
|
|
6
|
+
e = r, n = o;
|
|
7
|
+
}), resolve: e, reject: n };
|
|
9
8
|
}
|
|
10
9
|
export {
|
|
11
|
-
i as
|
|
10
|
+
i as withResolvers
|
|
12
11
|
};
|
package/dist/index66.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(e,n,i)=>JSON.stringify(e,(o,t)=>typeof t=="bigint"?t.toString():t,i);exports.stringify=r;
|
package/dist/index66.js
CHANGED
|
@@ -1,39 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { numberToHex as m } from "./index155.js";
|
|
3
|
-
import { createFilterRequestScope as h } from "./index243.js";
|
|
4
|
-
async function l(r, { address: p, args: a, event: e, events: c, fromBlock: n, strict: f, toBlock: i } = {}) {
|
|
5
|
-
const o = c ?? (e ? [e] : void 0), u = h(r, {
|
|
6
|
-
method: "eth_newFilter"
|
|
7
|
-
});
|
|
8
|
-
let t = [];
|
|
9
|
-
o && (t = [o.flatMap((d) => b({
|
|
10
|
-
abi: [d],
|
|
11
|
-
eventName: d.name,
|
|
12
|
-
args: a
|
|
13
|
-
}))], e && (t = t[0]));
|
|
14
|
-
const s = await r.request({
|
|
15
|
-
method: "eth_newFilter",
|
|
16
|
-
params: [
|
|
17
|
-
{
|
|
18
|
-
address: p,
|
|
19
|
-
fromBlock: typeof n == "bigint" ? m(n) : n,
|
|
20
|
-
toBlock: typeof i == "bigint" ? m(i) : i,
|
|
21
|
-
...t.length ? { topics: t } : {}
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
});
|
|
25
|
-
return {
|
|
26
|
-
abi: o,
|
|
27
|
-
args: a,
|
|
28
|
-
eventName: e ? e.name : void 0,
|
|
29
|
-
fromBlock: n,
|
|
30
|
-
id: s,
|
|
31
|
-
request: u(s),
|
|
32
|
-
strict: !!f,
|
|
33
|
-
toBlock: i,
|
|
34
|
-
type: "event"
|
|
35
|
-
};
|
|
36
|
-
}
|
|
1
|
+
const g = (r, n, i) => JSON.stringify(r, (e, t) => typeof t == "bigint" ? t.toString() : t, i);
|
|
37
2
|
export {
|
|
38
|
-
|
|
3
|
+
g as stringify
|
|
39
4
|
};
|
package/dist/index67.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index179.cjs"),I=require("./index180.cjs"),n=require("./index44.cjs"),T=require("./index199.cjs"),o=require("./index130.cjs");async function q(r,l){async function d(e){if(e.endsWith(o.fallbackMagicIdentifier.slice(2))){const p=I.trim(c.sliceHex(e,-64,-32)),b=c.sliceHex(e,0,-64).slice(2).match(/.{1,64}/g),s=await Promise.all(b.map(t=>o.fallbackTransactionErrorMagicIdentifier.slice(2)!==t?r.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),x=s.some(t=>t===null)?100:s.every(t=>(t==null?void 0:t.status)==="0x1")?200:s.every(t=>(t==null?void 0:t.status)==="0x0")?500:600;return{atomic:!1,chainId:n.hexToNumber(p),receipts:s.filter(Boolean),status:x,version:"2.0.0"}}return r.request({method:"wallet_getCallsStatus",params:[e]})}const{atomic:f=!1,chainId:i,receipts:a,version:m="2.0.0",...u}=await d(l.id),[g,h]=(()=>{const e=u.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:e==="CONFIRMED"?["success",200]:e==="PENDING"?["pending",100]:[void 0,e]})();return{...u,atomic:f,chainId:i?n.hexToNumber(i):void 0,receipts:(a==null?void 0:a.map(e=>({...e,blockNumber:n.hexToBigInt(e.blockNumber),gasUsed:n.hexToBigInt(e.gasUsed),status:T.receiptStatuses[e.status]})))??[],statusCode:h,status:g,version:m}}exports.getCallsStatus=q;
|
package/dist/index67.js
CHANGED
|
@@ -1,12 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { sliceHex as o } from "./index179.js";
|
|
2
|
+
import { trim as x } from "./index180.js";
|
|
3
|
+
import { hexToNumber as u, hexToBigInt as c } from "./index44.js";
|
|
4
|
+
import { receiptStatuses as N } from "./index199.js";
|
|
5
|
+
import { fallbackMagicIdentifier as T, fallbackTransactionErrorMagicIdentifier as C } from "./index130.js";
|
|
6
|
+
async function M(a, f) {
|
|
7
|
+
async function m(t) {
|
|
8
|
+
if (t.endsWith(T.slice(2))) {
|
|
9
|
+
const h = x(o(t, -64, -32)), I = o(t, 0, -64).slice(2).match(/.{1,64}/g), s = await Promise.all(I.map((e) => C.slice(2) !== e ? a.request({
|
|
10
|
+
method: "eth_getTransactionReceipt",
|
|
11
|
+
params: [`0x${e}`]
|
|
12
|
+
}, { dedupe: !0 }) : void 0)), b = s.some((e) => e === null) ? 100 : s.every((e) => (e == null ? void 0 : e.status) === "0x1") ? 200 : s.every((e) => (e == null ? void 0 : e.status) === "0x0") ? 500 : 600;
|
|
13
|
+
return {
|
|
14
|
+
atomic: !1,
|
|
15
|
+
chainId: u(h),
|
|
16
|
+
receipts: s.filter(Boolean),
|
|
17
|
+
status: b,
|
|
18
|
+
version: "2.0.0"
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return a.request({
|
|
22
|
+
method: "wallet_getCallsStatus",
|
|
23
|
+
params: [t]
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
const { atomic: l = !1, chainId: r, receipts: n, version: d = "2.0.0", ...i } = await m(f.id), [p, g] = (() => {
|
|
27
|
+
const t = i.status;
|
|
28
|
+
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];
|
|
29
|
+
})();
|
|
30
|
+
return {
|
|
31
|
+
...i,
|
|
32
|
+
atomic: l,
|
|
33
|
+
// @ts-expect-error: for backwards compatibility
|
|
34
|
+
chainId: r ? u(r) : void 0,
|
|
35
|
+
receipts: (n == null ? void 0 : n.map((t) => ({
|
|
36
|
+
...t,
|
|
37
|
+
blockNumber: c(t.blockNumber),
|
|
38
|
+
gasUsed: c(t.gasUsed),
|
|
39
|
+
status: N[t.status]
|
|
40
|
+
}))) ?? [],
|
|
41
|
+
statusCode: g,
|
|
42
|
+
status: p,
|
|
43
|
+
version: d
|
|
44
|
+
};
|
|
9
45
|
}
|
|
10
46
|
export {
|
|
11
|
-
|
|
47
|
+
M as getCallsStatus
|
|
12
48
|
};
|
package/dist/index68.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 M=require("./index51.cjs"),j=require("./index69.cjs");function q(n){const{batch:u,chain:t,ccipRead:a,key:r="base",name:d="Base Client",type:b="base"}=n,f=(t==null?void 0:t.blockTime)??12e3,g=Math.min(Math.max(Math.floor(f/2),500),4e3),e=n.pollingInterval??g,h=n.cacheTime??e,v=n.account?M.parseAccount(n.account):void 0,{config:x,request:y,value:T}=n.transport({chain:t,pollingInterval:e}),k={...x,...T},c={account:v,batch:u,cacheTime:h,ccipRead:a,chain:t,key:r,name:d,pollingInterval:e,request:y,transport:k,type:b,uid:j.uid()};function o(i){return m=>{const l=m(i);for(const p in c)delete l[p];const s={...i,...l};return Object.assign(s,{extend:o(s)})}}return Object.assign(c,{extend:o(c)})}exports.createClient=q;
|
package/dist/index68.js
CHANGED
|
@@ -1,53 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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
|
-
type: m
|
|
29
|
-
});
|
|
30
|
-
if (r !== null)
|
|
31
|
-
return r;
|
|
32
|
-
}
|
|
33
|
-
if (m === "eip1559") {
|
|
34
|
-
if (typeof f.baseFeePerGas != "bigint")
|
|
35
|
-
throw new b();
|
|
36
|
-
const r = typeof (e == null ? void 0 : e.maxPriorityFeePerGas) == "bigint" ? e.maxPriorityFeePerGas : await g(a, {
|
|
37
|
-
block: f,
|
|
38
|
-
chain: t,
|
|
39
|
-
request: e
|
|
40
|
-
}), s = c(f.baseFeePerGas);
|
|
41
|
-
return {
|
|
42
|
-
maxFeePerGas: (e == null ? void 0 : e.maxFeePerGas) ?? s + r,
|
|
43
|
-
maxPriorityFeePerGas: r
|
|
1
|
+
import { parseAccount as I } from "./index51.js";
|
|
2
|
+
import { uid as M } from "./index69.js";
|
|
3
|
+
function O(n) {
|
|
4
|
+
const { batch: u, chain: t, ccipRead: a, key: d = "base", name: r = "Base Client", type: f = "base" } = n, b = (t == null ? void 0 : t.blockTime) ?? 12e3, m = Math.min(Math.max(Math.floor(b / 2), 500), 4e3), e = n.pollingInterval ?? m, g = n.cacheTime ?? e, x = n.account ? I(n.account) : void 0, { config: h, request: p, value: k } = n.transport({
|
|
5
|
+
chain: t,
|
|
6
|
+
pollingInterval: e
|
|
7
|
+
}), v = { ...h, ...k }, c = {
|
|
8
|
+
account: x,
|
|
9
|
+
batch: u,
|
|
10
|
+
cacheTime: g,
|
|
11
|
+
ccipRead: a,
|
|
12
|
+
chain: t,
|
|
13
|
+
key: d,
|
|
14
|
+
name: r,
|
|
15
|
+
pollingInterval: e,
|
|
16
|
+
request: p,
|
|
17
|
+
transport: v,
|
|
18
|
+
type: f,
|
|
19
|
+
uid: M()
|
|
20
|
+
};
|
|
21
|
+
function o(i) {
|
|
22
|
+
return (T) => {
|
|
23
|
+
const l = T(i);
|
|
24
|
+
for (const y in c)
|
|
25
|
+
delete l[y];
|
|
26
|
+
const s = { ...i, ...l };
|
|
27
|
+
return Object.assign(s, { extend: o(s) });
|
|
44
28
|
};
|
|
45
29
|
}
|
|
46
|
-
return {
|
|
47
|
-
gasPrice: (e == null ? void 0 : e.gasPrice) ?? c(await F(a, u, "getGasPrice")({}))
|
|
48
|
-
};
|
|
30
|
+
return Object.assign(c, { extend: o(c) });
|
|
49
31
|
}
|
|
50
32
|
export {
|
|
51
|
-
|
|
52
|
-
w as internal_estimateFeesPerGas
|
|
33
|
+
O as createClient
|
|
53
34
|
};
|
package/dist/index69.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 i=256;let t=i,e;function u(r=11){if(!e||t+r>i*2){e="",t=0;for(let n=0;n<i;n++)e+=(256+Math.random()*256|0).toString(16).substring(1)}return e.substring(t,t+++r)}exports.uid=u;
|
package/dist/index69.js
CHANGED
|
@@ -1,92 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { formatTransactionRequest as C } from "./index189.js";
|
|
8
|
-
import { serializeStateOverride as j } from "./index241.js";
|
|
9
|
-
import { assertRequest as D } from "./index202.js";
|
|
10
|
-
import { prepareTransactionRequest as J } from "./index101.js";
|
|
11
|
-
import { getBalance as K } from "./index71.js";
|
|
12
|
-
async function st(e, i) {
|
|
13
|
-
var f, d, p;
|
|
14
|
-
const { account: u = e.account } = i, t = u ? E(u) : void 0;
|
|
15
|
-
try {
|
|
16
|
-
let v = function(c) {
|
|
17
|
-
const { block: s, request: r, rpcStateOverride: o } = c;
|
|
18
|
-
return e.request({
|
|
19
|
-
method: "eth_estimateGas",
|
|
20
|
-
params: o ? [
|
|
21
|
-
r,
|
|
22
|
-
s ?? e.experimental_blockTag ?? "latest",
|
|
23
|
-
o
|
|
24
|
-
] : s ? [r, s] : [r]
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const { accessList: n, authorizationList: a, blobs: y, blobVersionedHashes: G, blockNumber: b, blockTag: z, data: h, gas: P, gasPrice: B, maxFeePerBlobGas: H, maxFeePerGas: T, maxPriorityFeePerGas: F, nonce: L, value: O, stateOverride: R, ...m } = await J(e, {
|
|
28
|
-
...i,
|
|
29
|
-
parameters: (
|
|
30
|
-
// Some RPC Providers do not compute versioned hashes from blobs. We will need
|
|
31
|
-
// to compute them.
|
|
32
|
-
(t == null ? void 0 : t.type) === "local" ? void 0 : ["blobVersionedHashes"]
|
|
33
|
-
)
|
|
34
|
-
}), l = (typeof b == "bigint" ? k(b) : void 0) || z, w = j(R), _ = await (async () => {
|
|
35
|
-
if (m.to)
|
|
36
|
-
return m.to;
|
|
37
|
-
if (a && a.length > 0)
|
|
38
|
-
return await S({
|
|
39
|
-
authorization: a[0]
|
|
40
|
-
}).catch(() => {
|
|
41
|
-
throw new N("`to` is required. Could not infer from `authorizationList`");
|
|
42
|
-
});
|
|
43
|
-
})();
|
|
44
|
-
D(i);
|
|
45
|
-
const q = (p = (d = (f = e.chain) == null ? void 0 : f.formatters) == null ? void 0 : d.transactionRequest) == null ? void 0 : p.format, x = (q || C)({
|
|
46
|
-
// Pick out extra data that might exist on the chain's transaction request type.
|
|
47
|
-
...V(m, { format: q }),
|
|
48
|
-
from: t == null ? void 0 : t.address,
|
|
49
|
-
accessList: n,
|
|
50
|
-
authorizationList: a,
|
|
51
|
-
blobs: y,
|
|
52
|
-
blobVersionedHashes: G,
|
|
53
|
-
data: h,
|
|
54
|
-
gas: P,
|
|
55
|
-
gasPrice: B,
|
|
56
|
-
maxFeePerBlobGas: H,
|
|
57
|
-
maxFeePerGas: T,
|
|
58
|
-
maxPriorityFeePerGas: F,
|
|
59
|
-
nonce: L,
|
|
60
|
-
to: _,
|
|
61
|
-
value: O
|
|
62
|
-
});
|
|
63
|
-
let g = BigInt(await v({ block: l, request: x, rpcStateOverride: w }));
|
|
64
|
-
if (a) {
|
|
65
|
-
const c = await K(e, { address: x.from }), s = await Promise.all(a.map(async (r) => {
|
|
66
|
-
const { address: o } = r, A = await v({
|
|
67
|
-
block: l,
|
|
68
|
-
request: {
|
|
69
|
-
authorizationList: void 0,
|
|
70
|
-
data: h,
|
|
71
|
-
from: t == null ? void 0 : t.address,
|
|
72
|
-
to: o,
|
|
73
|
-
value: k(c)
|
|
74
|
-
},
|
|
75
|
-
rpcStateOverride: w
|
|
76
|
-
}).catch(() => 100000n);
|
|
77
|
-
return 2n * BigInt(A);
|
|
78
|
-
}));
|
|
79
|
-
g += s.reduce((r, o) => r + o, 0n);
|
|
80
|
-
}
|
|
81
|
-
return g;
|
|
82
|
-
} catch (n) {
|
|
83
|
-
throw I(n, {
|
|
84
|
-
...i,
|
|
85
|
-
account: t,
|
|
86
|
-
chain: e.chain
|
|
87
|
-
});
|
|
1
|
+
let i = 256, t;
|
|
2
|
+
function s(e = 11) {
|
|
3
|
+
if (!t || i + e > 256 * 2) {
|
|
4
|
+
t = "", i = 0;
|
|
5
|
+
for (let r = 0; r < 256; r++)
|
|
6
|
+
t += (256 + Math.random() * 256 | 0).toString(16).substring(1);
|
|
88
7
|
}
|
|
8
|
+
return t.substring(i, i++ + e);
|
|
89
9
|
}
|
|
90
10
|
export {
|
|
91
|
-
|
|
11
|
+
s as uid
|
|
92
12
|
};
|
package/dist/index70.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("./index66.cjs"),i=require("./index62.cjs"),o=require("./index159.cjs");class d extends i.BaseError{constructor({body:t,cause:e,details:r,headers:n,status:s,url:l}){super("HTTP request failed.",{cause:e,details:r,metaMessages:[s&&`Status: ${s}`,`URL: ${o.getUrl(l)}`,t&&`Request body: ${u.stringify(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=n,this.status=s,this.url=l}}class c extends i.BaseError{constructor({body:t,error:e,url:r}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${o.getUrl(r)}`,`Request body: ${u.stringify(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code,this.data=e.data}}class b extends i.BaseError{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${o.getUrl(e)}`,`Request body: ${u.stringify(t)}`],name:"TimeoutError"})}}exports.HttpRequestError=d;exports.RpcRequestError=c;exports.TimeoutError=b;
|