@gardenfi/utils 2.1.3-beta.1 → 2.1.3-beta.3
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 +9 -10
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +16 -5
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +64 -13
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +11 -3
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +13 -26
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +8 -4
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +10 -6
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +25 -58
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +14 -125
- package/dist/index109.cjs +3 -1
- package/dist/index109.js +110 -7
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +51 -21
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +24 -17
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +113 -38
- package/dist/index113.cjs +20 -1
- package/dist/index113.js +326 -21
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +80 -11
- package/dist/index115.cjs +4 -1
- package/dist/index115.js +194 -6
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +24 -106
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +182 -3
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +13 -4
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +25 -9
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +3 -2
- package/dist/index121.cjs +1 -2
- package/dist/index121.js +89 -3
- package/dist/index122.cjs +1 -20
- package/dist/index122.js +32 -326
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +15 -13
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +2 -5
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +76 -2
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +138 -7
- package/dist/index127.cjs +3 -3
- package/dist/index127.js +430 -194
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +63 -32
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +6 -21
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +69 -5
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +5 -73
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +21 -5
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +3 -5
- package/dist/index134.cjs +1 -9
- package/dist/index134.js +13 -34
- package/dist/index135.cjs +1 -3
- package/dist/index135.js +55 -106
- package/dist/index136.cjs +2 -1
- package/dist/index136.js +25 -3
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +13 -23
- package/dist/index138.cjs +1 -3
- package/dist/index138.js +26 -451
- package/dist/index139.cjs +1 -2
- package/dist/index139.js +7 -54
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +35 -23
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +8 -33
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +9 -35
- package/dist/index143.cjs +1 -4
- package/dist/index143.js +15 -194
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +92 -7
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +20 -12
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +4 -18
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +6 -27
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +26 -8
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +9 -55
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +8 -45
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +10 -8
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +11 -7
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +13 -16
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +14 -18
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +7 -21
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +20 -50
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +6 -11
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +19 -159
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +40 -21
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +17 -127
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +20 -37
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +80 -6
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +44 -27
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +11 -191
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +53 -4
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +3 -62
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +6 -3
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +5 -20
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +11 -16
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +13 -23
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +13 -11
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +5 -34
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +14 -3
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +103 -18
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +6 -27
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +151 -36
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +35 -10
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +30 -24
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +8 -27
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -8
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +66 -63
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +9 -9
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +71 -33
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +18 -23
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +110 -24
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +23 -3
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +50 -14
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +104 -101
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +9 -81
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +2 -6
- package/dist/index190.cjs +2 -1
- package/dist/index190.js +3 -7
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +12 -26
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +4 -37
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +2 -14
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +30 -41
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +21 -5
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +5 -11
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +5 -19
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -78
- package/dist/index199.cjs +9 -1
- package/dist/index199.js +36 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +3 -38
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +22 -107
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +25 -41
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +35 -32
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +8 -8
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +12 -6
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +18 -6
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +27 -11
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +8 -10
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +55 -13
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +8 -32
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +8 -5
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +18 -7
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +161 -8
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +127 -20
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +37 -30
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +27 -20
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +191 -3
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +4 -18
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +3 -11
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +3 -3
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +17 -18
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +16 -22
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +11 -5
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +34 -5
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +3 -9
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +27 -104
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +24 -111
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +27 -17
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +6 -171
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +27 -17
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +37 -10
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +42 -16
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +76 -20
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +2 -31
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +38 -2
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +49 -13
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +6 -12
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +6 -47
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +31 -10
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +5 -8
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +8 -9
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +3 -13
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +17 -14
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +10 -9
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +5 -24
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +8 -12
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +102 -22
- package/dist/index247.cjs +1 -2
- package/dist/index247.js +110 -22
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +18 -13
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +170 -14
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +2 -2
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +16 -51
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +2 -2
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +3 -3
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +1 -1
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +2 -2
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +1 -1
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +5 -5
- package/dist/index258.cjs +1 -2
- package/dist/index258.js +3 -41
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +141 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +5 -5
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +155 -5
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +9 -10
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +110 -16
- package/dist/index263.cjs +2 -1
- package/dist/index263.js +134 -8
- package/dist/index264.cjs +2 -1
- package/dist/index264.js +41 -66
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +2 -66
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +5 -186
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +8 -20
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +17 -40
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +8 -76
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +2 -2
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +66 -40
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +64 -15
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +185 -12
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +21 -11
- package/dist/index274.cjs +1 -2
- package/dist/index274.js +42 -18
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +75 -13
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +40 -11
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +16 -16
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +12 -222
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +12 -6
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +3 -3
- package/dist/index280.cjs +2 -1
- package/dist/index280.js +19 -7
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +13 -25
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +11 -34
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +15 -17
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +213 -60
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +6 -67
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +7 -4
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +23 -137
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +34 -155
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +18 -9
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +16 -7
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +62 -105
- package/dist/index291.cjs +1 -2
- package/dist/index291.js +60 -127
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +2 -2
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +11 -68
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +19 -11
- package/dist/index297.cjs +2 -1
- package/dist/index297.js +65 -18
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +4 -642
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +40 -172
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +45 -31
- package/dist/index300.cjs +1 -2
- package/dist/index300.js +7 -66
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +62 -4
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +70 -33
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +4 -8
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +187 -55
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +68 -77
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +643 -4
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +159 -181
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +3 -3
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +9 -28
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +18 -16
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +120 -28
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +57 -41
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +23 -151
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +10 -35
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +18 -36
- package/dist/index38.cjs +1 -2
- package/dist/index38.js +6 -59
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +10 -32
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +32 -15
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +16 -8
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +17 -2
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +7 -26
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +32 -30
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +24 -3
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +21 -8
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +56 -66
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +38 -7
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +36 -27
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +161 -67
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +110 -18
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +28 -108
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +3 -60
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +2 -25
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +4 -41
- package/dist/index56.cjs +2 -1
- package/dist/index56.js +59 -37
- package/dist/index57.cjs +2 -1
- package/dist/index57.js +50 -54
- package/dist/index58.cjs +3 -1
- package/dist/index58.js +206 -156
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +13 -40
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +12 -9
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +24 -36
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +28 -9
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +44 -47
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +19 -85
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +10 -40
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +40 -8
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +8 -5
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +7 -17
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +31 -8
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +36 -13
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +36 -7
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +9 -9
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +25 -42
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +22 -13
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +85 -16
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +50 -13
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +23 -6
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +41 -35
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +17 -9
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +5 -7
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +32 -25
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +9 -10
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +12 -13
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +100 -106
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -80
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +6 -181
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +7 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +21 -13
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +8 -13
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +31 -93
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +13 -75
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +7 -88
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +9 -138
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +16 -69
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +73 -23
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +34 -108
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +46 -6
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +14 -50
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +11 -14
- package/package.json +1 -1
package/dist/index274.cjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index264.cjs");class n extends r.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class o extends r.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class a extends r.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}exports.InvalidAbiItemError=n;exports.UnknownSolidityTypeError=a;exports.UnknownTypeError=o;
|
package/dist/index274.js
CHANGED
|
@@ -1,21 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
import { BaseError as r } from "./index264.js";
|
|
2
|
+
class a extends r {
|
|
3
|
+
constructor({ signature: e }) {
|
|
4
|
+
super("Failed to parse ABI item.", {
|
|
5
|
+
details: `parseAbiItem(${JSON.stringify(e, null, 2)})`,
|
|
6
|
+
docsPath: "/api/human#parseabiitem-1"
|
|
7
|
+
}), Object.defineProperty(this, "name", {
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0,
|
|
11
|
+
value: "InvalidAbiItemError"
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
class o extends r {
|
|
16
|
+
constructor({ type: e }) {
|
|
17
|
+
super("Unknown type.", {
|
|
18
|
+
metaMessages: [
|
|
19
|
+
`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`
|
|
20
|
+
]
|
|
21
|
+
}), Object.defineProperty(this, "name", {
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
configurable: !0,
|
|
24
|
+
writable: !0,
|
|
25
|
+
value: "UnknownTypeError"
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
class i extends r {
|
|
30
|
+
constructor({ type: e }) {
|
|
31
|
+
super("Unknown type.", {
|
|
32
|
+
metaMessages: [`Type "${e}" is not a valid ABI type.`]
|
|
33
|
+
}), Object.defineProperty(this, "name", {
|
|
34
|
+
enumerable: !0,
|
|
35
|
+
configurable: !0,
|
|
36
|
+
writable: !0,
|
|
37
|
+
value: "UnknownSolidityTypeError"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
17
40
|
}
|
|
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>.+))?/;
|
|
19
41
|
export {
|
|
20
|
-
|
|
42
|
+
a as InvalidAbiItemError,
|
|
43
|
+
i as UnknownSolidityTypeError,
|
|
44
|
+
o as UnknownTypeError
|
|
21
45
|
};
|
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 t=require("./index264.cjs");class o extends t.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class n extends t.BaseError{constructor({param:e,name:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${r}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class s extends t.BaseError{constructor({param:e,type:r,modifier:i}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${i}" not allowed${r?` in "${r}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class l extends t.BaseError{constructor({param:e,type:r,modifier:i}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${i}" not allowed${r?` in "${r}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${i}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class d extends t.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}exports.InvalidAbiTypeParameterError=d;exports.InvalidFunctionModifierError=l;exports.InvalidModifierError=s;exports.InvalidParameterError=o;exports.SolidityProtectedKeywordError=n;
|
package/dist/index275.js
CHANGED
|
@@ -1,17 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { BaseError as t } from "./index264.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
|
+
});
|
|
12
71
|
}
|
|
13
|
-
return !0;
|
|
14
72
|
}
|
|
15
73
|
export {
|
|
16
|
-
|
|
74
|
+
u as InvalidAbiTypeParameterError,
|
|
75
|
+
d as InvalidFunctionModifierError,
|
|
76
|
+
l as InvalidModifierError,
|
|
77
|
+
n as InvalidParameterError,
|
|
78
|
+
s as SolidityProtectedKeywordError
|
|
17
79
|
};
|
package/dist/index276.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("./index264.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/index276.js
CHANGED
|
@@ -1,14 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { BaseError as r } from "./index264.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
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
class i extends r {
|
|
15
|
+
constructor({ signature: e }) {
|
|
16
|
+
super("Unknown signature.", {
|
|
17
|
+
details: e
|
|
18
|
+
}), Object.defineProperty(this, "name", {
|
|
19
|
+
enumerable: !0,
|
|
20
|
+
configurable: !0,
|
|
21
|
+
writable: !0,
|
|
22
|
+
value: "UnknownSignatureError"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
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", {
|
|
32
|
+
enumerable: !0,
|
|
33
|
+
configurable: !0,
|
|
34
|
+
writable: !0,
|
|
35
|
+
value: "InvalidStructSignatureError"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
10
38
|
}
|
|
11
39
|
export {
|
|
12
|
-
|
|
13
|
-
s as
|
|
40
|
+
u as InvalidSignatureError,
|
|
41
|
+
s as InvalidStructSignatureError,
|
|
42
|
+
i as UnknownSignatureError
|
|
14
43
|
};
|
package/dist/index277.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("./index264.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/index277.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { BaseError as s } from "./index264.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", {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
configurable: !0,
|
|
12
|
+
writable: !0,
|
|
13
|
+
value: "InvalidParenthesisError"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
15
16
|
}
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
-
i as getHash
|
|
18
|
+
n as InvalidParenthesisError
|
|
19
19
|
};
|
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 r=require("./index264.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/index278.js
CHANGED
|
@@ -1,226 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
throw new Error("invalid modulus");
|
|
13
|
-
if (r === c)
|
|
14
|
-
return d;
|
|
15
|
-
let e = c;
|
|
16
|
-
for (; i > d; )
|
|
17
|
-
i & c && (e = e * t % r), t = t * t % r, i >>= c;
|
|
18
|
-
return e;
|
|
19
|
-
}
|
|
20
|
-
function V(t, i, r) {
|
|
21
|
-
let e = t;
|
|
22
|
-
for (; i-- > d; )
|
|
23
|
-
e *= e, e %= r;
|
|
24
|
-
return e;
|
|
25
|
-
}
|
|
26
|
-
function I(t, i) {
|
|
27
|
-
if (t === d)
|
|
28
|
-
throw new Error("invert: expected non-zero number");
|
|
29
|
-
if (i <= d)
|
|
30
|
-
throw new Error("invert: expected positive modulus, got " + i);
|
|
31
|
-
let r = g(t, i), e = i, s = d, u = c;
|
|
32
|
-
for (; r !== d; ) {
|
|
33
|
-
const o = e / r, n = e % r, l = s - u * o;
|
|
34
|
-
e = r, r = n, s = u, u = l;
|
|
35
|
-
}
|
|
36
|
-
if (e !== c)
|
|
37
|
-
throw new Error("invert: does not exist");
|
|
38
|
-
return g(s, i);
|
|
39
|
-
}
|
|
40
|
-
function j(t) {
|
|
41
|
-
const i = (t - c) / w;
|
|
42
|
-
let r, e, s;
|
|
43
|
-
for (r = t - c, e = 0; r % w === d; r /= w, e++)
|
|
44
|
-
;
|
|
45
|
-
for (s = w; s < t && Z(s, i, t) !== t - c; s++)
|
|
46
|
-
if (s > 1e3)
|
|
47
|
-
throw new Error("Cannot find square root: likely non-prime P");
|
|
48
|
-
if (e === 1) {
|
|
49
|
-
const f = (t + c) / b;
|
|
50
|
-
return function(n, l) {
|
|
51
|
-
const h = n.pow(l, f);
|
|
52
|
-
if (!n.eql(n.sqr(h), l))
|
|
53
|
-
throw new Error("Cannot find square root");
|
|
54
|
-
return h;
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
const u = (r + c) / w;
|
|
58
|
-
return function(o, n) {
|
|
59
|
-
if (o.pow(n, i) === o.neg(o.ONE))
|
|
60
|
-
throw new Error("Cannot find square root");
|
|
61
|
-
let l = e, h = o.pow(o.mul(o.ONE, s), r), v = o.pow(n, u), a = o.pow(n, r);
|
|
62
|
-
for (; !o.eql(a, o.ONE); ) {
|
|
63
|
-
if (o.eql(a, o.ZERO))
|
|
64
|
-
return o.ZERO;
|
|
65
|
-
let q = 1;
|
|
66
|
-
for (let B = o.sqr(a); q < l && !o.eql(B, o.ONE); q++)
|
|
67
|
-
B = o.sqr(B);
|
|
68
|
-
const E = o.pow(h, c << BigInt(l - q - 1));
|
|
69
|
-
h = o.sqr(E), v = o.mul(v, E), a = o.mul(a, h), l = q;
|
|
70
|
-
}
|
|
71
|
-
return v;
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function z(t) {
|
|
75
|
-
if (t % b === C) {
|
|
76
|
-
const i = (t + c) / b;
|
|
77
|
-
return function(e, s) {
|
|
78
|
-
const u = e.pow(s, i);
|
|
79
|
-
if (!e.eql(e.sqr(u), s))
|
|
80
|
-
throw new Error("Cannot find square root");
|
|
81
|
-
return u;
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
if (t % m === N) {
|
|
85
|
-
const i = (t - N) / m;
|
|
86
|
-
return function(e, s) {
|
|
87
|
-
const u = e.mul(s, w), f = e.pow(u, i), o = e.mul(s, f), n = e.mul(e.mul(o, w), f), l = e.mul(o, e.sub(n, e.ONE));
|
|
88
|
-
if (!e.eql(e.sqr(l), s))
|
|
89
|
-
throw new Error("Cannot find square root");
|
|
90
|
-
return l;
|
|
91
|
-
};
|
|
1
|
+
import { BaseError as r } from "./index264.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
|
+
});
|
|
92
12
|
}
|
|
93
|
-
return j(t);
|
|
94
|
-
}
|
|
95
|
-
const A = [
|
|
96
|
-
"create",
|
|
97
|
-
"isValid",
|
|
98
|
-
"is0",
|
|
99
|
-
"neg",
|
|
100
|
-
"inv",
|
|
101
|
-
"sqrt",
|
|
102
|
-
"sqr",
|
|
103
|
-
"eql",
|
|
104
|
-
"add",
|
|
105
|
-
"sub",
|
|
106
|
-
"mul",
|
|
107
|
-
"pow",
|
|
108
|
-
"div",
|
|
109
|
-
"addN",
|
|
110
|
-
"subN",
|
|
111
|
-
"mulN",
|
|
112
|
-
"sqrN"
|
|
113
|
-
];
|
|
114
|
-
function Y(t) {
|
|
115
|
-
const i = {
|
|
116
|
-
ORDER: "bigint",
|
|
117
|
-
MASK: "bigint",
|
|
118
|
-
BYTES: "isSafeInteger",
|
|
119
|
-
BITS: "isSafeInteger"
|
|
120
|
-
}, r = A.reduce((e, s) => (e[s] = "function", e), i);
|
|
121
|
-
return M(t, r);
|
|
122
|
-
}
|
|
123
|
-
function k(t, i, r) {
|
|
124
|
-
if (r < d)
|
|
125
|
-
throw new Error("invalid exponent, negatives unsupported");
|
|
126
|
-
if (r === d)
|
|
127
|
-
return t.ONE;
|
|
128
|
-
if (r === c)
|
|
129
|
-
return i;
|
|
130
|
-
let e = t.ONE, s = i;
|
|
131
|
-
for (; r > d; )
|
|
132
|
-
r & c && (e = t.mul(e, s)), s = t.sqr(s), r >>= c;
|
|
133
|
-
return e;
|
|
134
|
-
}
|
|
135
|
-
function H(t, i) {
|
|
136
|
-
const r = new Array(i.length), e = i.reduce((u, f, o) => t.is0(f) ? u : (r[o] = u, t.mul(u, f)), t.ONE), s = t.inv(e);
|
|
137
|
-
return i.reduceRight((u, f, o) => t.is0(f) ? u : (r[o] = t.mul(u, r[o]), t.mul(u, f)), s), r;
|
|
138
|
-
}
|
|
139
|
-
function K(t, i) {
|
|
140
|
-
const r = i !== void 0 ? i : t.toString(2).length, e = Math.ceil(r / 8);
|
|
141
|
-
return { nBitLength: r, nByteLength: e };
|
|
142
|
-
}
|
|
143
|
-
function p(t, i, r = !1, e = {}) {
|
|
144
|
-
if (t <= d)
|
|
145
|
-
throw new Error("invalid field: expected ORDER > 0, got " + t);
|
|
146
|
-
const { nBitLength: s, nByteLength: u } = K(t, i);
|
|
147
|
-
if (u > 2048)
|
|
148
|
-
throw new Error("invalid field: expected ORDER of <= 2048 bytes");
|
|
149
|
-
let f;
|
|
150
|
-
const o = Object.freeze({
|
|
151
|
-
ORDER: t,
|
|
152
|
-
isLE: r,
|
|
153
|
-
BITS: s,
|
|
154
|
-
BYTES: u,
|
|
155
|
-
MASK: _(s),
|
|
156
|
-
ZERO: d,
|
|
157
|
-
ONE: c,
|
|
158
|
-
create: (n) => g(n, t),
|
|
159
|
-
isValid: (n) => {
|
|
160
|
-
if (typeof n != "bigint")
|
|
161
|
-
throw new Error("invalid field element: expected bigint, got " + typeof n);
|
|
162
|
-
return d <= n && n < t;
|
|
163
|
-
},
|
|
164
|
-
is0: (n) => n === d,
|
|
165
|
-
isOdd: (n) => (n & c) === c,
|
|
166
|
-
neg: (n) => g(-n, t),
|
|
167
|
-
eql: (n, l) => n === l,
|
|
168
|
-
sqr: (n) => g(n * n, t),
|
|
169
|
-
add: (n, l) => g(n + l, t),
|
|
170
|
-
sub: (n, l) => g(n - l, t),
|
|
171
|
-
mul: (n, l) => g(n * l, t),
|
|
172
|
-
pow: (n, l) => k(o, n, l),
|
|
173
|
-
div: (n, l) => g(n * I(l, t), t),
|
|
174
|
-
// Same as above, but doesn't normalize
|
|
175
|
-
sqrN: (n) => n * n,
|
|
176
|
-
addN: (n, l) => n + l,
|
|
177
|
-
subN: (n, l) => n - l,
|
|
178
|
-
mulN: (n, l) => n * l,
|
|
179
|
-
inv: (n) => I(n, t),
|
|
180
|
-
sqrt: e.sqrt || ((n) => (f || (f = z(t)), f(o, n))),
|
|
181
|
-
invertBatch: (n) => H(o, n),
|
|
182
|
-
// TODO: do we really need constant cmov?
|
|
183
|
-
// We don't have const-time bigints anyway, so probably will be not very useful
|
|
184
|
-
cmov: (n, l, h) => h ? l : n,
|
|
185
|
-
toBytes: (n) => r ? S(n, u) : x(n, u),
|
|
186
|
-
fromBytes: (n) => {
|
|
187
|
-
if (n.length !== u)
|
|
188
|
-
throw new Error("Field.fromBytes: expected " + u + " bytes, got " + n.length);
|
|
189
|
-
return r ? y(n) : L(n);
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
return Object.freeze(o);
|
|
193
|
-
}
|
|
194
|
-
function T(t) {
|
|
195
|
-
if (typeof t != "bigint")
|
|
196
|
-
throw new Error("field order must be bigint");
|
|
197
|
-
const i = t.toString(2).length;
|
|
198
|
-
return Math.ceil(i / 8);
|
|
199
|
-
}
|
|
200
|
-
function O(t) {
|
|
201
|
-
const i = T(t);
|
|
202
|
-
return i + Math.ceil(i / 2);
|
|
203
|
-
}
|
|
204
|
-
function G(t, i, r = !1) {
|
|
205
|
-
const e = t.length, s = T(i), u = O(i);
|
|
206
|
-
if (e < 16 || e < u || e > 1024)
|
|
207
|
-
throw new Error("expected " + u + "-1024 bytes of input, got " + e);
|
|
208
|
-
const f = r ? y(t) : L(t), o = g(f, i - c) + c;
|
|
209
|
-
return r ? S(o, s) : x(o, s);
|
|
210
13
|
}
|
|
211
14
|
export {
|
|
212
|
-
|
|
213
|
-
H as FpInvertBatch,
|
|
214
|
-
k as FpPow,
|
|
215
|
-
z as FpSqrt,
|
|
216
|
-
T as getFieldBytesLength,
|
|
217
|
-
O as getMinHashLength,
|
|
218
|
-
I as invert,
|
|
219
|
-
G as mapHashToField,
|
|
220
|
-
g as mod,
|
|
221
|
-
K as nLength,
|
|
222
|
-
Z as pow,
|
|
223
|
-
V as pow2,
|
|
224
|
-
j as tonelliShanks,
|
|
225
|
-
Y as validateField
|
|
15
|
+
a as CircularReferenceError
|
|
226
16
|
};
|
package/dist/index279.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/index279.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
function r() {
|
|
2
|
+
return {
|
|
3
|
+
current: 0,
|
|
4
|
+
take() {
|
|
5
|
+
return this.current++;
|
|
6
|
+
},
|
|
7
|
+
reset() {
|
|
8
|
+
this.current = 0;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
6
11
|
}
|
|
12
|
+
const t = /* @__PURE__ */ r();
|
|
7
13
|
export {
|
|
8
|
-
|
|
14
|
+
t as idCache
|
|
9
15
|
};
|
package/dist/index28.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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("./index295.cjs"),M=require("./index132.cjs"),h=require("./index296.cjs");function R(r){const{chainId:o,domain:s,expirationTime:l,issuedAt:m=new Date,nonce:a,notBefore:f,requestId:w,resources:g,scheme:i,uri:c,version:d}=r;{if(o!==Math.floor(o))throw new e.SiweInvalidMessageFieldError({field:"chainId",metaMessages:["- Chain ID must be a EIP-155 chain ID.","- See https://eips.ethereum.org/EIPS/eip-155","",`Provided value: ${o}`]});if(!(E.test(s)||F.test(s)||b.test(s)))throw new e.SiweInvalidMessageFieldError({field:"domain",metaMessages:["- Domain must be an RFC 3986 authority.","- See https://www.rfc-editor.org/rfc/rfc3986","",`Provided value: ${s}`]});if(!A.test(a))throw new e.SiweInvalidMessageFieldError({field:"nonce",metaMessages:["- Nonce must be at least 8 characters.","- Nonce must be alphanumeric.","",`Provided value: ${a}`]});if(!h.isUri(c))throw new e.SiweInvalidMessageFieldError({field:"uri",metaMessages:["- URI must be a RFC 3986 URI referring to the resource that is the subject of the signing.","- See https://www.rfc-editor.org/rfc/rfc3986","",`Provided value: ${c}`]});if(d!=="1")throw new e.SiweInvalidMessageFieldError({field:"version",metaMessages:["- Version must be '1'.","",`Provided value: ${d}`]});if(i&&!P.test(i))throw new e.SiweInvalidMessageFieldError({field:"scheme",metaMessages:["- Scheme must be an RFC 3986 URI scheme.","- See https://www.rfc-editor.org/rfc/rfc3986#section-3.1","",`Provided value: ${i}`]});const t=r.statement;if(t!=null&&t.includes(`
|
|
2
2
|
`))throw new e.SiweInvalidMessageFieldError({field:"statement",metaMessages:["- Statement must not include '\\n'.","",`Provided value: ${t}`]})}const $=M.getAddress(r.address),v=i?`${i}://${s}`:s,I=r.statement?`${r.statement}
|
|
3
3
|
`:"",S=`${v} wants you to sign in with your Ethereum account:
|
|
4
4
|
${$}
|
package/dist/index28.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SiweInvalidMessageFieldError as e } from "./
|
|
2
|
-
import { getAddress as S } from "./
|
|
3
|
-
import { isUri as $ } from "./
|
|
1
|
+
import { SiweInvalidMessageFieldError as e } from "./index295.js";
|
|
2
|
+
import { getAddress as S } from "./index132.js";
|
|
3
|
+
import { isUri as $ } from "./index296.js";
|
|
4
4
|
function C(n) {
|
|
5
5
|
const { chainId: i, domain: s, expirationTime: u, issuedAt: g = /* @__PURE__ */ new Date(), nonce: a, notBefore: m, requestId: h, resources: w, scheme: o, uri: c, version: f } = n;
|
|
6
6
|
{
|
package/dist/index280.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
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/index280.js
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const m = (
|
|
4
|
-
|
|
5
|
-
return
|
|
6
|
-
|
|
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
|
+
};
|
|
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>.+))?/;
|
|
7
19
|
export {
|
|
8
|
-
|
|
20
|
+
A as parseSiweMessage
|
|
9
21
|
};
|
package/dist/index281.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index222.cjs"),f=require("./index149.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;
|