@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/index37.js
CHANGED
|
@@ -1,18 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { BaseError as C } from "./index38.js";
|
|
2
|
+
import { BundleFailedError as F } from "./index39.js";
|
|
3
|
+
import { getAction as S } from "./index29.js";
|
|
4
|
+
import { observe as T } from "./index40.js";
|
|
5
|
+
import { poll as b } from "./index41.js";
|
|
6
|
+
import { withResolvers as E } from "./index42.js";
|
|
7
|
+
import { withRetry as B } from "./index43.js";
|
|
8
|
+
import { stringify as I } from "./index44.js";
|
|
9
|
+
import { getCallsStatus as j } from "./index45.js";
|
|
10
|
+
async function z(e, o) {
|
|
11
|
+
const {
|
|
12
|
+
id: i,
|
|
13
|
+
pollingInterval: f = e.pollingInterval,
|
|
14
|
+
status: p = ({ statusCode: t }) => t === 200 || t >= 300,
|
|
15
|
+
retryCount: w = 4,
|
|
16
|
+
retryDelay: d = ({ count: t }) => ~~(1 << t) * 200,
|
|
17
|
+
// exponential backoff
|
|
18
|
+
timeout: l = 6e4,
|
|
19
|
+
throwOnFailure: y = !1
|
|
20
|
+
} = o, v = I(["waitForCallsStatus", e.uid, i]), { promise: g, resolve: h, reject: n } = E();
|
|
21
|
+
let s;
|
|
22
|
+
const u = T(v, { resolve: h, reject: n }, (t) => {
|
|
23
|
+
const m = b(async () => {
|
|
24
|
+
const c = (r) => {
|
|
25
|
+
clearTimeout(s), m(), r(), u();
|
|
26
|
+
};
|
|
27
|
+
try {
|
|
28
|
+
const r = await B(async () => {
|
|
29
|
+
const a = await S(e, j, "getCallsStatus")({ id: i });
|
|
30
|
+
if (y && a.status === "failure")
|
|
31
|
+
throw new F(a);
|
|
32
|
+
return a;
|
|
33
|
+
}, {
|
|
34
|
+
retryCount: w,
|
|
35
|
+
delay: d
|
|
36
|
+
});
|
|
37
|
+
if (!p(r))
|
|
38
|
+
return;
|
|
39
|
+
c(() => t.resolve(r));
|
|
40
|
+
} catch (r) {
|
|
41
|
+
c(() => t.reject(r));
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
interval: f,
|
|
45
|
+
emitOnBegin: !0
|
|
46
|
+
});
|
|
47
|
+
return m;
|
|
8
48
|
});
|
|
9
|
-
return
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
49
|
+
return s = l ? setTimeout(() => {
|
|
50
|
+
u(), clearTimeout(s), n(new x({ id: i }));
|
|
51
|
+
}, l) : void 0, await g;
|
|
52
|
+
}
|
|
53
|
+
class x extends C {
|
|
54
|
+
constructor({ id: o }) {
|
|
55
|
+
super(`Timed out while waiting for call bundle with id "${o}" to be confirmed.`, { name: "WaitForCallsStatusTimeoutError" });
|
|
56
|
+
}
|
|
15
57
|
}
|
|
16
58
|
export {
|
|
17
|
-
|
|
59
|
+
x as WaitForCallsStatusTimeoutError,
|
|
60
|
+
z as waitForCallsStatus
|
|
18
61
|
};
|
package/dist/index38.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 l=require("./index83.cjs");let i={getDocsUrl:({docsBaseUrl:s,docsPath:t="",docsSlug:e})=>t?`${s??"https://viem.sh"}${t}${e?`#${e}`:""}`:void 0,version:`viem@${l.version}`};class u extends Error{constructor(t,e={}){var o;const r=(()=>{var c;return e.cause instanceof u?e.cause.details:(c=e.cause)!=null&&c.message?e.cause.message:e.details})(),n=e.cause instanceof u&&e.cause.docsPath||e.docsPath,a=(o=i.getDocsUrl)==null?void 0:o.call(i,{...e,docsPath:n}),b=[t||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...r?[`Details: ${r}`]:[],...i.version?[`Version: ${i.version}`]:[]].join(`
|
|
2
|
+
`);super(b,e.cause?{cause:e.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=n,this.metaMessages=e.metaMessages,this.name=e.name??this.name,this.shortMessage=t,this.version=l.version}walk(t){return d(this,t)}}function d(s,t){return t!=null&&t(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?d(s.cause,t):t?null:s}exports.BaseError=u;
|
package/dist/index38.js
CHANGED
|
@@ -1,8 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { version as l } from "./index83.js";
|
|
2
|
+
let i = {
|
|
3
|
+
getDocsUrl: ({ docsBaseUrl: s, docsPath: t = "", docsSlug: e }) => t ? `${s ?? "https://viem.sh"}${t}${e ? `#${e}` : ""}` : void 0,
|
|
4
|
+
version: `viem@${l}`
|
|
5
|
+
};
|
|
6
|
+
class r extends Error {
|
|
7
|
+
constructor(t, e = {}) {
|
|
8
|
+
var o;
|
|
9
|
+
const u = (() => {
|
|
10
|
+
var c;
|
|
11
|
+
return e.cause instanceof r ? e.cause.details : (c = e.cause) != null && c.message ? e.cause.message : e.details;
|
|
12
|
+
})(), a = e.cause instanceof r && e.cause.docsPath || e.docsPath, n = (o = i.getDocsUrl) == null ? void 0 : o.call(i, { ...e, docsPath: a }), b = [
|
|
13
|
+
t || "An error occurred.",
|
|
14
|
+
"",
|
|
15
|
+
...e.metaMessages ? [...e.metaMessages, ""] : [],
|
|
16
|
+
...n ? [`Docs: ${n}`] : [],
|
|
17
|
+
...u ? [`Details: ${u}`] : [],
|
|
18
|
+
...i.version ? [`Version: ${i.version}`] : []
|
|
19
|
+
].join(`
|
|
20
|
+
`);
|
|
21
|
+
super(b, e.cause ? { cause: e.cause } : void 0), Object.defineProperty(this, "details", {
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
configurable: !0,
|
|
24
|
+
writable: !0,
|
|
25
|
+
value: void 0
|
|
26
|
+
}), Object.defineProperty(this, "docsPath", {
|
|
27
|
+
enumerable: !0,
|
|
28
|
+
configurable: !0,
|
|
29
|
+
writable: !0,
|
|
30
|
+
value: void 0
|
|
31
|
+
}), Object.defineProperty(this, "metaMessages", {
|
|
32
|
+
enumerable: !0,
|
|
33
|
+
configurable: !0,
|
|
34
|
+
writable: !0,
|
|
35
|
+
value: void 0
|
|
36
|
+
}), Object.defineProperty(this, "shortMessage", {
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0,
|
|
40
|
+
value: void 0
|
|
41
|
+
}), Object.defineProperty(this, "version", {
|
|
42
|
+
enumerable: !0,
|
|
43
|
+
configurable: !0,
|
|
44
|
+
writable: !0,
|
|
45
|
+
value: void 0
|
|
46
|
+
}), Object.defineProperty(this, "name", {
|
|
47
|
+
enumerable: !0,
|
|
48
|
+
configurable: !0,
|
|
49
|
+
writable: !0,
|
|
50
|
+
value: "BaseError"
|
|
51
|
+
}), this.details = u, this.docsPath = a, this.metaMessages = e.metaMessages, this.name = e.name ?? this.name, this.shortMessage = t, this.version = l;
|
|
52
|
+
}
|
|
53
|
+
walk(t) {
|
|
54
|
+
return d(this, t);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function d(s, t) {
|
|
58
|
+
return t != null && t(s) ? s : s && typeof s == "object" && "cause" in s && s.cause !== void 0 ? d(s.cause, t) : t ? null : s;
|
|
5
59
|
}
|
|
6
60
|
export {
|
|
7
|
-
|
|
61
|
+
r as BaseError
|
|
8
62
|
};
|
package/dist/index39.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("./index38.cjs");class t extends r.BaseError{constructor(e){super(`Call bundle failed with status: ${e.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=e}}exports.BundleFailedError=t;
|
package/dist/index39.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { BaseError as r } from "./index38.js";
|
|
2
|
+
class u extends r {
|
|
3
|
+
constructor(e) {
|
|
4
|
+
super(`Call bundle failed with status: ${e.statusCode}`, {
|
|
5
|
+
name: "BundleFailedError"
|
|
6
|
+
}), Object.defineProperty(this, "result", {
|
|
7
|
+
enumerable: !0,
|
|
8
|
+
configurable: !0,
|
|
9
|
+
writable: !0,
|
|
10
|
+
value: void 0
|
|
11
|
+
}), this.result = e;
|
|
12
|
+
}
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
15
|
-
u as
|
|
15
|
+
u as BundleFailedError
|
|
16
16
|
};
|
package/dist/index4.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index3.cjs"),e=require("./index5.cjs"),g=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index3.cjs"),e=require("./index5.cjs"),g=require("./index18.cjs"),l=require("./index19.cjs"),A=require("./index20.cjs"),h=require("./index21.cjs"),m=async(a,o,i,t)=>{if(!t.account)return e.Err("No account found");const n=g.getContract({address:u.with0x(o),abi:h.erc20Abi,client:t});try{const c=u.with0x(t.account.address),r=u.with0x(i),f=await n.read.allowance([c,r]);if(BigInt(f)<BigInt(a)){const p=await n.write.approve([r,l.maxUint256],{account:t.account,chain:t.chain}),s=await w(t,p);if(!s.ok)return e.Err(s.error);if(!s.val||s.val.status!=="success")return e.Err("Failed to approve");const d=await n.read.allowance([c,r]);return d<a?e.Err(`Insufficient allowance after approval. Needed ${a.toString()}, got ${d.toString()}.`):e.Ok(p)}return e.Ok("Already approved")}catch(c){return e.Err("Failed to approve: "+c)}},w=async(a,o,i=2e3,t=12e4)=>{const n=Math.ceil(t/i);for(let c=0;c<n;c++){try{const r=await A.getTransactionReceipt(a,{hash:o});if(r)return e.Ok(r)}catch(r){if(!r.message.includes(`Transaction receipt with hash "${o}" could not be found.`))return e.Err(r.message)}c<n-1&&await new Promise(r=>setTimeout(r,i))}return e.Err(`Timed out waiting for receipt of ${o}`)};exports.checkAllowanceAndApprove=m;exports.waitForTransactionReceipt=w;
|
package/dist/index4.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { with0x as p } from "./index3.js";
|
|
2
2
|
import { Err as o, Ok as f } from "./index5.js";
|
|
3
|
-
import { getContract as w } from "./
|
|
4
|
-
import { maxUint256 as g } from "./
|
|
5
|
-
import { getTransactionReceipt as l } from "./
|
|
6
|
-
import { erc20Abi as v } from "./
|
|
3
|
+
import { getContract as w } from "./index18.js";
|
|
4
|
+
import { maxUint256 as g } from "./index19.js";
|
|
5
|
+
import { getTransactionReceipt as l } from "./index20.js";
|
|
6
|
+
import { erc20Abi as v } from "./index21.js";
|
|
7
7
|
const k = async (c, n, i, t) => {
|
|
8
8
|
if (!t.account) return o("No account found");
|
|
9
9
|
const a = w({
|
package/dist/index40.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=new Map,r=new Map;let b=0;function w(s,a,C){const o=++b,c=()=>i.get(s)||[],m=()=>{const t=c();i.set(s,t.filter(n=>n.id!==o))},f=()=>{const t=c();if(!t.some(e=>e.id===o))return;const n=r.get(s);if(t.length===1&&n){const e=n();e instanceof Promise&&e.catch(()=>{})}m()},l=c();if(i.set(s,[...l,{id:o,fns:a}]),l&&l.length>0)return f;const u={};for(const t in a)u[t]=(...n)=>{var p,g;const e=c();if(e.length!==0)for(const y of e)(g=(p=y.fns)[t])==null||g.call(p,...n)};const h=C(u);return typeof h=="function"&&r.set(s,h),f}exports.cleanupCache=r;exports.listenersCache=i;exports.observe=w;
|
package/dist/index40.js
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
const f = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
|
|
2
|
+
let k = 0;
|
|
3
|
+
function y(s, l, m) {
|
|
4
|
+
const i = ++k, c = () => f.get(s) || [], w = () => {
|
|
5
|
+
const n = c();
|
|
6
|
+
f.set(s, n.filter((e) => e.id !== i));
|
|
7
|
+
}, r = () => {
|
|
8
|
+
const n = c();
|
|
9
|
+
if (!n.some((t) => t.id === i))
|
|
10
|
+
return;
|
|
11
|
+
const e = g.get(s);
|
|
12
|
+
if (n.length === 1 && e) {
|
|
13
|
+
const t = e();
|
|
14
|
+
t instanceof Promise && t.catch(() => {
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
w();
|
|
18
|
+
}, o = c();
|
|
19
|
+
if (f.set(s, [
|
|
20
|
+
...o,
|
|
21
|
+
{ id: i, fns: l }
|
|
22
|
+
]), o && o.length > 0)
|
|
23
|
+
return r;
|
|
24
|
+
const u = {};
|
|
25
|
+
for (const n in l)
|
|
26
|
+
u[n] = (...e) => {
|
|
27
|
+
var p, h;
|
|
28
|
+
const t = c();
|
|
29
|
+
if (t.length !== 0)
|
|
30
|
+
for (const C of t)
|
|
31
|
+
(h = (p = C.fns)[n]) == null || h.call(p, ...e);
|
|
32
|
+
};
|
|
33
|
+
const a = m(u);
|
|
34
|
+
return typeof a == "function" && g.set(s, a), r;
|
|
10
35
|
}
|
|
11
36
|
export {
|
|
12
|
-
|
|
37
|
+
g as cleanupCache,
|
|
38
|
+
f as listenersCache,
|
|
39
|
+
y as observe
|
|
13
40
|
};
|
package/dist/index41.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("./index162.cjs");function r(o,{emitOnBegin:s,initialWaitTime:t,interval:c}){let e=!0;const a=()=>e=!1;return(async()=>{let n;n=await o({unpoll:a});const w=await(t==null?void 0:t(n))??c;await u.wait(w);const l=async()=>{e&&(await o({unpoll:a}),await u.wait(c),l())};l()})(),a}exports.poll=r;
|
package/dist/index41.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { wait as r } from "./index162.js";
|
|
2
|
+
function f(o, { emitOnBegin: u, initialWaitTime: t, interval: c }) {
|
|
3
|
+
let n = !0;
|
|
4
|
+
const a = () => n = !1;
|
|
5
|
+
return (async () => {
|
|
6
|
+
let w;
|
|
7
|
+
w = await o({ unpoll: a });
|
|
8
|
+
const s = await (t == null ? void 0 : t(w)) ?? c;
|
|
9
|
+
await r(s);
|
|
10
|
+
const l = async () => {
|
|
11
|
+
n && (await o({ unpoll: a }), await r(c), l());
|
|
12
|
+
};
|
|
13
|
+
l();
|
|
14
|
+
})(), a;
|
|
12
15
|
}
|
|
13
16
|
export {
|
|
14
|
-
|
|
17
|
+
f as poll
|
|
15
18
|
};
|
package/dist/index42.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}exports.withResolvers=i;
|
package/dist/index42.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const o = i.test(t) ? t.toLowerCase() === t ? !0 : n ? c(t) === t : !0 : !1;
|
|
9
|
-
return r.set(e, o), o;
|
|
1
|
+
function i() {
|
|
2
|
+
let e = () => {
|
|
3
|
+
}, n = () => {
|
|
4
|
+
};
|
|
5
|
+
return { promise: new Promise((r, o) => {
|
|
6
|
+
e = r, n = o;
|
|
7
|
+
}), resolve: e, reject: n };
|
|
10
8
|
}
|
|
11
9
|
export {
|
|
12
|
-
|
|
13
|
-
r as isAddressCache
|
|
10
|
+
i as withResolvers
|
|
14
11
|
};
|
package/dist/index43.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("./index162.cjs");function f(n,{delay:e=100,retryCount:o=2,shouldRetry:c=()=>!0}={}){return new Promise((s,y)=>{const a=async({count:r=0}={})=>{const w=async({error:t})=>{const i=typeof e=="function"?e({count:r,error:t}):e;i&&await u.wait(i),a({count:r+1})};try{const t=await n();s(t)}catch(t){if(r<o&&await c({count:r,error:t}))return w({error:t});y(t)}};a()})}exports.withRetry=f;
|
package/dist/index43.js
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { wait as w } from "./index162.js";
|
|
2
|
+
function p(n, { delay: e = 100, retryCount: o = 2, shouldRetry: c = () => !0 } = {}) {
|
|
3
|
+
return new Promise((s, y) => {
|
|
4
|
+
const a = async ({ count: r = 0 } = {}) => {
|
|
5
|
+
const f = async ({ error: t }) => {
|
|
6
|
+
const i = typeof e == "function" ? e({ count: r, error: t }) : e;
|
|
7
|
+
i && await w(i), a({ count: r + 1 });
|
|
8
|
+
};
|
|
9
|
+
try {
|
|
10
|
+
const t = await n();
|
|
11
|
+
s(t);
|
|
12
|
+
} catch (t) {
|
|
13
|
+
if (r < o && await c({ count: r, error: t }))
|
|
14
|
+
return f({ error: t });
|
|
15
|
+
y(t);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
a();
|
|
19
|
+
});
|
|
13
20
|
}
|
|
14
21
|
export {
|
|
15
|
-
|
|
22
|
+
p as withRetry
|
|
16
23
|
};
|
package/dist/index44.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=(e,n,i)=>JSON.stringify(e,(o,t)=>typeof t=="bigint"?t.toString():t,i);exports.stringify=r;
|
package/dist/index44.js
CHANGED
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { size as f } from "./index212.js";
|
|
3
|
-
import { trim as t } from "./index61.js";
|
|
4
|
-
function u(i, { size: e }) {
|
|
5
|
-
if (f(i) > e)
|
|
6
|
-
throw new z({
|
|
7
|
-
givenSize: f(i),
|
|
8
|
-
maxSize: e
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function a(i, e = {}) {
|
|
12
|
-
const { signed: n } = e;
|
|
13
|
-
e.size && u(i, { size: e.size });
|
|
14
|
-
const r = BigInt(i);
|
|
15
|
-
if (!n)
|
|
16
|
-
return r;
|
|
17
|
-
const o = (i.length - 2) / 2, s = (1n << BigInt(o) * 8n - 1n) - 1n;
|
|
18
|
-
return r <= s ? r : r - BigInt(`0x${"f".padStart(o * 2, "f")}`) - 1n;
|
|
19
|
-
}
|
|
20
|
-
function g(i, e = {}) {
|
|
21
|
-
let n = i;
|
|
22
|
-
if (e.size && (u(n, { size: e.size }), n = t(n)), t(n) === "0x00")
|
|
23
|
-
return !1;
|
|
24
|
-
if (t(n) === "0x01")
|
|
25
|
-
return !0;
|
|
26
|
-
throw new m(n);
|
|
27
|
-
}
|
|
28
|
-
function w(i, e = {}) {
|
|
29
|
-
return Number(a(i, e));
|
|
30
|
-
}
|
|
1
|
+
const g = (r, n, i) => JSON.stringify(r, (e, t) => typeof t == "bigint" ? t.toString() : t, i);
|
|
31
2
|
export {
|
|
32
|
-
|
|
33
|
-
a as hexToBigInt,
|
|
34
|
-
g as hexToBool,
|
|
35
|
-
w as hexToNumber
|
|
3
|
+
g as stringify
|
|
36
4
|
};
|
package/dist/index45.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("./index107.cjs"),I=require("./index108.cjs"),n=require("./index150.cjs"),T=require("./index156.cjs"),o=require("./index60.cjs");async function q(r,l){async function d(e){if(e.endsWith(o.fallbackMagicIdentifier.slice(2))){const p=I.trim(c.sliceHex(e,-64,-32)),b=c.sliceHex(e,0,-64).slice(2).match(/.{1,64}/g),s=await Promise.all(b.map(t=>o.fallbackTransactionErrorMagicIdentifier.slice(2)!==t?r.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),x=s.some(t=>t===null)?100:s.every(t=>(t==null?void 0:t.status)==="0x1")?200:s.every(t=>(t==null?void 0:t.status)==="0x0")?500:600;return{atomic:!1,chainId:n.hexToNumber(p),receipts:s.filter(Boolean),status:x,version:"2.0.0"}}return r.request({method:"wallet_getCallsStatus",params:[e]})}const{atomic:f=!1,chainId:i,receipts:a,version:m="2.0.0",...u}=await d(l.id),[g,h]=(()=>{const e=u.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:e==="CONFIRMED"?["success",200]:e==="PENDING"?["pending",100]:[void 0,e]})();return{...u,atomic:f,chainId:i?n.hexToNumber(i):void 0,receipts:(a==null?void 0:a.map(e=>({...e,blockNumber:n.hexToBigInt(e.blockNumber),gasUsed:n.hexToBigInt(e.gasUsed),status:T.receiptStatuses[e.status]})))??[],statusCode:h,status:g,version:m}}exports.getCallsStatus=q;
|
package/dist/index45.js
CHANGED
|
@@ -1,58 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (e >= t.A && e <= t.F)
|
|
26
|
-
return e - (t.A - 10);
|
|
27
|
-
if (e >= t.a && e <= t.f)
|
|
28
|
-
return e - (t.a - 10);
|
|
29
|
-
}
|
|
30
|
-
function y(e, n = {}) {
|
|
31
|
-
let r = e;
|
|
32
|
-
n.size && (u(r, { size: n.size }), r = s(r, { dir: "right", size: n.size }));
|
|
33
|
-
let i = r.slice(2);
|
|
34
|
-
i.length % 2 && (i = `0${i}`);
|
|
35
|
-
const z = i.length / 2, d = new Uint8Array(z);
|
|
36
|
-
for (let f = 0, o = 0; f < z; f++) {
|
|
37
|
-
const b = m(i.charCodeAt(o++)), c = m(i.charCodeAt(o++));
|
|
38
|
-
if (b === void 0 || c === void 0)
|
|
39
|
-
throw new g(`Invalid byte sequence ("${i[o - 2]}${i[o - 1]}" in "${i}").`);
|
|
40
|
-
d[f] = b * 16 + c;
|
|
1
|
+
import { sliceHex as o } from "./index107.js";
|
|
2
|
+
import { trim as x } from "./index108.js";
|
|
3
|
+
import { hexToNumber as u, hexToBigInt as c } from "./index150.js";
|
|
4
|
+
import { receiptStatuses as N } from "./index156.js";
|
|
5
|
+
import { fallbackMagicIdentifier as T, fallbackTransactionErrorMagicIdentifier as C } from "./index60.js";
|
|
6
|
+
async function M(a, f) {
|
|
7
|
+
async function m(t) {
|
|
8
|
+
if (t.endsWith(T.slice(2))) {
|
|
9
|
+
const h = x(o(t, -64, -32)), I = o(t, 0, -64).slice(2).match(/.{1,64}/g), s = await Promise.all(I.map((e) => C.slice(2) !== e ? a.request({
|
|
10
|
+
method: "eth_getTransactionReceipt",
|
|
11
|
+
params: [`0x${e}`]
|
|
12
|
+
}, { dedupe: !0 }) : void 0)), b = s.some((e) => e === null) ? 100 : s.every((e) => (e == null ? void 0 : e.status) === "0x1") ? 200 : s.every((e) => (e == null ? void 0 : e.status) === "0x0") ? 500 : 600;
|
|
13
|
+
return {
|
|
14
|
+
atomic: !1,
|
|
15
|
+
chainId: u(h),
|
|
16
|
+
receipts: s.filter(Boolean),
|
|
17
|
+
status: b,
|
|
18
|
+
version: "2.0.0"
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
return a.request({
|
|
22
|
+
method: "wallet_getCallsStatus",
|
|
23
|
+
params: [t]
|
|
24
|
+
});
|
|
41
25
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
26
|
+
const { atomic: l = !1, chainId: r, receipts: n, version: d = "2.0.0", ...i } = await m(f.id), [p, g] = (() => {
|
|
27
|
+
const t = i.status;
|
|
28
|
+
return t >= 100 && t < 200 ? ["pending", t] : t >= 200 && t < 300 ? ["success", t] : t >= 300 && t < 700 ? ["failure", t] : t === "CONFIRMED" ? ["success", 200] : t === "PENDING" ? ["pending", 100] : [void 0, t];
|
|
29
|
+
})();
|
|
30
|
+
return {
|
|
31
|
+
...i,
|
|
32
|
+
atomic: l,
|
|
33
|
+
// @ts-expect-error: for backwards compatibility
|
|
34
|
+
chainId: r ? u(r) : void 0,
|
|
35
|
+
receipts: (n == null ? void 0 : n.map((t) => ({
|
|
36
|
+
...t,
|
|
37
|
+
blockNumber: c(t.blockNumber),
|
|
38
|
+
gasUsed: c(t.gasUsed),
|
|
39
|
+
status: N[t.status]
|
|
40
|
+
}))) ?? [],
|
|
41
|
+
statusCode: g,
|
|
42
|
+
status: p,
|
|
43
|
+
version: d
|
|
44
|
+
};
|
|
51
45
|
}
|
|
52
46
|
export {
|
|
53
|
-
|
|
54
|
-
y as hexToBytes,
|
|
55
|
-
T as numberToBytes,
|
|
56
|
-
l as stringToBytes,
|
|
57
|
-
F as toBytes
|
|
47
|
+
M as getCallsStatus
|
|
58
48
|
};
|
package/dist/index46.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 h=require("./index47.cjs"),j=require("./index48.cjs");function q(n){const{batch:s,chain:e,ccipRead:a,key:d="base",name:b="Base Client",type:f="base"}=n,o=n.experimental_blockTag??(typeof(e==null?void 0:e.experimental_preconfirmationTime)=="number"?"pending":void 0),g=(e==null?void 0:e.blockTime)??12e3,m=Math.min(Math.max(Math.floor(g/2),500),4e3),t=n.pollingInterval??m,p=n.cacheTime??t,x=n.account?h.parseAccount(n.account):void 0,{config:T,request:k,value:y}=n.transport({chain:e,pollingInterval:t}),v={...T,...y},c={account:x,batch:s,cacheTime:p,ccipRead:a,chain:e,key:d,name:b,pollingInterval:t,request:k,transport:v,type:f,uid:j.uid(),...o?{experimental_blockTag:o}:{}};function i(l){return _=>{const u=_(l);for(const M in c)delete u[M];const r={...l,...u};return Object.assign(r,{extend:i(r)})}}return Object.assign(c,{extend:i(c)})}exports.createClient=q;
|
package/dist/index46.js
CHANGED
|
@@ -1,19 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { parseAccount as I } from "./index47.js";
|
|
2
|
+
import { uid as M } from "./index48.js";
|
|
3
|
+
function O(e) {
|
|
4
|
+
const { batch: u, chain: n, ccipRead: a, key: d = "base", name: f = "Base Client", type: m = "base" } = e, c = e.experimental_blockTag ?? (typeof (n == null ? void 0 : n.experimental_preconfirmationTime) == "number" ? "pending" : void 0), b = (n == null ? void 0 : n.blockTime) ?? 12e3, p = Math.min(Math.max(Math.floor(b / 2), 500), 4e3), t = e.pollingInterval ?? p, g = e.cacheTime ?? t, x = e.account ? I(e.account) : void 0, { config: T, request: k, value: _ } = e.transport({
|
|
5
|
+
chain: n,
|
|
6
|
+
pollingInterval: t
|
|
7
|
+
}), v = { ...T, ..._ }, o = {
|
|
8
|
+
account: x,
|
|
9
|
+
batch: u,
|
|
10
|
+
cacheTime: g,
|
|
11
|
+
ccipRead: a,
|
|
12
|
+
chain: n,
|
|
13
|
+
key: d,
|
|
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) });
|
|
16
32
|
}
|
|
17
33
|
export {
|
|
18
|
-
|
|
34
|
+
O as createClient
|
|
19
35
|
};
|
package/dist/index47.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}exports.parseAccount=r;
|