@gardenfi/utils 2.5.3-beta.0 → 2.5.3-beta.2
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 +26 -28
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +5 -5
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +14 -23
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +3 -109
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +26 -6
- package/dist/index103.cjs +2 -1
- package/dist/index103.js +24 -50
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +9 -16
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +8 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +10 -5
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +11 -14
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +13 -3
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +14 -26
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -1
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +18 -88
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +13 -125
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +6 -7
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +7 -21
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +21 -17
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +6 -39
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +20 -20
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +16 -10
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +39 -5
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +20 -105
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +81 -3
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +12 -4
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +59 -9
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +14 -2
- package/dist/index126.cjs +1 -2
- package/dist/index126.js +9 -3
- package/dist/index127.cjs +1 -20
- package/dist/index127.js +20 -326
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +6 -13
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +35 -4
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +33 -2
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +8 -6
- package/dist/index132.cjs +1 -3
- package/dist/index132.js +50 -215
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +20 -32
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +105 -20
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +68 -5
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +8 -72
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +71 -5
- package/dist/index138.cjs +2 -1
- package/dist/index138.js +3 -6
- package/dist/index139.cjs +1 -9
- package/dist/index139.js +9 -36
- package/dist/index140.cjs +1 -3
- package/dist/index140.js +11 -108
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +5 -3
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +10 -21
- package/dist/index143.cjs +1 -3
- package/dist/index143.js +2 -452
- package/dist/index144.cjs +1 -2
- package/dist/index144.js +32 -55
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +20 -25
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +5 -33
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +5 -35
- package/dist/index148.cjs +1 -4
- package/dist/index148.js +5 -194
- package/dist/index149.cjs +9 -1
- package/dist/index149.js +33 -6
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +3 -13
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +1 -1
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +14 -21
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +35 -8
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +7 -54
- package/dist/index155.cjs +4 -1
- package/dist/index155.js +194 -45
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +27 -8
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +161 -7
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +126 -15
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +25 -16
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +18 -26
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +55 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +190 -50
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +4 -12
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +14 -155
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +3 -22
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +16 -127
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +11 -38
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +34 -6
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +3 -28
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +27 -191
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +113 -14
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +9 -4
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +21 -60
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +29 -3
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +3 -20
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +6 -16
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +6 -23
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +32 -11
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +5 -35
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +38 -3
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +49 -18
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +118 -115
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +32 -27
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +8 -36
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +42 -10
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +50 -24
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +104 -28
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +3 -66
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +5 -9
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +3 -33
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +17 -24
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +5 -24
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +8 -3
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +103 -14
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +5 -103
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +6 -80
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +27 -5
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +34 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +13 -27
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +78 -26
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +2 -14
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +18 -42
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +171 -5
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +17 -11
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +10 -19
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +24 -77
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +19 -2
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +15 -37
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +5 -111
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +13 -49
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +9 -31
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +16 -8
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +296 -13
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +24 -6
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +46 -6
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +8 -10
- package/dist/index213.cjs +2 -1
- package/dist/index213.js +40 -9
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +2 -14
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +5 -32
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +11 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +19 -7
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +8 -8
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +66 -20
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -497
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +63 -29
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +188 -3
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +28 -17
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +76 -10
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +34 -15
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +16 -22
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +13 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +11 -5
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +12 -8
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +6 -104
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +12 -35
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +7 -3
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +18 -17
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +107 -170
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +102 -16
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +26 -9
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +16 -16
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +212 -20
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +42 -30
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +79 -2
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +2 -14
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +59 -30
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +10 -11
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +18 -46
- package/dist/index242.cjs +2 -1
- package/dist/index242.js +65 -10
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +14 -7
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +68 -9
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +656 -12
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +205 -13
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +175 -7
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +4 -24
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +2 -13
- package/dist/index25.cjs +16 -1
- package/dist/index25.js +112 -28
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +30 -12
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +26 -57
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +8 -13
- package/dist/index29.cjs +1 -16
- package/dist/index29.js +166 -108
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +108 -23
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +31 -8
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +3 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -32
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +4 -30
- package/dist/index35.cjs +2 -1
- package/dist/index35.js +59 -16
- package/dist/index36.cjs +2 -1
- package/dist/index36.js +50 -29
- package/dist/index37.cjs +3 -1
- package/dist/index37.js +212 -41
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +23 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +18 -35
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +4 -4
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +10 -57
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +20 -59
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +44 -12
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -37
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +12 -15
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +24 -8
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +27 -19
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +48 -2
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +19 -45
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +10 -31
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +31 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +35 -8
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +7 -68
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +27 -7
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +22 -28
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +7 -71
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +89 -19
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +44 -108
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +20 -58
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +33 -20
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +17 -36
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +5 -40
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +9 -58
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +12 -165
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +108 -39
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +7 -8
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +23 -36
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +7 -9
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +19 -48
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +8 -89
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +28 -38
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +7 -8
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +15 -5
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +73 -17
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +35 -8
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +16 -13
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +65 -7
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +11 -9
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +14 -46
- package/dist/index79.cjs +3 -1
- package/dist/index79.js +95 -13
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +24 -16
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +33 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +44 -6
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +5 -34
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +151 -9
- package/dist/index85.cjs +20 -1
- package/dist/index85.js +326 -8
- package/dist/index86.cjs +3 -1
- package/dist/index86.js +451 -26
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +64 -10
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +37 -14
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +15 -118
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +2 -82
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +14 -175
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +9 -5
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +125 -13
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +5 -13
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +21 -103
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +43 -73
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +38 -89
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +6 -138
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +85 -66
- package/dist/src/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/index250.cjs +0 -1
- package/dist/index250.js +0 -27
- package/dist/index251.cjs +0 -1
- package/dist/index251.js +0 -16
- package/dist/index252.cjs +0 -1
- package/dist/index252.js +0 -18
- package/dist/index253.cjs +0 -2
- package/dist/index253.js +0 -27
- package/dist/index254.cjs +0 -1
- package/dist/index254.js +0 -55
- package/dist/index255.cjs +0 -1
- package/dist/index255.js +0 -28
- package/dist/index256.cjs +0 -1
- package/dist/index256.js +0 -21
- package/dist/index257.cjs +0 -1
- package/dist/index257.js +0 -18
- package/dist/index258.cjs +0 -1
- package/dist/index258.js +0 -8
- package/dist/index259.cjs +0 -1
- package/dist/index259.js +0 -16
- package/dist/index260.cjs +0 -1
- package/dist/index260.js +0 -13
- package/dist/index261.cjs +0 -1
- package/dist/index261.js +0 -19
- package/dist/index262.cjs +0 -2
- package/dist/index262.js +0 -44
- package/dist/index263.cjs +0 -1
- package/dist/index263.js +0 -4
- package/dist/index264.cjs +0 -1
- package/dist/index264.js +0 -8
- package/dist/index265.cjs +0 -1
- package/dist/index265.js +0 -13
- package/dist/index266.cjs +0 -1
- package/dist/index266.js +0 -22
- package/dist/index267.cjs +0 -1
- package/dist/index267.js +0 -11
- package/dist/index268.cjs +0 -1
- package/dist/index268.js +0 -69
- package/dist/index269.cjs +0 -1
- package/dist/index269.js +0 -68
- package/dist/index270.cjs +0 -1
- package/dist/index270.js +0 -189
- package/dist/index271.cjs +0 -1
- package/dist/index271.js +0 -31
- package/dist/index272.cjs +0 -1
- package/dist/index272.js +0 -79
- package/dist/index273.cjs +0 -1
- package/dist/index273.js +0 -43
- package/dist/index274.cjs +0 -1
- package/dist/index274.js +0 -19
- package/dist/index275.cjs +0 -1
- package/dist/index275.js +0 -16
- package/dist/index276.cjs +0 -1
- package/dist/index276.js +0 -15
- package/dist/index277.cjs +0 -1
- package/dist/index277.js +0 -14
- package/dist/index278.cjs +0 -2
- package/dist/index278.js +0 -21
- package/dist/index279.cjs +0 -1
- package/dist/index279.js +0 -17
- package/dist/index280.cjs +0 -1
- package/dist/index280.js +0 -106
- package/dist/index281.cjs +0 -1
- package/dist/index281.js +0 -9
- package/dist/index282.cjs +0 -1
- package/dist/index282.js +0 -247
- package/dist/index283.cjs +0 -1
- package/dist/index283.js +0 -9
- package/dist/index284.cjs +0 -1
- package/dist/index284.js +0 -9
- package/dist/index285.cjs +0 -1
- package/dist/index285.js +0 -29
- package/dist/index286.cjs +0 -1
- package/dist/index286.js +0 -22
- package/dist/index287.cjs +0 -1
- package/dist/index287.js +0 -149
- package/dist/index288.cjs +0 -1
- package/dist/index288.js +0 -6
- package/dist/index289.cjs +0 -1
- package/dist/index289.js +0 -158
- package/dist/index290.cjs +0 -1
- package/dist/index290.js +0 -12
- package/dist/index291.cjs +0 -1
- package/dist/index291.js +0 -143
- package/dist/index292.cjs +0 -1
- package/dist/index292.js +0 -116
- package/dist/index293.cjs +0 -2
- package/dist/index293.js +0 -137
- package/dist/index294.cjs +0 -1
- package/dist/index294.js +0 -45
- package/dist/index295.cjs +0 -1
- package/dist/index295.js +0 -81
- package/dist/index296.cjs +0 -1
- package/dist/index296.js +0 -4
- package/dist/index297.cjs +0 -1
- package/dist/index297.js +0 -14
- package/dist/index298.cjs +0 -1
- package/dist/index298.js +0 -22
- package/dist/index299.cjs +0 -1
- package/dist/index299.js +0 -71
- package/dist/index300.cjs +0 -1
- package/dist/index300.js +0 -791
- package/dist/index301.cjs +0 -1
- package/dist/index301.js +0 -151
- package/dist/index302.cjs +0 -1
- package/dist/index302.js +0 -203
- package/dist/index303.cjs +0 -2
- package/dist/index303.js +0 -69
- package/dist/index304.cjs +0 -1
- package/dist/index304.js +0 -10
- package/dist/index305.cjs +0 -1
- package/dist/index305.js +0 -65
- package/dist/index306.cjs +0 -1
- package/dist/index306.js +0 -25
- package/dist/index307.cjs +0 -1
- package/dist/index307.js +0 -8
- package/dist/index308.cjs +0 -1
- package/dist/index308.js +0 -80
- package/dist/index309.cjs +0 -1
- package/dist/index309.js +0 -6
- package/dist/index310.cjs +0 -1
- package/dist/index310.js +0 -197
- package/dist/index311.cjs +0 -1
- package/dist/index311.js +0 -7
- package/dist/index312.cjs +0 -1
- package/dist/index312.js +0 -43
- package/dist/index313.cjs +0 -2
- package/dist/index313.js +0 -44
- package/dist/index314.cjs +0 -1
- package/dist/index314.js +0 -4
- package/dist/index315.cjs +0 -1
- package/dist/index315.js +0 -13
- package/dist/index316.cjs +0 -1
- package/dist/index316.js +0 -22
- package/dist/index317.cjs +0 -1
- package/dist/index317.js +0 -11
- package/dist/index318.cjs +0 -1
- package/dist/index318.js +0 -45
- package/dist/index319.cjs +0 -1
- package/dist/index319.js +0 -69
- package/dist/index320.cjs +0 -1
- package/dist/index320.js +0 -68
- package/dist/index321.cjs +0 -1
- package/dist/index321.js +0 -191
- package/dist/index322.cjs +0 -1
- package/dist/index322.js +0 -79
- package/dist/index323.cjs +0 -1
- package/dist/index323.js +0 -43
- package/dist/index324.cjs +0 -1
- package/dist/index324.js +0 -19
- package/dist/index325.cjs +0 -1
- package/dist/index325.js +0 -16
- package/dist/index326.cjs +0 -1
- package/dist/index326.js +0 -7
- package/dist/index327.cjs +0 -1
- package/dist/index327.js +0 -66
- package/dist/index328.cjs +0 -1
- package/dist/index328.js +0 -7
- package/dist/index329.cjs +0 -1
- package/dist/index329.js +0 -47
- package/dist/index330.cjs +0 -1
- package/dist/index330.js +0 -71
- package/dist/index331.cjs +0 -1
- package/dist/index331.js +0 -4
- package/dist/index332.cjs +0 -1
- package/dist/index332.js +0 -24
- package/dist/src/lib/blockNumber/blockNumber.d.ts +0 -10
- package/dist/src/lib/blockNumber/index.d.ts +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index2.cjs"),e=require("./index3.cjs"),t=require("./index4.cjs"),r=require("./index5.cjs"),i=require("./index6.cjs"),s=require("./index7.cjs"),n=require("./index8.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index2.cjs"),e=require("./index3.cjs"),t=require("./index4.cjs"),r=require("./index5.cjs"),i=require("./index6.cjs"),s=require("./index7.cjs"),n=require("./index8.cjs"),a=require("./index9.cjs"),c=require("./index10.cjs"),u=require("./index11.cjs"),y=require("./index12.cjs"),p=require("./index13.cjs"),h=require("./index14.cjs"),k=require("./index15.cjs"),q=require("./index16.cjs"),A=require("./index17.cjs");exports.ApiStatus=o.ApiStatus;exports.Authorization=e.Authorization;exports.Environment=e.Environment;exports.Network=e.Network;exports.add0x=e.add0x;exports.hasKeys=e.hasKeys;exports.hexToU32Array=e.hexToU32Array;exports.parseJwt=e.parseJwt;exports.sleep=e.sleep;exports.trim0x=e.trim0x;exports.with0x=e.with0x;exports.checkAllowanceAndApprove=t.checkAllowanceAndApprove;exports.waitForTransactionReceipt=t.waitForTransactionReceipt;exports.Err=r.Err;exports.Ok=r.Ok;exports.Void=r.Void;exports.DigestKey=i.DigestKey;exports.executeWithTryCatch=s.executeWithTryCatch;exports.Url=n.Url;exports.AuthHeaderEnum=a.AuthHeaderEnum;exports.Siwe=c.Siwe;exports.ApiKey=u.ApiKey;exports.Passkey=y.Passkey;exports.PasskeyLogin=p.PasskeyLogin;exports.MemoryStorage=h.MemoryStorage;exports.StoreKeys=k.StoreKeys;exports.EventBroker=q.EventBroker;exports.Fetcher=A.Fetcher;
|
package/dist/index.js
CHANGED
|
@@ -1,48 +1,46 @@
|
|
|
1
1
|
import { ApiStatus as o } from "./index2.js";
|
|
2
|
-
import { Authorization as p, Environment as
|
|
2
|
+
import { Authorization as p, Environment as x, Network as m, add0x as f, hasKeys as a, hexToU32Array as i, parseJwt as s, sleep as n, trim0x as h, with0x as y } from "./index3.js";
|
|
3
3
|
import { checkAllowanceAndApprove as A, waitForTransactionReceipt as k } from "./index4.js";
|
|
4
|
-
import { Err as
|
|
4
|
+
import { Err as d, Ok as u, Void as l } from "./index5.js";
|
|
5
5
|
import { DigestKey as K } from "./index6.js";
|
|
6
6
|
import { executeWithTryCatch as g } from "./index7.js";
|
|
7
7
|
import { Url as T } from "./index8.js";
|
|
8
|
-
import { AuthHeaderEnum as
|
|
9
|
-
import { Siwe as
|
|
10
|
-
import { ApiKey as
|
|
11
|
-
import { Passkey as
|
|
12
|
-
import { PasskeyLogin as
|
|
13
|
-
import { MemoryStorage as
|
|
14
|
-
import { StoreKeys as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { Fetcher as G } from "./index18.js";
|
|
8
|
+
import { AuthHeaderEnum as P } from "./index9.js";
|
|
9
|
+
import { Siwe as z } from "./index10.js";
|
|
10
|
+
import { ApiKey as C } from "./index11.js";
|
|
11
|
+
import { Passkey as H } from "./index12.js";
|
|
12
|
+
import { PasskeyLogin as L } from "./index13.js";
|
|
13
|
+
import { MemoryStorage as N } from "./index14.js";
|
|
14
|
+
import { StoreKeys as R } from "./index15.js";
|
|
15
|
+
import { EventBroker as W } from "./index16.js";
|
|
16
|
+
import { Fetcher as j } from "./index17.js";
|
|
18
17
|
export {
|
|
19
|
-
|
|
18
|
+
C as ApiKey,
|
|
20
19
|
o as ApiStatus,
|
|
21
|
-
|
|
20
|
+
P as AuthHeaderEnum,
|
|
22
21
|
p as Authorization,
|
|
23
22
|
K as DigestKey,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
x as Environment,
|
|
24
|
+
d as Err,
|
|
25
|
+
W as EventBroker,
|
|
26
|
+
j as Fetcher,
|
|
27
|
+
N as MemoryStorage,
|
|
28
|
+
m as Network,
|
|
29
|
+
u as Ok,
|
|
30
|
+
H as Passkey,
|
|
31
|
+
L as PasskeyLogin,
|
|
32
|
+
z as Siwe,
|
|
33
|
+
R as StoreKeys,
|
|
35
34
|
T as Url,
|
|
36
35
|
l as Void,
|
|
37
36
|
f as add0x,
|
|
38
37
|
A as checkAllowanceAndApprove,
|
|
39
38
|
g as executeWithTryCatch,
|
|
40
|
-
R as fetchEVMBlockNumber,
|
|
41
39
|
a as hasKeys,
|
|
42
40
|
i as hexToU32Array,
|
|
43
41
|
s as parseJwt,
|
|
44
42
|
n as sleep,
|
|
45
|
-
|
|
43
|
+
h as trim0x,
|
|
46
44
|
k as waitForTransactionReceipt,
|
|
47
|
-
|
|
45
|
+
y as with0x
|
|
48
46
|
};
|
package/dist/index10.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("tough-cookie"),g=require("fetch-cookie"),k=require("./index14.cjs"),f=require("./index15.cjs"),h=require("./index3.cjs"),n=require("./index5.cjs"),m=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("tough-cookie"),g=require("fetch-cookie"),k=require("./index14.cjs"),f=require("./index15.cjs"),h=require("./index3.cjs"),n=require("./index5.cjs"),m=require("./index23.cjs"),y=require("./index24.cjs"),C=require("./index22.cjs"),T=require("./index25.cjs"),v=require("./index26.cjs"),S=c=>c&&c.__esModule?c:{default:c},p=S(g);class u{constructor(t,i,e){if(this.url=t.endpoint("siwe"),this.walletClient=i,this.domain=(e==null?void 0:e.domain)||"app.garden.finance",this.domain.startsWith("https://")&&(this.domain=this.domain.split("https://")[1]),this.signingStatement=(e==null?void 0:e.signingStatement)??"Garden.fi",this.store=(e==null?void 0:e.store)??(typeof window<"u"?window.localStorage:new k.MemoryStorage),typeof window>"u"){const r=new w.CookieJar;this.fetchWithCookies=p.default(fetch,r)}else this.fetchWithCookies=window.fetch.bind(window)}static fromDigestKey(t,i,e){const r=m.createWalletClient({account:C.privateKeyToAccount(h.add0x(i.digestKey)),transport:y.http(),chain:v.mainnet});return new u(t,r,e)}verifyToken(t,i){try{const e=h.parseJwt(t);if(!e)return n.Ok(!1);const r=Math.floor(Date.now()/1e3)+120;return n.Ok(e.exp>r&&e.user_id.toLowerCase()===i.toLowerCase())}catch{return n.Ok(!1)}}async getToken(){var s;if(!((s=this.walletClient.account)!=null&&s.address))return n.Err("Wallet client does not have an account");const t=this.store.getItem(f.StoreKeys.AUTH_TOKEN);if(t){const o=this.verifyToken(t,this.walletClient.account.address);if(o.ok&&o.val)return n.Ok(t)}const i=await this.signStatement();if(i.error)return n.Err(i.error);let e;try{const a=await(await this.fetchWithCookies(this.url.endpoint("tokens"),{method:"POST",body:JSON.stringify({...i.val}),headers:{"Content-Type":"application/json"},credentials:"include"})).json();if(a.error||!a.result)return n.Err(a.error??"Failed to get token");e=a.result}catch(o){return n.Err("Failed to get token",o)}if(!this.verifyToken(e,this.walletClient.account.address).val)throw new Error("Token verification failed");return this.store.setItem(f.StoreKeys.AUTH_TOKEN,e),n.Ok(e)}async signStatement(){var a;if(!((a=this.walletClient.account)!=null&&a.address))return n.Err("Wallet client does not have a valid account");const t=new Date,i=new Date(t.getTime()+300*1e3);let e;try{const l=await(await this.fetchWithCookies(this.url.endpoint("challenges"),{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include"})).json();if(l.error||!l.result)return n.Err("Failed to get nonce");e=l.result}catch(d){return n.Err("Failed to get nonce",d)}const r=await this.walletClient.getChainId(),s=T.createSiweMessage({domain:this.domain,address:this.walletClient.account.address,statement:this.signingStatement,nonce:e,uri:"https://"+this.domain,version:"1",chainId:r,notBefore:i}),o=await this.walletClient.signMessage({account:this.walletClient.account,message:s});return n.Ok({message:s,signature:o,nonce:e})}async getAuthHeaders(){const t=await this.getToken();return t.ok?n.Ok({Authorization:h.Authorization(t.val)}):n.Err(t.error)}}exports.Siwe=u;
|
package/dist/index10.js
CHANGED
|
@@ -4,11 +4,11 @@ import { MemoryStorage as w } from "./index14.js";
|
|
|
4
4
|
import { StoreKeys as d } from "./index15.js";
|
|
5
5
|
import { add0x as g, parseJwt as k, Authorization as p } from "./index3.js";
|
|
6
6
|
import { Ok as s, Err as r } from "./index5.js";
|
|
7
|
-
import { createWalletClient as y } from "./
|
|
8
|
-
import { http as C } from "./
|
|
9
|
-
import { privateKeyToAccount as T } from "./
|
|
10
|
-
import { createSiweMessage as v } from "./
|
|
11
|
-
import { mainnet as S } from "./
|
|
7
|
+
import { createWalletClient as y } from "./index23.js";
|
|
8
|
+
import { http as C } from "./index24.js";
|
|
9
|
+
import { privateKeyToAccount as T } from "./index22.js";
|
|
10
|
+
import { createSiweMessage as v } from "./index25.js";
|
|
11
|
+
import { mainnet as S } from "./index26.js";
|
|
12
12
|
class f {
|
|
13
13
|
constructor(e, n, t) {
|
|
14
14
|
if (this.url = e.endpoint("siwe"), this.walletClient = n, this.domain = (t == null ? void 0 : t.domain) || "app.garden.finance", this.domain.startsWith("https://") && (this.domain = this.domain.split("https://")[1]), this.signingStatement = (t == null ? void 0 : t.signingStatement) ?? "Garden.fi", this.store = (t == null ? void 0 : t.store) ?? (typeof window < "u" ? window.localStorage : new w()), typeof window > "u") {
|
package/dist/index100.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index32.cjs"),p=require("./index42.cjs");async function f(s,c={}){const{account:n=s.account,chainId:t}=c,e=n?l.parseAccount(n):void 0,o=t?[e==null?void 0:e.address,[p.numberToHex(t)]]:[e==null?void 0:e.address],u=await s.request({method:"wallet_getCapabilities",params:o}),a={};for(const[r,b]of Object.entries(u)){a[Number(r)]={};for(let[i,d]of Object.entries(b))i==="addSubAccount"&&(i="unstable_addSubAccount"),a[Number(r)][i]=d}return typeof t=="number"?a[t]:a}exports.getCapabilities=f;
|
package/dist/index100.js
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}))
|
|
15
|
-
return !1;
|
|
16
|
-
const c = g(s);
|
|
17
|
-
return h(a, {
|
|
18
|
-
address: e.address,
|
|
19
|
-
hash: c,
|
|
20
|
-
signature: d,
|
|
21
|
-
...f
|
|
22
|
-
});
|
|
1
|
+
import { parseAccount as p } from "./index32.js";
|
|
2
|
+
import { numberToHex as f } from "./index42.js";
|
|
3
|
+
async function h(s, n = {}) {
|
|
4
|
+
const { account: o = s.account, chainId: t } = n, e = o ? p(o) : void 0, c = t ? [e == null ? void 0 : e.address, [f(t)]] : [e == null ? void 0 : e.address], b = await s.request({
|
|
5
|
+
method: "wallet_getCapabilities",
|
|
6
|
+
params: c
|
|
7
|
+
}), a = {};
|
|
8
|
+
for (const [r, u] of Object.entries(b)) {
|
|
9
|
+
a[Number(r)] = {};
|
|
10
|
+
for (let [i, d] of Object.entries(u))
|
|
11
|
+
i === "addSubAccount" && (i = "unstable_addSubAccount"), a[Number(r)][i] = d;
|
|
12
|
+
}
|
|
13
|
+
return typeof t == "number" ? a[t] : a;
|
|
23
14
|
}
|
|
24
15
|
export {
|
|
25
|
-
|
|
16
|
+
h as getCapabilities
|
|
26
17
|
};
|
package/dist/index101.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function s(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}exports.getPermissions=s;
|
package/dist/index101.js
CHANGED
|
@@ -1,112 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { estimateGas as k } from "./index69.js";
|
|
4
|
-
import { getBlock as I } from "./index73.js";
|
|
5
|
-
import { getTransactionCount as T } from "./index88.js";
|
|
6
|
-
import { MaxFeePerGasTooLowError as C, Eip1559FeesNotSupportedError as H } from "./index142.js";
|
|
7
|
-
import { blobsToCommitments as q } from "./index209.js";
|
|
8
|
-
import { blobsToProofs as V } from "./index213.js";
|
|
9
|
-
import { commitmentsToVersionedHashes as _ } from "./index212.js";
|
|
10
|
-
import { toBlobSidecars as B } from "./index214.js";
|
|
11
|
-
import { getAction as p } from "./index32.js";
|
|
12
|
-
import { assertRequest as E } from "./index202.js";
|
|
13
|
-
import { getTransactionType as M } from "./index191.js";
|
|
14
|
-
import { getChainId as N } from "./index76.js";
|
|
15
|
-
const A = [
|
|
16
|
-
"blobVersionedHashes",
|
|
17
|
-
"chainId",
|
|
18
|
-
"fees",
|
|
19
|
-
"gas",
|
|
20
|
-
"nonce",
|
|
21
|
-
"type"
|
|
22
|
-
], w = /* @__PURE__ */ new Map();
|
|
23
|
-
async function X(s, a) {
|
|
24
|
-
const { account: u = s.account, blobs: c, chain: d, gas: g, kzg: y, nonce: G, nonceManager: h, parameters: i = A, type: x } = a, n = u && F(u), e = { ...a, ...n ? { from: n == null ? void 0 : n.address } : {} };
|
|
25
|
-
let f;
|
|
26
|
-
async function l() {
|
|
27
|
-
return f || (f = await p(s, I, "getBlock")({ blockTag: "latest" }), f);
|
|
28
|
-
}
|
|
29
|
-
let m;
|
|
30
|
-
async function P() {
|
|
31
|
-
return m || (d ? d.id : typeof a.chainId < "u" ? a.chainId : (m = await p(s, N, "getChainId")({}), m));
|
|
32
|
-
}
|
|
33
|
-
if (i.includes("nonce") && typeof G > "u" && n)
|
|
34
|
-
if (h) {
|
|
35
|
-
const t = await P();
|
|
36
|
-
e.nonce = await h.consume({
|
|
37
|
-
address: n.address,
|
|
38
|
-
chainId: t,
|
|
39
|
-
client: s
|
|
40
|
-
});
|
|
41
|
-
} else
|
|
42
|
-
e.nonce = await p(s, T, "getTransactionCount")({
|
|
43
|
-
address: n.address,
|
|
44
|
-
blockTag: "pending"
|
|
45
|
-
});
|
|
46
|
-
if ((i.includes("blobVersionedHashes") || i.includes("sidecars")) && c && y) {
|
|
47
|
-
const t = q({ blobs: c, kzg: y });
|
|
48
|
-
if (i.includes("blobVersionedHashes")) {
|
|
49
|
-
const o = _({
|
|
50
|
-
commitments: t,
|
|
51
|
-
to: "hex"
|
|
52
|
-
});
|
|
53
|
-
e.blobVersionedHashes = o;
|
|
54
|
-
}
|
|
55
|
-
if (i.includes("sidecars")) {
|
|
56
|
-
const o = V({ blobs: c, commitments: t, kzg: y }), r = B({
|
|
57
|
-
blobs: c,
|
|
58
|
-
commitments: t,
|
|
59
|
-
proofs: o,
|
|
60
|
-
to: "hex"
|
|
61
|
-
});
|
|
62
|
-
e.sidecars = r;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if (i.includes("chainId") && (e.chainId = await P()), (i.includes("fees") || i.includes("type")) && typeof x > "u")
|
|
66
|
-
try {
|
|
67
|
-
e.type = M(e);
|
|
68
|
-
} catch {
|
|
69
|
-
let t = w.get(s.uid);
|
|
70
|
-
if (typeof t > "u") {
|
|
71
|
-
const o = await l();
|
|
72
|
-
t = typeof (o == null ? void 0 : o.baseFeePerGas) == "bigint", w.set(s.uid, t);
|
|
73
|
-
}
|
|
74
|
-
e.type = t ? "eip1559" : "legacy";
|
|
75
|
-
}
|
|
76
|
-
if (i.includes("fees"))
|
|
77
|
-
if (e.type !== "legacy" && e.type !== "eip2930") {
|
|
78
|
-
if (typeof e.maxFeePerGas > "u" || typeof e.maxPriorityFeePerGas > "u") {
|
|
79
|
-
const t = await l(), { maxFeePerGas: o, maxPriorityFeePerGas: r } = await b(s, {
|
|
80
|
-
block: t,
|
|
81
|
-
chain: d,
|
|
82
|
-
request: e
|
|
83
|
-
});
|
|
84
|
-
if (typeof a.maxPriorityFeePerGas > "u" && a.maxFeePerGas && a.maxFeePerGas < r)
|
|
85
|
-
throw new C({
|
|
86
|
-
maxPriorityFeePerGas: r
|
|
87
|
-
});
|
|
88
|
-
e.maxPriorityFeePerGas = r, e.maxFeePerGas = o;
|
|
89
|
-
}
|
|
90
|
-
} else {
|
|
91
|
-
if (typeof a.maxFeePerGas < "u" || typeof a.maxPriorityFeePerGas < "u")
|
|
92
|
-
throw new H();
|
|
93
|
-
if (typeof a.gasPrice > "u") {
|
|
94
|
-
const t = await l(), { gasPrice: o } = await b(s, {
|
|
95
|
-
block: t,
|
|
96
|
-
chain: d,
|
|
97
|
-
request: e,
|
|
98
|
-
type: "legacy"
|
|
99
|
-
});
|
|
100
|
-
e.gasPrice = o;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return i.includes("gas") && typeof g > "u" && (e.gas = await p(s, k, "estimateGas")({
|
|
104
|
-
...e,
|
|
105
|
-
account: n && { address: n.address, type: "json-rpc" }
|
|
106
|
-
})), E(e), delete e.parameters, e;
|
|
1
|
+
async function t(e) {
|
|
2
|
+
return await e.request({ method: "wallet_getPermissions" }, { dedupe: !0 });
|
|
107
3
|
}
|
|
108
4
|
export {
|
|
109
|
-
|
|
110
|
-
w as eip1559NetworkCache,
|
|
111
|
-
X as prepareTransactionRequest
|
|
5
|
+
t as getPermissions
|
|
112
6
|
};
|
package/dist/index102.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index32.cjs"),f=require("./index103.cjs"),g=require("./index104.cjs"),s=require("./index55.cjs"),h=require("./index71.cjs"),A=require("./index78.cjs");async function p(o,n){var i;const{account:c=o.account,chainId:u,nonce:a}=n;if(!c)throw new f.AccountNotFoundError({docsPath:"/docs/eip7702/prepareAuthorization"});const r=d.parseAccount(c),t=(()=>{if(n.executor)return n.executor==="self"?n.executor:d.parseAccount(n.executor)})(),e={address:n.contractAddress??n.address,chainId:u,nonce:a};return typeof e.chainId>"u"&&(e.chainId=((i=o.chain)==null?void 0:i.id)??await s.getAction(o,h.getChainId,"getChainId")({})),typeof e.nonce>"u"&&(e.nonce=await s.getAction(o,A.getTransactionCount,"getTransactionCount")({address:r.address,blockTag:"pending"}),(t==="self"||t!=null&&t.address&&g.isAddressEqual(t.address,r.address))&&(e.nonce+=1)),e}exports.prepareAuthorization=p;
|
package/dist/index102.js
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { parseAccount as e } from "./index32.js";
|
|
2
|
+
import { AccountNotFoundError as f } from "./index103.js";
|
|
3
|
+
import { isAddressEqual as h } from "./index104.js";
|
|
4
|
+
import { getAction as a } from "./index55.js";
|
|
5
|
+
import { getChainId as p } from "./index71.js";
|
|
6
|
+
import { getTransactionCount as g } from "./index78.js";
|
|
7
|
+
async function y(r, o) {
|
|
8
|
+
var i;
|
|
9
|
+
const { account: c = r.account, chainId: s, nonce: u } = o;
|
|
10
|
+
if (!c)
|
|
11
|
+
throw new f({
|
|
12
|
+
docsPath: "/docs/eip7702/prepareAuthorization"
|
|
13
|
+
});
|
|
14
|
+
const d = e(c), t = (() => {
|
|
15
|
+
if (o.executor)
|
|
16
|
+
return o.executor === "self" ? o.executor : e(o.executor);
|
|
17
|
+
})(), n = {
|
|
18
|
+
address: o.contractAddress ?? o.address,
|
|
19
|
+
chainId: s,
|
|
20
|
+
nonce: u
|
|
21
|
+
};
|
|
22
|
+
return typeof n.chainId > "u" && (n.chainId = ((i = r.chain) == null ? void 0 : i.id) ?? await a(r, p, "getChainId")({})), typeof n.nonce > "u" && (n.nonce = await a(r, g, "getTransactionCount")({
|
|
23
|
+
address: d.address,
|
|
24
|
+
blockTag: "pending"
|
|
25
|
+
}), (t === "self" || t != null && t.address && h(t.address, d.address)) && (n.nonce += 1)), n;
|
|
6
26
|
}
|
|
7
27
|
export {
|
|
8
|
-
|
|
28
|
+
y as prepareAuthorization
|
|
9
29
|
};
|
package/dist/index103.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index35.cjs");class c extends t.BaseError{constructor({docsPath:o}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
|
|
2
|
+
`),{docsPath:o,docsSlug:"account",name:"AccountNotFoundError"})}}class u extends t.BaseError{constructor({docsPath:o,metaMessages:e,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:o,metaMessages:e,name:"AccountTypeNotSupportedError"})}}exports.AccountNotFoundError=c;exports.AccountTypeNotSupportedError=u;
|
package/dist/index103.js
CHANGED
|
@@ -1,53 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import { writeContract as R } from "./index39.js";
|
|
24
|
-
function X(s) {
|
|
25
|
-
return {
|
|
26
|
-
addChain: (r) => t(s, r),
|
|
27
|
-
deployContract: (r) => a(s, r),
|
|
28
|
-
getAddresses: () => i(s),
|
|
29
|
-
getCallsStatus: (r) => m(s, r),
|
|
30
|
-
getCapabilities: (r) => e(s, r),
|
|
31
|
-
getChainId: () => o(s),
|
|
32
|
-
getPermissions: () => p(s),
|
|
33
|
-
prepareAuthorization: (r) => n(s, r),
|
|
34
|
-
prepareTransactionRequest: (r) => d(s, r),
|
|
35
|
-
requestAddresses: () => f(s),
|
|
36
|
-
requestPermissions: (r) => g(s, r),
|
|
37
|
-
sendCalls: (r) => C(s, r),
|
|
38
|
-
sendRawTransaction: (r) => u(s, r),
|
|
39
|
-
sendTransaction: (r) => h(s, r),
|
|
40
|
-
showCallsStatus: (r) => w(s, r),
|
|
41
|
-
signAuthorization: (r) => A(s, r),
|
|
42
|
-
signMessage: (r) => T(s, r),
|
|
43
|
-
signTransaction: (r) => q(s, r),
|
|
44
|
-
signTypedData: (r) => S(s, r),
|
|
45
|
-
switchChain: (r) => y(s, r),
|
|
46
|
-
waitForCallsStatus: (r) => z(s, r),
|
|
47
|
-
watchAsset: (r) => P(s, r),
|
|
48
|
-
writeContract: (r) => R(s, r)
|
|
49
|
-
};
|
|
1
|
+
import { BaseError as t } from "./index35.js";
|
|
2
|
+
class u extends t {
|
|
3
|
+
constructor({ docsPath: o } = {}) {
|
|
4
|
+
super([
|
|
5
|
+
"Could not find an Account to execute with this Action.",
|
|
6
|
+
"Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."
|
|
7
|
+
].join(`
|
|
8
|
+
`), {
|
|
9
|
+
docsPath: o,
|
|
10
|
+
docsSlug: "account",
|
|
11
|
+
name: "AccountNotFoundError"
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
class s extends t {
|
|
16
|
+
constructor({ docsPath: o, metaMessages: c, type: r }) {
|
|
17
|
+
super(`Account type "${r}" is not supported.`, {
|
|
18
|
+
docsPath: o,
|
|
19
|
+
metaMessages: c,
|
|
20
|
+
name: "AccountTypeNotSupportedError"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
50
23
|
}
|
|
51
24
|
export {
|
|
52
|
-
|
|
25
|
+
u as AccountNotFoundError,
|
|
26
|
+
s as AccountTypeNotSupportedError
|
|
53
27
|
};
|
package/dist/index104.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("./index142.cjs"),d=require("./index166.cjs");function t(s,r){if(!d.isAddress(s,{strict:!1}))throw new e.InvalidAddressError({address:s});if(!d.isAddress(r,{strict:!1}))throw new e.InvalidAddressError({address:r});return s.toLowerCase()===r.toLowerCase()}exports.isAddressEqual=t;
|
package/dist/index104.js
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
chainName: n,
|
|
10
|
-
nativeCurrency: d,
|
|
11
|
-
rpcUrls: o.default.http,
|
|
12
|
-
blockExplorerUrls: e ? Object.values(e).map(({ url: c }) => c) : void 0
|
|
13
|
-
}
|
|
14
|
-
]
|
|
15
|
-
}, { dedupe: !0, retryCount: 0 });
|
|
1
|
+
import { InvalidAddressError as e } from "./index142.js";
|
|
2
|
+
import { isAddress as o } from "./index166.js";
|
|
3
|
+
function i(r, s) {
|
|
4
|
+
if (!o(r, { strict: !1 }))
|
|
5
|
+
throw new e({ address: r });
|
|
6
|
+
if (!o(s, { strict: !1 }))
|
|
7
|
+
throw new e({ address: s });
|
|
8
|
+
return r.toLowerCase() === s.toLowerCase();
|
|
16
9
|
}
|
|
17
10
|
export {
|
|
18
|
-
i as
|
|
11
|
+
i as isAddressEqual
|
|
19
12
|
};
|
package/dist/index105.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("./index160.cjs"),l=require("./index42.cjs");function c(o){const{kzg:s}=o,n=o.to??(typeof o.blobs[0]=="string"?"hex":"bytes"),e=typeof o.blobs[0]=="string"?o.blobs.map(t=>i.hexToBytes(t)):o.blobs,b=[];for(const t of e)b.push(Uint8Array.from(s.blobToKzgCommitment(t)));return n==="bytes"?b:b.map(t=>l.bytesToHex(t))}exports.blobsToCommitments=c;
|
package/dist/index105.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
const {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
data: c
|
|
9
|
-
});
|
|
1
|
+
import { hexToBytes as i } from "./index160.js";
|
|
2
|
+
import { bytesToHex as f } from "./index42.js";
|
|
3
|
+
function y(o) {
|
|
4
|
+
const { kzg: s } = o, n = o.to ?? (typeof o.blobs[0] == "string" ? "hex" : "bytes"), m = typeof o.blobs[0] == "string" ? o.blobs.map((t) => i(t)) : o.blobs, b = [];
|
|
5
|
+
for (const t of m)
|
|
6
|
+
b.push(Uint8Array.from(s.blobToKzgCommitment(t)));
|
|
7
|
+
return n === "bytes" ? b : b.map((t) => f(t));
|
|
10
8
|
}
|
|
11
9
|
export {
|
|
12
|
-
|
|
10
|
+
y as blobsToCommitments
|
|
13
11
|
};
|
package/dist/index106.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 b=require("./index160.cjs"),y=require("./index42.cjs");function f(t){const{kzg:c}=t,e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),n=typeof t.blobs[0]=="string"?t.blobs.map(o=>b.hexToBytes(o)):t.blobs,i=typeof t.commitments[0]=="string"?t.commitments.map(o=>b.hexToBytes(o)):t.commitments,s=[];for(let o=0;o<n.length;o++){const l=n[o],m=i[o];s.push(Uint8Array.from(c.computeBlobKzgProof(l,m)))}return e==="bytes"?s:s.map(o=>y.bytesToHex(o))}exports.blobsToProofs=f;
|
package/dist/index106.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { hexToBytes as b } from "./index160.js";
|
|
2
|
+
import { bytesToHex as y } from "./index42.js";
|
|
3
|
+
function h(t) {
|
|
4
|
+
const { kzg: m } = t, c = t.to ?? (typeof t.blobs[0] == "string" ? "hex" : "bytes"), s = typeof t.blobs[0] == "string" ? t.blobs.map((o) => b(o)) : t.blobs, i = typeof t.commitments[0] == "string" ? t.commitments.map((o) => b(o)) : t.commitments, n = [];
|
|
5
|
+
for (let o = 0; o < s.length; o++) {
|
|
6
|
+
const f = s[o], l = i[o];
|
|
7
|
+
n.push(Uint8Array.from(m.computeBlobKzgProof(f, l)));
|
|
8
|
+
}
|
|
9
|
+
return c === "bytes" ? n : n.map((o) => y(o));
|
|
5
10
|
}
|
|
6
11
|
export {
|
|
7
|
-
|
|
12
|
+
h as blobsToProofs
|
|
8
13
|
};
|
package/dist/index107.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("./index174.cjs");function c(o){const{commitments:e,version:s}=o,n=o.to??(typeof e[0]=="string"?"hex":"bytes"),t=[];for(const m of e)t.push(i.commitmentToVersionedHash({commitment:m,to:n,version:s}));return t}exports.commitmentsToVersionedHashes=c;
|
package/dist/index107.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
i === "addSubAccount" && (i = "unstable_addSubAccount"), a[Number(r)][i] = d;
|
|
12
|
-
}
|
|
13
|
-
return typeof t == "number" ? a[t] : a;
|
|
1
|
+
import { commitmentToVersionedHash as i } from "./index174.js";
|
|
2
|
+
function r(o) {
|
|
3
|
+
const { commitments: t, version: n } = o, e = o.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), s = [];
|
|
4
|
+
for (const m of t)
|
|
5
|
+
s.push(i({
|
|
6
|
+
commitment: m,
|
|
7
|
+
to: e,
|
|
8
|
+
version: n
|
|
9
|
+
}));
|
|
10
|
+
return s;
|
|
14
11
|
}
|
|
15
12
|
export {
|
|
16
|
-
|
|
13
|
+
r as commitmentsToVersionedHashes
|
|
17
14
|
};
|
package/dist/index108.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index105.cjs"),m=require("./index106.cjs"),u=require("./index176.cjs");function f(t){const{data:i,kzg:n,to:b}=t,s=t.blobs??u.toBlobs({data:i,to:b}),e=t.commitments??r.blobsToCommitments({blobs:s,kzg:n,to:b}),l=t.proofs??m.blobsToProofs({blobs:s,commitments:e,kzg:n,to:b}),c=[];for(let o=0;o<s.length;o++)c.push({blob:s[o],commitment:e[o],proof:l[o]});return c}exports.toBlobSidecars=f;
|
package/dist/index108.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { blobsToCommitments as f } from "./index105.js";
|
|
2
|
+
import { blobsToProofs as l } from "./index106.js";
|
|
3
|
+
import { toBlobs as p } from "./index176.js";
|
|
4
|
+
function k(t) {
|
|
5
|
+
const { data: i, kzg: n, to: m } = t, s = t.blobs ?? p({ data: i, to: m }), b = t.commitments ?? f({ blobs: s, kzg: n, to: m }), r = t.proofs ?? l({ blobs: s, commitments: b, kzg: n, to: m }), c = [];
|
|
6
|
+
for (let o = 0; o < s.length; o++)
|
|
7
|
+
c.push({
|
|
8
|
+
blob: s[o],
|
|
9
|
+
commitment: b[o],
|
|
10
|
+
proof: r[o]
|
|
11
|
+
});
|
|
12
|
+
return c;
|
|
3
13
|
}
|
|
4
14
|
export {
|
|
5
|
-
|
|
15
|
+
k as toBlobSidecars
|
|
6
16
|
};
|
package/dist/index109.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("./index79.cjs");function f(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new i.InvalidSerializableTransactionError({transaction:e})}exports.getTransactionType=f;
|