@gardenfi/utils 2.5.3 → 3.0.0-beta.2
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 +40 -40
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +5 -5
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +120 -36
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +5 -17
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +21 -6
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +45 -9
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +37 -12
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +6 -109
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +89 -7
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +14 -6
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +3 -7
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +25 -20
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +16 -20
- package/dist/index110.cjs +2 -1
- package/dist/index110.js +24 -8
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +9 -31
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +8 -13
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +10 -7
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +11 -9
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +13 -16
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +18 -70
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +14 -35
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +4 -46
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +6 -14
- package/dist/index120.cjs +1 -1
- package/dist/index120.js +18 -13
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +10 -9
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +57 -15
- package/dist/index123.cjs +1 -1
- package/dist/index123.js +6 -65
- package/dist/index124.cjs +1 -1
- package/dist/index124.js +13 -11
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +7 -13
- package/dist/index126.cjs +1 -1
- package/dist/index126.js +137 -8
- package/dist/index127.cjs +1 -1
- package/dist/index127.js +7 -10
- package/dist/index128.cjs +1 -1
- package/dist/index128.js +20 -25
- package/dist/index129.cjs +1 -1
- package/dist/index129.js +17 -14
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +1 -3
- package/dist/index130.js +42 -109
- package/dist/index131.cjs +1 -1
- package/dist/index131.js +20 -50
- package/dist/index132.cjs +1 -1
- package/dist/index132.js +79 -23
- package/dist/index133.cjs +1 -1
- package/dist/index133.js +10 -116
- package/dist/index134.cjs +1 -20
- package/dist/index134.js +8 -321
- package/dist/index135.cjs +1 -1
- package/dist/index135.js +6 -81
- package/dist/index136.cjs +1 -4
- package/dist/index136.js +42 -195
- package/dist/index137.cjs +1 -1
- package/dist/index137.js +5 -18
- package/dist/index138.cjs +1 -1
- package/dist/index138.js +13 -24
- package/dist/index139.cjs +1 -1
- package/dist/index139.js +34 -177
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +54 -11
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +25 -24
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +7 -3
- package/dist/index143.cjs +1 -1
- package/dist/index143.js +18 -89
- package/dist/index144.cjs +1 -1
- package/dist/index144.js +15 -37
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +5 -15
- package/dist/index146.cjs +1 -1
- package/dist/index146.js +14 -2
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +10 -75
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +11 -137
- package/dist/index149.cjs +1 -3
- package/dist/index149.js +11 -451
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +8 -64
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +3 -6
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +16 -69
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -5
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +171 -3
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +102 -13
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +31 -86
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +9 -13
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +58 -43
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +19 -38
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +18 -26
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +106 -7
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +76 -55
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +8 -12
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +70 -7
- package/dist/index164.cjs +2 -1
- package/dist/index164.js +3 -21
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +9 -10
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +12 -14
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +4 -103
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +2 -5
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +32 -7
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +113 -14
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +19 -24
- package/dist/index171.cjs +1 -2
- package/dist/index171.js +5 -24
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +5 -9
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +5 -8
- package/dist/index174.cjs +9 -1
- package/dist/index174.js +34 -9
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +3 -12
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +18 -13
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +20 -14
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +35 -7
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +7 -20
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +118 -104
- package/dist/index180.cjs +4 -1
- package/dist/index180.js +194 -6
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +25 -19
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +159 -38
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +127 -17
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +27 -21
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +185 -74
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +4 -45
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +20 -11
- package/dist/index188.cjs +1 -1
- package/dist/index188.js +3 -53
- package/dist/index189.cjs +1 -1
- package/dist/index189.js +16 -3
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -121
- package/dist/index190.cjs +1 -1
- package/dist/index190.js +34 -5
- package/dist/index191.cjs +1 -1
- package/dist/index191.js +3 -6
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +27 -11
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +25 -13
- package/dist/index194.cjs +1 -1
- package/dist/index194.js +28 -13
- package/dist/index195.cjs +1 -1
- package/dist/index195.js +6 -6
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +6 -151
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +30 -33
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +5 -33
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +36 -8
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +13 -2
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +41 -60
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +32 -9
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +16 -70
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +40 -17
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +104 -110
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +3 -24
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +5 -50
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +3 -106
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +18 -9
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +9 -2
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +296 -13
- package/dist/index210.cjs +1 -2
- package/dist/index210.js +6 -3
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +26 -12
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +78 -4
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +2 -2
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +19 -32
- package/dist/index215.cjs +1 -1
- package/dist/index215.js +17 -21
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +10 -5
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +24 -5
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +46 -5
- package/dist/index219.cjs +1 -9
- package/dist/index219.js +9 -35
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +36 -464
- package/dist/index220.cjs +1 -1
- package/dist/index220.js +104 -3
- package/dist/index221.cjs +1 -1
- package/dist/index221.js +15 -25
- package/dist/index222.cjs +1 -1
- package/dist/index222.js +210 -29
- package/dist/index223.cjs +1 -1
- package/dist/index223.js +107 -34
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +205 -7
- package/dist/index225.cjs +1 -1
- package/dist/index225.js +39 -15
- package/dist/index226.cjs +1 -1
- package/dist/index226.js +75 -24
- package/dist/index227.cjs +1 -1
- package/dist/index227.js +2 -9
- package/dist/index228.cjs +2 -1
- package/dist/index228.js +41 -7
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +2 -162
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +25 -34
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +5 -127
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +10 -27
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +16 -188
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +9 -4
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +67 -3
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +61 -16
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +185 -13
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +24 -30
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +77 -3
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +38 -25
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +7 -26
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +14 -23
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +12 -27
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +11 -27
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +9 -39
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +6 -78
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +7 -2
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +25 -36
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +17 -47
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +11 -6
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +19 -6
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +13 -8
- package/dist/index250.cjs +2 -1
- package/dist/index250.js +89 -30
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +15 -5
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +655 -6
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +177 -3
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +68 -17
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +4 -10
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +2 -6
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +59 -31
- package/dist/index27.cjs +16 -1
- package/dist/index27.js +112 -30
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +30 -12
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +169 -55
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +41 -22
- 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 +16 -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 +65 -120
- 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 +163 -15
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +23 -16
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +77 -7
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +12 -32
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +51 -24
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +7 -22
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +6 -57
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +21 -40
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +8 -37
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +29 -164
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +16 -111
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +72 -29
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +36 -2
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +17 -4
- package/dist/index78.cjs +1 -2
- package/dist/index78.js +74 -58
- package/dist/index79.cjs +1 -2
- package/dist/index79.js +12 -54
- package/dist/index80.cjs +1 -3
- package/dist/index80.js +28 -214
- package/dist/index81.cjs +2 -1
- package/dist/index81.js +120 -13
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +14 -12
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +23 -23
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +32 -27
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +43 -46
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +6 -19
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +103 -11
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +36 -39
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +8 -9
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +2 -2
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +20 -7
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +2 -32
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +75 -36
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +15 -36
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +151 -9
- package/dist/index95.cjs +20 -1
- package/dist/index95.js +324 -27
- package/dist/index96.cjs +3 -1
- package/dist/index96.js +451 -22
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +61 -86
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +16 -50
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +10 -23
- 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 +16 -0
- package/package.json +3 -3
- 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/index126.js
CHANGED
|
@@ -1,11 +1,140 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { parseAccount as U } from "./index32.js";
|
|
2
|
+
import { AccountNotFoundError as W, AccountTypeNotSupportedError as h } from "./index110.js";
|
|
3
|
+
import { BaseError as j } from "./index35.js";
|
|
4
|
+
import { TransactionReceiptRevertedError as D } from "./index81.js";
|
|
5
|
+
import { recoverAuthorizationAddress as H } from "./index62.js";
|
|
6
|
+
import { assertCurrentChain as J } from "./index125.js";
|
|
7
|
+
import { getTransactionError as K } from "./index67.js";
|
|
8
|
+
import { extract as Q } from "./index44.js";
|
|
9
|
+
import { formatTransactionRequest as V } from "./index45.js";
|
|
10
|
+
import { getAction as d } from "./index55.js";
|
|
11
|
+
import { LruMap as X } from "./index116.js";
|
|
12
|
+
import { assertRequest as Y } from "./index48.js";
|
|
13
|
+
import { getChainId as Z } from "./index69.js";
|
|
14
|
+
import { waitForTransactionReceipt as $ } from "./index87.js";
|
|
15
|
+
import { prepareTransactionRequest as tt, defaultParameters as rt } from "./index64.js";
|
|
16
|
+
import { sendRawTransactionSync as et } from "./index124.js";
|
|
17
|
+
const w = new X(128);
|
|
18
|
+
async function Tt(r, o) {
|
|
19
|
+
var v, I, z, A;
|
|
20
|
+
const { account: m = r.account, chain: e = r.chain, accessList: l, authorizationList: s, blobs: y, data: R, gas: T, gasPrice: g, maxFeePerBlobGas: E, maxFeePerGas: q, maxPriorityFeePerGas: P, nonce: C, pollingInterval: G, throwOnReceiptRevert: F, type: M, value: N, ...S } = o, O = o.timeout ?? Math.max(((e == null ? void 0 : e.blockTime) ?? 0) * 3, 5e3);
|
|
21
|
+
if (typeof m > "u")
|
|
22
|
+
throw new W({
|
|
23
|
+
docsPath: "/docs/actions/wallet/sendTransactionSync"
|
|
24
|
+
});
|
|
25
|
+
const t = m ? U(m) : null;
|
|
26
|
+
try {
|
|
27
|
+
Y(o);
|
|
28
|
+
const a = await (async () => {
|
|
29
|
+
if (o.to)
|
|
30
|
+
return o.to;
|
|
31
|
+
if (o.to !== null && s && s.length > 0)
|
|
32
|
+
return await H({
|
|
33
|
+
authorization: s[0]
|
|
34
|
+
}).catch(() => {
|
|
35
|
+
throw new j("`to` is required. Could not infer from `authorizationList`.");
|
|
36
|
+
});
|
|
37
|
+
})();
|
|
38
|
+
if ((t == null ? void 0 : t.type) === "json-rpc" || t === null) {
|
|
39
|
+
let i;
|
|
40
|
+
e !== null && (i = await d(r, Z, "getChainId")({}), J({
|
|
41
|
+
currentChainId: i,
|
|
42
|
+
chain: e
|
|
43
|
+
}));
|
|
44
|
+
const c = (z = (I = (v = r.chain) == null ? void 0 : v.formatters) == null ? void 0 : I.transactionRequest) == null ? void 0 : z.format, b = (c || V)({
|
|
45
|
+
// Pick out extra data that might exist on the chain's transaction request type.
|
|
46
|
+
...Q(S, { format: c }),
|
|
47
|
+
accessList: l,
|
|
48
|
+
account: t,
|
|
49
|
+
authorizationList: s,
|
|
50
|
+
blobs: y,
|
|
51
|
+
chainId: i,
|
|
52
|
+
data: R,
|
|
53
|
+
gas: T,
|
|
54
|
+
gasPrice: g,
|
|
55
|
+
maxFeePerBlobGas: E,
|
|
56
|
+
maxFeePerGas: q,
|
|
57
|
+
maxPriorityFeePerGas: P,
|
|
58
|
+
nonce: C,
|
|
59
|
+
to: a,
|
|
60
|
+
type: M,
|
|
61
|
+
value: N
|
|
62
|
+
}, "sendTransaction"), _ = w.get(r.uid), k = _ ? "wallet_sendTransaction" : "eth_sendTransaction", B = await (async () => {
|
|
63
|
+
try {
|
|
64
|
+
return await r.request({
|
|
65
|
+
method: k,
|
|
66
|
+
params: [b]
|
|
67
|
+
}, { retryCount: 0 });
|
|
68
|
+
} catch (L) {
|
|
69
|
+
if (_ === !1)
|
|
70
|
+
throw L;
|
|
71
|
+
const n = L;
|
|
72
|
+
if (n.name === "InvalidInputRpcError" || n.name === "InvalidParamsRpcError" || n.name === "MethodNotFoundRpcError" || n.name === "MethodNotSupportedRpcError")
|
|
73
|
+
return await r.request({
|
|
74
|
+
method: "wallet_sendTransaction",
|
|
75
|
+
params: [b]
|
|
76
|
+
}, { retryCount: 0 }).then((u) => (w.set(r.uid, !0), u)).catch((u) => {
|
|
77
|
+
const f = u;
|
|
78
|
+
throw f.name === "MethodNotFoundRpcError" || f.name === "MethodNotSupportedRpcError" ? (w.set(r.uid, !1), n) : f;
|
|
79
|
+
});
|
|
80
|
+
throw n;
|
|
81
|
+
}
|
|
82
|
+
})(), p = await d(r, $, "waitForTransactionReceipt")({
|
|
83
|
+
checkReplacement: !1,
|
|
84
|
+
hash: B,
|
|
85
|
+
pollingInterval: G,
|
|
86
|
+
timeout: O
|
|
87
|
+
});
|
|
88
|
+
if (F && p.status === "reverted")
|
|
89
|
+
throw new D({ receipt: p });
|
|
90
|
+
return p;
|
|
91
|
+
}
|
|
92
|
+
if ((t == null ? void 0 : t.type) === "local") {
|
|
93
|
+
const i = await d(r, tt, "prepareTransactionRequest")({
|
|
94
|
+
account: t,
|
|
95
|
+
accessList: l,
|
|
96
|
+
authorizationList: s,
|
|
97
|
+
blobs: y,
|
|
98
|
+
chain: e,
|
|
99
|
+
data: R,
|
|
100
|
+
gas: T,
|
|
101
|
+
gasPrice: g,
|
|
102
|
+
maxFeePerBlobGas: E,
|
|
103
|
+
maxFeePerGas: q,
|
|
104
|
+
maxPriorityFeePerGas: P,
|
|
105
|
+
nonce: C,
|
|
106
|
+
nonceManager: t.nonceManager,
|
|
107
|
+
parameters: [...rt, "sidecars"],
|
|
108
|
+
type: M,
|
|
109
|
+
value: N,
|
|
110
|
+
...S,
|
|
111
|
+
to: a
|
|
112
|
+
}), c = (A = e == null ? void 0 : e.serializers) == null ? void 0 : A.transaction, x = await t.signTransaction(i, {
|
|
113
|
+
serializer: c
|
|
114
|
+
});
|
|
115
|
+
return await d(r, et, "sendRawTransactionSync")({
|
|
116
|
+
serializedTransaction: x,
|
|
117
|
+
throwOnReceiptRevert: F
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
throw (t == null ? void 0 : t.type) === "smart" ? new h({
|
|
121
|
+
metaMessages: [
|
|
122
|
+
"Consider using the `sendUserOperation` Action instead."
|
|
123
|
+
],
|
|
124
|
+
docsPath: "/docs/actions/bundler/sendUserOperation",
|
|
125
|
+
type: "smart"
|
|
126
|
+
}) : new h({
|
|
127
|
+
docsPath: "/docs/actions/wallet/sendTransactionSync",
|
|
128
|
+
type: t == null ? void 0 : t.type
|
|
129
|
+
});
|
|
130
|
+
} catch (a) {
|
|
131
|
+
throw a instanceof h ? a : K(a, {
|
|
132
|
+
...o,
|
|
133
|
+
account: t,
|
|
134
|
+
chain: o.chain || void 0
|
|
135
|
+
});
|
|
136
|
+
}
|
|
8
137
|
}
|
|
9
138
|
export {
|
|
10
|
-
|
|
139
|
+
Tt as sendTransactionSync
|
|
11
140
|
};
|
package/dist/index127.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/index127.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
n ? b(m, f, "getTransaction")({ hash: n }) : void 0
|
|
8
|
-
]), u = (o == null ? void 0 : o.blockNumber) || (r == null ? void 0 : r.blockNumber);
|
|
9
|
-
return u ? e - u + 1n : 0n;
|
|
1
|
+
async function e(t, a) {
|
|
2
|
+
const { id: s } = a;
|
|
3
|
+
await t.request({
|
|
4
|
+
method: "wallet_showCallsStatus",
|
|
5
|
+
params: [s]
|
|
6
|
+
});
|
|
10
7
|
}
|
|
11
8
|
export {
|
|
12
|
-
|
|
9
|
+
e as showCallsStatus
|
|
13
10
|
};
|
package/dist/index128.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("./index110.cjs"),e=require("./index109.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/index128.js
CHANGED
|
@@ -1,29 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
async function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
method: "eth_getTransactionByHash",
|
|
10
|
-
params: [o]
|
|
11
|
-
}, { dedupe: !0 }) : a ? t = await e.request({
|
|
12
|
-
method: "eth_getTransactionByBlockHashAndIndex",
|
|
13
|
-
params: [a, s(n)]
|
|
14
|
-
}, { dedupe: !0 }) : t = await e.request({
|
|
15
|
-
method: "eth_getTransactionByBlockNumberAndIndex",
|
|
16
|
-
params: [d || m, s(n)]
|
|
17
|
-
}, { dedupe: !!d }), !t)
|
|
18
|
-
throw new p({
|
|
19
|
-
blockHash: a,
|
|
20
|
-
blockNumber: r,
|
|
21
|
-
blockTag: m,
|
|
22
|
-
hash: o,
|
|
23
|
-
index: n
|
|
1
|
+
import { parseAccount as c } from "./index32.js";
|
|
2
|
+
import { AccountNotFoundError as u, AccountTypeNotSupportedError as a } from "./index110.js";
|
|
3
|
+
import { prepareAuthorization as s } from "./index109.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"
|
|
24
9
|
});
|
|
25
|
-
|
|
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);
|
|
26
21
|
}
|
|
27
22
|
export {
|
|
28
|
-
|
|
23
|
+
A as signAuthorization
|
|
29
24
|
};
|
package/dist/index129.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index32.cjs"),a=require("./index110.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/index129.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return
|
|
1
|
+
import { parseAccount as e } from "./index32.js";
|
|
2
|
+
import { AccountNotFoundError as i } from "./index110.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"
|
|
8
|
+
});
|
|
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 });
|
|
14
17
|
}
|
|
15
18
|
export {
|
|
16
|
-
|
|
19
|
+
g as signMessage
|
|
17
20
|
};
|
package/dist/index13.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@simplewebauthn/browser"),e=require("./index5.cjs"),l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@simplewebauthn/browser"),e=require("./index5.cjs"),l=require("./index17.cjs");class u{constructor(r,t){if(this.storeKey="passkey-auth",!window)throw new Error("Passkey is only supported in the browser environment.");this.url=r.endpoint("passkey"),this.store=t}getPasskeyFromStore(){if(this.token&&this.userName)return e.Ok({token:this.token,gardenUserName:this.userName});const r=this.store.getItem(this.storeKey);if(r){const t=JSON.parse(r);return e.Ok(t)}return e.Err("Passkey is not set")}validateUsername(r){return!r||r.length===0?e.Err("Username cannot be empty"):r.length<3||r.length>32?e.Err("Username must be between 3 and 32 characters"):r.includes(" ")?e.Err("Username cannot contain spaces"):e.Ok(r.trim().toLowerCase())}async register(r){var i;const t=this.validateUsername(r);if(t.error)return e.Err(t.error);try{const n=await l.Fetcher.post(this.url.endpoint("register/begin"),{body:JSON.stringify({username:t}),headers:{credentials:"include","Content-Type":"application/json"}});if(n.error)return e.Err("Failed to start registration",n.error);const s=(i=n.result)==null?void 0:i.challenge;if(!s)return e.Err("No challenge found");if(!s.publicKey.authenticatorSelection)return e.Err("No authenticator selection found");s.publicKey.authenticatorSelection.requireResidentKey=!0,s.publicKey.authenticatorSelection.residentKey="required";const a=await c.startRegistration({optionsJSON:s.publicKey}),o=await l.Fetcher.post(this.url.endpoint("register/finish"),{body:JSON.stringify({username:t,credential:a}),headers:{credentials:"include","Content-Type":"application/json"}});return o.error?e.Err("Failed to verify registration: "+o.error):o.result?(this.token=o.result.token,this.userName=t.val,e.Ok(o.result)):e.Err("No verification result found")}catch(n){return e.Err("Registration error",n)}}async login(r){var i;const t=this.validateUsername(r);if(t.error)return e.Err(t.error);try{const n=await l.Fetcher.post(this.url.endpoint("login/begin"),{body:JSON.stringify({username:t}),headers:{credentials:"include","Content-Type":"application/json"}});if(n.error)return e.Err("Failed to start login",n.error);const s=(i=n.result)==null?void 0:i.challenge;if(!s)return e.Err("No challenge found");const a=await c.startAuthentication({optionsJSON:s.publicKey}),o=await l.Fetcher.post(this.url.endpoint("login/finish"),{body:JSON.stringify({username:t,credential:a}),headers:{credentials:"include","Content-Type":"application/json"}});return o.error?e.Err("Failed to verify login",o.error):o.result?(this.token=o.result.token,this.userName=t.val,e.Ok(o.result)):e.Err("No verification result found")}catch(n){return e.Err("Login error",n)}}async conditionalLogin(){var r,t;try{const i=await l.Fetcher.get(this.url.endpoint("conditional-login/begin"),{headers:{credentials:"include"}});if(i.error)return e.Err("Failed to start login",i.error);const n=(r=i.result)==null?void 0:r.challenge;if(!n)return e.Err("No challenge found");const s=await c.startAuthentication({optionsJSON:n.publicKey}),a=await l.Fetcher.post(this.url.endpoint("conditional-login/finish"),{body:JSON.stringify({login_id:(t=i.result)==null?void 0:t.login_id,credential:s}),headers:{credentials:"include","Content-Type":"application/json"}});return a.error?e.Err("Failed to verify login",a.error):a.result?(this.token=a.result.token,this.userName=a.result.gardenUserName,e.Ok(a.result)):e.Err("No verification result found")}catch(i){return e.Err("Conditional login error",i)}}}exports.PasskeyLogin=u;
|
package/dist/index13.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { startRegistration as d, startAuthentication as u } from "@simplewebauthn/browser";
|
|
2
2
|
import { Ok as l, Err as e } from "./index5.js";
|
|
3
|
-
import { Fetcher as c } from "./
|
|
3
|
+
import { Fetcher as c } from "./index17.js";
|
|
4
4
|
class y {
|
|
5
5
|
constructor(t, r) {
|
|
6
6
|
if (this.storeKey = "passkey-auth", !window)
|
package/dist/index130.cjs
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`)}class b extends s.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
|
|
3
|
-
`),{name:"FeeConflictError"})}}class $ extends s.BaseError{constructor({v:r}){super(`Invalid \`v\` value "${r}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class P extends s.BaseError{constructor({transaction:r}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",d(r),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class w extends s.BaseError{constructor({storageKey:r}){super(`Size for storage key "${r}" is invalid. Expected 32 bytes. Got ${Math.floor((r.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class h extends s.BaseError{constructor(r,{account:a,docsPath:t,chain:e,data:n,gas:i,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:f,nonce:p,to:T,value:E}){var m;const y=d({chain:e&&`${e==null?void 0:e.name} (id: ${e==null?void 0:e.id})`,from:a==null?void 0:a.address,to:T,value:typeof E<"u"&&`${g.formatEther(E)} ${((m=e==null?void 0:e.nativeCurrency)==null?void 0:m.symbol)||"ETH"}`,data:n,gas:i,gasPrice:typeof u<"u"&&`${c.formatGwei(u)} gwei`,maxFeePerGas:typeof l<"u"&&`${c.formatGwei(l)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${c.formatGwei(f)} gwei`,nonce:p});super(r.shortMessage,{cause:r,docsPath:t,metaMessages:[...r.metaMessages?[...r.metaMessages," "]:[],"Request Arguments:",y].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=r}}class v extends s.BaseError{constructor({blockHash:r,blockNumber:a,blockTag:t,hash:e,index:n}){let i="Transaction";t&&n!==void 0&&(i=`Transaction at block time "${t}" at index "${n}"`),r&&n!==void 0&&(i=`Transaction at block hash "${r}" at index "${n}"`),a&&n!==void 0&&(i=`Transaction at block number "${a}" at index "${n}"`),e&&(i=`Transaction with hash "${e}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class x extends s.BaseError{constructor({hash:r}){super(`Transaction receipt with hash "${r}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class F extends s.BaseError{constructor({hash:r}){super(`Timed out while waiting for transaction with hash "${r}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}exports.FeeConflictError=b;exports.InvalidLegacyVError=$;exports.InvalidSerializableTransactionError=P;exports.InvalidStorageKeySizeError=w;exports.TransactionExecutionError=h;exports.TransactionNotFoundError=v;exports.TransactionReceiptNotFoundError=x;exports.WaitForTransactionReceiptTimeoutError=F;exports.prettyPrint=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("./index32.cjs"),f=require("./index110.cjs"),T=require("./index125.cjs"),C=require("./index42.cjs"),m=require("./index45.cjs"),I=require("./index55.cjs"),w=require("./index48.cjs"),A=require("./index69.cjs");async function R(t,e){var i,u,d,g;const{account:o=t.account,chain:n=t.chain,...c}=e;if(!o)throw new f.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});const r=q.parseAccount(o);w.assertRequest({account:r,...e});const a=await I.getAction(t,A.getChainId,"getChainId")({});n!==null&&T.assertCurrentChain({currentChainId:a,chain:n});const s=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),h=((u=s==null?void 0:s.transactionRequest)==null?void 0:u.format)||m.formatTransactionRequest;return r.signTransaction?r.signTransaction({...c,chainId:a},{serializer:(g=(d=t.chain)==null?void 0:d.serializers)==null?void 0:g.transaction}):await t.request({method:"eth_signTransaction",params:[{...h({...c,account:r},"signTransaction"),chainId:C.numberToHex(a),from:r.address}]},{retryCount:0})}exports.signTransaction=R;
|
package/dist/index130.js
CHANGED
|
@@ -1,113 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
`), { name: "FeeConflictError" });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
class h extends s {
|
|
19
|
-
constructor({ v: e }) {
|
|
20
|
-
super(`Invalid \`v\` value "${e}". Expected 27 or 28.`, {
|
|
21
|
-
name: "InvalidLegacyVError"
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
class w extends s {
|
|
26
|
-
constructor({ transaction: e }) {
|
|
27
|
-
super("Cannot infer a transaction type from provided transaction.", {
|
|
28
|
-
metaMessages: [
|
|
29
|
-
"Provided Transaction:",
|
|
30
|
-
"{",
|
|
31
|
-
p(e),
|
|
32
|
-
"}",
|
|
33
|
-
"",
|
|
34
|
-
"To infer the type, either provide:",
|
|
35
|
-
"- a `type` to the Transaction, or",
|
|
36
|
-
"- an EIP-1559 Transaction with `maxFeePerGas`, or",
|
|
37
|
-
"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or",
|
|
38
|
-
"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or",
|
|
39
|
-
"- an EIP-7702 Transaction with `authorizationList`, or",
|
|
40
|
-
"- a Legacy Transaction with `gasPrice`"
|
|
41
|
-
],
|
|
42
|
-
name: "InvalidSerializableTransactionError"
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
class v extends s {
|
|
47
|
-
constructor({ storageKey: e }) {
|
|
48
|
-
super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
class F extends s {
|
|
52
|
-
constructor(e, { account: n, docsPath: t, chain: r, data: a, gas: i, gasPrice: d, maxFeePerGas: u, maxPriorityFeePerGas: f, nonce: E, to: T, value: l }) {
|
|
53
|
-
var m;
|
|
54
|
-
const y = p({
|
|
55
|
-
chain: r && `${r == null ? void 0 : r.name} (id: ${r == null ? void 0 : r.id})`,
|
|
56
|
-
from: n == null ? void 0 : n.address,
|
|
57
|
-
to: T,
|
|
58
|
-
value: typeof l < "u" && `${g(l)} ${((m = r == null ? void 0 : r.nativeCurrency) == null ? void 0 : m.symbol) || "ETH"}`,
|
|
59
|
-
data: a,
|
|
60
|
-
gas: i,
|
|
61
|
-
gasPrice: typeof d < "u" && `${c(d)} gwei`,
|
|
62
|
-
maxFeePerGas: typeof u < "u" && `${c(u)} gwei`,
|
|
63
|
-
maxPriorityFeePerGas: typeof f < "u" && `${c(f)} gwei`,
|
|
64
|
-
nonce: E
|
|
65
|
-
});
|
|
66
|
-
super(e.shortMessage, {
|
|
67
|
-
cause: e,
|
|
68
|
-
docsPath: t,
|
|
69
|
-
metaMessages: [
|
|
70
|
-
...e.metaMessages ? [...e.metaMessages, " "] : [],
|
|
71
|
-
"Request Arguments:",
|
|
72
|
-
y
|
|
73
|
-
].filter(Boolean),
|
|
74
|
-
name: "TransactionExecutionError"
|
|
75
|
-
}), Object.defineProperty(this, "cause", {
|
|
76
|
-
enumerable: !0,
|
|
77
|
-
configurable: !0,
|
|
78
|
-
writable: !0,
|
|
79
|
-
value: void 0
|
|
80
|
-
}), this.cause = e;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
class I extends s {
|
|
84
|
-
constructor({ blockHash: e, blockNumber: n, blockTag: t, hash: r, index: a }) {
|
|
85
|
-
let i = "Transaction";
|
|
86
|
-
t && a !== void 0 && (i = `Transaction at block time "${t}" at index "${a}"`), e && a !== void 0 && (i = `Transaction at block hash "${e}" at index "${a}"`), n && a !== void 0 && (i = `Transaction at block number "${n}" at index "${a}"`), r && (i = `Transaction with hash "${r}"`), super(`${i} could not be found.`, {
|
|
87
|
-
name: "TransactionNotFoundError"
|
|
1
|
+
import { parseAccount as d } from "./index32.js";
|
|
2
|
+
import { AccountNotFoundError as p } from "./index110.js";
|
|
3
|
+
import { assertCurrentChain as g } from "./index125.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 "./index69.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"
|
|
88
15
|
});
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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({
|
|
35
|
+
...c,
|
|
36
|
+
account: o
|
|
37
|
+
}, "signTransaction"),
|
|
38
|
+
chainId: T(n),
|
|
39
|
+
from: o.address
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}, { retryCount: 0 });
|
|
102
43
|
}
|
|
103
44
|
export {
|
|
104
|
-
|
|
105
|
-
h as InvalidLegacyVError,
|
|
106
|
-
w as InvalidSerializableTransactionError,
|
|
107
|
-
v as InvalidStorageKeySizeError,
|
|
108
|
-
F as TransactionExecutionError,
|
|
109
|
-
I as TransactionNotFoundError,
|
|
110
|
-
G as TransactionReceiptNotFoundError,
|
|
111
|
-
M as WaitForTransactionReceiptTimeoutError,
|
|
112
|
-
p as prettyPrint
|
|
45
|
+
E as signTransaction
|
|
113
46
|
};
|
package/dist/index131.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("./index110.cjs"),s=require("./index132.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;
|
package/dist/index131.js
CHANGED
|
@@ -1,54 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
blockNumber: e.blockNumber ? BigInt(e.blockNumber) : null,
|
|
14
|
-
chainId: e.chainId ? i(e.chainId) : void 0,
|
|
15
|
-
gas: e.gas ? BigInt(e.gas) : void 0,
|
|
16
|
-
gasPrice: e.gasPrice ? BigInt(e.gasPrice) : void 0,
|
|
17
|
-
maxFeePerBlobGas: e.maxFeePerBlobGas ? BigInt(e.maxFeePerBlobGas) : void 0,
|
|
18
|
-
maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
|
|
19
|
-
maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
|
|
20
|
-
nonce: e.nonce ? i(e.nonce) : void 0,
|
|
21
|
-
to: e.to ? e.to : null,
|
|
22
|
-
transactionIndex: e.transactionIndex ? Number(e.transactionIndex) : null,
|
|
23
|
-
type: e.type ? r[e.type] : void 0,
|
|
24
|
-
typeHex: e.type ? e.type : void 0,
|
|
25
|
-
value: e.value ? BigInt(e.value) : void 0,
|
|
26
|
-
v: e.v ? BigInt(e.v) : void 0
|
|
1
|
+
import { parseAccount as p } from "./index32.js";
|
|
2
|
+
import { AccountNotFoundError as d } from "./index110.js";
|
|
3
|
+
import { getTypesForEIP712Domain as y, validateTypedData as m, serializeTypedData as u } from "./index132.js";
|
|
4
|
+
async function f(r, s) {
|
|
5
|
+
const { account: c = r.account, domain: t, message: a, primaryType: o } = s;
|
|
6
|
+
if (!c)
|
|
7
|
+
throw new d({
|
|
8
|
+
docsPath: "/docs/actions/wallet/signTypedData"
|
|
9
|
+
});
|
|
10
|
+
const e = p(c), n = {
|
|
11
|
+
EIP712Domain: y({ domain: t }),
|
|
12
|
+
...s.types
|
|
27
13
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return 1;
|
|
36
|
-
if (d.v >= 35n)
|
|
37
|
-
return d.v % 2n === 0n ? 1 : 0;
|
|
38
|
-
}
|
|
39
|
-
})(), d.type === "legacy" && (delete d.accessList, delete d.maxFeePerBlobGas, delete d.maxFeePerGas, delete d.maxPriorityFeePerGas, delete d.yParity), d.type === "eip2930" && (delete d.maxFeePerBlobGas, delete d.maxFeePerGas, delete d.maxPriorityFeePerGas), d.type === "eip1559" && delete d.maxFeePerBlobGas, d;
|
|
40
|
-
}
|
|
41
|
-
function u(e) {
|
|
42
|
-
return e.map((d) => ({
|
|
43
|
-
address: d.address,
|
|
44
|
-
chainId: Number(d.chainId),
|
|
45
|
-
nonce: Number(d.nonce),
|
|
46
|
-
r: d.r,
|
|
47
|
-
s: d.s,
|
|
48
|
-
yParity: Number(d.yParity)
|
|
49
|
-
}));
|
|
14
|
+
if (m({ domain: t, message: a, primaryType: o, types: n }), e.signTypedData)
|
|
15
|
+
return e.signTypedData({ domain: t, message: a, primaryType: o, types: n });
|
|
16
|
+
const i = u({ domain: t, message: a, primaryType: o, types: n });
|
|
17
|
+
return r.request({
|
|
18
|
+
method: "eth_signTypedData_v4",
|
|
19
|
+
params: [e.address, i]
|
|
20
|
+
}, { retryCount: 0 });
|
|
50
21
|
}
|
|
51
22
|
export {
|
|
52
|
-
|
|
53
|
-
r as transactionType
|
|
23
|
+
f as signTypedData
|
|
54
24
|
};
|
package/dist/index132.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 m=require("./index95.cjs"),E=require("./index148.cjs"),b=require("./index181.cjs"),z=require("./index149.cjs"),d=require("./index167.cjs"),T=require("./index42.cjs"),h=require("./index191.cjs"),w=require("./index91.cjs");function P(e){const{domain:i,message:y,primaryType:n,types:t}=e,a=(g,l)=>{const s={...l};for(const r of g){const{name:o,type:f}=r;f==="address"&&(s[o]=s[o].toLowerCase())}return s},u=t.EIP712Domain?i?a(t.EIP712Domain,i):{}:{},p=(()=>{if(n!=="EIP712Domain")return a(t[n],y)})();return w.stringify({domain:u,message:p,primaryType:n,types:t})}function q(e){const{domain:i,message:y,primaryType:n,types:t}=e,a=(u,p)=>{for(const g of u){const{name:l,type:s}=g,r=p[l],o=s.match(h.integerRegex);if(o&&(typeof r=="number"||typeof r=="bigint")){const[D,c,v]=o;T.numberToHex(r,{signed:c==="int",size:Number.parseInt(v,10)/8})}if(s==="address"&&typeof r=="string"&&!z.isAddress(r))throw new E.InvalidAddressError({address:r});const f=s.match(h.bytesRegex);if(f){const[D,c]=f;if(c&&d.size(r)!==Number.parseInt(c,10))throw new m.BytesSizeMismatchError({expectedSize:Number.parseInt(c,10),givenSize:d.size(r)})}const I=t[s];I&&(S(s),a(I,r))}};if(t.EIP712Domain&&i){if(typeof i!="object")throw new b.InvalidDomainError({domain:i});a(t.EIP712Domain,i)}if(n!=="EIP712Domain")if(t[n])a(t[n],y);else throw new b.InvalidPrimaryTypeError({primaryType:n,types:t})}function x({domain:e}){return[typeof(e==null?void 0:e.name)=="string"&&{name:"name",type:"string"},(e==null?void 0:e.version)&&{name:"version",type:"string"},(typeof(e==null?void 0:e.chainId)=="number"||typeof(e==null?void 0:e.chainId)=="bigint")&&{name:"chainId",type:"uint256"},(e==null?void 0:e.verifyingContract)&&{name:"verifyingContract",type:"address"},(e==null?void 0:e.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}function S(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new b.InvalidStructTypeError({type:e})}exports.getTypesForEIP712Domain=x;exports.serializeTypedData=P;exports.validateTypedData=q;
|