@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/index97.js
CHANGED
|
@@ -1,92 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { extract as V } from "./index82.js";
|
|
7
|
-
import { formatTransactionRequest as C } from "./index83.js";
|
|
8
|
-
import { serializeStateOverride as j } from "./index85.js";
|
|
9
|
-
import { assertRequest as D } from "./index86.js";
|
|
10
|
-
import { prepareTransactionRequest as J } from "./index105.js";
|
|
11
|
-
import { getBalance as K } from "./index106.js";
|
|
12
|
-
async function st(e, i) {
|
|
13
|
-
var f, d, p;
|
|
14
|
-
const { account: u = e.account } = i, t = u ? E(u) : void 0;
|
|
15
|
-
try {
|
|
16
|
-
let v = function(c) {
|
|
17
|
-
const { block: s, request: r, rpcStateOverride: o } = c;
|
|
18
|
-
return e.request({
|
|
19
|
-
method: "eth_estimateGas",
|
|
20
|
-
params: o ? [
|
|
21
|
-
r,
|
|
22
|
-
s ?? e.experimental_blockTag ?? "latest",
|
|
23
|
-
o
|
|
24
|
-
] : s ? [r, s] : [r]
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const { accessList: n, authorizationList: a, blobs: y, blobVersionedHashes: G, blockNumber: b, blockTag: z, data: h, gas: P, gasPrice: B, maxFeePerBlobGas: H, maxFeePerGas: T, maxPriorityFeePerGas: F, nonce: L, value: O, stateOverride: R, ...m } = await J(e, {
|
|
28
|
-
...i,
|
|
29
|
-
parameters: (
|
|
30
|
-
// Some RPC Providers do not compute versioned hashes from blobs. We will need
|
|
31
|
-
// to compute them.
|
|
32
|
-
(t == null ? void 0 : t.type) === "local" ? void 0 : ["blobVersionedHashes"]
|
|
33
|
-
)
|
|
34
|
-
}), l = (typeof b == "bigint" ? k(b) : void 0) || z, w = j(R), _ = await (async () => {
|
|
35
|
-
if (m.to)
|
|
36
|
-
return m.to;
|
|
37
|
-
if (a && a.length > 0)
|
|
38
|
-
return await S({
|
|
39
|
-
authorization: a[0]
|
|
40
|
-
}).catch(() => {
|
|
41
|
-
throw new N("`to` is required. Could not infer from `authorizationList`");
|
|
42
|
-
});
|
|
43
|
-
})();
|
|
44
|
-
D(i);
|
|
45
|
-
const q = (p = (d = (f = e.chain) == null ? void 0 : f.formatters) == null ? void 0 : d.transactionRequest) == null ? void 0 : p.format, x = (q || C)({
|
|
46
|
-
// Pick out extra data that might exist on the chain's transaction request type.
|
|
47
|
-
...V(m, { format: q }),
|
|
48
|
-
from: t == null ? void 0 : t.address,
|
|
49
|
-
accessList: n,
|
|
50
|
-
authorizationList: a,
|
|
51
|
-
blobs: y,
|
|
52
|
-
blobVersionedHashes: G,
|
|
53
|
-
data: h,
|
|
54
|
-
gas: P,
|
|
55
|
-
gasPrice: B,
|
|
56
|
-
maxFeePerBlobGas: H,
|
|
57
|
-
maxFeePerGas: T,
|
|
58
|
-
maxPriorityFeePerGas: F,
|
|
59
|
-
nonce: L,
|
|
60
|
-
to: _,
|
|
61
|
-
value: O
|
|
62
|
-
});
|
|
63
|
-
let g = BigInt(await v({ block: l, request: x, rpcStateOverride: w }));
|
|
64
|
-
if (a) {
|
|
65
|
-
const c = await K(e, { address: x.from }), s = await Promise.all(a.map(async (r) => {
|
|
66
|
-
const { address: o } = r, A = await v({
|
|
67
|
-
block: l,
|
|
68
|
-
request: {
|
|
69
|
-
authorizationList: void 0,
|
|
70
|
-
data: h,
|
|
71
|
-
from: t == null ? void 0 : t.address,
|
|
72
|
-
to: o,
|
|
73
|
-
value: k(c)
|
|
74
|
-
},
|
|
75
|
-
rpcStateOverride: w
|
|
76
|
-
}).catch(() => 100000n);
|
|
77
|
-
return 2n * BigInt(A);
|
|
78
|
-
}));
|
|
79
|
-
g += s.reduce((r, o) => r + o, 0n);
|
|
80
|
-
}
|
|
81
|
-
return g;
|
|
82
|
-
} catch (n) {
|
|
83
|
-
throw I(n, {
|
|
84
|
-
...i,
|
|
85
|
-
account: t,
|
|
86
|
-
chain: e.chain
|
|
87
|
-
});
|
|
88
|
-
}
|
|
1
|
+
function f(e, { dir: n = "left" } = {}) {
|
|
2
|
+
let t = typeof e == "string" ? e.replace("0x", "") : e, i = 0;
|
|
3
|
+
for (let l = 0; l < t.length - 1 && t[n === "left" ? l : t.length - l - 1].toString() === "0"; l++)
|
|
4
|
+
i++;
|
|
5
|
+
return t = n === "left" ? t.slice(i) : t.slice(0, t.length - i), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
|
|
89
6
|
}
|
|
90
7
|
export {
|
|
91
|
-
|
|
8
|
+
f as trim
|
|
92
9
|
};
|
package/dist/index98.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 k=require("./index32.cjs"),h=require("./index35.cjs"),g=require("./index85.cjs"),N=require("./index40.cjs"),w=require("./index111.cjs"),L=require("./index65.cjs"),c=require("./index42.cjs"),M=require("./index112.cjs"),S=require("./index92.cjs"),T="0x5792579257925792579257925792579257925792579257925792579257925792",v=c.numberToHex(0,{size:32});async function _(i,s){const{account:p=i.account,capabilities:l,chain:u=i.chain,experimental_fallback:C,experimental_fallbackDelay:m=32,forceAtomic:b=!1,id:x,version:y="2.0.0"}=s,r=p?k.parseAccount(p):null,d=s.calls.map(a=>{const e=a,o=e.abi?N.encodeFunctionData({abi:e.abi,functionName:e.functionName,args:e.args}):e.data;return{data:e.dataSuffix&&o?w.concat([o,e.dataSuffix]):o,to:e.to,value:e.value?c.numberToHex(e.value):void 0}});try{const a=await i.request({method:"wallet_sendCalls",params:[{atomicRequired:b,calls:d,capabilities:l,chainId:c.numberToHex(u.id),from:r==null?void 0:r.address,id:x,version:y}]},{retryCount:0});return typeof a=="string"?{id:a}:a}catch(a){const e=a;if(C&&(e.name==="MethodNotFoundRpcError"||e.name==="MethodNotSupportedRpcError"||e.name==="UnknownRpcError"||e.details.toLowerCase().includes("does not exist / is not available")||e.details.toLowerCase().includes("missing or invalid. request()")||e.details.toLowerCase().includes("did not match any variant of untagged enum")||e.details.toLowerCase().includes("account upgraded to unsupported contract")||e.details.toLowerCase().includes("eip-7702 not supported")||e.details.toLowerCase().includes("unsupported wc_ method")||e.details.toLowerCase().includes("feature toggled misconfigured"))){if(l&&Object.values(l).some(n=>!n.optional)){const n="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new g.UnsupportedNonOptionalCapabilityError(new h.BaseError(n,{details:n}))}if(b&&d.length>1){const t="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new g.AtomicityNotSupportedError(new h.BaseError(t,{details:t}))}const o=[];for(const t of d){const n=S.sendTransaction(i,{account:r,chain:u,data:t.data,to:t.to,value:t.value?L.hexToBigInt(t.value):void 0});o.push(n),m>0&&await new Promise(E=>setTimeout(E,m))}const f=await Promise.allSettled(o);if(f.every(t=>t.status==="rejected"))throw f[0].reason;const q=f.map(t=>t.status==="fulfilled"?t.value:v);return{id:w.concat([...q,c.numberToHex(u.id,{size:32}),T])}}throw M.getTransactionError(a,{...s,account:r,chain:s.chain})}}exports.fallbackMagicIdentifier=T;exports.fallbackTransactionErrorMagicIdentifier=v;exports.sendCalls=_;
|
package/dist/index98.js
CHANGED
|
@@ -1,53 +1,91 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
throw new G();
|
|
21
|
-
const l = 10 ** (((P = n.toString().split(".")[1]) == null ? void 0 : P.length) ?? 0), c = (r) => r * BigInt(Math.ceil(n * l)) / BigInt(l), f = i || await F(a, y, "getBlock")({});
|
|
22
|
-
if (typeof ((p = t == null ? void 0 : t.fees) == null ? void 0 : p.estimateFeesPerGas) == "function") {
|
|
23
|
-
const r = await t.fees.estimateFeesPerGas({
|
|
24
|
-
block: i,
|
|
25
|
-
client: a,
|
|
26
|
-
multiply: c,
|
|
27
|
-
request: e,
|
|
28
|
-
type: m
|
|
29
|
-
});
|
|
30
|
-
if (r !== null)
|
|
31
|
-
return r;
|
|
32
|
-
}
|
|
33
|
-
if (m === "eip1559") {
|
|
34
|
-
if (typeof f.baseFeePerGas != "bigint")
|
|
35
|
-
throw new b();
|
|
36
|
-
const r = typeof (e == null ? void 0 : e.maxPriorityFeePerGas) == "bigint" ? e.maxPriorityFeePerGas : await g(a, {
|
|
37
|
-
block: f,
|
|
38
|
-
chain: t,
|
|
39
|
-
request: e
|
|
40
|
-
}), s = c(f.baseFeePerGas);
|
|
1
|
+
import { parseAccount as E } from "./index32.js";
|
|
2
|
+
import { BaseError as w } from "./index35.js";
|
|
3
|
+
import { UnsupportedNonOptionalCapabilityError as N, AtomicityNotSupportedError as T } from "./index85.js";
|
|
4
|
+
import { encodeFunctionData as k } from "./index40.js";
|
|
5
|
+
import { concat as b } from "./index111.js";
|
|
6
|
+
import { hexToBigInt as L } from "./index65.js";
|
|
7
|
+
import { numberToHex as c } from "./index42.js";
|
|
8
|
+
import { getTransactionError as _ } from "./index112.js";
|
|
9
|
+
import { sendTransaction as S } from "./index92.js";
|
|
10
|
+
const A = "0x5792579257925792579257925792579257925792579257925792579257925792", I = c(0, {
|
|
11
|
+
size: 32
|
|
12
|
+
});
|
|
13
|
+
async function P(i, s) {
|
|
14
|
+
const { account: f = i.account, capabilities: l, chain: d = i.chain, experimental_fallback: g, experimental_fallbackDelay: m = 32, forceAtomic: h = !1, id: v, version: C = "2.0.0" } = s, r = f ? E(f) : null, u = s.calls.map((e) => {
|
|
15
|
+
const t = e, a = t.abi ? k({
|
|
16
|
+
abi: t.abi,
|
|
17
|
+
functionName: t.functionName,
|
|
18
|
+
args: t.args
|
|
19
|
+
}) : t.data;
|
|
41
20
|
return {
|
|
42
|
-
|
|
43
|
-
|
|
21
|
+
data: t.dataSuffix && a ? b([a, t.dataSuffix]) : a,
|
|
22
|
+
to: t.to,
|
|
23
|
+
value: t.value ? c(t.value) : void 0
|
|
44
24
|
};
|
|
25
|
+
});
|
|
26
|
+
try {
|
|
27
|
+
const e = await i.request({
|
|
28
|
+
method: "wallet_sendCalls",
|
|
29
|
+
params: [
|
|
30
|
+
{
|
|
31
|
+
atomicRequired: h,
|
|
32
|
+
calls: u,
|
|
33
|
+
capabilities: l,
|
|
34
|
+
chainId: c(d.id),
|
|
35
|
+
from: r == null ? void 0 : r.address,
|
|
36
|
+
id: v,
|
|
37
|
+
version: C
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}, { retryCount: 0 });
|
|
41
|
+
return typeof e == "string" ? { id: e } : e;
|
|
42
|
+
} catch (e) {
|
|
43
|
+
const t = e;
|
|
44
|
+
if (g && (t.name === "MethodNotFoundRpcError" || t.name === "MethodNotSupportedRpcError" || t.name === "UnknownRpcError" || t.details.toLowerCase().includes("does not exist / is not available") || t.details.toLowerCase().includes("missing or invalid. request()") || t.details.toLowerCase().includes("did not match any variant of untagged enum") || t.details.toLowerCase().includes("account upgraded to unsupported contract") || t.details.toLowerCase().includes("eip-7702 not supported") || t.details.toLowerCase().includes("unsupported wc_ method") || t.details.toLowerCase().includes("feature toggled misconfigured"))) {
|
|
45
|
+
if (l && Object.values(l).some((n) => !n.optional)) {
|
|
46
|
+
const n = "non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";
|
|
47
|
+
throw new N(new w(n, {
|
|
48
|
+
details: n
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
if (h && u.length > 1) {
|
|
52
|
+
const o = "`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";
|
|
53
|
+
throw new T(new w(o, {
|
|
54
|
+
details: o
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
const a = [];
|
|
58
|
+
for (const o of u) {
|
|
59
|
+
const n = S(i, {
|
|
60
|
+
account: r,
|
|
61
|
+
chain: d,
|
|
62
|
+
data: o.data,
|
|
63
|
+
to: o.to,
|
|
64
|
+
value: o.value ? L(o.value) : void 0
|
|
65
|
+
});
|
|
66
|
+
a.push(n), m > 0 && await new Promise((x) => setTimeout(x, m));
|
|
67
|
+
}
|
|
68
|
+
const p = await Promise.allSettled(a);
|
|
69
|
+
if (p.every((o) => o.status === "rejected"))
|
|
70
|
+
throw p[0].reason;
|
|
71
|
+
const y = p.map((o) => o.status === "fulfilled" ? o.value : I);
|
|
72
|
+
return {
|
|
73
|
+
id: b([
|
|
74
|
+
...y,
|
|
75
|
+
c(d.id, { size: 32 }),
|
|
76
|
+
A
|
|
77
|
+
])
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
throw _(e, {
|
|
81
|
+
...s,
|
|
82
|
+
account: r,
|
|
83
|
+
chain: s.chain
|
|
84
|
+
});
|
|
45
85
|
}
|
|
46
|
-
return {
|
|
47
|
-
gasPrice: (e == null ? void 0 : e.gasPrice) ?? c(await F(a, u, "getGasPrice")({}))
|
|
48
|
-
};
|
|
49
86
|
}
|
|
50
87
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
88
|
+
A as fallbackMagicIdentifier,
|
|
89
|
+
I as fallbackTransactionErrorMagicIdentifier,
|
|
90
|
+
P as sendCalls
|
|
53
91
|
};
|
package/dist/index99.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index32.cjs"),p=require("./index42.cjs");async function f(s,c={}){const{account:n=s.account,chainId:t}=c,e=n?l.parseAccount(n):void 0,o=t?[e==null?void 0:e.address,[p.numberToHex(t)]]:[e==null?void 0:e.address],u=await s.request({method:"wallet_getCapabilities",params:o}),a={};for(const[r,b]of Object.entries(u)){a[Number(r)]={};for(let[i,d]of Object.entries(b))i==="addSubAccount"&&(i="unstable_addSubAccount"),a[Number(r)][i]=d}return typeof t=="number"?a[t]:a}exports.getCapabilities=f;
|
package/dist/index99.js
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
super("Chain does not support EIP-1559 fees.", {
|
|
13
|
-
name: "Eip1559FeesNotSupportedError"
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
class c extends e {
|
|
18
|
-
constructor({ maxPriorityFeePerGas: o }) {
|
|
19
|
-
super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${s(o)} gwei).`, { name: "MaxFeePerGasTooLowError" });
|
|
1
|
+
import { parseAccount as p } from "./index32.js";
|
|
2
|
+
import { numberToHex as f } from "./index42.js";
|
|
3
|
+
async function h(s, n = {}) {
|
|
4
|
+
const { account: o = s.account, chainId: t } = n, e = o ? p(o) : void 0, c = t ? [e == null ? void 0 : e.address, [f(t)]] : [e == null ? void 0 : e.address], b = await s.request({
|
|
5
|
+
method: "wallet_getCapabilities",
|
|
6
|
+
params: c
|
|
7
|
+
}), a = {};
|
|
8
|
+
for (const [r, u] of Object.entries(b)) {
|
|
9
|
+
a[Number(r)] = {};
|
|
10
|
+
for (let [i, d] of Object.entries(u))
|
|
11
|
+
i === "addSubAccount" && (i = "unstable_addSubAccount"), a[Number(r)][i] = d;
|
|
20
12
|
}
|
|
13
|
+
return typeof t == "number" ? a[t] : a;
|
|
21
14
|
}
|
|
22
15
|
export {
|
|
23
|
-
|
|
24
|
-
p as Eip1559FeesNotSupportedError,
|
|
25
|
-
c as MaxFeePerGasTooLowError
|
|
16
|
+
h as getCapabilities
|
|
26
17
|
};
|
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/index249.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index259.cjs"),s=require("./index189.cjs"),r=require("./index45.cjs");function o(t,i){return e.sha256(s.isHex(t,{strict:!1})?r.toBytes(t):t)}exports.sha256=o;
|
package/dist/index249.js
DELETED
package/dist/index250.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index251.cjs"),y=require("./index246.cjs"),u=require("./index230.cjs"),B=require("./index212.cjs"),h=require("./index45.cjs"),d=require("./index33.cjs");function f(t){const a=t.to??(typeof t.data=="string"?"hex":"bytes"),n=typeof t.data=="string"?h.hexToBytes(t.data):t.data,s=B.size(n);if(!s)throw new y.EmptyBlobError;if(s>o.maxBytesPerTransaction)throw new y.BlobSizeTooLargeError({maxSize:o.maxBytesPerTransaction,size:s});const r=[];let b=!0,i=0;for(;b;){const e=u.createCursor(new Uint8Array(o.bytesPerBlob));let l=0;for(;l<o.fieldElementsPerBlob;){const c=n.slice(i,i+(o.bytesPerFieldElement-1));if(e.pushByte(0),e.pushBytes(c),c.length<31){e.pushByte(128),b=!1;break}l++,i+=31}r.push(e)}return a==="bytes"?r.map(e=>e.bytes):r.map(e=>d.bytesToHex(e.bytes))}exports.toBlobs=f;
|
package/dist/index250.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { maxBytesPerTransaction as y, fieldElementsPerBlob as a, bytesPerFieldElement as f, bytesPerBlob as p } from "./index251.js";
|
|
2
|
-
import { EmptyBlobError as c, BlobSizeTooLargeError as h } from "./index246.js";
|
|
3
|
-
import { createCursor as B } from "./index230.js";
|
|
4
|
-
import { size as u } from "./index212.js";
|
|
5
|
-
import { hexToBytes as x } from "./index45.js";
|
|
6
|
-
import { bytesToHex as d } from "./index33.js";
|
|
7
|
-
function S(e) {
|
|
8
|
-
const m = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), i = typeof e.data == "string" ? x(e.data) : e.data, o = u(i);
|
|
9
|
-
if (!o)
|
|
10
|
-
throw new c();
|
|
11
|
-
if (o > y)
|
|
12
|
-
throw new h({
|
|
13
|
-
maxSize: y,
|
|
14
|
-
size: o
|
|
15
|
-
});
|
|
16
|
-
const s = [];
|
|
17
|
-
let n = !0, r = 0;
|
|
18
|
-
for (; n; ) {
|
|
19
|
-
const t = B(new Uint8Array(p));
|
|
20
|
-
let l = 0;
|
|
21
|
-
for (; l < a; ) {
|
|
22
|
-
const b = i.slice(r, r + (f - 1));
|
|
23
|
-
if (t.pushByte(0), t.pushBytes(b), b.length < 31) {
|
|
24
|
-
t.pushByte(128), n = !1;
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
l++, r += 31;
|
|
28
|
-
}
|
|
29
|
-
s.push(t);
|
|
30
|
-
}
|
|
31
|
-
return m === "bytes" ? s.map((t) => t.bytes) : s.map((t) => d(t.bytes));
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
S as toBlobs
|
|
35
|
-
};
|
package/dist/index251.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=6,s=32,e=4096,n=s*e,o=n*t-1-1*e*t;exports.bytesPerBlob=n;exports.bytesPerFieldElement=s;exports.fieldElementsPerBlob=e;exports.maxBytesPerTransaction=o;
|
package/dist/index251.js
DELETED
package/dist/index252.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}exports.defineChain=n;
|
package/dist/index252.js
DELETED
package/dist/index253.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function i(e){return new Promise(t=>setTimeout(t,e))}exports.wait=i;
|
package/dist/index253.js
DELETED
package/dist/index254.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(n,{errorInstance:r=new Error("timed out"),timeout:i,signal:a}){return new Promise((l,e)=>{(async()=>{let o;try{const t=new AbortController;i>0&&(o=setTimeout(()=>{a&&t.abort()},i)),l(await n({signal:(t==null?void 0:t.signal)||null}))}catch(t){(t==null?void 0:t.name)==="AbortError"&&e(r),e(t)}finally{clearTimeout(o)}})()})}exports.withTimeout=u;
|
package/dist/index254.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
function u(r, { errorInstance: e = new Error("timed out"), timeout: i, signal: a }) {
|
|
2
|
-
return new Promise((l, n) => {
|
|
3
|
-
(async () => {
|
|
4
|
-
let o;
|
|
5
|
-
try {
|
|
6
|
-
const t = new AbortController();
|
|
7
|
-
i > 0 && (o = setTimeout(() => {
|
|
8
|
-
a && t.abort();
|
|
9
|
-
}, i)), l(await r({ signal: (t == null ? void 0 : t.signal) || null }));
|
|
10
|
-
} catch (t) {
|
|
11
|
-
(t == null ? void 0 : t.name) === "AbortError" && n(e), n(t);
|
|
12
|
-
} finally {
|
|
13
|
-
clearTimeout(o);
|
|
14
|
-
}
|
|
15
|
-
})();
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
u as withTimeout
|
|
20
|
-
};
|
package/dist/index255.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function o(r,i){let t=r.toString();const n=t.startsWith("-");n&&(t=t.slice(1)),t=t.padStart(i,"0");let[l,e]=[t.slice(0,t.length-i),t.slice(t.length-i)];return e=e.replace(/(0+)$/,""),`${n?"-":""}${l||"0"}${e?`.${e}`:""}`}exports.formatUnits=o;
|
package/dist/index255.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function a(r, n) {
|
|
2
|
-
let t = r.toString();
|
|
3
|
-
const i = t.startsWith("-");
|
|
4
|
-
i && (t = t.slice(1)), t = t.padStart(n, "0");
|
|
5
|
-
let [l, e] = [
|
|
6
|
-
t.slice(0, t.length - n),
|
|
7
|
-
t.slice(t.length - n)
|
|
8
|
-
];
|
|
9
|
-
return e = e.replace(/(0+)$/, ""), `${i ? "-" : ""}${l || "0"}${e ? `.${e}` : ""}`;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
a as formatUnits
|
|
13
|
-
};
|
package/dist/index256.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index295.cjs"),r=require("./index296.cjs");function n(t){return e.hashSignature(r.toSignature(t))}exports.toSignatureHash=n;
|
package/dist/index256.js
DELETED
package/dist/index257.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index210.cjs"),o=require("./index137.cjs"),s=require("./index212.cjs"),r=require("./index33.cjs");function c(e){const t=typeof e=="string"?r.stringToHex(e):typeof e.raw=="string"?e.raw:r.bytesToHex(e.raw),i=r.stringToHex(`${n.presignMessagePrefix}${s.size(t)}`);return o.concat([i,t])}exports.toPrefixedMessage=c;
|
package/dist/index257.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { presignMessagePrefix as e } from "./index210.js";
|
|
2
|
-
import { concat as n } from "./index137.js";
|
|
3
|
-
import { size as f } from "./index212.js";
|
|
4
|
-
import { stringToHex as o, bytesToHex as p } from "./index33.js";
|
|
5
|
-
function u(r) {
|
|
6
|
-
const t = typeof r == "string" ? o(r) : typeof r.raw == "string" ? r.raw : p(r.raw), i = o(`${e}${f(t)}`);
|
|
7
|
-
return n([i, t]);
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
u as toPrefixedMessage
|
|
11
|
-
};
|
package/dist/index258.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index290.cjs"),c=require("./index263.cjs"),A=BigInt(0),u=BigInt(1),H=BigInt(2),L=BigInt(7),S=BigInt(256),T=BigInt(113),O=[],y=[],w=[];for(let n=0,t=u,s=1,i=0;n<24;n++){[s,i]=[i,(2*s+3*i)%5],O.push(2*(5*i+s)),y.push((n+1)*(n+2)/2%64);let o=A;for(let r=0;r<7;r++)t=(t<<u^(t>>L)*T)%S,t&H&&(o^=u<<(u<<BigInt(r))-u);w.push(o)}const _=f.split(w,!0),F=_[0],X=_[1],I=(n,t,s)=>s>32?f.rotlBH(n,t,s):f.rotlSH(n,t,s),x=(n,t,s)=>s>32?f.rotlBL(n,t,s):f.rotlSL(n,t,s);function b(n,t=24){const s=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let e=0;e<10;e++)s[e]=n[e]^n[e+10]^n[e+20]^n[e+30]^n[e+40];for(let e=0;e<10;e+=2){const h=(e+8)%10,l=(e+2)%10,p=s[l],a=s[l+1],g=I(p,a,1)^s[h],B=x(p,a,1)^s[h+1];for(let d=0;d<50;d+=10)n[e+d]^=g,n[e+d+1]^=B}let o=n[2],r=n[3];for(let e=0;e<24;e++){const h=y[e],l=I(o,r,h),p=x(o,r,h),a=O[e];o=n[a],r=n[a+1],n[a]=l,n[a+1]=p}for(let e=0;e<50;e+=10){for(let h=0;h<10;h++)s[h]=n[e+h];for(let h=0;h<10;h++)n[e+h]^=~s[(h+2)%10]&s[(h+4)%10]}n[0]^=F[i],n[1]^=X[i]}c.clean(s)}class k extends c.Hash{constructor(t,s,i,o=!1,r=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=s,this.outputLen=i,this.enableXOF=o,this.rounds=r,c.anumber(i),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=c.u32(this.state)}clone(){return this._cloneInto()}keccak(){c.swap32IfBE(this.state32),b(this.state32,this.rounds),c.swap32IfBE(this.state32),this.posOut=0,this.pos=0}update(t){c.aexists(this),t=c.toBytes(t),c.abytes(t);const{blockLen:s,state:i}=this,o=t.length;for(let r=0;r<o;){const e=Math.min(s-this.pos,o-r);for(let h=0;h<e;h++)i[this.pos++]^=t[r++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:s,pos:i,blockLen:o}=this;t[i]^=s,s&128&&i===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){c.aexists(this,!1),c.abytes(t),this.finish();const s=this.state,{blockLen:i}=this;for(let o=0,r=t.length;o<r;){this.posOut>=i&&this.keccak();const e=Math.min(i-this.posOut,r-o);t.set(s.subarray(this.posOut,this.posOut+e),o),this.posOut+=e,o+=e}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return c.anumber(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(c.aoutput(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,c.clean(this.state)}_cloneInto(t){const{blockLen:s,suffix:i,outputLen:o,rounds:r,enableXOF:e}=this;return t||(t=new k(s,i,o,e,r)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=r,t.suffix=i,t.outputLen=o,t.enableXOF=e,t.destroyed=this.destroyed,t}}const m=(n,t,s)=>c.createHasher(()=>new k(t,n,s)),E=m(1,136,256/8);exports.Keccak=k;exports.keccakP=b;exports.keccak_256=E;
|