@gardenfi/utils 2.5.3 → 3.0.0-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 +37 -38
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +5 -5
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +3 -41
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +26 -17
- package/dist/index102.cjs +2 -1
- package/dist/index102.js +24 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +9 -9
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +8 -13
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +9 -108
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +11 -8
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +13 -6
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +14 -7
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +4 -21
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +16 -20
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +6 -8
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +17 -30
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +13 -13
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +6 -7
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +7 -9
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +21 -16
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +7 -73
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +21 -35
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +16 -45
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +39 -13
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +21 -13
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +79 -8
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +11 -16
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +55 -62
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +13 -11
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +8 -13
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +19 -7
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +6 -10
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +33 -24
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +32 -14
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +1 -3
- package/dist/index130.js +8 -109
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +49 -50
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +18 -23
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +103 -114
- package/dist/index134.cjs +1 -20
- package/dist/index134.js +36 -294
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +8 -80
- package/dist/index136.cjs +1 -4
- package/dist/index136.js +71 -194
- package/dist/index137.cjs +2 -1
- package/dist/index137.js +3 -19
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +9 -25
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +13 -177
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +4 -12
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +12 -24
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +2 -3
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +32 -90
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +21 -37
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +5 -15
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +6 -2
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +5 -75
- package/dist/index148.cjs +9 -1
- package/dist/index148.js +34 -137
- package/dist/index149.cjs +1 -3
- package/dist/index149.js +3 -452
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +15 -61
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +20 -6
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +34 -68
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +8 -5
- package/dist/index154.cjs +4 -1
- package/dist/index154.js +194 -3
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +26 -13
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +157 -84
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +127 -13
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +27 -45
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +51 -34
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +18 -26
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +190 -6
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +4 -58
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +19 -12
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +3 -9
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +16 -20
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +11 -9
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +33 -14
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +3 -104
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +27 -4
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +8 -6
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +113 -14
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +23 -24
- package/dist/index171.cjs +1 -2
- package/dist/index171.js +27 -23
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +3 -9
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +6 -8
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +6 -10
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +32 -11
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +5 -14
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +37 -14
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +49 -7
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +31 -20
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +118 -104
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +8 -6
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +42 -21
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +51 -40
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +104 -17
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +3 -22
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +5 -80
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +3 -44
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +16 -10
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +5 -52
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +8 -3
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +103 -5
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +2 -2
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +6 -11
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +27 -13
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +34 -13
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +13 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +77 -150
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +2 -36
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +17 -31
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +170 -8
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +16 -67
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +10 -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 +1 -1
- package/dist/index209.js +25 -2
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +296 -13
- package/dist/index210.cjs +1 -2
- package/dist/index210.js +47 -3
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +9 -13
- package/dist/index212.cjs +2 -1
- package/dist/index212.js +41 -4
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +1 -1
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +6 -32
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +10 -21
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +19 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +8 -5
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +66 -5
- package/dist/index219.cjs +1 -9
- package/dist/index219.js +62 -32
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -464
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +189 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +24 -22
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +66 -23
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +35 -30
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +14 -6
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +12 -17
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +11 -27
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +12 -8
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +19 -7
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +105 -158
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +12 -35
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +6 -127
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +7 -28
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +96 -184
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +27 -4
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +17 -3
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +211 -17
- 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 +2 -1
- package/dist/index241.js +65 -27
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +13 -26
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +67 -41
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +653 -74
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +207 -2
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +173 -33
- 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 +169 -55
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +10 -8
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +111 -12
- package/dist/index31.cjs +1 -16
- package/dist/index31.js +29 -112
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +3 -39
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +2 -46
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +4 -26
- package/dist/index35.cjs +2 -1
- package/dist/index35.js +59 -6
- package/dist/index36.cjs +2 -1
- package/dist/index36.js +54 -13
- package/dist/index37.cjs +3 -1
- package/dist/index37.js +215 -15
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +23 -5
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +18 -13
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +4 -4
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +10 -10
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +19 -11
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +45 -11
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +13 -13
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +12 -33
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +22 -53
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +28 -16
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +47 -5
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +19 -8
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +10 -170
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +30 -102
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +36 -3
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +7 -21
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +29 -16
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +21 -9
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +7 -18
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +58 -117
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +44 -58
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +22 -22
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +37 -10
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +17 -20
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +6 -6
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +9 -10
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +12 -31
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +108 -15
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +23 -16
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +7 -7
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +21 -33
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +8 -24
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +29 -20
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +7 -58
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +16 -40
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +72 -36
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +33 -164
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +16 -111
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +64 -29
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +12 -2
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +15 -4
- package/dist/index78.cjs +3 -2
- package/dist/index78.js +88 -52
- package/dist/index79.cjs +1 -2
- package/dist/index79.js +24 -54
- package/dist/index80.cjs +1 -3
- package/dist/index80.js +29 -211
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +44 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +6 -12
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +151 -24
- package/dist/index84.cjs +20 -1
- package/dist/index84.js +326 -28
- package/dist/index85.cjs +3 -1
- package/dist/index85.js +451 -47
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +64 -19
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +37 -11
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +14 -39
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +2 -10
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -2
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +16 -7
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +9 -30
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +124 -35
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +5 -36
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +21 -9
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +43 -27
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +37 -21
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +6 -89
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +85 -47
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +13 -22
- 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/index36.js
CHANGED
|
@@ -1,16 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { BaseError as o } from "./index35.js";
|
|
2
|
+
class i extends o {
|
|
3
|
+
constructor({ blockNumber: e, chain: r, contract: n }) {
|
|
4
|
+
super(`Chain "${r.name}" does not support contract "${n.name}".`, {
|
|
5
|
+
metaMessages: [
|
|
6
|
+
"This could be due to any of the following:",
|
|
7
|
+
...e && n.blockCreated && n.blockCreated > e ? [
|
|
8
|
+
`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${e}).`
|
|
9
|
+
] : [
|
|
10
|
+
`- The chain does not have the contract "${n.name}" configured.`
|
|
11
|
+
]
|
|
12
|
+
],
|
|
13
|
+
name: "ChainDoesNotSupportContract"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
class s extends o {
|
|
18
|
+
constructor({ chain: e, currentChainId: r }) {
|
|
19
|
+
super(`The current chain of the wallet (id: ${r}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`, {
|
|
20
|
+
metaMessages: [
|
|
21
|
+
`Current Chain ID: ${r}`,
|
|
22
|
+
`Expected Chain ID: ${e.id} – ${e.name}`
|
|
23
|
+
],
|
|
24
|
+
name: "ChainMismatchError"
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
class h extends o {
|
|
29
|
+
constructor() {
|
|
30
|
+
super([
|
|
31
|
+
"No chain was provided to the request.",
|
|
32
|
+
"Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."
|
|
33
|
+
].join(`
|
|
34
|
+
`), {
|
|
35
|
+
name: "ChainNotFoundError"
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
class d extends o {
|
|
40
|
+
constructor() {
|
|
41
|
+
super("No chain was provided to the Client.", {
|
|
42
|
+
name: "ClientChainNotConfiguredError"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
class c extends o {
|
|
47
|
+
constructor({ chainId: e }) {
|
|
48
|
+
super(typeof e == "number" ? `Chain ID "${e}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
49
|
+
}
|
|
13
50
|
}
|
|
14
51
|
export {
|
|
15
|
-
|
|
52
|
+
i as ChainDoesNotSupportContract,
|
|
53
|
+
s as ChainMismatchError,
|
|
54
|
+
h as ChainNotFoundError,
|
|
55
|
+
d as ClientChainNotConfiguredError,
|
|
56
|
+
c as InvalidChainIdError
|
|
16
57
|
};
|
package/dist/index37.cjs
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("./index32.cjs"),C=require("./index143.cjs"),P=require("./index144.cjs"),v=require("./index139.cjs"),E=require("./index145.cjs"),$=require("./index72.cjs"),j=require("./index146.cjs"),h=require("./index147.cjs"),x=require("./index84.cjs"),m=require("./index35.cjs"),F=require("./index148.cjs"),w=require("./index78.cjs"),O=require("./index149.cjs");class q extends m.BaseError{constructor(e,{account:o,docsPath:c,chain:n,data:l,gas:a,gasPrice:u,maxFeePerGas:r,maxPriorityFeePerGas:t,nonce:i,to:s,value:d,stateOverride:f}){var p;const b=o?A.parseAccount(o):void 0;let y=w.prettyPrint({from:b==null?void 0:b.address,to:s,value:typeof d<"u"&&`${j.formatEther(d)} ${((p=n==null?void 0:n.nativeCurrency)==null?void 0:p.symbol)||"ETH"}`,data:l,gas:a,gasPrice:typeof u<"u"&&`${h.formatGwei(u)} gwei`,maxFeePerGas:typeof r<"u"&&`${h.formatGwei(r)} gwei`,maxPriorityFeePerGas:typeof t<"u"&&`${h.formatGwei(t)} gwei`,nonce:i});f&&(y+=`
|
|
2
|
+
${F.prettyStateOverride(f)}`),super(e.shortMessage,{cause:e,docsPath:c,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class M extends m.BaseError{constructor(e,{abi:o,args:c,contractAddress:n,docsPath:l,functionName:a,sender:u}){const r=$.getAbiItem({abi:o,args:c,name:a}),t=r?E.formatAbiItemWithArgs({abiItem:r,args:c,includeFunctionName:!1,includeName:!1}):void 0,i=r?v.formatAbiItem(r,{includeName:!0}):void 0,s=w.prettyPrint({address:n&&O.getContractAddress(n),function:i,args:t&&t!=="()"&&`${[...Array((a==null?void 0:a.length)??0).keys()].map(()=>" ").join("")}${t}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:l,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],s&&"Contract Call:",s].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=o,this.args=c,this.cause=e,this.contractAddress=n,this.functionName=a,this.sender=u}}class I extends m.BaseError{constructor({abi:e,data:o,functionName:c,message:n}){let l,a,u,r;if(o&&o!=="0x")try{a=P.decodeErrorResult({abi:e,data:o});const{abiItem:i,errorName:s,args:d}=a;if(s==="Error")r=d[0];else if(s==="Panic"){const[f]=d;r=C.panicReasons[f]}else{const f=i?v.formatAbiItem(i,{includeName:!0}):void 0,b=i&&d?E.formatAbiItemWithArgs({abiItem:i,args:d,includeFunctionName:!1,includeName:!1}):void 0;u=[f?`Error: ${f}`:"",b&&b!=="()"?` ${[...Array((s==null?void 0:s.length)??0).keys()].map(()=>" ").join("")}${b}`:""]}}catch(i){l=i}else n&&(r=n);let t;l instanceof x.AbiErrorSignatureNotFoundError&&(t=l.signature,u=[`Unable to decode signature "${t}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`]),super(r&&r!=="execution reverted"||t?[`The contract function "${c}" reverted with the following ${t?"signature":"reason"}:`,r||t].join(`
|
|
3
|
+
`):`The contract function "${c}" reverted.`,{cause:l,metaMessages:u,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.raw=o,this.reason=r,this.signature=t}}class R extends m.BaseError{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class T extends m.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class B extends m.BaseError{constructor({data:e,message:o}){super(o||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}exports.CallExecutionError=q;exports.ContractFunctionExecutionError=M;exports.ContractFunctionRevertedError=I;exports.ContractFunctionZeroDataError=R;exports.CounterfactualDeploymentFailedError=T;exports.RawContractError=B;
|
package/dist/index37.js
CHANGED
|
@@ -1,18 +1,218 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { parseAccount as $ } from "./index32.js";
|
|
2
|
+
import { panicReasons as A } from "./index143.js";
|
|
3
|
+
import { decodeErrorResult as C } from "./index144.js";
|
|
4
|
+
import { formatAbiItem as v } from "./index139.js";
|
|
5
|
+
import { formatAbiItemWithArgs as w } from "./index145.js";
|
|
6
|
+
import { getAbiItem as P } from "./index72.js";
|
|
7
|
+
import { formatEther as j } from "./index146.js";
|
|
8
|
+
import { formatGwei as p } from "./index147.js";
|
|
9
|
+
import { AbiErrorSignatureNotFoundError as x } from "./index84.js";
|
|
10
|
+
import { BaseError as b } from "./index35.js";
|
|
11
|
+
import { prettyStateOverride as O } from "./index148.js";
|
|
12
|
+
import { prettyPrint as E } from "./index78.js";
|
|
13
|
+
import { getContractAddress as F } from "./index149.js";
|
|
14
|
+
class H extends b {
|
|
15
|
+
constructor(e, { account: o, docsPath: c, chain: n, data: l, gas: a, gasPrice: u, maxFeePerGas: r, maxPriorityFeePerGas: t, nonce: i, to: s, value: d, stateOverride: f }) {
|
|
16
|
+
var y;
|
|
17
|
+
const m = o ? $(o) : void 0;
|
|
18
|
+
let g = E({
|
|
19
|
+
from: m == null ? void 0 : m.address,
|
|
20
|
+
to: s,
|
|
21
|
+
value: typeof d < "u" && `${j(d)} ${((y = n == null ? void 0 : n.nativeCurrency) == null ? void 0 : y.symbol) || "ETH"}`,
|
|
22
|
+
data: l,
|
|
23
|
+
gas: a,
|
|
24
|
+
gasPrice: typeof u < "u" && `${p(u)} gwei`,
|
|
25
|
+
maxFeePerGas: typeof r < "u" && `${p(r)} gwei`,
|
|
26
|
+
maxPriorityFeePerGas: typeof t < "u" && `${p(t)} gwei`,
|
|
27
|
+
nonce: i
|
|
28
|
+
});
|
|
29
|
+
f && (g += `
|
|
30
|
+
${O(f)}`), super(e.shortMessage, {
|
|
31
|
+
cause: e,
|
|
32
|
+
docsPath: c,
|
|
33
|
+
metaMessages: [
|
|
34
|
+
...e.metaMessages ? [...e.metaMessages, " "] : [],
|
|
35
|
+
"Raw Call Arguments:",
|
|
36
|
+
g
|
|
37
|
+
].filter(Boolean),
|
|
38
|
+
name: "CallExecutionError"
|
|
39
|
+
}), Object.defineProperty(this, "cause", {
|
|
40
|
+
enumerable: !0,
|
|
41
|
+
configurable: !0,
|
|
42
|
+
writable: !0,
|
|
43
|
+
value: void 0
|
|
44
|
+
}), this.cause = e;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
class U extends b {
|
|
48
|
+
constructor(e, { abi: o, args: c, contractAddress: n, docsPath: l, functionName: a, sender: u }) {
|
|
49
|
+
const r = P({ abi: o, args: c, name: a }), t = r ? w({
|
|
50
|
+
abiItem: r,
|
|
51
|
+
args: c,
|
|
52
|
+
includeFunctionName: !1,
|
|
53
|
+
includeName: !1
|
|
54
|
+
}) : void 0, i = r ? v(r, { includeName: !0 }) : void 0, s = E({
|
|
55
|
+
address: n && F(n),
|
|
56
|
+
function: i,
|
|
57
|
+
args: t && t !== "()" && `${[...Array((a == null ? void 0 : a.length) ?? 0).keys()].map(() => " ").join("")}${t}`,
|
|
58
|
+
sender: u
|
|
59
|
+
});
|
|
60
|
+
super(e.shortMessage || `An unknown error occurred while executing the contract function "${a}".`, {
|
|
61
|
+
cause: e,
|
|
62
|
+
docsPath: l,
|
|
63
|
+
metaMessages: [
|
|
64
|
+
...e.metaMessages ? [...e.metaMessages, " "] : [],
|
|
65
|
+
s && "Contract Call:",
|
|
66
|
+
s
|
|
67
|
+
].filter(Boolean),
|
|
68
|
+
name: "ContractFunctionExecutionError"
|
|
69
|
+
}), Object.defineProperty(this, "abi", {
|
|
70
|
+
enumerable: !0,
|
|
71
|
+
configurable: !0,
|
|
72
|
+
writable: !0,
|
|
73
|
+
value: void 0
|
|
74
|
+
}), Object.defineProperty(this, "args", {
|
|
75
|
+
enumerable: !0,
|
|
76
|
+
configurable: !0,
|
|
77
|
+
writable: !0,
|
|
78
|
+
value: void 0
|
|
79
|
+
}), Object.defineProperty(this, "cause", {
|
|
80
|
+
enumerable: !0,
|
|
81
|
+
configurable: !0,
|
|
82
|
+
writable: !0,
|
|
83
|
+
value: void 0
|
|
84
|
+
}), Object.defineProperty(this, "contractAddress", {
|
|
85
|
+
enumerable: !0,
|
|
86
|
+
configurable: !0,
|
|
87
|
+
writable: !0,
|
|
88
|
+
value: void 0
|
|
89
|
+
}), Object.defineProperty(this, "formattedArgs", {
|
|
90
|
+
enumerable: !0,
|
|
91
|
+
configurable: !0,
|
|
92
|
+
writable: !0,
|
|
93
|
+
value: void 0
|
|
94
|
+
}), Object.defineProperty(this, "functionName", {
|
|
95
|
+
enumerable: !0,
|
|
96
|
+
configurable: !0,
|
|
97
|
+
writable: !0,
|
|
98
|
+
value: void 0
|
|
99
|
+
}), Object.defineProperty(this, "sender", {
|
|
100
|
+
enumerable: !0,
|
|
101
|
+
configurable: !0,
|
|
102
|
+
writable: !0,
|
|
103
|
+
value: void 0
|
|
104
|
+
}), this.abi = o, this.args = c, this.cause = e, this.contractAddress = n, this.functionName = a, this.sender = u;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
class Y extends b {
|
|
108
|
+
constructor({ abi: e, data: o, functionName: c, message: n }) {
|
|
109
|
+
let l, a, u, r;
|
|
110
|
+
if (o && o !== "0x")
|
|
111
|
+
try {
|
|
112
|
+
a = C({ abi: e, data: o });
|
|
113
|
+
const { abiItem: i, errorName: s, args: d } = a;
|
|
114
|
+
if (s === "Error")
|
|
115
|
+
r = d[0];
|
|
116
|
+
else if (s === "Panic") {
|
|
117
|
+
const [f] = d;
|
|
118
|
+
r = A[f];
|
|
119
|
+
} else {
|
|
120
|
+
const f = i ? v(i, { includeName: !0 }) : void 0, m = i && d ? w({
|
|
121
|
+
abiItem: i,
|
|
122
|
+
args: d,
|
|
123
|
+
includeFunctionName: !1,
|
|
124
|
+
includeName: !1
|
|
125
|
+
}) : void 0;
|
|
126
|
+
u = [
|
|
127
|
+
f ? `Error: ${f}` : "",
|
|
128
|
+
m && m !== "()" ? ` ${[...Array((s == null ? void 0 : s.length) ?? 0).keys()].map(() => " ").join("")}${m}` : ""
|
|
129
|
+
];
|
|
130
|
+
}
|
|
131
|
+
} catch (i) {
|
|
132
|
+
l = i;
|
|
133
|
+
}
|
|
134
|
+
else n && (r = n);
|
|
135
|
+
let t;
|
|
136
|
+
l instanceof x && (t = l.signature, u = [
|
|
137
|
+
`Unable to decode signature "${t}" as it was not found on the provided ABI.`,
|
|
138
|
+
"Make sure you are using the correct ABI and that the error exists on it.",
|
|
139
|
+
`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`
|
|
140
|
+
]), super(r && r !== "execution reverted" || t ? [
|
|
141
|
+
`The contract function "${c}" reverted with the following ${t ? "signature" : "reason"}:`,
|
|
142
|
+
r || t
|
|
143
|
+
].join(`
|
|
144
|
+
`) : `The contract function "${c}" reverted.`, {
|
|
145
|
+
cause: l,
|
|
146
|
+
metaMessages: u,
|
|
147
|
+
name: "ContractFunctionRevertedError"
|
|
148
|
+
}), Object.defineProperty(this, "data", {
|
|
149
|
+
enumerable: !0,
|
|
150
|
+
configurable: !0,
|
|
151
|
+
writable: !0,
|
|
152
|
+
value: void 0
|
|
153
|
+
}), Object.defineProperty(this, "raw", {
|
|
154
|
+
enumerable: !0,
|
|
155
|
+
configurable: !0,
|
|
156
|
+
writable: !0,
|
|
157
|
+
value: void 0
|
|
158
|
+
}), Object.defineProperty(this, "reason", {
|
|
159
|
+
enumerable: !0,
|
|
160
|
+
configurable: !0,
|
|
161
|
+
writable: !0,
|
|
162
|
+
value: void 0
|
|
163
|
+
}), Object.defineProperty(this, "signature", {
|
|
164
|
+
enumerable: !0,
|
|
165
|
+
configurable: !0,
|
|
166
|
+
writable: !0,
|
|
167
|
+
value: void 0
|
|
168
|
+
}), this.data = a, this.raw = o, this.reason = r, this.signature = t;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
class J extends b {
|
|
172
|
+
constructor({ functionName: e }) {
|
|
173
|
+
super(`The contract function "${e}" returned no data ("0x").`, {
|
|
174
|
+
metaMessages: [
|
|
175
|
+
"This could be due to any of the following:",
|
|
176
|
+
` - The contract does not have the function "${e}",`,
|
|
177
|
+
" - The parameters passed to the contract function may be invalid, or",
|
|
178
|
+
" - The address is not a contract."
|
|
179
|
+
],
|
|
180
|
+
name: "ContractFunctionZeroDataError"
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
class K extends b {
|
|
185
|
+
constructor({ factory: e }) {
|
|
186
|
+
super(`Deployment for counterfactual contract call failed${e ? ` for factory "${e}".` : ""}`, {
|
|
187
|
+
metaMessages: [
|
|
188
|
+
"Please ensure:",
|
|
189
|
+
"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).",
|
|
190
|
+
"- The `factoryData` is a valid encoded function call for contract deployment function on the factory."
|
|
191
|
+
],
|
|
192
|
+
name: "CounterfactualDeploymentFailedError"
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
class L extends b {
|
|
197
|
+
constructor({ data: e, message: o }) {
|
|
198
|
+
super(o || "", { name: "RawContractError" }), Object.defineProperty(this, "code", {
|
|
199
|
+
enumerable: !0,
|
|
200
|
+
configurable: !0,
|
|
201
|
+
writable: !0,
|
|
202
|
+
value: 3
|
|
203
|
+
}), Object.defineProperty(this, "data", {
|
|
204
|
+
enumerable: !0,
|
|
205
|
+
configurable: !0,
|
|
206
|
+
writable: !0,
|
|
207
|
+
value: void 0
|
|
208
|
+
}), this.data = e;
|
|
209
|
+
}
|
|
15
210
|
}
|
|
16
211
|
export {
|
|
17
|
-
|
|
212
|
+
H as CallExecutionError,
|
|
213
|
+
U as ContractFunctionExecutionError,
|
|
214
|
+
Y as ContractFunctionRevertedError,
|
|
215
|
+
J as ContractFunctionZeroDataError,
|
|
216
|
+
K as CounterfactualDeploymentFailedError,
|
|
217
|
+
L as RawContractError
|
|
18
218
|
};
|
package/dist/index38.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 o=require("./index84.cjs"),a=require("./index156.cjs"),b=require("./index72.cjs"),i="/docs/contract/decodeFunctionResult";function f(c){const{abi:r,args:d,functionName:n,data:s}=c;let e=r[0];if(n){const u=b.getAbiItem({abi:r,args:d,name:n});if(!u)throw new o.AbiFunctionNotFoundError(n,{docsPath:i});e=u}if(e.type!=="function")throw new o.AbiFunctionNotFoundError(void 0,{docsPath:i});if(!e.outputs)throw new o.AbiFunctionOutputsNotFoundError(e.name,{docsPath:i});const t=a.decodeAbiParameters(e.outputs,s);if(t&&t.length>1)return t;if(t&&t.length===1)return t[0]}exports.decodeFunctionResult=f;
|
package/dist/index38.js
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { AbiFunctionNotFoundError as u, AbiFunctionOutputsNotFoundError as s } from "./index84.js";
|
|
2
|
+
import { decodeAbiParameters as a } from "./index156.js";
|
|
3
|
+
import { getAbiItem as m } from "./index72.js";
|
|
4
|
+
const e = "/docs/contract/decodeFunctionResult";
|
|
5
|
+
function l(c) {
|
|
6
|
+
const { abi: r, args: d, functionName: o, data: f } = c;
|
|
7
|
+
let n = r[0];
|
|
8
|
+
if (o) {
|
|
9
|
+
const i = m({ abi: r, args: d, name: o });
|
|
10
|
+
if (!i)
|
|
11
|
+
throw new u(o, { docsPath: e });
|
|
12
|
+
n = i;
|
|
13
|
+
}
|
|
14
|
+
if (n.type !== "function")
|
|
15
|
+
throw new u(void 0, { docsPath: e });
|
|
16
|
+
if (!n.outputs)
|
|
17
|
+
throw new s(n.name, { docsPath: e });
|
|
18
|
+
const t = a(n.outputs, f);
|
|
19
|
+
if (t && t.length > 1)
|
|
20
|
+
return t;
|
|
21
|
+
if (t && t.length === 1)
|
|
22
|
+
return t[0];
|
|
5
23
|
}
|
|
6
24
|
export {
|
|
7
|
-
|
|
25
|
+
l as decodeFunctionResult
|
|
8
26
|
};
|
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 e=require("./index84.cjs"),u=require("./index111.cjs"),d=require("./index160.cjs"),r="/docs/contract/encodeDeployData";function b(i){const{abi:a,args:o,bytecode:n}=i;if(!o||o.length===0)return n;const t=a.find(c=>"type"in c&&c.type==="constructor");if(!t)throw new e.AbiConstructorNotFoundError({docsPath:r});if(!("inputs"in t))throw new e.AbiConstructorParamsNotFoundError({docsPath:r});if(!t.inputs||t.inputs.length===0)throw new e.AbiConstructorParamsNotFoundError({docsPath:r});const s=d.encodeAbiParameters(t.inputs,o);return u.concatHex([n,s])}exports.encodeDeployData=b;
|
package/dist/index39.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { AbiConstructorNotFoundError as p, AbiConstructorParamsNotFoundError as i } from "./index84.js";
|
|
2
|
+
import { concatHex as u } from "./index111.js";
|
|
3
|
+
import { encodeAbiParameters as d } from "./index160.js";
|
|
4
|
+
const r = "/docs/contract/encodeDeployData";
|
|
5
|
+
function w(c) {
|
|
6
|
+
const { abi: s, args: o, bytecode: n } = c;
|
|
7
|
+
if (!o || o.length === 0)
|
|
8
|
+
return n;
|
|
9
|
+
const t = s.find((e) => "type" in e && e.type === "constructor");
|
|
10
|
+
if (!t)
|
|
11
|
+
throw new p({ docsPath: r });
|
|
12
|
+
if (!("inputs" in t))
|
|
13
|
+
throw new i({ docsPath: r });
|
|
14
|
+
if (!t.inputs || t.inputs.length === 0)
|
|
15
|
+
throw new i({ docsPath: r });
|
|
16
|
+
const a = d(t.inputs, o);
|
|
17
|
+
return u([n, a]);
|
|
13
18
|
}
|
|
14
19
|
export {
|
|
15
|
-
|
|
20
|
+
w as encodeDeployData
|
|
16
21
|
};
|
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 r=require("./index111.cjs"),s=require("./index160.cjs"),d=require("./index170.cjs");function b(n){const{args:c}=n,{abi:o,functionName:i}=(()=>{var e;return n.abi.length===1&&((e=n.functionName)!=null&&e.startsWith("0x"))?n:d.prepareEncodeFunctionData(n)})(),t=o[0],u=i,a="inputs"in t&&t.inputs?s.encodeAbiParameters(t.inputs,c??[]):void 0;return r.concatHex([u,a??"0x"])}exports.encodeFunctionData=b;
|
package/dist/index40.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { concatHex as a } from "./index111.js";
|
|
2
|
+
import { encodeAbiParameters as s } from "./index160.js";
|
|
3
|
+
import { prepareEncodeFunctionData as f } from "./index170.js";
|
|
4
|
+
function b(n) {
|
|
5
|
+
const { args: i } = n, { abi: c, functionName: e } = (() => {
|
|
6
|
+
var o;
|
|
7
|
+
return n.abi.length === 1 && ((o = n.functionName) != null && o.startsWith("0x")) ? n : f(n);
|
|
8
|
+
})(), t = c[0], u = e, r = "inputs" in t && t.inputs ? s(t.inputs, i ?? []) : void 0;
|
|
9
|
+
return a([u, r ?? "0x"]);
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
|
-
|
|
12
|
+
b as encodeFunctionData
|
|
13
13
|
};
|
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 n=require("./index36.cjs");function a({blockNumber:r,chain:t,contract:e}){var c;const o=(c=t==null?void 0:t.contracts)==null?void 0:c[e];if(!o)throw new n.ChainDoesNotSupportContract({chain:t,contract:{name:e}});if(r&&o.blockCreated&&o.blockCreated>r)throw new n.ChainDoesNotSupportContract({blockNumber:r,chain:t,contract:{name:e,blockCreated:o.blockCreated}});return o.address}exports.getChainContractAddress=a;
|
package/dist/index41.js
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
name: "InvalidAddressError"
|
|
1
|
+
import { ChainDoesNotSupportContract as d } from "./index36.js";
|
|
2
|
+
function n({ blockNumber: r, chain: t, contract: e }) {
|
|
3
|
+
var c;
|
|
4
|
+
const o = (c = t == null ? void 0 : t.contracts) == null ? void 0 : c[e];
|
|
5
|
+
if (!o)
|
|
6
|
+
throw new d({
|
|
7
|
+
chain: t,
|
|
8
|
+
contract: { name: e }
|
|
10
9
|
});
|
|
11
|
-
|
|
10
|
+
if (r && o.blockCreated && o.blockCreated > r)
|
|
11
|
+
throw new d({
|
|
12
|
+
blockNumber: r,
|
|
13
|
+
chain: t,
|
|
14
|
+
contract: {
|
|
15
|
+
name: e,
|
|
16
|
+
blockCreated: o.blockCreated
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
return o.address;
|
|
12
20
|
}
|
|
13
21
|
export {
|
|
14
|
-
|
|
22
|
+
n as getChainContractAddress
|
|
15
23
|
};
|
package/dist/index42.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 y=require("./index151.cjs"),f=require("./index166.cjs"),x=require("./index65.cjs"),z=Array.from({length:256},(e,n)=>n.toString(16).padStart(2,"0"));function H(e,n={}){return typeof e=="number"||typeof e=="bigint"?d(e,n):typeof e=="string"?m(e,n):typeof e=="boolean"?b(e,n):u(e,n)}function b(e,n={}){const t=`0x${Number(e)}`;return typeof n.size=="number"?(x.assertSize(t,{size:n.size}),f.pad(t,{size:n.size})):t}function u(e,n={}){let t="";for(let i=0;i<e.length;i++)t+=z[e[i]];const r=`0x${t}`;return typeof n.size=="number"?(x.assertSize(r,{size:n.size}),f.pad(r,{dir:"right",size:n.size})):r}function d(e,n={}){const{signed:t,size:r}=n,i=BigInt(e);let o;r?t?o=(1n<<BigInt(r)*8n-1n)-1n:o=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(o=BigInt(Number.MAX_SAFE_INTEGER));const c=typeof o=="bigint"&&t?-o-1n:0;if(o&&i>o||i<c){const s=typeof e=="bigint"?"n":"";throw new y.IntegerOutOfRangeError({max:o?`${o}${s}`:void 0,min:`${c}${s}`,signed:t,size:r,value:`${e}${s}`})}const g=`0x${(t&&i<0?(1n<<BigInt(r*8))+BigInt(i):i).toString(16)}`;return r?f.pad(g,{size:r}):g}const T=new TextEncoder;function m(e,n={}){const t=T.encode(e);return u(t,n)}exports.boolToHex=b;exports.bytesToHex=u;exports.numberToHex=d;exports.stringToHex=m;exports.toHex=H;
|
package/dist/index42.js
CHANGED
|
@@ -1,14 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { IntegerOutOfRangeError as x } from "./index151.js";
|
|
2
|
+
import { pad as s } from "./index166.js";
|
|
3
|
+
import { assertSize as c } from "./index65.js";
|
|
4
|
+
const b = /* @__PURE__ */ Array.from({ length: 256 }, (n, e) => e.toString(16).padStart(2, "0"));
|
|
5
|
+
function B(n, e = {}) {
|
|
6
|
+
return typeof n == "number" || typeof n == "bigint" ? y(n, e) : typeof n == "string" ? $(n, e) : typeof n == "boolean" ? z(n, e) : m(n, e);
|
|
7
|
+
}
|
|
8
|
+
function z(n, e = {}) {
|
|
9
|
+
const t = `0x${Number(n)}`;
|
|
10
|
+
return typeof e.size == "number" ? (c(t, { size: e.size }), s(t, { size: e.size })) : t;
|
|
11
|
+
}
|
|
12
|
+
function m(n, e = {}) {
|
|
13
|
+
let t = "";
|
|
14
|
+
for (let i = 0; i < n.length; i++)
|
|
15
|
+
t += b[n[i]];
|
|
16
|
+
const r = `0x${t}`;
|
|
17
|
+
return typeof e.size == "number" ? (c(r, { size: e.size }), s(r, { dir: "right", size: e.size })) : r;
|
|
18
|
+
}
|
|
19
|
+
function y(n, e = {}) {
|
|
20
|
+
const { signed: t, size: r } = e, i = BigInt(n);
|
|
21
|
+
let o;
|
|
22
|
+
r ? t ? o = (1n << BigInt(r) * 8n - 1n) - 1n : o = 2n ** (BigInt(r) * 8n) - 1n : typeof n == "number" && (o = BigInt(Number.MAX_SAFE_INTEGER));
|
|
23
|
+
const g = typeof o == "bigint" && t ? -o - 1n : 0;
|
|
24
|
+
if (o && i > o || i < g) {
|
|
25
|
+
const f = typeof n == "bigint" ? "n" : "";
|
|
26
|
+
throw new x({
|
|
27
|
+
max: o ? `${o}${f}` : void 0,
|
|
28
|
+
min: `${g}${f}`,
|
|
29
|
+
signed: t,
|
|
30
|
+
size: r,
|
|
31
|
+
value: `${n}${f}`
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
const u = `0x${(t && i < 0 ? (1n << BigInt(r * 8)) + BigInt(i) : i).toString(16)}`;
|
|
35
|
+
return r ? s(u, { size: r }) : u;
|
|
36
|
+
}
|
|
37
|
+
const d = /* @__PURE__ */ new TextEncoder();
|
|
38
|
+
function $(n, e = {}) {
|
|
39
|
+
const t = d.encode(n);
|
|
40
|
+
return m(t, e);
|
|
10
41
|
}
|
|
11
42
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
43
|
+
z as boolToHex,
|
|
44
|
+
m as bytesToHex,
|
|
45
|
+
y as numberToHex,
|
|
46
|
+
$ as stringToHex,
|
|
47
|
+
B as toHex
|
|
14
48
|
};
|
package/dist/index43.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index37.cjs"),u=require("./index154.cjs"),i=require("./index209.cjs");function l(r,{docsPath:t,...e}){const n=(()=>{const o=i.getNodeError(r,e);return o instanceof u.UnknownNodeError?r:o})();return new c.CallExecutionError(n,{docsPath:t,...e})}exports.getCallError=l;
|
package/dist/index43.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { CallExecutionError as c } from "./index37.js";
|
|
2
|
+
import { UnknownNodeError as i } from "./index154.js";
|
|
3
|
+
import { getNodeError as u } from "./index209.js";
|
|
4
|
+
function a(r, { docsPath: t, ...o }) {
|
|
5
|
+
const e = (() => {
|
|
6
|
+
const n = u(r, o);
|
|
7
|
+
return n instanceof i ? r : n;
|
|
8
|
+
})();
|
|
9
|
+
return new c(e, {
|
|
10
|
+
docsPath: t,
|
|
11
|
+
...o
|
|
12
|
+
});
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
a as getCallError
|
|
16
16
|
};
|
package/dist/index44.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 y(c,{format:n}){if(!n)return{};const r={};function i(e){const s=Object.keys(e);for(const t of s)t in c&&(r[t]=c[t]),e[t]&&typeof e[t]=="object"&&!Array.isArray(e[t])&&i(e[t])}const o=n(c||{});return i(o),r}exports.extract=y;
|