-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buidler-etherscan plugin import #234
Conversation
7c7e709
to
33c042b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about removing the ContractCompiler
class?
I think using run(TASK_COMPILE)
and readArtifact should be enough for this plugin.
@@ -68,7 +68,7 @@ export default function() { | |||
const packageJson = await getPackageJson(); | |||
flattened += `// Sources flattened with buidler v${ | |||
packageJson.version | |||
} https://getbuidler.com`; | |||
} https://buidler.dev`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch :)
.gitignore
Outdated
@@ -90,3 +90,5 @@ typings/ | |||
# DynamoDB Local files | |||
.dynamodb/ | |||
|
|||
# Allow a dummy project in this directory for testing purposes | |||
myproject |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this to the top-ish of the file? The last part of this gitignore is copied from GH's one. Keeping our things separated will make it easier to maintain.
packages/buidler-etherscan/README.md
Outdated
@@ -0,0 +1,46 @@ | |||
[![npm](https://img.shields.io/npm/v/@nomiclabs/buidler-etherscan.svg)](https://www.npmjs.com/package/@nomiclabs/buidler-etherscan) | |||
|
|||
# buidler-solhint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably make sure that this follows the boilerplate's readme template. What do you think?
{ | ||
"name": "@nomiclabs/buidler-etherscan", | ||
"version": "0.0.1", | ||
"description": "Buidler TypeScript plugin for verifying contracts on etherscan", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get the TS reference, do you?
); | ||
} | ||
|
||
console.log({ sourceInTask: source }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Console.log
3a20618
to
c11324e
Compare
50127b3
to
ad8a22c
Compare
ad8a22c
to
13805a7
Compare
This plugin was developed in this PR: NomicFoundation/buidler-etherscan#2
There are a few things that are needed before merging this PR:
WALLET_PRIVATE_KEY="0x1f922fed6c1c5d33c723e1143e1e4e9703aabb5b6a8d9a8aa685c1a08dca726b" npm run test