@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/index11.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index5.cjs"),f=require("./index9.cjs");class y{constructor(e){this._apiKey=e}async getToken(){const e=this.verifyToken();return e.error?r.Err(e.error):e.val?r.Ok(this._apiKey):r.Err("Token verification failed")}verifyToken(){return this._apiKey.length===64?r.Ok(!0):r.Err("Invalid API key length")}decodeBase64UrlSafe(e){let t=e.replace(/_/g,"/").replace(/-/g,"+");for(;t.length%4!==0;)t+="=";return Uint8Array.from(atob(t),n=>n.charCodeAt(0))}extractData(e){const t=new TextEncoder().encode("::"),n=e.findIndex((i,a)=>e.slice(a,a+t.length).every((l,u)=>l===t[u]));if(n===-1)return r.Err("Invalid format: delimiter not found");const o=e.slice(0,8),s=new DataView(o.buffer).getBigUint64(0,!1),c=e.slice(n+t.length);return r.Ok({expiryTimestamp:new Date(Number(s)*1e3),signature:Array.from(c).map(i=>i.toString(16).padStart(2,"0")).join("")})}async getAuthHeaders(){const e=await this.getToken();return e.ok?r.Ok({[f.AuthHeaderEnum.ApiKey]:e.val}):r.Err(e.error??"Failed to get auth token")}}exports.ApiKey=y;
|
package/dist/index11.js
CHANGED
|
@@ -1,46 +1,42 @@
|
|
|
1
|
-
import { Err as
|
|
2
|
-
import { AuthHeaderEnum as
|
|
3
|
-
class
|
|
1
|
+
import { Err as t, Ok as i } from "./index5.js";
|
|
2
|
+
import { AuthHeaderEnum as d } from "./index9.js";
|
|
3
|
+
class y {
|
|
4
4
|
constructor(e) {
|
|
5
|
-
this.
|
|
5
|
+
this._apiKey = e;
|
|
6
6
|
}
|
|
7
7
|
async getToken() {
|
|
8
8
|
const e = this.verifyToken();
|
|
9
|
-
return e.error ?
|
|
9
|
+
return e.error ? t(e.error) : e.val ? i(this._apiKey) : t("Token verification failed");
|
|
10
10
|
}
|
|
11
11
|
verifyToken() {
|
|
12
|
-
|
|
13
|
-
if (!r.ok)
|
|
14
|
-
return i(r.error);
|
|
15
|
-
const { expiryTimestamp: t } = r.val;
|
|
16
|
-
return t < /* @__PURE__ */ new Date() ? i("Token expired") : n(!0);
|
|
12
|
+
return this._apiKey.length === 64 ? i(!0) : t("Invalid API key length");
|
|
17
13
|
}
|
|
18
14
|
decodeBase64UrlSafe(e) {
|
|
19
15
|
let r = e.replace(/_/g, "/").replace(/-/g, "+");
|
|
20
16
|
for (; r.length % 4 !== 0; )
|
|
21
17
|
r += "=";
|
|
22
|
-
return Uint8Array.from(atob(r), (
|
|
18
|
+
return Uint8Array.from(atob(r), (n) => n.charCodeAt(0));
|
|
23
19
|
}
|
|
24
20
|
extractData(e) {
|
|
25
|
-
const r = new TextEncoder().encode("::"),
|
|
26
|
-
(a, o) => e.slice(o, o + r.length).every((f,
|
|
21
|
+
const r = new TextEncoder().encode("::"), n = e.findIndex(
|
|
22
|
+
(a, o) => e.slice(o, o + r.length).every((f, u) => f === r[u])
|
|
27
23
|
);
|
|
28
|
-
if (
|
|
29
|
-
return
|
|
24
|
+
if (n === -1)
|
|
25
|
+
return t("Invalid format: delimiter not found");
|
|
30
26
|
const s = e.slice(0, 8), c = new DataView(s.buffer).getBigUint64(
|
|
31
27
|
0,
|
|
32
28
|
!1
|
|
33
|
-
),
|
|
34
|
-
return
|
|
29
|
+
), l = e.slice(n + r.length);
|
|
30
|
+
return i({
|
|
35
31
|
expiryTimestamp: new Date(Number(c) * 1e3),
|
|
36
|
-
signature: Array.from(
|
|
32
|
+
signature: Array.from(l).map((a) => a.toString(16).padStart(2, "0")).join("")
|
|
37
33
|
});
|
|
38
34
|
}
|
|
39
35
|
async getAuthHeaders() {
|
|
40
36
|
const e = await this.getToken();
|
|
41
|
-
return e.ok ?
|
|
37
|
+
return e.ok ? i({ [d.ApiKey]: e.val }) : t(e.error ?? "Failed to get auth token");
|
|
42
38
|
}
|
|
43
39
|
}
|
|
44
40
|
export {
|
|
45
|
-
|
|
41
|
+
y as ApiKey
|
|
46
42
|
};
|
package/dist/index110.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function r(e,s){return e.request({method:"wallet_requestPermissions",params:[s]},{retryCount:0})}exports.requestPermissions=r;
|
package/dist/index110.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}), { cacheKey: r(e.uid), cacheTime: c });
|
|
7
|
-
return BigInt(o);
|
|
1
|
+
async function s(e, r) {
|
|
2
|
+
return e.request({
|
|
3
|
+
method: "wallet_requestPermissions",
|
|
4
|
+
params: [r]
|
|
5
|
+
}, { retryCount: 0 });
|
|
8
6
|
}
|
|
9
7
|
export {
|
|
10
|
-
|
|
8
|
+
s as requestPermissions
|
|
11
9
|
};
|
package/dist/index111.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(t){return typeof t[0]=="string"?f(t):o(t)}function o(t){let n=0;for(const r of t)n+=r.length;const e=new Uint8Array(n);let c=0;for(const r of t)e.set(r,c),c+=r.length;return e}function f(t){return`0x${t.reduce((n,e)=>n+e.replace("0x",""),"")}`}exports.concat=a;exports.concatBytes=o;exports.concatHex=f;
|
package/dist/index111.js
CHANGED
|
@@ -1,34 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const a = (s, t) => ({
|
|
4
|
-
clear: () => t.delete(s),
|
|
5
|
-
get: () => t.get(s),
|
|
6
|
-
set: (r) => t.set(s, r)
|
|
7
|
-
}), n = a(o, i), e = a(o, c);
|
|
8
|
-
return {
|
|
9
|
-
clear: () => {
|
|
10
|
-
n.clear(), e.clear();
|
|
11
|
-
},
|
|
12
|
-
promise: n,
|
|
13
|
-
response: e
|
|
14
|
-
};
|
|
1
|
+
function i(t) {
|
|
2
|
+
return typeof t[0] == "string" ? f(t) : c(t);
|
|
15
3
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
4
|
+
function c(t) {
|
|
5
|
+
let n = 0;
|
|
6
|
+
for (const e of t)
|
|
7
|
+
n += e.length;
|
|
8
|
+
const r = new Uint8Array(n);
|
|
9
|
+
let o = 0;
|
|
10
|
+
for (const e of t)
|
|
11
|
+
r.set(e, o), o += e.length;
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
function f(t) {
|
|
15
|
+
return `0x${t.reduce((n, r) => n + r.replace("0x", ""), "")}`;
|
|
28
16
|
}
|
|
29
17
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
l as withCache
|
|
18
|
+
i as concat,
|
|
19
|
+
c as concatBytes,
|
|
20
|
+
f as concatHex
|
|
34
21
|
};
|
package/dist/index112.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index154.cjs"),i=require("./index78.cjs"),s=require("./index209.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/index112.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
1
|
+
import { UnknownNodeError as c } from "./index154.js";
|
|
2
|
+
import { TransactionExecutionError as i } from "./index78.js";
|
|
3
|
+
import { getNodeError as u } from "./index209.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
13
|
}
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
s as getTransactionError
|
|
16
16
|
};
|
package/dist/index113.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function t(e,{serializedTransaction:n}){return e.request({method:"eth_sendRawTransaction",params:[n]},{retryCount:0})}exports.sendRawTransaction=t;
|
package/dist/index113.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}, {
|
|
6
|
-
return n(t);
|
|
1
|
+
async function a(n, { serializedTransaction: t }) {
|
|
2
|
+
return n.request({
|
|
3
|
+
method: "eth_sendRawTransaction",
|
|
4
|
+
params: [t]
|
|
5
|
+
}, { retryCount: 0 });
|
|
7
6
|
}
|
|
8
7
|
export {
|
|
9
|
-
|
|
8
|
+
a as sendRawTransaction
|
|
10
9
|
};
|
package/dist/index114.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index36.cjs");function i({chain:r,currentChainId:t}){if(!r)throw new e.ChainNotFoundError;if(t!==r.id)throw new e.ChainMismatchError({chain:r,currentChainId:t})}exports.assertCurrentChain=i;
|
package/dist/index114.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (t !== "0x")
|
|
8
|
-
return t;
|
|
1
|
+
import { ChainNotFoundError as t, ChainMismatchError as i } from "./index36.js";
|
|
2
|
+
function e({ chain: r, currentChainId: o }) {
|
|
3
|
+
if (!r)
|
|
4
|
+
throw new t();
|
|
5
|
+
if (o !== r.id)
|
|
6
|
+
throw new i({ chain: r, currentChainId: o });
|
|
9
7
|
}
|
|
10
8
|
export {
|
|
11
|
-
|
|
9
|
+
e as assertCurrentChain
|
|
12
10
|
};
|
package/dist/index115.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class i extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&t!==void 0&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const s=this.keys().next().value;s&&this.delete(s)}return this}}exports.LruMap=i;
|
package/dist/index115.js
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
class r extends Map {
|
|
2
|
+
constructor(e) {
|
|
3
|
+
super(), Object.defineProperty(this, "maxSize", {
|
|
4
|
+
enumerable: !0,
|
|
5
|
+
configurable: !0,
|
|
6
|
+
writable: !0,
|
|
7
|
+
value: void 0
|
|
8
|
+
}), this.maxSize = e;
|
|
9
|
+
}
|
|
10
|
+
get(e) {
|
|
11
|
+
const t = super.get(e);
|
|
12
|
+
return super.has(e) && t !== void 0 && (this.delete(e), super.set(e, t)), t;
|
|
13
|
+
}
|
|
14
|
+
set(e, t) {
|
|
15
|
+
if (super.set(e, t), this.maxSize && this.size > this.maxSize) {
|
|
16
|
+
const s = this.keys().next().value;
|
|
17
|
+
s && this.delete(s);
|
|
18
|
+
}
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
16
21
|
}
|
|
17
22
|
export {
|
|
18
|
-
|
|
23
|
+
r as LruMap
|
|
19
24
|
};
|
package/dist/index116.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function e(t,s){const{id:a}=s;await t.request({method:"wallet_showCallsStatus",params:[a]})}exports.showCallsStatus=e;
|
package/dist/index116.js
CHANGED
|
@@ -1,76 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const { abi: o, args: n = [], name: e } = s, u = d(e, { strict: !1 }), i = o.filter((t) => u ? t.type === "function" ? b(t) === e : t.type === "event" ? g(t) === e : !1 : "name" in t && t.name === e);
|
|
8
|
-
if (i.length === 0)
|
|
9
|
-
return;
|
|
10
|
-
if (i.length === 1)
|
|
11
|
-
return i[0];
|
|
12
|
-
let r;
|
|
13
|
-
for (const t of i) {
|
|
14
|
-
if (!("inputs" in t))
|
|
15
|
-
continue;
|
|
16
|
-
if (!n || n.length === 0) {
|
|
17
|
-
if (!t.inputs || t.inputs.length === 0)
|
|
18
|
-
return t;
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
if (!t.inputs || t.inputs.length === 0 || t.inputs.length !== n.length)
|
|
22
|
-
continue;
|
|
23
|
-
if (n.every((c, m) => {
|
|
24
|
-
const l = "inputs" in t && t.inputs[m];
|
|
25
|
-
return l ? p(c, l) : !1;
|
|
26
|
-
})) {
|
|
27
|
-
if (r && "inputs" in r && r.inputs) {
|
|
28
|
-
const c = a(t.inputs, r.inputs, n);
|
|
29
|
-
if (c)
|
|
30
|
-
throw new y({
|
|
31
|
-
abiItem: t,
|
|
32
|
-
type: c[0]
|
|
33
|
-
}, {
|
|
34
|
-
abiItem: r,
|
|
35
|
-
type: c[1]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
r = t;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return r || i[0];
|
|
42
|
-
}
|
|
43
|
-
function p(s, o) {
|
|
44
|
-
const n = typeof s, e = o.type;
|
|
45
|
-
switch (e) {
|
|
46
|
-
case "address":
|
|
47
|
-
return f(s, { strict: !1 });
|
|
48
|
-
case "bool":
|
|
49
|
-
return n === "boolean";
|
|
50
|
-
case "function":
|
|
51
|
-
return n === "string";
|
|
52
|
-
case "string":
|
|
53
|
-
return n === "string";
|
|
54
|
-
default:
|
|
55
|
-
return e === "tuple" && "components" in o ? Object.values(o.components).every((u, i) => p(Object.values(s)[i], u)) : /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(e) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(e) ? n === "string" || s instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(e) ? Array.isArray(s) && s.every((u) => p(u, {
|
|
56
|
-
...o,
|
|
57
|
-
// Pop off `[]` or `[M]` from end of type
|
|
58
|
-
type: e.replace(/(\[[0-9]{0,}\])$/, "")
|
|
59
|
-
})) : !1;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function a(s, o, n) {
|
|
63
|
-
for (const e in s) {
|
|
64
|
-
const u = s[e], i = o[e];
|
|
65
|
-
if (u.type === "tuple" && i.type === "tuple" && "components" in u && "components" in i)
|
|
66
|
-
return a(u.components, i.components, n[e]);
|
|
67
|
-
const r = [u.type, i.type];
|
|
68
|
-
if (r.includes("address") && r.includes("bytes20") ? !0 : r.includes("address") && r.includes("string") ? f(n[e], { strict: !1 }) : r.includes("address") && r.includes("bytes") ? f(n[e], { strict: !1 }) : !1)
|
|
69
|
-
return r;
|
|
70
|
-
}
|
|
1
|
+
async function e(t, a) {
|
|
2
|
+
const { id: s } = a;
|
|
3
|
+
await t.request({
|
|
4
|
+
method: "wallet_showCallsStatus",
|
|
5
|
+
params: [s]
|
|
6
|
+
});
|
|
71
7
|
}
|
|
72
8
|
export {
|
|
73
|
-
|
|
74
|
-
a as getAmbiguousTypes,
|
|
75
|
-
p as isArgOfType
|
|
9
|
+
e as showCallsStatus
|
|
76
10
|
};
|
package/dist/index117.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index32.cjs"),r=require("./index102.cjs"),e=require("./index101.cjs");async function a(t,n){const{account:i=t.account}=n;if(!i)throw new r.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});const o=u.parseAccount(i);if(!o.signAuthorization)throw new r.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:o.type});const c=await e.prepareAuthorization(t,n);return o.signAuthorization(c)}exports.signAuthorization=a;
|
package/dist/index117.js
CHANGED
|
@@ -1,38 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
address: a,
|
|
22
|
-
topics: t,
|
|
23
|
-
fromBlock: typeof o == "bigint" ? u(o) : o,
|
|
24
|
-
toBlock: typeof i == "bigint" ? u(i) : i
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
});
|
|
28
|
-
const p = s.map((d) => y(d));
|
|
29
|
-
return e ? l({
|
|
30
|
-
abi: e,
|
|
31
|
-
args: g,
|
|
32
|
-
logs: p,
|
|
33
|
-
strict: b
|
|
34
|
-
}) : p;
|
|
1
|
+
import { parseAccount as c } from "./index32.js";
|
|
2
|
+
import { AccountNotFoundError as u, AccountTypeNotSupportedError as a } from "./index102.js";
|
|
3
|
+
import { prepareAuthorization as s } from "./index101.js";
|
|
4
|
+
async function A(t, n) {
|
|
5
|
+
const { account: i = t.account } = n;
|
|
6
|
+
if (!i)
|
|
7
|
+
throw new u({
|
|
8
|
+
docsPath: "/docs/eip7702/signAuthorization"
|
|
9
|
+
});
|
|
10
|
+
const o = c(i);
|
|
11
|
+
if (!o.signAuthorization)
|
|
12
|
+
throw new a({
|
|
13
|
+
docsPath: "/docs/eip7702/signAuthorization",
|
|
14
|
+
metaMessages: [
|
|
15
|
+
"The `signAuthorization` Action does not support JSON-RPC Accounts."
|
|
16
|
+
],
|
|
17
|
+
type: o.type
|
|
18
|
+
});
|
|
19
|
+
const r = await s(t, n);
|
|
20
|
+
return o.signAuthorization(r);
|
|
35
21
|
}
|
|
36
22
|
export {
|
|
37
|
-
|
|
23
|
+
A as signAuthorization
|
|
38
24
|
};
|
package/dist/index118.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index32.cjs"),a=require("./index102.cjs"),o=require("./index42.cjs");async function i(n,{account:e=n.account,message:r}){if(!e)throw new a.AccountNotFoundError({docsPath:"/docs/actions/wallet/signMessage"});const t=c.parseAccount(e);if(t.signMessage)return t.signMessage({message:r});const s=typeof r=="string"?o.stringToHex(r):r.raw instanceof Uint8Array?o.toHex(r.raw):r.raw;return n.request({method:"personal_sign",params:[s,t.address]},{retryCount:0})}exports.signMessage=i;
|
package/dist/index118.js
CHANGED
|
@@ -1,49 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
async function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
abi: g,
|
|
9
|
-
address: e,
|
|
10
|
-
functionName: "eip712Domain",
|
|
11
|
-
factory: r,
|
|
12
|
-
factoryData: i
|
|
1
|
+
import { parseAccount as e } from "./index32.js";
|
|
2
|
+
import { AccountNotFoundError as i } from "./index102.js";
|
|
3
|
+
import { stringToHex as a, toHex as c } from "./index42.js";
|
|
4
|
+
async function g(n, { account: o = n.account, message: r }) {
|
|
5
|
+
if (!o)
|
|
6
|
+
throw new i({
|
|
7
|
+
docsPath: "/docs/actions/wallet/signMessage"
|
|
13
8
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
extensions: y,
|
|
23
|
-
fields: n
|
|
24
|
-
};
|
|
25
|
-
} catch (n) {
|
|
26
|
-
const t = n;
|
|
27
|
-
throw t.name === "ContractFunctionExecutionError" && t.cause.name === "ContractFunctionZeroDataError" ? new u({ address: e }) : t;
|
|
28
|
-
}
|
|
9
|
+
const t = e(o);
|
|
10
|
+
if (t.signMessage)
|
|
11
|
+
return t.signMessage({ message: r });
|
|
12
|
+
const s = typeof r == "string" ? a(r) : r.raw instanceof Uint8Array ? c(r.raw) : r.raw;
|
|
13
|
+
return n.request({
|
|
14
|
+
method: "personal_sign",
|
|
15
|
+
params: [s, t.address]
|
|
16
|
+
}, { retryCount: 0 });
|
|
29
17
|
}
|
|
30
|
-
const g = [
|
|
31
|
-
{
|
|
32
|
-
inputs: [],
|
|
33
|
-
name: "eip712Domain",
|
|
34
|
-
outputs: [
|
|
35
|
-
{ name: "fields", type: "bytes1" },
|
|
36
|
-
{ name: "name", type: "string" },
|
|
37
|
-
{ name: "version", type: "string" },
|
|
38
|
-
{ name: "chainId", type: "uint256" },
|
|
39
|
-
{ name: "verifyingContract", type: "address" },
|
|
40
|
-
{ name: "salt", type: "bytes32" },
|
|
41
|
-
{ name: "extensions", type: "uint256[]" }
|
|
42
|
-
],
|
|
43
|
-
stateMutability: "view",
|
|
44
|
-
type: "function"
|
|
45
|
-
}
|
|
46
|
-
];
|
|
47
18
|
export {
|
|
48
|
-
|
|
19
|
+
g as signMessage
|
|
49
20
|
};
|
package/dist/index119.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 g=require("./index32.cjs"),f=require("./index102.cjs"),C=require("./index114.cjs"),T=require("./index42.cjs"),m=require("./index45.cjs"),I=require("./index55.cjs"),w=require("./index48.cjs"),A=require("./index70.cjs");async function R(t,s){var i,u,d,h;const{account:o=t.account,chain:n=t.chain,...c}=s;if(!o)throw new f.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const r=g.parseAccount(o);w.assertRequest({account:r,...s});const a=await I.getAction(t,A.getChainId,"getChainId")({});n!==null&&C.assertCurrentChain({currentChainId:a,chain:n});const e=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),q=((u=e==null?void 0:e.transactionRequest)==null?void 0:u.format)||m.formatTransactionRequest;return r.signTransaction?r.signTransaction({...c,chainId:a},{serializer:(h=(d=t.chain)==null?void 0:d.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...q(c),chainId:T.numberToHex(a),from:r.address}]},{retryCount:0})}exports.signTransaction=R;
|
package/dist/index119.js
CHANGED
|
@@ -1,17 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { parseAccount as d } from "./index32.js";
|
|
2
|
+
import { AccountNotFoundError as p } from "./index102.js";
|
|
3
|
+
import { assertCurrentChain as g } from "./index114.js";
|
|
4
|
+
import { numberToHex as T } from "./index42.js";
|
|
5
|
+
import { formatTransactionRequest as C } from "./index45.js";
|
|
6
|
+
import { getAction as w } from "./index55.js";
|
|
7
|
+
import { assertRequest as I } from "./index48.js";
|
|
8
|
+
import { getChainId as q } from "./index70.js";
|
|
9
|
+
async function E(t, s) {
|
|
10
|
+
var e, m, u, f;
|
|
11
|
+
const { account: i = t.account, chain: r = t.chain, ...c } = s;
|
|
12
|
+
if (!i)
|
|
13
|
+
throw new p({
|
|
14
|
+
docsPath: "/docs/actions/wallet/signTransaction"
|
|
12
15
|
});
|
|
13
|
-
|
|
16
|
+
const o = d(i);
|
|
17
|
+
I({
|
|
18
|
+
account: o,
|
|
19
|
+
...s
|
|
20
|
+
});
|
|
21
|
+
const n = await w(t, q, "getChainId")({});
|
|
22
|
+
r !== null && g({
|
|
23
|
+
currentChainId: n,
|
|
24
|
+
chain: r
|
|
25
|
+
});
|
|
26
|
+
const a = (r == null ? void 0 : r.formatters) || ((e = t.chain) == null ? void 0 : e.formatters), h = ((m = a == null ? void 0 : a.transactionRequest) == null ? void 0 : m.format) || C;
|
|
27
|
+
return o.signTransaction ? o.signTransaction({
|
|
28
|
+
...c,
|
|
29
|
+
chainId: n
|
|
30
|
+
}, { serializer: (f = (u = t.chain) == null ? void 0 : u.serializers) == null ? void 0 : f.transaction }) : await t.request({
|
|
31
|
+
method: "eth_signTransaction",
|
|
32
|
+
params: [
|
|
33
|
+
{
|
|
34
|
+
...h(c),
|
|
35
|
+
chainId: T(n),
|
|
36
|
+
from: o.address
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}, { retryCount: 0 });
|
|
14
40
|
}
|
|
15
41
|
export {
|
|
16
|
-
|
|
42
|
+
E as signTransaction
|
|
17
43
|
};
|
package/dist/index120.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index32.cjs"),y=require("./index102.cjs"),s=require("./index121.cjs");async function p(c,r){const{account:i=c.account,domain:t,message:a,primaryType:e}=r;if(!i)throw new y.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});const n=u.parseAccount(i),o={EIP712Domain:s.getTypesForEIP712Domain({domain:t}),...r.types};if(s.validateTypedData({domain:t,message:a,primaryType:e,types:o}),n.signTypedData)return n.signTypedData({domain:t,message:a,primaryType:e,types:o});const d=s.serializeTypedData({domain:t,message:a,primaryType:e,types:o});return c.request({method:"eth_signTypedData_v4",params:[n.address,d]},{retryCount:0})}exports.signTypedData=p;
|