|
|
@ -2,16 +2,11 @@ import { |
|
|
|
CompilationResult, |
|
|
|
CompilationResult, |
|
|
|
CompiledContract, |
|
|
|
CompiledContract, |
|
|
|
FunctionDescription, |
|
|
|
FunctionDescription, |
|
|
|
ABIDescription, |
|
|
|
|
|
|
|
DevMethodDoc, |
|
|
|
|
|
|
|
UserMethodDoc, |
|
|
|
|
|
|
|
ABIParameter, |
|
|
|
ABIParameter, |
|
|
|
DeveloperDocumentation, |
|
|
|
ABIDescription |
|
|
|
UserDocumentation, |
|
|
|
|
|
|
|
} from "@remixproject/plugin"; |
|
|
|
} from "@remixproject/plugin"; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
import { |
|
|
|
EthDocumentation, |
|
|
|
|
|
|
|
FileName, |
|
|
|
FileName, |
|
|
|
Documentation, |
|
|
|
Documentation, |
|
|
|
ContractName, |
|
|
|
ContractName, |
|
|
@ -73,7 +68,7 @@ export const getContractDoc = (name: string, contract: CompiledContract) => { |
|
|
|
export const getContractDocumentation = (contract: CompiledContract) => { |
|
|
|
export const getContractDocumentation = (contract: CompiledContract) => { |
|
|
|
const methods: MethodsDocumentation = {}; |
|
|
|
const methods: MethodsDocumentation = {}; |
|
|
|
|
|
|
|
|
|
|
|
Object.keys(contract.userdoc.methods).map((item) => { |
|
|
|
Object.keys(contract.userdoc.methods).forEach((item) => { |
|
|
|
if (contract.devdoc.methods[item]) { |
|
|
|
if (contract.devdoc.methods[item]) { |
|
|
|
const finalResult = { |
|
|
|
const finalResult = { |
|
|
|
...contract.userdoc.methods[item], |
|
|
|
...contract.userdoc.methods[item], |
|
|
|