@gardenfi/utils 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +6 -41
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +50 -17
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +16 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +9 -8
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +5 -13
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +13 -108
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +3 -8
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +26 -6
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +4 -7
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +6 -21
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +88 -8
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +123 -29
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +7 -13
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +21 -7
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +17 -9
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +39 -15
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +21 -73
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +7 -31
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +6 -46
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +106 -14
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +3 -14
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +4 -10
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +9 -17
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +2 -66
- package/dist/index124.cjs +2 -1
- package/dist/index124.js +3 -12
- package/dist/index125.cjs +20 -1
- package/dist/index125.js +326 -13
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +13 -8
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +4 -10
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +2 -27
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +7 -14
- package/dist/index130.cjs +3 -3
- package/dist/index130.js +192 -87
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +31 -51
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +20 -23
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +5 -117
- package/dist/index134.cjs +1 -20
- package/dist/index134.js +72 -325
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +5 -81
- package/dist/index136.cjs +1 -4
- package/dist/index136.js +5 -194
- package/dist/index137.cjs +9 -1
- package/dist/index137.js +33 -16
- package/dist/index138.cjs +3 -1
- package/dist/index138.js +110 -24
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +3 -178
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +22 -11
- package/dist/index141.cjs +3 -1
- package/dist/index141.js +451 -24
- package/dist/index142.cjs +2 -1
- package/dist/index142.js +55 -3
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +26 -89
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +33 -37
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +35 -15
- package/dist/index146.cjs +4 -1
- package/dist/index146.js +195 -2
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +7 -74
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +11 -137
- package/dist/index149.cjs +1 -3
- package/dist/index149.js +13 -446
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +23 -60
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +8 -6
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +55 -69
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +45 -5
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +8 -3
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +7 -14
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +15 -87
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +18 -13
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +19 -43
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +50 -37
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +11 -7
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +157 -34
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +21 -8
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +127 -9
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +37 -14
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +6 -95
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +27 -20
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +191 -4
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +4 -7
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +62 -24
- package/dist/index170.cjs +1 -2
- package/dist/index170.js +3 -25
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +20 -9
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +16 -8
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +22 -9
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +11 -11
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +33 -12
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +3 -15
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +18 -7
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +25 -19
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +36 -6
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +10 -21
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +24 -39
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +28 -17
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +65 -21
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +9 -80
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +32 -43
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +24 -11
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +24 -52
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +14 -5
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +103 -5
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +80 -11
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +5 -13
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +6 -13
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +27 -6
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +39 -151
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +13 -35
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +41 -30
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -9
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +11 -68
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +19 -9
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +76 -69
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +2 -20
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +37 -110
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +111 -23
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +49 -50
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +31 -105
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +9 -9
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +7 -2
- package/dist/index209.cjs +1 -2
- package/dist/index209.js +7 -3
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +11 -13
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +10 -4
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +14 -2
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +32 -31
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +5 -22
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +7 -5
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +8 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +20 -5
- package/dist/index218.cjs +1 -9
- package/dist/index218.js +29 -33
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +21 -3
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +3 -26
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +17 -33
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +10 -35
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +20 -7
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +22 -18
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +5 -27
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +5 -8
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +8 -7
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +93 -150
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +3 -128
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +9 -9
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +18 -27
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +162 -182
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +18 -4
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +11 -3
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +15 -19
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +22 -16
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +30 -34
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +2 -3
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +13 -27
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +11 -24
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +2 -2
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +46 -27
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +11 -27
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +7 -42
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -78
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +14 -2
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +10 -33
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +9 -49
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +24 -6
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +12 -6
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +24 -32
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +14 -5
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +13 -6
- package/dist/index252.cjs +2 -1
- package/dist/index252.js +24 -3
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +52 -17
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +25 -10
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +13 -5
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +15 -8
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +5 -104
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +14 -3
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +10 -18
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +16 -17
- package/dist/index261.cjs +2 -1
- package/dist/index261.js +40 -223
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +2 -140
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +5 -146
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +10 -103
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +19 -6
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +8 -42
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +62 -74
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +66 -2
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +177 -131
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +22 -3
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +21 -134
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +76 -9
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +26 -99
- package/dist/index274.cjs +1 -2
- package/dist/index274.js +11 -129
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +13 -6
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +13 -7
- package/dist/index277.cjs +2 -2
- package/dist/index277.js +18 -41
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +15 -2
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +11 -5
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +103 -10
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +6 -19
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +224 -8
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +6 -66
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +7 -66
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +24 -184
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +18 -21
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +142 -38
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +3 -76
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +133 -33
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +148 -9
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +9 -13
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +110 -9
- package/dist/index293.cjs +2 -2
- package/dist/index293.js +134 -18
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +138 -13
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +42 -11
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +74 -22
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +2 -20
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +1 -1
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +68 -698
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +675 -178
- package/dist/index302.cjs +1 -2
- package/dist/index302.js +198 -63
- package/dist/index303.cjs +2 -1
- package/dist/index303.js +66 -4
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +4 -40
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +40 -7
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +7 -62
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +57 -72
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +78 -4
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +4 -195
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +193 -67
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +3 -3
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +7 -39
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +31 -45
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +28 -24
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +16 -6
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +33 -13
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +44 -15
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +151 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +34 -12
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +37 -9
- package/dist/index41.cjs +2 -1
- package/dist/index41.js +58 -11
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +37 -11
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +15 -13
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +8 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -56
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +45 -16
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +31 -5
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +3 -8
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +8 -170
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +64 -99
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +9 -3
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +28 -21
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +70 -15
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +19 -10
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +110 -18
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +55 -120
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +20 -56
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +39 -22
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +37 -10
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +56 -18
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +166 -6
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +40 -10
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +8 -31
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +36 -16
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +9 -16
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +50 -7
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +81 -29
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +37 -20
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +7 -21
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +6 -58
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +17 -40
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +8 -37
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +13 -166
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +7 -111
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +9 -30
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +47 -2
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +14 -4
- package/dist/index78.cjs +1 -2
- package/dist/index78.js +16 -59
- package/dist/index79.cjs +1 -2
- package/dist/index79.js +13 -54
- package/dist/index80.cjs +1 -3
- package/dist/index80.js +6 -215
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +34 -12
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +9 -12
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +8 -24
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +25 -27
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +10 -47
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +14 -19
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +116 -10
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +79 -38
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +177 -9
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +6 -7
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +12 -30
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +13 -36
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +94 -35
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +75 -9
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +89 -29
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +138 -22
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +66 -82
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +23 -50
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +106 -20
- package/package.json +1 -1
package/dist/index272.js
CHANGED
|
@@ -1,12 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { BaseError as t } from "./index261.js";
|
|
2
|
+
class n extends t {
|
|
3
|
+
constructor({ param: e }) {
|
|
4
|
+
super("Invalid ABI parameter.", {
|
|
5
|
+
details: e
|
|
6
|
+
}), Object.defineProperty(this, "name", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: "InvalidParameterError"
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
class s extends t {
|
|
15
|
+
constructor({ param: e, name: r }) {
|
|
16
|
+
super("Invalid ABI parameter.", {
|
|
17
|
+
details: e,
|
|
18
|
+
metaMessages: [
|
|
19
|
+
`"${r}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`
|
|
20
|
+
]
|
|
21
|
+
}), Object.defineProperty(this, "name", {
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
configurable: !0,
|
|
24
|
+
writable: !0,
|
|
25
|
+
value: "SolidityProtectedKeywordError"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
class l extends t {
|
|
30
|
+
constructor({ param: e, type: r, modifier: i }) {
|
|
31
|
+
super("Invalid ABI parameter.", {
|
|
32
|
+
details: e,
|
|
33
|
+
metaMessages: [
|
|
34
|
+
`Modifier "${i}" not allowed${r ? ` in "${r}" type` : ""}.`
|
|
35
|
+
]
|
|
36
|
+
}), Object.defineProperty(this, "name", {
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0,
|
|
40
|
+
value: "InvalidModifierError"
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
class d extends t {
|
|
45
|
+
constructor({ param: e, type: r, modifier: i }) {
|
|
46
|
+
super("Invalid ABI parameter.", {
|
|
47
|
+
details: e,
|
|
48
|
+
metaMessages: [
|
|
49
|
+
`Modifier "${i}" not allowed${r ? ` in "${r}" type` : ""}.`,
|
|
50
|
+
`Data location can only be specified for array, struct, or mapping types, but "${i}" was given.`
|
|
51
|
+
]
|
|
52
|
+
}), Object.defineProperty(this, "name", {
|
|
53
|
+
enumerable: !0,
|
|
54
|
+
configurable: !0,
|
|
55
|
+
writable: !0,
|
|
56
|
+
value: "InvalidFunctionModifierError"
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
class u extends t {
|
|
61
|
+
constructor({ abiParameter: e }) {
|
|
62
|
+
super("Invalid ABI parameter.", {
|
|
63
|
+
details: JSON.stringify(e, null, 2),
|
|
64
|
+
metaMessages: ["ABI parameter type is invalid."]
|
|
65
|
+
}), Object.defineProperty(this, "name", {
|
|
66
|
+
enumerable: !0,
|
|
67
|
+
configurable: !0,
|
|
68
|
+
writable: !0,
|
|
69
|
+
value: "InvalidAbiTypeParameterError"
|
|
70
|
+
});
|
|
71
|
+
}
|
|
9
72
|
}
|
|
10
73
|
export {
|
|
11
|
-
|
|
74
|
+
u as InvalidAbiTypeParameterError,
|
|
75
|
+
d as InvalidFunctionModifierError,
|
|
76
|
+
l as InvalidModifierError,
|
|
77
|
+
n as InvalidParameterError,
|
|
78
|
+
s as SolidityProtectedKeywordError
|
|
12
79
|
};
|
package/dist/index273.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("./index261.cjs");class a extends e.BaseError{constructor({signature:r,type:n}){super(`Invalid ${n} signature.`,{details:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class u extends e.BaseError{constructor({signature:r}){super("Unknown signature.",{details:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class i extends e.BaseError{constructor({signature:r}){super("Invalid struct signature.",{details:r,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}exports.InvalidSignatureError=a;exports.InvalidStructSignatureError=i;exports.UnknownSignatureError=u;
|
package/dist/index273.js
CHANGED
|
@@ -1,116 +1,43 @@
|
|
|
1
|
-
import { BaseError as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
function M(e, r, i) {
|
|
15
|
-
const { args: n = [], prepare: f = !0 } = i ?? {}, b = $(r, { strict: !1 }), u = e.filter((t) => b ? t.type === "function" || t.type === "error" ? T(t) === A(r, 0, 4) : t.type === "event" ? s(t) === r : !1 : "name" in t && t.name === r);
|
|
16
|
-
if (u.length === 0)
|
|
17
|
-
throw new d({ name: r });
|
|
18
|
-
if (u.length === 1)
|
|
19
|
-
return {
|
|
20
|
-
...u[0],
|
|
21
|
-
...f ? { hash: s(u[0]) } : {}
|
|
22
|
-
};
|
|
23
|
-
let o;
|
|
24
|
-
for (const t of u) {
|
|
25
|
-
if (!("inputs" in t))
|
|
26
|
-
continue;
|
|
27
|
-
if (!n || n.length === 0) {
|
|
28
|
-
if (!t.inputs || t.inputs.length === 0)
|
|
29
|
-
return {
|
|
30
|
-
...t,
|
|
31
|
-
...f ? { hash: s(t) } : {}
|
|
32
|
-
};
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
if (!t.inputs || t.inputs.length === 0 || t.inputs.length !== n.length)
|
|
36
|
-
continue;
|
|
37
|
-
if (n.every((a, w) => {
|
|
38
|
-
const g = "inputs" in t && t.inputs[w];
|
|
39
|
-
return g ? E(a, g) : !1;
|
|
40
|
-
})) {
|
|
41
|
-
if (o && "inputs" in o && o.inputs) {
|
|
42
|
-
const a = B(t.inputs, o.inputs, n);
|
|
43
|
-
if (a)
|
|
44
|
-
throw new O({
|
|
45
|
-
abiItem: t,
|
|
46
|
-
type: a[0]
|
|
47
|
-
}, {
|
|
48
|
-
abiItem: o,
|
|
49
|
-
type: a[1]
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
o = t;
|
|
53
|
-
}
|
|
1
|
+
import { BaseError as r } from "./index261.js";
|
|
2
|
+
class u extends r {
|
|
3
|
+
constructor({ signature: e, type: n }) {
|
|
4
|
+
super(`Invalid ${n} signature.`, {
|
|
5
|
+
details: e
|
|
6
|
+
}), Object.defineProperty(this, "name", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: "InvalidSignatureError"
|
|
11
|
+
});
|
|
54
12
|
}
|
|
55
|
-
const c = (() => {
|
|
56
|
-
if (o)
|
|
57
|
-
return o;
|
|
58
|
-
const [t, ...m] = u;
|
|
59
|
-
return { ...t, overloads: m };
|
|
60
|
-
})();
|
|
61
|
-
if (!c)
|
|
62
|
-
throw new d({ name: r });
|
|
63
|
-
return {
|
|
64
|
-
...c,
|
|
65
|
-
...f ? { hash: s(c) } : {}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function T(e) {
|
|
69
|
-
return A(s(e), 0, 4);
|
|
70
|
-
}
|
|
71
|
-
function F(e) {
|
|
72
|
-
const r = typeof e == "string" ? e : h(e);
|
|
73
|
-
return p(r);
|
|
74
13
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
constructor(r, i) {
|
|
80
|
-
super("Found ambiguous types in overloaded ABI Items.", {
|
|
81
|
-
metaMessages: [
|
|
82
|
-
// TODO: abitype to add support for signature-formatted ABI items.
|
|
83
|
-
`\`${r.type}\` in \`${p(h(r.abiItem))}\`, and`,
|
|
84
|
-
`\`${i.type}\` in \`${p(h(i.abiItem))}\``,
|
|
85
|
-
"",
|
|
86
|
-
"These types encode differently and cannot be distinguished at runtime.",
|
|
87
|
-
"Remove one of the ambiguous items in the ABI."
|
|
88
|
-
]
|
|
14
|
+
class i extends r {
|
|
15
|
+
constructor({ signature: e }) {
|
|
16
|
+
super("Unknown signature.", {
|
|
17
|
+
details: e
|
|
89
18
|
}), Object.defineProperty(this, "name", {
|
|
90
19
|
enumerable: !0,
|
|
91
20
|
configurable: !0,
|
|
92
21
|
writable: !0,
|
|
93
|
-
value: "
|
|
22
|
+
value: "UnknownSignatureError"
|
|
94
23
|
});
|
|
95
24
|
}
|
|
96
25
|
}
|
|
97
|
-
class
|
|
98
|
-
constructor({
|
|
99
|
-
|
|
100
|
-
|
|
26
|
+
class s extends r {
|
|
27
|
+
constructor({ signature: e }) {
|
|
28
|
+
super("Invalid struct signature.", {
|
|
29
|
+
details: e,
|
|
30
|
+
metaMessages: ["No properties exist."]
|
|
31
|
+
}), Object.defineProperty(this, "name", {
|
|
101
32
|
enumerable: !0,
|
|
102
33
|
configurable: !0,
|
|
103
34
|
writable: !0,
|
|
104
|
-
value: "
|
|
35
|
+
value: "InvalidStructSignatureError"
|
|
105
36
|
});
|
|
106
37
|
}
|
|
107
38
|
}
|
|
108
39
|
export {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
M as fromAbi,
|
|
113
|
-
T as getSelector,
|
|
114
|
-
F as getSignature,
|
|
115
|
-
s as getSignatureHash
|
|
40
|
+
u as InvalidSignatureError,
|
|
41
|
+
s as InvalidStructSignatureError,
|
|
42
|
+
i as UnknownSignatureError
|
|
116
43
|
};
|
package/dist/index274.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class w extends d.BaseError{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class E extends d.BaseError{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}exports.ArrayLengthMismatchError=A;exports.BytesSizeMismatchError=y;exports.InvalidArrayError=w;exports.InvalidTypeError=E;exports.LengthMismatchError=m;exports.encode=P;exports.encodePacked=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index261.cjs");class t extends s.BaseError{constructor({current:r,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${r.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}exports.InvalidParenthesisError=t;
|
package/dist/index274.js
CHANGED
|
@@ -1,137 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
expectedLength: n.length,
|
|
11
|
-
givenLength: e.length
|
|
12
|
-
});
|
|
13
|
-
const a = z({
|
|
14
|
-
checksumAddress: r,
|
|
15
|
-
parameters: n,
|
|
16
|
-
values: e
|
|
17
|
-
}), s = I(a);
|
|
18
|
-
return s.length === 0 ? "0x" : s;
|
|
19
|
-
}
|
|
20
|
-
function m(n, e) {
|
|
21
|
-
if (n.length !== e.length)
|
|
22
|
-
throw new b({
|
|
23
|
-
expectedLength: n.length,
|
|
24
|
-
givenLength: e.length
|
|
25
|
-
});
|
|
26
|
-
const t = [];
|
|
27
|
-
for (let r = 0; r < n.length; r++) {
|
|
28
|
-
const a = n[r], s = e[r];
|
|
29
|
-
t.push(m.encode(a, s));
|
|
30
|
-
}
|
|
31
|
-
return g(...t);
|
|
32
|
-
}
|
|
33
|
-
(function(n) {
|
|
34
|
-
function e(t, r, a = !1) {
|
|
35
|
-
if (t === "address") {
|
|
36
|
-
const i = r;
|
|
37
|
-
return p(i), f(i.toLowerCase(), a ? 32 : 0);
|
|
38
|
-
}
|
|
39
|
-
if (t === "string")
|
|
40
|
-
return x(r);
|
|
41
|
-
if (t === "bytes")
|
|
42
|
-
return r;
|
|
43
|
-
if (t === "bool")
|
|
44
|
-
return f(w(r), a ? 32 : 1);
|
|
45
|
-
const s = t.match(A);
|
|
46
|
-
if (s) {
|
|
47
|
-
const [i, o, c = "256"] = s, h = Number.parseInt(c) / 8;
|
|
48
|
-
return E(r, {
|
|
49
|
-
size: a ? 32 : h,
|
|
50
|
-
signed: o === "int"
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
const d = t.match($);
|
|
54
|
-
if (d) {
|
|
55
|
-
const [i, o] = d;
|
|
56
|
-
if (Number.parseInt(o) !== (r.length - 2) / 2)
|
|
57
|
-
throw new M({
|
|
58
|
-
expectedSize: Number.parseInt(o),
|
|
59
|
-
value: r
|
|
60
|
-
});
|
|
61
|
-
return P(r, a ? 32 : 0);
|
|
62
|
-
}
|
|
63
|
-
const l = t.match(L);
|
|
64
|
-
if (l && Array.isArray(r)) {
|
|
65
|
-
const [i, o] = l, c = [];
|
|
66
|
-
for (let h = 0; h < r.length; h++)
|
|
67
|
-
c.push(e(o, r[h], !0));
|
|
68
|
-
return c.length === 0 ? "0x" : g(...c);
|
|
69
|
-
}
|
|
70
|
-
throw new j(t);
|
|
71
|
-
}
|
|
72
|
-
n.encode = e;
|
|
73
|
-
})(m || (m = {}));
|
|
74
|
-
class R extends u {
|
|
75
|
-
constructor({ expectedLength: e, givenLength: t, type: r }) {
|
|
76
|
-
super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`), Object.defineProperty(this, "name", {
|
|
77
|
-
enumerable: !0,
|
|
78
|
-
configurable: !0,
|
|
79
|
-
writable: !0,
|
|
80
|
-
value: "AbiParameters.ArrayLengthMismatchError"
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
class M extends u {
|
|
85
|
-
constructor({ expectedSize: e, value: t }) {
|
|
86
|
-
super(`Size of bytes "${t}" (bytes${y(t)}) does not match expected size (bytes${e}).`), Object.defineProperty(this, "name", {
|
|
87
|
-
enumerable: !0,
|
|
88
|
-
configurable: !0,
|
|
89
|
-
writable: !0,
|
|
90
|
-
value: "AbiParameters.BytesSizeMismatchError"
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
class b extends u {
|
|
95
|
-
constructor({ expectedLength: e, givenLength: t }) {
|
|
96
|
-
super([
|
|
97
|
-
"ABI encoding parameters/values length mismatch.",
|
|
98
|
-
`Expected length (parameters): ${e}`,
|
|
99
|
-
`Given length (values): ${t}`
|
|
100
|
-
].join(`
|
|
101
|
-
`)), Object.defineProperty(this, "name", {
|
|
102
|
-
enumerable: !0,
|
|
103
|
-
configurable: !0,
|
|
104
|
-
writable: !0,
|
|
105
|
-
value: "AbiParameters.LengthMismatchError"
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
class _ extends u {
|
|
110
|
-
constructor(e) {
|
|
111
|
-
super(`Value \`${e}\` is not a valid array.`), Object.defineProperty(this, "name", {
|
|
112
|
-
enumerable: !0,
|
|
113
|
-
configurable: !0,
|
|
114
|
-
writable: !0,
|
|
115
|
-
value: "AbiParameters.InvalidArrayError"
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
class j extends u {
|
|
120
|
-
constructor(e) {
|
|
121
|
-
super(`Type \`${e}\` is not a valid ABI Type.`), Object.defineProperty(this, "name", {
|
|
1
|
+
import { BaseError as s } from "./index261.js";
|
|
2
|
+
class n extends s {
|
|
3
|
+
constructor({ current: r, depth: e }) {
|
|
4
|
+
super("Unbalanced parentheses.", {
|
|
5
|
+
metaMessages: [
|
|
6
|
+
`"${r.trim()}" has too many ${e > 0 ? "opening" : "closing"} parentheses.`
|
|
7
|
+
],
|
|
8
|
+
details: `Depth "${e}"`
|
|
9
|
+
}), Object.defineProperty(this, "name", {
|
|
122
10
|
enumerable: !0,
|
|
123
11
|
configurable: !0,
|
|
124
12
|
writable: !0,
|
|
125
|
-
value: "
|
|
13
|
+
value: "InvalidParenthesisError"
|
|
126
14
|
});
|
|
127
15
|
}
|
|
128
16
|
}
|
|
129
17
|
export {
|
|
130
|
-
|
|
131
|
-
M as BytesSizeMismatchError,
|
|
132
|
-
_ as InvalidArrayError,
|
|
133
|
-
j as InvalidTypeError,
|
|
134
|
-
b as LengthMismatchError,
|
|
135
|
-
N as encode,
|
|
136
|
-
m as encodePacked
|
|
18
|
+
n as InvalidParenthesisError
|
|
137
19
|
};
|
package/dist/index275.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index261.cjs");class t extends r.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}exports.CircularReferenceError=t;
|
package/dist/index275.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { BaseError as r } from "./index261.js";
|
|
2
|
+
class a extends r {
|
|
3
|
+
constructor({ type: e }) {
|
|
4
|
+
super("Circular reference detected.", {
|
|
5
|
+
metaMessages: [`Struct "${e}" is a circular reference.`]
|
|
6
|
+
}), Object.defineProperty(this, "name", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: "CircularReferenceError"
|
|
11
|
+
});
|
|
12
|
+
}
|
|
6
13
|
}
|
|
7
14
|
export {
|
|
8
|
-
|
|
15
|
+
a as CircularReferenceError
|
|
9
16
|
};
|
package/dist/index276.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const t=e();exports.idCache=t;
|
package/dist/index276.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
1
|
+
function r() {
|
|
2
|
+
return {
|
|
3
|
+
current: 0,
|
|
4
|
+
take() {
|
|
5
|
+
return this.current++;
|
|
6
|
+
},
|
|
7
|
+
reset() {
|
|
8
|
+
this.current = 0;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
const t = /* @__PURE__ */ r();
|
|
7
13
|
export {
|
|
8
|
-
|
|
14
|
+
t as idCache
|
|
9
15
|
};
|
package/dist/index277.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
2
|
-
`);
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function x(e){var c,d,f;const{scheme:n,statement:t,...p}=((c=e.match(h))==null?void 0:c.groups)??{},{chainId:s,expirationTime:i,issuedAt:o,notBefore:r,requestId:a,...m}=((d=e.match(A))==null?void 0:d.groups)??{},u=(f=e.split("Resources:")[1])==null?void 0:f.split(`
|
|
2
|
+
- `).slice(1);return{...p,...m,...s?{chainId:Number(s)}:{},...i?{expirationTime:new Date(i)}:{},...o?{issuedAt:new Date(o)}:{},...r?{notBefore:new Date(r)}:{},...a?{requestId:a}:{},...u?{resources:u}:{},...n?{scheme:n}:{},...t?{statement:t}:{}}}const h=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,A=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;exports.parseSiweMessage=x;
|
package/dist/index277.js
CHANGED
|
@@ -1,44 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
writable: !0,
|
|
18
|
-
value: void 0
|
|
19
|
-
}), Object.defineProperty(this, "docsPath", {
|
|
20
|
-
enumerable: !0,
|
|
21
|
-
configurable: !0,
|
|
22
|
-
writable: !0,
|
|
23
|
-
value: void 0
|
|
24
|
-
}), Object.defineProperty(this, "metaMessages", {
|
|
25
|
-
enumerable: !0,
|
|
26
|
-
configurable: !0,
|
|
27
|
-
writable: !0,
|
|
28
|
-
value: void 0
|
|
29
|
-
}), Object.defineProperty(this, "shortMessage", {
|
|
30
|
-
enumerable: !0,
|
|
31
|
-
configurable: !0,
|
|
32
|
-
writable: !0,
|
|
33
|
-
value: void 0
|
|
34
|
-
}), Object.defineProperty(this, "name", {
|
|
35
|
-
enumerable: !0,
|
|
36
|
-
configurable: !0,
|
|
37
|
-
writable: !0,
|
|
38
|
-
value: "AbiTypeError"
|
|
39
|
-
}), e.cause && (this.cause = e.cause), this.details = t, this.docsPath = s, this.metaMessages = e.metaMessages, this.shortMessage = i;
|
|
40
|
-
}
|
|
1
|
+
function A(e) {
|
|
2
|
+
var c, d, f;
|
|
3
|
+
const { scheme: n, statement: t, ...p } = ((c = e.match(m)) == null ? void 0 : c.groups) ?? {}, { chainId: s, expirationTime: i, issuedAt: o, notBefore: r, requestId: a, ...x } = ((d = e.match(h)) == null ? void 0 : d.groups) ?? {}, u = (f = e.split("Resources:")[1]) == null ? void 0 : f.split(`
|
|
4
|
+
- `).slice(1);
|
|
5
|
+
return {
|
|
6
|
+
...p,
|
|
7
|
+
...x,
|
|
8
|
+
...s ? { chainId: Number(s) } : {},
|
|
9
|
+
...i ? { expirationTime: new Date(i) } : {},
|
|
10
|
+
...o ? { issuedAt: new Date(o) } : {},
|
|
11
|
+
...r ? { notBefore: new Date(r) } : {},
|
|
12
|
+
...a ? { requestId: a } : {},
|
|
13
|
+
...u ? { resources: u } : {},
|
|
14
|
+
...n ? { scheme: n } : {},
|
|
15
|
+
...t ? { statement: t } : {}
|
|
16
|
+
};
|
|
41
17
|
}
|
|
18
|
+
const m = /^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/, h = /(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;
|
|
42
19
|
export {
|
|
43
|
-
|
|
20
|
+
A as parseSiweMessage
|
|
44
21
|
};
|
package/dist/index278.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("./index174.cjs"),f=require("./index184.cjs");function u(n){const{address:s,domain:r,message:e,nonce:t,scheme:i,time:a=new Date}=n;if(r&&e.domain!==r||t&&e.nonce!==t||i&&e.scheme!==i||e.expirationTime&&a>=e.expirationTime||e.notBefore&&a<e.notBefore)return!1;try{if(!e.address||!d.isAddress(e.address,{strict:!1})||s&&!f.isAddressEqual(e.address,s))return!1}catch{return!1}return!0}exports.validateSiweMessage=u;
|
package/dist/index278.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { isAddress as f } from "./index174.js";
|
|
2
|
+
import { isAddressEqual as o } from "./index184.js";
|
|
3
|
+
function l(n) {
|
|
4
|
+
const { address: r, domain: s, message: e, nonce: t, scheme: a, time: i = /* @__PURE__ */ new Date() } = n;
|
|
5
|
+
if (s && e.domain !== s || t && e.nonce !== t || a && e.scheme !== a || e.expirationTime && i >= e.expirationTime || e.notBefore && i < e.notBefore)
|
|
6
|
+
return !1;
|
|
7
|
+
try {
|
|
8
|
+
if (!e.address || !f(e.address, { strict: !1 }) || r && !o(e.address, r))
|
|
9
|
+
return !1;
|
|
10
|
+
} catch {
|
|
11
|
+
return !1;
|
|
12
|
+
}
|
|
13
|
+
return !0;
|
|
14
|
+
}
|
|
2
15
|
export {
|
|
3
|
-
|
|
16
|
+
l as validateSiweMessage
|
|
4
17
|
};
|
package/dist/index279.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 o=require("./index223.cjs"),t=new o.LruMap(8192);function i(r,{enabled:n=!0,id:e}){if(!n||!e)return r();if(t.get(e))return t.get(e);const u=r().finally(()=>t.delete(e));return t.set(e,u),u}exports.promiseCache=t;exports.withDedupe=i;
|
package/dist/index279.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { LruMap as u } from "./index223.js";
|
|
2
|
+
const t = /* @__PURE__ */ new u(8192);
|
|
3
|
+
function s(r, { enabled: o = !0, id: e }) {
|
|
4
|
+
if (!o || !e)
|
|
5
|
+
return r();
|
|
6
|
+
if (t.get(e))
|
|
7
|
+
return t.get(e);
|
|
8
|
+
const n = r().finally(() => t.delete(e));
|
|
9
|
+
return t.set(e, n), n;
|
|
5
10
|
}
|
|
6
11
|
export {
|
|
7
|
-
|
|
12
|
+
t as promiseCache,
|
|
13
|
+
s as withDedupe
|
|
8
14
|
};
|
package/dist/index28.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index216.cjs"),a=e.defineChain({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0});exports.sepolia=a;
|
package/dist/index28.js
CHANGED
package/dist/index280.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("./index296.cjs"),x=require("./index287.cjs"),_=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),f=new Uint32Array(64);class u extends e.HashMD{constructor(o=32){super(64,o,8,!1),this.A=e.SHA256_IV[0]|0,this.B=e.SHA256_IV[1]|0,this.C=e.SHA256_IV[2]|0,this.D=e.SHA256_IV[3]|0,this.E=e.SHA256_IV[4]|0,this.F=e.SHA256_IV[5]|0,this.G=e.SHA256_IV[6]|0,this.H=e.SHA256_IV[7]|0}get(){const{A:o,B:h,C:s,D:a,E:r,F:b,G:c,H:i}=this;return[o,h,s,a,r,b,c,i]}set(o,h,s,a,r,b,c,i){this.A=o|0,this.B=h|0,this.C=s|0,this.D=a|0,this.E=r|0,this.F=b|0,this.G=c|0,this.H=i|0}process(o,h){for(let t=0;t<16;t++,h+=4)f[t]=o.getUint32(h,!1);for(let t=16;t<64;t++){const H=f[t-15],d=f[t-2],S=x.rotr(H,7)^x.rotr(H,18)^H>>>3,l=x.rotr(d,17)^x.rotr(d,19)^d>>>10;f[t]=l+f[t-7]+S+f[t-16]|0}let{A:s,B:a,C:r,D:b,E:c,F:i,G:n,H:A}=this;for(let t=0;t<64;t++){const H=x.rotr(c,6)^x.rotr(c,11)^x.rotr(c,25),d=A+H+e.Chi(c,i,n)+_[t]+f[t]|0,l=(x.rotr(s,2)^x.rotr(s,13)^x.rotr(s,22))+e.Maj(s,a,r)|0;A=n,n=i,i=c,c=b+d|0,b=r,r=a,a=s,s=d+l|0}s=s+this.A|0,a=a+this.B|0,r=r+this.C|0,b=b+this.D|0,c=c+this.E|0,i=i+this.F|0,n=n+this.G|0,A=A+this.H|0,this.set(s,a,r,b,c,i,n,A)}roundClean(){x.clean(f)}destroy(){this.set(0,0,0,0,0,0,0,0),x.clean(this.buffer)}}const I=x.createHasher(()=>new u);exports.SHA256=u;exports.sha256=I;
|