@gardenfi/utils 2.1.3-beta.16 → 2.1.3-beta.18
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 +26 -24
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +114 -34
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +16 -9
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +9 -15
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +5 -65
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +10 -11
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +3 -13
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +26 -8
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +4 -10
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +6 -26
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +46 -13
- package/dist/index109.cjs +1 -3
- package/dist/index109.js +117 -104
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +37 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +7 -51
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +21 -24
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +16 -116
- package/dist/index113.cjs +1 -20
- package/dist/index113.js +40 -326
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +21 -80
- package/dist/index115.cjs +1 -4
- package/dist/index115.js +11 -194
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +6 -24
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +103 -178
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +3 -13
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +4 -25
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +19 -134
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +9 -3
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +2 -89
- package/dist/index122.cjs +2 -1
- package/dist/index122.js +3 -33
- package/dist/index123.cjs +20 -1
- package/dist/index123.js +326 -15
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +14 -2
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +4 -75
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +2 -139
- package/dist/index127.cjs +1 -3
- package/dist/index127.js +6 -450
- package/dist/index128.cjs +3 -1
- package/dist/index128.js +209 -58
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +32 -7
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +136 -10
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +20 -68
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +5 -5
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +72 -20
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +5 -3
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +5 -14
- package/dist/index135.cjs +9 -1
- package/dist/index135.js +33 -86
- package/dist/index136.cjs +3 -1
- package/dist/index136.js +110 -18
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +3 -14
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +21 -43
- package/dist/index139.cjs +3 -1
- package/dist/index139.js +451 -38
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +15 -2
- package/dist/index140.cjs +2 -1
- package/dist/index140.js +54 -7
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +23 -35
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +33 -8
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +35 -9
- package/dist/index144.cjs +4 -1
- package/dist/index144.js +194 -15
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +7 -94
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +12 -20
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +18 -4
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +27 -6
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +8 -26
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +2 -35
- package/dist/index150.cjs +1 -2
- package/dist/index150.js +53 -22
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +45 -9
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +8 -8
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +7 -10
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +16 -11
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +18 -13
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +21 -14
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +51 -7
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +11 -21
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +161 -6
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +33 -17
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +21 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +127 -40
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +37 -16
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +6 -21
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +24 -77
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +188 -41
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +4 -12
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +61 -51
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +3 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +20 -5
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +14 -184
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +16 -5
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +23 -11
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +11 -13
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +34 -13
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +3 -6
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +18 -13
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +25 -101
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +36 -6
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +10 -151
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +22 -32
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +185 -117
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +27 -30
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +64 -8
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +9 -68
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +32 -8
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +23 -70
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +24 -19
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +3 -110
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +14 -23
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +102 -49
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +77 -103
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +121 -2
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +6 -9
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +7 -2
- package/dist/index192.cjs +1 -2
- package/dist/index192.js +24 -3
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +37 -13
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +13 -4
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +43 -2
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +6 -32
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +11 -21
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +19 -5
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +78 -5
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -13
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +2 -6
- package/dist/index201.cjs +1 -9
- package/dist/index201.js +30 -28
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +112 -3
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +43 -20
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +31 -32
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +8 -35
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +6 -8
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +6 -12
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +11 -18
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +9 -26
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +13 -464
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +13 -8
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +31 -54
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +5 -9
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +7 -7
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +8 -161
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +20 -127
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +30 -26
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +18 -189
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +4 -4
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +18 -3
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +464 -36
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +10 -20
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +21 -16
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +22 -11
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +5 -34
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +6 -3
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +8 -27
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +104 -25
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +111 -27
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +18 -6
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +169 -25
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +36 -31
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +17 -34
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +10 -42
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +15 -77
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +23 -2
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +2 -38
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +13 -49
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +12 -6
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +47 -6
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +10 -31
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +8 -5
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +13 -32
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +9 -8
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +13 -3
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +14 -17
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -10
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +30 -5
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +24 -8
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +11 -103
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +25 -3
- package/dist/index248.cjs +2 -1
- package/dist/index248.js +23 -17
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +13 -171
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +57 -11
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +15 -17
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +51 -24
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +24 -12
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +13 -15
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +15 -5
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +5 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +12 -9
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +10 -16
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +16 -3
- package/dist/index259.cjs +2 -1
- package/dist/index259.js +40 -139
- package/dist/index26.cjs +16 -1
- package/dist/index26.js +113 -57
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +2 -156
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +5 -9
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +9 -112
- package/dist/index263.cjs +1 -2
- package/dist/index263.js +16 -131
- package/dist/index264.cjs +1 -2
- package/dist/index264.js +8 -41
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +67 -2
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +65 -5
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +185 -9
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +20 -17
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +42 -8
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +32 -13
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +72 -62
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +36 -61
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +15 -185
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +12 -21
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +12 -42
- package/dist/index275.cjs +2 -1
- package/dist/index275.js +18 -76
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +12 -39
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +11 -16
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +16 -13
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +221 -10
- package/dist/index28.cjs +1 -16
- package/dist/index28.js +30 -113
- package/dist/index280.cjs +1 -2
- package/dist/index280.js +6 -18
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +7 -15
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +26 -11
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +34 -103
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +17 -15
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +64 -208
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +67 -6
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +4 -7
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +137 -23
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +153 -17
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +11 -16
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +9 -108
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +111 -9
- package/dist/index292.cjs +2 -1
- package/dist/index292.js +133 -18
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +28 -42
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +32 -72
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +12 -2
- package/dist/index296.cjs +1 -2
- package/dist/index296.js +18 -65
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +68 -4
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +2 -41
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +40 -7
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +7 -45
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +635 -55
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +200 -71
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +173 -4
- package/dist/index303.cjs +2 -1
- package/dist/index303.js +62 -190
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +4 -68
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +37 -654
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +7 -206
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +56 -171
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +61 -47
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +4 -45
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +30 -9
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +194 -4
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +19 -5
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +64 -2
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +43 -20
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +7 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +107 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +7 -0
- package/dist/index317.cjs +1 -0
- package/dist/index317.js +4 -0
- package/dist/index318.cjs +1 -0
- package/dist/index318.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +29 -18
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +16 -125
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +30 -57
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +43 -22
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +151 -10
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +33 -18
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +38 -6
- package/dist/index39.cjs +2 -1
- package/dist/index39.js +59 -10
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +5 -5
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +32 -32
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +15 -16
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -16
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +2 -8
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +26 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +30 -23
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +3 -22
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +8 -57
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +66 -38
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +8 -36
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +25 -163
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +67 -107
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +16 -27
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +110 -3
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +61 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +25 -4
- package/dist/index56.cjs +1 -2
- package/dist/index56.js +38 -57
- package/dist/index57.cjs +1 -2
- package/dist/index57.js +36 -53
- package/dist/index58.cjs +1 -3
- package/dist/index58.js +54 -211
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +161 -12
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +2 -2
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +39 -11
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +9 -24
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +33 -25
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +9 -47
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +50 -19
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +84 -10
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +38 -37
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -8
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +6 -7
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +17 -31
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +17 -24
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +8 -36
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +13 -36
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +7 -9
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +9 -29
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +46 -22
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +13 -85
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +16 -50
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +13 -23
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +6 -41
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +35 -17
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +24 -2
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +8 -5
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +8 -33
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +26 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +10 -13
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +9 -109
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +115 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +80 -6
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +180 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +6 -21
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +13 -8
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -124
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +13 -31
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +93 -13
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +75 -7
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +88 -9
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +138 -16
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +68 -72
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +22 -34
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +108 -45
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +6 -14
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +50 -13
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/localConfig.d.ts +17 -0
- package/package.json +1 -1
package/dist/index86.js
CHANGED
|
@@ -1,9 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { toRpc as B } from "./index244.js";
|
|
2
|
+
import { parseAccount as C } from "./index46.js";
|
|
3
|
+
import { AbiDecodingZeroDataError as F } from "./index123.js";
|
|
4
|
+
import { RawContractError as H } from "./index128.js";
|
|
5
|
+
import { UnknownNodeError as U } from "./index144.js";
|
|
6
|
+
import { decodeFunctionResult as y } from "./index171.js";
|
|
7
|
+
import { encodeFunctionData as A } from "./index178.js";
|
|
8
|
+
import { numberToHex as S } from "./index151.js";
|
|
9
|
+
import { getContractError as z } from "./index222.js";
|
|
10
|
+
import { getNodeError as I } from "./index245.js";
|
|
11
|
+
import { formatBlock as L } from "./index156.js";
|
|
12
|
+
import { formatLog as V } from "./index158.js";
|
|
13
|
+
import { formatTransactionRequest as Z } from "./index185.js";
|
|
14
|
+
import { serializeStateOverride as _ } from "./index237.js";
|
|
15
|
+
import { assertRequest as j } from "./index198.js";
|
|
16
|
+
async function ar(w, x) {
|
|
17
|
+
const { blockNumber: p, blockTag: N = "latest", blocks: b, returnFullTransactions: O, traceTransfers: h, validation: E } = x;
|
|
18
|
+
try {
|
|
19
|
+
const a = [];
|
|
20
|
+
for (const t of b) {
|
|
21
|
+
const d = t.blockOverrides ? B(t.blockOverrides) : void 0, r = t.calls.map((n) => {
|
|
22
|
+
const o = n, e = o.account ? C(o.account) : void 0, i = {
|
|
23
|
+
...o,
|
|
24
|
+
data: o.abi ? A(o) : o.data,
|
|
25
|
+
from: o.from ?? (e == null ? void 0 : e.address)
|
|
26
|
+
};
|
|
27
|
+
return j(i), Z(i);
|
|
28
|
+
}), f = t.stateOverrides ? _(t.stateOverrides) : void 0;
|
|
29
|
+
a.push({
|
|
30
|
+
blockOverrides: d,
|
|
31
|
+
calls: r,
|
|
32
|
+
stateOverrides: f
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
const c = (p ? S(p) : void 0) || N;
|
|
36
|
+
return (await w.request({
|
|
37
|
+
method: "eth_simulateV1",
|
|
38
|
+
params: [
|
|
39
|
+
{ blockStateCalls: a, returnFullTransactions: O, traceTransfers: h, validation: E },
|
|
40
|
+
c
|
|
41
|
+
]
|
|
42
|
+
})).map((t, d) => ({
|
|
43
|
+
...L(t),
|
|
44
|
+
calls: t.calls.map((r, f) => {
|
|
45
|
+
var k, g;
|
|
46
|
+
const { abi: n, args: o, functionName: e, to: i } = b[d].calls[f], l = ((k = r.error) == null ? void 0 : k.data) ?? r.returnData, R = BigInt(r.gasUsed), T = (g = r.logs) == null ? void 0 : g.map((s) => V(s)), m = r.status === "0x1" ? "success" : "failure", q = n && m === "success" && l !== "0x" ? y({
|
|
47
|
+
abi: n,
|
|
48
|
+
data: l,
|
|
49
|
+
functionName: e
|
|
50
|
+
}) : null, D = (() => {
|
|
51
|
+
var v;
|
|
52
|
+
if (m === "success")
|
|
53
|
+
return;
|
|
54
|
+
let s;
|
|
55
|
+
if (((v = r.error) == null ? void 0 : v.data) === "0x" ? s = new F() : r.error && (s = new H(r.error)), !!s)
|
|
56
|
+
return z(s, {
|
|
57
|
+
abi: n ?? [],
|
|
58
|
+
address: i,
|
|
59
|
+
args: o,
|
|
60
|
+
functionName: e ?? "<unknown>"
|
|
61
|
+
});
|
|
62
|
+
})();
|
|
63
|
+
return {
|
|
64
|
+
data: l,
|
|
65
|
+
gasUsed: R,
|
|
66
|
+
logs: T,
|
|
67
|
+
status: m,
|
|
68
|
+
...m === "success" ? {
|
|
69
|
+
result: q
|
|
70
|
+
} : {
|
|
71
|
+
error: D
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
})
|
|
75
|
+
}));
|
|
76
|
+
} catch (a) {
|
|
77
|
+
const u = a, c = I(u, {});
|
|
78
|
+
throw c instanceof U ? u : c;
|
|
79
|
+
}
|
|
6
80
|
}
|
|
7
81
|
export {
|
|
8
|
-
|
|
82
|
+
ar as simulateBlocks
|
|
9
83
|
};
|
package/dist/index87.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 z=require("./index246.cjs"),a=require("./index247.cjs"),Q=require("./index46.cjs"),n=require("./index118.cjs"),W=require("./index119.cjs"),X=require("./index39.cjs"),Y=require("./index178.cjs"),Z=require("./index60.cjs"),$=require("./index86.cjs"),k=require("./index183.cjs"),_="0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";async function ss(q,o){const{blockNumber:C,blockTag:v,calls:N,stateOverrides:d,traceAssetChanges:f,traceTransfers:T,validation:w}=o,t=o.account?Q.parseAccount(o.account):void 0;if(f&&!t)throw new X.BaseError("`account` is required when `traceAssetChanges` is true");const B=t?z.encode(z.from("constructor(bytes, bytes)"),{bytecode:W.deploylessCallViaBytecodeBytecode,args:[_,a.encodeData(a.from("function getBalance(address)"),[t.address])]}):void 0,c=f?await Promise.all(o.calls.map(async s=>{if(!s.data&&!s.abi)return;const{accessList:e}=await Z.createAccessList(q,{account:t.address,...s,data:s.abi?Y.encodeFunctionData(s):s.data});return e.map(({address:r,storageKeys:i})=>i.length>0?r:null)})).then(s=>s.flat().filter(Boolean)):[],P=d==null?void 0:d.map(s=>s.address===(t==null?void 0:t.address)?{...s,nonce:0}:s),l=await $.simulateBlocks(q,{blockNumber:C,blockTag:v,blocks:[...f?[{calls:[{data:B}],stateOverrides:d},{calls:c.map((s,e)=>({abi:[a.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[t.address],to:s,from:n.zeroAddress,nonce:e})),stateOverrides:[{address:n.zeroAddress,nonce:0}]}]:[],{calls:[...N,{}].map((s,e)=>({...s,from:t==null?void 0:t.address,nonce:e})),stateOverrides:P},...f?[{calls:[{data:B}]},{calls:c.map((s,e)=>({abi:[a.from("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[t.address],to:s,from:n.zeroAddress,nonce:e})),stateOverrides:[{address:n.zeroAddress,nonce:0}]},{calls:c.map((s,e)=>({to:s,abi:[a.from("function decimals() returns (uint256)")],functionName:"decimals",from:n.zeroAddress,nonce:e})),stateOverrides:[{address:n.zeroAddress,nonce:0}]},{calls:c.map((s,e)=>({to:s,abi:[a.from("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:n.zeroAddress,nonce:e})),stateOverrides:[{address:n.zeroAddress,nonce:0}]},{calls:c.map((s,e)=>({to:s,abi:[a.from("function symbol() returns (string)")],functionName:"symbol",from:n.zeroAddress,nonce:e})),stateOverrides:[{address:n.zeroAddress,nonce:0}]}]:[]],traceTransfers:T,validation:w}),I=f?l[2]:l[0],[u,b,,m,g,p,A,y]=f?l:[],{calls:D,...F}=I,L=D.slice(0,-1)??[],R=(u==null?void 0:u.calls)??[],S=(b==null?void 0:b.calls)??[],U=[...R,...S].map(s=>s.status==="success"?k.hexToBigInt(s.data):null),E=(m==null?void 0:m.calls)??[],H=(g==null?void 0:g.calls)??[],j=[...E,...H].map(s=>s.status==="success"?k.hexToBigInt(s.data):null),x=((p==null?void 0:p.calls)??[]).map(s=>s.status==="success"?s.result:null),M=((y==null?void 0:y.calls)??[]).map(s=>s.status==="success"?s.result:null),V=((A==null?void 0:A.calls)??[]).map(s=>s.status==="success"?s.result:null),h=[];for(const[s,e]of j.entries()){const r=U[s];if(typeof e!="bigint"||typeof r!="bigint")continue;const i=x[s-1],G=M[s-1],J=V[s-1],O=s===0?{address:n.ethAddress,decimals:18,symbol:"ETH"}:{address:c[s-1],decimals:J||i?Number(i??1):void 0,symbol:G??void 0};h.some(K=>K.token.address===O.address)||h.push({token:O,value:{pre:r,post:e,diff:e-r}})}return{assetChanges:h,block:F,results:L}}exports.simulateCalls=ss;
|
package/dist/index87.js
CHANGED
|
@@ -1,10 +1,184 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { encode as K, from as M } from "./index246.js";
|
|
2
|
+
import { encodeData as Q, from as c } from "./index247.js";
|
|
3
|
+
import { parseAccount as W } from "./index46.js";
|
|
4
|
+
import { zeroAddress as t, ethAddress as X } from "./index118.js";
|
|
5
|
+
import { deploylessCallViaBytecodeBytecode as Y } from "./index119.js";
|
|
6
|
+
import { BaseError as Z } from "./index39.js";
|
|
7
|
+
import { encodeFunctionData as _ } from "./index178.js";
|
|
8
|
+
import { createAccessList as ss } from "./index60.js";
|
|
9
|
+
import { simulateBlocks as es } from "./index86.js";
|
|
10
|
+
import { hexToBigInt as N } from "./index183.js";
|
|
11
|
+
const fs = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
|
|
12
|
+
async function bs(B, r) {
|
|
13
|
+
const { blockNumber: v, blockTag: w, calls: C, stateOverrides: d, traceAssetChanges: a, traceTransfers: P, validation: T } = r, f = r.account ? W(r.account) : void 0;
|
|
14
|
+
if (a && !f)
|
|
15
|
+
throw new Z("`account` is required when `traceAssetChanges` is true");
|
|
16
|
+
const k = f ? K(M("constructor(bytes, bytes)"), {
|
|
17
|
+
bytecode: Y,
|
|
18
|
+
args: [
|
|
19
|
+
fs,
|
|
20
|
+
Q(c("function getBalance(address)"), [f.address])
|
|
21
|
+
]
|
|
22
|
+
}) : void 0, n = a ? await Promise.all(r.calls.map(async (s) => {
|
|
23
|
+
if (!s.data && !s.abi)
|
|
24
|
+
return;
|
|
25
|
+
const { accessList: e } = await ss(B, {
|
|
26
|
+
account: f.address,
|
|
27
|
+
...s,
|
|
28
|
+
data: s.abi ? _(s) : s.data
|
|
29
|
+
});
|
|
30
|
+
return e.map(({ address: o, storageKeys: i }) => i.length > 0 ? o : null);
|
|
31
|
+
})).then((s) => s.flat().filter(Boolean)) : [], I = d == null ? void 0 : d.map((s) => s.address === (f == null ? void 0 : f.address) ? {
|
|
32
|
+
...s,
|
|
33
|
+
nonce: 0
|
|
34
|
+
} : s), l = await es(B, {
|
|
35
|
+
blockNumber: v,
|
|
36
|
+
blockTag: w,
|
|
37
|
+
blocks: [
|
|
38
|
+
...a ? [
|
|
39
|
+
// ETH pre balances
|
|
40
|
+
{
|
|
41
|
+
calls: [{ data: k }],
|
|
42
|
+
stateOverrides: d
|
|
43
|
+
},
|
|
44
|
+
// Asset pre balances
|
|
45
|
+
{
|
|
46
|
+
calls: n.map((s, e) => ({
|
|
47
|
+
abi: [
|
|
48
|
+
c("function balanceOf(address) returns (uint256)")
|
|
49
|
+
],
|
|
50
|
+
functionName: "balanceOf",
|
|
51
|
+
args: [f.address],
|
|
52
|
+
to: s,
|
|
53
|
+
from: t,
|
|
54
|
+
nonce: e
|
|
55
|
+
})),
|
|
56
|
+
stateOverrides: [
|
|
57
|
+
{
|
|
58
|
+
address: t,
|
|
59
|
+
nonce: 0
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
] : [],
|
|
64
|
+
{
|
|
65
|
+
calls: [...C, {}].map((s, e) => ({
|
|
66
|
+
...s,
|
|
67
|
+
from: f == null ? void 0 : f.address,
|
|
68
|
+
nonce: e
|
|
69
|
+
})),
|
|
70
|
+
stateOverrides: I
|
|
71
|
+
},
|
|
72
|
+
...a ? [
|
|
73
|
+
// ETH post balances
|
|
74
|
+
{
|
|
75
|
+
calls: [{ data: k }]
|
|
76
|
+
},
|
|
77
|
+
// Asset post balances
|
|
78
|
+
{
|
|
79
|
+
calls: n.map((s, e) => ({
|
|
80
|
+
abi: [
|
|
81
|
+
c("function balanceOf(address) returns (uint256)")
|
|
82
|
+
],
|
|
83
|
+
functionName: "balanceOf",
|
|
84
|
+
args: [f.address],
|
|
85
|
+
to: s,
|
|
86
|
+
from: t,
|
|
87
|
+
nonce: e
|
|
88
|
+
})),
|
|
89
|
+
stateOverrides: [
|
|
90
|
+
{
|
|
91
|
+
address: t,
|
|
92
|
+
nonce: 0
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
// Decimals
|
|
97
|
+
{
|
|
98
|
+
calls: n.map((s, e) => ({
|
|
99
|
+
to: s,
|
|
100
|
+
abi: [
|
|
101
|
+
c("function decimals() returns (uint256)")
|
|
102
|
+
],
|
|
103
|
+
functionName: "decimals",
|
|
104
|
+
from: t,
|
|
105
|
+
nonce: e
|
|
106
|
+
})),
|
|
107
|
+
stateOverrides: [
|
|
108
|
+
{
|
|
109
|
+
address: t,
|
|
110
|
+
nonce: 0
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
// Token URI
|
|
115
|
+
{
|
|
116
|
+
calls: n.map((s, e) => ({
|
|
117
|
+
to: s,
|
|
118
|
+
abi: [
|
|
119
|
+
c("function tokenURI(uint256) returns (string)")
|
|
120
|
+
],
|
|
121
|
+
functionName: "tokenURI",
|
|
122
|
+
args: [0n],
|
|
123
|
+
from: t,
|
|
124
|
+
nonce: e
|
|
125
|
+
})),
|
|
126
|
+
stateOverrides: [
|
|
127
|
+
{
|
|
128
|
+
address: t,
|
|
129
|
+
nonce: 0
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
// Symbols
|
|
134
|
+
{
|
|
135
|
+
calls: n.map((s, e) => ({
|
|
136
|
+
to: s,
|
|
137
|
+
abi: [c("function symbol() returns (string)")],
|
|
138
|
+
functionName: "symbol",
|
|
139
|
+
from: t,
|
|
140
|
+
nonce: e
|
|
141
|
+
})),
|
|
142
|
+
stateOverrides: [
|
|
143
|
+
{
|
|
144
|
+
address: t,
|
|
145
|
+
nonce: 0
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
] : []
|
|
150
|
+
],
|
|
151
|
+
traceTransfers: P,
|
|
152
|
+
validation: T
|
|
153
|
+
}), D = a ? l[2] : l[0], [u, b, , m, p, g, y, h] = a ? l : [], { calls: R, ...U } = D, E = R.slice(0, -1) ?? [], L = (u == null ? void 0 : u.calls) ?? [], q = (b == null ? void 0 : b.calls) ?? [], z = [...L, ...q].map((s) => s.status === "success" ? N(s.data) : null), F = (m == null ? void 0 : m.calls) ?? [], H = (p == null ? void 0 : p.calls) ?? [], S = [...F, ...H].map((s) => s.status === "success" ? N(s.data) : null), V = ((g == null ? void 0 : g.calls) ?? []).map((s) => s.status === "success" ? s.result : null), $ = ((h == null ? void 0 : h.calls) ?? []).map((s) => s.status === "success" ? s.result : null), j = ((y == null ? void 0 : y.calls) ?? []).map((s) => s.status === "success" ? s.result : null), O = [];
|
|
154
|
+
for (const [s, e] of S.entries()) {
|
|
155
|
+
const o = z[s];
|
|
156
|
+
if (typeof e != "bigint" || typeof o != "bigint")
|
|
157
|
+
continue;
|
|
158
|
+
const i = V[s - 1], x = $[s - 1], G = j[s - 1], A = s === 0 ? {
|
|
159
|
+
address: X,
|
|
160
|
+
decimals: 18,
|
|
161
|
+
symbol: "ETH"
|
|
162
|
+
} : {
|
|
163
|
+
address: n[s - 1],
|
|
164
|
+
decimals: G || i ? Number(i ?? 1) : void 0,
|
|
165
|
+
symbol: x ?? void 0
|
|
166
|
+
};
|
|
167
|
+
O.some((J) => J.token.address === A.address) || O.push({
|
|
168
|
+
token: A,
|
|
169
|
+
value: {
|
|
170
|
+
pre: o,
|
|
171
|
+
post: e,
|
|
172
|
+
diff: e - o
|
|
173
|
+
}
|
|
174
|
+
});
|
|
6
175
|
}
|
|
176
|
+
return {
|
|
177
|
+
assetChanges: O,
|
|
178
|
+
block: U,
|
|
179
|
+
results: E
|
|
180
|
+
};
|
|
7
181
|
}
|
|
8
182
|
export {
|
|
9
|
-
|
|
183
|
+
bs as simulateCalls
|
|
10
184
|
};
|
package/dist/index88.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function e(n,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}exports.uninstallFilter=e;
|
package/dist/index88.js
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
|
|
7
|
-
blobGasUsed: e.blobGasUsed ? BigInt(e.blobGasUsed) : void 0,
|
|
8
|
-
difficulty: e.difficulty ? BigInt(e.difficulty) : void 0,
|
|
9
|
-
excessBlobGas: e.excessBlobGas ? BigInt(e.excessBlobGas) : void 0,
|
|
10
|
-
gasLimit: e.gasLimit ? BigInt(e.gasLimit) : void 0,
|
|
11
|
-
gasUsed: e.gasUsed ? BigInt(e.gasUsed) : void 0,
|
|
12
|
-
hash: e.hash ? e.hash : null,
|
|
13
|
-
logsBloom: e.logsBloom ? e.logsBloom : null,
|
|
14
|
-
nonce: e.nonce ? e.nonce : null,
|
|
15
|
-
number: e.number ? BigInt(e.number) : null,
|
|
16
|
-
size: e.size ? BigInt(e.size) : void 0,
|
|
17
|
-
timestamp: e.timestamp ? BigInt(e.timestamp) : void 0,
|
|
18
|
-
transactions: s,
|
|
19
|
-
totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
|
|
20
|
-
};
|
|
1
|
+
async function e(n, { filter: t }) {
|
|
2
|
+
return t.request({
|
|
3
|
+
method: "eth_uninstallFilter",
|
|
4
|
+
params: [t.id]
|
|
5
|
+
});
|
|
21
6
|
}
|
|
22
7
|
export {
|
|
23
|
-
|
|
8
|
+
e as uninstallFilter
|
|
24
9
|
};
|
package/dist/index89.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index224.cjs"),y=require("./index251.cjs");async function f(e,{address:s,message:a,factory:r,factoryData:t,signature:i,...o}){const c=n.hashMessage(a);return y.verifyHash(e,{address:s,factory:r,factoryData:t,hash:c,signature:i,...o})}exports.verifyMessage=f;
|
package/dist/index89.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
async function
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { hashMessage as h } from "./index224.js";
|
|
2
|
+
import { verifyHash as i } from "./index251.js";
|
|
3
|
+
async function m(r, { address: a, message: o, factory: s, factoryData: t, signature: e, ...f }) {
|
|
4
|
+
const c = h(o);
|
|
5
|
+
return i(r, {
|
|
6
|
+
address: a,
|
|
7
|
+
factory: s,
|
|
8
|
+
factoryData: t,
|
|
9
|
+
hash: c,
|
|
10
|
+
signature: e,
|
|
11
|
+
...f
|
|
12
|
+
});
|
|
8
13
|
}
|
|
9
14
|
export {
|
|
10
|
-
|
|
15
|
+
m as verifyMessage
|
|
11
16
|
};
|
package/dist/index9.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(t=>(t.Authorization="Authorization",t.ApiKey="api-key",t))(e||{});exports.AuthHeaderEnum=e;
|
package/dist/index9.js
CHANGED
|
@@ -1,126 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import u from "fetch-cookie";
|
|
3
|
-
import { Ok as s, Err as r } from "./index17.js";
|
|
4
|
-
import { MemoryStorage as w } from "./index13.js";
|
|
5
|
-
import { StoreKeys as d } from "./index14.js";
|
|
6
|
-
import { add0x as g, parseJwt as p, Authorization as k } from "./index3.js";
|
|
7
|
-
import { createWalletClient as y } from "./index27.js";
|
|
8
|
-
import { http as C } from "./index26.js";
|
|
9
|
-
import { privateKeyToAccount as T } from "./index22.js";
|
|
10
|
-
import { createSiweMessage as v } from "./index28.js";
|
|
11
|
-
import { mainnet as S } from "./index24.js";
|
|
12
|
-
class f {
|
|
13
|
-
constructor(e, n, t) {
|
|
14
|
-
if (this.url = e.endpoint("siwe"), this.walletClient = n, this.domain = (t == null ? void 0 : t.domain) || "app.garden.finance", this.domain.startsWith("https://") && (this.domain = this.domain.split("https://")[1]), this.signingStatement = (t == null ? void 0 : t.signingStatement) ?? "Garden.fi", this.store = (t == null ? void 0 : t.store) ?? (typeof window < "u" ? window.localStorage : new w()), typeof window > "u") {
|
|
15
|
-
const i = new m();
|
|
16
|
-
this.fetchWithCookies = u(fetch, i);
|
|
17
|
-
} else
|
|
18
|
-
this.fetchWithCookies = window.fetch.bind(window);
|
|
19
|
-
}
|
|
20
|
-
static fromDigestKey(e, n, t) {
|
|
21
|
-
const i = y({
|
|
22
|
-
account: T(g(n.digestKey)),
|
|
23
|
-
transport: C(),
|
|
24
|
-
chain: S
|
|
25
|
-
});
|
|
26
|
-
return new f(e, i, t);
|
|
27
|
-
}
|
|
28
|
-
verifyToken(e, n) {
|
|
29
|
-
try {
|
|
30
|
-
const t = p(e);
|
|
31
|
-
if (!t) return s(!1);
|
|
32
|
-
const i = Math.floor(Date.now() / 1e3) + 120;
|
|
33
|
-
return s(
|
|
34
|
-
t.exp > i && t.user_id.toLowerCase() === n.toLowerCase()
|
|
35
|
-
);
|
|
36
|
-
} catch {
|
|
37
|
-
return s(!1);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
async getToken() {
|
|
41
|
-
var c;
|
|
42
|
-
if (!((c = this.walletClient.account) != null && c.address))
|
|
43
|
-
return r("Wallet client does not have an account");
|
|
44
|
-
const e = this.store.getItem(d.AUTH_TOKEN);
|
|
45
|
-
if (e) {
|
|
46
|
-
const o = this.verifyToken(
|
|
47
|
-
e,
|
|
48
|
-
this.walletClient.account.address
|
|
49
|
-
);
|
|
50
|
-
if (o.ok && o.val) return s(e);
|
|
51
|
-
}
|
|
52
|
-
const n = await this.signStatement();
|
|
53
|
-
if (n.error)
|
|
54
|
-
return r(n.error);
|
|
55
|
-
let t;
|
|
56
|
-
try {
|
|
57
|
-
const a = await (await this.fetchWithCookies(
|
|
58
|
-
this.url.endpoint("tokens"),
|
|
59
|
-
{
|
|
60
|
-
method: "POST",
|
|
61
|
-
body: JSON.stringify({
|
|
62
|
-
...n.val
|
|
63
|
-
}),
|
|
64
|
-
headers: {
|
|
65
|
-
"Content-Type": "application/json"
|
|
66
|
-
},
|
|
67
|
-
credentials: "include"
|
|
68
|
-
}
|
|
69
|
-
)).json();
|
|
70
|
-
if (a.error || !a.result)
|
|
71
|
-
return r(a.error ?? "Failed to get token");
|
|
72
|
-
t = a.result;
|
|
73
|
-
} catch (o) {
|
|
74
|
-
return r("Failed to get token", o);
|
|
75
|
-
}
|
|
76
|
-
if (!this.verifyToken(t, this.walletClient.account.address).val)
|
|
77
|
-
throw new Error("Token verification failed");
|
|
78
|
-
return this.store.setItem(d.AUTH_TOKEN, t), s(t);
|
|
79
|
-
}
|
|
80
|
-
async signStatement() {
|
|
81
|
-
var a;
|
|
82
|
-
if (!((a = this.walletClient.account) != null && a.address))
|
|
83
|
-
return r("Wallet client does not have a valid account");
|
|
84
|
-
const e = /* @__PURE__ */ new Date(), n = new Date(e.getTime() + 300 * 1e3);
|
|
85
|
-
let t;
|
|
86
|
-
try {
|
|
87
|
-
const l = await (await this.fetchWithCookies(this.url.endpoint("challenges"), {
|
|
88
|
-
method: "POST",
|
|
89
|
-
headers: {
|
|
90
|
-
"Content-Type": "application/json"
|
|
91
|
-
},
|
|
92
|
-
credentials: "include"
|
|
93
|
-
})).json();
|
|
94
|
-
if (l.error || !l.result)
|
|
95
|
-
return r("Failed to get nonce");
|
|
96
|
-
t = l.result;
|
|
97
|
-
} catch (h) {
|
|
98
|
-
return r("Failed to get nonce", h);
|
|
99
|
-
}
|
|
100
|
-
const i = await this.walletClient.getChainId(), c = v({
|
|
101
|
-
domain: this.domain,
|
|
102
|
-
address: this.walletClient.account.address,
|
|
103
|
-
statement: this.signingStatement,
|
|
104
|
-
nonce: t,
|
|
105
|
-
uri: "https://" + this.domain,
|
|
106
|
-
version: "1",
|
|
107
|
-
chainId: i,
|
|
108
|
-
notBefore: n
|
|
109
|
-
}), o = await this.walletClient.signMessage({
|
|
110
|
-
account: this.walletClient.account,
|
|
111
|
-
message: c
|
|
112
|
-
});
|
|
113
|
-
return s({
|
|
114
|
-
message: c,
|
|
115
|
-
signature: o,
|
|
116
|
-
nonce: t
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
async getAuthHeaders() {
|
|
120
|
-
const e = await this.getToken();
|
|
121
|
-
return e.error ? r(e.error) : s({ Authorization: k(e.val) });
|
|
122
|
-
}
|
|
123
|
-
}
|
|
1
|
+
var o = /* @__PURE__ */ ((i) => (i.Authorization = "Authorization", i.ApiKey = "api-key", i))(o || {});
|
|
124
2
|
export {
|
|
125
|
-
|
|
3
|
+
o as AuthHeaderEnum
|
|
126
4
|
};
|
package/dist/index90.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("./index188.cjs"),h=require("./index251.cjs");async function p(a,e){const{address:t,factory:r,factoryData:s,signature:y,message:o,primaryType:c,types:i,domain:n,...f}=e,d=u.hashTypedData({message:o,primaryType:c,types:i,domain:n});return h.verifyHash(a,{address:t,factory:r,factoryData:s,hash:d,signature:y,...f})}exports.verifyTypedData=p;
|
package/dist/index90.js
CHANGED
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
response: e
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
async function l(o, { cacheKey: a, cacheTime: n = Number.POSITIVE_INFINITY }) {
|
|
17
|
-
const e = p(a), s = e.response.get();
|
|
18
|
-
if (s && n > 0 && (/* @__PURE__ */ new Date()).getTime() - s.created.getTime() < n)
|
|
19
|
-
return s.data;
|
|
20
|
-
let t = e.promise.get();
|
|
21
|
-
t || (t = o(), e.promise.set(t));
|
|
22
|
-
try {
|
|
23
|
-
const r = await t;
|
|
24
|
-
return e.response.set({ created: /* @__PURE__ */ new Date(), data: r }), r;
|
|
25
|
-
} finally {
|
|
26
|
-
e.promise.clear();
|
|
27
|
-
}
|
|
1
|
+
import { hashTypedData as m } from "./index188.js";
|
|
2
|
+
import { verifyHash as d } from "./index251.js";
|
|
3
|
+
async function D(a, t) {
|
|
4
|
+
const { address: r, factory: e, factoryData: o, signature: s, message: y, primaryType: c, types: f, domain: i, ...n } = t, p = m({ message: y, primaryType: c, types: f, domain: i });
|
|
5
|
+
return d(a, {
|
|
6
|
+
address: r,
|
|
7
|
+
factory: e,
|
|
8
|
+
factoryData: o,
|
|
9
|
+
hash: p,
|
|
10
|
+
signature: s,
|
|
11
|
+
...n
|
|
12
|
+
});
|
|
28
13
|
}
|
|
29
14
|
export {
|
|
30
|
-
|
|
31
|
-
i as promiseCache,
|
|
32
|
-
c as responseCache,
|
|
33
|
-
l as withCache
|
|
15
|
+
D as verifyTypedData
|
|
34
16
|
};
|
package/dist/index91.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("./index127.cjs"),k=require("./index136.cjs"),g=require("./index30.cjs"),O=require("./index40.cjs"),S=require("./index42.cjs"),y=require("./index217.cjs"),$=require("./index43.cjs"),P=require("./index69.cjs"),W=require("./index82.cjs"),q=require("./index21.cjs"),x=require("./index92.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;
|