@gardenfi/utils 2.1.2-beta.12 → 2.1.2-beta.13
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 +12 -15
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +104 -60
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +8 -11
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +6 -13
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +7 -8
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +21 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +8 -26
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +31 -9
- package/dist/index108.cjs +1 -3
- package/dist/index108.js +13 -110
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +7 -51
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +9 -24
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +16 -115
- package/dist/index112.cjs +1 -20
- package/dist/index112.js +72 -325
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +35 -80
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +46 -30
- package/dist/index115.cjs +1 -4
- package/dist/index115.js +10 -190
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +13 -24
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +7 -179
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +16 -12
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +64 -23
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +12 -3
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +13 -88
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +8 -32
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +10 -15
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +27 -2
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +9 -75
- package/dist/index126.cjs +3 -1
- package/dist/index126.js +109 -137
- package/dist/index127.cjs +1 -3
- package/dist/index127.js +51 -451
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +23 -61
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +115 -6
- package/dist/index130.cjs +20 -1
- package/dist/index130.js +325 -68
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +80 -5
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +30 -21
- package/dist/index133.cjs +4 -1
- package/dist/index133.js +194 -3
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +24 -10
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +176 -42
- package/dist/index136.cjs +1 -2
- package/dist/index136.js +11 -23
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +24 -13
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +3 -27
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +88 -7
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +32 -38
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +15 -8
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +2 -10
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +75 -15
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +132 -87
- package/dist/index145.cjs +3 -1
- package/dist/index145.js +451 -20
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +62 -4
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +6 -6
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +68 -25
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +5 -9
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +3 -8
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +10 -10
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +47 -11
- package/dist/index153.cjs +2 -1
- package/dist/index153.js +23 -12
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +13 -14
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +26 -7
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +7 -21
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +38 -6
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +8 -21
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +8 -39
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +15 -17
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +92 -20
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +19 -79
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +4 -44
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +5 -10
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +26 -52
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +9 -3
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +8 -5
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +10 -5
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +11 -11
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +13 -13
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +14 -13
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +7 -5
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +21 -13
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +6 -103
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +21 -6
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +38 -149
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +16 -34
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +20 -30
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +79 -8
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -8
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +42 -66
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +11 -9
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +51 -70
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +3 -19
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +5 -110
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +5 -23
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +11 -50
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +13 -106
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +14 -9
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +7 -2
- package/dist/index190.cjs +1 -2
- package/dist/index190.js +152 -3
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +35 -13
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +31 -4
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +10 -2
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +69 -32
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +8 -20
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +71 -5
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +19 -5
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +110 -5
- package/dist/index199.cjs +1 -9
- package/dist/index199.js +23 -35
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +51 -3
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +105 -25
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +9 -34
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +2 -36
- package/dist/index204.cjs +2 -1
- package/dist/index204.js +3 -9
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +13 -12
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +4 -18
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +2 -28
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +32 -9
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +21 -55
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +5 -8
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +5 -7
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +5 -18
- package/dist/index213.cjs +9 -1
- package/dist/index213.js +28 -154
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +3 -128
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +22 -34
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +30 -24
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +33 -189
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +9 -4
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +19 -3
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +8 -8
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +21 -14
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +8 -16
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +7 -11
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +16 -32
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +162 -3
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +126 -26
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +37 -24
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +27 -28
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +191 -6
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +4 -24
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -2
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +3 -38
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +18 -40
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +16 -78
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +35 -2
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +3 -38
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +25 -47
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +25 -6
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +28 -6
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +22 -31
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +43 -5
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +5 -5
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +78 -8
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +2 -4
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +37 -17
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +49 -10
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +6 -5
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +6 -8
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +30 -102
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +5 -113
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +8 -18
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +3 -171
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +3 -3
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +17 -17
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +10 -25
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +5 -13
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +8 -15
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +104 -5
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +112 -13
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +18 -10
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +17 -16
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +27 -2
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +36 -138
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +13 -110
- package/dist/index261.cjs +1 -2
- package/dist/index261.js +213 -124
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +3 -155
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +138 -7
- package/dist/index264.cjs +1 -2
- package/dist/index264.js +139 -25
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +10 -2
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +113 -5
- package/dist/index267.cjs +2 -1
- package/dist/index267.js +133 -9
- package/dist/index268.cjs +2 -1
- package/dist/index268.js +40 -18
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +2 -9
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +5 -66
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +9 -64
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +17 -184
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +8 -22
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +66 -42
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +61 -72
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +181 -35
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +21 -15
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +34 -5
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +77 -13
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.cjs +1 -2
- package/dist/index280.js +40 -18
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +15 -12
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +13 -11
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +10 -14
- package/dist/index284.cjs +2 -1
- package/dist/index284.js +17 -222
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +13 -6
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +12 -7
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +6 -26
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +7 -35
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +25 -17
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +37 -16
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +34 -70
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +16 -65
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +69 -10
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +66 -18
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +17 -27
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +2 -39
- package/dist/index296.cjs +1 -2
- package/dist/index296.js +38 -64
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +642 -7
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +201 -57
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +166 -71
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +3 -3
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +12 -4
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +19 -194
- package/dist/index302.cjs +2 -1
- package/dist/index302.js +66 -4
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +4 -40
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +40 -68
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +8 -2
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +59 -37
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +69 -634
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +4 -207
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +181 -159
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +25 -10
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +68 -18
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +63 -4
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +42 -102
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +4 -63
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +105 -5
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +5 -45
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +6 -18
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +13 -123
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +15 -60
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +5 -23
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +13 -10
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +10 -20
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +12 -6
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +11 -10
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +13 -32
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +33 -16
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +54 -15
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +16 -7
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +5 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +8 -24
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +169 -20
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +101 -56
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +3 -40
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +21 -37
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +15 -161
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +10 -111
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +18 -3
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +124 -2
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +61 -4
- package/dist/index55.cjs +1 -2
- package/dist/index55.js +22 -58
- package/dist/index56.cjs +1 -2
- package/dist/index56.js +10 -54
- package/dist/index57.cjs +1 -3
- package/dist/index57.js +17 -212
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +6 -13
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +10 -12
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +31 -23
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +16 -28
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +15 -46
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +7 -19
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +32 -10
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +21 -37
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +21 -8
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +58 -7
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +40 -31
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +37 -36
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +160 -34
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +111 -9
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +2 -30
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +4 -23
- package/dist/index74.cjs +2 -1
- package/dist/index74.js +58 -84
- package/dist/index75.cjs +2 -1
- package/dist/index75.js +50 -46
- package/dist/index76.cjs +3 -1
- package/dist/index76.js +208 -16
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +13 -41
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +12 -17
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +24 -6
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +27 -32
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +47 -9
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +19 -13
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +10 -108
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +40 -8
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -5
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +7 -7
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +29 -19
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +36 -8
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +34 -29
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +9 -13
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +29 -7
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +22 -9
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +85 -16
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +47 -70
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +23 -35
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +38 -43
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +17 -14
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +6 -13
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +9 -9
- package/package.json +1 -1
package/dist/index244.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
|
|
1
|
+
import { bytesToHex as i } from "./index30.js";
|
|
2
|
+
import { sha256 as m } from "./index245.js";
|
|
3
|
+
function f(t) {
|
|
4
|
+
const { commitment: e, version: s = 1 } = t, n = t.to ?? (typeof e == "string" ? "hex" : "bytes"), o = m(e);
|
|
5
|
+
return o.set([s], 0), n === "bytes" ? o : i(o);
|
|
5
6
|
}
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
f as commitmentToVersionedHash
|
|
8
9
|
};
|
package/dist/index245.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index255.cjs"),s=require("./index183.cjs"),r=require("./index42.cjs");function o(t,i){return e.sha256(s.isHex(t,{strict:!1})?r.toBytes(t):t)}exports.sha256=o;
|
package/dist/index245.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const t = typeof r == "string" ? o(r) : typeof r.raw == "string" ? r.raw : p(r.raw), i = o(`${e}${f(t)}`);
|
|
7
|
-
return n([i, t]);
|
|
1
|
+
import { sha256 as o } from "./index255.js";
|
|
2
|
+
import { isHex as s } from "./index183.js";
|
|
3
|
+
import { toBytes as r } from "./index42.js";
|
|
4
|
+
function p(t, i) {
|
|
5
|
+
return o(s(t, { strict: !1 }) ? r(t) : t);
|
|
8
6
|
}
|
|
9
7
|
export {
|
|
10
|
-
|
|
8
|
+
p as sha256
|
|
11
9
|
};
|
package/dist/index246.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index247.cjs"),y=require("./index242.cjs"),u=require("./index225.cjs"),B=require("./index206.cjs"),h=require("./index42.cjs"),d=require("./index30.cjs");function f(t){const a=t.to??(typeof t.data=="string"?"hex":"bytes"),n=typeof t.data=="string"?h.hexToBytes(t.data):t.data,s=B.size(n);if(!s)throw new y.EmptyBlobError;if(s>o.maxBytesPerTransaction)throw new y.BlobSizeTooLargeError({maxSize:o.maxBytesPerTransaction,size:s});const r=[];let b=!0,i=0;for(;b;){const e=u.createCursor(new Uint8Array(o.bytesPerBlob));let l=0;for(;l<o.fieldElementsPerBlob;){const c=n.slice(i,i+(o.bytesPerFieldElement-1));if(e.pushByte(0),e.pushBytes(c),c.length<31){e.pushByte(128),b=!1;break}l++,i+=31}r.push(e)}return a==="bytes"?r.map(e=>e.bytes):r.map(e=>d.bytesToHex(e.bytes))}exports.toBlobs=f;
|
package/dist/index246.js
CHANGED
|
@@ -1,107 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
for (let e = 0; e < 50; e += 10) {
|
|
29
|
-
for (let h = 0; h < 10; h++)
|
|
30
|
-
s[h] = i[e + h];
|
|
31
|
-
for (let h = 0; h < 10; h++)
|
|
32
|
-
i[e + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
|
|
1
|
+
import { maxBytesPerTransaction as y, fieldElementsPerBlob as a, bytesPerFieldElement as f, bytesPerBlob as p } from "./index247.js";
|
|
2
|
+
import { EmptyBlobError as c, BlobSizeTooLargeError as h } from "./index242.js";
|
|
3
|
+
import { createCursor as B } from "./index225.js";
|
|
4
|
+
import { size as u } from "./index206.js";
|
|
5
|
+
import { hexToBytes as x } from "./index42.js";
|
|
6
|
+
import { bytesToHex as d } from "./index30.js";
|
|
7
|
+
function S(e) {
|
|
8
|
+
const m = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), i = typeof e.data == "string" ? x(e.data) : e.data, o = u(i);
|
|
9
|
+
if (!o)
|
|
10
|
+
throw new c();
|
|
11
|
+
if (o > y)
|
|
12
|
+
throw new h({
|
|
13
|
+
maxSize: y,
|
|
14
|
+
size: o
|
|
15
|
+
});
|
|
16
|
+
const s = [];
|
|
17
|
+
let n = !0, r = 0;
|
|
18
|
+
for (; n; ) {
|
|
19
|
+
const t = B(new Uint8Array(p));
|
|
20
|
+
let l = 0;
|
|
21
|
+
for (; l < a; ) {
|
|
22
|
+
const b = i.slice(r, r + (f - 1));
|
|
23
|
+
if (t.pushByte(0), t.pushBytes(b), b.length < 31) {
|
|
24
|
+
t.pushByte(128), n = !1;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
l++, r += 31;
|
|
33
28
|
}
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
s.fill(0);
|
|
37
|
-
}
|
|
38
|
-
class p extends E {
|
|
39
|
-
// NOTE: we accept arguments in bytes instead of bits here.
|
|
40
|
-
constructor(t, s, n, o = !1, r = 24) {
|
|
41
|
-
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = s, this.outputLen = n, this.enableXOF = o, this.rounds = r, d(n), 0 >= this.blockLen || this.blockLen >= 200)
|
|
42
|
-
throw new Error("Sha3 supports only keccak-f1600 function");
|
|
43
|
-
this.state = new Uint8Array(200), this.state32 = U(this.state);
|
|
44
|
-
}
|
|
45
|
-
keccak() {
|
|
46
|
-
x || I(this.state32), D(this.state32, this.rounds), x || I(this.state32), this.posOut = 0, this.pos = 0;
|
|
47
|
-
}
|
|
48
|
-
update(t) {
|
|
49
|
-
k(this);
|
|
50
|
-
const { blockLen: s, state: n } = this;
|
|
51
|
-
t = P(t);
|
|
52
|
-
const o = t.length;
|
|
53
|
-
for (let r = 0; r < o; ) {
|
|
54
|
-
const e = Math.min(s - this.pos, o - r);
|
|
55
|
-
for (let h = 0; h < e; h++)
|
|
56
|
-
n[this.pos++] ^= t[r++];
|
|
57
|
-
this.pos === s && this.keccak();
|
|
58
|
-
}
|
|
59
|
-
return this;
|
|
60
|
-
}
|
|
61
|
-
finish() {
|
|
62
|
-
if (this.finished)
|
|
63
|
-
return;
|
|
64
|
-
this.finished = !0;
|
|
65
|
-
const { state: t, suffix: s, pos: n, blockLen: o } = this;
|
|
66
|
-
t[n] ^= s, s & 128 && n === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
|
|
67
|
-
}
|
|
68
|
-
writeInto(t) {
|
|
69
|
-
k(this, !1), B(t), this.finish();
|
|
70
|
-
const s = this.state, { blockLen: n } = this;
|
|
71
|
-
for (let o = 0, r = t.length; o < r; ) {
|
|
72
|
-
this.posOut >= n && this.keccak();
|
|
73
|
-
const e = Math.min(n - this.posOut, r - o);
|
|
74
|
-
t.set(s.subarray(this.posOut, this.posOut + e), o), this.posOut += e, o += e;
|
|
75
|
-
}
|
|
76
|
-
return t;
|
|
77
|
-
}
|
|
78
|
-
xofInto(t) {
|
|
79
|
-
if (!this.enableXOF)
|
|
80
|
-
throw new Error("XOF is not possible for this instance");
|
|
81
|
-
return this.writeInto(t);
|
|
82
|
-
}
|
|
83
|
-
xof(t) {
|
|
84
|
-
return d(t), this.xofInto(new Uint8Array(t));
|
|
85
|
-
}
|
|
86
|
-
digestInto(t) {
|
|
87
|
-
if (A(t, this), this.finished)
|
|
88
|
-
throw new Error("digest() was already called");
|
|
89
|
-
return this.writeInto(t), this.destroy(), t;
|
|
90
|
-
}
|
|
91
|
-
digest() {
|
|
92
|
-
return this.digestInto(new Uint8Array(this.outputLen));
|
|
93
|
-
}
|
|
94
|
-
destroy() {
|
|
95
|
-
this.destroyed = !0, this.state.fill(0);
|
|
96
|
-
}
|
|
97
|
-
_cloneInto(t) {
|
|
98
|
-
const { blockLen: s, suffix: n, outputLen: o, rounds: r, enableXOF: e } = this;
|
|
99
|
-
return t || (t = new p(s, n, o, e, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = n, t.outputLen = o, t.enableXOF = e, t.destroyed = this.destroyed, t;
|
|
29
|
+
s.push(t);
|
|
100
30
|
}
|
|
31
|
+
return m === "bytes" ? s.map((t) => t.bytes) : s.map((t) => d(t.bytes));
|
|
101
32
|
}
|
|
102
|
-
const G = (i, t, s) => X(() => new p(t, i, s)), Q = /* @__PURE__ */ G(1, 136, 256 / 8);
|
|
103
33
|
export {
|
|
104
|
-
|
|
105
|
-
D as keccakP,
|
|
106
|
-
Q as keccak_256
|
|
34
|
+
S as toBlobs
|
|
107
35
|
};
|
package/dist/index247.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=6,s=32,e=4096,n=s*e,o=n*t-1-1*e*t;exports.bytesPerBlob=n;exports.bytesPerFieldElement=s;exports.fieldElementsPerBlob=e;exports.maxBytesPerTransaction=o;
|
package/dist/index247.js
CHANGED
|
@@ -1,115 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import { wrapConstructor as D, rotr as i } from "./index290.js";
|
|
3
|
-
const g = /* @__PURE__ */ new Uint32Array([
|
|
4
|
-
1116352408,
|
|
5
|
-
1899447441,
|
|
6
|
-
3049323471,
|
|
7
|
-
3921009573,
|
|
8
|
-
961987163,
|
|
9
|
-
1508970993,
|
|
10
|
-
2453635748,
|
|
11
|
-
2870763221,
|
|
12
|
-
3624381080,
|
|
13
|
-
310598401,
|
|
14
|
-
607225278,
|
|
15
|
-
1426881987,
|
|
16
|
-
1925078388,
|
|
17
|
-
2162078206,
|
|
18
|
-
2614888103,
|
|
19
|
-
3248222580,
|
|
20
|
-
3835390401,
|
|
21
|
-
4022224774,
|
|
22
|
-
264347078,
|
|
23
|
-
604807628,
|
|
24
|
-
770255983,
|
|
25
|
-
1249150122,
|
|
26
|
-
1555081692,
|
|
27
|
-
1996064986,
|
|
28
|
-
2554220882,
|
|
29
|
-
2821834349,
|
|
30
|
-
2952996808,
|
|
31
|
-
3210313671,
|
|
32
|
-
3336571891,
|
|
33
|
-
3584528711,
|
|
34
|
-
113926993,
|
|
35
|
-
338241895,
|
|
36
|
-
666307205,
|
|
37
|
-
773529912,
|
|
38
|
-
1294757372,
|
|
39
|
-
1396182291,
|
|
40
|
-
1695183700,
|
|
41
|
-
1986661051,
|
|
42
|
-
2177026350,
|
|
43
|
-
2456956037,
|
|
44
|
-
2730485921,
|
|
45
|
-
2820302411,
|
|
46
|
-
3259730800,
|
|
47
|
-
3345764771,
|
|
48
|
-
3516065817,
|
|
49
|
-
3600352804,
|
|
50
|
-
4094571909,
|
|
51
|
-
275423344,
|
|
52
|
-
430227734,
|
|
53
|
-
506948616,
|
|
54
|
-
659060556,
|
|
55
|
-
883997877,
|
|
56
|
-
958139571,
|
|
57
|
-
1322822218,
|
|
58
|
-
1537002063,
|
|
59
|
-
1747873779,
|
|
60
|
-
1955562222,
|
|
61
|
-
2024104815,
|
|
62
|
-
2227730452,
|
|
63
|
-
2361852424,
|
|
64
|
-
2428436474,
|
|
65
|
-
2756734187,
|
|
66
|
-
3204031479,
|
|
67
|
-
3329325298
|
|
68
|
-
]), b = /* @__PURE__ */ new Uint32Array([
|
|
69
|
-
1779033703,
|
|
70
|
-
3144134277,
|
|
71
|
-
1013904242,
|
|
72
|
-
2773480762,
|
|
73
|
-
1359893119,
|
|
74
|
-
2600822924,
|
|
75
|
-
528734635,
|
|
76
|
-
1541459225
|
|
77
|
-
]), h = /* @__PURE__ */ new Uint32Array(64);
|
|
78
|
-
class w extends m {
|
|
79
|
-
constructor(o = 32) {
|
|
80
|
-
super(64, o, 8, !1), this.A = b[0] | 0, this.B = b[1] | 0, this.C = b[2] | 0, this.D = b[3] | 0, this.E = b[4] | 0, this.F = b[5] | 0, this.G = b[6] | 0, this.H = b[7] | 0;
|
|
81
|
-
}
|
|
82
|
-
get() {
|
|
83
|
-
const { A: o, B: r, C: t, D: s, E: a, F: f, G: c, H: e } = this;
|
|
84
|
-
return [o, r, t, s, a, f, c, e];
|
|
85
|
-
}
|
|
86
|
-
// prettier-ignore
|
|
87
|
-
set(o, r, t, s, a, f, c, e) {
|
|
88
|
-
this.A = o | 0, this.B = r | 0, this.C = t | 0, this.D = s | 0, this.E = a | 0, this.F = f | 0, this.G = c | 0, this.H = e | 0;
|
|
89
|
-
}
|
|
90
|
-
process(o, r) {
|
|
91
|
-
for (let x = 0; x < 16; x++, r += 4)
|
|
92
|
-
h[x] = o.getUint32(r, !1);
|
|
93
|
-
for (let x = 16; x < 64; x++) {
|
|
94
|
-
const A = h[x - 15], d = h[x - 2], C = i(A, 7) ^ i(A, 18) ^ A >>> 3, H = i(d, 17) ^ i(d, 19) ^ d >>> 10;
|
|
95
|
-
h[x] = H + h[x - 7] + C + h[x - 16] | 0;
|
|
96
|
-
}
|
|
97
|
-
let { A: t, B: s, C: a, D: f, E: c, F: e, G: n, H: l } = this;
|
|
98
|
-
for (let x = 0; x < 64; x++) {
|
|
99
|
-
const A = i(c, 6) ^ i(c, 11) ^ i(c, 25), d = l + A + p(c, e, n) + g[x] + h[x] | 0, H = (i(t, 2) ^ i(t, 13) ^ i(t, 22)) + u(t, s, a) | 0;
|
|
100
|
-
l = n, n = e, e = c, c = f + d | 0, f = a, a = s, s = t, t = d + H | 0;
|
|
101
|
-
}
|
|
102
|
-
t = t + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, f = f + this.D | 0, c = c + this.E | 0, e = e + this.F | 0, n = n + this.G | 0, l = l + this.H | 0, this.set(t, s, a, f, c, e, n, l);
|
|
103
|
-
}
|
|
104
|
-
roundClean() {
|
|
105
|
-
h.fill(0);
|
|
106
|
-
}
|
|
107
|
-
destroy() {
|
|
108
|
-
this.set(0, 0, 0, 0, 0, 0, 0, 0), this.buffer.fill(0);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
const G = /* @__PURE__ */ D(() => new w());
|
|
1
|
+
const e = 32, s = 4096, t = 131072, l = 761855;
|
|
112
2
|
export {
|
|
113
|
-
|
|
114
|
-
|
|
3
|
+
t as bytesPerBlob,
|
|
4
|
+
e as bytesPerFieldElement,
|
|
5
|
+
s as fieldElementsPerBlob,
|
|
6
|
+
l as maxBytesPerTransaction
|
|
115
7
|
};
|
package/dist/index248.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 n(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}exports.defineChain=n;
|
package/dist/index248.js
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (let o = 0; o < r.length; o++) {
|
|
9
|
-
const { address: i, storageKeys: e } = r[o];
|
|
10
|
-
for (let t = 0; t < e.length; t++)
|
|
11
|
-
if (e[t].length - 2 !== 64)
|
|
12
|
-
throw new l({ storageKey: e[t] });
|
|
13
|
-
if (!f(i, { strict: !1 }))
|
|
14
|
-
throw new s({ address: i });
|
|
15
|
-
n.push([i, e]);
|
|
16
|
-
}
|
|
17
|
-
return n;
|
|
1
|
+
function n(e) {
|
|
2
|
+
return {
|
|
3
|
+
formatters: void 0,
|
|
4
|
+
fees: void 0,
|
|
5
|
+
serializers: void 0,
|
|
6
|
+
...e
|
|
7
|
+
};
|
|
18
8
|
}
|
|
19
9
|
export {
|
|
20
|
-
|
|
10
|
+
n as defineChain
|
|
21
11
|
};
|
package/dist/index249.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function i(e){return new Promise(t=>setTimeout(t,e))}exports.wait=i;
|
package/dist/index249.js
CHANGED
|
@@ -1,174 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { blobsToCommitments as B } from "./index150.js";
|
|
4
|
-
import { blobsToProofs as V } from "./index151.js";
|
|
5
|
-
import { commitmentsToVersionedHashes as C } from "./index152.js";
|
|
6
|
-
import { toBlobSidecars as k } from "./index153.js";
|
|
7
|
-
import { concatHex as h } from "./index212.js";
|
|
8
|
-
import { trim as T } from "./index38.js";
|
|
9
|
-
import { toHex as o, bytesToHex as w } from "./index30.js";
|
|
10
|
-
import { toRlp as y } from "./index231.js";
|
|
11
|
-
import { assertTransactionEIP1559 as S, assertTransactionEIP2930 as _, assertTransactionEIP4844 as R, assertTransactionEIP7702 as Y, assertTransactionLegacy as j } from "./index232.js";
|
|
12
|
-
import { getTransactionType as q } from "./index154.js";
|
|
13
|
-
import { serializeAccessList as v } from "./index248.js";
|
|
14
|
-
function te(e, r) {
|
|
15
|
-
const i = q(e);
|
|
16
|
-
return i === "eip1559" ? K(e, r) : i === "eip2930" ? M(e, r) : i === "eip4844" ? J(e, r) : i === "eip7702" ? D(e, r) : N(e, r);
|
|
17
|
-
}
|
|
18
|
-
function D(e, r) {
|
|
19
|
-
const { authorizationList: i, chainId: s, gas: n, nonce: c, to: f, value: a, maxFeePerGas: x, maxPriorityFeePerGas: t, accessList: p, data: l } = e;
|
|
20
|
-
Y(e);
|
|
21
|
-
const d = v(p), m = g(i);
|
|
22
|
-
return h([
|
|
23
|
-
"0x04",
|
|
24
|
-
y([
|
|
25
|
-
o(s),
|
|
26
|
-
c ? o(c) : "0x",
|
|
27
|
-
t ? o(t) : "0x",
|
|
28
|
-
x ? o(x) : "0x",
|
|
29
|
-
n ? o(n) : "0x",
|
|
30
|
-
f ?? "0x",
|
|
31
|
-
a ? o(a) : "0x",
|
|
32
|
-
l ?? "0x",
|
|
33
|
-
d,
|
|
34
|
-
m,
|
|
35
|
-
...I(e, r)
|
|
36
|
-
])
|
|
37
|
-
]);
|
|
38
|
-
}
|
|
39
|
-
function J(e, r) {
|
|
40
|
-
const { chainId: i, gas: s, nonce: n, to: c, value: f, maxFeePerBlobGas: a, maxFeePerGas: x, maxPriorityFeePerGas: t, accessList: p, data: l } = e;
|
|
41
|
-
R(e);
|
|
42
|
-
let d = e.blobVersionedHashes, m = e.sidecars;
|
|
43
|
-
if (e.blobs && (typeof d > "u" || typeof m > "u")) {
|
|
44
|
-
const u = typeof e.blobs[0] == "string" ? e.blobs : e.blobs.map((P) => w(P)), z = e.kzg, b = B({
|
|
45
|
-
blobs: u,
|
|
46
|
-
kzg: z
|
|
47
|
-
});
|
|
48
|
-
if (typeof d > "u" && (d = C({
|
|
49
|
-
commitments: b
|
|
50
|
-
})), typeof m > "u") {
|
|
51
|
-
const P = V({ blobs: u, commitments: b, kzg: z });
|
|
52
|
-
m = k({ blobs: u, commitments: b, proofs: P });
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
const L = v(p), E = [
|
|
56
|
-
o(i),
|
|
57
|
-
n ? o(n) : "0x",
|
|
58
|
-
t ? o(t) : "0x",
|
|
59
|
-
x ? o(x) : "0x",
|
|
60
|
-
s ? o(s) : "0x",
|
|
61
|
-
c ?? "0x",
|
|
62
|
-
f ? o(f) : "0x",
|
|
63
|
-
l ?? "0x",
|
|
64
|
-
L,
|
|
65
|
-
a ? o(a) : "0x",
|
|
66
|
-
d ?? [],
|
|
67
|
-
...I(e, r)
|
|
68
|
-
], A = [], F = [], G = [];
|
|
69
|
-
if (m)
|
|
70
|
-
for (let u = 0; u < m.length; u++) {
|
|
71
|
-
const { blob: z, commitment: b, proof: P } = m[u];
|
|
72
|
-
A.push(z), F.push(b), G.push(P);
|
|
73
|
-
}
|
|
74
|
-
return h([
|
|
75
|
-
"0x03",
|
|
76
|
-
m ? (
|
|
77
|
-
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
78
|
-
y([E, A, F, G])
|
|
79
|
-
) : (
|
|
80
|
-
// If sidecars are disabled, standard envelope is used:
|
|
81
|
-
y(E)
|
|
82
|
-
)
|
|
83
|
-
]);
|
|
84
|
-
}
|
|
85
|
-
function K(e, r) {
|
|
86
|
-
const { chainId: i, gas: s, nonce: n, to: c, value: f, maxFeePerGas: a, maxPriorityFeePerGas: x, accessList: t, data: p } = e;
|
|
87
|
-
S(e);
|
|
88
|
-
const l = v(t), d = [
|
|
89
|
-
o(i),
|
|
90
|
-
n ? o(n) : "0x",
|
|
91
|
-
x ? o(x) : "0x",
|
|
92
|
-
a ? o(a) : "0x",
|
|
93
|
-
s ? o(s) : "0x",
|
|
94
|
-
c ?? "0x",
|
|
95
|
-
f ? o(f) : "0x",
|
|
96
|
-
p ?? "0x",
|
|
97
|
-
l,
|
|
98
|
-
...I(e, r)
|
|
99
|
-
];
|
|
100
|
-
return h([
|
|
101
|
-
"0x02",
|
|
102
|
-
y(d)
|
|
103
|
-
]);
|
|
104
|
-
}
|
|
105
|
-
function M(e, r) {
|
|
106
|
-
const { chainId: i, gas: s, data: n, nonce: c, to: f, value: a, accessList: x, gasPrice: t } = e;
|
|
107
|
-
_(e);
|
|
108
|
-
const p = v(x), l = [
|
|
109
|
-
o(i),
|
|
110
|
-
c ? o(c) : "0x",
|
|
111
|
-
t ? o(t) : "0x",
|
|
112
|
-
s ? o(s) : "0x",
|
|
113
|
-
f ?? "0x",
|
|
114
|
-
a ? o(a) : "0x",
|
|
115
|
-
n ?? "0x",
|
|
116
|
-
p,
|
|
117
|
-
...I(e, r)
|
|
118
|
-
];
|
|
119
|
-
return h([
|
|
120
|
-
"0x01",
|
|
121
|
-
y(l)
|
|
122
|
-
]);
|
|
123
|
-
}
|
|
124
|
-
function N(e, r) {
|
|
125
|
-
const { chainId: i = 0, gas: s, data: n, nonce: c, to: f, value: a, gasPrice: x } = e;
|
|
126
|
-
j(e);
|
|
127
|
-
let t = [
|
|
128
|
-
c ? o(c) : "0x",
|
|
129
|
-
x ? o(x) : "0x",
|
|
130
|
-
s ? o(s) : "0x",
|
|
131
|
-
f ?? "0x",
|
|
132
|
-
a ? o(a) : "0x",
|
|
133
|
-
n ?? "0x"
|
|
134
|
-
];
|
|
135
|
-
if (r) {
|
|
136
|
-
const p = (() => {
|
|
137
|
-
if (r.v >= 35n)
|
|
138
|
-
return (r.v - 35n) / 2n > 0 ? r.v : 27n + (r.v === 35n ? 0n : 1n);
|
|
139
|
-
if (i > 0)
|
|
140
|
-
return BigInt(i * 2) + BigInt(35n + r.v - 27n);
|
|
141
|
-
const m = 27n + (r.v === 27n ? 0n : 1n);
|
|
142
|
-
if (r.v !== m)
|
|
143
|
-
throw new H({ v: r.v });
|
|
144
|
-
return m;
|
|
145
|
-
})(), l = T(r.r), d = T(r.s);
|
|
146
|
-
t = [
|
|
147
|
-
...t,
|
|
148
|
-
o(p),
|
|
149
|
-
l === "0x00" ? "0x" : l,
|
|
150
|
-
d === "0x00" ? "0x" : d
|
|
151
|
-
];
|
|
152
|
-
} else i > 0 && (t = [
|
|
153
|
-
...t,
|
|
154
|
-
o(i),
|
|
155
|
-
"0x",
|
|
156
|
-
"0x"
|
|
157
|
-
]);
|
|
158
|
-
return y(t);
|
|
159
|
-
}
|
|
160
|
-
function I(e, r) {
|
|
161
|
-
const i = r ?? e, { v: s, yParity: n } = i;
|
|
162
|
-
if (typeof i.r > "u")
|
|
163
|
-
return [];
|
|
164
|
-
if (typeof i.s > "u")
|
|
165
|
-
return [];
|
|
166
|
-
if (typeof s > "u" && typeof n > "u")
|
|
167
|
-
return [];
|
|
168
|
-
const c = T(i.r), f = T(i.s);
|
|
169
|
-
return [typeof n == "number" ? n ? o(1) : "0x" : s === 0n ? "0x" : s === 1n ? o(1) : s === 27n ? "0x" : o(1), c === "0x00" ? "0x" : c, f === "0x00" ? "0x" : f];
|
|
1
|
+
async function n(e) {
|
|
2
|
+
return new Promise((t) => setTimeout(t, e));
|
|
170
3
|
}
|
|
171
4
|
export {
|
|
172
|
-
|
|
173
|
-
I as toYParitySignatureArray
|
|
5
|
+
n as wait
|
|
174
6
|
};
|
package/dist/index25.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("./index300.cjs"),M=require("./index49.cjs"),h=require("./index301.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/index25.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 "./index300.js";
|
|
2
|
+
import { getAddress as S } from "./index49.js";
|
|
3
|
+
import { isUri as $ } from "./index301.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/index250.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(n,{errorInstance:r=new Error("timed out"),timeout:i,signal:a}){return new Promise((l,e)=>{(async()=>{let o;try{const t=new AbortController;i>0&&(o=setTimeout(()=>{a&&t.abort()},i)),l(await n({signal:(t==null?void 0:t.signal)||null}))}catch(t){(t==null?void 0:t.name)==="AbortError"&&e(r),e(t)}finally{clearTimeout(o)}})()})}exports.withTimeout=u;
|
package/dist/index250.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
function u(r, { errorInstance: e = new Error("timed out"), timeout: i, signal: a }) {
|
|
2
|
+
return new Promise((l, n) => {
|
|
3
|
+
(async () => {
|
|
4
|
+
let o;
|
|
5
|
+
try {
|
|
6
|
+
const t = new AbortController();
|
|
7
|
+
i > 0 && (o = setTimeout(() => {
|
|
8
|
+
a && t.abort();
|
|
9
|
+
}, i)), l(await r({ signal: (t == null ? void 0 : t.signal) || null }));
|
|
10
|
+
} catch (t) {
|
|
11
|
+
(t == null ? void 0 : t.name) === "AbortError" && n(e), n(t);
|
|
12
|
+
} finally {
|
|
13
|
+
clearTimeout(o);
|
|
14
|
+
}
|
|
15
|
+
})();
|
|
16
|
+
});
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
u as withTimeout
|
|
20
20
|
};
|
package/dist/index251.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 o(r,i){let t=r.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(i,"0");let[l,e]=[t.slice(0,t.length-i),t.slice(t.length-i)];return e=e.replace(/(0+)$/,""),`${n?"-":""}${l||"0"}${e?`.${e}`:""}`}exports.formatUnits=o;
|