@gardenfi/swap 0.1.3-beta.12 → 0.1.3-beta.14
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 +1 -1
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +2 -2
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +3 -3
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +12 -12
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +2 -2
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +1 -1
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +1 -1
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +1 -1
- package/dist/index110.cjs +2 -1
- package/dist/index110.js +57 -77
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +22 -3
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +31 -29
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +125 -113
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +56 -4
- package/dist/index115.cjs +2 -1
- package/dist/index115.js +118 -13
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +17 -11
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +8 -18
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +9 -57
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +11 -20
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +14 -14
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +72 -278
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +14 -573
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +17 -32
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +2 -4
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +2 -10
- package/dist/index126.cjs +4 -1
- package/dist/index126.js +194 -116
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +5 -61
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +32 -23
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +3 -36
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +9 -41
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +116 -58
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +58 -37
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +23 -8
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +36 -31
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +38 -33
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +58 -9
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +36 -25
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +9 -50
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +31 -70
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +36 -41
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +9 -77
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +28 -7
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +50 -6
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +70 -17
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +41 -8
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +77 -13
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +8 -7
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +5 -15
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +17 -46
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +29 -29
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +8 -13
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +13 -16
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +7 -13
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +15 -5
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +46 -35
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +13 -9
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +15 -7
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +13 -29
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +6 -10
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +32 -11
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +9 -12
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +8 -121
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +29 -82
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +10 -177
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +14 -44
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +12 -6
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +121 -14
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +82 -14
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +173 -99
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +41 -72
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +6 -89
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +14 -151
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +14 -138
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +97 -63
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +75 -23
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +84 -159
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +151 -6
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +138 -13
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +69 -19
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +23 -106
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +3 -3
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +161 -75
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +6 -9
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +13 -28
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +17 -88
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +107 -3
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +79 -2
- package/dist/index186.cjs +1 -2
- package/dist/index186.js +10 -3
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +29 -9
- package/dist/index188.cjs +1 -20
- package/dist/index188.js +89 -325
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +3 -14
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +16 -16
- package/dist/index190.cjs +2 -2
- package/dist/index190.js +3 -60
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +9 -2
- package/dist/index192.cjs +20 -1
- package/dist/index192.js +325 -6
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +14 -32
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +7 -21
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +32 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +21 -73
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +5 -5
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +73 -5
- package/dist/index199.cjs +1 -9
- package/dist/index199.js +5 -35
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +9 -2
- package/dist/index200.js +28 -113
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +1 -1
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +1 -1
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +4 -4
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +2 -2
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +1 -1
- package/dist/index207.cjs +1 -4
- package/dist/index207.js +2 -195
- package/dist/index208.cjs +3 -1
- package/dist/index208.js +452 -2
- package/dist/index209.cjs +1 -3
- package/dist/index209.js +19 -443
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +4 -4
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +153 -19
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +31 -154
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +27 -127
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +184 -31
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +4 -28
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +71 -53
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +14 -185
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +3 -4
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +13 -70
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +22 -19
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +3 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +27 -16
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +35 -22
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +8 -34
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +26 -3
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +27 -26
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +74 -35
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +6 -8
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +6 -25
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +31 -27
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +5 -76
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +34 -18
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +111 -8
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +48 -9
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +32 -11
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +8 -6
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +7 -6
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +16 -13
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +22 -32
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +105 -5
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +3 -38
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +5 -111
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +29 -47
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +19 -31
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +3 -8
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +17 -7
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +5 -16
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +8 -22
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +99 -100
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +65 -3
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +6 -5
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +26 -30
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +34 -20
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +16 -3
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +2 -18
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +10 -5
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +79 -8
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +3 -104
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +30 -62
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +115 -6
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +4 -28
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +14 -33
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +11 -16
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +17 -77
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +59 -2
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +20 -14
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +14 -19
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +283 -16
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +573 -10
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +41 -14
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +8 -23
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +30 -12
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +2 -10
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +13 -30
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +13 -2
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +4 -4
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +1 -1
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +126 -123
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +25 -41
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +7 -37
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +36 -14
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +15 -8
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +8 -7
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +10 -43
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +16 -320
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +21 -604
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +14 -110
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +13 -167
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +13 -300
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +9 -93
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +13 -54
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +23 -51
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +30 -43
- package/dist/index314.cjs +2 -1
- package/dist/index314.js +18 -15
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +14 -317
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +11 -59
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +12 -19
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +31 -27
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +115 -3
- package/dist/index320.cjs +1 -7
- package/dist/index320.js +95 -229
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +7 -48
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +7 -213
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +21 -76
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +15 -28
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +209 -71
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +43 -10
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +320 -16
- package/dist/index328.cjs +1 -1
- package/dist/index328.js +604 -21
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +110 -14
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +167 -13
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +300 -13
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +93 -9
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +54 -13
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +51 -23
- package/dist/index335.cjs +1 -1
- package/dist/index335.js +43 -30
- package/dist/index336.cjs +1 -2
- package/dist/index336.js +15 -18
- package/dist/index337.cjs +1 -1
- package/dist/index337.js +317 -14
- package/dist/index338.cjs +1 -1
- package/dist/index338.js +59 -11
- package/dist/index339.cjs +1 -1
- package/dist/index339.js +19 -12
- package/dist/index340.cjs +1 -1
- package/dist/index340.js +27 -31
- package/dist/index341.cjs +1 -1
- package/dist/index341.js +3 -115
- package/dist/index342.cjs +7 -1
- package/dist/index342.js +229 -95
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +48 -7
- package/dist/index344.cjs +1 -1
- package/dist/index344.js +213 -7
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +76 -21
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +28 -15
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +71 -209
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +1 -1
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +1 -1
- package/dist/index350.cjs +2 -1
- package/dist/index350.js +193 -4
- package/dist/index351.cjs +1 -2
- package/dist/index351.js +52 -168
- package/dist/index352.cjs +1 -1
- package/dist/index352.js +331 -65
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +149 -332
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +5 -161
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +5 -5
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +5 -5
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +50 -204
- package/dist/index360.cjs +1 -1
- package/dist/index360.js +204 -50
- package/dist/index362.cjs +1 -1
- package/dist/index362.js +137 -91
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +3 -28
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +129 -144
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +74 -350
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +2 -4
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +39 -137
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +655 -71
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +176 -30
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +94 -5
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +26 -273
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +148 -170
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +355 -10
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +70 -104
- package/dist/index375.cjs +1 -1
- package/dist/index375.js +31 -9
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +5 -133
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +272 -75
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +171 -2
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +10 -43
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +2 -2
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +99 -649
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +8 -176
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +22 -2
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +2 -22
- package/dist/index384.cjs +1 -1
- package/dist/index384.js +59 -106
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +110 -3
- package/dist/index386.cjs +1 -1
- package/dist/index386.js +3 -63
- package/dist/index387.cjs +1 -1
- package/dist/index387.js +2 -2
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +88 -12
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -58
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +12 -522
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +59 -30
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +522 -26
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +16 -12
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +11 -34
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +14 -16
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +37 -16
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +14 -17
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +17 -19
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +17 -42
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +15 -39
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +49 -29
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +46 -29
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +25 -19
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +27 -18
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +16 -14
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +4 -0
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +14 -24
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +28 -15
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +38 -14
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +13 -86
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +13 -13
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +3 -3
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +30 -10
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +14 -36
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +12 -41
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +37 -43
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +41 -24
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +41 -53
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +23 -26
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +54 -32
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +27 -14
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +9 -724
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +11 -521
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +18 -12
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +45 -11
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +40 -16
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +166 -40
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +726 -41
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +516 -166
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +1 -1
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +1 -1
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +1 -1
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +4 -4
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +12 -12
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +3 -3
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +3 -3
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +5 -5
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +2 -2
- package/dist/src/lib/store/swapStore.d.ts +2 -0
- package/package.json +5 -5
package/dist/index171.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("./index102.cjs"),y=require("./index246.cjs"),f=require("./index93.cjs");async function h(e,{address:s,message:r,factory:t,factoryData:a,signature:i,...o}){const c=y.hashMessage(r);return n.getAction(e,f.verifyHash,"verifyHash")({address:s,factory:t,factoryData:a,hash:c,signature:i,...o})}exports.verifyMessage=h;
|
package/dist/index171.js
CHANGED
|
@@ -1,154 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import { uninstallFilter as G } from "./index165.js";
|
|
15
|
-
function ct(t, _) {
|
|
16
|
-
const { abi: b, address: f, args: p, batch: h = !0, eventName: c, fromBlock: l, onError: u, onLogs: N, poll: L, pollingInterval: w = t.pollingInterval, strict: v } = _;
|
|
17
|
-
return (typeof L < "u" ? L : typeof l == "bigint" ? !0 : !(t.transport.type === "webSocket" || t.transport.type === "ipc" || t.transport.type === "fallback" && (t.transport.transports[0].config.type === "webSocket" || t.transport.transports[0].config.type === "ipc"))) ? (() => {
|
|
18
|
-
const m = v ?? !1, C = S([
|
|
19
|
-
"watchContractEvent",
|
|
20
|
-
f,
|
|
21
|
-
p,
|
|
22
|
-
h,
|
|
23
|
-
t.uid,
|
|
24
|
-
c,
|
|
25
|
-
w,
|
|
26
|
-
m,
|
|
27
|
-
l
|
|
28
|
-
]);
|
|
29
|
-
return D(C, { onLogs: N, onError: u }, (n) => {
|
|
30
|
-
let a;
|
|
31
|
-
l !== void 0 && (a = l - 1n);
|
|
32
|
-
let e, s = !1;
|
|
33
|
-
const k = R(async () => {
|
|
34
|
-
var d;
|
|
35
|
-
if (!s) {
|
|
36
|
-
try {
|
|
37
|
-
e = await g(t, U, "createContractEventFilter")({
|
|
38
|
-
abi: b,
|
|
39
|
-
address: f,
|
|
40
|
-
args: p,
|
|
41
|
-
eventName: c,
|
|
42
|
-
strict: m,
|
|
43
|
-
fromBlock: l
|
|
44
|
-
});
|
|
45
|
-
} catch {
|
|
46
|
-
}
|
|
47
|
-
s = !0;
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
try {
|
|
51
|
-
let r;
|
|
52
|
-
if (e)
|
|
53
|
-
r = await g(t, x, "getFilterChanges")({ filter: e });
|
|
54
|
-
else {
|
|
55
|
-
const o = await g(t, j, "getBlockNumber")({});
|
|
56
|
-
a && a < o ? r = await g(t, q, "getContractEvents")({
|
|
57
|
-
abi: b,
|
|
58
|
-
address: f,
|
|
59
|
-
args: p,
|
|
60
|
-
eventName: c,
|
|
61
|
-
fromBlock: a + 1n,
|
|
62
|
-
toBlock: o,
|
|
63
|
-
strict: m
|
|
64
|
-
}) : r = [], a = o;
|
|
65
|
-
}
|
|
66
|
-
if (r.length === 0)
|
|
67
|
-
return;
|
|
68
|
-
if (h)
|
|
69
|
-
n.onLogs(r);
|
|
70
|
-
else
|
|
71
|
-
for (const o of r)
|
|
72
|
-
n.onLogs([o]);
|
|
73
|
-
} catch (r) {
|
|
74
|
-
e && r instanceof z && (s = !1), (d = n.onError) == null || d.call(n, r);
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
emitOnBegin: !0,
|
|
78
|
-
interval: w
|
|
79
|
-
});
|
|
80
|
-
return async () => {
|
|
81
|
-
e && await g(t, G, "uninstallFilter")({ filter: e }), k();
|
|
82
|
-
};
|
|
83
|
-
});
|
|
84
|
-
})() : (() => {
|
|
85
|
-
const m = v ?? !1, C = S([
|
|
86
|
-
"watchContractEvent",
|
|
87
|
-
f,
|
|
88
|
-
p,
|
|
89
|
-
h,
|
|
90
|
-
t.uid,
|
|
91
|
-
c,
|
|
92
|
-
w,
|
|
93
|
-
m
|
|
94
|
-
]);
|
|
95
|
-
let n = !0, a = () => n = !1;
|
|
96
|
-
return D(C, { onLogs: N, onError: u }, (e) => ((async () => {
|
|
97
|
-
try {
|
|
98
|
-
const s = (() => {
|
|
99
|
-
if (t.transport.type === "fallback") {
|
|
100
|
-
const r = t.transport.transports.find((o) => o.config.type === "webSocket" || o.config.type === "ipc");
|
|
101
|
-
return r ? r.value : t.transport;
|
|
102
|
-
}
|
|
103
|
-
return t.transport;
|
|
104
|
-
})(), k = c ? O({
|
|
105
|
-
abi: b,
|
|
106
|
-
eventName: c,
|
|
107
|
-
args: p
|
|
108
|
-
}) : [], { unsubscribe: d } = await s.subscribe({
|
|
109
|
-
params: ["logs", { address: f, topics: k }],
|
|
110
|
-
onData(r) {
|
|
111
|
-
var I;
|
|
112
|
-
if (!n)
|
|
113
|
-
return;
|
|
114
|
-
const o = r.result;
|
|
115
|
-
try {
|
|
116
|
-
const { eventName: i, args: y } = A({
|
|
117
|
-
abi: b,
|
|
118
|
-
data: o.data,
|
|
119
|
-
topics: o.topics,
|
|
120
|
-
strict: v
|
|
121
|
-
}), E = F(o, {
|
|
122
|
-
args: y,
|
|
123
|
-
eventName: i
|
|
124
|
-
});
|
|
125
|
-
e.onLogs([E]);
|
|
126
|
-
} catch (i) {
|
|
127
|
-
let y, E;
|
|
128
|
-
if (i instanceof P || i instanceof T) {
|
|
129
|
-
if (v)
|
|
130
|
-
return;
|
|
131
|
-
y = i.abiItem.name, E = (I = i.abiItem.inputs) == null ? void 0 : I.some((B) => !("name" in B && B.name));
|
|
132
|
-
}
|
|
133
|
-
const M = F(o, {
|
|
134
|
-
args: E ? [] : {},
|
|
135
|
-
eventName: y
|
|
136
|
-
});
|
|
137
|
-
e.onLogs([M]);
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
onError(r) {
|
|
141
|
-
var o;
|
|
142
|
-
(o = e.onError) == null || o.call(e, r);
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
a = d, n || a();
|
|
146
|
-
} catch (s) {
|
|
147
|
-
u == null || u(s);
|
|
148
|
-
}
|
|
149
|
-
})(), () => a()));
|
|
150
|
-
})();
|
|
1
|
+
import { getAction as c } from "./index102.js";
|
|
2
|
+
import { hashMessage as h } from "./index246.js";
|
|
3
|
+
import { verifyHash as m } from "./index93.js";
|
|
4
|
+
async function g(r, { address: o, message: t, factory: a, factoryData: e, signature: s, ...f }) {
|
|
5
|
+
const i = h(t);
|
|
6
|
+
return c(r, m, "verifyHash")({
|
|
7
|
+
address: o,
|
|
8
|
+
factory: a,
|
|
9
|
+
factoryData: e,
|
|
10
|
+
hash: i,
|
|
11
|
+
signature: s,
|
|
12
|
+
...f
|
|
13
|
+
});
|
|
151
14
|
}
|
|
152
15
|
export {
|
|
153
|
-
|
|
16
|
+
g as verifyMessage
|
|
154
17
|
};
|
package/dist/index172.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 d=require("./index102.cjs"),h=require("./index248.cjs"),p=require("./index93.cjs");async function g(e,a){const{address:t,factory:r,factoryData:s,signature:y,message:i,primaryType:o,types:c,domain:n,...f}=a,u=h.hashTypedData({message:i,primaryType:o,types:c,domain:n});return d.getAction(e,p.verifyHash,"verifyHash")({address:t,factory:r,factoryData:s,hash:u,signature:y,...f})}exports.verifyTypedData=g;
|
package/dist/index172.js
CHANGED
|
@@ -1,141 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import { uninstallFilter as G } from "./index165.js";
|
|
15
|
-
function at(e, { address: b, args: g, batch: k = !0, event: c, events: v, fromBlock: u, onError: f, onLogs: w, poll: N, pollingInterval: F = e.pollingInterval, strict: L }) {
|
|
16
|
-
const M = typeof N < "u" ? N : typeof u == "bigint" ? !0 : !(e.transport.type === "webSocket" || e.transport.type === "ipc" || e.transport.type === "fallback" && (e.transport.transports[0].config.type === "webSocket" || e.transport.transports[0].config.type === "ipc")), I = L ?? !1;
|
|
17
|
-
return M ? (() => {
|
|
18
|
-
const m = R([
|
|
19
|
-
"watchEvent",
|
|
20
|
-
b,
|
|
21
|
-
g,
|
|
22
|
-
k,
|
|
23
|
-
e.uid,
|
|
24
|
-
c,
|
|
25
|
-
F,
|
|
26
|
-
u
|
|
27
|
-
]);
|
|
28
|
-
return O(m, { onLogs: w, onError: f }, (n) => {
|
|
29
|
-
let a;
|
|
30
|
-
u !== void 0 && (a = u - 1n);
|
|
31
|
-
let r, i = !1;
|
|
32
|
-
const h = P(async () => {
|
|
33
|
-
var o;
|
|
34
|
-
if (!i) {
|
|
35
|
-
try {
|
|
36
|
-
r = await l(e, U, "createEventFilter")({
|
|
37
|
-
address: b,
|
|
38
|
-
args: g,
|
|
39
|
-
event: c,
|
|
40
|
-
events: v,
|
|
41
|
-
strict: I,
|
|
42
|
-
fromBlock: u
|
|
43
|
-
});
|
|
44
|
-
} catch {
|
|
45
|
-
}
|
|
46
|
-
i = !0;
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
try {
|
|
50
|
-
let t;
|
|
51
|
-
if (r)
|
|
52
|
-
t = await l(e, q, "getFilterChanges")({ filter: r });
|
|
53
|
-
else {
|
|
54
|
-
const s = await l(e, j, "getBlockNumber")({});
|
|
55
|
-
a && a !== s ? t = await l(e, x, "getLogs")({
|
|
56
|
-
address: b,
|
|
57
|
-
args: g,
|
|
58
|
-
event: c,
|
|
59
|
-
events: v,
|
|
60
|
-
fromBlock: a + 1n,
|
|
61
|
-
toBlock: s
|
|
62
|
-
}) : t = [], a = s;
|
|
63
|
-
}
|
|
64
|
-
if (t.length === 0)
|
|
65
|
-
return;
|
|
66
|
-
if (k)
|
|
67
|
-
n.onLogs(t);
|
|
68
|
-
else
|
|
69
|
-
for (const s of t)
|
|
70
|
-
n.onLogs([s]);
|
|
71
|
-
} catch (t) {
|
|
72
|
-
r && t instanceof T && (i = !1), (o = n.onError) == null || o.call(n, t);
|
|
73
|
-
}
|
|
74
|
-
}, {
|
|
75
|
-
emitOnBegin: !0,
|
|
76
|
-
interval: F
|
|
77
|
-
});
|
|
78
|
-
return async () => {
|
|
79
|
-
r && await l(e, G, "uninstallFilter")({ filter: r }), h();
|
|
80
|
-
};
|
|
81
|
-
});
|
|
82
|
-
})() : (() => {
|
|
83
|
-
let m = !0, n = () => m = !1;
|
|
84
|
-
return (async () => {
|
|
85
|
-
try {
|
|
86
|
-
const a = (() => {
|
|
87
|
-
if (e.transport.type === "fallback") {
|
|
88
|
-
const o = e.transport.transports.find((t) => t.config.type === "webSocket" || t.config.type === "ipc");
|
|
89
|
-
return o ? o.value : e.transport;
|
|
90
|
-
}
|
|
91
|
-
return e.transport;
|
|
92
|
-
})(), r = v ?? (c ? [c] : void 0);
|
|
93
|
-
let i = [];
|
|
94
|
-
r && (i = [r.flatMap((t) => A({
|
|
95
|
-
abi: [t],
|
|
96
|
-
eventName: t.name,
|
|
97
|
-
args: g
|
|
98
|
-
}))], c && (i = i[0]));
|
|
99
|
-
const { unsubscribe: h } = await a.subscribe({
|
|
100
|
-
params: ["logs", { address: b, topics: i }],
|
|
101
|
-
onData(o) {
|
|
102
|
-
var s;
|
|
103
|
-
if (!m)
|
|
104
|
-
return;
|
|
105
|
-
const t = o.result;
|
|
106
|
-
try {
|
|
107
|
-
const { eventName: p, args: d } = z({
|
|
108
|
-
abi: r ?? [],
|
|
109
|
-
data: t.data,
|
|
110
|
-
topics: t.topics,
|
|
111
|
-
strict: I
|
|
112
|
-
}), y = E(t, { args: d, eventName: p });
|
|
113
|
-
w([y]);
|
|
114
|
-
} catch (p) {
|
|
115
|
-
let d, y;
|
|
116
|
-
if (p instanceof B || p instanceof C) {
|
|
117
|
-
if (L)
|
|
118
|
-
return;
|
|
119
|
-
d = p.abiItem.name, y = (s = p.abiItem.inputs) == null ? void 0 : s.some((D) => !("name" in D && D.name));
|
|
120
|
-
}
|
|
121
|
-
const S = E(t, {
|
|
122
|
-
args: y ? [] : {},
|
|
123
|
-
eventName: d
|
|
124
|
-
});
|
|
125
|
-
w([S]);
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
onError(o) {
|
|
129
|
-
f == null || f(o);
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
n = h, m || n();
|
|
133
|
-
} catch (a) {
|
|
134
|
-
f == null || f(a);
|
|
135
|
-
}
|
|
136
|
-
})(), () => n();
|
|
137
|
-
})();
|
|
1
|
+
import { getAction as p } from "./index102.js";
|
|
2
|
+
import { hashTypedData as h } from "./index248.js";
|
|
3
|
+
import { verifyHash as d } from "./index93.js";
|
|
4
|
+
async function v(a, t) {
|
|
5
|
+
const { address: r, factory: e, factoryData: o, signature: s, message: y, primaryType: f, types: i, domain: c, ...m } = t, n = h({ message: y, primaryType: f, types: i, domain: c });
|
|
6
|
+
return p(a, d, "verifyHash")({
|
|
7
|
+
address: r,
|
|
8
|
+
factory: e,
|
|
9
|
+
factoryData: o,
|
|
10
|
+
hash: n,
|
|
11
|
+
signature: s,
|
|
12
|
+
...m
|
|
13
|
+
});
|
|
138
14
|
}
|
|
139
15
|
export {
|
|
140
|
-
|
|
16
|
+
v as verifyTypedData
|
|
141
17
|
};
|
package/dist/index173.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 S=require("./index194.cjs"),k=require("./index115.cjs"),f=require("./index102.cjs"),$=require("./index301.cjs"),C=require("./index303.cjs"),B=require("./index243.cjs"),D=require("./index207.cjs"),P=require("./index149.cjs"),W=require("./index162.cjs"),y=require("./index165.cjs"),z=require("./index174.cjs");async function G(r,b){const{checkReplacement:A=!0,confirmations:c=1,hash:p,onReplaced:F,retryCount:h=6,retryDelay:N=({count:t})=>~~(1<<t)*200,timeout:w=18e4}=b,I=D.stringify(["waitForTransactionReceipt",r.uid,p]),j=(()=>{var t;return b.pollingInterval?b.pollingInterval:(t=r.chain)!=null&&t.experimental_preconfirmationTime?r.chain.experimental_preconfirmationTime:r.pollingInterval})();let s,i,e,l=!1,n,a;const{promise:E,resolve:x,reject:v}=C.withResolvers(),q=w?setTimeout(()=>{a==null||a(),n==null||n(),v(new k.WaitForTransactionReceiptTimeoutError({hash:p}))},w):void 0;return n=$.observe(I,{onReplaced:F,resolve:x,reject:v},async t=>{if(e=await f.getAction(r,y.getTransactionReceipt,"getTransactionReceipt")({hash:p}).catch(()=>{}),e&&c<=1){clearTimeout(q),t.resolve(e),n==null||n();return}a=f.getAction(r,z.watchBlockNumber,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:j,async onBlockNumber(M){const g=d=>{clearTimeout(q),a==null||a(),d(),n==null||n()};let T=M;if(!l)try{if(e){if(c>1&&(!e.blockNumber||T-e.blockNumber+1n<c))return;g(()=>t.resolve(e));return}if(A&&!s&&(l=!0,await B.withRetry(async()=>{s=await f.getAction(r,W.getTransaction,"getTransaction")({hash:p}),s.blockNumber&&(T=s.blockNumber)},{delay:N,retryCount:h}),l=!1),e=await f.getAction(r,y.getTransactionReceipt,"getTransactionReceipt")({hash:p}),c>1&&(!e.blockNumber||T-e.blockNumber+1n<c))return;g(()=>t.resolve(e))}catch(d){if(d instanceof k.TransactionNotFoundError||d instanceof k.TransactionReceiptNotFoundError){if(!s){l=!1;return}try{i=s,l=!0;const m=await B.withRetry(()=>f.getAction(r,P.getBlock,"getBlock")({blockNumber:T,includeTransactions:!0}),{delay:N,retryCount:h,shouldRetry:({error:u})=>u instanceof S.BlockNotFoundError});l=!1;const o=m.transactions.find(({from:u,nonce:O})=>u===i.from&&O===i.nonce);if(!o||(e=await f.getAction(r,y.getTransactionReceipt,"getTransactionReceipt")({hash:o.hash}),c>1&&(!e.blockNumber||T-e.blockNumber+1n<c)))return;let R="replaced";o.to===i.to&&o.value===i.value&&o.input===i.input?R="repriced":o.from===o.to&&o.value===0n&&(R="cancelled"),g(()=>{var u;(u=t.onReplaced)==null||u.call(t,{reason:R,replacedTransaction:i,transaction:o,transactionReceipt:e}),t.resolve(e)})}catch(m){g(()=>t.reject(m))}}else g(()=>t.reject(d))}}})}),E}exports.waitForTransactionReceipt=G;
|
package/dist/index173.js
CHANGED
|
@@ -1,72 +1,106 @@
|
|
|
1
|
+
import { BlockNotFoundError as M } from "./index194.js";
|
|
2
|
+
import { WaitForTransactionReceiptTimeoutError as O, TransactionNotFoundError as W, TransactionReceiptNotFoundError as q } from "./index115.js";
|
|
1
3
|
import { getAction as u } from "./index102.js";
|
|
2
|
-
import { observe as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
import { observe as z } from "./index301.js";
|
|
5
|
+
import { withResolvers as G } from "./index303.js";
|
|
6
|
+
import { withRetry as B } from "./index243.js";
|
|
7
|
+
import { stringify as H } from "./index207.js";
|
|
8
|
+
import { getBlock as J } from "./index149.js";
|
|
9
|
+
import { getTransaction as K } from "./index162.js";
|
|
10
|
+
import { getTransactionReceipt as y } from "./index165.js";
|
|
11
|
+
import { watchBlockNumber as L } from "./index174.js";
|
|
12
|
+
async function er(t, b) {
|
|
13
|
+
const {
|
|
14
|
+
checkReplacement: F = !0,
|
|
15
|
+
confirmations: a = 1,
|
|
16
|
+
hash: m,
|
|
17
|
+
onReplaced: I,
|
|
18
|
+
retryCount: N = 6,
|
|
19
|
+
retryDelay: R = ({ count: e }) => ~~(1 << e) * 200,
|
|
20
|
+
// exponential backoff
|
|
21
|
+
timeout: h = 18e4
|
|
22
|
+
} = b, E = H(["waitForTransactionReceipt", t.uid, m]), j = (() => {
|
|
23
|
+
var e;
|
|
24
|
+
return b.pollingInterval ? b.pollingInterval : (e = t.chain) != null && e.experimental_preconfirmationTime ? t.chain.experimental_preconfirmationTime : t.pollingInterval;
|
|
25
|
+
})();
|
|
26
|
+
let l, i, r, s = !1, o, c;
|
|
27
|
+
const { promise: x, resolve: A, reject: v } = G(), w = h ? setTimeout(() => {
|
|
28
|
+
c == null || c(), o == null || o(), v(new O({ hash: m }));
|
|
29
|
+
}, h) : void 0;
|
|
30
|
+
return o = z(E, { onReplaced: I, resolve: A, reject: v }, async (e) => {
|
|
31
|
+
if (r = await u(t, y, "getTransactionReceipt")({ hash: m }).catch(() => {
|
|
32
|
+
}), r && a <= 1) {
|
|
33
|
+
clearTimeout(w), e.resolve(r), o == null || o();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
c = u(t, L, "watchBlockNumber")({
|
|
37
|
+
emitMissed: !0,
|
|
38
|
+
emitOnBegin: !0,
|
|
39
|
+
poll: !0,
|
|
40
|
+
pollingInterval: j,
|
|
41
|
+
async onBlockNumber(C) {
|
|
42
|
+
const p = (T) => {
|
|
43
|
+
clearTimeout(w), c == null || c(), T(), o == null || o();
|
|
44
|
+
};
|
|
45
|
+
let d = C;
|
|
46
|
+
if (!s)
|
|
47
|
+
try {
|
|
48
|
+
if (r) {
|
|
49
|
+
if (a > 1 && (!r.blockNumber || d - r.blockNumber + 1n < a))
|
|
50
|
+
return;
|
|
51
|
+
p(() => e.resolve(r));
|
|
24
52
|
return;
|
|
25
|
-
} catch (c) {
|
|
26
|
-
throw a(), c;
|
|
27
53
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
for (const c of i)
|
|
35
|
-
t.onTransactions([c]);
|
|
36
|
-
} catch (i) {
|
|
37
|
-
(o = t.onError) == null || o.call(t, i);
|
|
38
|
-
}
|
|
39
|
-
}, {
|
|
40
|
-
emitOnBegin: !0,
|
|
41
|
-
interval: p
|
|
42
|
-
});
|
|
43
|
-
return async () => {
|
|
44
|
-
n && await u(e, w, "uninstallFilter")({ filter: n }), a();
|
|
45
|
-
};
|
|
46
|
-
});
|
|
47
|
-
})() : (() => {
|
|
48
|
-
let r = !0, t = () => r = !1;
|
|
49
|
-
return (async () => {
|
|
50
|
-
try {
|
|
51
|
-
const { unsubscribe: n } = await e.transport.subscribe({
|
|
52
|
-
params: ["newPendingTransactions"],
|
|
53
|
-
onData(a) {
|
|
54
|
-
if (!r)
|
|
54
|
+
if (F && !l && (s = !0, await B(async () => {
|
|
55
|
+
l = await u(t, K, "getTransaction")({ hash: m }), l.blockNumber && (d = l.blockNumber);
|
|
56
|
+
}, {
|
|
57
|
+
delay: R,
|
|
58
|
+
retryCount: N
|
|
59
|
+
}), s = !1), r = await u(t, y, "getTransactionReceipt")({ hash: m }), a > 1 && (!r.blockNumber || d - r.blockNumber + 1n < a))
|
|
55
60
|
return;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
p(() => e.resolve(r));
|
|
62
|
+
} catch (T) {
|
|
63
|
+
if (T instanceof W || T instanceof q) {
|
|
64
|
+
if (!l) {
|
|
65
|
+
s = !1;
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
try {
|
|
69
|
+
i = l, s = !0;
|
|
70
|
+
const k = await B(() => u(t, J, "getBlock")({
|
|
71
|
+
blockNumber: d,
|
|
72
|
+
includeTransactions: !0
|
|
73
|
+
}), {
|
|
74
|
+
delay: R,
|
|
75
|
+
retryCount: N,
|
|
76
|
+
shouldRetry: ({ error: f }) => f instanceof M
|
|
77
|
+
});
|
|
78
|
+
s = !1;
|
|
79
|
+
const n = k.transactions.find(({ from: f, nonce: D }) => f === i.from && D === i.nonce);
|
|
80
|
+
if (!n || (r = await u(t, y, "getTransactionReceipt")({
|
|
81
|
+
hash: n.hash
|
|
82
|
+
}), a > 1 && (!r.blockNumber || d - r.blockNumber + 1n < a)))
|
|
83
|
+
return;
|
|
84
|
+
let g = "replaced";
|
|
85
|
+
n.to === i.to && n.value === i.value && n.input === i.input ? g = "repriced" : n.from === n.to && n.value === 0n && (g = "cancelled"), p(() => {
|
|
86
|
+
var f;
|
|
87
|
+
(f = e.onReplaced) == null || f.call(e, {
|
|
88
|
+
reason: g,
|
|
89
|
+
replacedTransaction: i,
|
|
90
|
+
transaction: n,
|
|
91
|
+
transactionReceipt: r
|
|
92
|
+
}), e.resolve(r);
|
|
93
|
+
});
|
|
94
|
+
} catch (k) {
|
|
95
|
+
p(() => e.reject(k));
|
|
96
|
+
}
|
|
97
|
+
} else
|
|
98
|
+
p(() => e.reject(T));
|
|
61
99
|
}
|
|
62
|
-
});
|
|
63
|
-
t = n, r || t();
|
|
64
|
-
} catch (n) {
|
|
65
|
-
s == null || s(n);
|
|
66
100
|
}
|
|
67
|
-
})
|
|
68
|
-
})
|
|
101
|
+
});
|
|
102
|
+
}), x;
|
|
69
103
|
}
|
|
70
104
|
export {
|
|
71
|
-
|
|
105
|
+
er as waitForTransactionReceipt
|
|
72
106
|
};
|
package/dist/index174.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 v=require("./index72.cjs"),w=require("./index102.cjs"),N=require("./index301.cjs"),h=require("./index302.cjs"),g=require("./index207.cjs"),m=require("./index150.cjs");function q(r,{emitOnBegin:b=!1,emitMissed:f=!1,onBlockNumber:p,onError:a,poll:i,pollingInterval:k=r.pollingInterval}){const B=typeof i<"u"?i:!(r.transport.type==="webSocket"||r.transport.type==="ipc"||r.transport.type==="fallback"&&(r.transport.transports[0].config.type==="webSocket"||r.transport.transports[0].config.type==="ipc"));let e;return B?(()=>{const l=g.stringify(["watchBlockNumber",r.uid,b,f,k]);return N.observe(l,{onBlockNumber:p,onError:a},o=>h.poll(async()=>{var u;try{const t=await w.getAction(r,m.getBlockNumber,"getBlockNumber")({cacheTime:0});if(e!==void 0){if(t===e)return;if(t-e>1&&f)for(let s=e+1n;s<t;s++)o.onBlockNumber(s,e),e=s}(e===void 0||t>e)&&(o.onBlockNumber(t,e),e=t)}catch(t){(u=o.onError)==null||u.call(o,t)}},{emitOnBegin:b,interval:k}))})():(()=>{const l=g.stringify(["watchBlockNumber",r.uid,b,f]);return N.observe(l,{onBlockNumber:p,onError:a},o=>{let u=!0,t=()=>u=!1;return(async()=>{try{const s=(()=>{if(r.transport.type==="fallback"){const c=r.transport.transports.find(n=>n.config.type==="webSocket"||n.config.type==="ipc");return c?c.value:r.transport}return r.transport})(),{unsubscribe:d}=await s.subscribe({params:["newHeads"],onData(c){var y;if(!u)return;const n=v.hexToBigInt((y=c.result)==null?void 0:y.number);o.onBlockNumber(n,e),e=n},onError(c){var n;(n=o.onError)==null||n.call(o,c)}});t=d,u||t()}catch(s){a==null||a(s)}})(),()=>t()})})()}exports.watchBlockNumber=q;
|
package/dist/index174.js
CHANGED
|
@@ -1,26 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { hexToBigInt as w } from "./index72.js";
|
|
2
|
+
import { getAction as g } from "./index102.js";
|
|
3
|
+
import { observe as y } from "./index301.js";
|
|
4
|
+
import { poll as h } from "./index302.js";
|
|
5
|
+
import { stringify as N } from "./index207.js";
|
|
6
|
+
import { getBlockNumber as v } from "./index150.js";
|
|
7
|
+
function j(r, { emitOnBegin: b = !1, emitMissed: p = !1, onBlockNumber: l, onError: a, poll: k, pollingInterval: i = r.pollingInterval }) {
|
|
8
|
+
const B = typeof k < "u" ? k : !(r.transport.type === "webSocket" || r.transport.type === "ipc" || r.transport.type === "fallback" && (r.transport.transports[0].config.type === "webSocket" || r.transport.transports[0].config.type === "ipc"));
|
|
9
|
+
let t;
|
|
10
|
+
return B ? (() => {
|
|
11
|
+
const f = N([
|
|
12
|
+
"watchBlockNumber",
|
|
13
|
+
r.uid,
|
|
14
|
+
b,
|
|
15
|
+
p,
|
|
16
|
+
i
|
|
17
|
+
]);
|
|
18
|
+
return y(f, { onBlockNumber: l, onError: a }, (e) => h(async () => {
|
|
19
|
+
var u;
|
|
20
|
+
try {
|
|
21
|
+
const o = await g(r, v, "getBlockNumber")({ cacheTime: 0 });
|
|
22
|
+
if (t !== void 0) {
|
|
23
|
+
if (o === t)
|
|
24
|
+
return;
|
|
25
|
+
if (o - t > 1 && p)
|
|
26
|
+
for (let s = t + 1n; s < o; s++)
|
|
27
|
+
e.onBlockNumber(s, t), t = s;
|
|
28
|
+
}
|
|
29
|
+
(t === void 0 || o > t) && (e.onBlockNumber(o, t), t = o);
|
|
30
|
+
} catch (o) {
|
|
31
|
+
(u = e.onError) == null || u.call(e, o);
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
emitOnBegin: b,
|
|
35
|
+
interval: i
|
|
36
|
+
}));
|
|
37
|
+
})() : (() => {
|
|
38
|
+
const f = N([
|
|
39
|
+
"watchBlockNumber",
|
|
40
|
+
r.uid,
|
|
41
|
+
b,
|
|
42
|
+
p
|
|
43
|
+
]);
|
|
44
|
+
return y(f, { onBlockNumber: l, onError: a }, (e) => {
|
|
45
|
+
let u = !0, o = () => u = !1;
|
|
46
|
+
return (async () => {
|
|
47
|
+
try {
|
|
48
|
+
const s = (() => {
|
|
49
|
+
if (r.transport.type === "fallback") {
|
|
50
|
+
const c = r.transport.transports.find((n) => n.config.type === "webSocket" || n.config.type === "ipc");
|
|
51
|
+
return c ? c.value : r.transport;
|
|
52
|
+
}
|
|
53
|
+
return r.transport;
|
|
54
|
+
})(), { unsubscribe: d } = await s.subscribe({
|
|
55
|
+
params: ["newHeads"],
|
|
56
|
+
onData(c) {
|
|
57
|
+
var m;
|
|
58
|
+
if (!u)
|
|
59
|
+
return;
|
|
60
|
+
const n = w((m = c.result) == null ? void 0 : m.number);
|
|
61
|
+
e.onBlockNumber(n, t), t = n;
|
|
62
|
+
},
|
|
63
|
+
onError(c) {
|
|
64
|
+
var n;
|
|
65
|
+
(n = e.onError) == null || n.call(e, c);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
o = d, u || o();
|
|
69
|
+
} catch (s) {
|
|
70
|
+
a == null || a(s);
|
|
71
|
+
}
|
|
72
|
+
})(), () => o();
|
|
73
|
+
});
|
|
74
|
+
})();
|
|
23
75
|
}
|
|
24
76
|
export {
|
|
25
|
-
|
|
77
|
+
j as watchBlockNumber
|
|
26
78
|
};
|