@gardenfi/swap 0.0.1-beta.9 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +3 -24
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +7 -430
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +5 -58
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +13 -20
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +172 -14
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +31 -276
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +43 -226
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +37 -5
- package/dist/index108.cjs +1 -2
- package/dist/index108.js +24 -133
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +75 -63
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +3 -87
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +29 -25
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +115 -8
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +4 -75
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +15 -3
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +12 -2
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +16 -80
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +58 -53
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +20 -5
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +14 -5
- package/dist/index120.cjs +1 -2
- package/dist/index120.js +272 -166
- package/dist/index121.cjs +1 -3
- package/dist/index121.js +568 -47
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +34 -69
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +3 -32
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +9 -3
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +116 -9
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +61 -112
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +20 -57
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +34 -22
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +38 -33
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +55 -38
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +37 -55
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +8 -170
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +31 -40
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +35 -8
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +8 -30
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +28 -35
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +50 -9
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +67 -26
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +38 -47
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +71 -60
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +8 -41
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +5 -7
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +17 -6
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +8 -17
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +13 -8
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +7 -13
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +16 -7
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +46 -9
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +13 -16
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +16 -46
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +13 -13
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +5 -15
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +35 -13
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +8 -5
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +7 -34
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +29 -9
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +10 -8
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +14 -26
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +12 -10
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +121 -14
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +82 -12
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +170 -114
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +41 -30
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +6 -81
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +14 -177
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +14 -44
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +103 -6
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +74 -152
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +89 -13
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +7 -8
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +151 -13
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +132 -97
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +62 -68
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +23 -89
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +160 -147
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +6 -138
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +13 -69
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +19 -23
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +103 -106
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +78 -6
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +3 -3
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +9 -19
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +26 -104
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +71 -68
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +3 -10
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +2 -29
- package/dist/index185.cjs +2 -1
- package/dist/index185.js +3 -72
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +9 -3
- package/dist/index187.cjs +20 -1
- package/dist/index187.js +327 -5
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +14 -2
- package/dist/index189.cjs +2 -2
- package/dist/index189.js +60 -3
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +15 -15
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +2 -9
- package/dist/index191.cjs +1 -20
- package/dist/index191.js +6 -325
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +32 -14
- package/dist/index193.cjs +1 -2
- package/dist/index193.js +21 -59
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +6 -2
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +72 -6
- package/dist/index196.cjs +1 -3
- package/dist/index196.js +5 -215
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +6 -32
- package/dist/index198.cjs +9 -1
- package/dist/index198.js +34 -20
- package/dist/index199.cjs +2 -1
- package/dist/index199.js +120 -5
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +3 -74
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +18 -5
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +33 -5
- package/dist/index203.cjs +1 -9
- package/dist/index203.js +33 -33
- package/dist/index204.cjs +1 -3
- package/dist/index204.js +15 -67
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +9 -3
- package/dist/index206.cjs +4 -1
- package/dist/index206.js +189 -13
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +2 -34
- package/dist/index208.cjs +3 -1
- package/dist/index208.js +445 -29
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +20 -16
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +4 -4
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +159 -6
- package/dist/index211.cjs +1 -4
- package/dist/index211.js +126 -193
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +39 -2
- package/dist/index213.cjs +1 -3
- package/dist/index213.js +27 -451
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +52 -24
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +167 -137
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +4 -22
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +61 -124
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +17 -35
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +3 -28
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +16 -55
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +22 -190
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +35 -4
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +3 -65
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +25 -18
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +37 -3
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +8 -16
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +23 -21
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +27 -33
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +76 -3
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +21 -18
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +8 -27
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +9 -35
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +11 -8
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +6 -10
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +6 -25
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +13 -28
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +32 -3
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +5 -66
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +37 -9
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +108 -18
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +49 -8
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +31 -9
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +8 -11
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +7 -6
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +16 -6
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +22 -13
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +102 -30
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +3 -5
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +5 -37
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +28 -108
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +20 -49
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +3 -32
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +17 -8
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +5 -7
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +7 -15
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +102 -21
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +63 -23
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +6 -104
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +28 -3
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +34 -5
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +16 -31
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +78 -20
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +2 -4
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +14 -17
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +18 -5
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +17 -8
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +10 -103
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +39 -63
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +13 -5
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +24 -6
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +12 -27
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +9 -34
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +30 -13
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +2 -20
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +44 -75
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +12 -2
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +174 -14
- package/dist/index278.cjs +2 -1
- package/dist/index278.js +90 -17
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +40 -17
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +76 -72
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +4 -10
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +77 -13
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +119 -24
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +5 -13
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +8 -41
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +4 -20
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +157 -49
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +5 -29
- package/dist/index288.cjs +2 -1
- package/dist/index288.js +41 -6
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +2 -52
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +1 -1
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +6 -6
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +10 -11
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +20 -7
- package/dist/index293.cjs +1 -2
- package/dist/index293.js +9 -28
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +73 -2
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +64 -68
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +184 -162
- package/dist/index297.cjs +1 -2
- package/dist/index297.js +21 -40
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +43 -2
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +25 -5
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -2
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +89 -9
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +38 -17
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +16 -8
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +12 -10
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +37 -66
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +15 -65
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +7 -187
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +40 -26
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +307 -63
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +602 -37
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +109 -16
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +167 -13
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +300 -41
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +93 -3
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +56 -47
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +51 -78
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +42 -27
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +14 -75
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +306 -201
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +52 -201
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +18 -319
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +26 -553
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +4 -110
- package/dist/index323.cjs +7 -1
- package/dist/index323.js +236 -164
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +48 -412
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +211 -92
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +74 -49
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +27 -51
- package/dist/index328.cjs +1 -1
- package/dist/index328.js +74 -42
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +7 -15
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +11 -9
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +12 -18
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +11 -28
- package/dist/index333.cjs +1 -7
- package/dist/index333.js +9 -237
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +16 -7
- package/dist/index335.cjs +1 -1
- package/dist/index335.js +22 -7
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +13 -37
- package/dist/index337.cjs +1 -1
- package/dist/index337.js +14 -15
- package/dist/index338.cjs +1 -1
- package/dist/index338.js +8 -7
- package/dist/index339.cjs +1 -1
- package/dist/index339.js +15 -11
- package/dist/index340.cjs +1 -1
- package/dist/index340.js +25 -9
- package/dist/index341.cjs +1 -1
- package/dist/index341.js +31 -16
- package/dist/index342.cjs +2 -1
- package/dist/index342.js +18 -22
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +14 -30
- package/dist/index344.cjs +1 -1
- package/dist/index344.js +34 -2
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +113 -45
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +103 -9
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +6 -13
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +7 -15
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +26 -9
- package/dist/index350.cjs +1 -1
- package/dist/index350.js +14 -13
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +211 -22
- package/dist/index352.cjs +2 -1
- package/dist/index352.js +189 -27
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +16 -9
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +11 -48
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +9 -37
- package/dist/index356.cjs +1 -2
- package/dist/index356.js +52 -18
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +20 -13
- package/dist/index358.cjs +1 -1
- package/dist/index358.js +2 -13
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +204 -31
- package/dist/index360.cjs +1 -1
- package/dist/index360.js +69 -116
- package/dist/index361.cjs +1 -1
- package/dist/index361.js +88 -97
- package/dist/index362.cjs +1 -1
- package/dist/index362.js +28 -6
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +149 -7
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +352 -24
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +274 -15
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +170 -214
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +10 -31
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +107 -10
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +5 -3
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +73 -3
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +10 -13
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +32 -7
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +140 -11
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +3 -4
- package/dist/index375.cjs +1 -1
- package/dist/index375.js +133 -32
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +76 -28
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +2 -28
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +40 -58
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +657 -68
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +2 -2
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +176 -93
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +340 -20
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +156 -129
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +3 -359
- package/dist/index384.cjs +1 -1
- package/dist/index384.js +59 -272
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +109 -170
- package/dist/index386.cjs +1 -1
- package/dist/index386.js +127 -69
- package/dist/index387.cjs +1 -1
- package/dist/index387.js +260 -10
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +29 -36
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +18 -44
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +108 -12
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +11 -58
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +58 -521
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +522 -30
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +15 -11
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +12 -11
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +13 -36
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +37 -16
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +11 -11
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +14 -17
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +16 -15
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +15 -41
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +22 -20
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +46 -28
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +14 -15
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +27 -20
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +16 -14
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +14 -14
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +28 -15
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +6 -2
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +15 -14
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +13 -87
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +84 -10
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +11 -26
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +32 -17
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +13 -106
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +13 -4
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +3 -3
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +10 -30
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +36 -14
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +41 -12
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +34 -37
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +24 -41
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +53 -32
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +26 -23
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +20 -55
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +727 -27
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +520 -18
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +9 -730
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +11 -519
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +18 -20
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +41 -26
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +42 -12
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +171 -11
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +20 -18
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +26 -41
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +23 -39
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +4 -171
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +6 -26
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +16 -4
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +18 -16
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +12 -6
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +9 -16
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +155 -10
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +5 -80
- package/dist/index94.cjs +3 -1
- package/dist/index94.js +216 -3
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +18 -32
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +10 -115
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +22 -4
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +9 -15
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +9 -11
- package/dist/src/lib/constants/wagmiConfig.d.ts +156 -12
- package/dist/src/lib/store/swapStore.d.ts +3 -1
- package/package.json +8 -7
- package/dist/index388.cjs +0 -1
- package/dist/index388.js +0 -11
- package/dist/index389.cjs +0 -1
- package/dist/index389.js +0 -110
- package/dist/index390.cjs +0 -1
- package/dist/index390.js +0 -8
- package/dist/index391.cjs +0 -1
- package/dist/index391.js +0 -34
- package/dist/index392.cjs +0 -1
- package/dist/index392.js +0 -19
- package/dist/index393.cjs +0 -1
- package/dist/index393.js +0 -143
- package/dist/index394.cjs +0 -1
- package/dist/index394.js +0 -6
- package/dist/index395.cjs +0 -1
- package/dist/index395.js +0 -177
- package/dist/index396.cjs +0 -1
- package/dist/index396.js +0 -12
- package/dist/index397.cjs +0 -1
- package/dist/index397.js +0 -136
- package/dist/index398.cjs +0 -2
- package/dist/index398.js +0 -196
- package/dist/index399.cjs +0 -1
- package/dist/index399.js +0 -81
- package/dist/index400.cjs +0 -1
- package/dist/index400.js +0 -17
- package/dist/index401.cjs +0 -2
- package/dist/index401.js +0 -69
- package/dist/index402.cjs +0 -1
- package/dist/index402.js +0 -166
- package/dist/index403.cjs +0 -1
- package/dist/index403.js +0 -4
- package/dist/index404.cjs +0 -1
- package/dist/index404.js +0 -45
- package/dist/index405.cjs +0 -1
- package/dist/index405.js +0 -660
- package/dist/index406.cjs +0 -1
- package/dist/index406.js +0 -209
- package/dist/index407.cjs +0 -1
- package/dist/index407.js +0 -180
- package/dist/index408.cjs +0 -1
- package/dist/index408.js +0 -19
- package/dist/index409.cjs +0 -1
- package/dist/index409.js +0 -15
- package/dist/index410.cjs +0 -1
- package/dist/index410.js +0 -8
- package/dist/index411.cjs +0 -1
- package/dist/index411.js +0 -32
- package/dist/index412.cjs +0 -1
- package/dist/index412.js +0 -5
- package/dist/index413.cjs +0 -1
- package/dist/index413.js +0 -4
- package/dist/index414.cjs +0 -1
- package/dist/index414.js +0 -4
- package/dist/index415.cjs +0 -1
- package/dist/index415.js +0 -112
- package/dist/index416.cjs +0 -1
- package/dist/index416.js +0 -5
- package/dist/index417.cjs +0 -1
- package/dist/index417.js +0 -43
- package/dist/index418.cjs +0 -1
- package/dist/index418.js +0 -7
- package/dist/index419.cjs +0 -1
- package/dist/index419.js +0 -10
- package/dist/index420.cjs +0 -1
- package/dist/index420.js +0 -65
- package/dist/index421.cjs +0 -1
- package/dist/index421.js +0 -25
- package/dist/index422.cjs +0 -1
- package/dist/index422.js +0 -8
- package/dist/index423.cjs +0 -1
- package/dist/index423.js +0 -80
- package/dist/index424.cjs +0 -1
- package/dist/index424.js +0 -122
- package/dist/index425.cjs +0 -1
- package/dist/index425.js +0 -346
- package/dist/index426.cjs +0 -1
- package/dist/index426.js +0 -163
- package/dist/index427.cjs +0 -1
- package/dist/index427.js +0 -7
- package/dist/index428.cjs +0 -1
- package/dist/index428.js +0 -28
- package/dist/index429.cjs +0 -1
- package/dist/index429.js +0 -13
- package/dist/index430.cjs +0 -1
- package/dist/index430.js +0 -7
- package/dist/index431.cjs +0 -1
- package/dist/index431.js +0 -134
- package/dist/index432.cjs +0 -1
- package/dist/index432.js +0 -55
- package/dist/index433.cjs +0 -2
- package/dist/index433.js +0 -44
- package/dist/index434.cjs +0 -1
- package/dist/index434.js +0 -4
- package/dist/index435.cjs +0 -1
- package/dist/index435.js +0 -22
- package/dist/index436.cjs +0 -1
- package/dist/index436.js +0 -11
- package/dist/index437.cjs +0 -1
- package/dist/index437.js +0 -45
- package/dist/index438.cjs +0 -1
- package/dist/index438.js +0 -75
- package/dist/index439.cjs +0 -1
- package/dist/index439.js +0 -68
- package/dist/index440.cjs +0 -1
- package/dist/index440.js +0 -191
- package/dist/index441.cjs +0 -1
- package/dist/index441.js +0 -93
- package/dist/index442.cjs +0 -1
- package/dist/index442.js +0 -43
- package/dist/index443.cjs +0 -1
- package/dist/index443.js +0 -19
- package/dist/index444.cjs +0 -1
- package/dist/index444.js +0 -16
- package/dist/index445.cjs +0 -1
- package/dist/index445.js +0 -7
- package/dist/index446.cjs +0 -1
- package/dist/index446.js +0 -4
- package/dist/index447.cjs +0 -1
- package/dist/index447.js +0 -262
- package/dist/index448.cjs +0 -1
- package/dist/index448.js +0 -71
- package/dist/index449.cjs +0 -1
- package/dist/index449.js +0 -24
package/dist/index28.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { useRef as
|
|
2
|
-
import { swapStore as
|
|
1
|
+
import { useRef as Nt, useMemo as v, useCallback as mt, useEffect as I } from "react";
|
|
2
|
+
import { swapStore as Ct } from "./index6.js";
|
|
3
3
|
import { Errors as f, IOType as m } from "./index12.js";
|
|
4
|
-
import { ChainAsset as
|
|
5
|
-
import
|
|
4
|
+
import { ChainAsset as gt, isBitcoin as D, isSui as Ft, isSolana as _t, isStarknet as Dt, isEVM as Vt } from "@gardenfi/orderbook";
|
|
5
|
+
import Qt from "lodash.debounce";
|
|
6
6
|
import { validateBTCAddress as ft } from "@gardenfi/core";
|
|
7
|
-
import { useGarden as
|
|
7
|
+
import { useGarden as Tt } from "@gardenfi/react-hooks";
|
|
8
8
|
import j from "bignumber.js";
|
|
9
9
|
import { formatAmount as q } from "./index34.js";
|
|
10
|
-
import { assetInfoStore as
|
|
11
|
-
import { orderInProgressStore as
|
|
12
|
-
const
|
|
13
|
-
var
|
|
10
|
+
import { assetInfoStore as Rt } from "./index7.js";
|
|
11
|
+
import { orderInProgressStore as xt } from "./index14.js";
|
|
12
|
+
const Jt = () => {
|
|
13
|
+
var ot, nt;
|
|
14
14
|
const {
|
|
15
15
|
inputAmount: i,
|
|
16
16
|
outputAmount: p,
|
|
17
17
|
inputAsset: t,
|
|
18
|
-
outputAsset:
|
|
18
|
+
outputAsset: o,
|
|
19
19
|
isSwapping: g,
|
|
20
20
|
isApproving: dt,
|
|
21
21
|
rate: pt,
|
|
22
22
|
error: B,
|
|
23
|
-
btcAddress:
|
|
23
|
+
btcAddress: S,
|
|
24
24
|
tokenPrices: ht,
|
|
25
25
|
isFetchingQuote: At,
|
|
26
26
|
isEditBTCAddress: Q,
|
|
@@ -30,7 +30,7 @@ const Kt = () => {
|
|
|
30
30
|
setRate: H,
|
|
31
31
|
setError: s,
|
|
32
32
|
swapAssets: bt,
|
|
33
|
-
setAsset:
|
|
33
|
+
setAsset: vt,
|
|
34
34
|
setIsFetchingQuote: F,
|
|
35
35
|
isComparisonVisible: T,
|
|
36
36
|
setIsValidBitcoinAddress: R,
|
|
@@ -39,39 +39,41 @@ const Kt = () => {
|
|
|
39
39
|
setTokenPrices: A,
|
|
40
40
|
clearSwapState: x,
|
|
41
41
|
setBtcAddress: L,
|
|
42
|
-
setIsComparisonVisible:
|
|
43
|
-
currentNetwork: J
|
|
44
|
-
|
|
42
|
+
setIsComparisonVisible: St,
|
|
43
|
+
currentNetwork: J,
|
|
44
|
+
setSolverId: yt,
|
|
45
|
+
solverId: wt
|
|
46
|
+
} = Ct(), { balances: M } = Rt(), { setIsOpen: X, setOrder: Y } = xt(), { swap: Z, getQuote: P, garden: r } = Tt(), h = Nt(null), U = v(() => {
|
|
45
47
|
if (!(!t || !M))
|
|
46
|
-
return M[
|
|
47
|
-
}, [t, M]),
|
|
48
|
+
return M[gt.from(t).toString()];
|
|
49
|
+
}, [t, M]), Et = v(() => {
|
|
48
50
|
if (!(!U || !t))
|
|
49
51
|
return q(
|
|
50
52
|
U.toString(10),
|
|
51
53
|
t.decimals,
|
|
52
54
|
Math.min(t.decimals, 8)
|
|
53
55
|
);
|
|
54
|
-
}, [U, t]), $ =
|
|
56
|
+
}, [U, t]), $ = v(() => !!(t && o && i && p && Number(i) !== 0 && Number(p) !== 0), [t, o, i, p]), O = v(() => {
|
|
55
57
|
var e;
|
|
56
|
-
return (Q || !((e = r == null ? void 0 : r.htlcs.bitcoin) != null && e.htlcActorAddress)) && ((t == null ? void 0 : t.chain) && D(t.chain) || (
|
|
58
|
+
return (Q || !((e = r == null ? void 0 : r.htlcs.bitcoin) != null && e.htlcActorAddress)) && ((t == null ? void 0 : t.chain) && D(t.chain) || (o == null ? void 0 : o.chain) && D(o.chain));
|
|
57
59
|
}, [
|
|
58
60
|
Q,
|
|
59
|
-
(
|
|
61
|
+
(ot = r == null ? void 0 : r.htlcs.bitcoin) == null ? void 0 : ot.htlcActorAddress,
|
|
60
62
|
t,
|
|
61
|
-
|
|
62
|
-
]),
|
|
63
|
+
o
|
|
64
|
+
]), y = v(() => !!(t && o && (D(t.chain) || D(o.chain))), [t, o]), tt = v(() => y ? S ? ft(S, J) : !1 : !0, [S, y]), W = v(() => !!(t && p && i && o && tt && !B.inputError && !B.outputError && !B.liquidityError && !B.insufficientBalanceError), [
|
|
63
65
|
t,
|
|
64
66
|
p,
|
|
65
67
|
i,
|
|
66
|
-
|
|
68
|
+
o,
|
|
67
69
|
B,
|
|
68
70
|
tt
|
|
69
|
-
]), rt =
|
|
71
|
+
]), rt = v(() => y ? !!(W && S) : W, [W, y, S]), { minAmount: w, maxAmount: E } = v(() => {
|
|
70
72
|
const e = {
|
|
71
73
|
minAmount: 0,
|
|
72
74
|
maxAmount: 0
|
|
73
75
|
};
|
|
74
|
-
return !t || !
|
|
76
|
+
return !t || !o || !t.min_amount || !t.max_amount ? e : {
|
|
75
77
|
minAmount: q(
|
|
76
78
|
t.min_amount,
|
|
77
79
|
t.decimals,
|
|
@@ -83,15 +85,15 @@ const Kt = () => {
|
|
|
83
85
|
t.decimals
|
|
84
86
|
)
|
|
85
87
|
};
|
|
86
|
-
}, [t,
|
|
87
|
-
() =>
|
|
88
|
+
}, [t, o]), k = v(
|
|
89
|
+
() => Qt(
|
|
88
90
|
async (e, l, u, c) => {
|
|
89
91
|
var st, ut, ct, lt, at;
|
|
90
92
|
if (!P || g) return;
|
|
91
93
|
F({ input: c, output: !c }), h.current && h.current.abort(), h.current = new AbortController();
|
|
92
94
|
const d = c ? u.decimals : l.decimals, b = new j(e).multipliedBy(
|
|
93
95
|
10 ** d
|
|
94
|
-
),
|
|
96
|
+
), n = await P({
|
|
95
97
|
fromAsset: l,
|
|
96
98
|
toAsset: u,
|
|
97
99
|
amount: b.toNumber(),
|
|
@@ -102,21 +104,22 @@ const Kt = () => {
|
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
});
|
|
105
|
-
if (!
|
|
106
|
-
if ((st =
|
|
107
|
+
if (!n || !n.ok) {
|
|
108
|
+
if ((st = n == null ? void 0 : n.error) != null && st.includes("AbortError")) {
|
|
107
109
|
s({ liquidityError: f.none }), F({ input: !1, output: !1 });
|
|
108
110
|
return;
|
|
109
|
-
} else (ut =
|
|
111
|
+
} else (ut = n == null ? void 0 : n.error) != null && ut.includes("insufficient liquidity") ? (s({ liquidityError: f.insufficientLiquidity }), a(c ? m.input : m.output, "")) : (ct = n == null ? void 0 : n.error) != null && ct.includes("output amount too less") ? (s({ outputError: f.outLow }), a(m.input, "")) : (lt = n == null ? void 0 : n.error) != null && lt.includes("output amount too high") ? (s({ outputError: f.outHigh }), a(m.input, "")) : (at = n == null ? void 0 : n.error) != null && at.includes("invalid from_asset") ? (s({ outputError: f.invalidFomAssset }), a(m.input, "")) : a(c ? m.input : m.output, "");
|
|
110
112
|
F({ input: !1, output: !1 }), A({ input: "0", output: "0" });
|
|
111
113
|
return;
|
|
112
114
|
}
|
|
113
|
-
const _ = c ?
|
|
115
|
+
const _ = c ? n.val[0].source.display : n.val[0].destination.display;
|
|
116
|
+
yt(n.val[0].solver_id);
|
|
114
117
|
let it = Number(_);
|
|
115
118
|
l.symbol === "USDC" && u.symbol === "USDC" && (it = Number(_) + G);
|
|
116
|
-
const
|
|
117
|
-
H(
|
|
118
|
-
input:
|
|
119
|
-
output:
|
|
119
|
+
const Bt = it / Number(e);
|
|
120
|
+
H(Bt), a(c ? m.input : m.output, _), F({ input: !1, output: !1 }), A({
|
|
121
|
+
input: n.val[0].source.value.toString(),
|
|
122
|
+
output: n.val[0].destination.value.toString()
|
|
120
123
|
}), s({
|
|
121
124
|
liquidityError: f.none
|
|
122
125
|
});
|
|
@@ -158,11 +161,11 @@ const Kt = () => {
|
|
|
158
161
|
}), a(m.output, ""), k.cancel(), h.current && h.current.abort();
|
|
159
162
|
return;
|
|
160
163
|
}
|
|
161
|
-
s({ inputError: f.none }), !(!t || !
|
|
164
|
+
s({ inputError: f.none }), !(!t || !o || !Number(e)) && C(e, t, o, !1);
|
|
162
165
|
},
|
|
163
166
|
[
|
|
164
167
|
t,
|
|
165
|
-
|
|
168
|
+
o,
|
|
166
169
|
w,
|
|
167
170
|
E,
|
|
168
171
|
C,
|
|
@@ -171,56 +174,57 @@ const Kt = () => {
|
|
|
171
174
|
s,
|
|
172
175
|
A
|
|
173
176
|
]
|
|
174
|
-
),
|
|
177
|
+
), It = async (e) => {
|
|
175
178
|
a(m.output, e);
|
|
176
179
|
const l = Number(e);
|
|
177
180
|
if (!l) {
|
|
178
181
|
k.cancel(), h.current && h.current.abort(), a(m.input, ""), s({ outputError: f.none });
|
|
179
182
|
return;
|
|
180
183
|
}
|
|
181
|
-
s({ outputError: f.none }), !(!t || !
|
|
182
|
-
}, et =
|
|
184
|
+
s({ outputError: f.none }), !(!t || !o || !l) && C(e, t, o, !0);
|
|
185
|
+
}, et = v(() => {
|
|
183
186
|
var l, u, c, d;
|
|
184
|
-
if (!t || !
|
|
187
|
+
if (!t || !o || !i || i === "0" || !p || p === "0")
|
|
185
188
|
return null;
|
|
186
189
|
const e = {
|
|
187
190
|
evm: {
|
|
188
|
-
check: (b) =>
|
|
191
|
+
check: (b) => Vt(b),
|
|
189
192
|
address: (l = r == null ? void 0 : r.htlcs.evm) == null ? void 0 : l.htlcActorAddress
|
|
190
193
|
},
|
|
191
194
|
starknet: {
|
|
192
|
-
check: (b) =>
|
|
195
|
+
check: (b) => Dt(b),
|
|
193
196
|
address: (u = r == null ? void 0 : r.htlcs.starknet) == null ? void 0 : u.htlcActorAddress
|
|
194
197
|
},
|
|
195
198
|
solana: {
|
|
196
|
-
check: (b) =>
|
|
199
|
+
check: (b) => _t(b),
|
|
197
200
|
address: (c = r == null ? void 0 : r.htlcs.solana) == null ? void 0 : c.htlcActorAddress
|
|
198
201
|
},
|
|
199
202
|
sui: {
|
|
200
|
-
check: (b) =>
|
|
203
|
+
check: (b) => Ft(b),
|
|
201
204
|
address: (d = r == null ? void 0 : r.htlcs.sui) == null ? void 0 : d.htlcActorAddress
|
|
202
205
|
}
|
|
203
206
|
};
|
|
204
|
-
for (const [b, { check:
|
|
207
|
+
for (const [b, { check: n, address: _ }] of Object.entries(
|
|
205
208
|
e
|
|
206
209
|
))
|
|
207
|
-
if ((
|
|
210
|
+
if ((n(t.chain) || n(o.chain)) && !_)
|
|
208
211
|
return b;
|
|
209
212
|
return null;
|
|
210
|
-
}, [t,
|
|
211
|
-
if (et || !r || !rt || !Z || !t || !
|
|
213
|
+
}, [t, o, i, p, r]), kt = async () => {
|
|
214
|
+
if (et || !r || !rt || !Z || !t || !o) return;
|
|
212
215
|
N(!0);
|
|
213
|
-
const e = new j(i).multipliedBy(10 ** t.decimals).toFixed(), l = new j(p).multipliedBy(10 **
|
|
216
|
+
const e = new j(i).multipliedBy(10 ** t.decimals).toFixed(), l = new j(p).multipliedBy(10 ** o.decimals).toFixed();
|
|
214
217
|
try {
|
|
215
218
|
const u = await Z({
|
|
216
219
|
fromAsset: t,
|
|
217
|
-
toAsset:
|
|
220
|
+
toAsset: o,
|
|
218
221
|
sendAmount: e,
|
|
219
222
|
receiveAmount: l,
|
|
220
|
-
|
|
223
|
+
solverId: wt,
|
|
224
|
+
...y && { addresses: { bitcoin: S } }
|
|
221
225
|
});
|
|
222
226
|
if (!u.ok) {
|
|
223
|
-
u.error.includes("destination amount too high") ? C(i, t,
|
|
227
|
+
u.error.includes("destination amount too high") ? C(i, t, o, !1) : console.error("failed to create order ❌", u.error), N(!1);
|
|
224
228
|
return;
|
|
225
229
|
}
|
|
226
230
|
let c;
|
|
@@ -241,21 +245,21 @@ const Kt = () => {
|
|
|
241
245
|
}
|
|
242
246
|
};
|
|
243
247
|
return I(() => {
|
|
244
|
-
if (!t || !
|
|
248
|
+
if (!t || !o || !i || g || T)
|
|
245
249
|
return;
|
|
246
250
|
const e = setInterval(() => {
|
|
247
|
-
C(i, t,
|
|
251
|
+
C(i, t, o, !1);
|
|
248
252
|
}, 5e3);
|
|
249
253
|
return () => clearInterval(e);
|
|
250
254
|
}, [
|
|
251
255
|
i,
|
|
252
256
|
t,
|
|
253
|
-
|
|
257
|
+
o,
|
|
254
258
|
C,
|
|
255
259
|
g,
|
|
256
260
|
T
|
|
257
261
|
]), I(() => {
|
|
258
|
-
!t || !
|
|
262
|
+
!t || !o || (s({ inputError: "" }), V(i));
|
|
259
263
|
}, [t, V, s]), I(() => {
|
|
260
264
|
if (p == "0" || !p || i == "0" || !i) {
|
|
261
265
|
A({ input: "0", output: "0" });
|
|
@@ -289,23 +293,23 @@ const Kt = () => {
|
|
|
289
293
|
a
|
|
290
294
|
]), I(() => {
|
|
291
295
|
s({ insufficientBalanceError: f.none });
|
|
292
|
-
}, [s, t,
|
|
296
|
+
}, [s, t, o, i]), I(() => {
|
|
293
297
|
var e, l;
|
|
294
298
|
(e = r == null ? void 0 : r.htlcs.bitcoin) != null && e.htlcActorAddress && L((l = r == null ? void 0 : r.htlcs.bitcoin) == null ? void 0 : l.htlcActorAddress);
|
|
295
|
-
}, [(
|
|
296
|
-
if (!
|
|
299
|
+
}, [(nt = r == null ? void 0 : r.htlcs.bitcoin) == null ? void 0 : nt.htlcActorAddress, L]), I(() => {
|
|
300
|
+
if (!y) {
|
|
297
301
|
R(!0);
|
|
298
302
|
return;
|
|
299
303
|
}
|
|
300
|
-
const e =
|
|
304
|
+
const e = S ? ft(S, J) : !1;
|
|
301
305
|
R(e);
|
|
302
|
-
}, [
|
|
306
|
+
}, [S, y, R]), I(() => {
|
|
303
307
|
z(!!$), K(!!O);
|
|
304
308
|
}, [O, $]), {
|
|
305
309
|
inputAmount: i,
|
|
306
310
|
outputAmount: p,
|
|
307
311
|
inputAsset: t,
|
|
308
|
-
outputAsset:
|
|
312
|
+
outputAsset: o,
|
|
309
313
|
tokenPrices: ht,
|
|
310
314
|
rate: pt,
|
|
311
315
|
error: B,
|
|
@@ -314,22 +318,22 @@ const Kt = () => {
|
|
|
314
318
|
validSwap: rt,
|
|
315
319
|
isSwapping: g,
|
|
316
320
|
isApproving: dt,
|
|
317
|
-
isBitcoinSwap:
|
|
318
|
-
inputTokenBalance:
|
|
321
|
+
isBitcoinSwap: y,
|
|
322
|
+
inputTokenBalance: Et,
|
|
319
323
|
needsWalletConnection: et,
|
|
320
|
-
btcAddress:
|
|
324
|
+
btcAddress: S,
|
|
321
325
|
controller: h,
|
|
322
326
|
isComparisonVisible: T,
|
|
323
327
|
setBtcAddress: L,
|
|
324
328
|
swapAssets: bt,
|
|
325
329
|
handleInputAmountChange: V,
|
|
326
|
-
handleOutputAmountChange:
|
|
327
|
-
handleSwapClick:
|
|
328
|
-
setAsset:
|
|
330
|
+
handleOutputAmountChange: It,
|
|
331
|
+
handleSwapClick: kt,
|
|
332
|
+
setAsset: vt,
|
|
329
333
|
clearSwapState: x,
|
|
330
|
-
setIsComparisonVisible:
|
|
334
|
+
setIsComparisonVisible: St
|
|
331
335
|
};
|
|
332
336
|
};
|
|
333
337
|
export {
|
|
334
|
-
|
|
338
|
+
Jt as useSwap
|
|
335
339
|
};
|
package/dist/index280.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n="#__bigint";function e(i,f,r){return JSON.stringify(i,(g,t)=>typeof t=="bigint"?t.toString()+n:t,r)}exports.stringify=e;
|
package/dist/index280.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
i && (t = t.slice(1)), t = t.padStart(n, "0");
|
|
5
|
-
let [l, e] = [
|
|
6
|
-
t.slice(0, t.length - n),
|
|
7
|
-
t.slice(t.length - n)
|
|
8
|
-
];
|
|
9
|
-
return e = e.replace(/(0+)$/, ""), `${i ? "-" : ""}${l || "0"}${e ? `.${e}` : ""}`;
|
|
1
|
+
const r = "#__bigint";
|
|
2
|
+
function g(i, f, n) {
|
|
3
|
+
return JSON.stringify(i, (e, t) => typeof t == "bigint" ? t.toString() + r : t, n);
|
|
10
4
|
}
|
|
11
5
|
export {
|
|
12
|
-
|
|
6
|
+
g as stringify
|
|
13
7
|
};
|
package/dist/index281.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index282.cjs"),c=require("./index283.cjs"),o=require("./index278.cjs"),m=require("./index284.cjs"),b=/^0x[a-fA-F0-9]{40}$/;function i(e,t={}){const{strict:s=!0}=t;if(!b.test(e))throw new a({address:e,cause:new l});if(s){if(e.toLowerCase()===e)return;if(d(e)!==e)throw new a({address:e,cause:new h})}}function d(e){if(c.checksum.has(e))return c.checksum.get(e);i(e,{strict:!1});const t=e.substring(2).toLowerCase(),s=m.keccak256(f.fromString(t),{as:"Bytes"}),n=t.split("");for(let r=0;r<40;r+=2)s[r>>1]>>4>=8&&n[r]&&(n[r]=n[r].toUpperCase()),(s[r>>1]&15)>=8&&n[r+1]&&(n[r+1]=n[r+1].toUpperCase());const u=`0x${n.join("")}`;return c.checksum.set(e,u),u}function p(e,t={}){const{strict:s=!0}=t??{};try{return i(e,{strict:s}),!0}catch{return!1}}class a extends o.BaseError{constructor({address:t,cause:s}){super(`Address "${t}" is invalid.`,{cause:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class l extends o.BaseError{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class h extends o.BaseError{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}exports.InvalidAddressError=a;exports.InvalidChecksumError=h;exports.InvalidInputError=l;exports.assert=i;exports.checksum=d;exports.validate=p;
|
package/dist/index281.js
CHANGED
|
@@ -1,16 +1,80 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { fromString as d } from "./index282.js";
|
|
2
|
+
import { checksum as o } from "./index283.js";
|
|
3
|
+
import { BaseError as c } from "./index278.js";
|
|
4
|
+
import { keccak256 as f } from "./index284.js";
|
|
5
|
+
const l = /^0x[a-fA-F0-9]{40}$/;
|
|
6
|
+
function u(r, t = {}) {
|
|
7
|
+
const { strict: s = !0 } = t;
|
|
8
|
+
if (!l.test(r))
|
|
9
|
+
throw new i({
|
|
10
|
+
address: r,
|
|
11
|
+
cause: new h()
|
|
12
|
+
});
|
|
13
|
+
if (s) {
|
|
14
|
+
if (r.toLowerCase() === r)
|
|
15
|
+
return;
|
|
16
|
+
if (m(r) !== r)
|
|
17
|
+
throw new i({
|
|
18
|
+
address: r,
|
|
19
|
+
cause: new p()
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function m(r) {
|
|
24
|
+
if (o.has(r))
|
|
25
|
+
return o.get(r);
|
|
26
|
+
u(r, { strict: !1 });
|
|
27
|
+
const t = r.substring(2).toLowerCase(), s = f(d(t), { as: "Bytes" }), n = t.split("");
|
|
28
|
+
for (let e = 0; e < 40; e += 2)
|
|
29
|
+
s[e >> 1] >> 4 >= 8 && n[e] && (n[e] = n[e].toUpperCase()), (s[e >> 1] & 15) >= 8 && n[e + 1] && (n[e + 1] = n[e + 1].toUpperCase());
|
|
30
|
+
const a = `0x${n.join("")}`;
|
|
31
|
+
return o.set(r, a), a;
|
|
32
|
+
}
|
|
33
|
+
function k(r, t = {}) {
|
|
34
|
+
const { strict: s = !0 } = t ?? {};
|
|
35
|
+
try {
|
|
36
|
+
return u(r, { strict: s }), !0;
|
|
37
|
+
} catch {
|
|
38
|
+
return !1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
class i extends c {
|
|
42
|
+
constructor({ address: t, cause: s }) {
|
|
43
|
+
super(`Address "${t}" is invalid.`, {
|
|
44
|
+
cause: s
|
|
45
|
+
}), Object.defineProperty(this, "name", {
|
|
46
|
+
enumerable: !0,
|
|
47
|
+
configurable: !0,
|
|
48
|
+
writable: !0,
|
|
49
|
+
value: "Address.InvalidAddressError"
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
class h extends c {
|
|
54
|
+
constructor() {
|
|
55
|
+
super("Address is not a 20 byte (40 hexadecimal character) value."), Object.defineProperty(this, "name", {
|
|
56
|
+
enumerable: !0,
|
|
57
|
+
configurable: !0,
|
|
58
|
+
writable: !0,
|
|
59
|
+
value: "Address.InvalidInputError"
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
class p extends c {
|
|
64
|
+
constructor() {
|
|
65
|
+
super("Address does not match its checksum counterpart."), Object.defineProperty(this, "name", {
|
|
66
|
+
enumerable: !0,
|
|
67
|
+
configurable: !0,
|
|
68
|
+
writable: !0,
|
|
69
|
+
value: "Address.InvalidChecksumError"
|
|
70
|
+
});
|
|
71
|
+
}
|
|
13
72
|
}
|
|
14
73
|
export {
|
|
15
|
-
|
|
74
|
+
i as InvalidAddressError,
|
|
75
|
+
p as InvalidChecksumError,
|
|
76
|
+
h as InvalidInputError,
|
|
77
|
+
u as assert,
|
|
78
|
+
m as checksum,
|
|
79
|
+
k as validate
|
|
16
80
|
};
|
package/dist/index282.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 a=require("./index278.cjs"),s=require("./index277.cjs"),o=require("./index356.cjs"),S=require("./index279.cjs"),x=new TextDecoder,E=new TextEncoder;function p(e){return e instanceof Uint8Array?e:typeof e=="string"?b(e):g(e)}function g(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function b(e,t={}){const{size:n}=t;let r=e;n&&(S.assertSize(e,n),r=s.padRight(e,n));let i=r.slice(2);i.length%2&&(i=`0${i}`);const u=i.length/2,d=new Uint8Array(u);for(let f=0,c=0;f<u;f++){const l=o.charCodeToBase16(i.charCodeAt(c++)),y=o.charCodeToBase16(i.charCodeAt(c++));if(l===void 0||y===void 0)throw new a.BaseError(`Invalid byte sequence ("${i[c-2]}${i[c-1]}" in "${i}").`);d[f]=l<<4|y}return d}function w(e,t={}){const{size:n}=t,r=E.encode(e);return typeof n=="number"?(o.assertSize(r,n),h(r,n)):r}function h(e,t){return o.pad(e,{dir:"right",size:t})}function $(e){return e.length}function v(e,t,n,r={}){const{strict:i}=r;return e.slice(t,n)}function A(e,t={}){const{size:n}=t;typeof n<"u"&&o.assertSize(e,n);const r=s.fromBytes(e,t);return s.toBigInt(r,t)}function I(e,t={}){const{size:n}=t;let r=e;if(typeof n<"u"&&(o.assertSize(r,n),r=m(r)),r.length>1||r[0]>1)throw new B(r);return!!r[0]}function O(e,t={}){const{size:n}=t;typeof n<"u"&&o.assertSize(e,n);const r=s.fromBytes(e,t);return s.toNumber(r,t)}function P(e,t={}){const{size:n}=t;let r=e;return typeof n<"u"&&(o.assertSize(r,n),r=z(r)),x.decode(r)}function m(e){return o.trim(e,{dir:"left"})}function z(e){return o.trim(e,{dir:"right"})}class B extends a.BaseError{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class C extends a.BaseError{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}class R extends a.BaseError{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}exports.InvalidBytesBooleanError=B;exports.SizeExceedsPaddingSizeError=R;exports.SizeOverflowError=C;exports.from=p;exports.fromArray=g;exports.fromHex=b;exports.fromString=w;exports.padRight=h;exports.size=$;exports.slice=v;exports.toBigInt=A;exports.toBoolean=I;exports.toNumber=O;exports.toString=P;exports.trimLeft=m;exports.trimRight=z;
|
package/dist/index282.js
CHANGED
|
@@ -1,27 +1,122 @@
|
|
|
1
|
-
import { BaseError as c } from "./
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { BaseError as c } from "./index278.js";
|
|
2
|
+
import { padRight as g, fromBytes as m, toNumber as h, toBigInt as z } from "./index277.js";
|
|
3
|
+
import { charCodeToBase16 as b, assertSize as o, trim as y, pad as p } from "./index356.js";
|
|
4
|
+
import { assertSize as x } from "./index279.js";
|
|
5
|
+
const B = /* @__PURE__ */ new TextDecoder(), $ = /* @__PURE__ */ new TextEncoder();
|
|
6
|
+
function U(e) {
|
|
7
|
+
return e instanceof Uint8Array ? e : typeof e == "string" ? S(e) : w(e);
|
|
8
|
+
}
|
|
9
|
+
function w(e) {
|
|
10
|
+
return e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
11
|
+
}
|
|
12
|
+
function S(e, r = {}) {
|
|
13
|
+
const { size: n } = r;
|
|
14
|
+
let t = e;
|
|
15
|
+
n && (x(e, n), t = g(e, n));
|
|
16
|
+
let i = t.slice(2);
|
|
17
|
+
i.length % 2 && (i = `0${i}`);
|
|
18
|
+
const a = i.length / 2, f = new Uint8Array(a);
|
|
19
|
+
for (let u = 0, s = 0; u < a; u++) {
|
|
20
|
+
const d = b(i.charCodeAt(s++)), l = b(i.charCodeAt(s++));
|
|
21
|
+
if (d === void 0 || l === void 0)
|
|
22
|
+
throw new c(`Invalid byte sequence ("${i[s - 2]}${i[s - 1]}" in "${i}").`);
|
|
23
|
+
f[u] = d << 4 | l;
|
|
24
|
+
}
|
|
25
|
+
return f;
|
|
26
|
+
}
|
|
27
|
+
function j(e, r = {}) {
|
|
28
|
+
const { size: n } = r, t = $.encode(e);
|
|
29
|
+
return typeof n == "number" ? (o(t, n), E(t, n)) : t;
|
|
30
|
+
}
|
|
31
|
+
function E(e, r) {
|
|
32
|
+
return p(e, { dir: "right", size: r });
|
|
33
|
+
}
|
|
34
|
+
function T(e) {
|
|
35
|
+
return e.length;
|
|
36
|
+
}
|
|
37
|
+
function _(e, r, n, t = {}) {
|
|
38
|
+
const { strict: i } = t;
|
|
39
|
+
return e.slice(r, n);
|
|
40
|
+
}
|
|
41
|
+
function L(e, r = {}) {
|
|
42
|
+
const { size: n } = r;
|
|
43
|
+
typeof n < "u" && o(e, n);
|
|
44
|
+
const t = m(e, r);
|
|
45
|
+
return z(t, r);
|
|
46
|
+
}
|
|
47
|
+
function N(e, r = {}) {
|
|
48
|
+
const { size: n } = r;
|
|
49
|
+
let t = e;
|
|
50
|
+
if (typeof n < "u" && (o(t, n), t = A(t)), t.length > 1 || t[0] > 1)
|
|
51
|
+
throw new I(t);
|
|
52
|
+
return !!t[0];
|
|
53
|
+
}
|
|
54
|
+
function q(e, r = {}) {
|
|
55
|
+
const { size: n } = r;
|
|
56
|
+
typeof n < "u" && o(e, n);
|
|
57
|
+
const t = m(e, r);
|
|
58
|
+
return h(t, r);
|
|
59
|
+
}
|
|
60
|
+
function D(e, r = {}) {
|
|
61
|
+
const { size: n } = r;
|
|
62
|
+
let t = e;
|
|
63
|
+
return typeof n < "u" && (o(t, n), t = v(t)), B.decode(t);
|
|
64
|
+
}
|
|
65
|
+
function A(e) {
|
|
66
|
+
return y(e, { dir: "left" });
|
|
67
|
+
}
|
|
68
|
+
function v(e) {
|
|
69
|
+
return y(e, { dir: "right" });
|
|
70
|
+
}
|
|
71
|
+
class I extends c {
|
|
72
|
+
constructor(r) {
|
|
73
|
+
super(`Bytes value \`${r}\` is not a valid boolean.`, {
|
|
74
|
+
metaMessages: [
|
|
75
|
+
"The bytes array must contain a single byte of either a `0` or `1` value."
|
|
76
|
+
]
|
|
77
|
+
}), Object.defineProperty(this, "name", {
|
|
78
|
+
enumerable: !0,
|
|
79
|
+
configurable: !0,
|
|
80
|
+
writable: !0,
|
|
81
|
+
value: "Bytes.InvalidBytesBooleanError"
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
class G extends c {
|
|
86
|
+
constructor({ givenSize: r, maxSize: n }) {
|
|
87
|
+
super(`Size cannot exceed \`${n}\` bytes. Given size: \`${r}\` bytes.`), Object.defineProperty(this, "name", {
|
|
88
|
+
enumerable: !0,
|
|
89
|
+
configurable: !0,
|
|
90
|
+
writable: !0,
|
|
91
|
+
value: "Bytes.SizeOverflowError"
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
class H extends c {
|
|
96
|
+
constructor({ size: r, targetSize: n, type: t }) {
|
|
97
|
+
super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (\`${r}\`) exceeds padding size (\`${n}\`).`), Object.defineProperty(this, "name", {
|
|
98
|
+
enumerable: !0,
|
|
99
|
+
configurable: !0,
|
|
100
|
+
writable: !0,
|
|
101
|
+
value: "Bytes.SizeExceedsPaddingSizeError"
|
|
102
|
+
});
|
|
103
|
+
}
|
|
24
104
|
}
|
|
25
105
|
export {
|
|
26
|
-
|
|
106
|
+
I as InvalidBytesBooleanError,
|
|
107
|
+
H as SizeExceedsPaddingSizeError,
|
|
108
|
+
G as SizeOverflowError,
|
|
109
|
+
U as from,
|
|
110
|
+
w as fromArray,
|
|
111
|
+
S as fromHex,
|
|
112
|
+
j as fromString,
|
|
113
|
+
E as padRight,
|
|
114
|
+
T as size,
|
|
115
|
+
_ as slice,
|
|
116
|
+
L as toBigInt,
|
|
117
|
+
N as toBoolean,
|
|
118
|
+
q as toNumber,
|
|
119
|
+
D as toString,
|
|
120
|
+
A as trimLeft,
|
|
121
|
+
v as trimRight
|
|
27
122
|
};
|
package/dist/index283.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index357.cjs"),e={checksum:new c.LruMap(8192)},s=e.checksum;exports.checksum=s;
|
package/dist/index283.js
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function i(c) {
|
|
6
|
-
const s = Object.keys(c);
|
|
7
|
-
for (const n of s)
|
|
8
|
-
n in t && (e[n] = t[n]), c[n] && typeof c[n] == "object" && !Array.isArray(c[n]) && i(c[n]);
|
|
9
|
-
}
|
|
10
|
-
const o = r(t || {});
|
|
11
|
-
return i(o), e;
|
|
12
|
-
}
|
|
1
|
+
import { LruMap as c } from "./index357.js";
|
|
2
|
+
const e = {
|
|
3
|
+
checksum: /* @__PURE__ */ new c(8192)
|
|
4
|
+
}, m = e.checksum;
|
|
13
5
|
export {
|
|
14
|
-
|
|
6
|
+
m as checksum
|
|
15
7
|
};
|