@gardenfi/swap 0.1.3-beta.15 → 0.1.3-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +3 -3
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +2 -2
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +2 -2
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +7 -7
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +2 -2
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -1
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +76 -37
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +3 -34
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +32 -3
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +115 -9
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +4 -117
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +14 -60
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +11 -24
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +17 -35
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +58 -41
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +19 -57
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +14 -41
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +283 -8
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +569 -27
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +32 -35
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +3 -9
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +8 -28
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +114 -48
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +58 -67
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +20 -37
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +32 -73
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +40 -7
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +58 -6
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +40 -17
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +9 -8
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +31 -13
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +36 -7
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +8 -15
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +25 -42
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +50 -13
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +70 -16
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +41 -13
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +77 -6
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +7 -34
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +5 -8
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +17 -8
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +8 -29
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +13 -10
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +7 -14
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +16 -12
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +45 -120
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +13 -82
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +16 -177
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +13 -44
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +5 -5
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +34 -13
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +8 -13
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +8 -103
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +28 -74
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +10 -89
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +14 -151
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +12 -138
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +116 -64
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +82 -23
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +174 -161
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +44 -6
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +6 -13
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +14 -19
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +14 -106
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +103 -78
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +74 -8
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +87 -26
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +146 -85
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +139 -3
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +70 -2
- package/dist/index176.cjs +1 -2
- package/dist/index176.js +24 -3
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +165 -9
- package/dist/index178.cjs +1 -20
- package/dist/index178.js +6 -326
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +13 -13
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +3 -3
- package/dist/index180.cjs +1 -2
- package/dist/index180.js +19 -59
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +107 -2
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +77 -6
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +10 -32
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +25 -18
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +90 -5
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +3 -74
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +2 -6
- package/dist/index188.cjs +2 -1
- package/dist/index188.js +3 -6
- package/dist/index189.cjs +1 -9
- package/dist/index189.js +9 -36
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +18 -18
- package/dist/index190.cjs +20 -2
- package/dist/index190.js +296 -90
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +14 -3
- package/dist/index192.cjs +2 -1
- package/dist/index192.js +56 -15
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +2 -34
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +6 -34
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +32 -24
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +20 -7
- package/dist/index197.cjs +1 -4
- package/dist/index197.js +5 -194
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +74 -2
- package/dist/index199.cjs +1 -3
- package/dist/index199.js +5 -451
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +5 -27
- package/dist/index201.cjs +9 -1
- package/dist/index201.js +28 -154
- package/dist/index202.cjs +2 -1
- package/dist/index202.js +119 -126
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +3 -39
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +16 -25
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +29 -51
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +33 -189
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +24 -4
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +6 -71
- package/dist/index209.cjs +4 -1
- package/dist/index209.js +188 -14
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +4 -4
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +2 -3
- package/dist/index211.cjs +3 -1
- package/dist/index211.js +451 -16
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +26 -22
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +158 -31
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +128 -3
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +38 -27
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +26 -35
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +55 -8
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +186 -20
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +4 -29
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +70 -72
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +17 -18
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +3 -9
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +16 -10
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +23 -11
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +34 -6
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +3 -7
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +27 -13
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +35 -31
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +9 -5
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +23 -35
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +27 -110
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +73 -47
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +20 -31
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +8 -8
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +10 -7
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +11 -16
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +6 -22
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +6 -104
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +14 -3
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +32 -5
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +5 -32
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +37 -20
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +111 -3
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +49 -17
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +32 -5
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +8 -8
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +7 -103
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +15 -63
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +22 -6
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +102 -25
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +3 -35
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +5 -16
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +29 -76
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +21 -2
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +3 -14
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +17 -18
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +5 -17
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +8 -10
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +100 -76
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +65 -3
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +6 -32
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +26 -114
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +35 -4
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +16 -15
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +77 -10
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +2 -19
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +14 -58
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +17 -19
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +18 -14
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +10 -284
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +37 -570
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +1 -1
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +2 -2
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +2 -2
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +2 -2
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +1 -1
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +1 -1
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +2 -2
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +2 -2
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +2 -2
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +1 -1
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +1 -1
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +1 -1
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +1 -1
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +42 -12
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +317 -30
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +599 -109
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +109 -103
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +167 -6
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +302 -7
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +93 -26
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +54 -14
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +49 -210
- package/dist/index328.cjs +1 -1
- package/dist/index328.js +43 -41
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +15 -320
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +303 -591
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +59 -109
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +19 -167
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +27 -299
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +3 -93
- package/dist/index335.cjs +7 -1
- package/dist/index335.js +235 -54
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +48 -54
- package/dist/index337.cjs +1 -1
- package/dist/index337.js +206 -38
- package/dist/index338.cjs +1 -1
- package/dist/index338.js +80 -14
- package/dist/index339.cjs +1 -1
- package/dist/index339.js +23 -311
- package/dist/index340.cjs +1 -1
- package/dist/index340.js +73 -56
- package/dist/index341.cjs +1 -1
- package/dist/index341.js +12 -19
- package/dist/index342.cjs +1 -1
- package/dist/index342.js +100 -26
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +33 -3
- package/dist/index344.cjs +1 -7
- package/dist/index344.js +107 -229
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +7 -48
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +7 -213
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +21 -76
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +15 -28
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +209 -71
- package/dist/index350.cjs +1 -1
- package/dist/index350.js +1 -1
- package/dist/index352.cjs +1 -2
- package/dist/index352.js +4 -193
- package/dist/index353.cjs +2 -1
- package/dist/index353.js +168 -52
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +65 -331
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +332 -149
- package/dist/index356.cjs +1 -1
- package/dist/index356.js +161 -5
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +5 -5
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +2 -2
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +1 -1
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +88 -72
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +29 -2
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +147 -41
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +341 -644
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +70 -174
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +31 -94
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +5 -28
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +270 -143
- package/dist/index375.cjs +1 -1
- package/dist/index375.js +170 -354
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +10 -74
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +105 -29
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +9 -5
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +75 -272
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +2 -2
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +2 -171
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +43 -10
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +649 -99
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +176 -8
- package/dist/index386.cjs +1 -1
- package/dist/index386.js +1 -1
- package/dist/index389.cjs +1 -1
- package/dist/index389.js +2 -2
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +83 -24
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +11 -15
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +24 -103
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +18 -12
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +107 -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 +12 -35
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +14 -16
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +38 -17
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +15 -18
- 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 +26 -20
- 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/index60.cjs +1 -1
- package/dist/index60.js +14 -24
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +17 -34
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +19 -33
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +45 -15
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +52 -14
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +13 -86
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +13 -13
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +17 -32
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +9 -14
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +32 -17
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +14 -9
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +10 -10
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +15 -15
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +1 -1
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +1 -1
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +3 -3
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +9 -9
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +1 -1
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +1 -1
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +1 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +13 -13
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +2 -2
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +2 -2
- package/dist/src/lib/store/swapStore.d.ts +1 -1
- package/package.json +5 -5
package/dist/index342.js
CHANGED
|
@@ -1,32 +1,106 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { HashMD as D, SHA256_IV as b, Chi as g, Maj as p } from "./index379.js";
|
|
2
|
+
import { createHasher as u, clean as C, rotr as i } from "./index344.js";
|
|
3
|
+
const B = /* @__PURE__ */ Uint32Array.from([
|
|
4
|
+
1116352408,
|
|
5
|
+
1899447441,
|
|
6
|
+
3049323471,
|
|
7
|
+
3921009573,
|
|
8
|
+
961987163,
|
|
9
|
+
1508970993,
|
|
10
|
+
2453635748,
|
|
11
|
+
2870763221,
|
|
12
|
+
3624381080,
|
|
13
|
+
310598401,
|
|
14
|
+
607225278,
|
|
15
|
+
1426881987,
|
|
16
|
+
1925078388,
|
|
17
|
+
2162078206,
|
|
18
|
+
2614888103,
|
|
19
|
+
3248222580,
|
|
20
|
+
3835390401,
|
|
21
|
+
4022224774,
|
|
22
|
+
264347078,
|
|
23
|
+
604807628,
|
|
24
|
+
770255983,
|
|
25
|
+
1249150122,
|
|
26
|
+
1555081692,
|
|
27
|
+
1996064986,
|
|
28
|
+
2554220882,
|
|
29
|
+
2821834349,
|
|
30
|
+
2952996808,
|
|
31
|
+
3210313671,
|
|
32
|
+
3336571891,
|
|
33
|
+
3584528711,
|
|
34
|
+
113926993,
|
|
35
|
+
338241895,
|
|
36
|
+
666307205,
|
|
37
|
+
773529912,
|
|
38
|
+
1294757372,
|
|
39
|
+
1396182291,
|
|
40
|
+
1695183700,
|
|
41
|
+
1986661051,
|
|
42
|
+
2177026350,
|
|
43
|
+
2456956037,
|
|
44
|
+
2730485921,
|
|
45
|
+
2820302411,
|
|
46
|
+
3259730800,
|
|
47
|
+
3345764771,
|
|
48
|
+
3516065817,
|
|
49
|
+
3600352804,
|
|
50
|
+
4094571909,
|
|
51
|
+
275423344,
|
|
52
|
+
430227734,
|
|
53
|
+
506948616,
|
|
54
|
+
659060556,
|
|
55
|
+
883997877,
|
|
56
|
+
958139571,
|
|
57
|
+
1322822218,
|
|
58
|
+
1537002063,
|
|
59
|
+
1747873779,
|
|
60
|
+
1955562222,
|
|
61
|
+
2024104815,
|
|
62
|
+
2227730452,
|
|
63
|
+
2361852424,
|
|
64
|
+
2428436474,
|
|
65
|
+
2756734187,
|
|
66
|
+
3204031479,
|
|
67
|
+
3329325298
|
|
68
|
+
]), h = /* @__PURE__ */ new Uint32Array(64);
|
|
69
|
+
class E extends D {
|
|
70
|
+
constructor(o = 32) {
|
|
71
|
+
super(64, o, 8, !1), this.A = b[0] | 0, this.B = b[1] | 0, this.C = b[2] | 0, this.D = b[3] | 0, this.E = b[4] | 0, this.F = b[5] | 0, this.G = b[6] | 0, this.H = b[7] | 0;
|
|
14
72
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
73
|
+
get() {
|
|
74
|
+
const { A: o, B: r, C: t, D: s, E: a, F: f, G: c, H: e } = this;
|
|
75
|
+
return [o, r, t, s, a, f, c, e];
|
|
76
|
+
}
|
|
77
|
+
// prettier-ignore
|
|
78
|
+
set(o, r, t, s, a, f, c, e) {
|
|
79
|
+
this.A = o | 0, this.B = r | 0, this.C = t | 0, this.D = s | 0, this.E = a | 0, this.F = f | 0, this.G = c | 0, this.H = e | 0;
|
|
80
|
+
}
|
|
81
|
+
process(o, r) {
|
|
82
|
+
for (let x = 0; x < 16; x++, r += 4)
|
|
83
|
+
h[x] = o.getUint32(r, !1);
|
|
84
|
+
for (let x = 16; x < 64; x++) {
|
|
85
|
+
const H = h[x - 15], d = h[x - 2], m = i(H, 7) ^ i(H, 18) ^ H >>> 3, l = i(d, 17) ^ i(d, 19) ^ d >>> 10;
|
|
86
|
+
h[x] = l + h[x - 7] + m + h[x - 16] | 0;
|
|
24
87
|
}
|
|
25
|
-
t
|
|
88
|
+
let { A: t, B: s, C: a, D: f, E: c, F: e, G: n, H: A } = this;
|
|
89
|
+
for (let x = 0; x < 64; x++) {
|
|
90
|
+
const H = i(c, 6) ^ i(c, 11) ^ i(c, 25), d = A + H + g(c, e, n) + B[x] + h[x] | 0, l = (i(t, 2) ^ i(t, 13) ^ i(t, 22)) + p(t, s, a) | 0;
|
|
91
|
+
A = n, n = e, e = c, c = f + d | 0, f = a, a = s, s = t, t = d + l | 0;
|
|
92
|
+
}
|
|
93
|
+
t = t + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, f = f + this.D | 0, c = c + this.E | 0, e = e + this.F | 0, n = n + this.G | 0, A = A + this.H | 0, this.set(t, s, a, f, c, e, n, A);
|
|
94
|
+
}
|
|
95
|
+
roundClean() {
|
|
96
|
+
C(h);
|
|
97
|
+
}
|
|
98
|
+
destroy() {
|
|
99
|
+
this.set(0, 0, 0, 0, 0, 0, 0, 0), C(this.buffer);
|
|
26
100
|
}
|
|
27
|
-
return n.push(t.trim()), n;
|
|
28
101
|
}
|
|
102
|
+
const y = /* @__PURE__ */ u(() => new E());
|
|
29
103
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
104
|
+
E as SHA256,
|
|
105
|
+
y as sha256
|
|
32
106
|
};
|
package/dist/index343.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=BigInt(2**32-1),i=BigInt(32);function d(r,o=!1){return o?{h:Number(r&c),l:Number(r>>i&c)}:{h:Number(r>>i&c)|0,l:Number(r&c)|0}}function a(r,o=!1){const t=r.length;let n=new Uint32Array(t),l=new Uint32Array(t);for(let e=0;e<t;e++){const{h:s,l:u}=d(r[e],o);[n[e],l[e]]=[s,u]}return[n,l]}const B=(r,o,t)=>r>>>t|o<<32-t,H=(r,o,t)=>r<<32-t|o>>>t,L=(r,o,t)=>r<<64-t|o>>>t-32,S=(r,o,t)=>r>>>t-32|o<<64-t,f=(r,o)=>o,g=(r,o)=>r,h=(r,o,t)=>r<<t|o>>>32-t,m=(r,o,t)=>o<<t|r>>>32-t,b=(r,o,t)=>o<<t-32|r>>>64-t,A=(r,o,t)=>r<<t-32|o>>>64-t;function y(r,o,t,n){const l=(o>>>0)+(n>>>0);return{h:r+t+(l/2**32|0)|0,l:l|0}}const N=(r,o,t)=>(r>>>0)+(o>>>0)+(t>>>0),_=(r,o,t,n)=>o+t+n+(r/2**32|0)|0;exports.add=y;exports.add3H=_;exports.add3L=N;exports.fromBig=d;exports.rotlBH=b;exports.rotlBL=A;exports.rotlSH=h;exports.rotlSL=m;exports.rotr32H=f;exports.rotr32L=g;exports.rotrBH=L;exports.rotrBL=S;exports.rotrSH=B;exports.rotrSL=H;exports.split=a;
|
package/dist/index343.js
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
const l = /* @__PURE__ */ BigInt(4294967295), i = /* @__PURE__ */ BigInt(32);
|
|
2
|
+
function f(r, n = !1) {
|
|
3
|
+
return n ? { h: Number(r & l), l: Number(r >> i & l) } : { h: Number(r >> i & l) | 0, l: Number(r & l) | 0 };
|
|
3
4
|
}
|
|
5
|
+
function a(r, n = !1) {
|
|
6
|
+
const t = r.length;
|
|
7
|
+
let o = new Uint32Array(t), c = new Uint32Array(t);
|
|
8
|
+
for (let e = 0; e < t; e++) {
|
|
9
|
+
const { h: s, l: u } = f(r[e], n);
|
|
10
|
+
[o[e], c[e]] = [s, u];
|
|
11
|
+
}
|
|
12
|
+
return [o, c];
|
|
13
|
+
}
|
|
14
|
+
const h = (r, n, t) => r >>> t | n << 32 - t, B = (r, n, t) => r << 32 - t | n >>> t, d = (r, n, t) => r << 64 - t | n >>> t - 32, H = (r, n, t) => r >>> t - 32 | n << 64 - t, L = (r, n) => n, m = (r, n) => r, A = (r, n, t) => r << t | n >>> 32 - t, S = (r, n, t) => n << t | r >>> 32 - t, b = (r, n, t) => n << t - 32 | r >>> 64 - t, g = (r, n, t) => r << t - 32 | n >>> 64 - t;
|
|
15
|
+
function N(r, n, t, o) {
|
|
16
|
+
const c = (n >>> 0) + (o >>> 0);
|
|
17
|
+
return { h: r + t + (c / 2 ** 32 | 0) | 0, l: c | 0 };
|
|
18
|
+
}
|
|
19
|
+
const _ = (r, n, t) => (r >>> 0) + (n >>> 0) + (t >>> 0), U = (r, n, t, o) => n + t + o + (r / 2 ** 32 | 0) | 0;
|
|
4
20
|
export {
|
|
5
|
-
|
|
21
|
+
N as add,
|
|
22
|
+
U as add3H,
|
|
23
|
+
_ as add3L,
|
|
24
|
+
f as fromBig,
|
|
25
|
+
b as rotlBH,
|
|
26
|
+
g as rotlBL,
|
|
27
|
+
A as rotlSH,
|
|
28
|
+
S as rotlSL,
|
|
29
|
+
L as rotr32H,
|
|
30
|
+
m as rotr32L,
|
|
31
|
+
d as rotrBH,
|
|
32
|
+
H as rotrBL,
|
|
33
|
+
h as rotrSH,
|
|
34
|
+
B as rotrSL,
|
|
35
|
+
a as split
|
|
6
36
|
};
|
package/dist/index344.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
2
|
-
|
|
3
|
-
Keys:
|
|
4
|
-
${String(e.keys)}
|
|
5
|
-
|
|
6
|
-
Values:
|
|
7
|
-
${String(c)}`);u(e);for(let n=0;n<e.callbacks.length;n++){const a=c[n];a instanceof Error?e.callbacks[n].reject(a):e.callbacks[n].resolve(a)}}).catch(c=>{h(t,e,c)})}function h(t,e,r){u(e);for(let c=0;c<e.keys.length;c++)t.clear(e.keys[c]),e.callbacks[c].reject(r)}function u(t){if(t.cacheHits)for(let e=0;e<t.cacheHits.length;e++)t.cacheHits[e]()}function g(t){if(!(!t||t.batch!==!1))return 1;const r=t&&t.maxBatchSize;if(r===void 0)return 1/0;if(typeof r!="number"||r<1)throw new TypeError(`maxBatchSize must be a positive number: ${r}`);return r}function w(t){const e=t&&t.batchScheduleFn;if(e===void 0)return d;if(typeof e!="function")throw new TypeError(`batchScheduleFn must be a function: ${e}`);return e}function b(t){const e=t&&t.cacheKeyFn;if(e===void 0)return r=>r;if(typeof e!="function")throw new TypeError(`cacheKeyFn must be a function: ${e}`);return e}function P(t){if(!(!t||t.cache!==!1))return null;const r=t&&t.cacheMap;if(r===void 0)return new Map;if(r!==null){const n=["get","set","delete","clear"].filter(a=>r&&typeof r[a]!="function");if(n.length!==0)throw new TypeError("Custom cacheMap missing methods: "+n.join(", "))}return r}function S(t){return t&&t.name?t.name:null}function l(t){return typeof t=="object"&&t!==null&&"length"in t&&typeof t.length=="number"&&(t.length===0||t.length>0&&Object.prototype.hasOwnProperty.call(t,t.length-1))}exports.DataLoader=y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index380.cjs");/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function p(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function u(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function f(t,...e){if(!p(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function h(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");u(t.outputLen),u(t.blockLen)}function g(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function b(t,e){f(t);const r=e.outputLen;if(t.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}function d(t){return new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4))}function m(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function B(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function E(t,e){return t<<32-e|t>>>e}const c=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function s(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const x=c?t=>t:t=>s(t);function l(t){for(let e=0;e<t.length;e++)t[e]=s(t[e]);return t}const L=c?t=>t:l;function w(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function a(t){return typeof t=="string"&&(t=w(t)),f(t),t}function A(...t){let e=0;for(let n=0;n<t.length;n++){const o=t[n];f(o),e+=o.length}const r=new Uint8Array(e);for(let n=0,o=0;n<t.length;n++){const y=t[n];r.set(y,o),o+=y.length}return r}class U{}function H(t){const e=n=>t().update(a(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function S(t){const e=(n,o)=>t(o).update(a(n)).digest(),r=t({});return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=n=>t(n),e}function V(t=32){if(i.crypto&&typeof i.crypto.getRandomValues=="function")return i.crypto.getRandomValues(new Uint8Array(t));if(i.crypto&&typeof i.crypto.randomBytes=="function")return Uint8Array.from(i.crypto.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}exports.Hash=U;exports.abytes=f;exports.aexists=g;exports.ahash=h;exports.anumber=u;exports.aoutput=b;exports.byteSwap=s;exports.byteSwap32=l;exports.clean=m;exports.concatBytes=A;exports.createHasher=H;exports.createOptHasher=S;exports.createView=B;exports.isBytes=p;exports.isLE=c;exports.randomBytes=V;exports.rotr=E;exports.swap32IfBE=L;exports.swap8IfBE=x;exports.toBytes=a;exports.u32=d;exports.utf8ToBytes=w;
|
package/dist/index344.js
CHANGED
|
@@ -1,240 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but got: ${e}.`
|
|
6
|
-
);
|
|
7
|
-
this._batchLoadFn = e, this._maxBatchSize = p(c), this._batchScheduleFn = w(c), this._cacheKeyFn = g(c), this._cacheMap = b(c), this._batch = null, this.name = P(c);
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Loads a key, returning a `Promise` for the value represented by that key.
|
|
11
|
-
*/
|
|
12
|
-
load(e) {
|
|
13
|
-
if (e == null)
|
|
14
|
-
throw new TypeError(
|
|
15
|
-
`The loader.load() function must be called with a value, but got: ${String(e)}.`
|
|
16
|
-
);
|
|
17
|
-
const c = d(this), r = this._cacheMap;
|
|
18
|
-
let n;
|
|
19
|
-
if (r) {
|
|
20
|
-
n = this._cacheKeyFn(e);
|
|
21
|
-
const i = r.get(n);
|
|
22
|
-
if (i) {
|
|
23
|
-
const s = c.cacheHits || (c.cacheHits = []);
|
|
24
|
-
return new Promise((f) => {
|
|
25
|
-
s.push(() => {
|
|
26
|
-
f(i);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
c.keys.push(e);
|
|
32
|
-
const a = new Promise((i, s) => {
|
|
33
|
-
c.callbacks.push({ resolve: i, reject: s });
|
|
34
|
-
});
|
|
35
|
-
return r && r.set(n, a), a;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Loads multiple keys, promising an array of values:
|
|
39
|
-
*
|
|
40
|
-
* var [ a, b ] = await myLoader.loadMany([ 'a', 'b' ]);
|
|
41
|
-
*
|
|
42
|
-
* This is similar to the more verbose:
|
|
43
|
-
*
|
|
44
|
-
* var [ a, b ] = await Promise.all([
|
|
45
|
-
* myLoader.load('a'),
|
|
46
|
-
* myLoader.load('b')
|
|
47
|
-
* ]);
|
|
48
|
-
*
|
|
49
|
-
* However it is different in the case where any load fails. Where
|
|
50
|
-
* Promise.all() would reject, loadMany() always resolves, however each result
|
|
51
|
-
* is either a value or an Error instance.
|
|
52
|
-
*
|
|
53
|
-
* var [ a, b, c ] = await myLoader.loadMany([ 'a', 'b', 'badkey' ]);
|
|
54
|
-
* // c instanceof Error
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
loadMany(e) {
|
|
58
|
-
if (!l(e))
|
|
59
|
-
throw new TypeError(
|
|
60
|
-
`The loader.loadMany() function must be called with Array<key>, but got: ${e}.`
|
|
61
|
-
);
|
|
62
|
-
const c = [];
|
|
63
|
-
for (let r = 0; r < e.length; r++)
|
|
64
|
-
c.push(this.load(e[r]).catch((n) => n));
|
|
65
|
-
return Promise.all(c);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Clears the value at `key` from the cache, if it exists. Returns itself for
|
|
69
|
-
* method chaining.
|
|
70
|
-
*/
|
|
71
|
-
clear(e) {
|
|
72
|
-
const c = this._cacheMap;
|
|
73
|
-
if (c) {
|
|
74
|
-
const r = this._cacheKeyFn(e);
|
|
75
|
-
c.delete(r);
|
|
76
|
-
}
|
|
77
|
-
return this;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Clears the entire cache. To be used when some event results in unknown
|
|
81
|
-
* invalidations across this particular `DataLoader`. Returns itself for
|
|
82
|
-
* method chaining.
|
|
83
|
-
*/
|
|
84
|
-
clearAll() {
|
|
85
|
-
const e = this._cacheMap;
|
|
86
|
-
return e && e.clear(), this;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Adds the provided key and value to the cache. If the key already
|
|
90
|
-
* exists, no change is made. Returns itself for method chaining.
|
|
91
|
-
*
|
|
92
|
-
* To prime the cache with an error at a key, provide an Error instance.
|
|
93
|
-
*/
|
|
94
|
-
prime(e, c) {
|
|
95
|
-
const r = this._cacheMap;
|
|
96
|
-
if (r) {
|
|
97
|
-
const n = this._cacheKeyFn(e);
|
|
98
|
-
if (r.get(n) === void 0) {
|
|
99
|
-
let a;
|
|
100
|
-
c instanceof Error ? (a = Promise.reject(c), a.catch(() => {
|
|
101
|
-
})) : a = Promise.resolve(c), r.set(n, a);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return this;
|
|
105
|
-
}
|
|
1
|
+
import { crypto as f } from "./index380.js";
|
|
2
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
3
|
+
function p(t) {
|
|
4
|
+
return t instanceof Uint8Array || ArrayBuffer.isView(t) && t.constructor.name === "Uint8Array";
|
|
106
5
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
o || (o = Promise.resolve()), o.then(() => {
|
|
111
|
-
process.nextTick(t);
|
|
112
|
-
});
|
|
113
|
-
} : (
|
|
114
|
-
// @ts-ignore
|
|
115
|
-
typeof setImmediate == "function" ? function(t) {
|
|
116
|
-
setImmediate(t);
|
|
117
|
-
} : function(t) {
|
|
118
|
-
setTimeout(t);
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
);
|
|
122
|
-
let o;
|
|
123
|
-
function d(t) {
|
|
124
|
-
const e = t._batch;
|
|
125
|
-
if (e !== null && !e.hasDispatched && e.keys.length < t._maxBatchSize)
|
|
126
|
-
return e;
|
|
127
|
-
const c = { hasDispatched: !1, keys: [], callbacks: [] };
|
|
128
|
-
return t._batch = c, t._batchScheduleFn(() => {
|
|
129
|
-
m(t, c);
|
|
130
|
-
}), c;
|
|
131
|
-
}
|
|
132
|
-
function m(t, e) {
|
|
133
|
-
if (e.hasDispatched = !0, e.keys.length === 0) {
|
|
134
|
-
u(e);
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
let c;
|
|
138
|
-
try {
|
|
139
|
-
c = t._batchLoadFn(e.keys);
|
|
140
|
-
} catch (r) {
|
|
141
|
-
return h(
|
|
142
|
-
t,
|
|
143
|
-
e,
|
|
144
|
-
new TypeError(
|
|
145
|
-
`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function errored synchronously: ${String(r)}.`
|
|
146
|
-
)
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
if (!c || typeof c.then != "function")
|
|
150
|
-
return h(
|
|
151
|
-
t,
|
|
152
|
-
e,
|
|
153
|
-
new TypeError(
|
|
154
|
-
`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise: ${String(c)}.`
|
|
155
|
-
)
|
|
156
|
-
);
|
|
157
|
-
Promise.resolve(c).then((r) => {
|
|
158
|
-
if (!l(r))
|
|
159
|
-
throw new TypeError(
|
|
160
|
-
`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array: ${String(r)}.`
|
|
161
|
-
);
|
|
162
|
-
if (r.length !== e.keys.length)
|
|
163
|
-
throw new TypeError(
|
|
164
|
-
`DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.
|
|
165
|
-
|
|
166
|
-
Keys:
|
|
167
|
-
${String(e.keys)}
|
|
168
|
-
|
|
169
|
-
Values:
|
|
170
|
-
${String(r)}`
|
|
171
|
-
);
|
|
172
|
-
u(e);
|
|
173
|
-
for (let n = 0; n < e.callbacks.length; n++) {
|
|
174
|
-
const a = r[n];
|
|
175
|
-
a instanceof Error ? e.callbacks[n].reject(a) : e.callbacks[n].resolve(a);
|
|
176
|
-
}
|
|
177
|
-
}).catch((r) => {
|
|
178
|
-
h(t, e, r);
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
function h(t, e, c) {
|
|
182
|
-
u(e);
|
|
183
|
-
for (let r = 0; r < e.keys.length; r++)
|
|
184
|
-
t.clear(e.keys[r]), e.callbacks[r].reject(c);
|
|
185
|
-
}
|
|
186
|
-
function u(t) {
|
|
187
|
-
if (t.cacheHits)
|
|
188
|
-
for (let e = 0; e < t.cacheHits.length; e++)
|
|
189
|
-
t.cacheHits[e]();
|
|
6
|
+
function c(t) {
|
|
7
|
+
if (!Number.isSafeInteger(t) || t < 0)
|
|
8
|
+
throw new Error("positive integer expected, got " + t);
|
|
190
9
|
}
|
|
191
|
-
function
|
|
192
|
-
if (!(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
10
|
+
function i(t, ...e) {
|
|
11
|
+
if (!p(t))
|
|
12
|
+
throw new Error("Uint8Array expected");
|
|
13
|
+
if (e.length > 0 && !e.includes(t.length))
|
|
14
|
+
throw new Error("Uint8Array expected of length " + e + ", got length=" + t.length);
|
|
15
|
+
}
|
|
16
|
+
function g(t) {
|
|
17
|
+
if (typeof t != "function" || typeof t.create != "function")
|
|
18
|
+
throw new Error("Hash should be wrapped by utils.createHasher");
|
|
19
|
+
c(t.outputLen), c(t.blockLen);
|
|
20
|
+
}
|
|
21
|
+
function d(t, e = !0) {
|
|
22
|
+
if (t.destroyed)
|
|
23
|
+
throw new Error("Hash instance has been destroyed");
|
|
24
|
+
if (e && t.finished)
|
|
25
|
+
throw new Error("Hash#digest() has already been called");
|
|
26
|
+
}
|
|
27
|
+
function b(t, e) {
|
|
28
|
+
i(t);
|
|
29
|
+
const r = e.outputLen;
|
|
30
|
+
if (t.length < r)
|
|
31
|
+
throw new Error("digestInto() expects output buffer of length at least " + r);
|
|
200
32
|
}
|
|
33
|
+
function m(t) {
|
|
34
|
+
return new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4));
|
|
35
|
+
}
|
|
36
|
+
function x(...t) {
|
|
37
|
+
for (let e = 0; e < t.length; e++)
|
|
38
|
+
t[e].fill(0);
|
|
39
|
+
}
|
|
40
|
+
function E(t) {
|
|
41
|
+
return new DataView(t.buffer, t.byteOffset, t.byteLength);
|
|
42
|
+
}
|
|
43
|
+
function L(t, e) {
|
|
44
|
+
return t << 32 - e | t >>> e;
|
|
45
|
+
}
|
|
46
|
+
const s = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
47
|
+
function a(t) {
|
|
48
|
+
return t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255;
|
|
49
|
+
}
|
|
50
|
+
const A = s ? (t) => t : (t) => a(t);
|
|
51
|
+
function y(t) {
|
|
52
|
+
for (let e = 0; e < t.length; e++)
|
|
53
|
+
t[e] = a(t[e]);
|
|
54
|
+
return t;
|
|
55
|
+
}
|
|
56
|
+
const U = s ? (t) => t : y;
|
|
201
57
|
function w(t) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
if (typeof e != "function")
|
|
206
|
-
throw new TypeError(`batchScheduleFn must be a function: ${e}`);
|
|
207
|
-
return e;
|
|
58
|
+
if (typeof t != "string")
|
|
59
|
+
throw new Error("string expected");
|
|
60
|
+
return new Uint8Array(new TextEncoder().encode(t));
|
|
208
61
|
}
|
|
209
|
-
function
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
return /* @__PURE__ */ new Map();
|
|
223
|
-
if (c !== null) {
|
|
224
|
-
const n = ["get", "set", "delete", "clear"].filter(
|
|
225
|
-
(a) => c && typeof c[a] != "function"
|
|
226
|
-
);
|
|
227
|
-
if (n.length !== 0)
|
|
228
|
-
throw new TypeError("Custom cacheMap missing methods: " + n.join(", "));
|
|
62
|
+
function l(t) {
|
|
63
|
+
return typeof t == "string" && (t = w(t)), i(t), t;
|
|
64
|
+
}
|
|
65
|
+
function B(...t) {
|
|
66
|
+
let e = 0;
|
|
67
|
+
for (let n = 0; n < t.length; n++) {
|
|
68
|
+
const o = t[n];
|
|
69
|
+
i(o), e += o.length;
|
|
70
|
+
}
|
|
71
|
+
const r = new Uint8Array(e);
|
|
72
|
+
for (let n = 0, o = 0; n < t.length; n++) {
|
|
73
|
+
const u = t[n];
|
|
74
|
+
r.set(u, o), o += u.length;
|
|
229
75
|
}
|
|
230
|
-
return
|
|
76
|
+
return r;
|
|
231
77
|
}
|
|
232
|
-
|
|
233
|
-
return t && t.name ? t.name : null;
|
|
78
|
+
class H {
|
|
234
79
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
80
|
+
function V(t) {
|
|
81
|
+
const e = (n) => t().update(l(n)).digest(), r = t();
|
|
82
|
+
return e.outputLen = r.outputLen, e.blockLen = r.blockLen, e.create = () => t(), e;
|
|
83
|
+
}
|
|
84
|
+
function k(t) {
|
|
85
|
+
const e = (n, o) => t(o).update(l(n)).digest(), r = t({});
|
|
86
|
+
return e.outputLen = r.outputLen, e.blockLen = r.blockLen, e.create = (n) => t(n), e;
|
|
87
|
+
}
|
|
88
|
+
function I(t = 32) {
|
|
89
|
+
if (f && typeof f.getRandomValues == "function")
|
|
90
|
+
return f.getRandomValues(new Uint8Array(t));
|
|
91
|
+
if (f && typeof f.randomBytes == "function")
|
|
92
|
+
return Uint8Array.from(f.randomBytes(t));
|
|
93
|
+
throw new Error("crypto.getRandomValues must be defined");
|
|
237
94
|
}
|
|
238
95
|
export {
|
|
239
|
-
|
|
96
|
+
H as Hash,
|
|
97
|
+
i as abytes,
|
|
98
|
+
d as aexists,
|
|
99
|
+
g as ahash,
|
|
100
|
+
c as anumber,
|
|
101
|
+
b as aoutput,
|
|
102
|
+
a as byteSwap,
|
|
103
|
+
y as byteSwap32,
|
|
104
|
+
x as clean,
|
|
105
|
+
B as concatBytes,
|
|
106
|
+
V as createHasher,
|
|
107
|
+
k as createOptHasher,
|
|
108
|
+
E as createView,
|
|
109
|
+
p as isBytes,
|
|
110
|
+
s as isLE,
|
|
111
|
+
I as randomBytes,
|
|
112
|
+
L as rotr,
|
|
113
|
+
U as swap32IfBE,
|
|
114
|
+
A as swap8IfBE,
|
|
115
|
+
l as toBytes,
|
|
116
|
+
m as u32,
|
|
117
|
+
w as utf8ToBytes
|
|
240
118
|
};
|
package/dist/index345.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index217.cjs"),r=require("./index229.cjs"),c=e=>r.keccak256(t.toBytes(e));function n(e){return c(e)}exports.hashSignature=n;
|
package/dist/index345.js
CHANGED
|
@@ -1,50 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
U16: t.u16(),
|
|
8
|
-
U32: t.u32(),
|
|
9
|
-
U64: t.u64(),
|
|
10
|
-
U128: t.u128(),
|
|
11
|
-
U256: t.u256(),
|
|
12
|
-
ULEB128: t.uleb128(),
|
|
13
|
-
Bool: t.bool(),
|
|
14
|
-
String: t.string(),
|
|
15
|
-
Address: K,
|
|
16
|
-
AppId: E,
|
|
17
|
-
Argument: B,
|
|
18
|
-
CallArg: C,
|
|
19
|
-
Command: y,
|
|
20
|
-
CompressedSignature: j,
|
|
21
|
-
GasData: O,
|
|
22
|
-
Intent: I,
|
|
23
|
-
IntentMessage: D,
|
|
24
|
-
IntentScope: P,
|
|
25
|
-
IntentVersion: M,
|
|
26
|
-
MultiSig: A,
|
|
27
|
-
MultiSigPkMap: U,
|
|
28
|
-
MultiSigPublicKey: f,
|
|
29
|
-
ObjectArg: T,
|
|
30
|
-
ObjectDigest: p,
|
|
31
|
-
Owner: d,
|
|
32
|
-
PasskeyAuthenticator: b,
|
|
33
|
-
ProgrammableMoveCall: S,
|
|
34
|
-
ProgrammableTransaction: m,
|
|
35
|
-
PublicKey: l,
|
|
36
|
-
SenderSignedData: g,
|
|
37
|
-
SenderSignedTransaction: u,
|
|
38
|
-
SharedObjectRef: c,
|
|
39
|
-
StructTag: s,
|
|
40
|
-
SuiObjectRef: o,
|
|
41
|
-
TransactionData: e,
|
|
42
|
-
TransactionDataV1: i,
|
|
43
|
-
TransactionEffects: h,
|
|
44
|
-
TransactionExpiration: r,
|
|
45
|
-
TransactionKind: a,
|
|
46
|
-
TypeTag: n
|
|
47
|
-
};
|
|
1
|
+
import { toBytes as o } from "./index217.js";
|
|
2
|
+
import { keccak256 as r } from "./index229.js";
|
|
3
|
+
const e = (t) => r(o(t));
|
|
4
|
+
function c(t) {
|
|
5
|
+
return e(t);
|
|
6
|
+
}
|
|
48
7
|
export {
|
|
49
|
-
|
|
8
|
+
c as hashSignature
|
|
50
9
|
};
|
package/dist/index346.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("./index347.cjs"),n=require("./index288.cjs"),i=t=>{const r=typeof t=="string"?t:n.formatAbiItem(t);return e.normalizeSignature(r)};exports.toSignature=i;
|