File tree Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Expand file tree Collapse file tree 3 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,12 @@ import "@nomiclabs/hardhat-waffle";
6
6
import "@typechain/hardhat" ;
7
7
import "hardhat-gas-reporter" ;
8
8
import "solidity-coverage" ;
9
+ import "solidity-docgen" ;
9
10
import { tokens } from "./utils/tokens" ;
10
11
import addresses , { mumbaiAddresses } from "./utils/addresses" ;
11
12
import { network } from "hardhat" ;
12
13
import { boolean } from "hardhat/internal/core/params/argumentTypes" ;
14
+ import { relative } from "path" ;
13
15
14
16
dotenv . config ( ) ;
15
17
@@ -103,6 +105,12 @@ const config: HardhatUserConfig = {
103
105
etherscan : {
104
106
apiKey : process . env . POLYGONSCAN_API_KEY || "" ,
105
107
} ,
108
+ docgen : {
109
+ pages : ( item : any , file : any ) =>
110
+ file . absolutePath . startsWith ( "contracts/OffsetHelper" )
111
+ ? relative ( "contracts" , file . absolutePath ) . replace ( ".sol" , ".md" )
112
+ : undefined ,
113
+ } ,
106
114
} ;
107
115
108
116
export default config ;
Original file line number Diff line number Diff line change 38
38
"prettier-plugin-solidity" : " ^1.0.0-beta.13" ,
39
39
"solhint" : " ^3.3.7" ,
40
40
"solidity-coverage" : " ^0.7.20" ,
41
+ "solidity-docgen" : " ^0.6.0-beta.16" ,
41
42
"ts-node" : " ^10.7.0" ,
42
43
"tslib" : " ^2.3.1" ,
43
44
"typechain" : " ^5.2.0" ,
Original file line number Diff line number Diff line change @@ -5093,7 +5093,7 @@ growl@1.10.5:
5093
5093
resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e"
5094
5094
integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==
5095
5095
5096
- handlebars@^4.0.1 :
5096
+ handlebars@^4.0.1, handlebars@^4.7.7 :
5097
5097
version "4.7.7"
5098
5098
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1"
5099
5099
integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==
@@ -8620,6 +8620,11 @@ solhint@^3.3.7:
8620
8620
optionalDependencies :
8621
8621
prettier "^1.14.3"
8622
8622
8623
+ solidity-ast@^0.4.31 :
8624
+ version "0.4.32"
8625
+ resolved "https://registry.yarnpkg.com/solidity-ast/-/solidity-ast-0.4.32.tgz#ba613ca24c7c79007798033e8a0f32a71285f09e"
8626
+ integrity sha512-vCx17410X+NMnpLVyg6ix4NMCHFIkvWrJb1rPBBeQYEQChX93Zgb9WB9NaIY4zpsr3Q8IvAfohw+jmuBzGf8OQ==
8627
+
8623
8628
solidity-comments-extractor@^0.0.7 :
8624
8629
version "0.0.7"
8625
8630
resolved "https://registry.yarnpkg.com/solidity-comments-extractor/-/solidity-comments-extractor-0.0.7.tgz#99d8f1361438f84019795d928b931f4e5c39ca19"
@@ -8649,6 +8654,14 @@ solidity-coverage@^0.7.20:
8649
8654
shelljs "^0.8.3"
8650
8655
web3-utils "^1.3.0"
8651
8656
8657
+ solidity-docgen@^0.6.0-beta.16 :
8658
+ version "0.6.0-beta.16"
8659
+ resolved "https://registry.yarnpkg.com/solidity-docgen/-/solidity-docgen-0.6.0-beta.16.tgz#e38613107821057ef1baa3a75b121baebb2b24db"
8660
+ integrity sha512-FD7aUWdbtkXW41T/4K+iNXrf7ab+OmAXulDOoD0aTonz76d4wmmFLSrAfoAIo0wm9nDyYiZ1Sw1KZ89Z8sAfEQ==
8661
+ dependencies :
8662
+ handlebars "^4.7.7"
8663
+ solidity-ast "^0.4.31"
8664
+
8652
8665
source-map-resolve@^0.5.0 :
8653
8666
version "0.5.3"
8654
8667
resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a"
You can’t perform that action at this time.
0 commit comments