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

V0.5.0 to main #683

Merged
merged 208 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
d85fef9
feat: add benchmark tests (#280)
cool-develope Jan 19, 2023
ffe107d
Merge branch 'main' into develop
ARR552 Jan 19, 2023
3eb3b9d
feat: separate the service from the bridge controller (#289)
cool-develope Jan 26, 2023
5c30d80
Feature/#291 smc (#292)
ARR552 Jan 27, 2023
94051e5
Refactor the merkle tree to refactor the last siblings in memory (#294)
cool-develope Feb 1, 2023
d73d230
indexes + migration test utils (#295)
ARR552 Feb 2, 2023
cbded33
fix local l1 bridge address (#300)
ARR552 Feb 8, 2023
b339c93
refactor the merkle tree
cool-develope Feb 8, 2023
4681a29
Refactor the merkle tree to store the updates in the bulk set (#301)
cool-develope Feb 9, 2023
fe4774e
Merge branch 'develop' into 302/fk_root
cool-develope Feb 9, 2023
f9fe47c
add cache to the service
Feb 13, 2023
708e5a8
update github workflows
Feb 13, 2023
0698cbd
Merge pull request #306 from 0xPolygonHermez/302/fk_root
jrs-engineer Feb 15, 2023
c1e4790
Feature/fork (#310)
ARR552 Feb 20, 2023
d528ef8
Merge branch 'develop' into 307/lru_cache
Feb 20, 2023
d2165f5
tidy
Feb 20, 2023
edd8bb7
Merge pull request #311 from 0xPolygonHermez/307/lru_cache
jrs-engineer Feb 20, 2023
0a6430a
support new smc and node fflonk (#315)
ARR552 Feb 27, 2023
d48038b
Merge v0.0.2 (#319)
ARR552 Feb 27, 2023
6c6e4b4
Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.14.0 to 2.15.1 …
ARR552 Feb 28, 2023
d491b3e
Pr against develop (#326)
ARR552 Mar 1, 2023
2689332
wip
Mar 14, 2023
5436c7e
add claimtxman
Mar 14, 2023
dca8780
Fix synchronization when bridge is ahead of the trusted state (#345)
ARR552 Mar 20, 2023
6ebde27
fix e2e tests
Mar 20, 2023
7d2585d
Merge branch 'develop' into 334/auto_claim
jrs-engineer Mar 21, 2023
48d4405
add migration tests
Mar 22, 2023
54a486b
fix duplicate key issue
Mar 28, 2023
4b38bd4
Update claimtxman.go
jrs-engineer Mar 29, 2023
6ea9678
create claimtx keystore
Mar 29, 2023
f94d608
Merge branch '334/auto_claim' of github.com:0xPolygonHermez/zkevm-bri…
Mar 29, 2023
64140e6
update migration sql
Mar 29, 2023
4afb5e6
update deposit goroutine
Mar 29, 2023
89df29e
fix migration
Mar 31, 2023
7377141
Feature/#357 rpc (#358)
ARR552 Apr 5, 2023
26ee405
Merge branch 'develop' into 334/auto_claim
Apr 6, 2023
cb3eca1
go mod tidy
Apr 6, 2023
9b6e022
fix tests failures
Apr 6, 2023
9e1e42b
Feature/#363 sync (#365)
ARR552 Apr 14, 2023
17a0729
Fix/migracion (#368)
ARR552 Apr 14, 2023
25d684d
Merge branch 'develop' into 334/auto_claim
Apr 17, 2023
2fb63ea
fix migrations
Apr 17, 2023
d1a0654
update migrations
Apr 17, 2023
f8c2e73
Merge pull request #347 from 0xPolygonHermez/334/auto_claim
jrs-engineer Apr 17, 2023
e786957
fix invalid nonce
Apr 20, 2023
5f8aa06
Merge pull request #373 from 0xPolygonHermez/372/fix_nonce
jrs-engineer Apr 20, 2023
3914bd6
fix the wrong network ID in the claimtxman
Apr 24, 2023
dc79ca6
Merge pull request #381 from 0xPolygonHermez/fix/networkid_claimtxman
jrs-engineer Apr 24, 2023
66e2eb8
fix the nonce issue
Apr 27, 2023
3bd8389
Merge pull request #389 from 0xPolygonHermez/387/fix_nonce
jrs-engineer Apr 27, 2023
32a528a
Release/v0.0.4 (#385)
ARR552 Apr 28, 2023
dcb8177
update versions and go 1.19 (#392)
ARR552 Apr 28, 2023
5d9c889
reset once in a cycle
jrs-engineer May 2, 2023
b96b4d0
Bump github.com/iden3/go-iden3-crypto from 0.0.14 to 0.0.15 (#402)
dependabot[bot] May 3, 2023
9f82919
Bump github.com/lib/pq from 1.10.7 to 1.10.9 (#401)
dependabot[bot] May 3, 2023
97a7ee1
Bump github.com/urfave/cli/v2 from 2.25.1 to 2.25.3 (#397)
dependabot[bot] May 3, 2023
a8b8496
Bump github.com/hashicorp/golang-lru/v2 from 2.0.1 to 2.0.2 (#395)
dependabot[bot] May 3, 2023
cfcc4cf
initClaim script (#405)
ARR552 May 4, 2023
f4834c3
Merge pull request #400 from 0xPolygonHermez/398/nonce_reset
jrs-engineer May 4, 2023
6da9e0e
Removed the e2e table test as it wasn't being used
acroca May 5, 2023
f8a2072
Merge branch 'develop' into remove-e2e-table-test
jrs-engineer May 5, 2023
f59eab0
Merge pull request #408 from 0xPolygonHermez/remove-e2e-table-test
acroca May 8, 2023
4f9fa5f
logs (#409)
ARR552 May 8, 2023
917de79
fix nonce update (#410)
ARR552 May 10, 2023
bd30640
Bump golang.org/x/crypto from 0.8.0 to 0.9.0 (#411)
dependabot[bot] May 10, 2023
c61ace5
Bump google.golang.org/grpc from 1.54.0 to 1.55.0 (#407)
dependabot[bot] May 10, 2023
af2f54b
Bump github.com/0xPolygonHermez/zkevm-node from 0.0.7 to 0.0.8 (#406)
dependabot[bot] May 10, 2023
259a92e
Renames references to smart contracts to a more descriptive name
acroca May 16, 2023
f68ed57
Merge pull request #415 from 0xPolygonHermez/rename-smc-names
acroca May 17, 2023
68aa133
Update network config defaults
acroca May 17, 2023
4cf1390
Require either network section in config or flag
acroca May 17, 2023
3efcc46
Merge pull request #417 from 0xPolygonHermez/update-network-configs
acroca May 18, 2023
5e93c48
Make ClaimTxManager optional
acroca May 18, 2023
82125b1
Bump github.com/stretchr/testify from 1.8.2 to 1.8.3
dependabot[bot] May 19, 2023
f59027c
Enable/Disable the claimtxmanager explicitly
acroca May 19, 2023
10773ee
Enabled autoclaim in the debug config
acroca May 19, 2023
e59b143
Merge pull request #419 from 0xPolygonHermez/optional-claimtxman
acroca May 19, 2023
469e34b
Copied versioning system from zkevm-node
acroca May 22, 2023
62769c3
Merge branch 'develop' into dependabot/go_modules/develop/github.com/…
acroca May 22, 2023
7319c06
Merge pull request #420 from 0xPolygonHermez/dependabot/go_modules/de…
acroca May 22, 2023
362021c
Use the network ID when updating L2 deposits
acroca May 22, 2023
c89f1be
Update db/pgstorage/pgstorage.go
acroca May 22, 2023
09e0247
Merge pull request #421 from 0xPolygonHermez/automatic-version
acroca May 22, 2023
59dec02
Merge branch 'develop' into update-status-specific-network-id
acroca May 22, 2023
f4f0239
Tested upgrade L2 deposit with different rollups
acroca May 23, 2023
c1c358f
Merge pull request #422 from 0xPolygonHermez/update-status-specific-n…
acroca May 24, 2023
3d9eebd
fix ignore deposit if fails during gasestimation (#424)
ARR552 May 25, 2023
7996691
fix (#428)
ARR552 May 26, 2023
8813326
fix node config (#429)
ARR552 May 26, 2023
c6ed561
Bump github.com/0xPolygonHermez/zkevm-node from 0.0.8 to 0.1.0 (#427)
dependabot[bot] May 26, 2023
aa557d6
Bump github.com/ethereum/go-ethereum from 1.11.6 to 1.12.0 (#426)
dependabot[bot] May 26, 2023
4e1ca55
fix initClaim (#431)
ARR552 May 26, 2023
dd2496f
metadata fix (#433)
ARR552 May 29, 2023
203b22d
Bump github.com/urfave/cli/v2 from 2.25.3 to 2.25.5 (#434)
dependabot[bot] May 30, 2023
b0e81cb
Fix/gha (#383)
arnaubennassar May 30, 2023
e326d72
Bump github.com/spf13/viper from 1.15.0 to 1.16.0 (#435)
dependabot[bot] May 31, 2023
774d732
Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#436)
dependabot[bot] May 31, 2023
8ef86cb
Refactor required by zklidium(#437)
ARR552 May 31, 2023
a955449
retry if error is different of execution reverted (#446)
ARR552 Jun 14, 2023
9386301
Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.15.1 to 2.16.0 …
dependabot[bot] Jun 14, 2023
cea2b62
Bump github.com/hashicorp/golang-lru/v2 from 2.0.2 to 2.0.3 (#442)
dependabot[bot] Jun 14, 2023
5e58a7b
Bump github.com/0xPolygonHermez/zkevm-node from 0.1.0 to 0.1.2 (#443)
dependabot[bot] Jun 14, 2023
e8f1617
Bump github.com/urfave/cli/v2 from 2.25.5 to 2.25.6 (#444)
dependabot[bot] Jun 14, 2023
bb69458
Bump golang.org/x/crypto from 0.9.0 to 0.10.0 (#447)
dependabot[bot] Jun 14, 2023
4850f3c
Bump google.golang.org/grpc from 1.55.0 to 1.56.0 (#448)
dependabot[bot] Jun 19, 2023
59c1ba7
logs (#449)
ARR552 Jun 19, 2023
4520b7b
Bump github.com/urfave/cli/v2 from 2.25.6 to 2.25.7 (#451)
dependabot[bot] Jun 27, 2023
824a5f7
Bump github.com/hashicorp/golang-lru/v2 from 2.0.3 to 2.0.4 (#452)
dependabot[bot] Jun 27, 2023
e708c20
Bump google.golang.org/grpc from 1.56.0 to 1.56.1 (#453)
dependabot[bot] Jun 27, 2023
d8d8495
Bump github.com/rubenv/sql-migrate from 1.4.0 to 1.5.1 (#456)
dependabot[bot] Jun 27, 2023
9f4f1fc
Bump google.golang.org/protobuf from 1.30.0 to 1.31.0 (#457)
dependabot[bot] Jun 27, 2023
17dbf49
Add docs on how to fund local L2 account (#455)
compojoom Jun 28, 2023
555e6b3
Bump github.com/0xPolygonHermez/zkevm-node from 0.1.2 to 0.1.3 (#458)
dependabot[bot] Jun 28, 2023
6e9430f
Bump github.com/0xPolygonHermez/zkevm-node from 0.1.3 to 0.1.4 (#459)
dependabot[bot] Jul 5, 2023
7d1d02e
Bump golang.org/x/crypto from 0.10.0 to 0.11.0 (#460)
dependabot[bot] Jul 6, 2023
2ce6072
Bump google.golang.org/grpc from 1.56.1 to 1.56.2 (#461)
dependabot[bot] Jul 10, 2023
81c5557
Bump github.com/rubenv/sql-migrate from 1.5.1 to 1.5.2 (#474)
dependabot[bot] Aug 3, 2023
7395929
Bump github.com/jackc/pgconn from 1.14.0 to 1.14.1 (#475)
dependabot[bot] Aug 3, 2023
f1b5c65
Bump google.golang.org/grpc from 1.56.2 to 1.57.0 (#480)
dependabot[bot] Aug 3, 2023
02b9a14
Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.16.0 to 2.16.2 …
dependabot[bot] Aug 3, 2023
1fa5e46
Bump github.com/0xPolygonHermez/zkevm-node from 0.1.4 to 0.2.2 (#483)
dependabot[bot] Aug 3, 2023
f774d1b
Bump github.com/0xPolygonHermez/zkevm-node from 0.2.2 to 0.2.3 (#485)
dependabot[bot] Aug 4, 2023
57d9fc7
Bump golang.org/x/crypto from 0.11.0 to 0.12.0 (#489)
dependabot[bot] Aug 9, 2023
9c2b507
Bump github.com/0xPolygonHermez/zkevm-node from 0.2.3 to 0.2.4 (#490)
dependabot[bot] Aug 9, 2023
1e2d504
Bump github.com/hashicorp/golang-lru/v2 from 2.0.4 to 2.0.5 (#491)
dependabot[bot] Aug 9, 2023
9532850
Feature/#486 update versions (#487)
ARR552 Aug 9, 2023
cbbe83a
Release/v0.2.0 (#495)
ARR552 Aug 17, 2023
2d7eef4
Check in claimtxmanager to block until l2network is synced (#498)
ARR552 Aug 18, 2023
ebaa19c
remove alice and bob from pr template
tclemos Aug 30, 2023
81740ce
Merge pull request #504 from 0xPolygonHermez/remove-users-from-template
ToniRamirezM Aug 30, 2023
00a2f46
Bump github.com/hashicorp/golang-lru/v2 from 2.0.5 to 2.0.6 (#500)
dependabot[bot] Sep 14, 2023
d8c9ede
Bump golang.org/x/crypto from 0.12.0 to 0.13.0 (#506)
dependabot[bot] Sep 14, 2023
4ba5160
Bump github.com/0xPolygonHermez/zkevm-node from 0.2.4 to 0.3.1 (#508)
dependabot[bot] Sep 14, 2023
0801ff5
Bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.16.2 to 2.18.0 …
dependabot[bot] Sep 14, 2023
a34cbce
Bump github.com/ethereum/go-ethereum from 1.12.0 to 1.13.0 (#509)
dependabot[bot] Sep 14, 2023
3818ffc
Primary keys in db tables (#511)
ARR552 Sep 14, 2023
cd198bb
Bump google.golang.org/grpc from 1.58.0 to 1.58.1 (#512)
dependabot[bot] Sep 15, 2023
2478b37
New indexes + tests (#515)
ARR552 Sep 19, 2023
179d116
Bump github.com/ethereum/go-ethereum from 1.13.0 to 1.13.1 (#513)
dependabot[bot] Sep 19, 2023
1466da4
Fix/#478 tx history (#517)
ARR552 Sep 21, 2023
40a1d4d
Bump google.golang.org/grpc from 1.58.1 to 1.58.2 (#518)
dependabot[bot] Sep 22, 2023
9e6236f
autoclaim bridge msg for authorized addrs (#519)
ARR552 Sep 26, 2023
0c7bfe1
Bump github.com/hashicorp/golang-lru/v2 from 2.0.6 to 2.0.7 (#521)
dependabot[bot] Oct 2, 2023
a2c111f
Bump github.com/ethereum/go-ethereum from 1.13.1 to 1.13.2 (#520)
dependabot[bot] Oct 2, 2023
7d3d3bb
Remove blockid (#524)
ARR552 Oct 5, 2023
bd23f9b
new docker image versions (#526)
ARR552 Oct 5, 2023
9487193
Bump golang.org/x/crypto from 0.13.0 to 0.14.0 (#527)
dependabot[bot] Oct 9, 2023
709dd49
Bump github.com/spf13/viper from 1.16.0 to 1.17.0 (#528)
dependabot[bot] Oct 9, 2023
325fe34
remove deposit counter from mt.root table (#531)
ARR552 Oct 16, 2023
08150c7
fix migration (#549)
ARR552 Nov 23, 2023
587ba8b
Feature/#533 lx ly (#546)
ARR552 Nov 30, 2023
dad171d
Feature/#555 smc etrog (#556)
ARR552 Jan 11, 2024
fa88bf2
Feature/v1tov2 (#573)
ARR552 Jan 19, 2024
429207c
Feature/v1to v2 (#576)
ARR552 Jan 24, 2024
22d0ce3
fix + minor refactor (#577)
ARR552 Jan 24, 2024
1c2f086
New docker versions of prover + node (#578)
ARR552 Jan 27, 2024
61080b6
network bigint
joanestebanr Feb 14, 2024
14537f2
fix unittest and lint
joanestebanr Feb 15, 2024
be5fc83
Merge pull request #582 from 0xPolygonHermez/feature/improve_db_bigint
joanestebanr Feb 19, 2024
84f2a76
fix release
joanestebanr Feb 21, 2024
d3c0c0f
change github_token
joanestebanr Feb 21, 2024
22a1020
add goreleaser.yml
joanestebanr Feb 21, 2024
80fefb9
only launch release process if tag is vx.y.z
joanestebanr Feb 21, 2024
ab971ee
Fix wrong relation of claim_tx_hash
arnaubennassar Feb 19, 2024
63b2146
remove binary
joanestebanr Feb 22, 2024
dc768aa
uniitest + skip deposits that the destination is not our rollup
joanestebanr Feb 22, 2024
355b3df
fix unittest
joanestebanr Feb 22, 2024
b77becf
revert directives, fix lint
joanestebanr Feb 22, 2024
b25a3e9
revert change on GetClaim function
joanestebanr Feb 23, 2024
2289395
Merge pull request #589 from 0xPolygonHermez/feature/588-avoid_claim_…
joanestebanr Feb 23, 2024
a35a8b0
revert change on release tags
joanestebanr Feb 23, 2024
bb16c74
build docker
joanestebanr Feb 23, 2024
7de2dac
build docker
joanestebanr Feb 23, 2024
d1e2a6b
build docker
joanestebanr Feb 23, 2024
e925aae
build docker
joanestebanr Feb 23, 2024
03afcd0
fix push-docker
joanestebanr Feb 23, 2024
51ec92f
Merge pull request #592 from 0xPolygonHermez/release/v0.4.1
joanestebanr Feb 26, 2024
e1430c3
stop using log from zkevm-node and imported to brdige service the log…
joanestebanr Feb 26, 2024
55ad503
Merge pull request #594 from 0xPolygonHermez/fix/593-report_right_ver…
joanestebanr Feb 26, 2024
c31b70d
ignore claims from another rollups
joanestebanr Mar 6, 2024
a30d2bc
add log
joanestebanr Mar 6, 2024
ad77bb3
Merge pull request #598 from 0xPolygonHermez/release/v0.4.2
joanestebanr Mar 6, 2024
aa8abad
Create SECURITY.md
mt-polygon-technology Mar 13, 2024
5dccda7
Merge pull request #601 from 0xPolygonHermez/security-update
mt-polygon-technology Mar 13, 2024
719fda2
Bump google.golang.org/grpc from 1.59.0 to 1.60.1 (#563)
dependabot[bot] Mar 28, 2024
87b28f3
Bump github.com/ethereum/go-ethereum from 1.13.2 to 1.13.8 (#566)
dependabot[bot] Mar 28, 2024
48f8b52
feat: add default fn to parse default config file (#609)
leovct Apr 22, 2024
91e0ae4
auto-claim: group and compress claim transactions (#600)
joanestebanr Apr 30, 2024
6728a07
Bump github.com/jackc/pgx/v4 from 4.18.1 to 4.18.3 (#608)
dependabot[bot] Apr 30, 2024
0b9bdf5
Bump github.com/jackc/pgconn from 1.14.1 to 1.14.3 (#607)
dependabot[bot] Apr 30, 2024
a87e64d
Bump github.com/iden3/go-iden3-crypto from 0.0.15 to 0.0.16 (#605)
dependabot[bot] Apr 30, 2024
5f1b92c
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#604)
dependabot[bot] Apr 30, 2024
bf60a91
Bump google.golang.org/grpc from 1.60.1 to 1.63.2 (#615)
dependabot[bot] May 2, 2024
70d19b0
Bump google.golang.org/protobuf from 1.32.0 to 1.34.0 (#613)
dependabot[bot] May 2, 2024
c373bd5
Bump golang.org/x/crypto from 0.20.0 to 0.22.0 (#614)
dependabot[bot] May 2, 2024
825772a
Fix nil pointer
ARR552 May 2, 2024
899a9f0
fix slice position (#617)
ARR552 May 2, 2024
57530a6
gas offset (#623)
ARR552 May 3, 2024
9b5e260
fix (#625)
ARR552 May 6, 2024
98b2f6e
Feature/#612 reorg (#630)
ARR552 May 8, 2024
f23b6de
Fix/auth estimage gas (#631)
ARR552 May 9, 2024
9f691b8
fix chain ID (#636)
ARR552 May 27, 2024
f81be4a
Feature/optimizations (#663)
ARR552 Aug 13, 2024
ee44c7c
Fix/check verify batches (#665)
ARR552 Aug 13, 2024
76f4ee6
Feature/allow bridges between l2 networks (#669)
ARR552 Aug 21, 2024
9395322
Feature/multi net support (#670)
ARR552 Aug 29, 2024
8b7867f
fix (#675)
ARR552 Sep 3, 2024
1345aec
Merge tag 'v0.5.0' into v0.5.0_to_main
ARR552 Sep 19, 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
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Codeowner reviewers:

<!-- Codeowners should review only the part of code that they own, they're added automatically as reviewers and it's good to let them know that they shouldn't do a full review -->

- @Alice
- @Bob
- @-Alice
- @-Bob
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.19.x
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v2
- name: Lint
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*' # this action will only run on tags that follow semver

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
hermeznetwork/zkevm-bridge-service
hermeznetwork/zkevm-bridge-service:2.0
hermeznetwork/zkevm-bridge-service:${{ github.ref_name }}
build-args: |
PRIVATE_TOKEN=${{secrets.GIT_TOKEN}}
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ name: goreleaser
on:
push:
tags:
- 'v*.*.*'
- 'v[0-9]+.[0-9]+.[0-9]+' # this action will only run on tags that follow semver

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.19
go-version: 1.21

- name: Get packr
run: go get -u github.com/gobuffalo/packr/v2/packr2
run: go install github.com/gobuffalo/packr/v2/packr2@v2.8.3

- name: Prepare
run: git reset --hard

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_RELEASE }}
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test-e2e:
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
runs-on: ubuntu-latest
steps:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/test-e2ecompress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test
on:
push:
branches:
- main
- master
- develop
- update-external-dependencies
pull_request:
jobs:
test-e2ecompress:
strategy:
matrix:
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
env:
GOARCH: ${{ matrix.goarch }}
- name: Test
run: make test-e2ecompress
2 changes: 1 addition & 1 deletion .github/workflows/test-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test-edge:
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
runs-on: ubuntu-latest
steps:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/test-l2l2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test
on:
push:
branches:
- main
- master
- develop
- update-external-dependencies
pull_request:
jobs:
test-l2l2:
strategy:
matrix:
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
env:
GOARCH: ${{ matrix.goarch }}
- name: Test
run: make test-l2l2
27 changes: 27 additions & 0 deletions .github/workflows/test-multiplerollups.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test
on:
push:
branches:
- main
- master
- develop
- update-external-dependencies
pull_request:
jobs:
test-multiplerollups:
strategy:
matrix:
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
env:
GOARCH: ${{ matrix.goarch }}
- name: Test
run: make test-multiplerollups
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
test:
strategy:
matrix:
go-version: [ 1.19.x ]
go-version: [ 1.21.x ]
goarch: [ "amd64" ]
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/updatedeps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: "1.19.x"
go-version: "1.21.x"
env:
GOARCH: "amd64"
- name: Install Protoc
Expand Down
22 changes: 22 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# .goreleaser.yaml
builds:
- main: ./cmd/
goos:
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/0xPolygonHermez/zkevm-bridge-service.Version={{.Version}}
- -X github.com/0xPolygonHermez/zkevm-bridge-service.GitRev={{.Commit}}
- -X github.com/0xPolygonHermez/zkevm-bridge-service.BuildDate={{.Date}}
- -X github.com/0xPolygonHermez/zkevm-bridge-service.GitBranch={{.Branch}}
release:
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
# Default is false.
prerelease: true
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# CONTAINER FOR BUILDING BINARY
FROM golang:1.19 AS build
FROM golang:1.21 AS build

ENV CGO_ENABLED=0
# INSTALL DEPENDENCIES
Expand All @@ -15,6 +15,7 @@ RUN cd /src && make build
# CONTAINER FOR RUNNING BINARY
FROM alpine:3.16.0
COPY --from=build /src/dist/zkevm-bridge /app/zkevm-bridge
COPY --from=build /src/dist/test-deploy-claimcompressor /app/test-deploy-claimcompressor
COPY --from=build /src/test/vectors /app/test/vectors
EXPOSE 8080
EXPOSE 9090
Expand Down
Loading
Loading