@gardenfi/swap 0.1.3-beta.2 → 0.1.3-beta.21
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 +21 -3
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +9 -7
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +9 -5
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +3 -13
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +7 -171
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +5 -33
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +13 -51
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +168 -34
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +33 -24
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +49 -31
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +37 -3
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +24 -9
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +32 -115
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +3 -61
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +8 -23
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +116 -36
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +58 -38
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +20 -54
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +34 -38
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +40 -8
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +58 -31
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +40 -36
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +6 -6
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +30 -28
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +34 -48
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +9 -70
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +26 -38
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +47 -74
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +70 -8
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +41 -6
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +77 -17
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +8 -8
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +6 -13
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +17 -7
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +8 -16
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +13 -46
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +7 -13
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +15 -15
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +46 -13
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +13 -6
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +15 -34
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +13 -9
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +5 -7
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +35 -29
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +9 -10
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +7 -13
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +29 -12
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +10 -121
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +14 -82
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +12 -177
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +29 -29
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +119 -42
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +82 -6
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +177 -14
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +44 -14
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +6 -103
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +14 -75
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +14 -89
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +97 -145
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +68 -131
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +75 -55
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +151 -23
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +134 -160
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +69 -6
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +23 -13
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +163 -18
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +6 -106
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +13 -78
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +19 -9
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +104 -26
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +76 -88
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +10 -3
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +29 -2
- package/dist/index172.cjs +1 -2
- package/dist/index172.js +91 -3
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +3 -9
- package/dist/index174.cjs +1 -20
- package/dist/index174.js +2 -327
- package/dist/index175.cjs +2 -1
- package/dist/index175.js +3 -14
- package/dist/index176.cjs +1 -2
- package/dist/index176.js +8 -59
- package/dist/index177.cjs +20 -1
- package/dist/index177.js +327 -2
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +13 -7
- package/dist/index179.cjs +2 -1
- package/dist/index179.js +59 -31
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +2 -22
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +7 -5
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +30 -72
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +21 -5
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +5 -5
- package/dist/index185.cjs +1 -9
- package/dist/index185.js +69 -31
- package/dist/index186.cjs +1 -2
- package/dist/index186.js +5 -120
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +6 -3
- package/dist/index188.cjs +9 -1
- package/dist/index188.js +31 -14
- package/dist/index189.cjs +2 -1
- package/dist/index189.js +108 -21
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +14 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +3 -36
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +13 -18
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +31 -6
- package/dist/index193.cjs +1 -4
- package/dist/index193.js +33 -192
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +24 -2
- package/dist/index195.cjs +1 -3
- package/dist/index195.js +6 -449
- package/dist/index196.cjs +4 -1
- package/dist/index196.js +185 -18
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +2 -162
- package/dist/index198.cjs +3 -1
- package/dist/index198.js +450 -126
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +23 -34
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +161 -27
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +126 -54
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +31 -184
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +28 -4
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +53 -71
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +185 -14
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +4 -3
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +70 -13
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +19 -22
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +3 -35
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +17 -3
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +22 -26
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +33 -35
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +3 -9
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +26 -24
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +35 -27
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +8 -75
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +24 -20
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +28 -8
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +74 -9
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +21 -11
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +8 -6
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +10 -6
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +11 -13
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +6 -32
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +7 -5
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +12 -36
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +28 -107
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +5 -50
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +36 -31
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +111 -8
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +49 -7
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +32 -16
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +8 -22
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +7 -104
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +17 -3
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +22 -5
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +102 -29
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +3 -21
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +5 -3
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +31 -17
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +20 -5
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +3 -8
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +16 -102
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +5 -64
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +8 -6
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +103 -27
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +63 -33
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +6 -16
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +25 -76
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +35 -2
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +16 -14
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +77 -17
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +2 -18
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +14 -10
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +17 -78
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +18 -3
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +10 -32
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +70 -106
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +3 -4
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +30 -13
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +114 -10
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +4 -19
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +14 -57
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +10 -19
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +19 -14
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +48 -274
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +20 -573
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +13 -40
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +283 -12
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +572 -23
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +41 -13
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +12 -8
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +24 -30
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +13 -2
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +9 -47
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +30 -11
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +2 -175
- package/dist/index278.cjs +1 -2
- package/dist/index278.js +44 -88
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +11 -40
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +126 -123
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +174 -4
- package/dist/index281.cjs +2 -1
- package/dist/index281.js +71 -143
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +41 -5
- package/dist/index283.cjs +1 -2
- package/dist/index283.js +4 -41
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +164 -2
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +5 -6
- package/dist/index286.cjs +2 -1
- package/dist/index286.js +40 -9
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +2 -20
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +5 -8
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +9 -71
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +17 -63
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +8 -188
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +72 -22
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +61 -38
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +186 -23
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +21 -89
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +22 -20
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +24 -15
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +84 -7
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +40 -37
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +16 -15
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +13 -8
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +37 -9
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +15 -16
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +8 -22
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +9 -13
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +16 -13
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +21 -13
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +13 -9
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +13 -15
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +14 -25
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +9 -31
- package/dist/index313.cjs +1 -2
- package/dist/index313.js +13 -16
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +25 -14
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +31 -11
- package/dist/index316.cjs +2 -1
- package/dist/index316.js +16 -10
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +13 -32
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +11 -115
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +11 -102
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +33 -6
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +116 -7
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +101 -24
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +6 -16
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +7 -215
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +25 -41
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +16 -320
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +209 -600
- package/dist/index328.cjs +1 -1
- package/dist/index328.js +41 -108
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +319 -166
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +590 -286
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +110 -94
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +167 -56
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +297 -49
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +93 -44
- package/dist/index335.cjs +1 -1
- package/dist/index335.js +56 -15
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +47 -311
- package/dist/index337.cjs +1 -1
- package/dist/index337.js +41 -56
- package/dist/index338.cjs +1 -1
- package/dist/index338.js +15 -19
- package/dist/index339.cjs +1 -1
- package/dist/index339.js +314 -26
- package/dist/index340.cjs +1 -1
- package/dist/index340.js +59 -3
- package/dist/index341.cjs +1 -7
- package/dist/index341.js +17 -235
- package/dist/index342.cjs +1 -1
- package/dist/index342.js +30 -48
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +3 -212
- package/dist/index344.cjs +7 -1
- package/dist/index344.js +229 -73
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +48 -30
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +206 -70
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +81 -7
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +26 -116
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +76 -4
- package/dist/index350.cjs +1 -2
- package/dist/index350.js +7 -193
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +98 -56
- package/dist/index352.cjs +1 -1
- package/dist/index352.js +4 -343
- package/dist/index353.cjs +2 -1
- package/dist/index353.js +173 -140
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +78 -5
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +340 -11
- package/dist/index356.cjs +1 -1
- package/dist/index356.js +160 -16
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +5 -10
- package/dist/index358.cjs +1 -1
- package/dist/index358.js +13 -205
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +16 -52
- package/dist/index360.cjs +1 -1
- package/dist/index360.js +9 -68
- package/dist/index361.cjs +1 -1
- package/dist/index361.js +206 -3
- package/dist/index362.cjs +1 -1
- package/dist/index362.js +47 -135
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +67 -132
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +3 -78
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +141 -2
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +130 -39
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +73 -652
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +2 -178
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +41 -93
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +654 -25
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +174 -145
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +71 -331
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +27 -72
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +148 -31
- package/dist/index375.cjs +1 -1
- package/dist/index375.js +354 -5
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +72 -274
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +32 -171
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +6 -10
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +3 -3
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +2 -2
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +10 -10
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +276 -2
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +170 -21
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +9 -62
- package/dist/index384.cjs +1 -1
- package/dist/index384.js +2 -110
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +22 -3
- package/dist/index386.cjs +1 -1
- package/dist/index386.js +55 -124
- package/dist/index387.cjs +1 -1
- package/dist/index387.js +110 -260
- package/dist/index388.cjs +1 -0
- package/dist/index388.js +5 -0
- package/dist/index389.cjs +1 -0
- package/dist/index389.js +134 -0
- package/dist/index390.cjs +1 -0
- package/dist/index390.js +262 -0
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +5 -5
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +1 -1
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +1 -1
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +2 -2
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +1 -1
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +1 -1
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +2 -2
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +2 -2
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +1 -1
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +46 -42
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +1 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +1 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +38 -15
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +45 -14
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +52 -18
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +15 -10
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +13 -32
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +18 -15
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +9 -12
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +30 -34
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +14 -41
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +13 -43
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +37 -25
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +39 -52
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +42 -27
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +25 -20
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +53 -726
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +27 -521
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +19 -20
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +721 -24
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +520 -11
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +12 -11
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +11 -18
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +16 -43
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +41 -38
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +37 -166
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +166 -21
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +20 -4
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +30 -6
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +26 -16
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +16 -14
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +4 -12
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +6 -9
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +15 -155
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +13 -5
- package/dist/index94.cjs +1 -3
- package/dist/index94.js +9 -215
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +156 -18
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +5 -11
- package/dist/index97.cjs +3 -1
- package/dist/index97.js +214 -20
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +18 -9
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +10 -9
- package/dist/src/lib/constants/wagmiConfig.d.ts +664 -0
- package/dist/src/lib/store/swapStore.d.ts +3 -1
- package/package.json +5 -5
package/dist/index237.js
CHANGED
|
@@ -1,34 +1,107 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
n.clear(), e.clear();
|
|
11
|
-
},
|
|
12
|
-
promise: n,
|
|
13
|
-
response: e
|
|
14
|
-
};
|
|
1
|
+
import { split as L, rotlSH as T, rotlSL as S, rotlBH as m, rotlBL as F } from "./index320.js";
|
|
2
|
+
import { createHasher as X, Hash as E, anumber as d, u32 as U, swap32IfBE as I, aexists as x, toBytes as P, abytes as k, aoutput as M, clean as y } from "./index321.js";
|
|
3
|
+
const R = BigInt(0), f = BigInt(1), j = BigInt(2), q = BigInt(7), v = BigInt(256), z = BigInt(113), _ = [], g = [], B = [];
|
|
4
|
+
for (let n = 0, t = f, s = 1, i = 0; n < 24; n++) {
|
|
5
|
+
[s, i] = [i, (2 * s + 3 * i) % 5], _.push(2 * (5 * i + s)), g.push((n + 1) * (n + 2) / 2 % 64);
|
|
6
|
+
let o = R;
|
|
7
|
+
for (let r = 0; r < 7; r++)
|
|
8
|
+
t = (t << f ^ (t >> q) * z) % v, t & j && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
|
|
9
|
+
B.push(o);
|
|
15
10
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
const A = L(B, !0), C = A[0], D = A[1], O = (n, t, s) => s > 32 ? m(n, t, s) : T(n, t, s), w = (n, t, s) => s > 32 ? F(n, t, s) : S(n, t, s);
|
|
12
|
+
function G(n, t = 24) {
|
|
13
|
+
const s = new Uint32Array(10);
|
|
14
|
+
for (let i = 24 - t; i < 24; i++) {
|
|
15
|
+
for (let e = 0; e < 10; e++)
|
|
16
|
+
s[e] = n[e] ^ n[e + 10] ^ n[e + 20] ^ n[e + 30] ^ n[e + 40];
|
|
17
|
+
for (let e = 0; e < 10; e += 2) {
|
|
18
|
+
const h = (e + 8) % 10, l = (e + 2) % 10, u = s[l], c = s[l + 1], b = O(u, c, 1) ^ s[h], H = w(u, c, 1) ^ s[h + 1];
|
|
19
|
+
for (let a = 0; a < 50; a += 10)
|
|
20
|
+
n[e + a] ^= b, n[e + a + 1] ^= H;
|
|
21
|
+
}
|
|
22
|
+
let o = n[2], r = n[3];
|
|
23
|
+
for (let e = 0; e < 24; e++) {
|
|
24
|
+
const h = g[e], l = O(o, r, h), u = w(o, r, h), c = _[e];
|
|
25
|
+
o = n[c], r = n[c + 1], n[c] = l, n[c + 1] = u;
|
|
26
|
+
}
|
|
27
|
+
for (let e = 0; e < 50; e += 10) {
|
|
28
|
+
for (let h = 0; h < 10; h++)
|
|
29
|
+
s[h] = n[e + h];
|
|
30
|
+
for (let h = 0; h < 10; h++)
|
|
31
|
+
n[e + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
|
|
32
|
+
}
|
|
33
|
+
n[0] ^= C[i], n[1] ^= D[i];
|
|
27
34
|
}
|
|
35
|
+
y(s);
|
|
28
36
|
}
|
|
37
|
+
class p extends E {
|
|
38
|
+
// NOTE: we accept arguments in bytes instead of bits here.
|
|
39
|
+
constructor(t, s, i, o = !1, r = 24) {
|
|
40
|
+
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = s, this.outputLen = i, this.enableXOF = o, this.rounds = r, d(i), !(0 < t && t < 200))
|
|
41
|
+
throw new Error("only keccak-f1600 function is supported");
|
|
42
|
+
this.state = new Uint8Array(200), this.state32 = U(this.state);
|
|
43
|
+
}
|
|
44
|
+
clone() {
|
|
45
|
+
return this._cloneInto();
|
|
46
|
+
}
|
|
47
|
+
keccak() {
|
|
48
|
+
I(this.state32), G(this.state32, this.rounds), I(this.state32), this.posOut = 0, this.pos = 0;
|
|
49
|
+
}
|
|
50
|
+
update(t) {
|
|
51
|
+
x(this), t = P(t), k(t);
|
|
52
|
+
const { blockLen: s, state: i } = this, o = t.length;
|
|
53
|
+
for (let r = 0; r < o; ) {
|
|
54
|
+
const e = Math.min(s - this.pos, o - r);
|
|
55
|
+
for (let h = 0; h < e; h++)
|
|
56
|
+
i[this.pos++] ^= t[r++];
|
|
57
|
+
this.pos === s && this.keccak();
|
|
58
|
+
}
|
|
59
|
+
return this;
|
|
60
|
+
}
|
|
61
|
+
finish() {
|
|
62
|
+
if (this.finished)
|
|
63
|
+
return;
|
|
64
|
+
this.finished = !0;
|
|
65
|
+
const { state: t, suffix: s, pos: i, blockLen: o } = this;
|
|
66
|
+
t[i] ^= s, s & 128 && i === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
|
|
67
|
+
}
|
|
68
|
+
writeInto(t) {
|
|
69
|
+
x(this, !1), k(t), this.finish();
|
|
70
|
+
const s = this.state, { blockLen: i } = this;
|
|
71
|
+
for (let o = 0, r = t.length; o < r; ) {
|
|
72
|
+
this.posOut >= i && this.keccak();
|
|
73
|
+
const e = Math.min(i - this.posOut, r - o);
|
|
74
|
+
t.set(s.subarray(this.posOut, this.posOut + e), o), this.posOut += e, o += e;
|
|
75
|
+
}
|
|
76
|
+
return t;
|
|
77
|
+
}
|
|
78
|
+
xofInto(t) {
|
|
79
|
+
if (!this.enableXOF)
|
|
80
|
+
throw new Error("XOF is not possible for this instance");
|
|
81
|
+
return this.writeInto(t);
|
|
82
|
+
}
|
|
83
|
+
xof(t) {
|
|
84
|
+
return d(t), this.xofInto(new Uint8Array(t));
|
|
85
|
+
}
|
|
86
|
+
digestInto(t) {
|
|
87
|
+
if (M(t, this), this.finished)
|
|
88
|
+
throw new Error("digest() was already called");
|
|
89
|
+
return this.writeInto(t), this.destroy(), t;
|
|
90
|
+
}
|
|
91
|
+
digest() {
|
|
92
|
+
return this.digestInto(new Uint8Array(this.outputLen));
|
|
93
|
+
}
|
|
94
|
+
destroy() {
|
|
95
|
+
this.destroyed = !0, y(this.state);
|
|
96
|
+
}
|
|
97
|
+
_cloneInto(t) {
|
|
98
|
+
const { blockLen: s, suffix: i, outputLen: o, rounds: r, enableXOF: e } = this;
|
|
99
|
+
return t || (t = new p(s, i, o, e, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = i, t.outputLen = o, t.enableXOF = e, t.destroyed = this.destroyed, t;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const J = (n, t, s) => X(() => new p(t, n, s)), Q = J(1, 136, 256 / 8);
|
|
29
103
|
export {
|
|
30
|
-
p as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
l as withCache
|
|
104
|
+
p as Keccak,
|
|
105
|
+
G as keccakP,
|
|
106
|
+
Q as keccak_256
|
|
34
107
|
};
|
package/dist/index238.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 e=require("./index322.cjs"),s=e.sha256;exports.sha256=s;
|
package/dist/index238.js
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
return new Promise((s, y) => {
|
|
4
|
-
const a = async ({ count: r = 0 } = {}) => {
|
|
5
|
-
const f = async ({ error: t }) => {
|
|
6
|
-
const i = typeof e == "function" ? e({ count: r, error: t }) : e;
|
|
7
|
-
i && await w(i), a({ count: r + 1 });
|
|
8
|
-
};
|
|
9
|
-
try {
|
|
10
|
-
const t = await n();
|
|
11
|
-
s(t);
|
|
12
|
-
} catch (t) {
|
|
13
|
-
if (r < o && await c({ count: r, error: t }))
|
|
14
|
-
return f({ error: t });
|
|
15
|
-
y(t);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
a();
|
|
19
|
-
});
|
|
20
|
-
}
|
|
1
|
+
import { sha256 as s } from "./index322.js";
|
|
2
|
+
const o = s;
|
|
21
3
|
export {
|
|
22
|
-
|
|
4
|
+
o as sha256
|
|
23
5
|
};
|
package/dist/index239.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 e=require("./index323.cjs"),r=require("./index324.cjs");function n(t){return e.hashSignature(r.toSignature(t))}exports.toSignatureHash=n;
|
package/dist/index239.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { hashSignature as t } from "./index323.js";
|
|
2
|
+
import { toSignature as o } from "./index324.js";
|
|
3
|
+
function a(r) {
|
|
4
|
+
return t(o(r));
|
|
3
5
|
}
|
|
4
6
|
export {
|
|
5
|
-
|
|
7
|
+
a as toSignatureHash
|
|
6
8
|
};
|
package/dist/index240.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=new Map,i=new Map;function p(o){const a=(s,t)=>({clear:()=>t.delete(s),get:()=>t.get(s),set:n=>t.set(s,n)}),r=a(o,c),e=a(o,i);return{clear:()=>{r.clear(),e.clear()},promise:r,response:e}}async function l(o,{cacheKey:a,cacheTime:r=Number.POSITIVE_INFINITY}){const e=p(a),s=e.response.get();if(s&&r>0&&Date.now()-s.created.getTime()<r)return s.data;let t=e.promise.get();t||(t=o(),e.promise.set(t));try{const n=await t;return e.response.set({created:new Date,data:n}),n}finally{e.promise.clear()}}exports.getCache=p;exports.promiseCache=c;exports.responseCache=i;exports.withCache=l;
|
package/dist/index240.js
CHANGED
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
const i = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
|
|
2
|
+
function p(o) {
|
|
3
|
+
const a = (s, t) => ({
|
|
4
|
+
clear: () => t.delete(s),
|
|
5
|
+
get: () => t.get(s),
|
|
6
|
+
set: (r) => t.set(s, r)
|
|
7
|
+
}), n = a(o, i), e = a(o, c);
|
|
8
|
+
return {
|
|
9
|
+
clear: () => {
|
|
10
|
+
n.clear(), e.clear();
|
|
11
|
+
},
|
|
12
|
+
promise: n,
|
|
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 && Date.now() - 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
|
+
}
|
|
17
28
|
}
|
|
18
29
|
export {
|
|
19
|
-
|
|
30
|
+
p as getCache,
|
|
31
|
+
i as promiseCache,
|
|
32
|
+
c as responseCache,
|
|
33
|
+
l as withCache
|
|
20
34
|
};
|
package/dist/index241.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("./index242.cjs");function f(n,{delay:e=100,retryCount:o=2,shouldRetry:c=()=>!0}={}){return new Promise((s,y)=>{const a=async({count:r=0}={})=>{const w=async({error:t})=>{const i=typeof e=="function"?e({count:r,error:t}):e;i&&await u.wait(i),a({count:r+1})};try{const t=await n();s(t)}catch(t){if(r<o&&await c({count:r,error:t}))return w({error:t});y(t)}};a()})}exports.withRetry=f;
|
package/dist/index241.js
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { wait as w } from "./index242.js";
|
|
2
|
+
function p(n, { delay: e = 100, retryCount: o = 2, shouldRetry: c = () => !0 } = {}) {
|
|
3
|
+
return new Promise((s, y) => {
|
|
4
|
+
const a = async ({ count: r = 0 } = {}) => {
|
|
5
|
+
const f = async ({ error: t }) => {
|
|
6
|
+
const i = typeof e == "function" ? e({ count: r, error: t }) : e;
|
|
7
|
+
i && await w(i), a({ count: r + 1 });
|
|
8
|
+
};
|
|
9
|
+
try {
|
|
10
|
+
const t = await n();
|
|
11
|
+
s(t);
|
|
12
|
+
} catch (t) {
|
|
13
|
+
if (r < o && await c({ count: r, error: t }))
|
|
14
|
+
return f({ error: t });
|
|
15
|
+
y(t);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
a();
|
|
19
|
+
});
|
|
5
20
|
}
|
|
6
21
|
export {
|
|
7
|
-
|
|
22
|
+
p as withRetry
|
|
8
23
|
};
|
package/dist/index242.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 i(e){return new Promise(t=>setTimeout(t,e))}exports.wait=i;
|
package/dist/index242.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { size as f } from "./index87.js";
|
|
4
|
-
import { stringToHex as o, bytesToHex as p } from "./index83.js";
|
|
5
|
-
function u(r) {
|
|
6
|
-
const t = typeof r == "string" ? o(r) : typeof r.raw == "string" ? r.raw : p(r.raw), i = o(`${e}${f(t)}`);
|
|
7
|
-
return n([i, t]);
|
|
1
|
+
async function n(e) {
|
|
2
|
+
return new Promise((t) => setTimeout(t, e));
|
|
8
3
|
}
|
|
9
4
|
export {
|
|
10
|
-
|
|
5
|
+
n as wait
|
|
11
6
|
};
|
package/dist/index243.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(n,{errorInstance:r=new Error("timed out"),timeout:i,signal:a}){return new Promise((l,e)=>{(async()=>{let o;try{const t=new AbortController;i>0&&(o=setTimeout(()=>{a&&t.abort()},i)),l(await n({signal:(t==null?void 0:t.signal)||null}))}catch(t){(t==null?void 0:t.name)==="AbortError"&&e(r),e(t)}finally{clearTimeout(o)}})()})}exports.withTimeout=u;
|
package/dist/index243.js
CHANGED
|
@@ -1,106 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
function u(r, { errorInstance: e = new Error("timed out"), timeout: i, signal: a }) {
|
|
2
|
+
return new Promise((l, n) => {
|
|
3
|
+
(async () => {
|
|
4
|
+
let o;
|
|
5
|
+
try {
|
|
6
|
+
const t = new AbortController();
|
|
7
|
+
i > 0 && (o = setTimeout(() => {
|
|
8
|
+
a && t.abort();
|
|
9
|
+
}, i)), l(await r({ signal: (t == null ? void 0 : t.signal) || null }));
|
|
10
|
+
} catch (t) {
|
|
11
|
+
(t == null ? void 0 : t.name) === "AbortError" && n(e), n(t);
|
|
12
|
+
} finally {
|
|
13
|
+
clearTimeout(o);
|
|
14
|
+
}
|
|
15
|
+
})();
|
|
16
16
|
});
|
|
17
|
-
const a = ["0x1901"];
|
|
18
|
-
return n && a.push(l({
|
|
19
|
-
domain: n,
|
|
20
|
-
types: r
|
|
21
|
-
})), t !== "EIP712Domain" && a.push(f({
|
|
22
|
-
data: e,
|
|
23
|
-
primaryType: t,
|
|
24
|
-
types: r
|
|
25
|
-
})), s(h(a));
|
|
26
|
-
}
|
|
27
|
-
function l({ domain: o, types: n }) {
|
|
28
|
-
return f({
|
|
29
|
-
data: o,
|
|
30
|
-
primaryType: "EIP712Domain",
|
|
31
|
-
types: n
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function f({ data: o, primaryType: n, types: e }) {
|
|
35
|
-
const t = m({
|
|
36
|
-
data: o,
|
|
37
|
-
primaryType: n,
|
|
38
|
-
types: e
|
|
39
|
-
});
|
|
40
|
-
return s(t);
|
|
41
|
-
}
|
|
42
|
-
function m({ data: o, primaryType: n, types: e }) {
|
|
43
|
-
const t = [{ type: "bytes32" }], r = [b({ primaryType: n, types: e })];
|
|
44
|
-
for (const a of e[n]) {
|
|
45
|
-
const [i, c] = y({
|
|
46
|
-
types: e,
|
|
47
|
-
name: a.name,
|
|
48
|
-
type: a.type,
|
|
49
|
-
value: o[a.name]
|
|
50
|
-
});
|
|
51
|
-
t.push(i), r.push(c);
|
|
52
|
-
}
|
|
53
|
-
return d(t, r);
|
|
54
|
-
}
|
|
55
|
-
function b({ primaryType: o, types: n }) {
|
|
56
|
-
const e = p(I({ primaryType: o, types: n }));
|
|
57
|
-
return s(e);
|
|
58
|
-
}
|
|
59
|
-
function I({ primaryType: o, types: n }) {
|
|
60
|
-
let e = "";
|
|
61
|
-
const t = u({ primaryType: o, types: n });
|
|
62
|
-
t.delete(o);
|
|
63
|
-
const r = [o, ...Array.from(t).sort()];
|
|
64
|
-
for (const a of r)
|
|
65
|
-
e += `${a}(${n[a].map(({ name: i, type: c }) => `${c} ${i}`).join(",")})`;
|
|
66
|
-
return e;
|
|
67
|
-
}
|
|
68
|
-
function u({ primaryType: o, types: n }, e = /* @__PURE__ */ new Set()) {
|
|
69
|
-
const t = o.match(/^\w*/u), r = t == null ? void 0 : t[0];
|
|
70
|
-
if (e.has(r) || n[r] === void 0)
|
|
71
|
-
return e;
|
|
72
|
-
e.add(r);
|
|
73
|
-
for (const a of n[r])
|
|
74
|
-
u({ primaryType: a.type, types: n }, e);
|
|
75
|
-
return e;
|
|
76
|
-
}
|
|
77
|
-
function y({ types: o, name: n, type: e, value: t }) {
|
|
78
|
-
if (o[e] !== void 0)
|
|
79
|
-
return [
|
|
80
|
-
{ type: "bytes32" },
|
|
81
|
-
s(m({ data: t, primaryType: e, types: o }))
|
|
82
|
-
];
|
|
83
|
-
if (e === "bytes")
|
|
84
|
-
return [{ type: "bytes32" }, s(t)];
|
|
85
|
-
if (e === "string")
|
|
86
|
-
return [{ type: "bytes32" }, s(p(t))];
|
|
87
|
-
if (e.lastIndexOf("]") === e.length - 1) {
|
|
88
|
-
const r = e.slice(0, e.lastIndexOf("[")), a = t.map((i) => y({
|
|
89
|
-
name: n,
|
|
90
|
-
type: r,
|
|
91
|
-
types: o,
|
|
92
|
-
value: i
|
|
93
|
-
}));
|
|
94
|
-
return [
|
|
95
|
-
{ type: "bytes32" },
|
|
96
|
-
s(d(a.map(([i]) => i), a.map(([, i]) => i)))
|
|
97
|
-
];
|
|
98
|
-
}
|
|
99
|
-
return [{ type: e }, t];
|
|
100
17
|
}
|
|
101
18
|
export {
|
|
102
|
-
|
|
103
|
-
l as hashDomain,
|
|
104
|
-
f as hashStruct,
|
|
105
|
-
k as hashTypedData
|
|
19
|
+
u as withTimeout
|
|
106
20
|
};
|
package/dist/index244.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index216.cjs"),t=require("./index245.cjs");function a(e,s){return r.keccak256(t.toPrefixedMessage(e),s)}exports.hashMessage=a;
|
package/dist/index244.js
CHANGED
|
@@ -1,67 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { size as y } from "./index87.js";
|
|
6
|
-
import { numberToHex as x } from "./index83.js";
|
|
7
|
-
import { integerRegex as P, bytesRegex as S } from "./index210.js";
|
|
8
|
-
function j(e) {
|
|
9
|
-
const { domain: n, message: g, primaryType: o, types: r } = e, f = (h, b) => {
|
|
10
|
-
for (const u of h) {
|
|
11
|
-
const { name: l, type: s } = u, t = b[l], a = s.match(P);
|
|
12
|
-
if (a && (typeof t == "number" || typeof t == "bigint")) {
|
|
13
|
-
const [I, i, v] = a;
|
|
14
|
-
x(t, {
|
|
15
|
-
signed: i === "int",
|
|
16
|
-
size: Number.parseInt(v, 10) / 8
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
if (s === "address" && typeof t == "string" && !T(t))
|
|
20
|
-
throw new w({ address: t });
|
|
21
|
-
const p = s.match(S);
|
|
22
|
-
if (p) {
|
|
23
|
-
const [I, i] = p;
|
|
24
|
-
if (i && y(t) !== Number.parseInt(i, 10))
|
|
25
|
-
throw new m({
|
|
26
|
-
expectedSize: Number.parseInt(i, 10),
|
|
27
|
-
givenSize: y(t)
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
const c = r[s];
|
|
31
|
-
c && (_(s), f(c, t));
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
if (r.EIP712Domain && n) {
|
|
35
|
-
if (typeof n != "object")
|
|
36
|
-
throw new E({ domain: n });
|
|
37
|
-
f(r.EIP712Domain, n);
|
|
38
|
-
}
|
|
39
|
-
if (o !== "EIP712Domain")
|
|
40
|
-
if (r[o])
|
|
41
|
-
f(r[o], g);
|
|
42
|
-
else
|
|
43
|
-
throw new z({ primaryType: o, types: r });
|
|
44
|
-
}
|
|
45
|
-
function F({ domain: e }) {
|
|
46
|
-
return [
|
|
47
|
-
typeof (e == null ? void 0 : e.name) == "string" && { name: "name", type: "string" },
|
|
48
|
-
(e == null ? void 0 : e.version) && { name: "version", type: "string" },
|
|
49
|
-
(typeof (e == null ? void 0 : e.chainId) == "number" || typeof (e == null ? void 0 : e.chainId) == "bigint") && {
|
|
50
|
-
name: "chainId",
|
|
51
|
-
type: "uint256"
|
|
52
|
-
},
|
|
53
|
-
(e == null ? void 0 : e.verifyingContract) && {
|
|
54
|
-
name: "verifyingContract",
|
|
55
|
-
type: "address"
|
|
56
|
-
},
|
|
57
|
-
(e == null ? void 0 : e.salt) && { name: "salt", type: "bytes32" }
|
|
58
|
-
].filter(Boolean);
|
|
59
|
-
}
|
|
60
|
-
function _(e) {
|
|
61
|
-
if (e === "address" || e === "bool" || e === "string" || e.startsWith("bytes") || e.startsWith("uint") || e.startsWith("int"))
|
|
62
|
-
throw new D({ type: e });
|
|
1
|
+
import { keccak256 as o } from "./index216.js";
|
|
2
|
+
import { toPrefixedMessage as t } from "./index245.js";
|
|
3
|
+
function f(e, r) {
|
|
4
|
+
return o(t(e), r);
|
|
63
5
|
}
|
|
64
6
|
export {
|
|
65
|
-
|
|
66
|
-
j as validateTypedData
|
|
7
|
+
f as hashMessage
|
|
67
8
|
};
|
package/dist/index245.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("./index175.cjs"),o=require("./index83.cjs"),s=require("./index90.cjs"),r=require("./index84.cjs");function c(e){const t=typeof e=="string"?r.stringToHex(e):typeof e.raw=="string"?e.raw:r.bytesToHex(e.raw),i=r.stringToHex(`${n.presignMessagePrefix}${s.size(t)}`);return o.concat([i,t])}exports.toPrefixedMessage=c;
|
package/dist/index245.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { presignMessagePrefix as e } from "./index175.js";
|
|
2
|
+
import { concat as n } from "./index83.js";
|
|
3
|
+
import { size as f } from "./index90.js";
|
|
4
|
+
import { stringToHex as o, bytesToHex as p } from "./index84.js";
|
|
5
|
+
function u(r) {
|
|
6
|
+
const t = typeof r == "string" ? o(r) : typeof r.raw == "string" ? r.raw : p(r.raw), i = o(`${e}${f(t)}`);
|
|
7
|
+
return n([i, t]);
|
|
6
8
|
}
|
|
7
9
|
export {
|
|
8
|
-
|
|
10
|
+
u as toPrefixedMessage
|
|
9
11
|
};
|
package/dist/index246.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 p=require("./index205.cjs"),D=require("./index83.cjs"),y=require("./index84.cjs"),s=require("./index216.cjs"),u=require("./index247.cjs");function b(a){const{domain:n={},message:e,primaryType:t}=a,o={EIP712Domain:u.getTypesForEIP712Domain({domain:n}),...a.types};u.validateTypedData({domain:n,message:e,primaryType:t,types:o});const c=["0x1901"];return n&&c.push(f({domain:n,types:o})),t!=="EIP712Domain"&&c.push(d({data:e,primaryType:t,types:o})),s.keccak256(D.concat(c))}function f({domain:a,types:n}){return d({data:a,primaryType:"EIP712Domain",types:n})}function d({data:a,primaryType:n,types:e}){const t=m({data:a,primaryType:n,types:e});return s.keccak256(t)}function m({data:a,primaryType:n,types:e}){const t=[{type:"bytes32"}],o=[l({primaryType:n,types:e})];for(const c of e[n]){const[r,i]=T({types:e,name:c.name,type:c.type,value:a[c.name]});t.push(r),o.push(i)}return p.encodeAbiParameters(t,o)}function l({primaryType:a,types:n}){const e=y.toHex(h({primaryType:a,types:n}));return s.keccak256(e)}function h({primaryType:a,types:n}){let e="";const t=k({primaryType:a,types:n});t.delete(a);const o=[a,...Array.from(t).sort()];for(const c of o)e+=`${c}(${n[c].map(({name:r,type:i})=>`${i} ${r}`).join(",")})`;return e}function k({primaryType:a,types:n},e=new Set){const t=a.match(/^\w*/u),o=t==null?void 0:t[0];if(e.has(o)||n[o]===void 0)return e;e.add(o);for(const c of n[o])k({primaryType:c.type,types:n},e);return e}function T({types:a,name:n,type:e,value:t}){if(a[e]!==void 0)return[{type:"bytes32"},s.keccak256(m({data:t,primaryType:e,types:a}))];if(e==="bytes")return[{type:"bytes32"},s.keccak256(t)];if(e==="string")return[{type:"bytes32"},s.keccak256(y.toHex(t))];if(e.lastIndexOf("]")===e.length-1){const o=e.slice(0,e.lastIndexOf("[")),c=t.map(r=>T({name:n,type:o,types:a,value:r}));return[{type:"bytes32"},s.keccak256(p.encodeAbiParameters(c.map(([r])=>r),c.map(([,r])=>r)))]}return[{type:e},t]}exports.encodeType=h;exports.hashDomain=f;exports.hashStruct=d;exports.hashTypedData=b;
|