-
Notifications
You must be signed in to change notification settings - Fork 3.9k
L1 Batch Submission + L1 Event / Tx parsing #183
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
Merged
willmeister
merged 15 commits into
master
from
YAS-489/EndToEndBatchSubmissionAndParsing
Jul 13, 2020
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
cc0ae1c
Adding event emission and tests to rollup chain contracts
willmeister 992470c
Removes tx hashes from event emission. Adds tx data to L1ToL2 event
willmeister d29c2fe
Adding L1 Batch Submitter
willmeister 1cce2aa
Adding QueueOrigin enum and log handlers
willmeister 55fad61
fixing up rollup tx data structure, table, & queries to have necessar…
willmeister bb42a0b
Adding L1BatchSubmitter tests
willmeister d28cbce
Added happy path tests for the Log Handlers
willmeister fa31ce9
Merge branch 'master' into YAS-489/EndToEndBatchSubmissionAndParsing
willmeister c802c9a
merging in master
willmeister da5e085
Update packages/core-utils/src/app/misc.ts
willmeister 4e8f267
Removing sender address from rollup format in favor of recovering it …
willmeister 29ddff6
moving getTxSigner to core-utils
willmeister 68b86ff
fixing add0x and remove0x on undefined
willmeister 7d7f597
fixing keccak 0x issue
willmeister ea5cd80
fixing regression
willmeister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,54 +1,55 @@ | ||
| name: Build & Tag Container, Push to ECR, Deploy to Dev | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build, Tag & push to ECR, Deploy task | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Setup node | ||
| uses: actions/setup-node@v1 | ||
|
|
||
| - name: Install Dependencies | ||
| run: yarn install | ||
|
|
||
| - name: Build | ||
| run: | | ||
| yarn clean | ||
| yarn build | ||
|
|
||
| - name: Configure AWS Credentials | ||
| uses: aws-actions/configure-aws-credentials@v1 | ||
| with: | ||
| aws-access-key-id: ${{ secrets.AWS_CI_USER_ACCESS_KEY_ID }} | ||
| aws-secret-access-key: ${{ secrets.AWS_CI_USER_SECRET_ACCESS_KEY }} | ||
| aws-region: us-east-2 | ||
|
|
||
| - name: Login to Amazon ECR | ||
| id: login-ecr | ||
| uses: aws-actions/amazon-ecr-login@v1 | ||
|
|
||
| - name: Build, tag, and push image to Amazon ECR | ||
| env: | ||
| ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
| ECR_REPOSITORY: optimism/rollup-full-node | ||
| IMAGE_TAG: latest | ||
| run: | | ||
| docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . | ||
| docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG | ||
|
|
||
| - name: Stop existing dev-rollup-full-node ECS task to auto-start task with new image | ||
| run: | | ||
| ./.github/scripts/stop-ecs-task.sh dev-full-node full-node | ||
| ./.github/scripts/stop-ecs-task.sh synthetix-dev-full-node full-node | ||
|
|
||
|
|
||
| - name: Logout of Amazon ECR | ||
| if: always() | ||
| run: docker logout ${{ steps.login-ecr.outputs.registry }} | ||
| # TODO: Uncomment when Dev works | ||
| #name: Build & Tag Container, Push to ECR, Deploy to Dev | ||
| # | ||
| #on: | ||
| # push: | ||
| # branches: | ||
| # - master | ||
| # | ||
| #jobs: | ||
| # build: | ||
| # name: Build, Tag & push to ECR, Deploy task | ||
| # runs-on: ubuntu-latest | ||
| # | ||
| # steps: | ||
| # - uses: actions/checkout@v2 | ||
| # - name: Setup node | ||
| # uses: actions/setup-node@v1 | ||
| # | ||
| # - name: Install Dependencies | ||
| # run: yarn install | ||
| # | ||
| # - name: Build | ||
| # run: | | ||
| # yarn clean | ||
| # yarn build | ||
| # | ||
| # - name: Configure AWS Credentials | ||
| # uses: aws-actions/configure-aws-credentials@v1 | ||
| # with: | ||
| # aws-access-key-id: ${{ secrets.AWS_CI_USER_ACCESS_KEY_ID }} | ||
| # aws-secret-access-key: ${{ secrets.AWS_CI_USER_SECRET_ACCESS_KEY }} | ||
| # aws-region: us-east-2 | ||
| # | ||
| # - name: Login to Amazon ECR | ||
| # id: login-ecr | ||
| # uses: aws-actions/amazon-ecr-login@v1 | ||
| # | ||
| # - name: Build, tag, and push image to Amazon ECR | ||
| # env: | ||
| # ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
| # ECR_REPOSITORY: optimism/rollup-full-node | ||
| # IMAGE_TAG: latest | ||
| # run: | | ||
| # docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG . | ||
| # docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG | ||
| # | ||
| # - name: Stop existing dev-rollup-full-node ECS task to auto-start task with new image | ||
| # run: | | ||
| # ./.github/scripts/stop-ecs-task.sh dev-full-node full-node | ||
| # ./.github/scripts/stop-ecs-task.sh synthetix-dev-full-node full-node | ||
| # | ||
| # | ||
| # - name: Logout of Amazon ECR | ||
| # if: always() | ||
| # run: docker logout ${{ steps.login-ecr.outputs.registry }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| export const ZERO_ADDRESS = '0x' + '00'.repeat(20) | ||
| export const INVALID_ADDRESS = '0xdeaDDeADDEaDdeaDdEAddEADDEAdDeadDEADDEaD' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| export * from './l1-batch-submitter' | ||
| export * from './l2-batch-creator' | ||
| export * from './l2-batch-submitter' | ||
| export * from './verifier' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
😀😀😀