@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/index183.js
CHANGED
|
@@ -1,20 +1,107 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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 });
|
|
1
|
+
import { split as L, rotlSH as T, rotlSL as S, rotlBH as m, rotlBL as F } from "./index228.js";
|
|
2
|
+
import { createHasher as X, Hash as E, anumber as d, u32 as U, swap32IfBE as I, aexists as x, toBytes as P, abytes as k, aoutput as M, clean as y } from "./index229.js";
|
|
3
|
+
const R = BigInt(0), f = BigInt(1), j = BigInt(2), q = BigInt(7), v = BigInt(256), z = BigInt(113), _ = [], g = [], B = [];
|
|
4
|
+
for (let n = 0, t = f, s = 1, i = 0; n < 24; n++) {
|
|
5
|
+
[s, i] = [i, (2 * s + 3 * i) % 5], _.push(2 * (5 * i + s)), g.push((n + 1) * (n + 2) / 2 % 64);
|
|
6
|
+
let o = R;
|
|
7
|
+
for (let r = 0; r < 7; r++)
|
|
8
|
+
t = (t << f ^ (t >> q) * z) % v, t & j && (o ^= f << (f << /* @__PURE__ */ BigInt(r)) - f);
|
|
9
|
+
B.push(o);
|
|
17
10
|
}
|
|
11
|
+
const A = L(B, !0), C = A[0], D = A[1], O = (n, t, s) => s > 32 ? m(n, t, s) : T(n, t, s), w = (n, t, s) => s > 32 ? F(n, t, s) : S(n, t, s);
|
|
12
|
+
function G(n, t = 24) {
|
|
13
|
+
const s = new Uint32Array(10);
|
|
14
|
+
for (let i = 24 - t; i < 24; i++) {
|
|
15
|
+
for (let e = 0; e < 10; e++)
|
|
16
|
+
s[e] = n[e] ^ n[e + 10] ^ n[e + 20] ^ n[e + 30] ^ n[e + 40];
|
|
17
|
+
for (let e = 0; e < 10; e += 2) {
|
|
18
|
+
const h = (e + 8) % 10, l = (e + 2) % 10, u = s[l], c = s[l + 1], b = O(u, c, 1) ^ s[h], H = w(u, c, 1) ^ s[h + 1];
|
|
19
|
+
for (let a = 0; a < 50; a += 10)
|
|
20
|
+
n[e + a] ^= b, n[e + a + 1] ^= H;
|
|
21
|
+
}
|
|
22
|
+
let o = n[2], r = n[3];
|
|
23
|
+
for (let e = 0; e < 24; e++) {
|
|
24
|
+
const h = g[e], l = O(o, r, h), u = w(o, r, h), c = _[e];
|
|
25
|
+
o = n[c], r = n[c + 1], n[c] = l, n[c + 1] = u;
|
|
26
|
+
}
|
|
27
|
+
for (let e = 0; e < 50; e += 10) {
|
|
28
|
+
for (let h = 0; h < 10; h++)
|
|
29
|
+
s[h] = n[e + h];
|
|
30
|
+
for (let h = 0; h < 10; h++)
|
|
31
|
+
n[e + h] ^= ~s[(h + 2) % 10] & s[(h + 4) % 10];
|
|
32
|
+
}
|
|
33
|
+
n[0] ^= C[i], n[1] ^= D[i];
|
|
34
|
+
}
|
|
35
|
+
y(s);
|
|
36
|
+
}
|
|
37
|
+
class p extends E {
|
|
38
|
+
// NOTE: we accept arguments in bytes instead of bits here.
|
|
39
|
+
constructor(t, s, i, o = !1, r = 24) {
|
|
40
|
+
if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = s, this.outputLen = i, this.enableXOF = o, this.rounds = r, d(i), !(0 < t && t < 200))
|
|
41
|
+
throw new Error("only keccak-f1600 function is supported");
|
|
42
|
+
this.state = new Uint8Array(200), this.state32 = U(this.state);
|
|
43
|
+
}
|
|
44
|
+
clone() {
|
|
45
|
+
return this._cloneInto();
|
|
46
|
+
}
|
|
47
|
+
keccak() {
|
|
48
|
+
I(this.state32), G(this.state32, this.rounds), I(this.state32), this.posOut = 0, this.pos = 0;
|
|
49
|
+
}
|
|
50
|
+
update(t) {
|
|
51
|
+
x(this), t = P(t), k(t);
|
|
52
|
+
const { blockLen: s, state: i } = this, o = t.length;
|
|
53
|
+
for (let r = 0; r < o; ) {
|
|
54
|
+
const e = Math.min(s - this.pos, o - r);
|
|
55
|
+
for (let h = 0; h < e; h++)
|
|
56
|
+
i[this.pos++] ^= t[r++];
|
|
57
|
+
this.pos === s && this.keccak();
|
|
58
|
+
}
|
|
59
|
+
return this;
|
|
60
|
+
}
|
|
61
|
+
finish() {
|
|
62
|
+
if (this.finished)
|
|
63
|
+
return;
|
|
64
|
+
this.finished = !0;
|
|
65
|
+
const { state: t, suffix: s, pos: i, blockLen: o } = this;
|
|
66
|
+
t[i] ^= s, s & 128 && i === o - 1 && this.keccak(), t[o - 1] ^= 128, this.keccak();
|
|
67
|
+
}
|
|
68
|
+
writeInto(t) {
|
|
69
|
+
x(this, !1), k(t), this.finish();
|
|
70
|
+
const s = this.state, { blockLen: i } = this;
|
|
71
|
+
for (let o = 0, r = t.length; o < r; ) {
|
|
72
|
+
this.posOut >= i && this.keccak();
|
|
73
|
+
const e = Math.min(i - this.posOut, r - o);
|
|
74
|
+
t.set(s.subarray(this.posOut, this.posOut + e), o), this.posOut += e, o += e;
|
|
75
|
+
}
|
|
76
|
+
return t;
|
|
77
|
+
}
|
|
78
|
+
xofInto(t) {
|
|
79
|
+
if (!this.enableXOF)
|
|
80
|
+
throw new Error("XOF is not possible for this instance");
|
|
81
|
+
return this.writeInto(t);
|
|
82
|
+
}
|
|
83
|
+
xof(t) {
|
|
84
|
+
return d(t), this.xofInto(new Uint8Array(t));
|
|
85
|
+
}
|
|
86
|
+
digestInto(t) {
|
|
87
|
+
if (M(t, this), this.finished)
|
|
88
|
+
throw new Error("digest() was already called");
|
|
89
|
+
return this.writeInto(t), this.destroy(), t;
|
|
90
|
+
}
|
|
91
|
+
digest() {
|
|
92
|
+
return this.digestInto(new Uint8Array(this.outputLen));
|
|
93
|
+
}
|
|
94
|
+
destroy() {
|
|
95
|
+
this.destroyed = !0, y(this.state);
|
|
96
|
+
}
|
|
97
|
+
_cloneInto(t) {
|
|
98
|
+
const { blockLen: s, suffix: i, outputLen: o, rounds: r, enableXOF: e } = this;
|
|
99
|
+
return t || (t = new p(s, i, o, e, r)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = r, t.suffix = i, t.outputLen = o, t.enableXOF = e, t.destroyed = this.destroyed, t;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const J = (n, t, s) => X(() => new p(t, n, s)), Q = J(1, 136, 256 / 8);
|
|
18
103
|
export {
|
|
19
|
-
|
|
104
|
+
p as Keccak,
|
|
105
|
+
G as keccakP,
|
|
106
|
+
Q as keccak_256
|
|
20
107
|
};
|
package/dist/index184.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("./index232.cjs"),s=e.sha256;exports.sha256=s;
|
package/dist/index184.js
CHANGED
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { getTypesForEIP712Domain as y, validateTypedData as m, serializeTypedData as u } from "./index185.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
|
|
13
|
-
};
|
|
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 });
|
|
21
|
-
}
|
|
1
|
+
import { sha256 as s } from "./index232.js";
|
|
2
|
+
const o = s;
|
|
22
3
|
export {
|
|
23
|
-
|
|
4
|
+
o as sha256
|
|
24
5
|
};
|
package/dist/index185.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("./index230.cjs"),r=require("./index231.cjs");function n(t){return e.hashSignature(r.toSignature(t))}exports.toSignatureHash=n;
|
package/dist/index185.js
CHANGED
|
@@ -1,83 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { size as h } from "./index212.js";
|
|
6
|
-
import { numberToHex as T } from "./index33.js";
|
|
7
|
-
import { integerRegex as d, bytesRegex as _ } from "./index238.js";
|
|
8
|
-
import { stringify as x } from "./index146.js";
|
|
9
|
-
function F(e) {
|
|
10
|
-
const { domain: i, message: p, primaryType: n, types: t } = e, o = (u, g) => {
|
|
11
|
-
const s = { ...g };
|
|
12
|
-
for (const r of u) {
|
|
13
|
-
const { name: a, type: c } = r;
|
|
14
|
-
c === "address" && (s[a] = s[a].toLowerCase());
|
|
15
|
-
}
|
|
16
|
-
return s;
|
|
17
|
-
}, y = t.EIP712Domain ? i ? o(t.EIP712Domain, i) : {} : {}, m = (() => {
|
|
18
|
-
if (n !== "EIP712Domain")
|
|
19
|
-
return o(t[n], p);
|
|
20
|
-
})();
|
|
21
|
-
return x({ domain: y, message: m, primaryType: n, types: t });
|
|
22
|
-
}
|
|
23
|
-
function H(e) {
|
|
24
|
-
const { domain: i, message: p, primaryType: n, types: t } = e, o = (y, m) => {
|
|
25
|
-
for (const u of y) {
|
|
26
|
-
const { name: g, type: s } = u, r = m[g], a = s.match(d);
|
|
27
|
-
if (a && (typeof r == "number" || typeof r == "bigint")) {
|
|
28
|
-
const [l, f, b] = a;
|
|
29
|
-
T(r, {
|
|
30
|
-
signed: f === "int",
|
|
31
|
-
size: Number.parseInt(b) / 8
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
if (s === "address" && typeof r == "string" && !P(r))
|
|
35
|
-
throw new D({ address: r });
|
|
36
|
-
const c = s.match(_);
|
|
37
|
-
if (c) {
|
|
38
|
-
const [l, f] = c;
|
|
39
|
-
if (f && h(r) !== Number.parseInt(f))
|
|
40
|
-
throw new v({
|
|
41
|
-
expectedSize: Number.parseInt(f),
|
|
42
|
-
givenSize: h(r)
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const I = t[s];
|
|
46
|
-
I && (S(s), o(I, r));
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
if (t.EIP712Domain && i) {
|
|
50
|
-
if (typeof i != "object")
|
|
51
|
-
throw new E({ domain: i });
|
|
52
|
-
o(t.EIP712Domain, i);
|
|
53
|
-
}
|
|
54
|
-
if (n !== "EIP712Domain")
|
|
55
|
-
if (t[n])
|
|
56
|
-
o(t[n], p);
|
|
57
|
-
else
|
|
58
|
-
throw new w({ primaryType: n, types: t });
|
|
59
|
-
}
|
|
60
|
-
function L({ domain: e }) {
|
|
61
|
-
return [
|
|
62
|
-
typeof (e == null ? void 0 : e.name) == "string" && { name: "name", type: "string" },
|
|
63
|
-
(e == null ? void 0 : e.version) && { name: "version", type: "string" },
|
|
64
|
-
(typeof (e == null ? void 0 : e.chainId) == "number" || typeof (e == null ? void 0 : e.chainId) == "bigint") && {
|
|
65
|
-
name: "chainId",
|
|
66
|
-
type: "uint256"
|
|
67
|
-
},
|
|
68
|
-
(e == null ? void 0 : e.verifyingContract) && {
|
|
69
|
-
name: "verifyingContract",
|
|
70
|
-
type: "address"
|
|
71
|
-
},
|
|
72
|
-
(e == null ? void 0 : e.salt) && { name: "salt", type: "bytes32" }
|
|
73
|
-
].filter(Boolean);
|
|
74
|
-
}
|
|
75
|
-
function S(e) {
|
|
76
|
-
if (e === "address" || e === "bool" || e === "string" || e.startsWith("bytes") || e.startsWith("uint") || e.startsWith("int"))
|
|
77
|
-
throw new z({ type: e });
|
|
1
|
+
import { hashSignature as t } from "./index230.js";
|
|
2
|
+
import { toSignature as o } from "./index231.js";
|
|
3
|
+
function a(r) {
|
|
4
|
+
return t(o(r));
|
|
78
5
|
}
|
|
79
6
|
export {
|
|
80
|
-
|
|
81
|
-
F as serializeTypedData,
|
|
82
|
-
H as validateTypedData
|
|
7
|
+
a as toSignatureHash
|
|
83
8
|
};
|
package/dist/index186.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 i(e){return new Promise(t=>setTimeout(t,e))}exports.wait=i;
|
package/dist/index186.js
CHANGED
|
@@ -1,47 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { encodeFunctionData as x } from "./index59.js";
|
|
4
|
-
import { getContractError as b } from "./index96.js";
|
|
5
|
-
import { getAction as g } from "./index66.js";
|
|
6
|
-
import { call as A } from "./index73.js";
|
|
7
|
-
async function R(s, m) {
|
|
8
|
-
const { abi: o, address: n, args: a, dataSuffix: e, functionName: c, ...r } = m, t = r.account ? p(r.account) : s.account, u = x({ abi: o, args: a, functionName: c });
|
|
9
|
-
try {
|
|
10
|
-
const { data: i } = await g(s, A, "call")({
|
|
11
|
-
batch: !1,
|
|
12
|
-
data: `${u}${e ? e.replace("0x", "") : ""}`,
|
|
13
|
-
to: n,
|
|
14
|
-
...r,
|
|
15
|
-
account: t
|
|
16
|
-
}), l = h({
|
|
17
|
-
abi: o,
|
|
18
|
-
args: a,
|
|
19
|
-
functionName: c,
|
|
20
|
-
data: i || "0x"
|
|
21
|
-
}), f = o.filter((d) => "name" in d && d.name === m.functionName);
|
|
22
|
-
return {
|
|
23
|
-
result: l,
|
|
24
|
-
request: {
|
|
25
|
-
abi: f,
|
|
26
|
-
address: n,
|
|
27
|
-
args: a,
|
|
28
|
-
dataSuffix: e,
|
|
29
|
-
functionName: c,
|
|
30
|
-
...r,
|
|
31
|
-
account: t
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
} catch (i) {
|
|
35
|
-
throw b(i, {
|
|
36
|
-
abi: o,
|
|
37
|
-
address: n,
|
|
38
|
-
args: a,
|
|
39
|
-
docsPath: "/docs/contract/simulateContract",
|
|
40
|
-
functionName: c,
|
|
41
|
-
sender: t == null ? void 0 : t.address
|
|
42
|
-
});
|
|
43
|
-
}
|
|
1
|
+
async function n(e) {
|
|
2
|
+
return new Promise((t) => setTimeout(t, e));
|
|
44
3
|
}
|
|
45
4
|
export {
|
|
46
|
-
|
|
5
|
+
n as wait
|
|
47
6
|
};
|
package/dist/index187.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 u(n,{errorInstance:r=new Error("timed out"),timeout:i,signal:a}){return new Promise((l,e)=>{(async()=>{let o;try{const t=new AbortController;i>0&&(o=setTimeout(()=>{a&&t.abort()},i)),l(await n({signal:(t==null?void 0:t.signal)||null}))}catch(t){(t==null?void 0:t.name)==="AbortError"&&e(r),e(t)}finally{clearTimeout(o)}})()})}exports.withTimeout=u;
|
package/dist/index187.js
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
function u(r, { errorInstance: e = new Error("timed out"), timeout: i, signal: a }) {
|
|
2
|
+
return new Promise((l, n) => {
|
|
3
|
+
(async () => {
|
|
4
|
+
let o;
|
|
5
|
+
try {
|
|
6
|
+
const t = new AbortController();
|
|
7
|
+
i > 0 && (o = setTimeout(() => {
|
|
8
|
+
a && t.abort();
|
|
9
|
+
}, i)), l(await r({ signal: (t == null ? void 0 : t.signal) || null }));
|
|
10
|
+
} catch (t) {
|
|
11
|
+
(t == null ? void 0 : t.name) === "AbortError" && n(e), n(t);
|
|
12
|
+
} finally {
|
|
13
|
+
clearTimeout(o);
|
|
8
14
|
}
|
|
9
|
-
|
|
10
|
-
}
|
|
15
|
+
})();
|
|
16
|
+
});
|
|
11
17
|
}
|
|
12
18
|
export {
|
|
13
|
-
|
|
19
|
+
u as withTimeout
|
|
14
20
|
};
|
package/dist/index188.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("./index169.cjs"),t=require("./index189.cjs");function a(e,s){return r.keccak256(t.toPrefixedMessage(e),s)}exports.hashMessage=a;
|
package/dist/index188.js
CHANGED
|
@@ -1,55 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { getAddress as x } from "./index52.js";
|
|
6
|
-
import { isAddressEqual as b } from "./index172.js";
|
|
7
|
-
import { isHex as A } from "./index189.js";
|
|
8
|
-
import { bytesToHex as w } from "./index33.js";
|
|
9
|
-
import { getAction as E } from "./index66.js";
|
|
10
|
-
import { isErc6492Signature as V } from "./index190.js";
|
|
11
|
-
import { recoverAddress as D } from "./index191.js";
|
|
12
|
-
import { serializeErc6492Signature as H } from "./index192.js";
|
|
13
|
-
import { serializeSignature as z } from "./index43.js";
|
|
14
|
-
import { call as B } from "./index73.js";
|
|
15
|
-
import { encodeFunctionData as C } from "./index59.js";
|
|
16
|
-
import { hexToBool as T } from "./index44.js";
|
|
17
|
-
async function W(o, y) {
|
|
18
|
-
var u, d, p;
|
|
19
|
-
const { address: i, factory: n, factoryData: s, hash: a, signature: r, universalSignatureVerifierAddress: f = (p = (d = (u = o.chain) == null ? void 0 : u.contracts) == null ? void 0 : d.universalSignatureVerifier) == null ? void 0 : p.address, ...m } = y, t = A(r) ? r : typeof r == "object" && "r" in r && "s" in r ? z(r) : w(r), c = await (async () => !n && !s || V(t) ? t : H({
|
|
20
|
-
address: n,
|
|
21
|
-
data: s,
|
|
22
|
-
signature: t
|
|
23
|
-
}))();
|
|
24
|
-
try {
|
|
25
|
-
const e = f ? {
|
|
26
|
-
to: f,
|
|
27
|
-
data: C({
|
|
28
|
-
abi: g,
|
|
29
|
-
functionName: "isValidSig",
|
|
30
|
-
args: [i, a, c]
|
|
31
|
-
}),
|
|
32
|
-
...m
|
|
33
|
-
} : {
|
|
34
|
-
data: v({
|
|
35
|
-
abi: g,
|
|
36
|
-
args: [i, a, c],
|
|
37
|
-
bytecode: S
|
|
38
|
-
}),
|
|
39
|
-
...m
|
|
40
|
-
}, { data: l } = await E(o, B, "call")(e);
|
|
41
|
-
return T(l ?? "0x0");
|
|
42
|
-
} catch (e) {
|
|
43
|
-
try {
|
|
44
|
-
if (b(x(i), await D({ hash: a, signature: r })))
|
|
45
|
-
return !0;
|
|
46
|
-
} catch {
|
|
47
|
-
}
|
|
48
|
-
if (e instanceof h)
|
|
49
|
-
return !1;
|
|
50
|
-
throw e;
|
|
51
|
-
}
|
|
1
|
+
import { keccak256 as o } from "./index169.js";
|
|
2
|
+
import { toPrefixedMessage as t } from "./index189.js";
|
|
3
|
+
function f(e, r) {
|
|
4
|
+
return o(t(e), r);
|
|
52
5
|
}
|
|
53
6
|
export {
|
|
54
|
-
|
|
7
|
+
f as hashMessage
|
|
55
8
|
};
|
package/dist/index189.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index137.cjs"),o=require("./index111.cjs"),s=require("./index140.cjs"),r=require("./index42.cjs");function c(e){const t=typeof e=="string"?r.stringToHex(e):typeof e.raw=="string"?e.raw:r.bytesToHex(e.raw),i=r.stringToHex(`${n.presignMessagePrefix}${s.size(t)}`);return o.concat([i,t])}exports.toPrefixedMessage=c;
|
package/dist/index189.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { presignMessagePrefix as e } from "./index137.js";
|
|
2
|
+
import { concat as n } from "./index111.js";
|
|
3
|
+
import { size as f } from "./index140.js";
|
|
4
|
+
import { stringToHex as o, bytesToHex as p } from "./index42.js";
|
|
5
|
+
function u(r) {
|
|
6
|
+
const t = typeof r == "string" ? o(r) : typeof r.raw == "string" ? r.raw : p(r.raw), i = o(`${e}${f(t)}`);
|
|
7
|
+
return n([i, t]);
|
|
3
8
|
}
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
u as toPrefixedMessage
|
|
6
11
|
};
|
package/dist/index19.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 t=2n**256n-1n;exports.maxUint256=t;
|
package/dist/index19.js
CHANGED
|
@@ -1,123 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { createContractEventFilter as v } from "./index91.js";
|
|
3
|
-
import { estimateContractGas as A } from "./index95.js";
|
|
4
|
-
import { getContractEvents as _ } from "./index115.js";
|
|
5
|
-
import { readContract as x } from "./index67.js";
|
|
6
|
-
import { simulateContract as F } from "./index186.js";
|
|
7
|
-
import { watchContractEvent as G } from "./index196.js";
|
|
8
|
-
import { writeContract as b } from "./index197.js";
|
|
9
|
-
function D({ abi: t, address: o, client: f }) {
|
|
10
|
-
const e = f, [a, p] = e ? "public" in e && "wallet" in e ? [e.public, e.wallet] : "public" in e ? [e.public, void 0] : "wallet" in e ? [void 0, e.wallet] : [e, e] : [void 0, void 0], d = a != null, P = p != null, u = {};
|
|
11
|
-
let y = !1, w = !1, E = !1;
|
|
12
|
-
for (const s of t)
|
|
13
|
-
if (s.type === "function" ? s.stateMutability === "view" || s.stateMutability === "pure" ? y = !0 : w = !0 : s.type === "event" && (E = !0), y && w && E)
|
|
14
|
-
break;
|
|
15
|
-
return d && (y && (u.read = new Proxy({}, {
|
|
16
|
-
get(s, n) {
|
|
17
|
-
return (...i) => {
|
|
18
|
-
const { args: c, options: r } = C(i);
|
|
19
|
-
return g(a, x, "readContract")({
|
|
20
|
-
abi: t,
|
|
21
|
-
address: o,
|
|
22
|
-
functionName: n,
|
|
23
|
-
args: c,
|
|
24
|
-
...r
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
})), w && (u.simulate = new Proxy({}, {
|
|
29
|
-
get(s, n) {
|
|
30
|
-
return (...i) => {
|
|
31
|
-
const { args: c, options: r } = C(i);
|
|
32
|
-
return g(a, F, "simulateContract")({
|
|
33
|
-
abi: t,
|
|
34
|
-
address: o,
|
|
35
|
-
functionName: n,
|
|
36
|
-
args: c,
|
|
37
|
-
...r
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
})), E && (u.createEventFilter = new Proxy({}, {
|
|
42
|
-
get(s, n) {
|
|
43
|
-
return (...i) => {
|
|
44
|
-
const c = t.find((l) => l.type === "event" && l.name === n), { args: r, options: m } = h(i, c);
|
|
45
|
-
return g(a, v, "createContractEventFilter")({
|
|
46
|
-
abi: t,
|
|
47
|
-
address: o,
|
|
48
|
-
eventName: n,
|
|
49
|
-
args: r,
|
|
50
|
-
...m
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
}), u.getEvents = new Proxy({}, {
|
|
55
|
-
get(s, n) {
|
|
56
|
-
return (...i) => {
|
|
57
|
-
const c = t.find((l) => l.type === "event" && l.name === n), { args: r, options: m } = h(i, c);
|
|
58
|
-
return g(a, _, "getContractEvents")({
|
|
59
|
-
abi: t,
|
|
60
|
-
address: o,
|
|
61
|
-
eventName: n,
|
|
62
|
-
args: r,
|
|
63
|
-
...m
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}), u.watchEvent = new Proxy({}, {
|
|
68
|
-
get(s, n) {
|
|
69
|
-
return (...i) => {
|
|
70
|
-
const c = t.find((l) => l.type === "event" && l.name === n), { args: r, options: m } = h(i, c);
|
|
71
|
-
return g(a, G, "watchContractEvent")({
|
|
72
|
-
abi: t,
|
|
73
|
-
address: o,
|
|
74
|
-
eventName: n,
|
|
75
|
-
args: r,
|
|
76
|
-
...m
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
}))), P && w && (u.write = new Proxy({}, {
|
|
81
|
-
get(s, n) {
|
|
82
|
-
return (...i) => {
|
|
83
|
-
const { args: c, options: r } = C(i);
|
|
84
|
-
return g(p, b, "writeContract")({
|
|
85
|
-
abi: t,
|
|
86
|
-
address: o,
|
|
87
|
-
functionName: n,
|
|
88
|
-
args: c,
|
|
89
|
-
...r
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
})), (d || P) && w && (u.estimateGas = new Proxy({}, {
|
|
94
|
-
get(s, n) {
|
|
95
|
-
return (...i) => {
|
|
96
|
-
const { args: c, options: r } = C(i);
|
|
97
|
-
return g(a ?? p, A, "estimateContractGas")({
|
|
98
|
-
abi: t,
|
|
99
|
-
address: o,
|
|
100
|
-
functionName: n,
|
|
101
|
-
args: c,
|
|
102
|
-
...r,
|
|
103
|
-
account: r.account ?? p.account
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
})), u.address = o, u.abi = t, u;
|
|
108
|
-
}
|
|
109
|
-
function C(t) {
|
|
110
|
-
const o = t.length && Array.isArray(t[0]), f = o ? t[0] : [], e = (o ? t[1] : t[0]) ?? {};
|
|
111
|
-
return { args: f, options: e };
|
|
112
|
-
}
|
|
113
|
-
function h(t, o) {
|
|
114
|
-
let f = !1;
|
|
115
|
-
Array.isArray(t[0]) ? f = !0 : t.length === 1 ? f = o.inputs.some((p) => p.indexed) : t.length === 2 && (f = !0);
|
|
116
|
-
const e = f ? t[0] : void 0, a = (f ? t[1] : t[0]) ?? {};
|
|
117
|
-
return { args: e, options: a };
|
|
118
|
-
}
|
|
1
|
+
const n = 2n ** 256n - 1n;
|
|
119
2
|
export {
|
|
120
|
-
|
|
121
|
-
h as getEventParameters,
|
|
122
|
-
C as getFunctionParameters
|
|
3
|
+
n as maxUint256
|
|
123
4
|
};
|
package/dist/index190.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("./index160.cjs"),D=require("./index111.cjs"),f=require("./index42.cjs"),s=require("./index169.cjs"),p=require("./index121.cjs");function b(c){const{domain:t={},message:e,primaryType:n}=c,o={EIP712Domain:p.getTypesForEIP712Domain({domain:t}),...c.types};p.validateTypedData({domain:t,message:e,primaryType:n,types:o});const a=["0x1901"];return t&&a.push(y({domain:t,types:o})),n!=="EIP712Domain"&&a.push(d({data:e,primaryType:n,types:o})),s.keccak256(D.concat(a))}function y({domain:c,types:t}){return d({data:c,primaryType:"EIP712Domain",types:t})}function d({data:c,primaryType:t,types:e}){const n=h({data:c,primaryType:t,types:e});return s.keccak256(n)}function h({data:c,primaryType:t,types:e}){const n=[{type:"bytes32"}],o=[l({primaryType:t,types:e})];for(const a of e[t]){const[r,i]=T({types:e,name:a.name,type:a.type,value:c[a.name]});n.push(r),o.push(i)}return u.encodeAbiParameters(n,o)}function l({primaryType:c,types:t}){const e=f.toHex(m({primaryType:c,types:t}));return s.keccak256(e)}function m({primaryType:c,types:t}){let e="";const n=k({primaryType:c,types:t});n.delete(c);const o=[c,...Array.from(n).sort()];for(const a of o)e+=`${a}(${t[a].map(({name:r,type:i})=>`${i} ${r}`).join(",")})`;return e}function k({primaryType:c,types:t},e=new Set){const n=c.match(/^\w*/u),o=n==null?void 0:n[0];if(e.has(o)||t[o]===void 0)return e;e.add(o);for(const a of t[o])k({primaryType:a.type,types:t},e);return e}function T({types:c,name:t,type:e,value:n}){if(c[e]!==void 0)return[{type:"bytes32"},s.keccak256(h({data:n,primaryType:e,types:c}))];if(e==="bytes")return n=`0x${(n.length%2?"0":"")+n.slice(2)}`,[{type:"bytes32"},s.keccak256(n)];if(e==="string")return[{type:"bytes32"},s.keccak256(f.toHex(n))];if(e.lastIndexOf("]")===e.length-1){const o=e.slice(0,e.lastIndexOf("[")),a=n.map(r=>T({name:t,type:o,types:c,value:r}));return[{type:"bytes32"},s.keccak256(u.encodeAbiParameters(a.map(([r])=>r),a.map(([,r])=>r)))]}return[{type:e},n]}exports.encodeType=m;exports.hashDomain=y;exports.hashStruct=d;exports.hashTypedData=b;
|