@gardenfi/utils 2.5.2 → 2.5.3-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- 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 +8 -23
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +11 -108
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +18 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +27 -50
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +21 -16
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +51 -10
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +11 -5
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +161 -14
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +21 -3
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +127 -26
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +16 -20
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +38 -4
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +6 -6
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +27 -88
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +54 -124
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +45 -7
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +189 -19
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +4 -18
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +62 -38
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +3 -22
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +20 -11
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +16 -6
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +23 -106
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +12 -3
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +19 -4
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +35 -9
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +3 -2
- package/dist/index126.cjs +1 -2
- package/dist/index126.js +19 -3
- package/dist/index127.cjs +1 -20
- package/dist/index127.js +27 -326
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +35 -12
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +8 -4
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +1 -1
- package/dist/index130.js +11 -2
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +24 -6
- package/dist/index132.cjs +1 -3
- package/dist/index132.js +27 -214
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +64 -30
- package/dist/index134.cjs +1 -1
- package/dist/index134.js +9 -21
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +23 -5
- package/dist/index136.cjs +1 -1
- package/dist/index136.js +24 -73
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +24 -5
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +3 -5
- package/dist/index139.cjs +1 -9
- package/dist/index139.js +14 -35
- package/dist/index140.cjs +1 -3
- package/dist/index140.js +93 -100
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +81 -3
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +5 -23
- package/dist/index143.cjs +1 -3
- package/dist/index143.js +6 -451
- package/dist/index144.cjs +1 -2
- package/dist/index144.js +26 -53
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +26 -26
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +13 -33
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +42 -35
- package/dist/index148.cjs +1 -4
- package/dist/index148.js +19 -194
- package/dist/index149.cjs +1 -1
- package/dist/index149.js +77 -7
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +2 -13
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +32 -13
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +106 -22
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +166 -8
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +46 -52
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +31 -44
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +8 -8
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +6 -7
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +6 -16
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +11 -18
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +18 -26
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +10 -21
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +13 -51
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +32 -11
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +5 -162
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +7 -21
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +8 -127
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +18 -36
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +31 -6
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +3 -27
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +16 -190
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +113 -14
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +11 -4
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +19 -62
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +23 -3
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -20
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +5 -16
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +8 -23
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +104 -11
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +3 -35
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +19 -3
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +171 -18
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +118 -104
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +16 -26
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +30 -36
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +2 -11
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +13 -25
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +11 -27
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +45 -63
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +11 -9
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +7 -33
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +89 -24
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +46 -24
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +37 -3
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +17 -14
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +5 -102
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +9 -80
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +13 -5
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +8 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +8 -27
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +35 -39
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +16 -13
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +14 -42
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +13 -5
- package/dist/index201.cjs +2 -1
- package/dist/index201.js +24 -11
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +6 -19
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +24 -77
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +19 -2
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +15 -37
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +5 -111
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +13 -49
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +9 -31
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +16 -8
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +283 -13
- package/dist/index210.cjs +2 -1
- package/dist/index210.js +41 -6
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +2 -7
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +5 -11
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +9 -9
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +18 -12
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +8 -32
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +67 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +65 -7
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +184 -6
- package/dist/index219.cjs +1 -1
- package/dist/index219.js +26 -18
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -464
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +74 -29
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +40 -3
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +16 -17
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +13 -10
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +11 -20
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +11 -22
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +103 -5
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +6 -5
- package/dist/index228.cjs +1 -1
- package/dist/index228.js +244 -8
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +6 -104
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +25 -34
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +7 -3
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +24 -16
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +17 -169
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +145 -16
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +24 -10
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +45 -15
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +9 -22
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +42 -30
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +79 -2
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +2 -14
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +8 -13
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +10 -11
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +18 -46
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +68 -11
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +788 -7
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +148 -9
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +199 -12
- package/dist/index246.cjs +2 -1
- package/dist/index246.js +65 -13
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +14 -9
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +4 -24
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +2 -13
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +12 -57
- package/dist/index26.cjs +1 -16
- package/dist/index26.js +57 -113
- package/dist/index27.cjs +16 -1
- package/dist/index27.js +112 -30
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +16 -17
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +7 -11
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +10 -8
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +30 -25
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +28 -6
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +16 -7
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +32 -30
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +40 -25
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +151 -16
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +30 -28
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +54 -41
- package/dist/index38.cjs +2 -1
- package/dist/index38.js +59 -151
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +12 -34
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +4 -4
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +37 -57
- package/dist/index41.cjs +1 -2
- package/dist/index41.js +15 -59
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -13
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +19 -36
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -16
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +44 -7
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +31 -19
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +4 -2
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +8 -44
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +67 -31
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +9 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +28 -9
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +71 -68
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +19 -9
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +48 -26
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +7 -71
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +16 -19
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +10 -110
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +5 -60
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +13 -23
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +1 -1
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +3 -40
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +25 -36
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +108 -57
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +4 -166
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +6 -40
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +87 -8
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +6 -36
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +125 -9
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +7 -50
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +19 -87
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +16 -40
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +39 -7
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +21 -6
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +11 -17
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +6 -8
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +106 -13
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +3 -8
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +9 -10
- package/dist/index78.cjs +2 -1
- package/dist/index78.js +3 -47
- package/dist/index79.cjs +20 -1
- package/dist/index79.js +326 -13
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +13 -16
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +4 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +2 -7
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +7 -35
- package/dist/index84.cjs +3 -1
- package/dist/index84.js +215 -9
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +32 -9
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +20 -25
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +5 -10
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +73 -14
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +5 -117
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -2
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +5 -81
- package/dist/index91.cjs +9 -1
- package/dist/index91.js +32 -174
- package/dist/index92.cjs +3 -1
- package/dist/index92.js +95 -6
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +3 -14
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +23 -13
- package/dist/index95.cjs +3 -1
- package/dist/index95.js +451 -103
- package/dist/index96.cjs +2 -1
- package/dist/index96.js +53 -74
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +20 -89
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +34 -137
- package/dist/index99.cjs +4 -1
- package/dist/index99.js +193 -68
- package/dist/src/index.d.ts +0 -1
- package/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 +2 -2
- package/dist/index250.cjs +0 -1
- package/dist/index250.js +0 -27
- package/dist/index251.cjs +0 -1
- package/dist/index251.js +0 -16
- package/dist/index252.cjs +0 -1
- package/dist/index252.js +0 -18
- package/dist/index253.cjs +0 -2
- package/dist/index253.js +0 -27
- package/dist/index254.cjs +0 -1
- package/dist/index254.js +0 -55
- package/dist/index255.cjs +0 -1
- package/dist/index255.js +0 -28
- package/dist/index256.cjs +0 -1
- package/dist/index256.js +0 -16
- package/dist/index257.cjs +0 -1
- package/dist/index257.js +0 -18
- package/dist/index258.cjs +0 -1
- package/dist/index258.js +0 -8
- package/dist/index259.cjs +0 -1
- package/dist/index259.js +0 -16
- package/dist/index260.cjs +0 -1
- package/dist/index260.js +0 -13
- package/dist/index261.cjs +0 -1
- package/dist/index261.js +0 -19
- package/dist/index262.cjs +0 -2
- package/dist/index262.js +0 -44
- package/dist/index263.cjs +0 -1
- package/dist/index263.js +0 -4
- package/dist/index264.cjs +0 -1
- package/dist/index264.js +0 -8
- package/dist/index265.cjs +0 -1
- package/dist/index265.js +0 -13
- package/dist/index266.cjs +0 -1
- package/dist/index266.js +0 -22
- package/dist/index267.cjs +0 -1
- package/dist/index267.js +0 -11
- package/dist/index268.cjs +0 -1
- package/dist/index268.js +0 -69
- package/dist/index269.cjs +0 -1
- package/dist/index269.js +0 -68
- package/dist/index270.cjs +0 -1
- package/dist/index270.js +0 -189
- package/dist/index271.cjs +0 -1
- package/dist/index271.js +0 -25
- package/dist/index272.cjs +0 -1
- package/dist/index272.js +0 -45
- package/dist/index273.cjs +0 -1
- package/dist/index273.js +0 -79
- package/dist/index274.cjs +0 -1
- package/dist/index274.js +0 -43
- package/dist/index275.cjs +0 -1
- package/dist/index275.js +0 -19
- package/dist/index276.cjs +0 -1
- package/dist/index276.js +0 -16
- package/dist/index277.cjs +0 -1
- package/dist/index277.js +0 -15
- package/dist/index278.cjs +0 -2
- package/dist/index278.js +0 -21
- package/dist/index279.cjs +0 -1
- package/dist/index279.js +0 -17
- package/dist/index280.cjs +0 -1
- package/dist/index280.js +0 -14
- package/dist/index281.cjs +0 -1
- package/dist/index281.js +0 -106
- package/dist/index282.cjs +0 -1
- package/dist/index282.js +0 -9
- package/dist/index283.cjs +0 -1
- package/dist/index283.js +0 -227
- package/dist/index284.cjs +0 -1
- package/dist/index284.js +0 -9
- package/dist/index285.cjs +0 -1
- package/dist/index285.js +0 -9
- package/dist/index286.cjs +0 -1
- package/dist/index286.js +0 -29
- package/dist/index287.cjs +0 -1
- package/dist/index287.js +0 -22
- package/dist/index288.cjs +0 -1
- package/dist/index288.js +0 -149
- package/dist/index289.cjs +0 -1
- package/dist/index289.js +0 -6
- package/dist/index290.cjs +0 -1
- package/dist/index290.js +0 -143
- package/dist/index291.cjs +0 -1
- package/dist/index291.js +0 -158
- package/dist/index292.cjs +0 -1
- package/dist/index292.js +0 -12
- package/dist/index293.cjs +0 -1
- package/dist/index293.js +0 -116
- package/dist/index294.cjs +0 -2
- package/dist/index294.js +0 -137
- package/dist/index295.cjs +0 -1
- package/dist/index295.js +0 -45
- package/dist/index296.cjs +0 -1
- package/dist/index296.js +0 -81
- package/dist/index297.cjs +0 -1
- package/dist/index297.js +0 -4
- 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 -71
- package/dist/index301.cjs +0 -1
- package/dist/index301.js +0 -701
- package/dist/index302.cjs +0 -1
- package/dist/index302.js +0 -142
- package/dist/index303.cjs +0 -1
- package/dist/index303.js +0 -204
- package/dist/index304.cjs +0 -2
- package/dist/index304.js +0 -69
- package/dist/index305.cjs +0 -1
- package/dist/index305.js +0 -7
- package/dist/index306.cjs +0 -1
- package/dist/index306.js +0 -43
- package/dist/index307.cjs +0 -1
- package/dist/index307.js +0 -10
- package/dist/index308.cjs +0 -1
- package/dist/index308.js +0 -65
- package/dist/index309.cjs +0 -1
- package/dist/index309.js +0 -80
- package/dist/index310.cjs +0 -1
- package/dist/index310.js +0 -6
- package/dist/index311.cjs +0 -1
- package/dist/index311.js +0 -197
- 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/index99.js
CHANGED
|
@@ -1,72 +1,197 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const r = h([
|
|
11
|
-
"watchPendingTransactions",
|
|
12
|
-
e.uid,
|
|
13
|
-
l,
|
|
14
|
-
p
|
|
15
|
-
]);
|
|
16
|
-
return b(r, { onTransactions: f, onError: s }, (t) => {
|
|
17
|
-
let n;
|
|
18
|
-
const a = d(async () => {
|
|
19
|
-
var o;
|
|
20
|
-
try {
|
|
21
|
-
if (!n)
|
|
22
|
-
try {
|
|
23
|
-
n = await u(e, P, "createPendingTransactionFilter")({});
|
|
24
|
-
return;
|
|
25
|
-
} catch (c) {
|
|
26
|
-
throw a(), c;
|
|
27
|
-
}
|
|
28
|
-
const i = await u(e, m, "getFilterChanges")({ filter: n });
|
|
29
|
-
if (i.length === 0)
|
|
30
|
-
return;
|
|
31
|
-
if (l)
|
|
32
|
-
t.onTransactions(i);
|
|
33
|
-
else
|
|
34
|
-
for (const c of i)
|
|
35
|
-
t.onTransactions([c]);
|
|
36
|
-
} catch (i) {
|
|
37
|
-
(o = t.onError) == null || o.call(t, i);
|
|
38
|
-
}
|
|
39
|
-
}, {
|
|
40
|
-
emitOnBegin: !0,
|
|
41
|
-
interval: p
|
|
42
|
-
});
|
|
43
|
-
return async () => {
|
|
44
|
-
n && await u(e, w, "uninstallFilter")({ filter: n }), a();
|
|
45
|
-
};
|
|
1
|
+
import { formatGwei as a } from "./index90.js";
|
|
2
|
+
import { BaseError as t } from "./index38.js";
|
|
3
|
+
class i extends t {
|
|
4
|
+
constructor({ cause: r, message: e } = {}) {
|
|
5
|
+
var s;
|
|
6
|
+
const n = (s = e == null ? void 0 : e.replace("execution reverted: ", "")) == null ? void 0 : s.replace("execution reverted", "");
|
|
7
|
+
super(`Execution reverted ${n ? `with reason: ${n}` : "for an unknown reason"}.`, {
|
|
8
|
+
cause: r,
|
|
9
|
+
name: "ExecutionRevertedError"
|
|
46
10
|
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(i, "code", {
|
|
14
|
+
enumerable: !0,
|
|
15
|
+
configurable: !0,
|
|
16
|
+
writable: !0,
|
|
17
|
+
value: 3
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(i, "nodeMessage", {
|
|
20
|
+
enumerable: !0,
|
|
21
|
+
configurable: !0,
|
|
22
|
+
writable: !0,
|
|
23
|
+
value: /execution reverted/
|
|
24
|
+
});
|
|
25
|
+
class c extends t {
|
|
26
|
+
constructor({ cause: r, maxFeePerGas: e } = {}) {
|
|
27
|
+
super(`The fee cap (\`maxFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
|
28
|
+
cause: r,
|
|
29
|
+
name: "FeeCapTooHighError"
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
Object.defineProperty(c, "nodeMessage", {
|
|
34
|
+
enumerable: !0,
|
|
35
|
+
configurable: !0,
|
|
36
|
+
writable: !0,
|
|
37
|
+
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
|
38
|
+
});
|
|
39
|
+
class u extends t {
|
|
40
|
+
constructor({ cause: r, maxFeePerGas: e } = {}) {
|
|
41
|
+
super(`The fee cap (\`maxFeePerGas\`${e ? ` = ${a(e)}` : ""} gwei) cannot be lower than the block base fee.`, {
|
|
42
|
+
cause: r,
|
|
43
|
+
name: "FeeCapTooLowError"
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
Object.defineProperty(u, "nodeMessage", {
|
|
48
|
+
enumerable: !0,
|
|
49
|
+
configurable: !0,
|
|
50
|
+
writable: !0,
|
|
51
|
+
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
|
52
|
+
});
|
|
53
|
+
class l extends t {
|
|
54
|
+
constructor({ cause: r, nonce: e } = {}) {
|
|
55
|
+
super(`Nonce provided for the transaction ${e ? `(${e}) ` : ""}is higher than the next one expected.`, { cause: r, name: "NonceTooHighError" });
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
Object.defineProperty(l, "nodeMessage", {
|
|
59
|
+
enumerable: !0,
|
|
60
|
+
configurable: !0,
|
|
61
|
+
writable: !0,
|
|
62
|
+
value: /nonce too high/
|
|
63
|
+
});
|
|
64
|
+
class d extends t {
|
|
65
|
+
constructor({ cause: r, nonce: e } = {}) {
|
|
66
|
+
super([
|
|
67
|
+
`Nonce provided for the transaction ${e ? `(${e}) ` : ""}is lower than the current nonce of the account.`,
|
|
68
|
+
"Try increasing the nonce or find the latest nonce with `getTransactionCount`."
|
|
69
|
+
].join(`
|
|
70
|
+
`), { cause: r, name: "NonceTooLowError" });
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
Object.defineProperty(d, "nodeMessage", {
|
|
74
|
+
enumerable: !0,
|
|
75
|
+
configurable: !0,
|
|
76
|
+
writable: !0,
|
|
77
|
+
value: /nonce too low|transaction already imported|already known/
|
|
78
|
+
});
|
|
79
|
+
class h extends t {
|
|
80
|
+
constructor({ cause: r, nonce: e } = {}) {
|
|
81
|
+
super(`Nonce provided for the transaction ${e ? `(${e}) ` : ""}exceeds the maximum allowed nonce.`, { cause: r, name: "NonceMaxValueError" });
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
Object.defineProperty(h, "nodeMessage", {
|
|
85
|
+
enumerable: !0,
|
|
86
|
+
configurable: !0,
|
|
87
|
+
writable: !0,
|
|
88
|
+
value: /nonce has max value/
|
|
89
|
+
});
|
|
90
|
+
class f extends t {
|
|
91
|
+
constructor({ cause: r } = {}) {
|
|
92
|
+
super([
|
|
93
|
+
"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
|
|
94
|
+
].join(`
|
|
95
|
+
`), {
|
|
96
|
+
cause: r,
|
|
97
|
+
metaMessages: [
|
|
98
|
+
"This error could arise when the account does not have enough funds to:",
|
|
99
|
+
" - pay for the total gas fee,",
|
|
100
|
+
" - pay for the value to send.",
|
|
101
|
+
" ",
|
|
102
|
+
"The cost of the transaction is calculated as `gas * gas fee + value`, where:",
|
|
103
|
+
" - `gas` is the amount of gas needed for transaction to execute,",
|
|
104
|
+
" - `gas fee` is the gas fee,",
|
|
105
|
+
" - `value` is the amount of ether to send to the recipient."
|
|
106
|
+
],
|
|
107
|
+
name: "InsufficientFundsError"
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
Object.defineProperty(f, "nodeMessage", {
|
|
112
|
+
enumerable: !0,
|
|
113
|
+
configurable: !0,
|
|
114
|
+
writable: !0,
|
|
115
|
+
value: /insufficient funds|exceeds transaction sender account balance/
|
|
116
|
+
});
|
|
117
|
+
class p extends t {
|
|
118
|
+
constructor({ cause: r, gas: e } = {}) {
|
|
119
|
+
super(`The amount of gas ${e ? `(${e}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
|
|
120
|
+
cause: r,
|
|
121
|
+
name: "IntrinsicGasTooHighError"
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
Object.defineProperty(p, "nodeMessage", {
|
|
126
|
+
enumerable: !0,
|
|
127
|
+
configurable: !0,
|
|
128
|
+
writable: !0,
|
|
129
|
+
value: /intrinsic gas too high|gas limit reached/
|
|
130
|
+
});
|
|
131
|
+
class b extends t {
|
|
132
|
+
constructor({ cause: r, gas: e } = {}) {
|
|
133
|
+
super(`The amount of gas ${e ? `(${e}) ` : ""}provided for the transaction is too low.`, {
|
|
134
|
+
cause: r,
|
|
135
|
+
name: "IntrinsicGasTooLowError"
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
Object.defineProperty(b, "nodeMessage", {
|
|
140
|
+
enumerable: !0,
|
|
141
|
+
configurable: !0,
|
|
142
|
+
writable: !0,
|
|
143
|
+
value: /intrinsic gas too low/
|
|
144
|
+
});
|
|
145
|
+
class g extends t {
|
|
146
|
+
constructor({ cause: r }) {
|
|
147
|
+
super("The transaction type is not supported for this chain.", {
|
|
148
|
+
cause: r,
|
|
149
|
+
name: "TransactionTypeNotSupportedError"
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
Object.defineProperty(g, "nodeMessage", {
|
|
154
|
+
enumerable: !0,
|
|
155
|
+
configurable: !0,
|
|
156
|
+
writable: !0,
|
|
157
|
+
value: /transaction type not valid/
|
|
158
|
+
});
|
|
159
|
+
class m extends t {
|
|
160
|
+
constructor({ cause: r, maxPriorityFeePerGas: e, maxFeePerGas: n } = {}) {
|
|
161
|
+
super([
|
|
162
|
+
`The provided tip (\`maxPriorityFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n ? ` = ${a(n)} gwei` : ""}).`
|
|
163
|
+
].join(`
|
|
164
|
+
`), {
|
|
165
|
+
cause: r,
|
|
166
|
+
name: "TipAboveFeeCapError"
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
Object.defineProperty(m, "nodeMessage", {
|
|
171
|
+
enumerable: !0,
|
|
172
|
+
configurable: !0,
|
|
173
|
+
writable: !0,
|
|
174
|
+
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
|
175
|
+
});
|
|
176
|
+
class v extends t {
|
|
177
|
+
constructor({ cause: r }) {
|
|
178
|
+
super(`An error occurred while executing: ${r == null ? void 0 : r.shortMessage}`, {
|
|
179
|
+
cause: r,
|
|
180
|
+
name: "UnknownNodeError"
|
|
181
|
+
});
|
|
182
|
+
}
|
|
69
183
|
}
|
|
70
184
|
export {
|
|
71
|
-
|
|
185
|
+
i as ExecutionRevertedError,
|
|
186
|
+
c as FeeCapTooHighError,
|
|
187
|
+
u as FeeCapTooLowError,
|
|
188
|
+
f as InsufficientFundsError,
|
|
189
|
+
p as IntrinsicGasTooHighError,
|
|
190
|
+
b as IntrinsicGasTooLowError,
|
|
191
|
+
h as NonceMaxValueError,
|
|
192
|
+
l as NonceTooHighError,
|
|
193
|
+
d as NonceTooLowError,
|
|
194
|
+
m as TipAboveFeeCapError,
|
|
195
|
+
g as TransactionTypeNotSupportedError,
|
|
196
|
+
v as UnknownNodeError
|
|
72
197
|
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from './lib/store';
|
|
|
4
4
|
export * from './lib/apiResponse.types';
|
|
5
5
|
export * from './lib/utils';
|
|
6
6
|
export * from './lib/approve';
|
|
7
|
-
export * from './lib/blockNumber';
|
|
8
7
|
export * from './lib/eventBroker';
|
|
9
8
|
export * from './lib/result/result';
|
|
10
9
|
export * from './lib/digestKey/digestKey';
|
|
@@ -2,7 +2,7 @@ import { AsyncResult, Result } from '../../result/result';
|
|
|
2
2
|
import { AuthHeader, IAuth } from '../auth.types';
|
|
3
3
|
|
|
4
4
|
export declare class ApiKey implements IAuth {
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly _apiKey;
|
|
6
6
|
constructor(apiKey: string);
|
|
7
7
|
getToken(): AsyncResult<string, string>;
|
|
8
8
|
verifyToken(): Result<boolean, string>;
|
|
@@ -8,7 +8,7 @@ export type SiweOpts = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare enum AuthHeaderEnum {
|
|
10
10
|
Authorization = "Authorization",
|
|
11
|
-
ApiKey = "
|
|
11
|
+
ApiKey = "garden-app-id"
|
|
12
12
|
}
|
|
13
13
|
export type AuthHeader = Record<AuthHeaderEnum.ApiKey, string> | Record<AuthHeaderEnum.Authorization, string>;
|
|
14
14
|
export interface IAuth {
|
|
@@ -31,6 +31,8 @@ export declare class Fetcher {
|
|
|
31
31
|
* Asynchronously sends a POST request to the specified URL or RequestInfo, with optional initialization options.
|
|
32
32
|
*/
|
|
33
33
|
static post<T>(input: RequestInfo | URL, init?: Request): Promise<T>;
|
|
34
|
+
private static _patch;
|
|
35
|
+
static patch<T>(input: RequestInfo | URL, init?: Request): Promise<T>;
|
|
34
36
|
/**
|
|
35
37
|
* Parses the response and returns the result as the specified type.
|
|
36
38
|
*
|
package/dist/src/lib/utils.d.ts
CHANGED
|
@@ -20,3 +20,4 @@ export declare enum Environment {
|
|
|
20
20
|
export declare const add0x: (str: string) => `0x${string}`;
|
|
21
21
|
export declare function hexToU32Array(hexString: string, endian?: 'big' | 'little'): number[];
|
|
22
22
|
export declare function trim0x(str: string): string;
|
|
23
|
+
export declare const hasKeys: (obj: any, keys: string[]) => any;
|
package/package.json
CHANGED
package/dist/index250.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index293.cjs"),s=require("./index294.cjs"),m=require("./index291.cjs");function d(e,...t){const{overloads:r}=e,o=r?u([e,...r],e.name,{args:t[0]}):e,c=f(o),i=t.length>0?s.encode(o.inputs,t[0]):void 0;return i?m.concat(c,i):c}function l(e,t={}){return n.from(e,t)}function u(e,t,r){const o=n.fromAbi(e,t,r);if(o.type!=="function")throw new n.NotFoundError({name:t,type:"function"});return o}function f(e){return n.getSelector(e)}exports.encodeData=d;exports.from=l;exports.fromAbi=u;exports.getSelector=f;
|
package/dist/index250.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { from as c, fromAbi as m, NotFoundError as i, getSelector as s } from "./index293.js";
|
|
2
|
-
import { encode as u } from "./index294.js";
|
|
3
|
-
import { concat as d } from "./index291.js";
|
|
4
|
-
function S(o, ...t) {
|
|
5
|
-
const { overloads: r } = o, e = r ? p([o, ...r], o.name, {
|
|
6
|
-
args: t[0]
|
|
7
|
-
}) : o, n = l(e), f = t.length > 0 ? u(e.inputs, t[0]) : void 0;
|
|
8
|
-
return f ? d(n, f) : n;
|
|
9
|
-
}
|
|
10
|
-
function $(o, t = {}) {
|
|
11
|
-
return c(o, t);
|
|
12
|
-
}
|
|
13
|
-
function p(o, t, r) {
|
|
14
|
-
const e = m(o, t, r);
|
|
15
|
-
if (e.type !== "function")
|
|
16
|
-
throw new i({ name: t, type: "function" });
|
|
17
|
-
return e;
|
|
18
|
-
}
|
|
19
|
-
function l(o) {
|
|
20
|
-
return s(o);
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
S as encodeData,
|
|
24
|
-
$ as from,
|
|
25
|
-
p as fromAbi,
|
|
26
|
-
l as getSelector
|
|
27
|
-
};
|
package/dist/index251.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index148.cjs"),i=require("./index140.cjs"),s=require("./index248.cjs");function u(r,{docsPath:o,...e}){const t=(()=>{const n=s.getNodeError(r,e);return n instanceof c.UnknownNodeError?r:n})();return new i.TransactionExecutionError(t,{docsPath:o,...e})}exports.getTransactionError=u;
|
package/dist/index251.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { UnknownNodeError as c } from "./index148.js";
|
|
2
|
-
import { TransactionExecutionError as i } from "./index140.js";
|
|
3
|
-
import { getNodeError as u } from "./index248.js";
|
|
4
|
-
function s(r, { docsPath: t, ...o }) {
|
|
5
|
-
const e = (() => {
|
|
6
|
-
const n = u(r, o);
|
|
7
|
-
return n instanceof c ? r : n;
|
|
8
|
-
})();
|
|
9
|
-
return new i(e, {
|
|
10
|
-
docsPath: t,
|
|
11
|
-
...o
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
s as getTransactionError
|
|
16
|
-
};
|
package/dist/index252.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index187.cjs");function a(e){return e.map(n=>({...n,value:BigInt(n.value)}))}function r(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?t.hexToNumber(e.nonce):void 0,storageProof:e.storageProof?a(e.storageProof):void 0}}exports.formatProof=r;
|
package/dist/index252.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { hexToNumber as a } from "./index187.js";
|
|
2
|
-
function t(e) {
|
|
3
|
-
return e.map((n) => ({
|
|
4
|
-
...n,
|
|
5
|
-
value: BigInt(n.value)
|
|
6
|
-
}));
|
|
7
|
-
}
|
|
8
|
-
function o(e) {
|
|
9
|
-
return {
|
|
10
|
-
...e,
|
|
11
|
-
balance: e.balance ? BigInt(e.balance) : void 0,
|
|
12
|
-
nonce: e.nonce ? a(e.nonce) : void 0,
|
|
13
|
-
storageProof: e.storageProof ? t(e.storageProof) : void 0
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
o as formatProof
|
|
18
|
-
};
|
package/dist/index253.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index41.cjs");class c extends t.BaseError{constructor({docsPath:o}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
|
|
2
|
-
`),{docsPath:o,docsSlug:"account",name:"AccountNotFoundError"})}}class u extends t.BaseError{constructor({docsPath:o,metaMessages:e,type:n}){super(`Account type "${n}" is not supported.`,{docsPath:o,metaMessages:e,name:"AccountTypeNotSupportedError"})}}exports.AccountNotFoundError=c;exports.AccountTypeNotSupportedError=u;
|
package/dist/index253.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BaseError as t } from "./index41.js";
|
|
2
|
-
class u extends t {
|
|
3
|
-
constructor({ docsPath: o } = {}) {
|
|
4
|
-
super([
|
|
5
|
-
"Could not find an Account to execute with this Action.",
|
|
6
|
-
"Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."
|
|
7
|
-
].join(`
|
|
8
|
-
`), {
|
|
9
|
-
docsPath: o,
|
|
10
|
-
docsSlug: "account",
|
|
11
|
-
name: "AccountNotFoundError"
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
class s extends t {
|
|
16
|
-
constructor({ docsPath: o, metaMessages: c, type: r }) {
|
|
17
|
-
super(`Account type "${r}" is not supported.`, {
|
|
18
|
-
docsPath: o,
|
|
19
|
-
metaMessages: c,
|
|
20
|
-
name: "AccountTypeNotSupportedError"
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
u as AccountNotFoundError,
|
|
26
|
-
s as AccountTypeNotSupportedError
|
|
27
|
-
};
|
package/dist/index254.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index22.cjs"),v=require("./index123.cjs"),A=require("./index132.cjs"),b=require("./index179.cjs"),h=require("./index164.cjs"),x=require("./index186.cjs"),E=require("./index190.cjs"),H=require("./index155.cjs"),D=require("./index32.cjs"),p=require("./index200.cjs"),V=require("./index194.cjs"),w=require("./index201.cjs"),z=require("./index198.cjs"),m=require("./index63.cjs"),T=require("./index182.cjs"),j=require("./index187.cjs");async function B(s,S){var l,g,f;const{address:i,factory:n,factoryData:o,hash:a,signature:e,universalSignatureVerifierAddress:c=(f=(g=(l=s.chain)==null?void 0:l.contracts)==null?void 0:g.universalSignatureVerifier)==null?void 0:f.address,...u}=S,r=E.isHex(e)?e:typeof e=="object"&&"r"in e&&"s"in e?z.serializeSignature(e):H.bytesToHex(e),d=await(async()=>!n&&!o||p.isErc6492Signature(r)?r:w.serializeErc6492Signature({address:n,data:o,signature:r}))();try{const t=c?{to:c,data:T.encodeFunctionData({abi:y.universalSignatureValidatorAbi,functionName:"isValidSig",args:[i,a,d]}),...u}:{data:b.encodeDeployData({abi:y.universalSignatureValidatorAbi,args:[i,a,d],bytecode:v.universalSignatureValidatorByteCode}),...u},{data:q}=await D.getAction(s,m.call,"call")(t);return j.hexToBool(q??"0x0")}catch(t){try{if(x.isAddressEqual(h.getAddress(i),await V.recoverAddress({hash:a,signature:e})))return!0}catch{}if(t instanceof A.CallExecutionError)return!1;throw t}}exports.verifyHash=B;
|
package/dist/index254.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { universalSignatureValidatorAbi as g } from "./index22.js";
|
|
2
|
-
import { universalSignatureValidatorByteCode as S } from "./index123.js";
|
|
3
|
-
import { CallExecutionError as h } from "./index132.js";
|
|
4
|
-
import { encodeDeployData as v } from "./index179.js";
|
|
5
|
-
import { getAddress as x } from "./index164.js";
|
|
6
|
-
import { isAddressEqual as b } from "./index186.js";
|
|
7
|
-
import { isHex as A } from "./index190.js";
|
|
8
|
-
import { bytesToHex as w } from "./index155.js";
|
|
9
|
-
import { getAction as E } from "./index32.js";
|
|
10
|
-
import { isErc6492Signature as V } from "./index200.js";
|
|
11
|
-
import { recoverAddress as D } from "./index194.js";
|
|
12
|
-
import { serializeErc6492Signature as H } from "./index201.js";
|
|
13
|
-
import { serializeSignature as z } from "./index198.js";
|
|
14
|
-
import { call as B } from "./index63.js";
|
|
15
|
-
import { encodeFunctionData as C } from "./index182.js";
|
|
16
|
-
import { hexToBool as T } from "./index187.js";
|
|
17
|
-
async function W(o, y) {
|
|
18
|
-
var u, d, p;
|
|
19
|
-
const { address: i, factory: n, factoryData: s, hash: a, signature: r, universalSignatureVerifierAddress: f = (p = (d = (u = o.chain) == null ? void 0 : u.contracts) == null ? void 0 : d.universalSignatureVerifier) == null ? void 0 : p.address, ...m } = y, t = A(r) ? r : typeof r == "object" && "r" in r && "s" in r ? z(r) : w(r), c = await (async () => !n && !s || V(t) ? t : H({
|
|
20
|
-
address: n,
|
|
21
|
-
data: s,
|
|
22
|
-
signature: t
|
|
23
|
-
}))();
|
|
24
|
-
try {
|
|
25
|
-
const e = f ? {
|
|
26
|
-
to: f,
|
|
27
|
-
data: C({
|
|
28
|
-
abi: g,
|
|
29
|
-
functionName: "isValidSig",
|
|
30
|
-
args: [i, a, c]
|
|
31
|
-
}),
|
|
32
|
-
...m
|
|
33
|
-
} : {
|
|
34
|
-
data: v({
|
|
35
|
-
abi: g,
|
|
36
|
-
args: [i, a, c],
|
|
37
|
-
bytecode: S
|
|
38
|
-
}),
|
|
39
|
-
...m
|
|
40
|
-
}, { data: l } = await E(o, B, "call")(e);
|
|
41
|
-
return T(l ?? "0x0");
|
|
42
|
-
} catch (e) {
|
|
43
|
-
try {
|
|
44
|
-
if (b(x(i), await D({ hash: a, signature: r })))
|
|
45
|
-
return !0;
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
if (e instanceof h)
|
|
49
|
-
return !1;
|
|
50
|
-
throw e;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
W as verifyHash
|
|
55
|
-
};
|
package/dist/index255.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index150.cjs"),t=require("./index176.cjs");function i(s){if(typeof s=="string"){if(!t.isAddress(s,{strict:!1}))throw new n.InvalidAddressError({address:s});return{address:s,type:"json-rpc"}}if(!t.isAddress(s.address,{strict:!1}))throw new n.InvalidAddressError({address:s.address});return{address:s.address,nonceManager:s.nonceManager,sign:s.sign,signAuthorization:s.signAuthorization,signMessage:s.signMessage,signTransaction:s.signTransaction,signTypedData:s.signTypedData,source:"custom",type:"local"}}exports.toAccount=i;
|
package/dist/index255.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { InvalidAddressError as s } from "./index150.js";
|
|
2
|
-
import { isAddress as a } from "./index176.js";
|
|
3
|
-
function r(n) {
|
|
4
|
-
if (typeof n == "string") {
|
|
5
|
-
if (!a(n, { strict: !1 }))
|
|
6
|
-
throw new s({ address: n });
|
|
7
|
-
return {
|
|
8
|
-
address: n,
|
|
9
|
-
type: "json-rpc"
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
if (!a(n.address, { strict: !1 }))
|
|
13
|
-
throw new s({ address: n.address });
|
|
14
|
-
return {
|
|
15
|
-
address: n.address,
|
|
16
|
-
nonceManager: n.nonceManager,
|
|
17
|
-
sign: n.sign,
|
|
18
|
-
signAuthorization: n.signAuthorization,
|
|
19
|
-
signMessage: n.signMessage,
|
|
20
|
-
signTransaction: n.signTransaction,
|
|
21
|
-
signTypedData: n.signTypedData,
|
|
22
|
-
source: "custom",
|
|
23
|
-
type: "local"
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
r as toAccount
|
|
28
|
-
};
|
package/dist/index256.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index197.cjs"),s=require("./index155.cjs"),a=require("./index198.cjs");let l=!1;async function g({hash:t,privateKey:i,to:e="object"}){const{r:u,s:c,recovery:r}=o.secp256k1.sign(t.slice(2),i.slice(2),{lowS:!0,extraEntropy:l}),n={r:s.numberToHex(u,{size:32}),s:s.numberToHex(c,{size:32}),v:r?28n:27n,yParity:r};return e==="bytes"||e==="hex"?a.serializeSignature({...n,to:e}):n}exports.sign=g;
|
package/dist/index256.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { secp256k1 as u } from "./index197.js";
|
|
2
|
-
import { numberToHex as i } from "./index155.js";
|
|
3
|
-
import { serializeSignature as a } from "./index198.js";
|
|
4
|
-
let m = !1;
|
|
5
|
-
async function y({ hash: n, privateKey: s, to: r = "object" }) {
|
|
6
|
-
const { r: o, s: c, recovery: e } = u.sign(n.slice(2), s.slice(2), { lowS: !0, extraEntropy: m }), t = {
|
|
7
|
-
r: i(o, { size: 32 }),
|
|
8
|
-
s: i(c, { size: 32 }),
|
|
9
|
-
v: e ? 28n : 27n,
|
|
10
|
-
yParity: e
|
|
11
|
-
};
|
|
12
|
-
return r === "bytes" || r === "hex" ? a({ ...t, to: r }) : t;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
y as sign
|
|
16
|
-
};
|
package/dist/index257.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index261.cjs"),a=require("./index256.cjs");async function u(t){const{chainId:n,nonce:i,privateKey:r,to:o="object"}=t,s=t.contractAddress??t.address,e=await a.sign({hash:c.hashAuthorization({address:s,chainId:n,nonce:i}),privateKey:r,to:o});return o==="object"?{address:s,chainId:n,nonce:i,...e}:e}exports.signAuthorization=u;
|
package/dist/index257.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { hashAuthorization as a } from "./index261.js";
|
|
2
|
-
import { sign as e } from "./index256.js";
|
|
3
|
-
async function u(t) {
|
|
4
|
-
const { chainId: o, nonce: n, privateKey: c, to: i = "object" } = t, r = t.contractAddress ?? t.address, s = await e({
|
|
5
|
-
hash: a({ address: r, chainId: o, nonce: n }),
|
|
6
|
-
privateKey: c,
|
|
7
|
-
to: i
|
|
8
|
-
});
|
|
9
|
-
return i === "object" ? {
|
|
10
|
-
address: r,
|
|
11
|
-
chainId: o,
|
|
12
|
-
nonce: n,
|
|
13
|
-
...s
|
|
14
|
-
} : s;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
u as signAuthorization
|
|
18
|
-
};
|
package/dist/index258.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index227.cjs"),n=require("./index256.cjs");async function t({message:e,privateKey:s}){return await n.sign({hash:a.hashMessage(e),privateKey:s,to:"hex"})}exports.signMessage=t;
|
package/dist/index258.js
DELETED
package/dist/index259.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index156.cjs"),c=require("./index232.cjs"),o=require("./index256.cjs");async function u(i){const{privateKey:r,transaction:e,serializer:n=c.serializeTransaction}=i,a=e.type==="eip4844"?{...e,sidecars:!1}:e,s=await o.sign({hash:t.keccak256(n(a)),privateKey:r});return n(e,s)}exports.signTransaction=u;
|
package/dist/index259.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { keccak256 as e } from "./index156.js";
|
|
2
|
-
import { serializeTransaction as o } from "./index232.js";
|
|
3
|
-
import { sign as c } from "./index256.js";
|
|
4
|
-
async function u(n) {
|
|
5
|
-
const { privateKey: a, transaction: r, serializer: i = o } = n, t = r.type === "eip4844" ? {
|
|
6
|
-
...r,
|
|
7
|
-
sidecars: !1
|
|
8
|
-
} : r, s = await c({
|
|
9
|
-
hash: e(i(t)),
|
|
10
|
-
privateKey: a
|
|
11
|
-
});
|
|
12
|
-
return i(r, s);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
u as signTransaction
|
|
16
|
-
};
|
package/dist/index260.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index192.cjs"),s=require("./index256.cjs");async function i(e){const{privateKey:t,...a}=e;return await s.sign({hash:n.hashTypedData(a),privateKey:t,to:"hex"})}exports.signTypedData=i;
|
package/dist/index260.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { hashTypedData as o } from "./index192.js";
|
|
2
|
-
import { sign as r } from "./index256.js";
|
|
3
|
-
async function p(t) {
|
|
4
|
-
const { privateKey: a, ...e } = t;
|
|
5
|
-
return await r({
|
|
6
|
-
hash: o(e),
|
|
7
|
-
privateKey: a,
|
|
8
|
-
to: "hex"
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
p as signTypedData
|
|
13
|
-
};
|
package/dist/index261.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index159.cjs"),u=require("./index154.cjs"),c=require("./index155.cjs"),a=require("./index199.cjs"),h=require("./index156.cjs");function d(e){const{chainId:t,nonce:o,to:r}=e,s=e.contractAddress??e.address,n=h.keccak256(i.concatHex(["0x05",a.toRlp([t?c.numberToHex(t):"0x",s,o?c.numberToHex(o):"0x"])]));return r==="bytes"?u.hexToBytes(n):n}exports.hashAuthorization=d;
|
package/dist/index261.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { concatHex as i } from "./index159.js";
|
|
2
|
-
import { hexToBytes as m } from "./index154.js";
|
|
3
|
-
import { numberToHex as c } from "./index155.js";
|
|
4
|
-
import { toRlp as d } from "./index199.js";
|
|
5
|
-
import { keccak256 as f } from "./index156.js";
|
|
6
|
-
function b(o) {
|
|
7
|
-
const { chainId: t, nonce: r, to: s } = o, e = o.contractAddress ?? o.address, n = f(i([
|
|
8
|
-
"0x05",
|
|
9
|
-
d([
|
|
10
|
-
t ? c(t) : "0x",
|
|
11
|
-
e,
|
|
12
|
-
r ? c(r) : "0x"
|
|
13
|
-
])
|
|
14
|
-
]));
|
|
15
|
-
return s === "bytes" ? m(n) : n;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
b as hashAuthorization
|
|
19
|
-
};
|
package/dist/index262.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index263.cjs");class t extends Error{constructor(a,e={}){var i;const s=e.cause instanceof t?e.cause.details:(i=e.cause)!=null&&i.message?e.cause.message:e.details,r=e.cause instanceof t&&e.cause.docsPath||e.docsPath,u=[a||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${o.version}`].join(`
|
|
2
|
-
`);super(u),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,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),e.cause&&(this.cause=e.cause),this.details=s,this.docsPath=r,this.metaMessages=e.metaMessages,this.shortMessage=a}}exports.BaseError=t;
|