Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
ae778c4b
Unverified
Commit
ae778c4b
authored
Aug 15, 2023
by
mergify[bot]
Committed by
GitHub
Aug 15, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into dependabot/go_modules/gorm.io/gorm-1.25.3
parents
df1515e3
44c40a85
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1107 additions
and
417 deletions
+1107
-417
package.json
packages/chain-mon/package.json
+12
-11
README.md
packages/chain-mon/src/fault-mon/README.md
+1
-1
base-service-v2.ts
packages/common-ts/src/base-service/base-service-v2.ts
+1
-1
STYLE_GUIDE.md
packages/contracts-bedrock/STYLE_GUIDE.md
+1
-1
package.json
packages/contracts-bedrock/package.json
+6
-6
forge-test-names.ts
packages/contracts-bedrock/scripts/forge-test-names.ts
+7
-4
.depcheckrc
packages/sdk/.depcheckrc
+1
-0
package.json
packages/sdk/package.json
+5
-0
finalize-withdrawal.ts
packages/sdk/tasks/finalize-withdrawal.ts
+16
-0
pnpm-lock.yaml
pnpm-lock.yaml
+1057
-393
No files found.
packages/chain-mon/package.json
View file @
ae778c4b
...
@@ -9,12 +9,12 @@
...
@@ -9,12 +9,12 @@
"dist/*"
"dist/*"
],
],
"scripts"
:
{
"scripts"
:
{
"start:balance-mon"
:
"ts
-node
./src/balance-mon/service.ts"
,
"start:balance-mon"
:
"ts
x
./src/balance-mon/service.ts"
,
"start:wallet-mon"
:
"ts
-node
./src/wallet-mon/service.ts"
,
"start:wallet-mon"
:
"ts
x
./src/wallet-mon/service.ts"
,
"start:drippie-mon"
:
"ts
-node
./src/drippie-mon/service.ts"
,
"start:drippie-mon"
:
"ts
x
./src/drippie-mon/service.ts"
,
"start:wd-mon"
:
"ts
-node
./src/wd-mon/service.ts"
,
"start:wd-mon"
:
"ts
x
./src/wd-mon/service.ts"
,
"start:fault-mon"
:
"ts
-node
./src/fault-mon/service.ts"
,
"start:fault-mon"
:
"ts
x
./src/fault-mon/service.ts"
,
"start:replica-mon"
:
"ts
-node
./src/replica-mon/service.ts"
,
"start:replica-mon"
:
"ts
x
./src/replica-mon/service.ts"
,
"test"
:
"hardhat test"
,
"test"
:
"hardhat test"
,
"test:coverage"
:
"nyc hardhat test && nyc merge .nyc_output coverage.json"
,
"test:coverage"
:
"nyc hardhat test && nyc merge .nyc_output coverage.json"
,
"build"
:
"tsc -p ./tsconfig.json"
,
"build"
:
"tsc -p ./tsconfig.json"
,
...
@@ -39,21 +39,22 @@
...
@@ -39,21 +39,22 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"@eth-optimism/common-ts"
:
"0.8.3"
,
"@eth-optimism/common-ts"
:
"0.8.3"
,
"@eth-optimism/contracts-periphery"
:
"1.0.8"
,
"@eth-optimism/contracts-bedrock"
:
"0.16.0"
,
"@eth-optimism/contracts-bedrock"
:
"0.16.0"
,
"@eth-optimism/contracts-periphery"
:
"1.0.8"
,
"@eth-optimism/core-utils"
:
"0.12.2"
,
"@eth-optimism/core-utils"
:
"0.12.2"
,
"@eth-optimism/sdk"
:
"3.1.0"
,
"@eth-optimism/sdk"
:
"3.1.0"
,
"ethers"
:
"^5.7.0"
,
"dotenv"
:
"^16.1.4"
,
"@types/dateformat"
:
"^5.0.0"
,
"@types/dateformat"
:
"^5.0.0"
,
"chai-as-promised"
:
"^7.1.1"
,
"chai-as-promised"
:
"^7.1.1"
,
"dateformat"
:
"^4.5.1"
"dateformat"
:
"^4.5.1"
,
"dotenv"
:
"^16.1.4"
,
"ethers"
:
"^5.7.0"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@ethersproject/abstract-provider"
:
"^5.7.0"
,
"@ethersproject/abstract-provider"
:
"^5.7.0"
,
"@nomiclabs/hardhat-ethers"
:
"^2.0.6"
,
"@nomiclabs/hardhat-ethers"
:
"^2.0.6"
,
"@nomiclabs/hardhat-waffle"
:
"^2.0.3"
,
"@nomiclabs/hardhat-waffle"
:
"^2.0.3"
,
"hardhat"
:
"^2.9.6"
,
"hardhat"
:
"^2.9.6"
,
"ts-node"
:
"^10.9.1"
"ts-node"
:
"^10.9.1"
,
"tsx"
:
"^3.12.7"
}
}
}
}
packages/chain-mon/src/fault-mon/README.md
View file @
ae778c4b
...
@@ -48,7 +48,7 @@ Check the list of available metrics via `pnpm start --help`:
...
@@ -48,7 +48,7 @@ Check the list of available metrics via `pnpm start --help`:
```
sh
```
sh
>
pnpm start
--help
>
pnpm start
--help
$
ts
-node
./src/service.ts
--help
$
ts
x
./src/service.ts
--help
Usage: service
[
options]
Usage: service
[
options]
Options:
Options:
...
...
packages/common-ts/src/base-service/base-service-v2.ts
View file @
ae778c4b
...
@@ -156,7 +156,7 @@ export abstract class BaseServiceV2<
...
@@ -156,7 +156,7 @@ export abstract class BaseServiceV2<
}
}
// Use commander as a way to communicate info about the service. We don't actually *use*
// Use commander as a way to communicate info about the service. We don't actually *use*
// commander for anything besides the ability to run `ts
-node
./service.ts --help`.
// commander for anything besides the ability to run `ts
x
./service.ts --help`.
const
program
=
new
Command
().
allowUnknownOption
(
true
)
const
program
=
new
Command
().
allowUnknownOption
(
true
)
for
(
const
[
optionName
,
optionSpec
]
of
Object
.
entries
(
params
.
optionsSpec
))
{
for
(
const
[
optionName
,
optionSpec
]
of
Object
.
entries
(
params
.
optionsSpec
))
{
// Skip options that are not meant to be used by the user.
// Skip options that are not meant to be used by the user.
...
...
packages/contracts-bedrock/STYLE_GUIDE.md
View file @
ae778c4b
...
@@ -102,7 +102,7 @@ All test contracts and functions should be organized and named according to the
...
@@ -102,7 +102,7 @@ All test contracts and functions should be organized and named according to the
These guidelines are also encoded in a script which can be run with:
These guidelines are also encoded in a script which can be run with:
```
```
ts
-node
scripts/forge-test-names.ts
ts
x
scripts/forge-test-names.ts
```
```
_Note: This is a work in progress, not all test files are compliant with these guidelines._
_Note: This is a work in progress, not all test files are compliant with these guidelines._
...
...
packages/contracts-bedrock/package.json
View file @
ae778c4b
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"prebuild"
:
"./scripts/verify-foundry-install.sh"
,
"prebuild"
:
"./scripts/verify-foundry-install.sh"
,
"build:differential"
:
"go build -o ./scripts/differential-testing/differential-testing ./scripts/differential-testing"
,
"build:differential"
:
"go build -o ./scripts/differential-testing/differential-testing ./scripts/differential-testing"
,
"build:fuzz"
:
"(cd test-case-generator && go build ./cmd/fuzz.go)"
,
"build:fuzz"
:
"(cd test-case-generator && go build ./cmd/fuzz.go)"
,
"autogen:invariant-docs"
:
"ts
-node
scripts/invariant-doc-gen.ts"
,
"autogen:invariant-docs"
:
"ts
x
scripts/invariant-doc-gen.ts"
,
"test"
:
"pnpm build:differential && pnpm build:fuzz && forge test"
,
"test"
:
"pnpm build:differential && pnpm build:fuzz && forge test"
,
"coverage"
:
"pnpm build:differential && pnpm build:fuzz && forge coverage"
,
"coverage"
:
"pnpm build:differential && pnpm build:fuzz && forge coverage"
,
"coverage:lcov"
:
"pnpm build:differential && pnpm build:fuzz && forge coverage --report lcov"
,
"coverage:lcov"
:
"pnpm build:differential && pnpm build:fuzz && forge coverage --report lcov"
,
...
@@ -24,13 +24,13 @@
...
@@ -24,13 +24,13 @@
"storage-snapshot"
:
"./scripts/storage-snapshot.sh"
,
"storage-snapshot"
:
"./scripts/storage-snapshot.sh"
,
"semver-lock"
:
"forge script scripts/SemverLock.s.sol"
,
"semver-lock"
:
"forge script scripts/SemverLock.s.sol"
,
"validate-deploy-configs"
:
"./scripts/validate-deploy-configs.sh"
,
"validate-deploy-configs"
:
"./scripts/validate-deploy-configs.sh"
,
"validate-spacers"
:
"pnpm build && npx ts
-node
scripts/validate-spacers.ts"
,
"validate-spacers"
:
"pnpm build && npx ts
x
scripts/validate-spacers.ts"
,
"slither"
:
"./scripts/slither.sh"
,
"slither"
:
"./scripts/slither.sh"
,
"slither:triage"
:
"TRIAGE_MODE=1 ./scripts/slither.sh"
,
"slither:triage"
:
"TRIAGE_MODE=1 ./scripts/slither.sh"
,
"clean"
:
"rm -rf ./artifacts ./forge-artifacts ./cache ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo ./test-case-generator/fuzz ./scripts/differential-testing/differential-testing"
,
"clean"
:
"rm -rf ./artifacts ./forge-artifacts ./cache ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo ./test-case-generator/fuzz ./scripts/differential-testing/differential-testing"
,
"preinstall"
:
"npx only-allow pnpm"
,
"preinstall"
:
"npx only-allow pnpm"
,
"lint:ts:check"
:
"eslint . --max-warnings=0"
,
"lint:ts:check"
:
"eslint . --max-warnings=0"
,
"lint:forge-tests:check"
:
"ts
-node
scripts/forge-test-names.ts"
,
"lint:forge-tests:check"
:
"ts
x
scripts/forge-test-names.ts"
,
"lint:contracts:check"
:
"pnpm lint:fix && git diff --exit-code"
,
"lint:contracts:check"
:
"pnpm lint:fix && git diff --exit-code"
,
"lint:check"
:
"pnpm lint:contracts:check && pnpm lint:ts:check"
,
"lint:check"
:
"pnpm lint:contracts:check && pnpm lint:ts:check"
,
"lint:ts:fix"
:
"eslint --fix ."
,
"lint:ts:fix"
:
"eslint --fix ."
,
...
@@ -39,9 +39,9 @@
...
@@ -39,9 +39,9 @@
"lint"
:
"pnpm lint:fix && pnpm lint:check"
"lint"
:
"pnpm lint:fix && pnpm lint:check"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@typescript-eslint/eslint-plugin"
:
"^
5.60.1
"
,
"@typescript-eslint/eslint-plugin"
:
"^
6.4.0
"
,
"@typescript-eslint/parser"
:
"^
5.60.1
"
,
"@typescript-eslint/parser"
:
"^
6.4.0
"
,
"ts
-node"
:
"^10.9.1
"
,
"ts
x"
:
"^3.12.7
"
,
"typescript"
:
"^5.1.6"
"typescript"
:
"^5.1.6"
}
}
}
}
packages/contracts-bedrock/scripts/forge-test-names.ts
View file @
ae778c4b
...
@@ -2,13 +2,16 @@ import fs from 'fs'
...
@@ -2,13 +2,16 @@ import fs from 'fs'
import
path
from
'
path
'
import
path
from
'
path
'
import
{
execSync
}
from
'
child_process
'
import
{
execSync
}
from
'
child_process
'
type
Check
=
(
parts
:
string
[])
=>
boolean
type
Checks
=
Array
<
{
check
:
Check
error
:
string
}
>
/**
/**
* Series of function name checks.
* Series of function name checks.
*/
*/
const
checks
:
Array
<
{
const
checks
:
Checks
=
[
check
:
(
parts
:
string
[])
=>
boolean
error
:
string
}
>
=
[
{
{
error
:
'
test name parts should be in camelCase
'
,
error
:
'
test name parts should be in camelCase
'
,
check
:
(
parts
:
string
[]):
boolean
=>
{
check
:
(
parts
:
string
[]):
boolean
=>
{
...
...
packages/sdk/.depcheckrc
View file @
ae778c4b
...
@@ -10,5 +10,6 @@ ignores: [
...
@@ -10,5 +10,6 @@ ignores: [
"eslint-config-prettier",
"eslint-config-prettier",
"eslint-plugin-prettier",
"eslint-plugin-prettier",
"chai",
"chai",
"ts-node",
"typedoc"
"typedoc"
]
]
packages/sdk/package.json
View file @
ae778c4b
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
"isomorphic-fetch"
:
"^3.0.0"
,
"isomorphic-fetch"
:
"^3.0.0"
,
"mocha"
:
"^10.0.0"
,
"mocha"
:
"^10.0.0"
,
"nyc"
:
"^15.1.0"
,
"nyc"
:
"^15.1.0"
,
"ts-node"
:
"^10.9.1"
,
"typedoc"
:
"^0.22.13"
,
"typedoc"
:
"^0.22.13"
,
"viem"
:
"^0.3.30"
,
"viem"
:
"^0.3.30"
,
"vitest"
:
"^0.28.3"
,
"vitest"
:
"^0.28.3"
,
...
@@ -58,6 +59,10 @@
...
@@ -58,6 +59,10 @@
"@eth-optimism/contracts"
:
"0.6.0"
,
"@eth-optimism/contracts"
:
"0.6.0"
,
"@eth-optimism/contracts-bedrock"
:
"0.16.0"
,
"@eth-optimism/contracts-bedrock"
:
"0.16.0"
,
"@eth-optimism/core-utils"
:
"0.12.2"
,
"@eth-optimism/core-utils"
:
"0.12.2"
,
"@types/chai"
:
"^4.2.18"
,
"@types/chai-as-promised"
:
"^7.1.4"
,
"@types/mocha"
:
"^10.0.1"
,
"@types/node"
:
"^20.5.0"
,
"lodash"
:
"^4.17.21"
,
"lodash"
:
"^4.17.21"
,
"merkletreejs"
:
"^0.2.27"
,
"merkletreejs"
:
"^0.2.27"
,
"rlp"
:
"^2.2.7"
"rlp"
:
"^2.2.7"
...
...
packages/sdk/tasks/finalize-withdrawal.ts
View file @
ae778c4b
...
@@ -60,6 +60,22 @@ task('finalize-withdrawal', 'Finalize a withdrawal')
...
@@ -60,6 +60,22 @@ task('finalize-withdrawal', 'Finalize a withdrawal')
'
OptimismPortalProxy
'
'
OptimismPortalProxy
'
)
)
if
(
Deployment__L1StandardBridgeProxy
?.
address
===
undefined
)
{
throw
new
Error
(
'
No L1StandardBridgeProxy deployment
'
)
}
if
(
Deployment__L1CrossDomainMessengerProxy
?.
address
===
undefined
)
{
throw
new
Error
(
'
No L1CrossDomainMessengerProxy deployment
'
)
}
if
(
Deployment__L2OutputOracleProxy
?.
address
===
undefined
)
{
throw
new
Error
(
'
No L2OutputOracleProxy deployment
'
)
}
if
(
Deployment__OptimismPortalProxy
?.
address
===
undefined
)
{
throw
new
Error
(
'
No OptimismPortalProxy deployment
'
)
}
const
messenger
=
new
CrossChainMessenger
({
const
messenger
=
new
CrossChainMessenger
({
l1SignerOrProvider
:
signer
,
l1SignerOrProvider
:
signer
,
l2SignerOrProvider
:
l2Signer
,
l2SignerOrProvider
:
l2Signer
,
...
...
pnpm-lock.yaml
View file @
ae778c4b
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment