Skip to content
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

chore: release v0.3.1 #147

Merged
merged 57 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
1f1deee
test: Added check for EOA transfer E2E Test (#75)
rachit77 Sep 18, 2024
faf88bb
fix: Aggregator: use sequenceBatch maxTimestamp as TimestampLimit (#84)
joanestebanr Sep 18, 2024
f477aca
First L1 Info tree in which bridge is included (#70)
arnaubennassar Sep 18, 2024
db81a26
feat: add missing methods needed to generate PP certificate (#82)
arnaubennassar Sep 18, 2024
681c987
feat: seq sender sanity check l1infotree (#86)
joanestebanr Sep 20, 2024
a68d900
test: Custom native gas token transfer E2E test (#79)
Stefan-Ethernal Sep 20, 2024
3e3f348
test: Add smart contract e2e tests (#85)
rachit77 Sep 24, 2024
9a694c4
feat: Add e2e reorg tests to syncers (#56)
rbpol Sep 25, 2024
0f18cf5
ci: update polycli version (#89)
rachit77 Sep 25, 2024
e9a1ec0
feat: update relase regex (#93)
ToniRamirezM Sep 26, 2024
be2703d
Revert "feat: update relase regex (#93)" (#94)
ToniRamirezM Sep 26, 2024
ec3263c
ci: pin kurtosis-cdk version in tests (#92)
vcastellm Sep 26, 2024
6c148e9
add more tests claimtest (#96)
laisolizq Sep 30, 2024
c4c790f
feat: Use InitL1InfoRootMap (#87)
joanestebanr Sep 30, 2024
473cc88
feat: New `zkevm-ethtx-manager` version (#98)
goran-ethernal Sep 30, 2024
ba2b077
feat: remove data stream from sequence sender (#63)
ToniRamirezM Oct 1, 2024
8167397
feat: use config-file on CDK for kurtosis e2e tests (#99)
joanestebanr Oct 1, 2024
ac5c318
feat: update zkevm-synchronizer-l1 to v1.0.2 (#102)
joanestebanr Oct 2, 2024
749ceb8
refactor: simplify running Kurtosis combinations (#101)
vcastellm Oct 2, 2024
2908a20
feat: Initial for packagers (#90)
djpolygon Oct 3, 2024
7550434
feat: Integrate ethtxmanager with sql lite storage (#97)
Stefan-Ethernal Oct 4, 2024
db54c2d
feat: adapt kurtosis cdk and fix errors (#104)
joanestebanr Oct 4, 2024
53f454e
feat: Sequence sender unit tests (#103)
rbpol Oct 4, 2024
34af8b0
feat: Proof Cleaning (#105)
ToniRamirezM Oct 4, 2024
5492f30
feat: Upgraded cdk-rpc dep (#108)
rbpol Oct 4, 2024
9414f24
fix: cdk-523, update zkevm-synchronizer-l1 to v1.0.3 (#109)
joanestebanr Oct 4, 2024
909726e
ci: bump kurtosis tag and cdk-erigon (#106)
vcastellm Oct 6, 2024
e3b8f74
fix: check ssender config (#110)
ToniRamirezM Oct 7, 2024
f54a3a8
fix: if sanity check of l1infotreeUpdateV2 fails, means an error and …
joanestebanr Oct 8, 2024
edabc4c
feat: Run cdk-erigon with cdk config files transparently for the user…
vcastellm Oct 8, 2024
d94418f
ci: fix release tags (#114)
vcastellm Oct 9, 2024
f8bd4d9
refactor: accept empty config file (#118)
vcastellm Oct 9, 2024
999b7b6
refactor: set default on all config values (#119)
vcastellm Oct 9, 2024
3a8a880
test: add test for aggregator (#100)
rachit77 Oct 10, 2024
72ed025
feat: add versions command (#120)
vcastellm Oct 10, 2024
fe655a6
feat: Add support for all the contracts on `test/helpers` so it's eas…
rbpol Oct 10, 2024
ef6849a
fix: shorthand and add descriptions (#123)
vcastellm Oct 11, 2024
3abdb5a
feat: L1 Info Tree sync testing (#124)
rbpol Oct 14, 2024
8e2015f
feat: warning on agglayer rate limit (#122)
ToniRamirezM Oct 14, 2024
e233e6d
Merge remote-tracking branch 'origin/develop' into release/v0.3.0
vcastellm Oct 14, 2024
99dc357
chore: bump erigon (#127)
vcastellm Oct 15, 2024
549b102
chore: sequence sender improvements (#117)
Stefan-Ethernal Oct 16, 2024
67b110e
test: L1infotree and Merkletree (#129)
rachit77 Oct 16, 2024
e42a5de
test: added test for tryGenerateBatchProof (#125)
rachit77 Oct 16, 2024
00bc136
feat: currentStreamBatchRaw sanity check (#131)
ToniRamirezM Oct 17, 2024
08888a1
feat: currentStreamBatchRaw sanity check (#131) (#132)
ToniRamirezM Oct 17, 2024
04f3f3a
fix: Fixing L1 info tree sync tests (#130)
rbpol Oct 17, 2024
bccc190
feat: update DS lib (#133)
ToniRamirezM Oct 17, 2024
c040288
fix: Fixing L1 info tree sync tests (#130) (#134)
ToniRamirezM Oct 17, 2024
e764040
ci: bump kurtosis version (#128)
vcastellm Oct 17, 2024
dad29f2
Merge branch 'release/v0.3.0' into develop
vcastellm Oct 17, 2024
4033aff
Merge branch 'main' into merge-from-main
vcastellm Oct 18, 2024
9539f50
fix: merge conflict
vcastellm Oct 18, 2024
2db589a
Merge pull request #136 from 0xPolygon/merge-from-main
vcastellm Oct 18, 2024
9e5bea7
feat: Merging config-files with variables (#121)
joanestebanr Oct 18, 2024
3a35c8e
test: withdrawal from L2 to L1 (#126)
vcastellm Oct 24, 2024
ad87a4e
bump sync (#142)
arnaubennassar Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
with:
repository: 0xPolygon/kurtosis-cdk
path: "kurtosis-cdk"
ref: "v0.2.14"
ref: "v0.2.15"

- name: Setup Bats and bats libs
uses: bats-core/[email protected]
Expand All @@ -81,3 +81,22 @@ jobs:
env:
KURTOSIS_FOLDER: ${{ github.workspace }}/kurtosis-cdk
BATS_LIB_PATH: /usr/lib/

- name: Dump enclave logs
if: failure()
run: kurtosis dump ./dump

- name: Generate archive name
if: failure()
run: |
archive_name="dump_run_with_args_${{matrix.e2e-group}}_${{ github.run_id }}"
echo "ARCHIVE_NAME=${archive_name}" >> "$GITHUB_ENV"
echo "Generated archive name: ${archive_name}"
kurtosis service exec cdk cdk-node-001 'cat /etc/cdk/cdk-node-config.toml' > ./dump/cdk-node-config.toml

- name: Upload logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARCHIVE_NAME }}
path: ./dump
546 changes: 538 additions & 8 deletions aggregator/aggregator_test.go

Large diffs are not rendered by default.

25 changes: 23 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const (
)

var (
configFileFlag = cli.StringFlag{
configFileFlag = cli.StringSliceFlag{
Name: config.FlagCfg,
Aliases: []string{"c"},
Usage: "Configuration `FILE`",
Usage: "Configuration file(s)",
Required: true,
}
customNetworkFlag = cli.StringFlag{
Expand All @@ -43,6 +43,24 @@ var (
Required: false,
Value: cli.NewStringSlice(common.SEQUENCE_SENDER, common.AGGREGATOR, common.AGGORACLE, common.RPC),
}
saveConfigFlag = cli.StringFlag{
Name: config.FlagSaveConfigPath,
Aliases: []string{"s"},
Usage: "Save final configuration into to the indicated path (name: cdk-node-config.toml)",
Required: false,
}
disableDefaultConfigVars = cli.BoolFlag{
Name: config.FlagDisableDefaultConfigVars,
Aliases: []string{"d"},
Usage: "Disable default configuration variables, all of them must be defined on config files",
Required: false,
}

allowDeprecatedFields = cli.BoolFlag{
Name: config.FlagAllowDeprecatedFields,
Usage: "Allow that config-files contains deprecated fields",
Required: false,
}
)

func main() {
Expand All @@ -53,6 +71,9 @@ func main() {
&configFileFlag,
&yesFlag,
&componentsFlag,
&saveConfigFlag,
&disableDefaultConfigVars,
&allowDeprecatedFields,
}
app.Commands = []*cli.Command{
{
Expand Down
21 changes: 9 additions & 12 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,20 +150,17 @@ func createAggregator(ctx context.Context, c config.Config, runMigrations bool)
}

// READ CHAIN ID FROM POE SC
l2ChainID, err := etherman.GetL2ChainID()
if err != nil {
logger.Fatal(err)
}

st := newState(&c, l2ChainID, stateSQLDB)

c.Aggregator.ChainID = l2ChainID
if c.Aggregator.ChainID == 0 {
l2ChainID, err := etherman.GetL2ChainID()
if err != nil {
logger.Fatal(err)
}
log.Infof("Autodiscover L2ChainID: %d", l2ChainID)
c.Aggregator.ChainID = l2ChainID
}

// Populate Network config
c.Aggregator.Synchronizer.Etherman.Contracts.GlobalExitRootManagerAddr =
c.NetworkConfig.L1Config.GlobalExitRootManagerAddr
c.Aggregator.Synchronizer.Etherman.Contracts.RollupManagerAddr = c.NetworkConfig.L1Config.RollupManagerAddr
c.Aggregator.Synchronizer.Etherman.Contracts.ZkEVMAddr = c.NetworkConfig.L1Config.ZkEVMAddr
st := newState(&c, c.Aggregator.ChainID, stateSQLDB)

aggregator, err := aggregator.New(ctx, c.Aggregator, logger, st, etherman)
if err != nil {
Expand Down
Loading
Loading