|
|
@ -8,7 +8,7 @@ import { fetchContractFromSourcify } from './helpers/fetch-sourcify' |
|
|
|
|
|
|
|
|
|
|
|
const profile = { |
|
|
|
const profile = { |
|
|
|
name: 'fetchAndCompile', |
|
|
|
name: 'fetchAndCompile', |
|
|
|
methods: ['resolve'], |
|
|
|
methods: ['resolve', 'clearCache'], |
|
|
|
version: '0.0.1' |
|
|
|
version: '0.0.1' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -21,6 +21,14 @@ export class FetchAndCompile extends Plugin { |
|
|
|
this.sourceVerifierNetWork = ['Main', 'Rinkeby', 'Ropsten', 'Goerli'] |
|
|
|
this.sourceVerifierNetWork = ['Main', 'Rinkeby', 'Ropsten', 'Goerli'] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Clear the cache |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
async clearCache () { |
|
|
|
|
|
|
|
this.unresolvedAddresses = [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Fetch compiliation metadata from source-Verify from a given @arg contractAddress - https://github.com/ethereum/source-verify
|
|
|
|
* Fetch compiliation metadata from source-Verify from a given @arg contractAddress - https://github.com/ethereum/source-verify
|
|
|
|
* Put the artifacts in the file explorer |
|
|
|
* Put the artifacts in the file explorer |
|
|
|