@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/index66.js
CHANGED
|
@@ -1,39 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
method: "eth_newFilter"
|
|
7
|
-
});
|
|
8
|
-
let t = [];
|
|
9
|
-
o && (t = [o.flatMap((d) => b({
|
|
10
|
-
abi: [d],
|
|
11
|
-
eventName: d.name,
|
|
12
|
-
args: a
|
|
13
|
-
}))], e && (t = t[0]));
|
|
14
|
-
const s = await r.request({
|
|
15
|
-
method: "eth_newFilter",
|
|
16
|
-
params: [
|
|
17
|
-
{
|
|
18
|
-
address: p,
|
|
19
|
-
fromBlock: typeof n == "bigint" ? m(n) : n,
|
|
20
|
-
toBlock: typeof i == "bigint" ? m(i) : i,
|
|
21
|
-
...t.length ? { topics: t } : {}
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
});
|
|
25
|
-
return {
|
|
26
|
-
abi: o,
|
|
27
|
-
args: a,
|
|
28
|
-
eventName: e ? e.name : void 0,
|
|
29
|
-
fromBlock: n,
|
|
30
|
-
id: s,
|
|
31
|
-
request: u(s),
|
|
32
|
-
strict: !!f,
|
|
33
|
-
toBlock: i,
|
|
34
|
-
type: "event"
|
|
35
|
-
};
|
|
1
|
+
async function a(n, { serializedTransaction: t }) {
|
|
2
|
+
return n.request({
|
|
3
|
+
method: "eth_sendRawTransaction",
|
|
4
|
+
params: [t]
|
|
5
|
+
}, { retryCount: 0 });
|
|
36
6
|
}
|
|
37
7
|
export {
|
|
38
|
-
|
|
8
|
+
a as sendRawTransaction
|
|
39
9
|
};
|
package/dist/index67.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./index47.cjs"),u=require("./index201.cjs"),O=require("./index38.cjs"),j=require("./index193.cjs"),B=require("./index164.cjs"),U=require("./index200.cjs"),W=require("./index184.cjs"),k=require("./index137.cjs"),l=require("./index29.cjs"),D=require("./index171.cjs"),H=require("./index148.cjs"),J=require("./index55.cjs"),L=require("./index62.cjs"),K=require("./index66.cjs"),f=new D.LruMap(128);async function Q(r,e){var M,z,I,S;const{account:d=r.account,chain:n=r.chain,accessList:w,authorizationList:s,blobs:q,data:m,gas:T,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:R,maxPriorityFeePerGas:A,nonce:E,type:C,value:N,...P}=e;if(typeof d>"u")throw new u.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransaction"});const t=d?G.parseAccount(d):null;try{H.assertRequest(e);const a=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await j.recoverAuthorizationAddress({authorization:s[0]}).catch(()=>{throw new O.BaseError("`to` is required. Could not infer from `authorizationList`.")})})();if((t==null?void 0:t.type)==="json-rpc"||t===null){let i;n!==null&&(i=await l.getAction(r,J.getChainId,"getChainId")({}),B.assertCurrentChain({currentChainId:i,chain:n}));const c=(I=(z=(M=r.chain)==null?void 0:M.formatters)==null?void 0:z.transactionRequest)==null?void 0:I.format,F=(c||k.formatTransactionRequest)({...W.extract(P,{format:c}),accessList:w,authorizationList:s,blobs:q,chainId:i,data:m,from:t==null?void 0:t.address,gas:T,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:R,maxPriorityFeePerGas:A,nonce:E,to:a,type:C,value:N}),v=f.get(r.uid),_=v?"wallet_sendTransaction":"eth_sendTransaction";try{return await r.request({method:_,params:[F]},{retryCount:0})}catch(x){if(v===!1)throw x;const o=x;if(o.name==="InvalidInputRpcError"||o.name==="InvalidParamsRpcError"||o.name==="MethodNotFoundRpcError"||o.name==="MethodNotSupportedRpcError")return await r.request({method:"wallet_sendTransaction",params:[F]},{retryCount:0}).then(p=>(f.set(r.uid,!0),p)).catch(p=>{const h=p;throw h.name==="MethodNotFoundRpcError"||h.name==="MethodNotSupportedRpcError"?(f.set(r.uid,!1),o):h});throw o}}if((t==null?void 0:t.type)==="local"){const i=await l.getAction(r,L.prepareTransactionRequest,"prepareTransactionRequest")({account:t,accessList:w,authorizationList:s,blobs:q,chain:n,data:m,gas:T,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:R,maxPriorityFeePerGas:A,nonce:E,nonceManager:t.nonceManager,parameters:[...L.defaultParameters,"sidecars"],type:C,value:N,...P,to:a}),c=(S=n==null?void 0:n.serializers)==null?void 0:S.transaction,b=await t.signTransaction(i,{serializer:c});return await l.getAction(r,K.sendRawTransaction,"sendRawTransaction")({serializedTransaction:b})}throw(t==null?void 0:t.type)==="smart"?new u.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new u.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransaction",type:t==null?void 0:t.type})}catch(a){throw a instanceof u.AccountTypeNotSupportedError?a:U.getTransactionError(a,{...e,account:t,chain:e.chain||void 0})}}exports.sendTransaction=Q;
|
package/dist/index67.js
CHANGED
|
@@ -1,12 +1,128 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { parseAccount as _ } from "./index47.js";
|
|
2
|
+
import { AccountNotFoundError as G, AccountTypeNotSupportedError as p } from "./index201.js";
|
|
3
|
+
import { BaseError as B } from "./index38.js";
|
|
4
|
+
import { recoverAuthorizationAddress as O } from "./index193.js";
|
|
5
|
+
import { assertCurrentChain as U } from "./index164.js";
|
|
6
|
+
import { getTransactionError as W } from "./index200.js";
|
|
7
|
+
import { extract as j } from "./index184.js";
|
|
8
|
+
import { formatTransactionRequest as k } from "./index137.js";
|
|
9
|
+
import { getAction as f } from "./index29.js";
|
|
10
|
+
import { LruMap as D } from "./index171.js";
|
|
11
|
+
import { assertRequest as H } from "./index148.js";
|
|
12
|
+
import { getChainId as J } from "./index55.js";
|
|
13
|
+
import { prepareTransactionRequest as K, defaultParameters as Q } from "./index62.js";
|
|
14
|
+
import { sendRawTransaction as V } from "./index66.js";
|
|
15
|
+
const h = new D(128);
|
|
16
|
+
async function mr(t, o) {
|
|
17
|
+
var z, A, F, I;
|
|
18
|
+
const { account: d = t.account, chain: e = t.chain, accessList: w, authorizationList: s, blobs: l, data: y, gas: T, gasPrice: g, maxFeePerBlobGas: R, maxFeePerGas: E, maxPriorityFeePerGas: q, nonce: P, type: C, value: N, ...M } = o;
|
|
19
|
+
if (typeof d > "u")
|
|
20
|
+
throw new G({
|
|
21
|
+
docsPath: "/docs/actions/wallet/sendTransaction"
|
|
22
|
+
});
|
|
23
|
+
const r = d ? _(d) : null;
|
|
24
|
+
try {
|
|
25
|
+
H(o);
|
|
26
|
+
const a = await (async () => {
|
|
27
|
+
if (o.to)
|
|
28
|
+
return o.to;
|
|
29
|
+
if (o.to !== null && s && s.length > 0)
|
|
30
|
+
return await O({
|
|
31
|
+
authorization: s[0]
|
|
32
|
+
}).catch(() => {
|
|
33
|
+
throw new B("`to` is required. Could not infer from `authorizationList`.");
|
|
34
|
+
});
|
|
35
|
+
})();
|
|
36
|
+
if ((r == null ? void 0 : r.type) === "json-rpc" || r === null) {
|
|
37
|
+
let i;
|
|
38
|
+
e !== null && (i = await f(t, J, "getChainId")({}), U({
|
|
39
|
+
currentChainId: i,
|
|
40
|
+
chain: e
|
|
41
|
+
}));
|
|
42
|
+
const c = (F = (A = (z = t.chain) == null ? void 0 : z.formatters) == null ? void 0 : A.transactionRequest) == null ? void 0 : F.format, b = (c || k)({
|
|
43
|
+
// Pick out extra data that might exist on the chain's transaction request type.
|
|
44
|
+
...j(M, { format: c }),
|
|
45
|
+
accessList: w,
|
|
46
|
+
authorizationList: s,
|
|
47
|
+
blobs: l,
|
|
48
|
+
chainId: i,
|
|
49
|
+
data: y,
|
|
50
|
+
from: r == null ? void 0 : r.address,
|
|
51
|
+
gas: T,
|
|
52
|
+
gasPrice: g,
|
|
53
|
+
maxFeePerBlobGas: R,
|
|
54
|
+
maxFeePerGas: E,
|
|
55
|
+
maxPriorityFeePerGas: q,
|
|
56
|
+
nonce: P,
|
|
57
|
+
to: a,
|
|
58
|
+
type: C,
|
|
59
|
+
value: N
|
|
60
|
+
}), v = h.get(t.uid), S = v ? "wallet_sendTransaction" : "eth_sendTransaction";
|
|
61
|
+
try {
|
|
62
|
+
return await t.request({
|
|
63
|
+
method: S,
|
|
64
|
+
params: [b]
|
|
65
|
+
}, { retryCount: 0 });
|
|
66
|
+
} catch (L) {
|
|
67
|
+
if (v === !1)
|
|
68
|
+
throw L;
|
|
69
|
+
const n = L;
|
|
70
|
+
if (n.name === "InvalidInputRpcError" || n.name === "InvalidParamsRpcError" || n.name === "MethodNotFoundRpcError" || n.name === "MethodNotSupportedRpcError")
|
|
71
|
+
return await t.request({
|
|
72
|
+
method: "wallet_sendTransaction",
|
|
73
|
+
params: [b]
|
|
74
|
+
}, { retryCount: 0 }).then((m) => (h.set(t.uid, !0), m)).catch((m) => {
|
|
75
|
+
const u = m;
|
|
76
|
+
throw u.name === "MethodNotFoundRpcError" || u.name === "MethodNotSupportedRpcError" ? (h.set(t.uid, !1), n) : u;
|
|
77
|
+
});
|
|
78
|
+
throw n;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if ((r == null ? void 0 : r.type) === "local") {
|
|
82
|
+
const i = await f(t, K, "prepareTransactionRequest")({
|
|
83
|
+
account: r,
|
|
84
|
+
accessList: w,
|
|
85
|
+
authorizationList: s,
|
|
86
|
+
blobs: l,
|
|
87
|
+
chain: e,
|
|
88
|
+
data: y,
|
|
89
|
+
gas: T,
|
|
90
|
+
gasPrice: g,
|
|
91
|
+
maxFeePerBlobGas: R,
|
|
92
|
+
maxFeePerGas: E,
|
|
93
|
+
maxPriorityFeePerGas: q,
|
|
94
|
+
nonce: P,
|
|
95
|
+
nonceManager: r.nonceManager,
|
|
96
|
+
parameters: [...Q, "sidecars"],
|
|
97
|
+
type: C,
|
|
98
|
+
value: N,
|
|
99
|
+
...M,
|
|
100
|
+
to: a
|
|
101
|
+
}), c = (I = e == null ? void 0 : e.serializers) == null ? void 0 : I.transaction, x = await r.signTransaction(i, {
|
|
102
|
+
serializer: c
|
|
103
|
+
});
|
|
104
|
+
return await f(t, V, "sendRawTransaction")({
|
|
105
|
+
serializedTransaction: x
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
throw (r == null ? void 0 : r.type) === "smart" ? new p({
|
|
109
|
+
metaMessages: [
|
|
110
|
+
"Consider using the `sendUserOperation` Action instead."
|
|
111
|
+
],
|
|
112
|
+
docsPath: "/docs/actions/bundler/sendUserOperation",
|
|
113
|
+
type: "smart"
|
|
114
|
+
}) : new p({
|
|
115
|
+
docsPath: "/docs/actions/wallet/sendTransaction",
|
|
116
|
+
type: r == null ? void 0 : r.type
|
|
117
|
+
});
|
|
118
|
+
} catch (a) {
|
|
119
|
+
throw a instanceof p ? a : W(a, {
|
|
120
|
+
...o,
|
|
121
|
+
account: r,
|
|
122
|
+
chain: o.chain || void 0
|
|
123
|
+
});
|
|
124
|
+
}
|
|
9
125
|
}
|
|
10
126
|
export {
|
|
11
|
-
|
|
127
|
+
mr as sendTransaction
|
|
12
128
|
};
|
package/dist/index68.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 e(t,s){const{id:a}=s;await t.request({method:"wallet_showCallsStatus",params:[a]})}exports.showCallsStatus=e;
|
package/dist/index68.js
CHANGED
|
@@ -1,53 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return w(a, o);
|
|
8
|
-
}
|
|
9
|
-
async function w(a, o) {
|
|
10
|
-
var P, p;
|
|
11
|
-
const { block: i, chain: t = a.chain, request: e, type: m = "eip1559" } = o || {}, n = await (async () => {
|
|
12
|
-
var r, s;
|
|
13
|
-
return typeof ((r = t == null ? void 0 : t.fees) == null ? void 0 : r.baseFeeMultiplier) == "function" ? t.fees.baseFeeMultiplier({
|
|
14
|
-
block: i,
|
|
15
|
-
client: a,
|
|
16
|
-
request: e
|
|
17
|
-
}) : ((s = t == null ? void 0 : t.fees) == null ? void 0 : s.baseFeeMultiplier) ?? 1.2;
|
|
18
|
-
})();
|
|
19
|
-
if (n < 1)
|
|
20
|
-
throw new G();
|
|
21
|
-
const l = 10 ** (((P = n.toString().split(".")[1]) == null ? void 0 : P.length) ?? 0), c = (r) => r * BigInt(Math.ceil(n * l)) / BigInt(l), f = i || await F(a, y, "getBlock")({});
|
|
22
|
-
if (typeof ((p = t == null ? void 0 : t.fees) == null ? void 0 : p.estimateFeesPerGas) == "function") {
|
|
23
|
-
const r = await t.fees.estimateFeesPerGas({
|
|
24
|
-
block: i,
|
|
25
|
-
client: a,
|
|
26
|
-
multiply: c,
|
|
27
|
-
request: e,
|
|
28
|
-
type: m
|
|
29
|
-
});
|
|
30
|
-
if (r !== null)
|
|
31
|
-
return r;
|
|
32
|
-
}
|
|
33
|
-
if (m === "eip1559") {
|
|
34
|
-
if (typeof f.baseFeePerGas != "bigint")
|
|
35
|
-
throw new b();
|
|
36
|
-
const r = typeof (e == null ? void 0 : e.maxPriorityFeePerGas) == "bigint" ? e.maxPriorityFeePerGas : await g(a, {
|
|
37
|
-
block: f,
|
|
38
|
-
chain: t,
|
|
39
|
-
request: e
|
|
40
|
-
}), s = c(f.baseFeePerGas);
|
|
41
|
-
return {
|
|
42
|
-
maxFeePerGas: (e == null ? void 0 : e.maxFeePerGas) ?? s + r,
|
|
43
|
-
maxPriorityFeePerGas: r
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
gasPrice: (e == null ? void 0 : e.gasPrice) ?? c(await F(a, u, "getGasPrice")({}))
|
|
48
|
-
};
|
|
1
|
+
async function e(t, a) {
|
|
2
|
+
const { id: s } = a;
|
|
3
|
+
await t.request({
|
|
4
|
+
method: "wallet_showCallsStatus",
|
|
5
|
+
params: [s]
|
|
6
|
+
});
|
|
49
7
|
}
|
|
50
8
|
export {
|
|
51
|
-
|
|
52
|
-
w as internal_estimateFeesPerGas
|
|
9
|
+
e as showCallsStatus
|
|
53
10
|
};
|
package/dist/index69.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index47.cjs"),r=require("./index201.cjs"),e=require("./index61.cjs");async function a(t,n){const{account:i=t.account}=n;if(!i)throw new r.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});const o=u.parseAccount(i);if(!o.signAuthorization)throw new r.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:o.type});const c=await e.prepareAuthorization(t,n);return o.signAuthorization(c)}exports.signAuthorization=a;
|
package/dist/index69.js
CHANGED
|
@@ -1,92 +1,24 @@
|
|
|
1
|
-
import { parseAccount as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { assertRequest as D } from "./index202.js";
|
|
10
|
-
import { prepareTransactionRequest as J } from "./index101.js";
|
|
11
|
-
import { getBalance as K } from "./index71.js";
|
|
12
|
-
async function st(e, i) {
|
|
13
|
-
var f, d, p;
|
|
14
|
-
const { account: u = e.account } = i, t = u ? E(u) : void 0;
|
|
15
|
-
try {
|
|
16
|
-
let v = function(c) {
|
|
17
|
-
const { block: s, request: r, rpcStateOverride: o } = c;
|
|
18
|
-
return e.request({
|
|
19
|
-
method: "eth_estimateGas",
|
|
20
|
-
params: o ? [
|
|
21
|
-
r,
|
|
22
|
-
s ?? e.experimental_blockTag ?? "latest",
|
|
23
|
-
o
|
|
24
|
-
] : s ? [r, s] : [r]
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const { accessList: n, authorizationList: a, blobs: y, blobVersionedHashes: G, blockNumber: b, blockTag: z, data: h, gas: P, gasPrice: B, maxFeePerBlobGas: H, maxFeePerGas: T, maxPriorityFeePerGas: F, nonce: L, value: O, stateOverride: R, ...m } = await J(e, {
|
|
28
|
-
...i,
|
|
29
|
-
parameters: (
|
|
30
|
-
// Some RPC Providers do not compute versioned hashes from blobs. We will need
|
|
31
|
-
// to compute them.
|
|
32
|
-
(t == null ? void 0 : t.type) === "local" ? void 0 : ["blobVersionedHashes"]
|
|
33
|
-
)
|
|
34
|
-
}), l = (typeof b == "bigint" ? k(b) : void 0) || z, w = j(R), _ = await (async () => {
|
|
35
|
-
if (m.to)
|
|
36
|
-
return m.to;
|
|
37
|
-
if (a && a.length > 0)
|
|
38
|
-
return await S({
|
|
39
|
-
authorization: a[0]
|
|
40
|
-
}).catch(() => {
|
|
41
|
-
throw new N("`to` is required. Could not infer from `authorizationList`");
|
|
42
|
-
});
|
|
43
|
-
})();
|
|
44
|
-
D(i);
|
|
45
|
-
const q = (p = (d = (f = e.chain) == null ? void 0 : f.formatters) == null ? void 0 : d.transactionRequest) == null ? void 0 : p.format, x = (q || C)({
|
|
46
|
-
// Pick out extra data that might exist on the chain's transaction request type.
|
|
47
|
-
...V(m, { format: q }),
|
|
48
|
-
from: t == null ? void 0 : t.address,
|
|
49
|
-
accessList: n,
|
|
50
|
-
authorizationList: a,
|
|
51
|
-
blobs: y,
|
|
52
|
-
blobVersionedHashes: G,
|
|
53
|
-
data: h,
|
|
54
|
-
gas: P,
|
|
55
|
-
gasPrice: B,
|
|
56
|
-
maxFeePerBlobGas: H,
|
|
57
|
-
maxFeePerGas: T,
|
|
58
|
-
maxPriorityFeePerGas: F,
|
|
59
|
-
nonce: L,
|
|
60
|
-
to: _,
|
|
61
|
-
value: O
|
|
1
|
+
import { parseAccount as c } from "./index47.js";
|
|
2
|
+
import { AccountNotFoundError as u, AccountTypeNotSupportedError as a } from "./index201.js";
|
|
3
|
+
import { prepareAuthorization as s } from "./index61.js";
|
|
4
|
+
async function A(t, n) {
|
|
5
|
+
const { account: i = t.account } = n;
|
|
6
|
+
if (!i)
|
|
7
|
+
throw new u({
|
|
8
|
+
docsPath: "/docs/eip7702/signAuthorization"
|
|
62
9
|
});
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
from: t == null ? void 0 : t.address,
|
|
72
|
-
to: o,
|
|
73
|
-
value: k(c)
|
|
74
|
-
},
|
|
75
|
-
rpcStateOverride: w
|
|
76
|
-
}).catch(() => 100000n);
|
|
77
|
-
return 2n * BigInt(A);
|
|
78
|
-
}));
|
|
79
|
-
g += s.reduce((r, o) => r + o, 0n);
|
|
80
|
-
}
|
|
81
|
-
return g;
|
|
82
|
-
} catch (n) {
|
|
83
|
-
throw I(n, {
|
|
84
|
-
...i,
|
|
85
|
-
account: t,
|
|
86
|
-
chain: e.chain
|
|
10
|
+
const o = c(i);
|
|
11
|
+
if (!o.signAuthorization)
|
|
12
|
+
throw new a({
|
|
13
|
+
docsPath: "/docs/eip7702/signAuthorization",
|
|
14
|
+
metaMessages: [
|
|
15
|
+
"The `signAuthorization` Action does not support JSON-RPC Accounts."
|
|
16
|
+
],
|
|
17
|
+
type: o.type
|
|
87
18
|
});
|
|
88
|
-
|
|
19
|
+
const r = await s(t, n);
|
|
20
|
+
return o.signAuthorization(r);
|
|
89
21
|
}
|
|
90
22
|
export {
|
|
91
|
-
|
|
23
|
+
A as signAuthorization
|
|
92
24
|
};
|
package/dist/index70.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("./index47.cjs"),a=require("./index201.cjs"),o=require("./index114.cjs");async function i(n,{account:e=n.account,message:r}){if(!e)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const t=c.parseAccount(e);if(t.signMessage)return t.signMessage({message:r});const s=typeof r=="string"?o.stringToHex(r):r.raw instanceof Uint8Array?o.toHex(r.raw):r.raw;return n.request({method:"personal_sign",params:[s,t.address]},{retryCount:0})}exports.signMessage=i;
|
package/dist/index70.js
CHANGED
|
@@ -1,44 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
async function G(e, i) {
|
|
10
|
-
var P, m;
|
|
11
|
-
const { block: a, chain: t = e.chain, request: u } = i || {};
|
|
12
|
-
try {
|
|
13
|
-
const r = ((P = t == null ? void 0 : t.fees) == null ? void 0 : P.maxPriorityFeePerGas) ?? ((m = t == null ? void 0 : t.fees) == null ? void 0 : m.defaultPriorityFee);
|
|
14
|
-
if (typeof r == "function") {
|
|
15
|
-
const o = a || await n(e, c, "getBlock")({}), f = await r({
|
|
16
|
-
block: o,
|
|
17
|
-
client: e,
|
|
18
|
-
request: u
|
|
19
|
-
});
|
|
20
|
-
if (f === null)
|
|
21
|
-
throw new Error();
|
|
22
|
-
return f;
|
|
23
|
-
}
|
|
24
|
-
if (typeof r < "u")
|
|
25
|
-
return r;
|
|
26
|
-
const s = await e.request({
|
|
27
|
-
method: "eth_maxPriorityFeePerGas"
|
|
1
|
+
import { parseAccount as e } from "./index47.js";
|
|
2
|
+
import { AccountNotFoundError as i } from "./index201.js";
|
|
3
|
+
import { stringToHex as a, toHex as c } from "./index114.js";
|
|
4
|
+
async function g(n, { account: o = n.account, message: r }) {
|
|
5
|
+
if (!o)
|
|
6
|
+
throw new i({
|
|
7
|
+
docsPath: "/docs/actions/wallet/signMessage"
|
|
28
8
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const o = s - r.baseFeePerGas;
|
|
38
|
-
return o < 0n ? 0n : o;
|
|
39
|
-
}
|
|
9
|
+
const t = e(o);
|
|
10
|
+
if (t.signMessage)
|
|
11
|
+
return t.signMessage({ message: r });
|
|
12
|
+
const s = typeof r == "string" ? a(r) : r.raw instanceof Uint8Array ? c(r.raw) : r.raw;
|
|
13
|
+
return n.request({
|
|
14
|
+
method: "personal_sign",
|
|
15
|
+
params: [s, t.address]
|
|
16
|
+
}, { retryCount: 0 });
|
|
40
17
|
}
|
|
41
18
|
export {
|
|
42
|
-
|
|
43
|
-
G as internal_estimateMaxPriorityFeePerGas
|
|
19
|
+
g as signMessage
|
|
44
20
|
};
|
package/dist/index71.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index47.cjs"),f=require("./index201.cjs"),C=require("./index164.cjs"),T=require("./index114.cjs"),m=require("./index137.cjs"),I=require("./index29.cjs"),w=require("./index148.cjs"),A=require("./index55.cjs");async function R(t,s){var i,u,d,h;const{account:o=t.account,chain:n=t.chain,...c}=s;if(!o)throw new f.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const r=g.parseAccount(o);w.assertRequest({account:r,...s});const a=await I.getAction(t,A.getChainId,"getChainId")({});n!==null&&C.assertCurrentChain({currentChainId:a,chain:n});const e=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),q=((u=e==null?void 0:e.transactionRequest)==null?void 0:u.format)||m.formatTransactionRequest;return r.signTransaction?r.signTransaction({...c,chainId:a},{serializer:(h=(d=t.chain)==null?void 0:d.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...q(c),chainId:T.numberToHex(a),from:r.address}]},{retryCount:0})}exports.signTransaction=R;
|
package/dist/index71.js
CHANGED
|
@@ -1,11 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { parseAccount as d } from "./index47.js";
|
|
2
|
+
import { AccountNotFoundError as p } from "./index201.js";
|
|
3
|
+
import { assertCurrentChain as g } from "./index164.js";
|
|
4
|
+
import { numberToHex as T } from "./index114.js";
|
|
5
|
+
import { formatTransactionRequest as C } from "./index137.js";
|
|
6
|
+
import { getAction as w } from "./index29.js";
|
|
7
|
+
import { assertRequest as I } from "./index148.js";
|
|
8
|
+
import { getChainId as q } from "./index55.js";
|
|
9
|
+
async function E(t, s) {
|
|
10
|
+
var e, m, u, f;
|
|
11
|
+
const { account: i = t.account, chain: r = t.chain, ...c } = s;
|
|
12
|
+
if (!i)
|
|
13
|
+
throw new p({
|
|
14
|
+
docsPath: "/docs/actions/wallet/signTransaction"
|
|
15
|
+
});
|
|
16
|
+
const o = d(i);
|
|
17
|
+
I({
|
|
18
|
+
account: o,
|
|
19
|
+
...s
|
|
6
20
|
});
|
|
7
|
-
|
|
21
|
+
const n = await w(t, q, "getChainId")({});
|
|
22
|
+
r !== null && g({
|
|
23
|
+
currentChainId: n,
|
|
24
|
+
chain: r
|
|
25
|
+
});
|
|
26
|
+
const a = (r == null ? void 0 : r.formatters) || ((e = t.chain) == null ? void 0 : e.formatters), h = ((m = a == null ? void 0 : a.transactionRequest) == null ? void 0 : m.format) || C;
|
|
27
|
+
return o.signTransaction ? o.signTransaction({
|
|
28
|
+
...c,
|
|
29
|
+
chainId: n
|
|
30
|
+
}, { serializer: (f = (u = t.chain) == null ? void 0 : u.serializers) == null ? void 0 : f.transaction }) : await t.request({
|
|
31
|
+
method: "eth_signTransaction",
|
|
32
|
+
params: [
|
|
33
|
+
{
|
|
34
|
+
...h(c),
|
|
35
|
+
chainId: T(n),
|
|
36
|
+
from: o.address
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}, { retryCount: 0 });
|
|
8
40
|
}
|
|
9
41
|
export {
|
|
10
|
-
|
|
42
|
+
E as signTransaction
|
|
11
43
|
};
|
package/dist/index72.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 u=require("./index47.cjs"),y=require("./index201.cjs"),s=require("./index141.cjs");async function p(c,r){const{account:i=c.account,domain:t,message:a,primaryType:e}=r;if(!i)throw new y.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const n=u.parseAccount(i),o={EIP712Domain:s.getTypesForEIP712Domain({domain:t}),...r.types};if(s.validateTypedData({domain:t,message:a,primaryType:e,types:o}),n.signTypedData)return n.signTypedData({domain:t,message:a,primaryType:e,types:o});const d=s.serializeTypedData({domain:t,message:a,primaryType:e,types:o});return c.request({method:"eth_signTypedData_v4",params:[n.address,d]},{retryCount:0})}exports.signTypedData=p;
|
package/dist/index72.js
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { parseAccount as p } from "./index47.js";
|
|
2
|
+
import { AccountNotFoundError as d } from "./index201.js";
|
|
3
|
+
import { getTypesForEIP712Domain as y, validateTypedData as m, serializeTypedData as u } from "./index141.js";
|
|
4
|
+
async function f(r, s) {
|
|
5
|
+
const { account: c = r.account, domain: t, message: a, primaryType: o } = s;
|
|
6
|
+
if (!c)
|
|
7
|
+
throw new d({
|
|
8
|
+
docsPath: "/docs/actions/wallet/signTypedData"
|
|
9
|
+
});
|
|
10
|
+
const e = p(c), n = {
|
|
11
|
+
EIP712Domain: y({ domain: t }),
|
|
12
|
+
...s.types
|
|
13
|
+
};
|
|
14
|
+
if (m({ domain: t, message: a, primaryType: o, types: n }), e.signTypedData)
|
|
15
|
+
return e.signTypedData({ domain: t, message: a, primaryType: o, types: n });
|
|
16
|
+
const i = u({ domain: t, message: a, primaryType: o, types: n });
|
|
17
|
+
return r.request({
|
|
18
|
+
method: "eth_signTypedData_v4",
|
|
19
|
+
params: [e.address, i]
|
|
20
|
+
}, { retryCount: 0 });
|
|
6
21
|
}
|
|
7
22
|
export {
|
|
8
|
-
|
|
23
|
+
f as signTypedData
|
|
9
24
|
};
|
package/dist/index73.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("./index114.cjs");async function a(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:i.numberToHex(t)}]},{retryCount:0})}exports.switchChain=a;
|
package/dist/index73.js
CHANGED
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, { dedupe: !0 }) : o = await e.request({
|
|
12
|
-
method: "eth_getBlockByNumber",
|
|
13
|
-
params: [n || u, a]
|
|
14
|
-
}, { dedupe: !!n }), !o)
|
|
15
|
-
throw new i({ blockHash: t, blockNumber: r });
|
|
16
|
-
return (((f = (s = (m = e.chain) == null ? void 0 : m.formatters) == null ? void 0 : s.block) == null ? void 0 : f.format) || l)(o);
|
|
1
|
+
import { numberToHex as a } from "./index114.js";
|
|
2
|
+
async function i(t, { id: e }) {
|
|
3
|
+
await t.request({
|
|
4
|
+
method: "wallet_switchEthereumChain",
|
|
5
|
+
params: [
|
|
6
|
+
{
|
|
7
|
+
chainId: a(e)
|
|
8
|
+
}
|
|
9
|
+
]
|
|
10
|
+
}, { retryCount: 0 });
|
|
17
11
|
}
|
|
18
12
|
export {
|
|
19
|
-
|
|
13
|
+
i as switchChain
|
|
20
14
|
};
|
package/dist/index74.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 a(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}exports.watchAsset=a;
|
package/dist/index74.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}), { cacheKey: r(e.uid), cacheTime: c });
|
|
7
|
-
return BigInt(o);
|
|
1
|
+
async function d(t, e) {
|
|
2
|
+
return await t.request({
|
|
3
|
+
method: "wallet_watchAsset",
|
|
4
|
+
params: e
|
|
5
|
+
}, { retryCount: 0 });
|
|
8
6
|
}
|
|
9
7
|
export {
|
|
10
|
-
|
|
8
|
+
d as watchAsset
|
|
11
9
|
};
|
package/dist/index75.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("./index38.cjs"),p=require("./index49.cjs"),e=require("./index95.cjs"),I=require("./index114.cjs"),q=require("./index225.cjs"),m=require("./index43.cjs"),v=require("./index44.cjs");function N(t,E={}){return async(c,h={})=>{var i;const{dedupe:s=!1,methods:o,retryDelay:R=150,retryCount:l=3,uid:f}={...E,...h},{method:d}=c;if((i=o==null?void 0:o.exclude)!=null&&i.includes(d))throw new e.MethodNotSupportedRpcError(new Error("method not supported"),{method:d});if(o!=null&&o.include&&!o.include.includes(d))throw new e.MethodNotSupportedRpcError(new Error("method not supported"),{method:d});const y=s?I.stringToHex(`${f}.${v.stringify(c)}`):void 0;return q.withDedupe(()=>m.withRetry(async()=>{try{return await t(c)}catch(n){const r=n;switch(r.code){case e.ParseRpcError.code:throw new e.ParseRpcError(r);case e.InvalidRequestRpcError.code:throw new e.InvalidRequestRpcError(r);case e.MethodNotFoundRpcError.code:throw new e.MethodNotFoundRpcError(r,{method:c.method});case e.InvalidParamsRpcError.code:throw new e.InvalidParamsRpcError(r);case e.InternalRpcError.code:throw new e.InternalRpcError(r);case e.InvalidInputRpcError.code:throw new e.InvalidInputRpcError(r);case e.ResourceNotFoundRpcError.code:throw new e.ResourceNotFoundRpcError(r);case e.ResourceUnavailableRpcError.code:throw new e.ResourceUnavailableRpcError(r);case e.TransactionRejectedRpcError.code:throw new e.TransactionRejectedRpcError(r);case e.MethodNotSupportedRpcError.code:throw new e.MethodNotSupportedRpcError(r,{method:c.method});case e.LimitExceededRpcError.code:throw new e.LimitExceededRpcError(r);case e.JsonRpcVersionUnsupportedError.code:throw new e.JsonRpcVersionUnsupportedError(r);case e.UserRejectedRequestError.code:throw new e.UserRejectedRequestError(r);case e.UnauthorizedProviderError.code:throw new e.UnauthorizedProviderError(r);case e.UnsupportedProviderMethodError.code:throw new e.UnsupportedProviderMethodError(r);case e.ProviderDisconnectedError.code:throw new e.ProviderDisconnectedError(r);case e.ChainDisconnectedError.code:throw new e.ChainDisconnectedError(r);case e.SwitchChainError.code:throw new e.SwitchChainError(r);case e.UnsupportedNonOptionalCapabilityError.code:throw new e.UnsupportedNonOptionalCapabilityError(r);case e.UnsupportedChainIdError.code:throw new e.UnsupportedChainIdError(r);case e.DuplicateIdError.code:throw new e.DuplicateIdError(r);case e.UnknownBundleIdError.code:throw new e.UnknownBundleIdError(r);case e.BundleTooLargeError.code:throw new e.BundleTooLargeError(r);case e.AtomicReadyWalletRejectedUpgradeError.code:throw new e.AtomicReadyWalletRejectedUpgradeError(r);case e.AtomicityNotSupportedError.code:throw new e.AtomicityNotSupportedError(r);case 5e3:throw new e.UserRejectedRequestError(r);default:throw n instanceof U.BaseError?n:new e.UnknownRpcError(r)}}},{delay:({count:n,error:r})=>{var a;if(r&&r instanceof p.HttpRequestError){const u=(a=r==null?void 0:r.headers)==null?void 0:a.get("Retry-After");if(u!=null&&u.match(/\d/))return Number.parseInt(u)*1e3}return~~(1<<n)*R},retryCount:l,shouldRetry:({error:n})=>w(n)}),{enabled:s,id:y})}}function w(t){return"code"in t&&typeof t.code=="number"?t.code===-1||t.code===e.LimitExceededRpcError.code||t.code===e.InternalRpcError.code:t instanceof p.HttpRequestError&&t.status?t.status===403||t.status===408||t.status===413||t.status===429||t.status===500||t.status===502||t.status===503||t.status===504:!0}exports.buildRequest=N;exports.shouldRetry=w;
|