@gardenfi/utils 2.2.1 → 2.3.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/index.cjs +1 -1
- package/dist/index.js +35 -31
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +114 -34
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +41 -8
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +17 -26
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +6 -10
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +8 -13
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +13 -117
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +106 -78
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +8 -177
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +5 -5
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +7 -13
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +21 -13
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +37 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +8 -95
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +31 -75
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +13 -89
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +7 -138
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +9 -69
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +15 -22
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +69 -105
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +35 -6
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +46 -50
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +14 -16
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +19 -134
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +13 -10
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +9 -5
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +16 -14
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +65 -3
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +10 -25
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +13 -4
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +8 -6
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +10 -88
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +25 -124
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +13 -6
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +137 -10
- package/dist/index130.cjs +3 -1
- package/dist/index130.js +106 -17
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +51 -17
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +24 -40
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +116 -20
- package/dist/index134.cjs +20 -1
- package/dist/index134.js +326 -11
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +81 -6
- package/dist/index136.cjs +4 -1
- package/dist/index136.js +193 -105
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +19 -3
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +25 -4
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +178 -9
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +15 -2
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +13 -2
- package/dist/index141.cjs +1 -2
- package/dist/index141.js +25 -3
- package/dist/index142.cjs +1 -20
- package/dist/index142.js +3 -327
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +89 -13
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +37 -4
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +16 -2
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +2 -8
- package/dist/index147.cjs +1 -3
- package/dist/index147.js +71 -211
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +139 -32
- package/dist/index149.cjs +3 -1
- package/dist/index149.js +451 -21
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +2 -35
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +64 -5
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +6 -73
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +69 -5
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -5
- package/dist/index154.cjs +1 -9
- package/dist/index154.js +3 -35
- package/dist/index155.cjs +1 -3
- package/dist/index155.js +14 -110
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +89 -3
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +13 -23
- package/dist/index158.cjs +1 -3
- package/dist/index158.js +45 -451
- package/dist/index159.cjs +1 -2
- package/dist/index159.js +32 -48
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +26 -18
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +7 -26
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +35 -30
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +8 -35
- package/dist/index163.cjs +1 -4
- package/dist/index163.js +9 -194
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +15 -8
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +95 -18
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +20 -27
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +4 -8
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +6 -7
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +26 -16
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +14 -184
- package/dist/index170.cjs +2 -1
- package/dist/index170.js +23 -17
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +9 -21
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +8 -51
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +10 -11
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +11 -161
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +13 -127
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +14 -38
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +7 -6
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +21 -27
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +6 -191
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +104 -118
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +22 -4
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +38 -62
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +18 -3
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +20 -19
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +79 -15
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +43 -22
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +11 -34
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +53 -3
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +3 -18
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +5 -27
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +121 -2
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +5 -36
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +11 -10
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +13 -25
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +13 -28
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +6 -65
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +151 -9
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +35 -24
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +31 -24
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +9 -3
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +68 -14
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -13
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +8 -79
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +71 -5
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +19 -27
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +108 -40
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +23 -5
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +50 -11
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +106 -19
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +9 -79
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +2 -2
- package/dist/index209.cjs +2 -1
- package/dist/index209.js +3 -38
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +13 -464
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +12 -110
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +4 -49
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +2 -33
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +32 -9
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +21 -6
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +5 -6
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +5 -11
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +5 -10
- package/dist/index218.cjs +9 -1
- package/dist/index218.js +34 -12
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +3 -33
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +464 -36
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +27 -5
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +33 -7
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +35 -8
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +7 -19
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +16 -29
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +27 -20
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +8 -3
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +7 -17
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +160 -9
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +126 -20
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +35 -12
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +27 -22
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +191 -5
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +4 -9
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +3 -105
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +21 -3
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +16 -18
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +33 -16
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +3 -11
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +26 -15
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +24 -21
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +12 -57
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +28 -30
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +28 -2
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +42 -13
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +77 -11
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +2 -48
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +36 -10
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +49 -7
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +6 -9
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +6 -13
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +30 -12
- package/dist/index25.cjs +1 -16
- package/dist/index25.js +57 -113
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +5 -10
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +8 -24
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +3 -12
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +17 -24
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +10 -13
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +5 -15
- package/dist/index256.cjs +1 -2
- package/dist/index256.js +8 -24
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +102 -50
- package/dist/index258.cjs +1 -1
- package/dist/index258.js +3 -13
- package/dist/index259.cjs +1 -2
- package/dist/index259.js +18 -18
- package/dist/index26.cjs +16 -1
- package/dist/index26.js +112 -30
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +16 -13
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +224 -11
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +133 -218
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +136 -129
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +99 -142
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +6 -103
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +42 -6
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +66 -30
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +2 -79
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +141 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +18 -17
- package/dist/index270.cjs +1 -2
- package/dist/index270.js +3 -41
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +156 -2
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +9 -5
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +112 -9
- package/dist/index274.cjs +2 -1
- package/dist/index274.js +131 -16
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +6 -8
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +7 -67
- package/dist/index277.cjs +2 -1
- package/dist/index277.js +40 -64
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +2 -187
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +4 -21
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +31 -12
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +9 -41
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +17 -74
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +8 -40
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +66 -16
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +64 -12
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +186 -6
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +23 -7
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +41 -25
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +74 -17
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +40 -3
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +11 -39
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +14 -138
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +7 -149
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +10 -7
- package/dist/index293.cjs +2 -1
- package/dist/index293.js +16 -111
- package/dist/index294.cjs +1 -2
- package/dist/index294.js +13 -133
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +11 -11
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +26 -19
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +17 -696
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +10 -200
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +19 -68
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +15 -11
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +25 -44
- package/dist/index300.cjs +1 -2
- package/dist/index300.js +695 -63
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +201 -4
- package/dist/index302.cjs +2 -1
- package/dist/index302.js +65 -39
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +4 -7
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +38 -60
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +7 -77
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +63 -4
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +64 -181
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +4 -5
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +183 -52
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +7 -25
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +69 -5
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +59 -40
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +45 -2
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +4 -21
- package/dist/index314.cjs +1 -0
- package/dist/index314.js +7 -0
- package/dist/index315.cjs +1 -0
- package/dist/index315.js +4 -0
- package/dist/index316.cjs +1 -0
- package/dist/index316.js +24 -0
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +39 -6
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +45 -13
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +25 -15
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +6 -5
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +13 -13
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +14 -9
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +5 -12
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +13 -11
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +17 -17
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +10 -13
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +11 -32
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +11 -55
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -16
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +33 -5
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +55 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +15 -170
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +5 -103
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +170 -20
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +103 -7
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +3 -31
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +21 -29
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +16 -16
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +9 -32
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +18 -44
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +122 -148
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +56 -31
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +22 -37
- package/dist/index59.cjs +1 -2
- package/dist/index59.js +9 -58
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +6 -6
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +20 -37
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +6 -15
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +10 -8
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +33 -2
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +15 -44
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +15 -30
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +7 -9
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +31 -66
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +22 -7
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +22 -28
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +8 -22
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +58 -71
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +40 -19
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +37 -110
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +163 -57
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +108 -21
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +30 -40
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +2 -38
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +4 -59
- package/dist/index78.cjs +2 -1
- package/dist/index78.js +56 -163
- package/dist/index79.cjs +2 -1
- package/dist/index79.js +51 -37
- package/dist/index8.cjs +1 -1
- package/dist/index8.js +24 -2
- package/dist/index80.cjs +3 -1
- package/dist/index80.js +215 -9
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +12 -35
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +12 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +23 -49
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +26 -83
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +45 -39
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +19 -8
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +11 -6
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +40 -17
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +9 -8
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -124
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +7 -13
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +31 -7
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +36 -9
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +36 -46
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +9 -13
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +28 -15
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +22 -13
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +85 -6
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +50 -35
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +23 -9
- package/dist/src/index.d.ts +4 -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/digestKey/digestKey.d.ts +1 -1
- package/dist/src/lib/fetcher/fetcher.d.ts +45 -0
- package/dist/src/lib/fetcher/index.d.ts +1 -0
- package/dist/src/lib/fetcher/safeParseJson.d.ts +7 -0
- package/dist/src/lib/result/index.d.ts +1 -0
- package/dist/src/lib/retry.d.ts +16 -0
- package/dist/src/lib/tryCatch/index.d.ts +1 -0
- package/dist/src/lib/tryCatch/tryCatch.d.ts +7 -0
- package/dist/src/lib/types.d.ts +3 -0
- package/dist/src/lib/utils.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/src/lib/{result.d.ts → result/result.d.ts} +0 -0
package/dist/index179.js
CHANGED
|
@@ -1,194 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { concat as f } from "./index170.js";
|
|
7
|
-
import { padHex as d } from "./index186.js";
|
|
8
|
-
import { size as a } from "./index144.js";
|
|
9
|
-
import { slice as E } from "./index176.js";
|
|
10
|
-
import { numberToHex as m, boolToHex as P, stringToHex as S } from "./index30.js";
|
|
11
|
-
import { integerRegex as I } from "./index187.js";
|
|
12
|
-
function K(e, t) {
|
|
13
|
-
if (e.length !== t.length)
|
|
14
|
-
throw new y({
|
|
15
|
-
expectedLength: e.length,
|
|
16
|
-
givenLength: t.length
|
|
17
|
-
});
|
|
18
|
-
const o = L({
|
|
19
|
-
params: e,
|
|
20
|
-
values: t
|
|
21
|
-
}), n = h(o);
|
|
22
|
-
return n.length === 0 ? "0x" : n;
|
|
23
|
-
}
|
|
24
|
-
function L({ params: e, values: t }) {
|
|
25
|
-
const o = [];
|
|
26
|
-
for (let n = 0; n < e.length; n++)
|
|
27
|
-
o.push(p({ param: e[n], value: t[n] }));
|
|
28
|
-
return o;
|
|
29
|
-
}
|
|
30
|
-
function p({ param: e, value: t }) {
|
|
31
|
-
const o = W(e.type);
|
|
32
|
-
if (o) {
|
|
33
|
-
const [n, r] = o;
|
|
34
|
-
return M(t, { length: n, param: { ...e, type: r } });
|
|
35
|
-
}
|
|
36
|
-
if (e.type === "tuple")
|
|
37
|
-
return H(t, {
|
|
38
|
-
param: e
|
|
39
|
-
});
|
|
40
|
-
if (e.type === "address")
|
|
41
|
-
return B(t);
|
|
42
|
-
if (e.type === "bool")
|
|
43
|
-
return T(t);
|
|
44
|
-
if (e.type.startsWith("uint") || e.type.startsWith("int")) {
|
|
45
|
-
const n = e.type.startsWith("int"), [, , r = "256"] = I.exec(e.type) ?? [];
|
|
46
|
-
return $(t, {
|
|
47
|
-
signed: n,
|
|
48
|
-
size: Number(r)
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
if (e.type.startsWith("bytes"))
|
|
52
|
-
return N(t, { param: e });
|
|
53
|
-
if (e.type === "string")
|
|
54
|
-
return C(t);
|
|
55
|
-
throw new u(e.type, {
|
|
56
|
-
docsPath: "/docs/contract/encodeAbiParameters"
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function h(e) {
|
|
60
|
-
let t = 0;
|
|
61
|
-
for (let i = 0; i < e.length; i++) {
|
|
62
|
-
const { dynamic: c, encoded: s } = e[i];
|
|
63
|
-
c ? t += 32 : t += a(s);
|
|
64
|
-
}
|
|
65
|
-
const o = [], n = [];
|
|
66
|
-
let r = 0;
|
|
67
|
-
for (let i = 0; i < e.length; i++) {
|
|
68
|
-
const { dynamic: c, encoded: s } = e[i];
|
|
69
|
-
c ? (o.push(m(t + r, { size: 32 })), n.push(s), r += a(s)) : o.push(s);
|
|
70
|
-
}
|
|
71
|
-
return f([...o, ...n]);
|
|
72
|
-
}
|
|
73
|
-
function B(e) {
|
|
74
|
-
if (!z(e))
|
|
75
|
-
throw new w({ address: e });
|
|
76
|
-
return { dynamic: !1, encoded: d(e.toLowerCase()) };
|
|
77
|
-
}
|
|
78
|
-
function M(e, { length: t, param: o }) {
|
|
79
|
-
const n = t === null;
|
|
80
|
-
if (!Array.isArray(e))
|
|
81
|
-
throw new g(e);
|
|
82
|
-
if (!n && e.length !== t)
|
|
83
|
-
throw new l({
|
|
84
|
-
expectedLength: t,
|
|
85
|
-
givenLength: e.length,
|
|
86
|
-
type: `${o.type}[${t}]`
|
|
87
|
-
});
|
|
88
|
-
let r = !1;
|
|
89
|
-
const i = [];
|
|
90
|
-
for (let c = 0; c < e.length; c++) {
|
|
91
|
-
const s = p({ param: o, value: e[c] });
|
|
92
|
-
s.dynamic && (r = !0), i.push(s);
|
|
93
|
-
}
|
|
94
|
-
if (n || r) {
|
|
95
|
-
const c = h(i);
|
|
96
|
-
if (n) {
|
|
97
|
-
const s = m(i.length, { size: 32 });
|
|
98
|
-
return {
|
|
99
|
-
dynamic: !0,
|
|
100
|
-
encoded: i.length > 0 ? f([s, c]) : s
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
if (r)
|
|
104
|
-
return { dynamic: !0, encoded: c };
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
dynamic: !1,
|
|
108
|
-
encoded: f(i.map(({ encoded: c }) => c))
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function N(e, { param: t }) {
|
|
112
|
-
const [, o] = t.type.split("bytes"), n = a(e);
|
|
113
|
-
if (!o) {
|
|
114
|
-
let r = e;
|
|
115
|
-
return n % 32 !== 0 && (r = d(r, {
|
|
116
|
-
dir: "right",
|
|
117
|
-
size: Math.ceil((e.length - 2) / 2 / 32) * 32
|
|
118
|
-
})), {
|
|
119
|
-
dynamic: !0,
|
|
120
|
-
encoded: f([d(m(n, { size: 32 })), r])
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
if (n !== Number.parseInt(o))
|
|
124
|
-
throw new b({
|
|
125
|
-
expectedSize: Number.parseInt(o),
|
|
126
|
-
value: e
|
|
127
|
-
});
|
|
128
|
-
return { dynamic: !1, encoded: d(e, { dir: "right" }) };
|
|
129
|
-
}
|
|
130
|
-
function T(e) {
|
|
131
|
-
if (typeof e != "boolean")
|
|
132
|
-
throw new A(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);
|
|
133
|
-
return { dynamic: !1, encoded: d(P(e)) };
|
|
134
|
-
}
|
|
135
|
-
function $(e, { signed: t, size: o = 256 }) {
|
|
136
|
-
if (typeof o == "number") {
|
|
137
|
-
const n = 2n ** (BigInt(o) - (t ? 1n : 0n)) - 1n, r = t ? -n - 1n : 0n;
|
|
138
|
-
if (e > n || e < r)
|
|
139
|
-
throw new x({
|
|
140
|
-
max: n.toString(),
|
|
141
|
-
min: r.toString(),
|
|
142
|
-
signed: t,
|
|
143
|
-
size: o / 8,
|
|
144
|
-
value: e.toString()
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
return {
|
|
148
|
-
dynamic: !1,
|
|
149
|
-
encoded: m(e, {
|
|
150
|
-
size: 32,
|
|
151
|
-
signed: t
|
|
152
|
-
})
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
function C(e) {
|
|
156
|
-
const t = S(e), o = Math.ceil(a(t) / 32), n = [];
|
|
157
|
-
for (let r = 0; r < o; r++)
|
|
158
|
-
n.push(d(E(t, r * 32, (r + 1) * 32), {
|
|
159
|
-
dir: "right"
|
|
160
|
-
}));
|
|
161
|
-
return {
|
|
162
|
-
dynamic: !0,
|
|
163
|
-
encoded: f([
|
|
164
|
-
d(m(a(t), { size: 32 })),
|
|
165
|
-
...n
|
|
166
|
-
])
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
function H(e, { param: t }) {
|
|
170
|
-
let o = !1;
|
|
171
|
-
const n = [];
|
|
172
|
-
for (let r = 0; r < t.components.length; r++) {
|
|
173
|
-
const i = t.components[r], c = Array.isArray(e) ? r : i.name, s = p({
|
|
174
|
-
param: i,
|
|
175
|
-
value: e[c]
|
|
176
|
-
});
|
|
177
|
-
n.push(s), s.dynamic && (o = !0);
|
|
178
|
-
}
|
|
179
|
-
return {
|
|
180
|
-
dynamic: o,
|
|
181
|
-
encoded: o ? h(n) : f(n.map(({ encoded: r }) => r))
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function W(e) {
|
|
185
|
-
const t = e.match(/^(.*)\[(\d+)?\]$/);
|
|
186
|
-
return t ? (
|
|
187
|
-
// Return `null` if the array is dynamic.
|
|
188
|
-
[t[2] ? Number(t[2]) : null, t[1]]
|
|
189
|
-
) : void 0;
|
|
1
|
+
async function a(n, { serializedTransaction: t }) {
|
|
2
|
+
return n.request({
|
|
3
|
+
method: "eth_sendRawTransaction",
|
|
4
|
+
params: [t]
|
|
5
|
+
}, { retryCount: 0 });
|
|
190
6
|
}
|
|
191
7
|
export {
|
|
192
|
-
|
|
193
|
-
W as getArrayComponents
|
|
8
|
+
a as sendRawTransaction
|
|
194
9
|
};
|
package/dist/index18.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 i=require("./index30.cjs"),u=require("./index31.cjs");class l{static async _postWithFallback(a,t){let r="";for(const n of a)try{const s=await fetch(n,{method:"POST",...t});if(s.status>=500){r=await(s.text()||s.json());continue}return await this.parse(s)}catch(s){r=o(s);continue}throw new Error(r||"All APIs failed")}static async postWithFallback(a,t){return await c(t).retry(()=>this._postWithFallback(a,t))}static async _getWithFallback(a,t){let r="";for(const n of a)try{const s=await fetch(n,t);if(s.status>=500){r=await(s.text()||s.json());continue}return await this.parse(s)}catch(s){r=o(s);continue}throw new Error(r||"All APIs failed")}static async getWithFallback(a,t){return await c(t).retry(()=>this._getWithFallback(a,t))}static async _get(a,t){return await this.parse(await fetch(a,t))}static async get(a,t){return await c(t).retry(()=>this._get(a,t))}static async _post(a,t){return await this.parse(await fetch(a,{method:"POST",...t}))}static async post(a,t){return await c(t).retry(()=>this._post(a,t))}static async parse(a){const t=await a.text();if(a.status>=200&&a.status<300)return u.safeParseJson(t);throw new Error(t)}}function o(e){return(e==null?void 0:e.message)||(e==null?void 0:e.toString())||"unknown error"}const c=e=>new i.Retry((e==null?void 0:e.retryCount)??2,(e==null?void 0:e.retryDelay)??1e3);exports.Fetcher=l;
|
package/dist/index18.js
CHANGED
|
@@ -1,123 +1,109 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
let y = !1, w = !1, E = !1;
|
|
12
|
-
for (const s of t)
|
|
13
|
-
if (s.type === "function" ? s.stateMutability === "view" || s.stateMutability === "pure" ? y = !0 : w = !0 : s.type === "event" && (E = !0), y && w && E)
|
|
14
|
-
break;
|
|
15
|
-
return d && (y && (u.read = new Proxy({}, {
|
|
16
|
-
get(s, n) {
|
|
17
|
-
return (...i) => {
|
|
18
|
-
const { args: c, options: r } = C(i);
|
|
19
|
-
return g(a, x, "readContract")({
|
|
20
|
-
abi: t,
|
|
21
|
-
address: o,
|
|
22
|
-
functionName: n,
|
|
23
|
-
args: c,
|
|
24
|
-
...r
|
|
1
|
+
import { Retry as h } from "./index30.js";
|
|
2
|
+
import { safeParseJson as i } from "./index31.js";
|
|
3
|
+
class w {
|
|
4
|
+
static async _postWithFallback(a, t) {
|
|
5
|
+
let r = "";
|
|
6
|
+
for (const o of a)
|
|
7
|
+
try {
|
|
8
|
+
const e = await fetch(o, {
|
|
9
|
+
method: "POST",
|
|
10
|
+
...t
|
|
25
11
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
return
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
12
|
+
if (e.status >= 500) {
|
|
13
|
+
r = await (e.text() || e.json());
|
|
14
|
+
continue;
|
|
15
|
+
}
|
|
16
|
+
return await this.parse(e);
|
|
17
|
+
} catch (e) {
|
|
18
|
+
r = n(e);
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
throw new Error(r || "All APIs failed");
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Asynchronously sends a POST request to multiple URLs with fallback logic.
|
|
25
|
+
*
|
|
26
|
+
* @param {string[]} input - array of URLs to send the POST request to
|
|
27
|
+
* @param {RequestInit} [init] - optional request initialization options
|
|
28
|
+
* @return {Promise<T>} a Promise that resolves to the parsed response data
|
|
29
|
+
*/
|
|
30
|
+
static async postWithFallback(a, t) {
|
|
31
|
+
return await c(t).retry(
|
|
32
|
+
() => this._postWithFallback(a, t)
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
static async _getWithFallback(a, t) {
|
|
36
|
+
let r = "";
|
|
37
|
+
for (const o of a)
|
|
38
|
+
try {
|
|
39
|
+
const e = await fetch(o, t);
|
|
40
|
+
if (e.status >= 500) {
|
|
41
|
+
r = await (e.text() || e.json());
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
return await this.parse(e);
|
|
45
|
+
} catch (e) {
|
|
46
|
+
r = n(e);
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
throw new Error(r || "All APIs failed");
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Asynchronously sends a POST request to multiple URLs with fallback mechanism.
|
|
53
|
+
*
|
|
54
|
+
* @param {string[]} input - An array of URLs to retrieve data from.
|
|
55
|
+
* @param {RequestInit} [init] - Optional request options.
|
|
56
|
+
* @return {Promise<T>} A promise that resolves to the retrieved data.
|
|
57
|
+
*/
|
|
58
|
+
static async getWithFallback(a, t) {
|
|
59
|
+
return await c(t).retry(
|
|
60
|
+
() => this._getWithFallback(a, t)
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
static async _get(a, t) {
|
|
64
|
+
return await this.parse(await fetch(a, t));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Asynchronously retrieves data of type T from the specified URL or RequestInfo, with optional initialization options.
|
|
68
|
+
*
|
|
69
|
+
* @param {RequestInfo | URL} input - The URL or RequestInfo to fetch data from
|
|
70
|
+
* @param {RequestInit} init - Optional initialization options for the fetch request
|
|
71
|
+
* @return {Promise<T>} The retrieved data of type T
|
|
72
|
+
*/
|
|
73
|
+
static async get(a, t) {
|
|
74
|
+
return await c(t).retry(() => this._get(a, t));
|
|
75
|
+
}
|
|
76
|
+
static async _post(a, t) {
|
|
77
|
+
return await this.parse(
|
|
78
|
+
await fetch(a, {
|
|
79
|
+
method: "POST",
|
|
80
|
+
...t
|
|
81
|
+
})
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Asynchronously sends a POST request to the specified URL or RequestInfo, with optional initialization options.
|
|
86
|
+
*/
|
|
87
|
+
static async post(a, t) {
|
|
88
|
+
return await c(t).retry(() => this._post(a, t));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Parses the response and returns the result as the specified type.
|
|
92
|
+
*
|
|
93
|
+
* @param {Response} res - the response object to be parsed
|
|
94
|
+
* @return {Promise<T>} the parsed result of type T
|
|
95
|
+
*/
|
|
96
|
+
static async parse(a) {
|
|
97
|
+
const t = await a.text();
|
|
98
|
+
if (a.status >= 200 && a.status < 300)
|
|
99
|
+
return i(t);
|
|
100
|
+
throw new Error(t);
|
|
101
|
+
}
|
|
112
102
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
115
|
-
Array.isArray(t[0]) ? f = !0 : t.length === 1 ? f = o.inputs.some((p) => p.indexed) : t.length === 2 && (f = !0);
|
|
116
|
-
const e = f ? t[0] : void 0, a = (f ? t[1] : t[0]) ?? {};
|
|
117
|
-
return { args: e, options: a };
|
|
103
|
+
function n(s) {
|
|
104
|
+
return (s == null ? void 0 : s.message) || (s == null ? void 0 : s.toString()) || "unknown error";
|
|
118
105
|
}
|
|
106
|
+
const c = (s) => new h((s == null ? void 0 : s.retryCount) ?? 2, (s == null ? void 0 : s.retryDelay) ?? 1e3);
|
|
119
107
|
export {
|
|
120
|
-
|
|
121
|
-
h as getEventParameters,
|
|
122
|
-
C as getFunctionParameters
|
|
108
|
+
w as Fetcher
|
|
123
109
|
};
|
package/dist/index180.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 u=require("./index51.cjs"),r=require("./index170.cjs"),e=require("./index169.cjs");async function a(t,n){const{account:i=t.account}=n;if(!i)throw new r.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});const o=u.parseAccount(i);if(!o.signAuthorization)throw new r.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:o.type});const c=await e.prepareAuthorization(t,n);return o.signAuthorization(c)}exports.signAuthorization=a;
|
package/dist/index180.js
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { parseAccount as c } from "./index51.js";
|
|
2
|
+
import { AccountNotFoundError as u, AccountTypeNotSupportedError as a } from "./index170.js";
|
|
3
|
+
import { prepareAuthorization as s } from "./index169.js";
|
|
4
|
+
async function A(t, n) {
|
|
5
|
+
const { account: i = t.account } = n;
|
|
6
|
+
if (!i)
|
|
7
|
+
throw new u({
|
|
8
|
+
docsPath: "/docs/eip7702/signAuthorization"
|
|
9
|
+
});
|
|
10
|
+
const o = c(i);
|
|
11
|
+
if (!o.signAuthorization)
|
|
12
|
+
throw new a({
|
|
13
|
+
docsPath: "/docs/eip7702/signAuthorization",
|
|
14
|
+
metaMessages: [
|
|
15
|
+
"The `signAuthorization` Action does not support JSON-RPC Accounts."
|
|
16
|
+
],
|
|
17
|
+
type: o.type
|
|
18
|
+
});
|
|
19
|
+
const r = await s(t, n);
|
|
20
|
+
return o.signAuthorization(r);
|
|
21
|
+
}
|
|
4
22
|
export {
|
|
5
|
-
|
|
23
|
+
A as signAuthorization
|
|
6
24
|
};
|
package/dist/index181.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 g=require("./index51.cjs"),f=require("./index170.cjs"),C=require("./index177.cjs"),T=require("./index33.cjs"),m=require("./index83.cjs"),I=require("./index66.cjs"),w=require("./index86.cjs"),A=require("./index113.cjs");async function R(t,s){var i,u,d,h;const{account:o=t.account,chain:n=t.chain,...c}=s;if(!o)throw new f.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const r=g.parseAccount(o);w.assertRequest({account:r,...s});const a=await I.getAction(t,A.getChainId,"getChainId")({});n!==null&&C.assertCurrentChain({currentChainId:a,chain:n});const e=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),q=((u=e==null?void 0:e.transactionRequest)==null?void 0:u.format)||m.formatTransactionRequest;return r.signTransaction?r.signTransaction({...c,chainId:a},{serializer:(h=(d=t.chain)==null?void 0:d.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...q(c),chainId:T.numberToHex(a),from:r.address}]},{retryCount:0})}exports.signTransaction=R;
|
package/dist/index181.js
CHANGED
|
@@ -1,67 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const { name: y, inputs: r } = n, f = r == null ? void 0 : r.some((e) => !("name" in e && e.name)), c = f ? [] : {}, p = r.map((e, t) => [e, t]).filter(([e]) => "indexed" in e && e.indexed);
|
|
16
|
-
for (let e = 0; e < p.length; e++) {
|
|
17
|
-
const [t, g] = p[e], h = v[e];
|
|
18
|
-
if (!h)
|
|
19
|
-
throw new D({
|
|
20
|
-
abiItem: n,
|
|
21
|
-
param: t
|
|
22
|
-
});
|
|
23
|
-
c[f ? g : t.name || g] = O({
|
|
24
|
-
param: t,
|
|
25
|
-
value: h
|
|
1
|
+
import { parseAccount as d } from "./index51.js";
|
|
2
|
+
import { AccountNotFoundError as p } from "./index170.js";
|
|
3
|
+
import { assertCurrentChain as g } from "./index177.js";
|
|
4
|
+
import { numberToHex as T } from "./index33.js";
|
|
5
|
+
import { formatTransactionRequest as C } from "./index83.js";
|
|
6
|
+
import { getAction as w } from "./index66.js";
|
|
7
|
+
import { assertRequest as I } from "./index86.js";
|
|
8
|
+
import { getChainId as q } from "./index113.js";
|
|
9
|
+
async function E(t, s) {
|
|
10
|
+
var e, m, u, f;
|
|
11
|
+
const { account: i = t.account, chain: r = t.chain, ...c } = s;
|
|
12
|
+
if (!i)
|
|
13
|
+
throw new p({
|
|
14
|
+
docsPath: "/docs/actions/wallet/signTransaction"
|
|
26
15
|
});
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
16
|
+
const o = d(i);
|
|
17
|
+
I({
|
|
18
|
+
account: o,
|
|
19
|
+
...s
|
|
20
|
+
});
|
|
21
|
+
const n = await w(t, q, "getChainId")({});
|
|
22
|
+
r !== null && g({
|
|
23
|
+
currentChainId: n,
|
|
24
|
+
chain: r
|
|
25
|
+
});
|
|
26
|
+
const a = (r == null ? void 0 : r.formatters) || ((e = t.chain) == null ? void 0 : e.formatters), h = ((m = a == null ? void 0 : a.transactionRequest) == null ? void 0 : m.format) || C;
|
|
27
|
+
return o.signTransaction ? o.signTransaction({
|
|
28
|
+
...c,
|
|
29
|
+
chainId: n
|
|
30
|
+
}, { serializer: (f = (u = t.chain) == null ? void 0 : u.serializers) == null ? void 0 : f.transaction }) : await t.request({
|
|
31
|
+
method: "eth_signTransaction",
|
|
32
|
+
params: [
|
|
33
|
+
{
|
|
34
|
+
...h(c),
|
|
35
|
+
chainId: T(n),
|
|
36
|
+
from: o.address
|
|
48
37
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
abiItem: n,
|
|
52
|
-
data: "0x",
|
|
53
|
-
params: s,
|
|
54
|
-
size: 0
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
eventName: y,
|
|
59
|
-
args: Object.values(c).length > 0 ? c : void 0
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function O({ param: o, value: d }) {
|
|
63
|
-
return o.type === "string" || o.type === "bytes" || o.type === "tuple" || o.type.match(/^(.*)\[(\d+)?\]$/) ? d : (w([o], d) || [])[0];
|
|
38
|
+
]
|
|
39
|
+
}, { retryCount: 0 });
|
|
64
40
|
}
|
|
65
41
|
export {
|
|
66
|
-
|
|
42
|
+
E as signTransaction
|
|
67
43
|
};
|
package/dist/index182.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("./index51.cjs"),a=require("./index170.cjs"),o=require("./index33.cjs");async function i(n,{account:e=n.account,message:r}){if(!e)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const t=c.parseAccount(e);if(t.signMessage)return t.signMessage({message:r});const s=typeof r=="string"?o.stringToHex(r):r.raw instanceof Uint8Array?o.toHex(r.raw):r.raw;return n.request({method:"personal_sign",params:[s,t.address]},{retryCount:0})}exports.signMessage=i;
|
package/dist/index182.js
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { parseAccount as e } from "./index51.js";
|
|
2
|
+
import { AccountNotFoundError as i } from "./index170.js";
|
|
3
|
+
import { stringToHex as a, toHex as c } from "./index33.js";
|
|
4
|
+
async function g(n, { account: o = n.account, message: r }) {
|
|
5
|
+
if (!o)
|
|
6
|
+
throw new i({
|
|
7
|
+
docsPath: "/docs/actions/wallet/signMessage"
|
|
8
|
+
});
|
|
9
|
+
const t = e(o);
|
|
10
|
+
if (t.signMessage)
|
|
11
|
+
return t.signMessage({ message: r });
|
|
12
|
+
const s = typeof r == "string" ? a(r) : r.raw instanceof Uint8Array ? c(r.raw) : r.raw;
|
|
13
|
+
return n.request({
|
|
14
|
+
method: "personal_sign",
|
|
15
|
+
params: [s, t.address]
|
|
16
|
+
}, { retryCount: 0 });
|
|
17
|
+
}
|
|
3
18
|
export {
|
|
4
|
-
|
|
19
|
+
g as signMessage
|
|
5
20
|
};
|
package/dist/index183.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 u=require("./index51.cjs"),y=require("./index170.cjs"),s=require("./index184.cjs");async function p(c,r){const{account:i=c.account,domain:t,message:a,primaryType:e}=r;if(!i)throw new y.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const n=u.parseAccount(i),o={EIP712Domain:s.getTypesForEIP712Domain({domain:t}),...r.types};if(s.validateTypedData({domain:t,message:a,primaryType:e,types:o}),n.signTypedData)return n.signTypedData({domain:t,message:a,primaryType:e,types:o});const d=s.serializeTypedData({domain:t,message:a,primaryType:e,types:o});return c.request({method:"eth_signTypedData_v4",params:[n.address,d]},{retryCount:0})}exports.signTypedData=p;
|