@gardenfi/utils 2.1.3-beta.18 → 2.1.3-beta.19
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/index.cjs +1 -1
- package/dist/index.js +35 -33
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +2 -124
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +6 -16
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +50 -10
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +16 -5
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +10 -10
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +5 -3
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +14 -26
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +3 -4
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +26 -6
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +4 -47
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +6 -123
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +114 -34
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +93 -6
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +121 -17
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +7 -17
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +19 -38
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +15 -19
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +35 -6
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +20 -5
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +10 -105
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +7 -3
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +107 -4
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +37 -19
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +3 -9
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +4 -2
- package/dist/index122.cjs +1 -2
- package/dist/index122.js +9 -3
- package/dist/index123.cjs +1 -20
- package/dist/index123.js +2 -327
- package/dist/index124.cjs +2 -1
- package/dist/index124.js +3 -14
- package/dist/index125.cjs +20 -1
- package/dist/index125.js +326 -4
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +14 -2
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +4 -7
- package/dist/index128.cjs +1 -3
- package/dist/index128.js +2 -216
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +8 -32
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +19 -134
- package/dist/index130.cjs +3 -1
- package/dist/index130.js +214 -20
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +32 -6
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +21 -73
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +5 -5
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +73 -5
- package/dist/index135.cjs +1 -9
- package/dist/index135.js +5 -35
- package/dist/index136.cjs +1 -3
- package/dist/index136.js +5 -110
- package/dist/index137.cjs +9 -1
- package/dist/index137.js +36 -3
- package/dist/index138.cjs +3 -1
- package/dist/index138.js +102 -15
- package/dist/index139.cjs +1 -3
- package/dist/index139.js +3 -452
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +137 -10
- package/dist/index140.cjs +1 -2
- package/dist/index140.js +14 -45
- package/dist/index141.cjs +3 -1
- package/dist/index141.js +440 -15
- package/dist/index142.cjs +2 -1
- package/dist/index142.js +43 -22
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +24 -33
- package/dist/index144.cjs +1 -4
- package/dist/index144.js +22 -183
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +33 -6
- package/dist/index146.cjs +4 -1
- package/dist/index146.js +190 -8
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +7 -17
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +10 -25
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +18 -8
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +15 -2
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +24 -52
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +8 -45
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +55 -8
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +45 -7
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +8 -16
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +7 -18
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +16 -21
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +17 -50
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +19 -9
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +50 -160
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +2 -35
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +11 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +158 -124
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +20 -37
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +127 -6
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +35 -24
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +6 -191
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +28 -4
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +185 -56
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +4 -3
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +59 -17
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +26 -18
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +3 -17
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +19 -22
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +16 -11
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +22 -33
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +12 -3
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +33 -17
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +3 -28
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +18 -36
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +27 -10
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +35 -24
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +14 -184
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +10 -28
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +24 -64
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +28 -9
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +63 -31
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +9 -24
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +32 -23
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +24 -3
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +24 -14
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +3 -103
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +14 -80
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +8 -8
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +103 -5
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +80 -6
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +5 -23
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +6 -37
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +27 -13
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +33 -41
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +13 -5
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +42 -11
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -19
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +11 -78
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +20 -2
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +74 -33
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +2 -112
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +27 -39
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +109 -30
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +49 -8
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +32 -6
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +8 -6
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +6 -11
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +6 -10
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +11 -13
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +9 -31
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +14 -5
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +32 -7
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +5 -9
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +7 -20
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +6 -29
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +19 -19
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +31 -3
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +16 -13
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +3 -10
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +17 -21
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +10 -22
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +21 -5
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +22 -5
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +5 -8
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +5 -104
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +8 -112
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +104 -18
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +3 -172
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +9 -9
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +15 -14
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +171 -10
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +16 -15
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +10 -22
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +17 -2
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +21 -12
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +30 -12
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +2 -48
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +13 -11
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +12 -7
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +26 -12
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +47 -9
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +11 -13
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +7 -14
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -9
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +13 -30
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +14 -24
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +9 -12
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +24 -24
- package/dist/index248.cjs +1 -2
- package/dist/index248.js +11 -23
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +24 -13
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +8 -58
- package/dist/index250.cjs +2 -1
- package/dist/index250.js +23 -14
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +13 -52
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +13 -23
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +52 -13
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +25 -15
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +13 -5
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +14 -12
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +5 -10
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +13 -16
- package/dist/index259.cjs +1 -2
- package/dist/index259.js +10 -41
- package/dist/index26.cjs +1 -16
- package/dist/index26.js +30 -113
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +17 -2
- package/dist/index261.cjs +2 -1
- package/dist/index261.js +41 -5
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +2 -11
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +5 -19
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +10 -8
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +19 -66
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +8 -65
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +56 -176
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +63 -20
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +181 -37
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +21 -75
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +22 -20
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +69 -9
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +34 -7
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +16 -12
- package/dist/index275.cjs +1 -2
- package/dist/index275.js +13 -18
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +12 -13
- package/dist/index277.cjs +2 -1
- package/dist/index277.js +18 -11
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +14 -16
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +11 -223
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +12 -31
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +103 -6
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +17 -7
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +213 -25
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +6 -34
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +7 -19
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +25 -69
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +17 -65
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +108 -3
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +3 -140
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +128 -143
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +57 -11
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +155 -9
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +7 -111
- package/dist/index292.cjs +1 -2
- package/dist/index292.js +95 -116
- package/dist/index293.cjs +2 -1
- package/dist/index293.js +130 -24
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +197 -29
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +41 -10
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +77 -18
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +2 -69
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +12 -2
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +19 -40
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +16 -12
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +12 -7
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +68 -642
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +647 -196
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +78 -73
- package/dist/index303.cjs +2 -2
- package/dist/index303.js +8 -8
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +1 -1
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +3 -3
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +2 -2
- package/dist/index31.cjs +16 -1
- package/dist/index31.js +113 -31
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +2 -2
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +62 -17
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +40 -59
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +4 -44
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +5 -5
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +2 -105
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +22 -5
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +7 -29
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +30 -15
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +24 -28
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +16 -44
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +32 -150
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +40 -31
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +148 -35
- package/dist/index39.cjs +1 -2
- package/dist/index39.js +34 -58
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +13 -13
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +38 -32
- package/dist/index41.cjs +2 -1
- package/dist/index41.js +59 -15
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +32 -8
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +16 -2
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +7 -25
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -32
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +45 -3
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +30 -8
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +3 -68
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +8 -8
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +67 -27
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +9 -71
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +26 -17
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +69 -108
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +19 -60
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +110 -24
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +51 -31
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +23 -36
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +28 -46
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +34 -159
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +5 -5
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +55 -37
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +164 -8
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +40 -36
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +7 -7
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +34 -48
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +9 -85
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +47 -38
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +85 -8
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +41 -6
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +8 -17
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +107 -17
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +6 -8
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +17 -13
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +8 -7
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +13 -9
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +7 -46
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +9 -13
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +46 -16
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +13 -13
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +15 -5
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +13 -35
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +8 -22
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +5 -8
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +34 -7
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +9 -26
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +8 -10
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +26 -9
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +10 -115
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +14 -80
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +109 -173
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +80 -6
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +181 -13
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +24 -2
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +5 -12
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +12 -92
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +13 -75
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +91 -84
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +68 -131
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +75 -56
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +138 -23
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +66 -106
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +23 -6
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +109 -50
- package/dist/src/index.d.ts +3 -1
- package/dist/src/lib/approve.d.ts +1 -1
- package/dist/src/lib/auth/apikey/apikey.d.ts +1 -1
- package/dist/src/lib/auth/auth.types.d.ts +1 -1
- package/dist/src/lib/auth/passkey/passkey.d.ts +1 -1
- package/dist/src/lib/auth/passkey/passkeyLogin.d.ts +3 -3
- package/dist/src/lib/auth/siwe/siwe.d.ts +1 -1
- package/dist/src/lib/blockNumber/blockNumber.d.ts +2 -9
- package/dist/src/lib/blockNumber/index.d.ts +1 -1
- package/dist/src/lib/fetcher.d.ts +45 -0
- package/dist/src/lib/retry.d.ts +16 -0
- package/dist/src/lib/safeParseJson.d.ts +7 -0
- package/dist/src/lib/tryCatch.d.ts +7 -0
- package/dist/src/lib/types.d.ts +3 -0
- package/dist/src/lib/utils.d.ts +2 -2
- package/package.json +1 -1
- package/dist/index317.cjs +0 -1
- package/dist/index317.js +0 -4
- package/dist/index318.cjs +0 -1
- package/dist/index318.js +0 -24
- package/dist/src/lib/localConfig.d.ts +0 -17
package/dist/index226.js
CHANGED
|
@@ -1,107 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
for (let i = 0, t = f, s = 1, n = 0; i < 24; i++) {
|
|
6
|
-
[s, n] = [n, (2 * s + 3 * n) % 5], y.push(2 * (5 * n + s)), b.push((i + 1) * (i + 2) / 2 % 64);
|
|
7
|
-
let o = M;
|
|
8
|
-
for (let r = 0; r < 7; r++)
|
|
9
|
-
t = (t << f ^ (t >> j) * q) % C, t & R && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
|
|
10
|
-
L.push(o);
|
|
1
|
+
import { keccak256 as o } from "./index154.js";
|
|
2
|
+
import { toPrefixedMessage as t } from "./index227.js";
|
|
3
|
+
function f(e, r) {
|
|
4
|
+
return o(t(e), r);
|
|
11
5
|
}
|
|
12
|
-
const [v, z] = /* @__PURE__ */ F(L, !0), O = (i, t, s) => s > 32 ? S(i, t, s) : H(i, t, s), w = (i, t, s) => s > 32 ? T(i, t, s) : m(i, t, s);
|
|
13
|
-
function D(i, t = 24) {
|
|
14
|
-
const s = new Uint32Array(10);
|
|
15
|
-
for (let n = 24 - t; n < 24; n++) {
|
|
16
|
-
for (let e = 0; e < 10; e++)
|
|
17
|
-
s[e] = i[e] ^ i[e + 10] ^ i[e + 20] ^ i[e + 30] ^ i[e + 40];
|
|
18
|
-
for (let e = 0; e < 10; e += 2) {
|
|
19
|
-
const h = (e + 8) % 10, l = (e + 2) % 10, u = s[l], c = s[l + 1], _ = O(u, c, 1) ^ s[h], g = w(u, c, 1) ^ s[h + 1];
|
|
20
|
-
for (let a = 0; a < 50; a += 10)
|
|
21
|
-
i[e + a] ^= _, i[e + a + 1] ^= g;
|
|
22
|
-
}
|
|
23
|
-
let o = i[2], r = i[3];
|
|
24
|
-
for (let e = 0; e < 24; e++) {
|
|
25
|
-
const h = b[e], l = O(o, r, h), u = w(o, r, h), c = y[e];
|
|
26
|
-
o = i[c], r = i[c + 1], i[c] = l, i[c + 1] = u;
|
|
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];
|
|
33
|
-
}
|
|
34
|
-
i[0] ^= v[n], i[1] ^= z[n];
|
|
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;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
const G = (i, t, s) => X(() => new p(t, i, s)), Q = /* @__PURE__ */ G(1, 136, 256 / 8);
|
|
103
6
|
export {
|
|
104
|
-
|
|
105
|
-
D as keccakP,
|
|
106
|
-
Q as keccak_256
|
|
7
|
+
f as hashMessage
|
|
107
8
|
};
|
package/dist/index227.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index124.cjs"),o=require("./index157.cjs"),s=require("./index127.cjs"),r=require("./index153.cjs");function c(e){const t=typeof e=="string"?r.stringToHex(e):typeof e.raw=="string"?e.raw:r.bytesToHex(e.raw),i=r.stringToHex(`${n.presignMessagePrefix}${s.size(t)}`);return o.concat([i,t])}exports.toPrefixedMessage=c;
|
package/dist/index227.js
CHANGED
|
@@ -1,115 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
}
|
|
1
|
+
import { presignMessagePrefix as e } from "./index124.js";
|
|
2
|
+
import { concat as n } from "./index157.js";
|
|
3
|
+
import { size as f } from "./index127.js";
|
|
4
|
+
import { stringToHex as o, bytesToHex as p } from "./index153.js";
|
|
5
|
+
function u(r) {
|
|
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]);
|
|
110
8
|
}
|
|
111
|
-
const G = /* @__PURE__ */ D(() => new w());
|
|
112
9
|
export {
|
|
113
|
-
|
|
114
|
-
G as sha256
|
|
10
|
+
u as toPrefixedMessage
|
|
115
11
|
};
|
package/dist/index228.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 f=require("./index286.cjs"),c=require("./index287.cjs"),A=BigInt(0),u=BigInt(1),H=BigInt(2),L=BigInt(7),S=BigInt(256),T=BigInt(113),O=[],y=[],w=[];for(let n=0,t=u,s=1,i=0;n<24;n++){[s,i]=[i,(2*s+3*i)%5],O.push(2*(5*i+s)),y.push((n+1)*(n+2)/2%64);let o=A;for(let r=0;r<7;r++)t=(t<<u^(t>>L)*T)%S,t&H&&(o^=u<<(u<<BigInt(r))-u);w.push(o)}const _=f.split(w,!0),F=_[0],X=_[1],I=(n,t,s)=>s>32?f.rotlBH(n,t,s):f.rotlSH(n,t,s),x=(n,t,s)=>s>32?f.rotlBL(n,t,s):f.rotlSL(n,t,s);function b(n,t=24){const s=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let e=0;e<10;e++)s[e]=n[e]^n[e+10]^n[e+20]^n[e+30]^n[e+40];for(let e=0;e<10;e+=2){const h=(e+8)%10,l=(e+2)%10,p=s[l],a=s[l+1],g=I(p,a,1)^s[h],B=x(p,a,1)^s[h+1];for(let d=0;d<50;d+=10)n[e+d]^=g,n[e+d+1]^=B}let o=n[2],r=n[3];for(let e=0;e<24;e++){const h=y[e],l=I(o,r,h),p=x(o,r,h),a=O[e];o=n[a],r=n[a+1],n[a]=l,n[a+1]=p}for(let e=0;e<50;e+=10){for(let h=0;h<10;h++)s[h]=n[e+h];for(let h=0;h<10;h++)n[e+h]^=~s[(h+2)%10]&s[(h+4)%10]}n[0]^=F[i],n[1]^=X[i]}c.clean(s)}class k extends c.Hash{constructor(t,s,i,o=!1,r=24){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=i,this.enableXOF=o,this.rounds=r,c.anumber(i),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=c.u32(this.state)}clone(){return this._cloneInto()}keccak(){c.swap32IfBE(this.state32),b(this.state32,this.rounds),c.swap32IfBE(this.state32),this.posOut=0,this.pos=0}update(t){c.aexists(this),t=c.toBytes(t),c.abytes(t);const{blockLen:s,state:i}=this,o=t.length;for(let r=0;r<o;){const e=Math.min(s-this.pos,o-r);for(let h=0;h<e;h++)i[this.pos++]^=t[r++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:s,pos:i,blockLen:o}=this;t[i]^=s,s&128&&i===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){c.aexists(this,!1),c.abytes(t),this.finish();const s=this.state,{blockLen:i}=this;for(let o=0,r=t.length;o<r;){this.posOut>=i&&this.keccak();const e=Math.min(i-this.posOut,r-o);t.set(s.subarray(this.posOut,this.posOut+e),o),this.posOut+=e,o+=e}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return c.anumber(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(c.aoutput(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,c.clean(this.state)}_cloneInto(t){const{blockLen:s,suffix:i,outputLen:o,rounds:r,enableXOF:e}=this;return t||(t=new k(s,i,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=i,t.outputLen=o,t.enableXOF=e,t.destroyed=this.destroyed,t}}const m=(n,t,s)=>c.createHasher(()=>new k(t,n,s)),E=m(1,136,256/8);exports.Keccak=k;exports.keccakP=b;exports.keccak_256=E;
|
package/dist/index228.js
CHANGED
|
@@ -1,21 +1,107 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
+
import { split as L, rotlSH as T, rotlSL as S, rotlBH as m, rotlBL as F } from "./index286.js";
|
|
2
|
+
import { createHasher as X, Hash as E, anumber as d, u32 as U, swap32IfBE as I, aexists as x, toBytes as P, abytes as k, aoutput as M, clean as y } from "./index287.js";
|
|
3
|
+
const R = BigInt(0), f = BigInt(1), j = BigInt(2), q = BigInt(7), v = BigInt(256), z = BigInt(113), _ = [], g = [], B = [];
|
|
4
|
+
for (let n = 0, t = f, s = 1, i = 0; n < 24; n++) {
|
|
5
|
+
[s, i] = [i, (2 * s + 3 * i) % 5], _.push(2 * (5 * i + s)), g.push((n + 1) * (n + 2) / 2 % 64);
|
|
6
|
+
let o = R;
|
|
7
|
+
for (let r = 0; r < 7; r++)
|
|
8
|
+
t = (t << f ^ (t >> q) * z) % v, t & j && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
|
|
9
|
+
B.push(o);
|
|
18
10
|
}
|
|
11
|
+
const A = L(B, !0), C = A[0], D = A[1], O = (n, t, s) => s > 32 ? m(n, t, s) : T(n, t, s), w = (n, t, s) => s > 32 ? F(n, t, s) : S(n, t, s);
|
|
12
|
+
function G(n, t = 24) {
|
|
13
|
+
const s = new Uint32Array(10);
|
|
14
|
+
for (let i = 24 - t; i < 24; i++) {
|
|
15
|
+
for (let e = 0; e < 10; e++)
|
|
16
|
+
s[e] = n[e] ^ n[e + 10] ^ n[e + 20] ^ n[e + 30] ^ n[e + 40];
|
|
17
|
+
for (let e = 0; e < 10; e += 2) {
|
|
18
|
+
const h = (e + 8) % 10, l = (e + 2) % 10, u = s[l], c = s[l + 1], b = O(u, c, 1) ^ s[h], H = w(u, c, 1) ^ s[h + 1];
|
|
19
|
+
for (let a = 0; a < 50; a += 10)
|
|
20
|
+
n[e + a] ^= b, n[e + a + 1] ^= H;
|
|
21
|
+
}
|
|
22
|
+
let o = n[2], r = n[3];
|
|
23
|
+
for (let e = 0; e < 24; e++) {
|
|
24
|
+
const h = g[e], l = O(o, r, h), u = w(o, r, h), c = _[e];
|
|
25
|
+
o = n[c], r = n[c + 1], n[c] = l, n[c + 1] = u;
|
|
26
|
+
}
|
|
27
|
+
for (let e = 0; e < 50; e += 10) {
|
|
28
|
+
for (let h = 0; h < 10; h++)
|
|
29
|
+
s[h] = n[e + h];
|
|
30
|
+
for (let h = 0; h < 10; h++)
|
|
31
|
+
n[e + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
|
|
32
|
+
}
|
|
33
|
+
n[0] ^= C[i], n[1] ^= D[i];
|
|
34
|
+
}
|
|
35
|
+
y(s);
|
|
36
|
+
}
|
|
37
|
+
class p extends E {
|
|
38
|
+
// NOTE: we accept arguments in bytes instead of bits here.
|
|
39
|
+
constructor(t, s, i, o = !1, r = 24) {
|
|
40
|
+
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 = i, this.enableXOF = o, this.rounds = r, d(i), !(0 < t && t < 200))
|
|
41
|
+
throw new Error("only keccak-f1600 function is supported");
|
|
42
|
+
this.state = new Uint8Array(200), this.state32 = U(this.state);
|
|
43
|
+
}
|
|
44
|
+
clone() {
|
|
45
|
+
return this._cloneInto();
|
|
46
|
+
}
|
|
47
|
+
keccak() {
|
|
48
|
+
I(this.state32), G(this.state32, this.rounds), I(this.state32), this.posOut = 0, this.pos = 0;
|
|
49
|
+
}
|
|
50
|
+
update(t) {
|
|
51
|
+
x(this), t = P(t), k(t);
|
|
52
|
+
const { blockLen: s, state: i } = this, 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
|
+
i[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: i, blockLen: o } = this;
|
|
66
|
+
t[i] ^= s, s & 128 && i === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
|
|
67
|
+
}
|
|
68
|
+
writeInto(t) {
|
|
69
|
+
x(this, !1), k(t), this.finish();
|
|
70
|
+
const s = this.state, { blockLen: i } = this;
|
|
71
|
+
for (let o = 0, r = t.length; o < r; ) {
|
|
72
|
+
this.posOut >= i && this.keccak();
|
|
73
|
+
const e = Math.min(i - 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 (M(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, y(this.state);
|
|
96
|
+
}
|
|
97
|
+
_cloneInto(t) {
|
|
98
|
+
const { blockLen: s, suffix: i, outputLen: o, rounds: r, enableXOF: e } = this;
|
|
99
|
+
return t || (t = new p(s, i, 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 = i, t.outputLen = o, t.enableXOF = e, t.destroyed = this.destroyed, t;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const J = (n, t, s) => X(() => new p(t, n, s)), Q = J(1, 136, 256 / 8);
|
|
19
103
|
export {
|
|
20
|
-
|
|
104
|
+
p as Keccak,
|
|
105
|
+
G as keccakP,
|
|
106
|
+
Q as keccak_256
|
|
21
107
|
};
|
package/dist/index229.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("./index280.cjs"),s=e.sha256;exports.sha256=s;
|
package/dist/index229.js
CHANGED
|
@@ -1,174 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { blobsToCommitments as B } from "./index205.js";
|
|
4
|
-
import { blobsToProofs as V } from "./index209.js";
|
|
5
|
-
import { commitmentsToVersionedHashes as C } from "./index208.js";
|
|
6
|
-
import { toBlobSidecars as k } from "./index210.js";
|
|
7
|
-
import { concatHex as h } from "./index155.js";
|
|
8
|
-
import { trim as T } from "./index163.js";
|
|
9
|
-
import { toHex as o, bytesToHex as w } from "./index151.js";
|
|
10
|
-
import { toRlp as y } from "./index195.js";
|
|
11
|
-
import { assertTransactionEIP1559 as S, assertTransactionEIP2930 as _, assertTransactionEIP4844 as R, assertTransactionEIP7702 as Y, assertTransactionLegacy as j } from "./index199.js";
|
|
12
|
-
import { getTransactionType as q } from "./index187.js";
|
|
13
|
-
import { serializeAccessList as v } from "./index228.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];
|
|
170
|
-
}
|
|
1
|
+
import { sha256 as s } from "./index280.js";
|
|
2
|
+
const o = s;
|
|
171
3
|
export {
|
|
172
|
-
|
|
173
|
-
I as toYParitySignatureArray
|
|
4
|
+
o as sha256
|
|
174
5
|
};
|
package/dist/index23.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index195.cjs"),u=require("./index153.cjs"),a=require("./index254.cjs"),g=require("./index193.cjs"),y=require("./index255.cjs"),d=require("./index256.cjs"),T=require("./index257.cjs"),l=require("./index258.cjs"),q=require("./index259.cjs");function A(s,t={}){const{nonceManager:c}=t,e=u.toHex(i.secp256k1.getPublicKey(s.slice(2),!1)),o=g.publicKeyToAddress(e);return{...a.toAccount({address:o,nonceManager:c,async sign({hash:n}){return y.sign({hash:n,privateKey:s,to:"hex"})},async signAuthorization(n){return d.signAuthorization({...n,privateKey:s})},async signMessage({message:n}){return T.signMessage({message:n,privateKey:s})},async signTransaction(n,{serializer:r}={}){return l.signTransaction({privateKey:s,transaction:n,serializer:r})},async signTypedData(n){return q.signTypedData({...n,privateKey:s})}}),publicKey:e,source:"privateKey"}}exports.privateKeyToAccount=A;
|
package/dist/index23.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { secp256k1 as e } from "./
|
|
2
|
-
import { toHex as a } from "./
|
|
3
|
-
import { toAccount as m } from "./
|
|
4
|
-
import { publicKeyToAddress as u } from "./
|
|
5
|
-
import { sign as g } from "./
|
|
6
|
-
import { signAuthorization as p } from "./
|
|
7
|
-
import { signMessage as f } from "./
|
|
8
|
-
import { signTransaction as y } from "./
|
|
9
|
-
import { signTypedData as d } from "./
|
|
1
|
+
import { secp256k1 as e } from "./index195.js";
|
|
2
|
+
import { toHex as a } from "./index153.js";
|
|
3
|
+
import { toAccount as m } from "./index254.js";
|
|
4
|
+
import { publicKeyToAddress as u } from "./index193.js";
|
|
5
|
+
import { sign as g } from "./index255.js";
|
|
6
|
+
import { signAuthorization as p } from "./index256.js";
|
|
7
|
+
import { signMessage as f } from "./index257.js";
|
|
8
|
+
import { signTransaction as y } from "./index258.js";
|
|
9
|
+
import { signTypedData as d } from "./index259.js";
|
|
10
10
|
function H(n, t = {}) {
|
|
11
11
|
const { nonceManager: s } = t, r = a(e.getPublicKey(n.slice(2), !1)), c = u(r);
|
|
12
12
|
return {
|
package/dist/index230.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("./index148.cjs"),d=require("./index138.cjs"),l=require("./index174.cjs");function a(e){if(!e||e.length===0)return[];const n=[];for(let t=0;t<e.length;t++){const{address:i,storageKeys:r}=e[t];for(let s=0;s<r.length;s++)if(r[s].length-2!==64)throw new d.InvalidStorageKeySizeError({storageKey:r[s]});if(!l.isAddress(i,{strict:!1}))throw new o.InvalidAddressError({address:i});n.push([i,r])}return n}exports.serializeAccessList=a;
|
package/dist/index230.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { InvalidAddressError as s } from "./index148.js";
|
|
2
|
+
import { InvalidStorageKeySizeError as l } from "./index138.js";
|
|
3
|
+
import { isAddress as f } from "./index174.js";
|
|
4
|
+
function a(r) {
|
|
4
5
|
if (!r || r.length === 0)
|
|
5
6
|
return [];
|
|
6
|
-
const
|
|
7
|
-
for (
|
|
8
|
-
const {
|
|
9
|
-
t.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
]);
|
|
7
|
+
const n = [];
|
|
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]);
|
|
15
16
|
}
|
|
16
|
-
return
|
|
17
|
+
return n;
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
a as serializeAccessList
|
|
20
21
|
};
|