@gardenfi/utils 2.5.3-beta.0 → 2.5.3-beta.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 +26 -28
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +5 -5
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +8 -23
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +11 -108
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +18 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +27 -50
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +21 -16
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +51 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +11 -5
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +161 -14
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +21 -3
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +127 -26
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +38 -4
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +6 -6
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +27 -88
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +54 -124
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +45 -7
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +189 -19
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +4 -18
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +62 -38
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +3 -22
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +20 -11
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +16 -6
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +23 -106
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +12 -3
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +19 -4
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +35 -9
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +3 -2
- package/dist/index126.cjs +1 -2
- package/dist/index126.js +19 -3
- package/dist/index127.cjs +1 -20
- package/dist/index127.js +27 -326
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +35 -12
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +8 -4
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +11 -2
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +24 -6
- package/dist/index132.cjs +1 -3
- package/dist/index132.js +27 -214
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +64 -30
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +9 -21
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +23 -5
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +24 -73
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +24 -5
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +3 -5
- package/dist/index139.cjs +1 -9
- package/dist/index139.js +14 -35
- package/dist/index140.cjs +1 -3
- package/dist/index140.js +93 -100
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +81 -3
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +5 -23
- package/dist/index143.cjs +1 -3
- package/dist/index143.js +6 -451
- package/dist/index144.cjs +1 -2
- package/dist/index144.js +26 -53
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +26 -26
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +13 -33
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +42 -35
- package/dist/index148.cjs +1 -4
- package/dist/index148.js +19 -194
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +77 -7
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +2 -13
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +32 -13
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +106 -22
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +166 -8
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +46 -52
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +31 -44
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +8 -8
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +6 -7
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +6 -16
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +11 -18
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +18 -26
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +10 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +13 -51
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +32 -11
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +5 -162
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +7 -21
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +8 -127
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +18 -36
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +31 -6
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +3 -27
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +16 -190
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +113 -14
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +11 -4
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +19 -62
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +23 -3
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -20
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +5 -16
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +8 -23
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +104 -11
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +3 -35
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +19 -3
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +171 -18
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +118 -115
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +16 -26
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +30 -36
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +2 -11
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +13 -25
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +11 -27
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +45 -63
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +11 -9
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +7 -33
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +89 -24
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +46 -24
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +37 -3
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +17 -14
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +5 -102
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +9 -80
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +13 -5
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +8 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +8 -27
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +35 -26
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +16 -13
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +14 -42
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +13 -5
- package/dist/index201.cjs +2 -1
- package/dist/index201.js +24 -11
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +6 -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 +283 -13
- package/dist/index210.cjs +2 -1
- package/dist/index210.js +41 -6
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +2 -7
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +5 -11
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +9 -9
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +18 -12
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +8 -32
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +67 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +65 -7
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +184 -6
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +26 -18
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -497
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +74 -29
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +40 -3
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +16 -17
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +13 -10
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +11 -20
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +11 -22
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +103 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +6 -5
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +244 -8
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +6 -104
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +25 -34
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +7 -3
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +24 -16
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +17 -169
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +145 -16
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +24 -9
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +45 -15
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +9 -22
- 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 +8 -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 +1 -1
- package/dist/index242.js +68 -11
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +788 -7
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +148 -9
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +199 -12
- package/dist/index246.cjs +2 -1
- package/dist/index246.js +65 -13
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +14 -9
- 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 +1 -1
- package/dist/index25.js +13 -30
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +57 -11
- package/dist/index27.cjs +16 -1
- package/dist/index27.js +113 -57
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +30 -13
- package/dist/index29.cjs +1 -16
- package/dist/index29.js +7 -113
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +30 -25
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +28 -6
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +16 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +32 -30
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +40 -25
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +151 -16
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +30 -28
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +54 -41
- package/dist/index38.cjs +2 -1
- package/dist/index38.js +59 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +12 -34
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +4 -4
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +37 -57
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +15 -59
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -13
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +19 -36
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -16
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +44 -7
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +31 -19
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +4 -2
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -44
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +67 -31
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +9 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +28 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +71 -68
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +19 -9
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +48 -26
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +7 -71
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +16 -19
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +10 -110
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +5 -61
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +13 -23
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +3 -36
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +25 -40
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +108 -57
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +4 -166
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +6 -40
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +87 -8
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +6 -36
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +125 -9
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +7 -50
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +19 -87
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +16 -40
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +39 -7
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +21 -6
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +11 -17
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +6 -8
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +106 -13
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +3 -8
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +9 -10
- package/dist/index78.cjs +2 -1
- package/dist/index78.js +3 -47
- package/dist/index79.cjs +20 -1
- package/dist/index79.js +326 -13
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +13 -16
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +4 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +2 -7
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +7 -35
- package/dist/index84.cjs +3 -1
- package/dist/index84.js +215 -9
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +32 -9
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +20 -25
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +5 -10
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +73 -14
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +5 -118
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +5 -81
- package/dist/index91.cjs +9 -1
- package/dist/index91.js +32 -174
- package/dist/index92.cjs +3 -1
- package/dist/index92.js +95 -6
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +3 -14
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +23 -13
- package/dist/index95.cjs +3 -1
- package/dist/index95.js +451 -103
- package/dist/index96.cjs +2 -1
- package/dist/index96.js +53 -74
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +20 -89
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +34 -137
- package/dist/index99.cjs +4 -1
- package/dist/index99.js +193 -68
- 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/index54.js
CHANGED
|
@@ -1,31 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { getChainId as o } from "./index55.js";
|
|
2
|
+
import { addChain as t } from "./index56.js";
|
|
3
|
+
import { deployContract as a } from "./index57.js";
|
|
4
|
+
import { getAddresses as i } from "./index58.js";
|
|
5
|
+
import { getCallsStatus as m } from "./index45.js";
|
|
6
|
+
import { getCapabilities as e } from "./index59.js";
|
|
7
|
+
import { getPermissions as p } from "./index60.js";
|
|
8
|
+
import { prepareAuthorization as n } from "./index61.js";
|
|
9
|
+
import { prepareTransactionRequest as d } from "./index62.js";
|
|
10
|
+
import { requestAddresses as f } from "./index63.js";
|
|
11
|
+
import { requestPermissions as g } from "./index64.js";
|
|
12
|
+
import { sendCalls as C } from "./index65.js";
|
|
13
|
+
import { sendRawTransaction as u } from "./index66.js";
|
|
14
|
+
import { sendTransaction as h } from "./index67.js";
|
|
15
|
+
import { showCallsStatus as w } from "./index68.js";
|
|
16
|
+
import { signAuthorization as A } from "./index69.js";
|
|
17
|
+
import { signMessage as T } from "./index70.js";
|
|
18
|
+
import { signTransaction as q } from "./index71.js";
|
|
19
|
+
import { signTypedData as S } from "./index72.js";
|
|
20
|
+
import { switchChain as y } from "./index73.js";
|
|
21
|
+
import { waitForCallsStatus as z } from "./index37.js";
|
|
22
|
+
import { watchAsset as P } from "./index74.js";
|
|
23
|
+
import { writeContract as R } from "./index36.js";
|
|
24
|
+
function X(s) {
|
|
21
25
|
return {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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)
|
|
27
49
|
};
|
|
28
50
|
}
|
|
29
51
|
export {
|
|
30
|
-
|
|
52
|
+
X as walletActions
|
|
31
53
|
};
|
package/dist/index55.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index135.cjs");async function r(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return n.hexToNumber(t)}exports.getChainId=r;
|
package/dist/index55.js
CHANGED
|
@@ -1,74 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
async request(h) {
|
|
8
|
-
var m;
|
|
9
|
-
const { body: r, onRequest: n = o.onRequest, onResponse: f = o.onResponse, timeout: w = o.timeout ?? 1e4 } = h, d = {
|
|
10
|
-
...o.fetchOptions ?? {},
|
|
11
|
-
...h.fetchOptions ?? {}
|
|
12
|
-
}, { headers: T, method: j, signal: O } = d;
|
|
13
|
-
try {
|
|
14
|
-
const t = await k(async ({ signal: a }) => {
|
|
15
|
-
const i = {
|
|
16
|
-
...d,
|
|
17
|
-
body: Array.isArray(r) ? p(r.map((y) => ({
|
|
18
|
-
jsonrpc: "2.0",
|
|
19
|
-
id: y.id ?? l.take(),
|
|
20
|
-
...y
|
|
21
|
-
}))) : p({
|
|
22
|
-
jsonrpc: "2.0",
|
|
23
|
-
id: r.id ?? l.take(),
|
|
24
|
-
...r
|
|
25
|
-
}),
|
|
26
|
-
headers: {
|
|
27
|
-
"Content-Type": "application/json",
|
|
28
|
-
...T
|
|
29
|
-
},
|
|
30
|
-
method: j || "POST",
|
|
31
|
-
signal: O || (w > 0 ? a : null)
|
|
32
|
-
}, R = new Request(s, i), u = await (n == null ? void 0 : n(R, i)) ?? { ...i, url: s };
|
|
33
|
-
return await fetch(u.url ?? s, u);
|
|
34
|
-
}, {
|
|
35
|
-
errorInstance: new g({ body: r, url: s }),
|
|
36
|
-
timeout: w,
|
|
37
|
-
signal: !0
|
|
38
|
-
});
|
|
39
|
-
f && await f(t);
|
|
40
|
-
let e;
|
|
41
|
-
if ((m = t.headers.get("Content-Type")) != null && m.startsWith("application/json"))
|
|
42
|
-
e = await t.json();
|
|
43
|
-
else {
|
|
44
|
-
e = await t.text();
|
|
45
|
-
try {
|
|
46
|
-
e = JSON.parse(e || "{}");
|
|
47
|
-
} catch (a) {
|
|
48
|
-
if (t.ok)
|
|
49
|
-
throw a;
|
|
50
|
-
e = { error: e };
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
if (!t.ok)
|
|
54
|
-
throw new c({
|
|
55
|
-
body: r,
|
|
56
|
-
details: p(e.error) || t.statusText,
|
|
57
|
-
headers: t.headers,
|
|
58
|
-
status: t.status,
|
|
59
|
-
url: s
|
|
60
|
-
});
|
|
61
|
-
return e;
|
|
62
|
-
} catch (t) {
|
|
63
|
-
throw t instanceof c || t instanceof g ? t : new c({
|
|
64
|
-
body: r,
|
|
65
|
-
cause: t,
|
|
66
|
-
url: s
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
};
|
|
1
|
+
import { hexToNumber as n } from "./index135.js";
|
|
2
|
+
async function o(e) {
|
|
3
|
+
const t = await e.request({
|
|
4
|
+
method: "eth_chainId"
|
|
5
|
+
}, { dedupe: !0 });
|
|
6
|
+
return n(t);
|
|
71
7
|
}
|
|
72
8
|
export {
|
|
73
|
-
|
|
9
|
+
o as getChainId
|
|
74
10
|
};
|
package/dist/index56.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("./index114.cjs");async function i(r,{chain:t}){const{id:a,name:n,nativeCurrency:d,rpcUrls:o,blockExplorers:e}=t;await r.request({method:"wallet_addEthereumChain",params:[{chainId:c.numberToHex(a),chainName:n,nativeCurrency:d,rpcUrls:o.default.http,blockExplorerUrls:e?Object.values(e).map(({url:u})=>u):void 0}]},{dedupe:!0,retryCount:0})}exports.addChain=i;
|
package/dist/index56.js
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
request: m(o, { methods: i, retryCount: r, retryDelay: u, uid: d }),
|
|
17
|
-
value: p
|
|
18
|
-
};
|
|
1
|
+
import { numberToHex as l } from "./index114.js";
|
|
2
|
+
async function i(r, { chain: a }) {
|
|
3
|
+
const { id: t, name: n, nativeCurrency: d, rpcUrls: o, blockExplorers: e } = a;
|
|
4
|
+
await r.request({
|
|
5
|
+
method: "wallet_addEthereumChain",
|
|
6
|
+
params: [
|
|
7
|
+
{
|
|
8
|
+
chainId: l(t),
|
|
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 });
|
|
19
16
|
}
|
|
20
17
|
export {
|
|
21
|
-
|
|
18
|
+
i as addChain
|
|
22
19
|
};
|
package/dist/index57.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index126.cjs"),i=require("./index67.cjs");function d(e,o){const{abi:a,args:n,bytecode:r,...t}=o,c=s.encodeDeployData({abi:a,args:n,bytecode:r});return i.sendTransaction(e,{...t,...t.authorizationList?{to:null}:{},data:c})}exports.deployContract=d;
|
package/dist/index57.js
CHANGED
|
@@ -1,113 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import { createEventFilter as C } from "./index66.js";
|
|
11
|
-
import { createPendingTransactionFilter as u } from "./index67.js";
|
|
12
|
-
import { estimateContractGas as F } from "./index34.js";
|
|
13
|
-
import { estimateFeesPerGas as T } from "./index68.js";
|
|
14
|
-
import { estimateGas as E } from "./index69.js";
|
|
15
|
-
import { estimateMaxPriorityFeePerGas as B } from "./index70.js";
|
|
16
|
-
import { getBalance as v } from "./index71.js";
|
|
17
|
-
import { getBlobBaseFee as d } from "./index72.js";
|
|
18
|
-
import { getBlock as w } from "./index73.js";
|
|
19
|
-
import { getBlockNumber as h } from "./index74.js";
|
|
20
|
-
import { getBlockTransactionCount as k } from "./index75.js";
|
|
21
|
-
import { getChainId as P } from "./index76.js";
|
|
22
|
-
import { getCode as o } from "./index77.js";
|
|
23
|
-
import { getContractEvents as y } from "./index35.js";
|
|
24
|
-
import { getEip712Domain as G } from "./index78.js";
|
|
25
|
-
import { getFeeHistory as R } from "./index79.js";
|
|
26
|
-
import { getFilterChanges as A } from "./index80.js";
|
|
27
|
-
import { getFilterLogs as b } from "./index81.js";
|
|
28
|
-
import { getGasPrice as l } from "./index82.js";
|
|
29
|
-
import { getLogs as L } from "./index83.js";
|
|
30
|
-
import { getProof as M } from "./index84.js";
|
|
31
|
-
import { getStorageAt as N } from "./index85.js";
|
|
32
|
-
import { getTransaction as x } from "./index86.js";
|
|
33
|
-
import { getTransactionConfirmations as D } from "./index87.js";
|
|
34
|
-
import { getTransactionCount as S } from "./index88.js";
|
|
35
|
-
import { getTransactionReceipt as q } from "./index21.js";
|
|
36
|
-
import { multicall as H } from "./index89.js";
|
|
37
|
-
import { readContract as I } from "./index36.js";
|
|
38
|
-
import { simulateBlocks as e } from "./index90.js";
|
|
39
|
-
import { simulateCalls as j } from "./index91.js";
|
|
40
|
-
import { simulateContract as z } from "./index37.js";
|
|
41
|
-
import { uninstallFilter as J } from "./index92.js";
|
|
42
|
-
import { verifyMessage as K } from "./index93.js";
|
|
43
|
-
import { verifyTypedData as O } from "./index94.js";
|
|
44
|
-
import { waitForTransactionReceipt as Q } from "./index95.js";
|
|
45
|
-
import { watchBlockNumber as U } from "./index96.js";
|
|
46
|
-
import { watchBlocks as V } from "./index97.js";
|
|
47
|
-
import { watchContractEvent as W } from "./index38.js";
|
|
48
|
-
import { watchEvent as X } from "./index98.js";
|
|
49
|
-
import { watchPendingTransactions as Y } from "./index99.js";
|
|
50
|
-
import { verifySiweMessage as Z } from "./index100.js";
|
|
51
|
-
import { prepareTransactionRequest as _ } from "./index101.js";
|
|
52
|
-
import { sendRawTransaction as $ } from "./index102.js";
|
|
53
|
-
function _r(t) {
|
|
54
|
-
return {
|
|
55
|
-
call: (r) => p(t, r),
|
|
56
|
-
createAccessList: (r) => f(t, r),
|
|
57
|
-
createBlockFilter: () => n(t),
|
|
58
|
-
createContractEventFilter: (r) => c(t, r),
|
|
59
|
-
createEventFilter: (r) => C(t, r),
|
|
60
|
-
createPendingTransactionFilter: () => u(t),
|
|
61
|
-
estimateContractGas: (r) => F(t, r),
|
|
62
|
-
estimateGas: (r) => E(t, r),
|
|
63
|
-
getBalance: (r) => v(t, r),
|
|
64
|
-
getBlobBaseFee: () => d(t),
|
|
65
|
-
getBlock: (r) => w(t, r),
|
|
66
|
-
getBlockNumber: (r) => h(t, r),
|
|
67
|
-
getBlockTransactionCount: (r) => k(t, r),
|
|
68
|
-
getBytecode: (r) => o(t, r),
|
|
69
|
-
getChainId: () => P(t),
|
|
70
|
-
getCode: (r) => o(t, r),
|
|
71
|
-
getContractEvents: (r) => y(t, r),
|
|
72
|
-
getEip712Domain: (r) => G(t, r),
|
|
73
|
-
getEnsAddress: (r) => a(t, r),
|
|
74
|
-
getEnsAvatar: (r) => m(t, r),
|
|
75
|
-
getEnsName: (r) => s(t, r),
|
|
76
|
-
getEnsResolver: (r) => i(t, r),
|
|
77
|
-
getEnsText: (r) => g(t, r),
|
|
78
|
-
getFeeHistory: (r) => R(t, r),
|
|
79
|
-
estimateFeesPerGas: (r) => T(t, r),
|
|
80
|
-
getFilterChanges: (r) => A(t, r),
|
|
81
|
-
getFilterLogs: (r) => b(t, r),
|
|
82
|
-
getGasPrice: () => l(t),
|
|
83
|
-
getLogs: (r) => L(t, r),
|
|
84
|
-
getProof: (r) => M(t, r),
|
|
85
|
-
estimateMaxPriorityFeePerGas: (r) => B(t, r),
|
|
86
|
-
getStorageAt: (r) => N(t, r),
|
|
87
|
-
getTransaction: (r) => x(t, r),
|
|
88
|
-
getTransactionConfirmations: (r) => D(t, r),
|
|
89
|
-
getTransactionCount: (r) => S(t, r),
|
|
90
|
-
getTransactionReceipt: (r) => q(t, r),
|
|
91
|
-
multicall: (r) => H(t, r),
|
|
92
|
-
prepareTransactionRequest: (r) => _(t, r),
|
|
93
|
-
readContract: (r) => I(t, r),
|
|
94
|
-
sendRawTransaction: (r) => $(t, r),
|
|
95
|
-
simulate: (r) => e(t, r),
|
|
96
|
-
simulateBlocks: (r) => e(t, r),
|
|
97
|
-
simulateCalls: (r) => j(t, r),
|
|
98
|
-
simulateContract: (r) => z(t, r),
|
|
99
|
-
verifyMessage: (r) => K(t, r),
|
|
100
|
-
verifySiweMessage: (r) => Z(t, r),
|
|
101
|
-
verifyTypedData: (r) => O(t, r),
|
|
102
|
-
uninstallFilter: (r) => J(t, r),
|
|
103
|
-
waitForTransactionReceipt: (r) => Q(t, r),
|
|
104
|
-
watchBlocks: (r) => V(t, r),
|
|
105
|
-
watchBlockNumber: (r) => U(t, r),
|
|
106
|
-
watchContractEvent: (r) => W(t, r),
|
|
107
|
-
watchEvent: (r) => X(t, r),
|
|
108
|
-
watchPendingTransactions: (r) => Y(t, r)
|
|
109
|
-
};
|
|
1
|
+
import { encodeDeployData as i } from "./index126.js";
|
|
2
|
+
import { sendTransaction as s } from "./index67.js";
|
|
3
|
+
function p(o, a) {
|
|
4
|
+
const { abi: n, args: r, bytecode: e, ...t } = a, c = i({ abi: n, args: r, bytecode: e });
|
|
5
|
+
return s(o, {
|
|
6
|
+
...t,
|
|
7
|
+
...t.authorizationList ? { to: null } : {},
|
|
8
|
+
data: c
|
|
9
|
+
});
|
|
110
10
|
}
|
|
111
11
|
export {
|
|
112
|
-
|
|
12
|
+
p as deployContract
|
|
113
13
|
};
|
package/dist/index58.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 d=require("./index108.cjs");async function r(e){var s;return((s=e.account)==null?void 0:s.type)==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(t=>d.checksumAddress(t))}exports.getAddresses=r;
|
package/dist/index58.js
CHANGED
|
@@ -1,64 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { trim as y } from "./index167.js";
|
|
6
|
-
import { toHex as C } from "./index155.js";
|
|
7
|
-
import { isNullUniversalResolverError as x } from "./index234.js";
|
|
8
|
-
import { localBatchGatewayUrl as N } from "./index208.js";
|
|
9
|
-
import { namehash as m } from "./index158.js";
|
|
10
|
-
import { packetToBytes as T } from "./index235.js";
|
|
11
|
-
import { getAction as U } from "./index32.js";
|
|
12
|
-
import { readContract as k } from "./index36.js";
|
|
13
|
-
async function K(s, o) {
|
|
14
|
-
const { blockNumber: i, blockTag: f, coinType: a, name: e, gatewayUrls: v, strict: p } = o, { chain: t } = s, A = (() => {
|
|
15
|
-
if (o.universalResolverAddress)
|
|
16
|
-
return o.universalResolverAddress;
|
|
17
|
-
if (!t)
|
|
18
|
-
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
19
|
-
return w({
|
|
20
|
-
blockNumber: i,
|
|
21
|
-
chain: t,
|
|
22
|
-
contract: "ensUniversalResolver"
|
|
23
|
-
});
|
|
24
|
-
})(), c = t == null ? void 0 : t.ensTlds;
|
|
25
|
-
if (c && !c.some((r) => e.endsWith(r)))
|
|
26
|
-
return null;
|
|
27
|
-
const l = a != null ? [m(e), BigInt(a)] : [m(e)];
|
|
28
|
-
try {
|
|
29
|
-
const r = b({
|
|
30
|
-
abi: u,
|
|
31
|
-
functionName: "addr",
|
|
32
|
-
args: l
|
|
33
|
-
}), h = {
|
|
34
|
-
address: A,
|
|
35
|
-
abi: R,
|
|
36
|
-
functionName: "resolveWithGateways",
|
|
37
|
-
args: [
|
|
38
|
-
C(T(e)),
|
|
39
|
-
r,
|
|
40
|
-
v ?? [N]
|
|
41
|
-
],
|
|
42
|
-
blockNumber: i,
|
|
43
|
-
blockTag: f
|
|
44
|
-
}, d = await U(s, k, "readContract")(h);
|
|
45
|
-
if (d[0] === "0x")
|
|
46
|
-
return null;
|
|
47
|
-
const n = g({
|
|
48
|
-
abi: u,
|
|
49
|
-
args: l,
|
|
50
|
-
functionName: "addr",
|
|
51
|
-
data: d[0]
|
|
52
|
-
});
|
|
53
|
-
return n === "0x" || y(n) === "0x00" ? null : n;
|
|
54
|
-
} catch (r) {
|
|
55
|
-
if (p)
|
|
56
|
-
throw r;
|
|
57
|
-
if (x(r))
|
|
58
|
-
return null;
|
|
59
|
-
throw r;
|
|
60
|
-
}
|
|
1
|
+
import { checksumAddress as t } from "./index108.js";
|
|
2
|
+
async function c(e) {
|
|
3
|
+
var s;
|
|
4
|
+
return ((s = e.account) == null ? void 0 : s.type) === "local" ? [e.account.address] : (await e.request({ method: "eth_accounts" }, { dedupe: !0 })).map((r) => t(r));
|
|
61
5
|
}
|
|
62
6
|
export {
|
|
63
|
-
|
|
7
|
+
c as getAddresses
|
|
64
8
|
};
|
package/dist/index59.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 l=require("./index47.cjs"),p=require("./index114.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/index59.js
CHANGED
|
@@ -1,27 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
strict: i
|
|
13
|
-
});
|
|
14
|
-
if (!r)
|
|
15
|
-
return null;
|
|
16
|
-
try {
|
|
17
|
-
return await m(t, {
|
|
18
|
-
record: r,
|
|
19
|
-
gatewayUrls: n
|
|
20
|
-
});
|
|
21
|
-
} catch {
|
|
22
|
-
return null;
|
|
1
|
+
import { parseAccount as p } from "./index47.js";
|
|
2
|
+
import { numberToHex as f } from "./index114.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;
|
|
23
12
|
}
|
|
13
|
+
return typeof t == "number" ? a[t] : a;
|
|
24
14
|
}
|
|
25
15
|
export {
|
|
26
|
-
|
|
16
|
+
h as getCapabilities
|
|
27
17
|
};
|
package/dist/index6.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index5.cjs"),f=require("@peculiar/webcrypto"),a=require("./index3.cjs"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index5.cjs"),f=require("@peculiar/webcrypto"),a=require("./index3.cjs"),o=require("./index22.cjs");class e{constructor(t){if(!e.isValidDigestKey(t))throw new Error("Invalid digest key format");this._digestKey=t;const r=o.privateKeyToAccount("0x"+t);this._userId=r.address}static from(t){return t=a.trim0x(t),this.isValidDigestKey(t)?n.Ok(new e(t)):n.Err("Invalid digest key format")}static generateRandom(){const t=e.generateRandomDigestKey();return e.from(t)}static isValidDigestKey(t){return/^[0-9a-fA-F]{64}$/.test(t)&&this.isValidPrivateKey(t)}static isValidPrivateKey(t){const r=BigInt("0x"+t),i=1n,s=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");return r>=i&&r<s}static generateRandomDigestKey(){const t=new f.Crypto,r=new Uint8Array(32);t.getRandomValues(r);const i=a.trim0x(Buffer.from(r).toString("hex"));return e.isValidPrivateKey(i)?i:e.generateRandomDigestKey()}get digestKey(){return this._digestKey}get userId(){return this._userId}}exports.DigestKey=e;
|
package/dist/index6.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Err as n, Ok as o } from "./index5.js";
|
|
2
2
|
import { Crypto as s } from "@peculiar/webcrypto";
|
|
3
3
|
import { trim0x as i } from "./index3.js";
|
|
4
|
-
import { privateKeyToAccount as c } from "./
|
|
4
|
+
import { privateKeyToAccount as c } from "./index22.js";
|
|
5
5
|
class e {
|
|
6
6
|
constructor(t) {
|
|
7
7
|
if (!e.isValidDigestKey(t))
|
package/dist/index60.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/index60.js
CHANGED
|
@@ -1,39 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { isNullUniversalResolverError as h } from "./index234.js";
|
|
4
|
-
import { localBatchGatewayUrl as w } from "./index208.js";
|
|
5
|
-
import { getAction as A } from "./index32.js";
|
|
6
|
-
import { readContract as R } from "./index36.js";
|
|
7
|
-
async function U(t, e) {
|
|
8
|
-
const { address: n, blockNumber: o, blockTag: a, coinType: i = 60n, gatewayUrls: c, strict: l } = e, { chain: s } = t, d = (() => {
|
|
9
|
-
if (e.universalResolverAddress)
|
|
10
|
-
return e.universalResolverAddress;
|
|
11
|
-
if (!s)
|
|
12
|
-
throw new Error("client chain not configured. universalResolverAddress is required.");
|
|
13
|
-
return f({
|
|
14
|
-
blockNumber: o,
|
|
15
|
-
chain: s,
|
|
16
|
-
contract: "ensUniversalResolver"
|
|
17
|
-
});
|
|
18
|
-
})();
|
|
19
|
-
try {
|
|
20
|
-
const r = {
|
|
21
|
-
address: d,
|
|
22
|
-
abi: m,
|
|
23
|
-
args: [n, i, c ?? [w]],
|
|
24
|
-
functionName: "reverseWithGateways",
|
|
25
|
-
blockNumber: o,
|
|
26
|
-
blockTag: a
|
|
27
|
-
}, u = A(t, R, "readContract"), [v] = await u(r);
|
|
28
|
-
return v || null;
|
|
29
|
-
} catch (r) {
|
|
30
|
-
if (l)
|
|
31
|
-
throw r;
|
|
32
|
-
if (h(r))
|
|
33
|
-
return null;
|
|
34
|
-
throw r;
|
|
35
|
-
}
|
|
1
|
+
async function t(e) {
|
|
2
|
+
return await e.request({ method: "wallet_getPermissions" }, { dedupe: !0 });
|
|
36
3
|
}
|
|
37
4
|
export {
|
|
38
|
-
|
|
5
|
+
t as getPermissions
|
|
39
6
|
};
|
package/dist/index61.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 d=require("./index47.cjs"),f=require("./index201.cjs"),g=require("./index134.cjs"),s=require("./index29.cjs"),h=require("./index55.cjs"),A=require("./index199.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;
|