|
|
|
@ -8,7 +8,7 @@ import { fetchContractFromSourcify } from './helpers/fetch-sourcify' |
|
|
|
|
|
|
|
|
|
const profile = { |
|
|
|
|
name: 'fetchAndCompile', |
|
|
|
|
methods: ['resolve'], |
|
|
|
|
methods: ['resolve', 'clearCache'], |
|
|
|
|
version: '0.0.1' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -21,6 +21,14 @@ export class FetchAndCompile extends Plugin { |
|
|
|
|
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
|
|
|
|
|
* Put the artifacts in the file explorer |
|
|
|
|