@gardenfi/utils 2.5.3 → 3.0.0
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 +37 -38
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +5 -5
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +6 -39
- package/dist/index101.cjs +4 -1
- package/dist/index101.js +194 -17
- package/dist/index102.cjs +3 -1
- package/dist/index102.js +451 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +27 -9
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +160 -12
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +21 -109
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +127 -8
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +37 -5
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +6 -7
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +27 -21
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +16 -20
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +55 -8
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +43 -29
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +191 -13
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +4 -8
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +64 -9
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +20 -16
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +3 -74
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +16 -35
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +22 -45
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +11 -14
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +18 -13
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +34 -9
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +3 -17
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +18 -65
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +27 -11
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +36 -13
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +8 -8
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +10 -10
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +24 -25
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +28 -14
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +1 -3
- package/dist/index130.js +3 -110
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +63 -49
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +9 -24
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +17 -113
- package/dist/index134.cjs +1 -20
- package/dist/index134.js +8 -326
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +9 -80
- package/dist/index136.cjs +1 -4
- package/dist/index136.js +11 -194
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +5 -17
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +6 -24
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +12 -176
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +32 -12
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +5 -25
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +38 -3
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +107 -85
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +169 -35
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +49 -15
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +33 -2
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +7 -75
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +8 -138
- package/dist/index149.cjs +1 -3
- package/dist/index149.js +20 -451
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +21 -62
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +42 -6
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +22 -69
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +21 -5
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +51 -3
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +11 -14
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +24 -88
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +24 -13
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +103 -44
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +3 -39
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +18 -26
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +5 -7
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +29 -55
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +3 -13
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +17 -8
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +5 -20
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +8 -9
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +102 -14
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +78 -101
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +5 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +6 -6
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +113 -14
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +27 -26
- package/dist/index171.cjs +1 -2
- package/dist/index171.js +33 -23
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +13 -9
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +19 -8
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +77 -9
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +2 -12
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +14 -13
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +18 -14
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +171 -7
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +16 -20
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +118 -104
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +10 -6
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +30 -21
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +2 -41
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +13 -17
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +12 -21
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +44 -77
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +10 -43
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +7 -11
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +64 -50
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +46 -3
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +37 -5
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +17 -5
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +6 -11
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +8 -12
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +12 -12
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +8 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +34 -150
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +15 -34
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +14 -32
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +6 -9
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +2 -1
- package/dist/index200.js +20 -64
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +13 -9
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +23 -69
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +17 -18
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +15 -110
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +5 -23
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +13 -50
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +10 -106
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +17 -9
- package/dist/index209.cjs +2 -1
- package/dist/index209.js +42 -2
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +296 -13
- package/dist/index210.cjs +1 -2
- package/dist/index210.js +2 -3
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +5 -13
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +10 -4
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +20 -2
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +9 -32
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +66 -21
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +65 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +188 -5
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +28 -5
- package/dist/index219.cjs +1 -9
- package/dist/index219.js +69 -28
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -464
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +41 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +14 -24
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +11 -31
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +11 -35
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +12 -8
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +17 -16
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +105 -24
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +103 -8
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +6 -7
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +7 -162
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +12 -35
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +25 -126
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +15 -26
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +206 -183
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +25 -4
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +47 -3
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +9 -20
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +42 -16
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +75 -31
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +2 -3
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +10 -26
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +58 -26
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +19 -25
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +68 -28
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +656 -26
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +201 -37
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +172 -73
- package/dist/index245.cjs +2 -1
- package/dist/index245.js +67 -2
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +13 -36
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +4 -49
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +2 -7
- package/dist/index25.cjs +16 -1
- package/dist/index25.js +113 -7
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +16 -17
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +26 -31
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +8 -12
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +7 -57
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +10 -8
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +31 -12
- package/dist/index31.cjs +1 -16
- package/dist/index31.js +28 -112
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +16 -39
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +31 -43
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +41 -22
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +151 -6
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +35 -13
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +57 -14
- package/dist/index38.cjs +2 -1
- package/dist/index38.js +59 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +13 -13
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +4 -4
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +37 -10
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +15 -12
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -11
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +20 -13
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -34
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +44 -54
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +32 -16
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +3 -5
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +9 -8
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +50 -171
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +7 -103
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +16 -3
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +10 -21
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +5 -16
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +14 -10
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +3 -18
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +25 -124
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +108 -59
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +4 -23
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +6 -10
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +86 -18
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +6 -6
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +125 -10
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +6 -31
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +21 -16
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +17 -16
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +40 -7
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +20 -32
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +11 -24
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +6 -22
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +19 -58
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +106 -40
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +67 -36
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +7 -164
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +25 -108
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +68 -27
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +4 -2
- package/dist/index77.cjs +2 -1
- package/dist/index77.js +3 -4
- package/dist/index78.cjs +1 -2
- package/dist/index78.js +8 -59
- package/dist/index79.cjs +20 -2
- package/dist/index79.js +307 -35
- package/dist/index80.cjs +1 -3
- package/dist/index80.js +11 -213
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +4 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +11 -11
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +2 -25
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +7 -28
- package/dist/index85.cjs +2 -1
- package/dist/index85.js +50 -43
- package/dist/index86.cjs +3 -1
- package/dist/index86.js +215 -19
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +32 -12
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +20 -39
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +5 -9
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -2
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +73 -7
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +5 -31
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +5 -36
- package/dist/index93.cjs +9 -1
- package/dist/index93.js +35 -36
- package/dist/index94.cjs +3 -1
- package/dist/index94.js +95 -9
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +3 -30
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +18 -22
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +18 -87
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +33 -48
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +2 -2
- package/dist/src/index.d.ts +0 -1
- package/dist/src/lib/auth/apikey/apikey.d.ts +1 -1
- package/dist/src/lib/auth/auth.types.d.ts +1 -1
- package/dist/src/lib/fetcher/fetcher.d.ts +2 -0
- package/dist/src/lib/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index249.cjs +0 -1
- package/dist/index249.js +0 -9
- package/dist/index250.cjs +0 -1
- package/dist/index250.js +0 -35
- package/dist/index251.cjs +0 -1
- package/dist/index251.js +0 -7
- package/dist/index252.cjs +0 -1
- package/dist/index252.js +0 -11
- package/dist/index253.cjs +0 -1
- package/dist/index253.js +0 -6
- package/dist/index254.cjs +0 -1
- package/dist/index254.js +0 -20
- package/dist/index255.cjs +0 -1
- package/dist/index255.js +0 -13
- package/dist/index256.cjs +0 -1
- package/dist/index256.js +0 -8
- package/dist/index257.cjs +0 -1
- package/dist/index257.js +0 -11
- package/dist/index258.cjs +0 -1
- package/dist/index258.js +0 -107
- package/dist/index259.cjs +0 -1
- package/dist/index259.js +0 -5
- package/dist/index260.cjs +0 -1
- package/dist/index260.js +0 -21
- package/dist/index261.cjs +0 -1
- package/dist/index261.js +0 -20
- package/dist/index262.cjs +0 -1
- package/dist/index262.js +0 -45
- package/dist/index263.cjs +0 -1
- package/dist/index263.js +0 -149
- package/dist/index264.cjs +0 -1
- package/dist/index264.js +0 -106
- package/dist/index265.cjs +0 -1
- package/dist/index265.js +0 -81
- package/dist/index266.cjs +0 -1
- package/dist/index266.js +0 -4
- package/dist/index267.cjs +0 -1
- package/dist/index267.js +0 -9
- package/dist/index268.cjs +0 -1
- package/dist/index268.js +0 -227
- package/dist/index269.cjs +0 -1
- package/dist/index269.js +0 -6
- package/dist/index270.cjs +0 -1
- package/dist/index270.js +0 -143
- package/dist/index271.cjs +0 -1
- package/dist/index271.js +0 -158
- package/dist/index272.cjs +0 -1
- package/dist/index272.js +0 -12
- package/dist/index273.cjs +0 -1
- package/dist/index273.js +0 -116
- package/dist/index274.cjs +0 -2
- package/dist/index274.js +0 -137
- package/dist/index275.cjs +0 -2
- package/dist/index275.js +0 -44
- package/dist/index276.cjs +0 -1
- package/dist/index276.js +0 -4
- package/dist/index277.cjs +0 -1
- package/dist/index277.js +0 -8
- package/dist/index278.cjs +0 -1
- package/dist/index278.js +0 -13
- package/dist/index279.cjs +0 -1
- package/dist/index279.js +0 -22
- package/dist/index280.cjs +0 -1
- package/dist/index280.js +0 -11
- package/dist/index281.cjs +0 -1
- package/dist/index281.js +0 -69
- package/dist/index282.cjs +0 -1
- package/dist/index282.js +0 -68
- package/dist/index283.cjs +0 -1
- package/dist/index283.js +0 -189
- package/dist/index284.cjs +0 -1
- package/dist/index284.js +0 -25
- package/dist/index285.cjs +0 -1
- package/dist/index285.js +0 -45
- package/dist/index286.cjs +0 -1
- package/dist/index286.js +0 -79
- package/dist/index287.cjs +0 -1
- package/dist/index287.js +0 -43
- package/dist/index288.cjs +0 -1
- package/dist/index288.js +0 -19
- package/dist/index289.cjs +0 -1
- package/dist/index289.js +0 -16
- package/dist/index290.cjs +0 -1
- package/dist/index290.js +0 -22
- package/dist/index291.cjs +0 -1
- package/dist/index291.js +0 -15
- package/dist/index292.cjs +0 -2
- package/dist/index292.js +0 -21
- package/dist/index293.cjs +0 -1
- package/dist/index293.js +0 -17
- package/dist/index294.cjs +0 -1
- package/dist/index294.js +0 -14
- package/dist/index295.cjs +0 -1
- package/dist/index295.js +0 -9
- package/dist/index296.cjs +0 -1
- package/dist/index296.js +0 -9
- package/dist/index297.cjs +0 -1
- package/dist/index297.js +0 -29
- package/dist/index298.cjs +0 -1
- package/dist/index298.js +0 -14
- package/dist/index299.cjs +0 -1
- package/dist/index299.js +0 -22
- package/dist/index300.cjs +0 -1
- package/dist/index300.js +0 -701
- package/dist/index301.cjs +0 -1
- package/dist/index301.js +0 -142
- package/dist/index302.cjs +0 -1
- package/dist/index302.js +0 -204
- package/dist/index303.cjs +0 -2
- package/dist/index303.js +0 -69
- package/dist/index304.cjs +0 -1
- package/dist/index304.js +0 -7
- package/dist/index305.cjs +0 -1
- package/dist/index305.js +0 -43
- package/dist/index306.cjs +0 -1
- package/dist/index306.js +0 -10
- package/dist/index307.cjs +0 -1
- package/dist/index307.js +0 -65
- 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 -71
- package/dist/index312.cjs +0 -1
- package/dist/index312.js +0 -66
- package/dist/index313.cjs +0 -1
- package/dist/index313.js +0 -47
- package/dist/index314.cjs +0 -1
- package/dist/index314.js +0 -7
- package/dist/index315.cjs +0 -1
- package/dist/index315.js +0 -7
- package/dist/index316.cjs +0 -1
- package/dist/index316.js +0 -4
- package/dist/index317.cjs +0 -1
- package/dist/index317.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/index196.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("./index125.cjs"),q=require("./index131.cjs"),m=require("./index111.cjs"),y=require("./index155.cjs");async function T(i,{address:a,blockHash:g,fromBlock:o,toBlock:s,event:n,events:c,args:u,strict:L}={}){const b=L??!1,t=c??(n?[n]:void 0);let e=[];t&&(e=[t.flatMap(p=>l.encodeEventTopics({abi:[p],eventName:p.name,args:c?void 0:u}))],n&&(e=e[0]));let r;g?r=await i.request({method:"eth_getLogs",params:[{address:a,topics:e,blockHash:g}]}):r=await i.request({method:"eth_getLogs",params:[{address:a,topics:e,fromBlock:typeof o=="bigint"?m.numberToHex(o):o,toBlock:typeof s=="bigint"?m.numberToHex(s):s}]});const d=r.map(f=>y.formatLog(f));return t?q.parseEventLogs({abi:t,args:u,logs:d,strict:b}):d}exports.getLogs=T;
|
package/dist/index196.js
CHANGED
|
@@ -1,154 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
w,
|
|
26
|
-
m,
|
|
27
|
-
l
|
|
28
|
-
]);
|
|
29
|
-
return D(C, { onLogs: N, onError: u }, (n) => {
|
|
30
|
-
let a;
|
|
31
|
-
l !== void 0 && (a = l - 1n);
|
|
32
|
-
let e, s = !1;
|
|
33
|
-
const k = R(async () => {
|
|
34
|
-
var d;
|
|
35
|
-
if (!s) {
|
|
36
|
-
try {
|
|
37
|
-
e = await g(t, U, "createContractEventFilter")({
|
|
38
|
-
abi: b,
|
|
39
|
-
address: f,
|
|
40
|
-
args: p,
|
|
41
|
-
eventName: c,
|
|
42
|
-
strict: m,
|
|
43
|
-
fromBlock: l
|
|
44
|
-
});
|
|
45
|
-
} catch {
|
|
46
|
-
}
|
|
47
|
-
s = !0;
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
try {
|
|
51
|
-
let r;
|
|
52
|
-
if (e)
|
|
53
|
-
r = await g(t, x, "getFilterChanges")({ filter: e });
|
|
54
|
-
else {
|
|
55
|
-
const o = await g(t, j, "getBlockNumber")({});
|
|
56
|
-
a && a < o ? r = await g(t, q, "getContractEvents")({
|
|
57
|
-
abi: b,
|
|
58
|
-
address: f,
|
|
59
|
-
args: p,
|
|
60
|
-
eventName: c,
|
|
61
|
-
fromBlock: a + 1n,
|
|
62
|
-
toBlock: o,
|
|
63
|
-
strict: m
|
|
64
|
-
}) : r = [], a = o;
|
|
65
|
-
}
|
|
66
|
-
if (r.length === 0)
|
|
67
|
-
return;
|
|
68
|
-
if (h)
|
|
69
|
-
n.onLogs(r);
|
|
70
|
-
else
|
|
71
|
-
for (const o of r)
|
|
72
|
-
n.onLogs([o]);
|
|
73
|
-
} catch (r) {
|
|
74
|
-
e && r instanceof z && (s = !1), (d = n.onError) == null || d.call(n, r);
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
77
|
-
emitOnBegin: !0,
|
|
78
|
-
interval: w
|
|
79
|
-
});
|
|
80
|
-
return async () => {
|
|
81
|
-
e && await g(t, G, "uninstallFilter")({ filter: e }), k();
|
|
82
|
-
};
|
|
83
|
-
});
|
|
84
|
-
})() : (() => {
|
|
85
|
-
const m = v ?? !1, C = S([
|
|
86
|
-
"watchContractEvent",
|
|
87
|
-
f,
|
|
88
|
-
p,
|
|
89
|
-
h,
|
|
90
|
-
t.uid,
|
|
91
|
-
c,
|
|
92
|
-
w,
|
|
93
|
-
m
|
|
94
|
-
]);
|
|
95
|
-
let n = !0, a = () => n = !1;
|
|
96
|
-
return D(C, { onLogs: N, onError: u }, (e) => ((async () => {
|
|
97
|
-
try {
|
|
98
|
-
const s = (() => {
|
|
99
|
-
if (t.transport.type === "fallback") {
|
|
100
|
-
const r = t.transport.transports.find((o) => o.config.type === "webSocket" || o.config.type === "ipc");
|
|
101
|
-
return r ? r.value : t.transport;
|
|
102
|
-
}
|
|
103
|
-
return t.transport;
|
|
104
|
-
})(), k = c ? O({
|
|
105
|
-
abi: b,
|
|
106
|
-
eventName: c,
|
|
107
|
-
args: p
|
|
108
|
-
}) : [], { unsubscribe: d } = await s.subscribe({
|
|
109
|
-
params: ["logs", { address: f, topics: k }],
|
|
110
|
-
onData(r) {
|
|
111
|
-
var I;
|
|
112
|
-
if (!n)
|
|
113
|
-
return;
|
|
114
|
-
const o = r.result;
|
|
115
|
-
try {
|
|
116
|
-
const { eventName: i, args: y } = A({
|
|
117
|
-
abi: b,
|
|
118
|
-
data: o.data,
|
|
119
|
-
topics: o.topics,
|
|
120
|
-
strict: v
|
|
121
|
-
}), E = F(o, {
|
|
122
|
-
args: y,
|
|
123
|
-
eventName: i
|
|
124
|
-
});
|
|
125
|
-
e.onLogs([E]);
|
|
126
|
-
} catch (i) {
|
|
127
|
-
let y, E;
|
|
128
|
-
if (i instanceof P || i instanceof T) {
|
|
129
|
-
if (v)
|
|
130
|
-
return;
|
|
131
|
-
y = i.abiItem.name, E = (I = i.abiItem.inputs) == null ? void 0 : I.some((B) => !("name" in B && B.name));
|
|
132
|
-
}
|
|
133
|
-
const M = F(o, {
|
|
134
|
-
args: E ? [] : {},
|
|
135
|
-
eventName: y
|
|
136
|
-
});
|
|
137
|
-
e.onLogs([M]);
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
onError(r) {
|
|
141
|
-
var o;
|
|
142
|
-
(o = e.onError) == null || o.call(e, r);
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
a = d, n || a();
|
|
146
|
-
} catch (s) {
|
|
147
|
-
u == null || u(s);
|
|
1
|
+
import { encodeEventTopics as h } from "./index125.js";
|
|
2
|
+
import { parseEventLogs as l } from "./index131.js";
|
|
3
|
+
import { numberToHex as u } from "./index111.js";
|
|
4
|
+
import { formatLog as y } from "./index155.js";
|
|
5
|
+
async function T(n, { address: a, blockHash: m, fromBlock: o, toBlock: i, event: r, events: f, args: g, strict: L } = {}) {
|
|
6
|
+
const b = L ?? !1, e = f ?? (r ? [r] : void 0);
|
|
7
|
+
let t = [];
|
|
8
|
+
e && (t = [e.flatMap((c) => h({
|
|
9
|
+
abi: [c],
|
|
10
|
+
eventName: c.name,
|
|
11
|
+
args: f ? void 0 : g
|
|
12
|
+
}))], r && (t = t[0]));
|
|
13
|
+
let s;
|
|
14
|
+
m ? s = await n.request({
|
|
15
|
+
method: "eth_getLogs",
|
|
16
|
+
params: [{ address: a, topics: t, blockHash: m }]
|
|
17
|
+
}) : s = await n.request({
|
|
18
|
+
method: "eth_getLogs",
|
|
19
|
+
params: [
|
|
20
|
+
{
|
|
21
|
+
address: a,
|
|
22
|
+
topics: t,
|
|
23
|
+
fromBlock: typeof o == "bigint" ? u(o) : o,
|
|
24
|
+
toBlock: typeof i == "bigint" ? u(i) : i
|
|
148
25
|
}
|
|
149
|
-
|
|
150
|
-
})
|
|
26
|
+
]
|
|
27
|
+
});
|
|
28
|
+
const p = s.map((d) => y(d));
|
|
29
|
+
return e ? l({
|
|
30
|
+
abi: e,
|
|
31
|
+
args: g,
|
|
32
|
+
logs: p,
|
|
33
|
+
strict: b
|
|
34
|
+
}) : p;
|
|
151
35
|
}
|
|
152
36
|
export {
|
|
153
|
-
|
|
37
|
+
T as getLogs
|
|
154
38
|
};
|
package/dist/index197.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index131.cjs"),a=require("./index155.cjs");async function i(g,{filter:t}){const n="strict"in t&&t.strict,e=await t.request({method:"eth_getFilterChanges",params:[t.id]});if(typeof e[0]=="string")return e;const s=e.map(o=>a.formatLog(o));return!("abi"in t)||!t.abi?s:r.parseEventLogs({abi:t.abi,logs:s,strict:n})}exports.getFilterChanges=i;
|
package/dist/index197.js
CHANGED
|
@@ -1,38 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
args: c,
|
|
16
|
-
functionName: s
|
|
1
|
+
import { parseEventLogs as a } from "./index131.js";
|
|
2
|
+
import { formatLog as i } from "./index155.js";
|
|
3
|
+
async function m(e, { filter: t }) {
|
|
4
|
+
const n = "strict" in t && t.strict, o = await t.request({
|
|
5
|
+
method: "eth_getFilterChanges",
|
|
6
|
+
params: [t.id]
|
|
7
|
+
});
|
|
8
|
+
if (typeof o[0] == "string")
|
|
9
|
+
return o;
|
|
10
|
+
const s = o.map((r) => i(r));
|
|
11
|
+
return !("abi" in t) || !t.abi ? s : a({
|
|
12
|
+
abi: t.abi,
|
|
13
|
+
logs: s,
|
|
14
|
+
strict: n
|
|
17
15
|
});
|
|
18
|
-
try {
|
|
19
|
-
return await C(r, g, "sendTransaction")({
|
|
20
|
-
data: `${f}${e ? e.replace("0x", "") : ""}`,
|
|
21
|
-
to: a,
|
|
22
|
-
account: t,
|
|
23
|
-
...d
|
|
24
|
-
});
|
|
25
|
-
} catch (m) {
|
|
26
|
-
throw h(m, {
|
|
27
|
-
abi: n,
|
|
28
|
-
address: a,
|
|
29
|
-
args: c,
|
|
30
|
-
docsPath: "/docs/contract/writeContract",
|
|
31
|
-
functionName: s,
|
|
32
|
-
sender: t == null ? void 0 : t.address
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
16
|
}
|
|
36
17
|
export {
|
|
37
|
-
|
|
18
|
+
m as getFilterChanges
|
|
38
19
|
};
|
package/dist/index198.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index150.cjs"),u=require("./index111.cjs");async function i(e,{address:n,blockTag:o="latest",blockNumber:t}){const r=await e.request({method:"eth_getTransactionCount",params:[n,typeof t=="bigint"?u.numberToHex(t):o]},{dedupe:!!t});return a.hexToNumber(r)}exports.getTransactionCount=i;
|
package/dist/index198.js
CHANGED
|
@@ -1,35 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
name: f,
|
|
15
|
-
pollingInterval: t,
|
|
16
|
-
request: k,
|
|
17
|
-
transport: v,
|
|
18
|
-
type: m,
|
|
19
|
-
uid: M(),
|
|
20
|
-
...c ? { experimental_blockTag: c } : {}
|
|
21
|
-
};
|
|
22
|
-
function i(l) {
|
|
23
|
-
return (y) => {
|
|
24
|
-
const r = y(l);
|
|
25
|
-
for (const h in o)
|
|
26
|
-
delete r[h];
|
|
27
|
-
const s = { ...l, ...r };
|
|
28
|
-
return Object.assign(s, { extend: i(s) });
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
return Object.assign(o, { extend: i(o) });
|
|
1
|
+
import { hexToNumber as r } from "./index150.js";
|
|
2
|
+
import { numberToHex as i } from "./index111.js";
|
|
3
|
+
async function m(o, { address: e, blockTag: n = "latest", blockNumber: t }) {
|
|
4
|
+
const a = await o.request({
|
|
5
|
+
method: "eth_getTransactionCount",
|
|
6
|
+
params: [
|
|
7
|
+
e,
|
|
8
|
+
typeof t == "bigint" ? i(t) : n
|
|
9
|
+
]
|
|
10
|
+
}, {
|
|
11
|
+
dedupe: !!t
|
|
12
|
+
});
|
|
13
|
+
return r(a);
|
|
32
14
|
}
|
|
33
15
|
export {
|
|
34
|
-
|
|
16
|
+
m as getTransactionCount
|
|
35
17
|
};
|
package/dist/index199.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(n,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}exports.uninstallFilter=e;
|
package/dist/index199.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
t
|
|
5
|
-
|
|
6
|
-
t += (256 + Math.random() * 256 | 0).toString(16).substring(1);
|
|
7
|
-
}
|
|
8
|
-
return t.substring(i, i++ + e);
|
|
1
|
+
async function e(n, { filter: t }) {
|
|
2
|
+
return t.request({
|
|
3
|
+
method: "eth_uninstallFilter",
|
|
4
|
+
params: [t.id]
|
|
5
|
+
});
|
|
9
6
|
}
|
|
10
7
|
export {
|
|
11
|
-
|
|
8
|
+
e as uninstallFilter
|
|
12
9
|
};
|
package/dist/index20.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index94.cjs"),i=require("./index156.cjs");async function s(t,{hash:e}){var a,n,o;const r=await t.request({method:"eth_getTransactionReceipt",params:[e]},{dedupe:!0});if(!r)throw new c.TransactionReceiptNotFoundError({hash:e});return(((o=(n=(a=t.chain)==null?void 0:a.formatters)==null?void 0:n.transactionReceipt)==null?void 0:o.format)||i.formatTransactionReceipt)(r)}exports.getTransactionReceipt=s;
|
package/dist/index20.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { TransactionReceiptNotFoundError as i } from "./index94.js";
|
|
2
|
+
import { formatTransactionReceipt as c } from "./index156.js";
|
|
3
|
+
async function f(t, { hash: r }) {
|
|
4
|
+
var o, a, n;
|
|
5
|
+
const e = await t.request({
|
|
6
|
+
method: "eth_getTransactionReceipt",
|
|
7
|
+
params: [r]
|
|
8
|
+
}, { dedupe: !0 });
|
|
9
|
+
if (!e)
|
|
10
|
+
throw new i({ hash: r });
|
|
11
|
+
return (((n = (a = (o = t.chain) == null ? void 0 : o.formatters) == null ? void 0 : a.transactionReceipt) == null ? void 0 : n.format) || c)(e);
|
|
12
|
+
}
|
|
2
13
|
export {
|
|
3
|
-
|
|
14
|
+
f as getTransactionReceipt
|
|
4
15
|
};
|
package/dist/index200.cjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index38.cjs");class c extends t.BaseError{constructor({docsPath:o}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
|
|
2
|
+
`),{docsPath:o,docsSlug:"account",name:"AccountNotFoundError"})}}class u extends t.BaseError{constructor({docsPath:o,metaMessages:e,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:o,metaMessages:e,name:"AccountTypeNotSupportedError"})}}exports.AccountNotFoundError=c;exports.AccountTypeNotSupportedError=u;
|
package/dist/index200.js
CHANGED
|
@@ -1,71 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
].filter(Boolean),
|
|
14
|
-
name: "HttpRequestError"
|
|
15
|
-
}), Object.defineProperty(this, "body", {
|
|
16
|
-
enumerable: !0,
|
|
17
|
-
configurable: !0,
|
|
18
|
-
writable: !0,
|
|
19
|
-
value: void 0
|
|
20
|
-
}), Object.defineProperty(this, "headers", {
|
|
21
|
-
enumerable: !0,
|
|
22
|
-
configurable: !0,
|
|
23
|
-
writable: !0,
|
|
24
|
-
value: void 0
|
|
25
|
-
}), Object.defineProperty(this, "status", {
|
|
26
|
-
enumerable: !0,
|
|
27
|
-
configurable: !0,
|
|
28
|
-
writable: !0,
|
|
29
|
-
value: void 0
|
|
30
|
-
}), Object.defineProperty(this, "url", {
|
|
31
|
-
enumerable: !0,
|
|
32
|
-
configurable: !0,
|
|
33
|
-
writable: !0,
|
|
34
|
-
value: void 0
|
|
35
|
-
}), this.body = t, this.headers = d, this.status = u, this.url = l;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
class f extends a {
|
|
39
|
-
constructor({ body: t, error: e, url: r }) {
|
|
40
|
-
super("RPC Request failed.", {
|
|
41
|
-
cause: e,
|
|
42
|
-
details: e.message,
|
|
43
|
-
metaMessages: [`URL: ${o(r)}`, `Request body: ${s(t)}`],
|
|
44
|
-
name: "RpcRequestError"
|
|
45
|
-
}), Object.defineProperty(this, "code", {
|
|
46
|
-
enumerable: !0,
|
|
47
|
-
configurable: !0,
|
|
48
|
-
writable: !0,
|
|
49
|
-
value: void 0
|
|
50
|
-
}), Object.defineProperty(this, "data", {
|
|
51
|
-
enumerable: !0,
|
|
52
|
-
configurable: !0,
|
|
53
|
-
writable: !0,
|
|
54
|
-
value: void 0
|
|
55
|
-
}), this.code = e.code, this.data = e.data;
|
|
1
|
+
import { BaseError as t } from "./index38.js";
|
|
2
|
+
class u extends t {
|
|
3
|
+
constructor({ docsPath: o } = {}) {
|
|
4
|
+
super([
|
|
5
|
+
"Could not find an Account to execute with this Action.",
|
|
6
|
+
"Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."
|
|
7
|
+
].join(`
|
|
8
|
+
`), {
|
|
9
|
+
docsPath: o,
|
|
10
|
+
docsSlug: "account",
|
|
11
|
+
name: "AccountNotFoundError"
|
|
12
|
+
});
|
|
56
13
|
}
|
|
57
14
|
}
|
|
58
|
-
class
|
|
59
|
-
constructor({
|
|
60
|
-
super(
|
|
61
|
-
|
|
62
|
-
metaMessages:
|
|
63
|
-
name: "
|
|
15
|
+
class s extends t {
|
|
16
|
+
constructor({ docsPath: o, metaMessages: c, type: r }) {
|
|
17
|
+
super(`Account type "${r}" is not supported.`, {
|
|
18
|
+
docsPath: o,
|
|
19
|
+
metaMessages: c,
|
|
20
|
+
name: "AccountTypeNotSupportedError"
|
|
64
21
|
});
|
|
65
22
|
}
|
|
66
23
|
}
|
|
67
24
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
p as TimeoutError
|
|
25
|
+
u as AccountNotFoundError,
|
|
26
|
+
s as AccountTypeNotSupportedError
|
|
71
27
|
};
|
package/dist/index201.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("./index101.cjs"),i=require("./index94.cjs"),s=require("./index233.cjs");function u(r,{docsPath:o,...e}){const t=(()=>{const n=s.getNodeError(r,e);return n instanceof c.UnknownNodeError?r:n})();return new i.TransactionExecutionError(t,{docsPath:o,...e})}exports.getTransactionError=u;
|
package/dist/index201.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
import { UnknownNodeError as c } from "./index101.js";
|
|
2
|
+
import { TransactionExecutionError as i } from "./index94.js";
|
|
3
|
+
import { getNodeError as u } from "./index233.js";
|
|
4
|
+
function s(r, { docsPath: t, ...o }) {
|
|
5
|
+
const e = (() => {
|
|
6
|
+
const n = u(r, o);
|
|
7
|
+
return n instanceof c ? r : n;
|
|
8
|
+
})();
|
|
9
|
+
return new i(e, {
|
|
10
|
+
docsPath: t,
|
|
11
|
+
...o
|
|
12
|
+
});
|
|
9
13
|
}
|
|
10
14
|
export {
|
|
11
|
-
|
|
15
|
+
s as getTransactionError
|
|
12
16
|
};
|
package/dist/index202.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("./index82.cjs"),t=require("./index119.cjs");function i(s){if(typeof s=="string"){if(!t.isAddress(s,{strict:!1}))throw new n.InvalidAddressError({address:s});return{address:s,type:"json-rpc"}}if(!t.isAddress(s.address,{strict:!1}))throw new n.InvalidAddressError({address:s.address});return{address:s.address,nonceManager:s.nonceManager,sign:s.sign,signAuthorization:s.signAuthorization,signMessage:s.signMessage,signTransaction:s.signTransaction,signTypedData:s.signTypedData,source:"custom",type:"local"}}exports.toAccount=i;
|
package/dist/index202.js
CHANGED
|
@@ -1,74 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { InvalidAddressError as s } from "./index82.js";
|
|
2
|
+
import { isAddress as a } from "./index119.js";
|
|
3
|
+
function r(n) {
|
|
4
|
+
if (typeof n == "string") {
|
|
5
|
+
if (!a(n, { strict: !1 }))
|
|
6
|
+
throw new s({ address: n });
|
|
7
|
+
return {
|
|
8
|
+
address: n,
|
|
9
|
+
type: "json-rpc"
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
if (!a(n.address, { strict: !1 }))
|
|
13
|
+
throw new s({ address: n.address });
|
|
6
14
|
return {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
}
|
|
15
|
+
address: n.address,
|
|
16
|
+
nonceManager: n.nonceManager,
|
|
17
|
+
sign: n.sign,
|
|
18
|
+
signAuthorization: n.signAuthorization,
|
|
19
|
+
signMessage: n.signMessage,
|
|
20
|
+
signTransaction: n.signTransaction,
|
|
21
|
+
signTypedData: n.signTypedData,
|
|
22
|
+
source: "custom",
|
|
23
|
+
type: "local"
|
|
70
24
|
};
|
|
71
25
|
}
|
|
72
26
|
export {
|
|
73
|
-
|
|
27
|
+
r as toAccount
|
|
74
28
|
};
|
package/dist/index203.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index171.cjs"),l=require("./index130.cjs"),y=require("./index110.cjs"),i=require("./index111.cjs"),x=require("./index172.cjs");let r=!1;async function g({hash:n,privateKey:o,to:e="object"}){const{r:c,s:u,recovery:t}=a.secp256k1.sign(n.slice(2),o.slice(2),{lowS:!0,extraEntropy:l.isHex(r,{strict:!1})?y.hexToBytes(r):r}),s={r:i.numberToHex(c,{size:32}),s:i.numberToHex(u,{size:32}),v:t?28n:27n,yParity:t};return e==="bytes"||e==="hex"?x.serializeSignature({...s,to:e}):s}exports.sign=g;
|