Skip to content

Commit 36b7bef

Browse files
authored
Merge pull request #6 from scroll-tech/feat-contracts-verification
feat: support contracts verification
2 parents 196cead + 05bc4e2 commit 36b7bef

File tree

4 files changed

+205
-55
lines changed

4 files changed

+205
-55
lines changed

README.md

Lines changed: 70 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ npm install -g @scroll-tech/scroll-sdk-cli
2929
$ scrollsdk COMMAND
3030
running command...
3131
$ scrollsdk (--version)
32-
@scroll-tech/scroll-sdk-cli/0.1.0 darwin-arm64 node-v20.13.1
32+
@scroll-tech/scroll-sdk-cli/0.1.1 darwin-arm64 node-v20.10.0
3333
$ scrollsdk --help [COMMAND]
3434
USAGE
3535
$ scrollsdk COMMAND
@@ -38,39 +38,35 @@ USAGE
3838
<!-- usagestop -->
3939
# Commands
4040
<!-- commands -->
41-
- [Scroll SDK CLI](#scroll-sdk-cli)
42-
- [Introduction](#introduction)
43-
- [Other Scroll SDK Repos](#other-scroll-sdk-repos)
44-
- [Usage](#usage)
45-
- [Commands](#commands)
46-
- [`scrollsdk help [COMMAND]`](#scrollsdk-help-command)
47-
- [`scrollsdk helper activity`](#scrollsdk-helper-activity)
48-
- [`scrollsdk helper clear-accounts`](#scrollsdk-helper-clear-accounts)
49-
- [`scrollsdk helper derive-enode NODEKEY`](#scrollsdk-helper-derive-enode-nodekey)
50-
- [`scrollsdk helper fund-accounts`](#scrollsdk-helper-fund-accounts)
51-
- [`scrollsdk helper set-scalars`](#scrollsdk-helper-set-scalars)
52-
- [`scrollsdk plugins`](#scrollsdk-plugins)
53-
- [`scrollsdk plugins add PLUGIN`](#scrollsdk-plugins-add-plugin)
54-
- [`scrollsdk plugins:inspect PLUGIN...`](#scrollsdk-pluginsinspect-plugin)
55-
- [`scrollsdk plugins install PLUGIN`](#scrollsdk-plugins-install-plugin)
56-
- [`scrollsdk plugins link PATH`](#scrollsdk-plugins-link-path)
57-
- [`scrollsdk plugins remove [PLUGIN]`](#scrollsdk-plugins-remove-plugin)
58-
- [`scrollsdk plugins reset`](#scrollsdk-plugins-reset)
59-
- [`scrollsdk plugins uninstall [PLUGIN]`](#scrollsdk-plugins-uninstall-plugin)
60-
- [`scrollsdk plugins unlink [PLUGIN]`](#scrollsdk-plugins-unlink-plugin)
61-
- [`scrollsdk plugins update`](#scrollsdk-plugins-update)
62-
- [`scrollsdk setup configs`](#scrollsdk-setup-configs)
63-
- [`scrollsdk setup db-init`](#scrollsdk-setup-db-init)
64-
- [`scrollsdk setup domains [FILE]`](#scrollsdk-setup-domains-file)
65-
- [`scrollsdk setup gas-token`](#scrollsdk-setup-gas-token)
66-
- [`scrollsdk setup gen-keystore`](#scrollsdk-setup-gen-keystore)
67-
- [`scrollsdk setup prep-charts`](#scrollsdk-setup-prep-charts)
68-
- [`scrollsdk setup push-secrets`](#scrollsdk-setup-push-secrets)
69-
- [`scrollsdk setup tls`](#scrollsdk-setup-tls)
70-
- [`scrollsdk test contracts`](#scrollsdk-test-contracts)
71-
- [`scrollsdk test dependencies`](#scrollsdk-test-dependencies)
72-
- [`scrollsdk test e2e`](#scrollsdk-test-e2e)
73-
- [`scrollsdk test ingress`](#scrollsdk-test-ingress)
41+
* [`scrollsdk help [COMMAND]`](#scrollsdk-help-command)
42+
* [`scrollsdk helper activity`](#scrollsdk-helper-activity)
43+
* [`scrollsdk helper clear-accounts`](#scrollsdk-helper-clear-accounts)
44+
* [`scrollsdk helper derive-enode NODEKEY`](#scrollsdk-helper-derive-enode-nodekey)
45+
* [`scrollsdk helper fund-accounts`](#scrollsdk-helper-fund-accounts)
46+
* [`scrollsdk helper set-scalars`](#scrollsdk-helper-set-scalars)
47+
* [`scrollsdk plugins`](#scrollsdk-plugins)
48+
* [`scrollsdk plugins add PLUGIN`](#scrollsdk-plugins-add-plugin)
49+
* [`scrollsdk plugins:inspect PLUGIN...`](#scrollsdk-pluginsinspect-plugin)
50+
* [`scrollsdk plugins install PLUGIN`](#scrollsdk-plugins-install-plugin)
51+
* [`scrollsdk plugins link PATH`](#scrollsdk-plugins-link-path)
52+
* [`scrollsdk plugins remove [PLUGIN]`](#scrollsdk-plugins-remove-plugin)
53+
* [`scrollsdk plugins reset`](#scrollsdk-plugins-reset)
54+
* [`scrollsdk plugins uninstall [PLUGIN]`](#scrollsdk-plugins-uninstall-plugin)
55+
* [`scrollsdk plugins unlink [PLUGIN]`](#scrollsdk-plugins-unlink-plugin)
56+
* [`scrollsdk plugins update`](#scrollsdk-plugins-update)
57+
* [`scrollsdk setup configs`](#scrollsdk-setup-configs)
58+
* [`scrollsdk setup db-init`](#scrollsdk-setup-db-init)
59+
* [`scrollsdk setup domains [FILE]`](#scrollsdk-setup-domains-file)
60+
* [`scrollsdk setup gas-token`](#scrollsdk-setup-gas-token)
61+
* [`scrollsdk setup gen-keystore`](#scrollsdk-setup-gen-keystore)
62+
* [`scrollsdk setup prep-charts`](#scrollsdk-setup-prep-charts)
63+
* [`scrollsdk setup push-secrets`](#scrollsdk-setup-push-secrets)
64+
* [`scrollsdk setup tls`](#scrollsdk-setup-tls)
65+
* [`scrollsdk setup verify-contracts`](#scrollsdk-setup-verify-contracts)
66+
* [`scrollsdk test contracts`](#scrollsdk-test-contracts)
67+
* [`scrollsdk test dependencies`](#scrollsdk-test-dependencies)
68+
* [`scrollsdk test e2e`](#scrollsdk-test-e2e)
69+
* [`scrollsdk test ingress`](#scrollsdk-test-ingress)
7470

7571
## `scrollsdk help [COMMAND]`
7672

@@ -115,7 +111,7 @@ DESCRIPTION
115111
Generate transactions on the specified network(s) to produce more blocks
116112
```
117113

118-
_See code: [src/commands/helper/activity.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/helper/activity.ts)_
114+
_See code: [src/commands/helper/activity.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/helper/activity.ts)_
119115

120116
## `scrollsdk helper clear-accounts`
121117

@@ -140,7 +136,7 @@ DESCRIPTION
140136
Clear pending transactions and optionally transfer remaining funds on Layer 2
141137
```
142138

143-
_See code: [src/commands/helper/clear-accounts.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/helper/clear-accounts.ts)_
139+
_See code: [src/commands/helper/clear-accounts.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/helper/clear-accounts.ts)_
144140

145141
## `scrollsdk helper derive-enode NODEKEY`
146142

@@ -160,7 +156,7 @@ EXAMPLES
160156
$ scrollsdk helper derive-enode 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
161157
```
162158

163-
_See code: [src/commands/helper/derive-enode.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/helper/derive-enode.ts)_
159+
_See code: [src/commands/helper/derive-enode.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/helper/derive-enode.ts)_
164160

165161
## `scrollsdk helper fund-accounts`
166162

@@ -190,7 +186,7 @@ DESCRIPTION
190186
Fund L1 and L2 accounts for contracts
191187
```
192188

193-
_See code: [src/commands/helper/fund-accounts.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/helper/fund-accounts.ts)_
189+
_See code: [src/commands/helper/fund-accounts.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/helper/fund-accounts.ts)_
194190

195191
## `scrollsdk helper set-scalars`
196192

@@ -214,7 +210,7 @@ DESCRIPTION
214210
Set commit and blob scalars for Scroll SDK
215211
```
216212

217-
_See code: [src/commands/helper/set-scalars.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/helper/set-scalars.ts)_
213+
_See code: [src/commands/helper/set-scalars.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/helper/set-scalars.ts)_
218214

219215
## `scrollsdk plugins`
220216

@@ -523,12 +519,12 @@ DESCRIPTION
523519
EXAMPLES
524520
$ scrollsdk setup configs
525521
526-
$ scrollsdk setup configs --image-tag gen-configs-2eba3d2c418b16f4a66d9baadeb1c1bafdca81b1
522+
$ scrollsdk setup configs --image-tag gen-configs-8ff2948aa2b9cbd24a7644b060097765a6faee10
527523
528524
$ scrollsdk setup configs --configs-dir custom-configs
529525
```
530526

531-
_See code: [src/commands/setup/configs.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/setup/configs.ts)_
527+
_See code: [src/commands/setup/configs.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/setup/configs.ts)_
532528

533529
## `scrollsdk setup db-init`
534530

@@ -559,7 +555,7 @@ EXAMPLES
559555
$ scrollsdk setup db-init --update-db-port=25061
560556
```
561557

562-
_See code: [src/commands/setup/db-init.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/setup/db-init.ts)_
558+
_See code: [src/commands/setup/db-init.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/setup/db-init.ts)_
563559

564560
## `scrollsdk setup domains [FILE]`
565561

@@ -583,7 +579,7 @@ EXAMPLES
583579
$ scrollsdk setup domains
584580
```
585581

586-
_See code: [src/commands/setup/domains.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/setup/domains.ts)_
582+
_See code: [src/commands/setup/domains.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/setup/domains.ts)_
587583

588584
## `scrollsdk setup gas-token`
589585

@@ -600,7 +596,7 @@ EXAMPLES
600596
$ scrollsdk setup gas-token
601597
```
602598

603-
_See code: [src/commands/setup/gas-token.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/setup/gas-token.ts)_
599+
_See code: [src/commands/setup/gas-token.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/setup/gas-token.ts)_
604600

605601
## `scrollsdk setup gen-keystore`
606602

@@ -622,7 +618,7 @@ EXAMPLES
622618
$ scrollsdk setup gen-keystore --no-accounts
623619
```
624620

625-
_See code: [src/commands/setup/gen-keystore.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/setup/gen-keystore.ts)_
621+
_See code: [src/commands/setup/gen-keystore.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/setup/gen-keystore.ts)_
626622

627623
## `scrollsdk setup prep-charts`
628624

@@ -652,7 +648,7 @@ EXAMPLES
652648
$ scrollsdk setup prep-charts --skip-auth-check
653649
```
654650

655-
_See code: [src/commands/setup/prep-charts.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/setup/prep-charts.ts)_
651+
_See code: [src/commands/setup/prep-charts.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/setup/prep-charts.ts)_
656652

657653
## `scrollsdk setup push-secrets`
658654

@@ -677,7 +673,7 @@ EXAMPLES
677673
$ scrollsdk setup push-secrets --values-dir custom-values
678674
```
679675

680-
_See code: [src/commands/setup/push-secrets.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/setup/push-secrets.ts)_
676+
_See code: [src/commands/setup/push-secrets.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/setup/push-secrets.ts)_
681677

682678
## `scrollsdk setup tls`
683679

@@ -702,7 +698,29 @@ EXAMPLES
702698
$ scrollsdk setup tls --values-dir custom-values
703699
```
704700

705-
_See code: [src/commands/setup/tls.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/setup/tls.ts)_
701+
_See code: [src/commands/setup/tls.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/setup/tls.ts)_
702+
703+
## `scrollsdk setup verify-contracts`
704+
705+
Set up contracts verification
706+
707+
```
708+
USAGE
709+
$ scrollsdk setup verify-contracts [--image-tag <value>]
710+
711+
FLAGS
712+
--image-tag=<value> Specify the Docker image tag to use
713+
714+
DESCRIPTION
715+
Set up contracts verification
716+
717+
EXAMPLES
718+
$ scrollsdk setup verify-contracts
719+
720+
$ scrollsdk setup verify-contracts --image-tag verify-8ff2948aa2b9cbd24a7644b060097765a6faee10
721+
```
722+
723+
_See code: [src/commands/setup/verify-contracts.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/setup/verify-contracts.ts)_
706724

707725
## `scrollsdk test contracts`
708726

@@ -721,7 +739,7 @@ DESCRIPTION
721739
Test contracts by checking deployment and initialization
722740
```
723741

724-
_See code: [src/commands/test/contracts.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/test/contracts.ts)_
742+
_See code: [src/commands/test/contracts.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/test/contracts.ts)_
725743

726744
## `scrollsdk test dependencies`
727745

@@ -738,7 +756,7 @@ DESCRIPTION
738756
Check for required dependencies
739757
```
740758

741-
_See code: [src/commands/test/dependencies.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/test/dependencies.ts)_
759+
_See code: [src/commands/test/dependencies.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/test/dependencies.ts)_
742760

743761
## `scrollsdk test e2e`
744762

@@ -761,7 +779,7 @@ DESCRIPTION
761779
Test contracts by checking deployment and initialization
762780
```
763781

764-
_See code: [src/commands/test/e2e.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/test/e2e.ts)_
782+
_See code: [src/commands/test/e2e.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/test/e2e.ts)_
765783

766784
## `scrollsdk test ingress`
767785

@@ -780,5 +798,5 @@ DESCRIPTION
780798
Check for required ingress hosts and validate frontend URLs
781799
```
782800

783-
_See code: [src/commands/test/ingress.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.0/src/commands/test/ingress.ts)_
801+
_See code: [src/commands/test/ingress.ts](https://github.com/scroll-tech/scroll-sdk-cli/blob/v0.1.1/src/commands/test/ingress.ts)_
784802
<!-- commandsstop -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@scroll-tech/scroll-sdk-cli",
33
"description": "A tool for managing and testing Scroll SDK deployments",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"author": "Daniel Helm",
66
"bin": {
77
"scrollsdk": "bin/run.js"

src/commands/setup/configs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class SetupConfigs extends Command {
1414

1515
static override examples = [
1616
'<%= config.bin %> <%= command.id %>',
17-
'<%= config.bin %> <%= command.id %> --image-tag gen-configs-2eba3d2c418b16f4a66d9baadeb1c1bafdca81b1',
17+
'<%= config.bin %> <%= command.id %> --image-tag gen-configs-8ff2948aa2b9cbd24a7644b060097765a6faee10',
1818
'<%= config.bin %> <%= command.id %> --configs-dir custom-configs',
1919
]
2020

@@ -465,7 +465,7 @@ export default class SetupConfigs extends Command {
465465
}
466466

467467
private async getDockerImageTag(providedTag: string | undefined): Promise<string> {
468-
const defaultTag = 'gen-configs-2eba3d2c418b16f4a66d9baadeb1c1bafdca81b1'
468+
const defaultTag = 'gen-configs-8ff2948aa2b9cbd24a7644b060097765a6faee10'
469469

470470
if (!providedTag) {
471471
return defaultTag

0 commit comments

Comments
 (0)