@gardenfi/utils 2.2.0 → 2.2.1
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 +7 -9
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +26 -5
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +10 -14
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +14 -3
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +116 -25
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +81 -4
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +177 -6
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +5 -87
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +13 -125
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +12 -6
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +94 -20
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +74 -16
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +88 -39
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +137 -20
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +68 -10
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +23 -6
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +106 -103
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +7 -3
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +51 -4
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +17 -9
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +11 -2
- package/dist/index121.cjs +1 -2
- package/dist/index121.js +6 -3
- package/dist/index122.cjs +1 -20
- package/dist/index122.js +14 -326
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +3 -13
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +26 -4
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +5 -2
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +6 -7
- package/dist/index127.cjs +1 -3
- package/dist/index127.js +84 -211
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +124 -30
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +7 -21
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +21 -5
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +17 -73
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +40 -5
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +21 -5
- package/dist/index134.cjs +1 -9
- package/dist/index134.js +11 -35
- package/dist/index135.cjs +1 -3
- package/dist/index135.js +6 -110
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +107 -3
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +3 -24
- package/dist/index138.cjs +1 -3
- package/dist/index138.js +4 -452
- package/dist/index139.cjs +1 -2
- package/dist/index139.js +9 -55
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +2 -27
- package/dist/index141.cjs +2 -1
- package/dist/index141.js +3 -34
- package/dist/index142.cjs +20 -1
- package/dist/index142.js +320 -29
- package/dist/index143.cjs +1 -4
- package/dist/index143.js +11 -192
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +4 -8
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +2 -13
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +6 -17
- package/dist/index147.cjs +3 -1
- package/dist/index147.js +207 -19
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +32 -9
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +21 -55
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +5 -45
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +73 -8
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +5 -7
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -16
- package/dist/index154.cjs +9 -1
- package/dist/index154.js +33 -16
- package/dist/index155.cjs +3 -1
- package/dist/index155.js +110 -21
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +3 -52
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +23 -11
- package/dist/index158.cjs +3 -1
- package/dist/index158.js +451 -161
- package/dist/index159.cjs +2 -1
- package/dist/index159.js +53 -20
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +25 -126
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +28 -33
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +35 -6
- package/dist/index163.cjs +4 -1
- package/dist/index163.js +194 -27
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +6 -189
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +19 -4
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +23 -60
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +9 -3
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +7 -20
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +16 -16
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +18 -23
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +21 -11
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +50 -33
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +12 -3
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +161 -18
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +126 -26
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +37 -35
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +6 -10
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +27 -25
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +190 -27
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +8 -8
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +4 -66
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +64 -9
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +3 -34
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +20 -24
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +16 -24
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +23 -3
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +34 -14
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +3 -104
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +18 -80
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +27 -5
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +36 -6
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +10 -27
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +25 -39
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +28 -13
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +62 -39
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +9 -5
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +24 -11
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +24 -19
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +3 -78
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +15 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +76 -33
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +5 -111
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +26 -48
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +40 -30
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +5 -8
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +11 -6
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +19 -6
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +78 -11
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +2 -11
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +36 -12
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +107 -28
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +50 -5
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +32 -7
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +8 -8
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +6 -20
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +6 -31
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +11 -20
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +10 -3
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +13 -17
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +32 -10
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +9 -9
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +5 -22
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +7 -22
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +8 -5
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +20 -5
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +31 -8
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +20 -104
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +4 -3
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +17 -18
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +9 -170
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +20 -16
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +2 -2
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +22 -10
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +5 -16
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +8 -22
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +103 -29
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +3 -2
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +18 -13
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +16 -11
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +10 -47
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +15 -10
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +22 -7
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +5 -5
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +30 -9
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +2 -14
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +13 -14
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +12 -9
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +47 -24
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +11 -12
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +7 -24
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +8 -12
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +13 -15
- package/dist/index249.cjs +1 -2
- package/dist/index249.js +12 -22
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +3 -3
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +9 -52
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +24 -25
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +12 -13
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +24 -15
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +13 -5
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +15 -13
- package/dist/index256.cjs +2 -1
- package/dist/index256.js +24 -10
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +52 -16
- package/dist/index258.cjs +1 -2
- package/dist/index258.js +12 -41
- package/dist/index259.cjs +2 -1
- package/dist/index259.js +19 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +14 -5
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +11 -10
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +223 -18
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +139 -8
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +134 -54
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +99 -61
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +6 -186
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +41 -21
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +75 -39
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +2 -77
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +1 -1
- package/dist/index270.cjs +2 -1
- package/dist/index270.js +30 -29
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +2 -17
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +5 -13
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +10 -12
- package/dist/index274.cjs +1 -2
- package/dist/index274.js +19 -18
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +8 -14
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +66 -11
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +61 -99
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +186 -6
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +20 -222
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +42 -6
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +77 -7
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +39 -25
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +15 -18
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +12 -145
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +6 -3
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +7 -141
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +26 -155
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +19 -9
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +3 -113
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +39 -7
- package/dist/index290.cjs +1 -2
- package/dist/index290.js +128 -122
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +152 -8
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +9 -19
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +104 -130
- package/dist/index294.cjs +2 -1
- package/dist/index294.js +127 -35
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +10 -77
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +20 -2
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +698 -68
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +178 -675
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +67 -200
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +45 -31
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +1 -1
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +1 -1
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +3 -3
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +2 -2
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +2 -2
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +4 -63
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +59 -40
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +24 -28
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +5 -5
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +45 -5
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +6 -16
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +13 -33
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +15 -44
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +5 -151
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +12 -34
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +9 -37
- package/dist/index38.cjs +1 -2
- package/dist/index38.js +11 -58
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +11 -37
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +13 -15
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +33 -8
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +56 -2
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +16 -45
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +5 -31
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +8 -3
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +170 -8
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +99 -64
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +3 -9
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +21 -28
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +7 -71
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +29 -17
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +29 -110
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +16 -60
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +29 -20
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +41 -37
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +149 -35
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +31 -54
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +33 -161
- package/dist/index59.cjs +2 -1
- package/dist/index59.js +58 -39
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +37 -9
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +15 -36
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +8 -9
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +2 -51
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +42 -82
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +30 -40
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +9 -8
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +68 -6
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +9 -17
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +28 -8
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +71 -13
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +19 -7
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +110 -9
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +57 -43
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +24 -13
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +40 -16
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +37 -13
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +58 -6
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +164 -33
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +40 -9
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +8 -7
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +36 -26
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +9 -10
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +50 -14
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +81 -113
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +37 -77
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +8 -177
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +5 -5
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +17 -13
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +8 -13
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +13 -95
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +7 -75
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +9 -89
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +45 -137
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +13 -69
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +15 -22
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +13 -109
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +6 -6
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +35 -50
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +9 -16
- package/package.json +1 -1
package/dist/index309.js
CHANGED
|
@@ -1,47 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { BaseError as c } from "./index300.js";
|
|
2
|
+
import { padRight as h } from "./index291.js";
|
|
3
|
+
import { charCodeToBase16 as b, assertSize as g, pad as m } from "./index311.js";
|
|
4
|
+
import { assertSize as p } from "./index302.js";
|
|
5
|
+
const l = /* @__PURE__ */ new TextEncoder();
|
|
6
|
+
function E(e) {
|
|
7
|
+
return e instanceof Uint8Array ? e : typeof e == "string" ? y(e) : z(e);
|
|
8
|
+
}
|
|
9
|
+
function z(e) {
|
|
10
|
+
return e instanceof Uint8Array ? e : new Uint8Array(e);
|
|
11
|
+
}
|
|
12
|
+
function y(e, t = {}) {
|
|
13
|
+
const { size: r } = t;
|
|
14
|
+
let n = e;
|
|
15
|
+
r && (p(e, r), n = h(e, r));
|
|
16
|
+
let i = n.slice(2);
|
|
17
|
+
i.length % 2 && (i = `0${i}`);
|
|
18
|
+
const f = i.length / 2, a = new Uint8Array(f);
|
|
19
|
+
for (let s = 0, o = 0; s < f; s++) {
|
|
20
|
+
const d = b(i.charCodeAt(o++)), u = b(i.charCodeAt(o++));
|
|
21
|
+
if (d === void 0 || u === void 0)
|
|
22
|
+
throw new c(`Invalid byte sequence ("${i[o - 2]}${i[o - 1]}" in "${i}").`);
|
|
23
|
+
a[s] = d * 16 + u;
|
|
24
|
+
}
|
|
25
|
+
return a;
|
|
26
|
+
}
|
|
27
|
+
function C(e, t = {}) {
|
|
28
|
+
const { size: r } = t, n = l.encode(e);
|
|
29
|
+
return typeof r == "number" ? (g(n, r), x(n, r)) : n;
|
|
30
|
+
}
|
|
31
|
+
function x(e, t) {
|
|
32
|
+
return m(e, { dir: "right", size: t });
|
|
33
|
+
}
|
|
34
|
+
function U(e) {
|
|
35
|
+
return e.length;
|
|
36
|
+
}
|
|
37
|
+
class B extends c {
|
|
38
|
+
constructor({ givenSize: t, maxSize: r }) {
|
|
39
|
+
super(`Size cannot exceed \`${r}\` bytes. Given size: \`${t}\` bytes.`), Object.defineProperty(this, "name", {
|
|
40
|
+
enumerable: !0,
|
|
41
|
+
configurable: !0,
|
|
42
|
+
writable: !0,
|
|
43
|
+
value: "Bytes.SizeOverflowError"
|
|
7
44
|
});
|
|
45
|
+
}
|
|
8
46
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
function s(e) {
|
|
18
|
-
if (e >= n.zero && e <= n.nine)
|
|
19
|
-
return e - n.zero;
|
|
20
|
-
if (e >= n.A && e <= n.F)
|
|
21
|
-
return e - (n.A - 10);
|
|
22
|
-
if (e >= n.a && e <= n.f)
|
|
23
|
-
return e - (n.a - 10);
|
|
24
|
-
}
|
|
25
|
-
function S(e, t = {}) {
|
|
26
|
-
const { dir: z, size: i = 32 } = t;
|
|
27
|
-
if (i === 0)
|
|
28
|
-
return e;
|
|
29
|
-
if (e.length > i)
|
|
30
|
-
throw new a({
|
|
31
|
-
size: e.length,
|
|
32
|
-
targetSize: i,
|
|
33
|
-
type: "Bytes"
|
|
47
|
+
class O extends c {
|
|
48
|
+
constructor({ size: t, targetSize: r, type: n }) {
|
|
49
|
+
super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
|
|
50
|
+
enumerable: !0,
|
|
51
|
+
configurable: !0,
|
|
52
|
+
writable: !0,
|
|
53
|
+
value: "Bytes.SizeExceedsPaddingSizeError"
|
|
34
54
|
});
|
|
35
|
-
const o = new Uint8Array(i);
|
|
36
|
-
for (let r = 0; r < i; r++) {
|
|
37
|
-
const f = z === "right";
|
|
38
|
-
o[f ? r : i - r - 1] = e[f ? r : e.length - r - 1];
|
|
39
55
|
}
|
|
40
|
-
return o;
|
|
41
56
|
}
|
|
42
57
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
O as SizeExceedsPaddingSizeError,
|
|
59
|
+
B as SizeOverflowError,
|
|
60
|
+
E as from,
|
|
61
|
+
z as fromArray,
|
|
62
|
+
y as fromHex,
|
|
63
|
+
C as fromString,
|
|
64
|
+
x as padRight,
|
|
65
|
+
U as size
|
|
47
66
|
};
|
package/dist/index31.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("./index38.cjs"),t=require("./index39.cjs");function i(s){if(typeof s=="string"){if(!t.isAddress(s,{strict:!1}))throw new n.InvalidAddressError({address:s});return{address:s,type:"json-rpc"}}if(!t.isAddress(s.address,{strict:!1}))throw new n.InvalidAddressError({address:s.address});return{address:s.address,nonceManager:s.nonceManager,sign:s.sign,signAuthorization:s.signAuthorization,signMessage:s.signMessage,signTransaction:s.signTransaction,signTypedData:s.signTypedData,source:"custom",type:"local"}}exports.toAccount=i;
|
package/dist/index31.js
CHANGED
|
@@ -1,32 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
});
|
|
12
|
-
try {
|
|
13
|
-
return await g(i, G, "estimateGas")({
|
|
14
|
-
data: `${d}${c ? c.replace("0x", "") : ""}`,
|
|
15
|
-
to: r,
|
|
16
|
-
...t
|
|
17
|
-
});
|
|
18
|
-
} catch (n) {
|
|
19
|
-
const a = t.account ? f(t.account) : void 0;
|
|
20
|
-
throw p(n, {
|
|
21
|
-
abi: o,
|
|
22
|
-
address: r,
|
|
23
|
-
args: e,
|
|
24
|
-
docsPath: "/docs/contract/estimateContractGas",
|
|
25
|
-
functionName: s,
|
|
26
|
-
sender: a == null ? void 0 : a.address
|
|
27
|
-
});
|
|
1
|
+
import { InvalidAddressError as s } from "./index38.js";
|
|
2
|
+
import { isAddress as a } from "./index39.js";
|
|
3
|
+
function r(n) {
|
|
4
|
+
if (typeof n == "string") {
|
|
5
|
+
if (!a(n, { strict: !1 }))
|
|
6
|
+
throw new s({ address: n });
|
|
7
|
+
return {
|
|
8
|
+
address: n,
|
|
9
|
+
type: "json-rpc"
|
|
10
|
+
};
|
|
28
11
|
}
|
|
12
|
+
if (!a(n.address, { strict: !1 }))
|
|
13
|
+
throw new s({ address: n.address });
|
|
14
|
+
return {
|
|
15
|
+
address: n.address,
|
|
16
|
+
nonceManager: n.nonceManager,
|
|
17
|
+
sign: n.sign,
|
|
18
|
+
signAuthorization: n.signAuthorization,
|
|
19
|
+
signMessage: n.signMessage,
|
|
20
|
+
signTransaction: n.signTransaction,
|
|
21
|
+
signTypedData: n.signTypedData,
|
|
22
|
+
source: "custom",
|
|
23
|
+
type: "local"
|
|
24
|
+
};
|
|
29
25
|
}
|
|
30
26
|
export {
|
|
31
|
-
|
|
27
|
+
r as toAccount
|
|
32
28
|
};
|
package/dist/index310.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 c=require("./index313.cjs"),e={checksum:new c.LruMap(8192)},s=e.checksum;exports.checksum=s;
|
package/dist/index310.js
CHANGED
package/dist/index311.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("./index309.cjs");function s(e,t){if(o.size(e)>t)throw new o.SizeOverflowError({givenSize:o.size(e),maxSize:t})}const n={zero:48,nine:57,A:65,F:70,a:97,f:102};function u(e){if(e>=n.zero&&e<=n.nine)return e-n.zero;if(e>=n.A&&e<=n.F)return e-(n.A-10);if(e>=n.a&&e<=n.f)return e-(n.a-10)}function z(e,t={}){const{dir:f,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new o.SizeExceedsPaddingSizeError({size:e.length,targetSize:r,type:"Bytes"});const d=new Uint8Array(r);for(let i=0;i<r;i++){const a=f==="right";d[a?i:r-i-1]=e[a?i:e.length-i-1]}return d}exports.assertSize=s;exports.charCodeMap=n;exports.charCodeToBase16=u;exports.pad=z;
|
package/dist/index311.js
CHANGED
|
@@ -1,7 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { size as d, SizeOverflowError as u, SizeExceedsPaddingSizeError as a } from "./index309.js";
|
|
2
|
+
function p(e, t) {
|
|
3
|
+
if (d(e) > t)
|
|
4
|
+
throw new u({
|
|
5
|
+
givenSize: d(e),
|
|
6
|
+
maxSize: t
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
const n = {
|
|
10
|
+
zero: 48,
|
|
11
|
+
nine: 57,
|
|
12
|
+
A: 65,
|
|
13
|
+
F: 70,
|
|
14
|
+
a: 97,
|
|
15
|
+
f: 102
|
|
16
|
+
};
|
|
17
|
+
function s(e) {
|
|
18
|
+
if (e >= n.zero && e <= n.nine)
|
|
19
|
+
return e - n.zero;
|
|
20
|
+
if (e >= n.A && e <= n.F)
|
|
21
|
+
return e - (n.A - 10);
|
|
22
|
+
if (e >= n.a && e <= n.f)
|
|
23
|
+
return e - (n.a - 10);
|
|
24
|
+
}
|
|
25
|
+
function S(e, t = {}) {
|
|
26
|
+
const { dir: z, size: i = 32 } = t;
|
|
27
|
+
if (i === 0)
|
|
28
|
+
return e;
|
|
29
|
+
if (e.length > i)
|
|
30
|
+
throw new a({
|
|
31
|
+
size: e.length,
|
|
32
|
+
targetSize: i,
|
|
33
|
+
type: "Bytes"
|
|
34
|
+
});
|
|
35
|
+
const o = new Uint8Array(i);
|
|
36
|
+
for (let r = 0; r < i; r++) {
|
|
37
|
+
const f = z === "right";
|
|
38
|
+
o[f ? r : i - r - 1] = e[f ? r : e.length - r - 1];
|
|
39
|
+
}
|
|
40
|
+
return o;
|
|
41
|
+
}
|
|
5
42
|
export {
|
|
6
|
-
|
|
43
|
+
p as assertSize,
|
|
44
|
+
n as charCodeMap,
|
|
45
|
+
s as charCodeToBase16,
|
|
46
|
+
S as pad
|
|
7
47
|
};
|
package/dist/index32.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index49.cjs"),c=require("./index45.cjs");function t(e){const s=c.keccak256(`0x${e.substring(4)}`).substring(26);return r.checksumAddress(`0x${s}`)}exports.publicKeyToAddress=t;
|
package/dist/index32.js
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return v(n, l, "getLogs")({
|
|
7
|
-
address: s,
|
|
8
|
-
args: c,
|
|
9
|
-
blockHash: i,
|
|
10
|
-
event: o,
|
|
11
|
-
events: g,
|
|
12
|
-
fromBlock: m,
|
|
13
|
-
toBlock: a,
|
|
14
|
-
strict: f
|
|
15
|
-
});
|
|
1
|
+
import { checksumAddress as e } from "./index49.js";
|
|
2
|
+
import { keccak256 as o } from "./index45.js";
|
|
3
|
+
function d(r) {
|
|
4
|
+
const s = o(`0x${r.substring(4)}`).substring(26);
|
|
5
|
+
return e(`0x${s}`);
|
|
16
6
|
}
|
|
17
7
|
export {
|
|
18
|
-
|
|
8
|
+
d as publicKeyToAddress
|
|
19
9
|
};
|
package/dist/index33.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("./index29.cjs"),s=require("./index30.cjs"),a=require("./index40.cjs");let l=!1;async function g({hash:t,privateKey:i,to:e="object"}){const{r:u,s:c,recovery:r}=o.secp256k1.sign(t.slice(2),i.slice(2),{lowS:!0,extraEntropy:l}),n={r:s.numberToHex(u,{size:32}),s:s.numberToHex(c,{size:32}),v:r?28n:27n,yParity:r};return e==="bytes"||e==="hex"?a.serializeSignature({...n,to:e}):n}exports.sign=g;
|
package/dist/index33.js
CHANGED
|
@@ -1,36 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const { data: a } = await l(n, p, "call")({
|
|
14
|
-
...d,
|
|
15
|
-
data: i,
|
|
16
|
-
to: c
|
|
17
|
-
});
|
|
18
|
-
return m({
|
|
19
|
-
abi: t,
|
|
20
|
-
args: o,
|
|
21
|
-
functionName: r,
|
|
22
|
-
data: a || "0x"
|
|
23
|
-
});
|
|
24
|
-
} catch (a) {
|
|
25
|
-
throw f(a, {
|
|
26
|
-
abi: t,
|
|
27
|
-
address: c,
|
|
28
|
-
args: o,
|
|
29
|
-
docsPath: "/docs/contract/readContract",
|
|
30
|
-
functionName: r
|
|
31
|
-
});
|
|
32
|
-
}
|
|
1
|
+
import { secp256k1 as u } from "./index29.js";
|
|
2
|
+
import { numberToHex as i } from "./index30.js";
|
|
3
|
+
import { serializeSignature as a } from "./index40.js";
|
|
4
|
+
let m = !1;
|
|
5
|
+
async function y({ hash: n, privateKey: s, to: r = "object" }) {
|
|
6
|
+
const { r: o, s: c, recovery: e } = u.sign(n.slice(2), s.slice(2), { lowS: !0, extraEntropy: m }), t = {
|
|
7
|
+
r: i(o, { size: 32 }),
|
|
8
|
+
s: i(c, { size: 32 }),
|
|
9
|
+
v: e ? 28n : 27n,
|
|
10
|
+
yParity: e
|
|
11
|
+
};
|
|
12
|
+
return r === "bytes" || r === "hex" ? a({ ...t, to: r }) : t;
|
|
33
13
|
}
|
|
34
14
|
export {
|
|
35
|
-
|
|
15
|
+
y as sign
|
|
36
16
|
};
|
package/dist/index34.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 c=require("./index43.cjs"),a=require("./index33.cjs");async function u(t){const{chainId:n,nonce:i,privateKey:r,to:o="object"}=t,s=t.contractAddress??t.address,e=await a.sign({hash:c.hashAuthorization({address:s,chainId:n,nonce:i}),privateKey:r,to:o});return o==="object"?{address:s,chainId:n,nonce:i,...e}:e}exports.signAuthorization=u;
|
package/dist/index34.js
CHANGED
|
@@ -1,47 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
account: t
|
|
16
|
-
}), l = h({
|
|
17
|
-
abi: o,
|
|
18
|
-
args: a,
|
|
19
|
-
functionName: c,
|
|
20
|
-
data: i || "0x"
|
|
21
|
-
}), f = o.filter((d) => "name" in d && d.name === m.functionName);
|
|
22
|
-
return {
|
|
23
|
-
result: l,
|
|
24
|
-
request: {
|
|
25
|
-
abi: f,
|
|
26
|
-
address: n,
|
|
27
|
-
args: a,
|
|
28
|
-
dataSuffix: e,
|
|
29
|
-
functionName: c,
|
|
30
|
-
...r,
|
|
31
|
-
account: t
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
} catch (i) {
|
|
35
|
-
throw b(i, {
|
|
36
|
-
abi: o,
|
|
37
|
-
address: n,
|
|
38
|
-
args: a,
|
|
39
|
-
docsPath: "/docs/contract/simulateContract",
|
|
40
|
-
functionName: c,
|
|
41
|
-
sender: t == null ? void 0 : t.address
|
|
42
|
-
});
|
|
43
|
-
}
|
|
1
|
+
import { hashAuthorization as a } from "./index43.js";
|
|
2
|
+
import { sign as e } from "./index33.js";
|
|
3
|
+
async function u(t) {
|
|
4
|
+
const { chainId: o, nonce: n, privateKey: c, to: i = "object" } = t, r = t.contractAddress ?? t.address, s = await e({
|
|
5
|
+
hash: a({ address: r, chainId: o, nonce: n }),
|
|
6
|
+
privateKey: c,
|
|
7
|
+
to: i
|
|
8
|
+
});
|
|
9
|
+
return i === "object" ? {
|
|
10
|
+
address: r,
|
|
11
|
+
chainId: o,
|
|
12
|
+
nonce: n,
|
|
13
|
+
...s
|
|
14
|
+
} : s;
|
|
44
15
|
}
|
|
45
16
|
export {
|
|
46
|
-
|
|
17
|
+
u as signAuthorization
|
|
47
18
|
};
|
package/dist/index35.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 a=require("./index44.cjs"),n=require("./index33.cjs");async function t({message:e,privateKey:s}){return await n.sign({hash:a.hashMessage(e),privateKey:s,to:"hex"})}exports.signMessage=t;
|
package/dist/index35.js
CHANGED
|
@@ -1,154 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { formatLog as F } from "./index157.js";
|
|
6
|
-
import { getAction as g } from "./index29.js";
|
|
7
|
-
import { observe as D } from "./index39.js";
|
|
8
|
-
import { poll as R } from "./index40.js";
|
|
9
|
-
import { stringify as S } from "./index42.js";
|
|
10
|
-
import { createContractEventFilter as U } from "./index30.js";
|
|
11
|
-
import { getBlockNumber as j } from "./index69.js";
|
|
12
|
-
import { getContractEvents as q } from "./index32.js";
|
|
13
|
-
import { getFilterChanges as x } from "./index75.js";
|
|
14
|
-
import { uninstallFilter as G } from "./index87.js";
|
|
15
|
-
function ct(t, _) {
|
|
16
|
-
const { abi: b, address: f, args: p, batch: h = !0, eventName: c, fromBlock: l, onError: u, onLogs: N, poll: L, pollingInterval: w = t.pollingInterval, strict: v } = _;
|
|
17
|
-
return (typeof L < "u" ? L : typeof l == "bigint" ? !0 : !(t.transport.type === "webSocket" || t.transport.type === "ipc" || t.transport.type === "fallback" && (t.transport.transports[0].config.type === "webSocket" || t.transport.transports[0].config.type === "ipc"))) ? (() => {
|
|
18
|
-
const m = v ?? !1, C = S([
|
|
19
|
-
"watchContractEvent",
|
|
20
|
-
f,
|
|
21
|
-
p,
|
|
22
|
-
h,
|
|
23
|
-
t.uid,
|
|
24
|
-
c,
|
|
25
|
-
w,
|
|
26
|
-
m,
|
|
27
|
-
l
|
|
28
|
-
]);
|
|
29
|
-
return D(C, { onLogs: N, onError: u }, (n) => {
|
|
30
|
-
let a;
|
|
31
|
-
l !== void 0 && (a = l - 1n);
|
|
32
|
-
let e, s = !1;
|
|
33
|
-
const k = R(async () => {
|
|
34
|
-
var d;
|
|
35
|
-
if (!s) {
|
|
36
|
-
try {
|
|
37
|
-
e = await g(t, U, "createContractEventFilter")({
|
|
38
|
-
abi: b,
|
|
39
|
-
address: f,
|
|
40
|
-
args: p,
|
|
41
|
-
eventName: c,
|
|
42
|
-
strict: m,
|
|
43
|
-
fromBlock: l
|
|
44
|
-
});
|
|
45
|
-
} catch {
|
|
46
|
-
}
|
|
47
|
-
s = !0;
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
try {
|
|
51
|
-
let r;
|
|
52
|
-
if (e)
|
|
53
|
-
r = await g(t, x, "getFilterChanges")({ filter: e });
|
|
54
|
-
else {
|
|
55
|
-
const o = await g(t, j, "getBlockNumber")({});
|
|
56
|
-
a && a < o ? r = await g(t, q, "getContractEvents")({
|
|
57
|
-
abi: b,
|
|
58
|
-
address: f,
|
|
59
|
-
args: p,
|
|
60
|
-
eventName: c,
|
|
61
|
-
fromBlock: a + 1n,
|
|
62
|
-
toBlock: o,
|
|
63
|
-
strict: m
|
|
64
|
-
}) : r = [], a = o;
|
|
65
|
-
}
|
|
66
|
-
if (r.length === 0)
|
|
67
|
-
return;
|
|
68
|
-
if (h)
|
|
69
|
-
n.onLogs(r);
|
|
70
|
-
else
|
|
71
|
-
for (const o of r)
|
|
72
|
-
n.onLogs([o]);
|
|
73
|
-
} catch (r) {
|
|
74
|
-
e && r instanceof z && (s = !1), (d = n.onError) == null || d.call(n, r);
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
emitOnBegin: !0,
|
|
78
|
-
interval: w
|
|
79
|
-
});
|
|
80
|
-
return async () => {
|
|
81
|
-
e && await g(t, G, "uninstallFilter")({ filter: e }), k();
|
|
82
|
-
};
|
|
83
|
-
});
|
|
84
|
-
})() : (() => {
|
|
85
|
-
const m = v ?? !1, C = S([
|
|
86
|
-
"watchContractEvent",
|
|
87
|
-
f,
|
|
88
|
-
p,
|
|
89
|
-
h,
|
|
90
|
-
t.uid,
|
|
91
|
-
c,
|
|
92
|
-
w,
|
|
93
|
-
m
|
|
94
|
-
]);
|
|
95
|
-
let n = !0, a = () => n = !1;
|
|
96
|
-
return D(C, { onLogs: N, onError: u }, (e) => ((async () => {
|
|
97
|
-
try {
|
|
98
|
-
const s = (() => {
|
|
99
|
-
if (t.transport.type === "fallback") {
|
|
100
|
-
const r = t.transport.transports.find((o) => o.config.type === "webSocket" || o.config.type === "ipc");
|
|
101
|
-
return r ? r.value : t.transport;
|
|
102
|
-
}
|
|
103
|
-
return t.transport;
|
|
104
|
-
})(), k = c ? O({
|
|
105
|
-
abi: b,
|
|
106
|
-
eventName: c,
|
|
107
|
-
args: p
|
|
108
|
-
}) : [], { unsubscribe: d } = await s.subscribe({
|
|
109
|
-
params: ["logs", { address: f, topics: k }],
|
|
110
|
-
onData(r) {
|
|
111
|
-
var I;
|
|
112
|
-
if (!n)
|
|
113
|
-
return;
|
|
114
|
-
const o = r.result;
|
|
115
|
-
try {
|
|
116
|
-
const { eventName: i, args: y } = A({
|
|
117
|
-
abi: b,
|
|
118
|
-
data: o.data,
|
|
119
|
-
topics: o.topics,
|
|
120
|
-
strict: v
|
|
121
|
-
}), E = F(o, {
|
|
122
|
-
args: y,
|
|
123
|
-
eventName: i
|
|
124
|
-
});
|
|
125
|
-
e.onLogs([E]);
|
|
126
|
-
} catch (i) {
|
|
127
|
-
let y, E;
|
|
128
|
-
if (i instanceof P || i instanceof T) {
|
|
129
|
-
if (v)
|
|
130
|
-
return;
|
|
131
|
-
y = i.abiItem.name, E = (I = i.abiItem.inputs) == null ? void 0 : I.some((B) => !("name" in B && B.name));
|
|
132
|
-
}
|
|
133
|
-
const M = F(o, {
|
|
134
|
-
args: E ? [] : {},
|
|
135
|
-
eventName: y
|
|
136
|
-
});
|
|
137
|
-
e.onLogs([M]);
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
onError(r) {
|
|
141
|
-
var o;
|
|
142
|
-
(o = e.onError) == null || o.call(e, r);
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
a = d, n || a();
|
|
146
|
-
} catch (s) {
|
|
147
|
-
u == null || u(s);
|
|
148
|
-
}
|
|
149
|
-
})(), () => a()));
|
|
150
|
-
})();
|
|
1
|
+
import { hashMessage as e } from "./index44.js";
|
|
2
|
+
import { sign as o } from "./index33.js";
|
|
3
|
+
async function i({ message: s, privateKey: a }) {
|
|
4
|
+
return await o({ hash: e(s), privateKey: a, to: "hex" });
|
|
151
5
|
}
|
|
152
6
|
export {
|
|
153
|
-
|
|
7
|
+
i as signMessage
|
|
154
8
|
};
|
package/dist/index36.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index45.cjs"),c=require("./index46.cjs"),o=require("./index33.cjs");async function u(i){const{privateKey:r,transaction:e,serializer:n=c.serializeTransaction}=i,a=e.type==="eip4844"?{...e,sidecars:!1}:e,s=await o.sign({hash:t.keccak256(n(a)),privateKey:r});return n(e,s)}exports.signTransaction=u;
|
package/dist/index36.js
CHANGED
|
@@ -1,38 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
docsPath: "/docs/contract/writeContract"
|
|
12
|
-
});
|
|
13
|
-
const t = o ? u(o) : null, f = w({
|
|
14
|
-
abi: n,
|
|
15
|
-
args: c,
|
|
16
|
-
functionName: s
|
|
1
|
+
import { keccak256 as e } from "./index45.js";
|
|
2
|
+
import { serializeTransaction as o } from "./index46.js";
|
|
3
|
+
import { sign as c } from "./index33.js";
|
|
4
|
+
async function u(n) {
|
|
5
|
+
const { privateKey: a, transaction: r, serializer: i = o } = n, t = r.type === "eip4844" ? {
|
|
6
|
+
...r,
|
|
7
|
+
sidecars: !1
|
|
8
|
+
} : r, s = await c({
|
|
9
|
+
hash: e(i(t)),
|
|
10
|
+
privateKey: a
|
|
17
11
|
});
|
|
18
|
-
|
|
19
|
-
return await C(r, g, "sendTransaction")({
|
|
20
|
-
data: `${f}${e ? e.replace("0x", "") : ""}`,
|
|
21
|
-
to: a,
|
|
22
|
-
account: t,
|
|
23
|
-
...d
|
|
24
|
-
});
|
|
25
|
-
} catch (m) {
|
|
26
|
-
throw h(m, {
|
|
27
|
-
abi: n,
|
|
28
|
-
address: a,
|
|
29
|
-
args: c,
|
|
30
|
-
docsPath: "/docs/contract/writeContract",
|
|
31
|
-
functionName: s,
|
|
32
|
-
sender: t == null ? void 0 : t.address
|
|
33
|
-
});
|
|
34
|
-
}
|
|
12
|
+
return i(r, s);
|
|
35
13
|
}
|
|
36
14
|
export {
|
|
37
|
-
|
|
15
|
+
u as signTransaction
|
|
38
16
|
};
|
package/dist/index37.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("./index47.cjs"),s=require("./index33.cjs");async function i(e){const{privateKey:t,...a}=e;return await s.sign({hash:n.hashTypedData(a),privateKey:t,to:"hex"})}exports.signTypedData=i;
|