Skip to content

Commit

Permalink
fix type + allow license specification for etherscan
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Jun 14, 2024
1 parent 6589d6d commit b283920
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
6 changes: 6 additions & 0 deletions packages/rocketh-deploy-proxy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @rocketh/deploy-proxy

## 0.10.7

### Patch Changes

- fix type + allow license specification for etherscan

## 0.10.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketh-deploy-proxy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocketh/deploy-proxy",
"version": "0.10.6",
"version": "0.10.7",
"description": "provide proxy-enabled deploy function for rocketh",
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketh-deploy-proxy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const artifacts = (artifactsAsModule as any).default
export type ProxyDeployOptions = {
linkedData?: any;
disabled?: boolean;
owner: EIP1193Account;
owner?: EIP1193Account;
execute?: string;
};

Expand Down
6 changes: 6 additions & 0 deletions packages/rocketh-verifier/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @rocketh/verifier

## 0.10.8

### Patch Changes

- fix type + allow license specification for etherscan

## 0.10.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/rocketh-verifier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rocketh/verifier",
"version": "0.10.7",
"version": "0.10.8",
"description": "submit verification proof to verifier services (blockchain explorer, sourcify...",
"publishConfig": {
"access": "public"
Expand Down
12 changes: 10 additions & 2 deletions packages/rocketh-verifier/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,19 @@ program
.command('etherscan')
.description('submit contract for verification to etherscan')
.option('--endpoint <value>', 'endpoint to connect to')
.action((options: {endpoint?: string}) => {
.option('--license <value>', 'source code license')
.option('--force-license', 'force the use of the license provided')
.action((options: {endpoint?: string; forceLicense: boolean; license: string}) => {
const programOptions = program.opts() as ConfigOptions;
const resolvedConfig = readAndResolveConfig({...programOptions, ignoreMissingRPC: true});
run(resolvedConfig, {
verifier: {type: 'etherscan', apiKey: process.env['ETHERSCAN_API_KEY'], endpoint: options.endpoint},
verifier: {
type: 'etherscan',
apiKey: process.env['ETHERSCAN_API_KEY'],
endpoint: options.endpoint,
forceLicense: options.forceLicense,
license: options.license,
},
});
});

Expand Down

0 comments on commit b283920

Please sign in to comment.