Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
250 commits
Select commit Hold shift + click to select a range
916d6a4
params: release Geth v1.15.5
karalabe Nov 14, 2023
58d6440
Feature/grpc execution api (#1)
steezeburger Mar 27, 2023
41382d4
updates
joroshiba Dec 15, 2023
0b055bf
txpool fixes, remove v1alpha1, use forkchoice
joroshiba Dec 15, 2023
020a98e
some cleanup
joroshiba Dec 15, 2023
53c3688
formatting and such
joroshiba Dec 15, 2023
a285e43
cleanup
joroshiba Dec 15, 2023
65f8214
think it's good
joroshiba Dec 16, 2023
0f97c48
add new fields to base example genesis
joroshiba Jan 10, 2024
4cdf7e9
Merge pull request #36 from astriaorg/joroshiba/sync
joroshiba Jan 10, 2024
e0b80a9
Update gh action for release branch
joroshiba Jan 10, 2024
2373203
Merge pull request #37 from astriaorg/joroshiba/image-versions
joroshiba Jan 10, 2024
288dd24
Add timestamp to block generated from header
joroshiba Jan 10, 2024
d7c7f05
Merge pull request #38 from astriaorg/joroshiba/add-timestamp
joroshiba Jan 10, 2024
6fcf59b
Add missing parent hash
joroshiba Jan 10, 2024
c21f45a
Merge pull request #39 from astriaorg/joroshiba/fix-parent-block-hash
joroshiba Jan 10, 2024
1ab38a7
chore: add some metrics specifically around astria tx execution
joroshiba Jan 12, 2024
07b5891
small refactor
joroshiba Jan 12, 2024
81d890d
fix
joroshiba Jan 12, 2024
75206fb
Merge pull request #40 from astriaorg/joroshiba/add-astria-metrics
joroshiba Jan 12, 2024
d6df03e
feat: everything needed for genesis
joroshiba Jan 17, 2024
27949f9
fix
joroshiba Jan 18, 2024
aaadda9
review + metrics
joroshiba Feb 7, 2024
8e4c5a8
update to prod pushed buf
joroshiba Feb 7, 2024
25ae904
fix after grpc update
joroshiba Feb 7, 2024
e6a601c
switch to new execution apis package
joroshiba Feb 13, 2024
af9f7e4
Merge pull request #41 from astriaorg/joroshiba/genesis-info
joroshiba Feb 13, 2024
886cfc1
feat: support new API utilizing rollup data
joroshiba Mar 14, 2024
882c887
update to latest proto
joroshiba Mar 16, 2024
5ee4ef2
Merge pull request #43 from astriaorg/joroshiba/upgrade-to-support-ro…
joroshiba Mar 19, 2024
ad3b9af
update docker to login
joroshiba Mar 19, 2024
5c03068
Merge pull request #44 from astriaorg/joroshiba/fix-build
joroshiba Mar 19, 2024
01fa5e5
implement DepositTx type and handle in state transition and execute_b…
noot Mar 22, 2024
0a00f5c
cleanup
noot Mar 22, 2024
0480163
fixes to get deposits working, update genesis.json
noot Mar 26, 2024
617e638
cleanup
noot Mar 26, 2024
6eccacc
cleanup
noot Mar 26, 2024
21e9946
exit node if genesis astria fields are unset
noot Mar 26, 2024
a04a97d
Merge pull request #45 from astriaorg/noot/deposits
noot Apr 2, 2024
d05e3b2
Merge pull request #46 from astriaorg/noot/startup-checks
noot Apr 2, 2024
a25ffda
add bridge address and asset IDs to genesis and check during execution
noot Apr 2, 2024
744a32e
Merge pull request #47 from astriaorg/noot/bridge-genesis
noot Apr 3, 2024
a8edeac
don't allow deposit or blob txs in sequenced data
noot Apr 4, 2024
35735f1
Merge pull request #48 from astriaorg/noot/fix
noot Apr 5, 2024
8b99135
minimum changes required for fork (#2)
joroshiba Apr 24, 2024
ad7a6d9
feat: update protos, config for fees, updated bridging (#1)
joroshiba Apr 30, 2024
2a45366
Allow setting eip 1559 fee params (#3)
mycodecrafting May 1, 2024
fe45f4e
collect the base fee instead of burning it (#5)
mycodecrafting May 3, 2024
a9326e1
Chore: Add forkdiff gh-page (#14)
quasystaty1 May 13, 2024
1a9b491
feat: remove txs which do not end up in a block out of the mempool (#15)
bharath-123 May 15, 2024
ed9c11a
chore: make server logs less noisy (#12)
joroshiba May 20, 2024
03f5d7e
fix: continue the tx validation loop if assetId length check fails (…
bharath-123 May 21, 2024
8e07060
fix: Fix tests which were failing (#16)
bharath-123 May 24, 2024
ee7ffab
chore: migrate to depot to fix builds (#23)
joroshiba May 30, 2024
9185612
feat: Add tests for execution grpc server and astria configs (#17)
bharath-123 May 31, 2024
7d62f08
feat!: store celestia height updates (#22)
joroshiba Jun 1, 2024
a0420e4
ci: update the test ci to run build/ci.go (#27)
bharath-123 Jun 4, 2024
3d160b2
implement `AstriaMintableERC20`, update deposit tx to support ERC20 m…
noot Jun 10, 2024
2b8a8ee
Update Astria-geth to use geth 1.14.3 (#21)
bharath-123 Jun 20, 2024
81ca300
disallow users from sending deposit txs and blob txs via the rpc (#24)
bharath-123 Jun 20, 2024
f59ca43
fix: Ensure all txs are removed from mempool when block building is i…
bharath-123 Jun 20, 2024
082e84f
feat: support bech32 addresses (#30)
joroshiba Jun 27, 2024
e89845e
fix: update with new asset proto (#34)
joroshiba Jun 28, 2024
eb710b9
Fix GetGenesisInfo after monorepo #1291 (#38)
ethanoroshiba Jul 25, 2024
4e8b3c4
fix: forkdiff page (#35)
quasystaty1 Jul 27, 2024
5d32fc5
fix: add static checks to grpc requests (#40)
joroshiba Aug 27, 2024
e5c5013
allow 0 block in commitment state (#43)
joroshiba Aug 27, 2024
401c3d5
Update DepositTx for monorepo #1410 (#42)
ethanoroshiba Sep 11, 2024
bf8afe3
Fix issue with using a pointer to an iteration variable of a range lo…
mycodecrafting Sep 25, 2024
171c5e4
build: merge release/0.14.3 into main (#49)
mycodecrafting Oct 1, 2024
b43daa1
fix: use mutex lock for tx removal (#51)
joroshiba Oct 9, 2024
c3cfc16
fix: use mutex lock for tx removal (#51)
joroshiba Oct 9, 2024
459cc3d
Merge pull request #13 from astriaorg/bharath/cherry-pick-fix-mempool
bharath-123 Oct 16, 2024
09c27dc
chore: upgrade to v1 server api (#53)
joroshiba Oct 17, 2024
681831d
fix the fork diff (#54)
joroshiba Oct 25, 2024
3ce87f8
Fix issue with using a pointer to an iteration variable of a range lo…
mycodecrafting Sep 25, 2024
9f109b2
build: merge release/0.14.3 into main (#49)
mycodecrafting Oct 1, 2024
00e8930
chore: upgrade to v1 server api (#53)
joroshiba Oct 17, 2024
dcd937f
fix the fork diff (#54)
joroshiba Oct 25, 2024
7c318f4
Merge pull request #19 from astriaorg/bharath/rebase-with-astria-geth
bharath-123 Oct 29, 2024
b0bacf6
Merge `local-dev` branch into `main` (#56)
jbowen93 Nov 22, 2024
cf11704
fix: dont timeout execution (#63)
joroshiba Jan 2, 2025
512bfbe
add workflow to label issues for project mgmt
bharath-123 Jan 9, 2025
0b7ad69
Merge pull request #26 from astriaorg/bharath/add-project-tracking
bharath-123 Jan 9, 2025
83d2de0
update depot token in docker workflow
bharath-123 Jan 9, 2025
f15971d
Merge pull request #27 from astriaorg/bharath/add-docker-workflows
bharath-123 Jan 9, 2025
09284d0
fix: dont timeout execution (#63)
joroshiba Jan 2, 2025
4eb1eee
Merge pull request #29 from astriaorg/bharath/rebase-from-astria-geth
bharath-123 Jan 13, 2025
2c091a2
implement optimistic block execution with tests
bharath-123 Oct 29, 2024
14ecb93
use commitmentUpdateLock when accessing the safe block
bharath-123 Oct 29, 2024
9ffc153
fix test
bharath-123 Oct 29, 2024
d4ed621
add a flag to check if the payload is being built optimistically
bharath-123 Sep 30, 2024
3946bba
add tx validaton to optimistic block execution
bharath-123 Oct 24, 2024
4745feb
take the block execution lock when accessing nextFeeRecipient
bharath-123 Oct 24, 2024
0130470
use v1 protos
bharath-123 Oct 29, 2024
12f933c
acquire fee recipient lock after getting the softblock
bharath-123 Nov 12, 2024
9f7886f
avoid taking block commitment lock when fetching softblock pointer
bharath-123 Nov 20, 2024
a7b1404
add event for optimistic head
bharath-123 Sep 27, 2024
21416ea
add optimistic head subscription method to mempool Blockchain interface
bharath-123 Sep 24, 2024
721ee82
test fixes
bharath-123 Sep 27, 2024
a800a16
use optimistic head event in txpool's maintanance loop
bharath-123 Sep 24, 2024
0fac052
fix tests
bharath-123 Oct 24, 2024
c62b0bd
add logic to clear mempool
bharath-123 Sep 26, 2024
e09cfde
remove invalids
bharath-123 Sep 26, 2024
878c5c0
add comments
bharath-123 Sep 26, 2024
f2fdd0f
remove mempool conditionals
bharath-123 Oct 16, 2024
6a8e446
split out reset logic and head only reset logc
bharath-123 Oct 24, 2024
01be512
ensure that unreserved addresses are removed
bharath-123 Nov 10, 2024
2051f8a
add event for mempool clearance
bharath-123 Nov 10, 2024
864138e
update subscription interfaces
bharath-123 Sep 27, 2024
f7bb86f
fix potential panic while subscribing to mempool clearance
bharath-123 Nov 4, 2024
9a352f1
dont send mempool clearing event while holding mempool lock
bharath-123 Nov 10, 2024
7dc78f5
implement stream execute optimistic block
bharath-123 Oct 29, 2024
f311e0a
unit tests
bharath-123 Nov 4, 2024
b0ec901
use generics to implement mock bi directional stream
bharath-123 Oct 1, 2024
56dc5cd
wip
bharath-123 Oct 16, 2024
98edfc9
use an atomic pointer for sequencer block hash
bharath-123 Oct 29, 2024
c929957
reduce mempool clearing timeout
bharath-123 Oct 24, 2024
a1152d7
fix imports
bharath-123 Oct 29, 2024
17a333c
update grpc method names
bharath-123 Nov 5, 2024
f1356b2
only allow 1 client to be connected to the execute optimistic block s…
bharath-123 Nov 12, 2024
e37bba3
rename executeBlockStreamConnected to executeOptimisticBlockStreamCon…
bharath-123 Nov 12, 2024
db067e1
remove restrictions to allow just one client to connect to the optimi…
bharath-123 Dec 2, 2024
c529b84
implement bundle streaming
bharath-123 Nov 5, 2024
bea3622
update unit tests
bharath-123 Nov 5, 2024
35f3a6c
only send the effective tip as part of the fee
bharath-123 Oct 1, 2024
4b612d6
minor test updates
bharath-123 Oct 16, 2024
5acc678
rename grpc methods
bharath-123 Nov 5, 2024
e57148b
close the bundle stream when client closes the connection
bharath-123 Nov 11, 2024
e4cf569
allow only 1 client to connect to the bundle stream
bharath-123 Dec 2, 2024
f795b75
fix minor error
bharath-123 Dec 2, 2024
0c02e8c
fetch the next fee recipient under the block execution lock
bharath-123 Oct 11, 2024
a5fb8a5
validate txs before optimistically executing them
bharath-123 Oct 16, 2024
a114f0d
support uds endpoints for auctioneer
bharath-123 Oct 16, 2024
edfddc9
remove duplicate code
bharath-123 Oct 24, 2024
12e3ab2
add uds flag to options
bharath-123 Nov 4, 2024
14c097e
separate out execution api services and optimistic execution api serv…
bharath-123 Dec 2, 2024
2f6e1eb
minor updates
bharath-123 Oct 17, 2024
df7504f
minor nits
bharath-123 Oct 17, 2024
128be57
make tests more robust
bharath-123 Oct 17, 2024
99560fa
move BigIntoToProtoU128 to shared test utils
bharath-123 Oct 24, 2024
a62047e
minor updates
bharath-123 Oct 29, 2024
e5065e5
update grpc methods
bharath-123 Nov 5, 2024
0af0e92
close the bundle stream when client closes the connection
bharath-123 Nov 11, 2024
258c8e2
remove UDS references
bharath-123 Nov 12, 2024
54381f4
rename a wrongly renamed word
bharath-123 Nov 12, 2024
f28ac18
re add single client connection checks
bharath-123 Nov 12, 2024
12eec4d
maintain only 1 server instance
bharath-123 Nov 12, 2024
651a6ca
renaming
bharath-123 Nov 20, 2024
9bf573a
remove atomic bools to restrict client connections to 1
bharath-123 Dec 3, 2024
6abc0f4
feature flag auctioneer
bharath-123 Nov 12, 2024
e48458f
add flags
bharath-123 Oct 29, 2024
591e827
save
bharath-123 Nov 12, 2024
7444772
maintain a copy of legacy pool tests to test the cases when auctionee…
bharath-123 Nov 12, 2024
61af0ec
unmarshall auction result
bharath-123 Nov 13, 2024
c4662a7
add signature verification
bharath-123 Nov 13, 2024
64758bb
set the trusted builder public key in genesis
bharath-123 Nov 17, 2024
6985314
add some tests for the auction results
bharath-123 Nov 17, 2024
3661b01
dilineate trusted builder public keys by block number
bharath-123 Nov 19, 2024
9e0e612
renaming
bharath-123 Nov 20, 2024
f4bc725
update protos
bharath-123 Nov 20, 2024
2992b5b
change trusted builder instances to auctioneer
bharath-123 Nov 21, 2024
a82a00e
fix typo
bharath-123 Nov 21, 2024
9809d0c
add an api to query the optimistic block
bharath-123 Nov 20, 2024
e6f1345
support querying optimistic block using the optimistic string
bharath-123 Nov 21, 2024
2561dc3
close the stream when we get the done signal
bharath-123 Nov 27, 2024
df8ead5
add debug logs for when the stream rpcs are called
bharath-123 Dec 3, 2024
7aed2a0
add some logs
bharath-123 Nov 27, 2024
634e962
add some logs
bharath-123 Dec 3, 2024
e5d90d2
use atomic pointer for fee recipient
bharath-123 Dec 3, 2024
9e7abe7
remove unecessary lock
bharath-123 Dec 3, 2024
f7d5584
wrap errors
bharath-123 Dec 3, 2024
1457ce3
buffer the reserved addresses and remove them at once
bharath-123 Jan 3, 2025
b6e5401
avoid cleaning up duplicate addresses
bharath-123 Jan 6, 2025
1cd5701
add metrics
bharath-123 Jan 3, 2025
b555cc9
update depot token
bharath-123 Jan 9, 2025
3284998
add a few debug logs
bharath-123 Jan 10, 2025
17dbebd
update to use new protos
bharath-123 Jan 13, 2025
1c1a935
update protobufs
bharath-123 Jan 13, 2025
5b99a85
Merge pull request #28 from astriaorg/bharath/update-protos
bharath-123 Jan 13, 2025
d5628b5
Merge pull request #25 from astriaorg/bharath/add-auctioneer-metrics
bharath-123 Jan 13, 2025
e49d7f4
Merge pull request #24 from astriaorg/bharath/code-cleanups
bharath-123 Jan 13, 2025
98e817c
Merge pull request #22 from astriaorg/bharath/api-to-query-optimistic…
bharath-123 Jan 13, 2025
2b9a863
Merge pull request #21 from astriaorg/bharath/auction-result
bharath-123 Jan 13, 2025
e384e18
Merge pull request #17 from astriaorg/bharath/feature-flag-auctioneer
bharath-123 Jan 13, 2025
9a7f5ad
Merge pull request #16 from astriaorg/bharath/refactor-services
bharath-123 Jan 13, 2025
43fdcea
Merge pull request #12 from astriaorg/bharath/implement-bundle-streaming
bharath-123 Jan 13, 2025
9496cb9
Merge pull request #11 from astriaorg/bharath/implement-optimistic-ex…
bharath-123 Jan 13, 2025
41fb511
Merge pull request #9 from astriaorg/bharath/add-mempool-clearing-event
bharath-123 Jan 13, 2025
11cebfd
Merge pull request #8 from astriaorg/bharath/clear-mempool
bharath-123 Jan 13, 2025
19f8867
Merge pull request #7 from astriaorg/bharath/use-optimistic-fork-event
bharath-123 Jan 13, 2025
2e26e91
Merge pull request #4 from astriaorg/bharath/implement-optimistic-for…
bharath-123 Jan 13, 2025
0e1b4a1
Merge pull request #3 from astriaorg/bharath/implement-optimistic-for…
bharath-123 Jan 13, 2025
211b66d
add auctioneer start height
bharath-123 Jan 14, 2025
805e73c
pick the auctioneer start height to be the height at which the first …
bharath-123 Jan 14, 2025
ff39ee3
Merge pull request #34 from astriaorg/bharath/ignore-allocation-befor…
bharath-123 Jan 14, 2025
68ef31c
multiply effective tip with gas used
bharath-123 Jan 14, 2025
d9af4a0
address review comment
bharath-123 Jan 15, 2025
bb12dfa
Merge pull request #36 from astriaorg/bharath/fix-tip-fee-calc
bharath-123 Jan 15, 2025
eff4025
send metadata on bid stream initialization
bharath-123 Jan 16, 2025
cf81f29
Merge pull request #37 from astriaorg/bharath/send-metadata-on-bidstr…
bharath-123 Jan 16, 2025
950959b
update logs
bharath-123 Jan 16, 2025
c83e52d
remove sending init msg
bharath-123 Jan 16, 2025
eb499c6
some code cleanups
bharath-123 Jan 17, 2025
6d906bf
add comment
bharath-123 Jan 17, 2025
af08e5b
minor refactoring
bharath-123 Jan 17, 2025
9fdd7a1
minor updates
bharath-123 Jan 18, 2025
1f9f787
custom precompile capabilities (#36)
mycodecrafting Jan 21, 2025
defc35b
address review comments
bharath-123 Feb 3, 2025
89b70aa
add a debug log while streaming bid
bharath-123 Feb 4, 2025
c969f99
address review comments 2
bharath-123 Feb 5, 2025
23a2bd7
address review comments
bharath-123 Feb 10, 2025
8ce3a34
disallow searchers from sending txs if soft block height is greater t…
bharath-123 Feb 6, 2025
510dcb0
remove unecessary log
bharath-123 Feb 6, 2025
03a701a
address review comments
bharath-123 Feb 7, 2025
ba1c9a6
remove commented out code
bharath-123 Feb 10, 2025
d04ff15
update comment
bharath-123 Feb 10, 2025
eface0f
handle error when sending execute optimistic block stream response
bharath-123 Feb 10, 2025
4352912
fix linting errors
bharath-123 Feb 10, 2025
fe3c5e7
have a more concise error message
bharath-123 Feb 10, 2025
1bcfa46
add some logging
bharath-123 Feb 10, 2025
896e7e1
Merge pull request #30 from astriaorg/trusted-auctioneer
bharath-123 Feb 10, 2025
bfb4881
use the latest optimistic execution service proto package
bharath-123 Feb 13, 2025
457e1f9
Merge pull request #44 from astriaorg/bharath/update-optimistic-servi…
bharath-123 Feb 13, 2025
4b7c761
Merge pull request #41 from astriaorg/bharath/disable-tx-sending-when…
bharath-123 Feb 17, 2025
fc1f819
chore: patch from astria-geth migrated
joroshiba Feb 20, 2025
e99d6ab
Merge pull request #45 from astriaorg/joroshiba/blob-restrictions
bharath-123 Feb 20, 2025
7c04389
chore: disable blobs through rpc and mempool (#70)
joroshiba Feb 20, 2025
8a49ced
disable filter apis
bharath-123 Feb 27, 2025
752f116
Merge pull request #46 from astriaorg/bharath/disable-filter-apis
bharath-123 Feb 27, 2025
e92a6db
fix: block tx submission below absolute floor value (#73)
joroshiba Mar 2, 2025
5f2ff99
Merge branch 'release/1.14' of https://github.com/ethereum/go-ethereu…
bharath-123 Mar 3, 2025
715f437
Merge branch 'main' of github.com:astriaorg/astria-geth into bharath/…
bharath-123 Mar 3, 2025
cbd2e3a
remove stray logs
bharath-123 Mar 3, 2025
788d23b
use EffectiveGasTip method to get the tip
bharath-123 Mar 4, 2025
5eda760
fix: block tx submission below absolute floor value (#73)
joroshiba Mar 2, 2025
47fd9e3
Merge pull request #47 from astriaorg/bharath/cherry-pick-pr-73
bharath-123 Mar 4, 2025
6b271b9
remove unecessary newline
bharath-123 Mar 4, 2025
7551efa
add a comment
bharath-123 Mar 4, 2025
04c2f54
use warn level logging
bharath-123 Mar 4, 2025
21b874e
add a metric for when we find txs whose tip is too low
bharath-123 Mar 4, 2025
f88ac41
address review comment
bharath-123 Mar 5, 2025
5ba0a3f
Merge pull request #48 from astriaorg/bharath/use-effective-tip-method
bharath-123 Mar 5, 2025
7c4533f
feat: sequencer block hash as beacon root in cancun (#75)
joroshiba Mar 7, 2025
684bbef
feat: sequencer hashes in cancun blocks (#49)
joroshiba Mar 7, 2025
edf41ca
Merge branch 'main' of github.com:astriaorg/astria-geth into bharath/…
bharath-123 Mar 10, 2025
68bdc95
pass in sequencer block hash as beacon root
bharath-123 Mar 10, 2025
eeb36a4
Merge branch 'bharath/upgrade-to-1.14.13' of github.com:astriaorg/ast…
bharath-123 Mar 10, 2025
75a0919
try somethings
bharath-123 Mar 12, 2025
96c176e
add a log
bharath-123 Mar 12, 2025
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto
*.sol linguist-language=Solidity

contracts/astria_bridgeable_erc20.go linguist-generated=true
23 changes: 1 addition & 22 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,25 +1,4 @@
# Lines starting with '#' are comments.
# Each line is a file pattern followed by one or more owners.

accounts/usbwallet @karalabe
accounts/scwallet @gballet
accounts/abi @gballet @MariusVanDerWijden
beacon/engine @lightclient
cmd/clef @holiman
cmd/evm @holiman @MariusVanDerWijden @lightclient
consensus @karalabe
core/ @karalabe @holiman @rjl493456442
eth/ @karalabe @holiman @rjl493456442
eth/catalyst/ @gballet @lightclient
eth/tracers/ @s1na
core/tracing/ @s1na
graphql/ @s1na
internal/ethapi @lightclient
internal/era @lightclient
les/ @zsfelfoldi @rjl493456442
light/ @zsfelfoldi @rjl493456442
node/ @fjl
p2p/ @fjl @zsfelfoldi
params/ @fjl @holiman @karalabe @gballet @rjl493456442 @zsfelfoldi
rpc/ @fjl @holiman
signer/ @holiman
* @joroshiba @mycodecrafting @noot
75 changes: 75 additions & 0 deletions .github/workflows/astria-build-and-publish-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Build and Publish Docker image

# Trigger on pushes to astria branch, new semantic version tags, and pull request updates
on:
workflow_dispatch:
push:
branches:
- "main"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
# trigger on pull request updates when target is `astria` branch
pull_request:
branches:
- "main"

jobs:
build-and-publish-latest:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
# Checking out the repo
- uses: actions/checkout@v4
- uses: depot/setup-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
# Setting up Go
- uses: actions/setup-go@v4
with:
go-version: "^1.21.x" # The Go version to download (if necessary) and use.
- run: go version
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Generate correct tabs and labels
- name: Docker metadata
id: metadata
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/astriaorg/flame
tags: |
type=ref,event=pr
type=match,pattern=v(.*),group=1
type=sha
# set latest tag for `astria` branch
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
- name: Build and push
uses: depot/build-push-action@v1
with:
# this gets rid of the unknown/unknown image that is created without this setting
# https://github.com/docker/build-push-action/issues/820#issuecomment-1455687416
provenance: false
context: .
# It takes a long time to build the arm image right now, so we only build it on tags which is what we use for releases, or on merges to the default branch.
platforms: ${{ (contains(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
project: w2d6w0spqz
41 changes: 41 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and publish forkdiff github-pages
permissions:
contents: write
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all tags and branches

- name: Build forkdiff
uses: "docker://protolambda/forkdiff:latest"
with:
args: -repo=./ -fork=./fork.yaml -out=./index.html

- name: Build pages
run: |
mkdir -p ./tmp/pages
mv ./index.html ./tmp/pages/index.html
touch ./tmp/pages/.nojekyll

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./tmp/pages
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com

14 changes: 14 additions & 0 deletions .github/workflows/project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Project
on:
issues:
types:
- opened
jobs:
add-to-project:
name: Add new issues
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/astriaorg/projects/1
github-token: ${{ secrets.ASTRIA_PROJECT_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run tests

on:
push:
branches:
- "main"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:
branches:
- "main"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.21.4
- name: Run tests
run: go run build/ci.go test
env:
GOOS: linux
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ profile.cov
.vscode

tests/spec-tests/

contracts/abi
contracts/bin

precompile/bindings
precompile/out
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
path = tests/evm-benchmarks
url = https://github.com/ipsilon/evm-benchmarks
shallow = true
[submodule "contracts/astria-bridge-contracts"]
path = contracts/astria-bridge-contracts
url = https://github.com/astriaorg/astria-bridge-contracts.git
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ jobs:
env:
- racetests
script:
- travis_wait 60 go run build/ci.go test -race $TEST_PACKAGES
- travis_wait 60 go run build/ci.go test -race $TEST_PACKAGES
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,24 @@ COPY go.mod /go-ethereum/
COPY go.sum /go-ethereum/
RUN cd /go-ethereum && go mod download

ARG TARGETOS
ARG TARGETARCH
ADD . /go-ethereum
RUN cd /go-ethereum && go run build/ci.go install -static ./cmd/geth
RUN --mount=type=cache,target=/root/.cache/go-build \
GOOS=${TARGETOS} GOARCH=${TARGETARCH} cd /go-ethereum && go run build/ci.go install -static ./cmd/geth

# Pull Geth into a second stage deploy alpine container
FROM alpine:latest

RUN apk add --no-cache ca-certificates
# Astria - add bash and jq to support start-geth.sh in conductor
RUN apk add bash jq
# Astria - copy genesis.json so it can be used in start-geth.sh
COPY genesis.json /genesis.json
COPY --from=builder /go-ethereum/build/bin/geth /usr/local/bin/

EXPOSE 8545 8546 30303 30303/udp
# Astria - add 50051 for GRPC
EXPOSE 8545 8546 30303 30303/udp 50051
ENTRYPOINT ["geth"]

# Add some metadata labels to help programmatic image consumption
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.alltools
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ FROM alpine:latest
RUN apk add --no-cache ca-certificates
COPY --from=builder /go-ethereum/build/bin/* /usr/local/bin/

EXPOSE 8545 8546 30303 30303/udp
# Astria - add 50051 for GRPC
EXPOSE 8545 8546 30303 30303/udp 50051

# Add some metadata labels to help programmatic image consumption
ARG COMMIT=""
Expand Down
1 change: 1 addition & 0 deletions accounts/abi/abi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1199,6 +1199,7 @@ func TestUnpackRevert(t *testing.T) {
{"4e487b7100000000000000000000000000000000000000000000000000000000000000ff", "unknown panic code: 0xff", nil},
}
for index, c := range cases {
index, c := index, c
t.Run(fmt.Sprintf("case %d", index), func(t *testing.T) {
t.Parallel()
got, err := UnpackRevert(common.Hex2Bytes(c.input))
Expand Down
Loading