-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds marketplace demo-native workflow * adds a justfile entry * updates process-compose configuration with marketplace version values * fixes a bug where `max_base_fee` was not taking in `Marketplace` upgrade values * updates `smoke-test-demo` to account for marketplace load-generator * adds genesis file for marketplace --------- Co-authored-by: tbro <tbro@users.noreply.github.com> Co-authored-by: Abdul Basit <45506001+imabdulbasit@users.noreply.github.com>
- Loading branch information
1 parent
b121de9
commit 3c0db34
Showing
12 changed files
with
228 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Test Demo Native - Marketplace | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release-* | ||
tags: | ||
# YYYYMMDD | ||
- "20[0-9][0-9][0-1][0-9][0-3][0-9]*" | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
RUSTFLAGS: '--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std"' | ||
RUST_LOG: info,libp2p=off,node=error | ||
|
||
jobs: | ||
demo-native-marketplace: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Install Nix | ||
uses: cachix/install-nix-action@V27 | ||
|
||
- name: Install process-compose | ||
run: | | ||
nix profile install nixpkgs#process-compose | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Enable Rust Caching | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Build | ||
run: cargo build --locked --release | ||
|
||
- name: Test Demo Marketplace | ||
run: | | ||
export MARKETPLACE_SMOKE_TEST=true | ||
set -o pipefail | ||
scripts/demo-native --tui=false -f process-compose.yaml -f process-compose-mp.yml & | ||
timeout -v 600 scripts/smoke-test-demo | sed -e 's/^/smoke-test: /;' |
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
base_version = "0.2" | ||
upgrade_version = "0.3" | ||
|
||
[stake_table] | ||
capacity = 10 | ||
|
||
[chain_config] | ||
chain_id = 999999999 | ||
base_fee = '0 wei' | ||
max_block_size = '1mb' | ||
fee_recipient = '0x0000000000000000000000000000000000000000' | ||
fee_contract = '0xa15bb66138824a1c7167f5e85b957d04dd34e468' | ||
|
||
[header] | ||
timestamp = "1970-01-01T00:00:00Z" | ||
|
||
[[upgrade]] | ||
version = "0.3" | ||
start_proposing_view = 5 | ||
stop_proposing_view = 15 | ||
|
||
[upgrade.marketplace] | ||
[upgrade.marketplace.chain_config] | ||
chain_id = 999999999 | ||
max_block_size = '1mb' | ||
base_fee = '1 wei' | ||
fee_recipient = "0x0000000000000000000000000000000000000000" | ||
bid_recipient = "0x0000000000000000000000000000000000000000" | ||
fee_contract = '0xa15bb66138824a1c7167f5e85b957d04dd34e468' |
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
version: "3" | ||
|
||
environment: | ||
- ESPRESSO_SEQUENCER_GENESIS_FILE=data/genesis/demo-marketplace.toml | ||
- ESPRESSO_BUILDER_GENESIS_FILE=data/genesis/demo-marketplace.toml | ||
processes: | ||
|
||
marketplace-reserve-builder: | ||
command: marketplace-builder | ||
ports: | ||
- "$ESPRESSO_RESERVE_BUILDER_SERVER_PORT:$ESPRESSO_RESERVE_BUILDER_SERVER_PORT" | ||
environment: | ||
- ESPRESSO_BUILDER_SERVER_PORT=$ESPRESSO_RESERVE_BUILDER_SERVER_PORT | ||
- ESPRESSO_MARKETPLACE_BUILDER_IS_RESERVE=true | ||
- ESPRESSO_MARKETPLACE_SOLVER_API_URL=http://localhost:$ESPRESSO_MARKETPLACE_SOLVER_API_PORT | ||
- ESPRESSO_MARKETPLACE_BUILDER_NAMESPACE=2 | ||
- ESPRESSO_SEQUENCER_STATE_PEERS=http://localhost:$ESPRESSO_SEQUENCER_API_PORT | ||
- ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_URL=http://localhost:$ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_PORT | ||
- ESPRESSO_BUILDER_GENESIS_FILE | ||
depends_on: | ||
sequencer0: | ||
condition: process_healthy | ||
fund-builder: | ||
condition: process_completed | ||
readiness_probe: | ||
http_get: | ||
scheme: http | ||
host: localhost | ||
port: $ESPRESSO_RESERVE_BUILDER_SERVER_PORT | ||
path: /healthcheck | ||
failure_threshold: 100 | ||
|
||
marketplace-fallback-builder: | ||
command: marketplace-builder | ||
ports: | ||
- "$ESPRESSO_FALLBACK_BUILDER_SERVER_PORT:$ESPRESSO_FALLBACK_BUILDER_SERVER_PORT" | ||
environment: | ||
- ESPRESSO_BUILDER_SERVER_PORT=$ESPRESSO_FALLBACK_BUILDER_SERVER_PORT | ||
- ESPRESSO_MARKETPLACE_BUILDER_IS_RESERVE=false | ||
- ESPRESSO_MARKETPLACE_SOLVER_API_URL=http://localhost:$ESPRESSO_MARKETPLACE_SOLVER_API_PORT | ||
- ESPRESSO_MARKETPLACE_BUILDER_NAMESPACE=4 | ||
- ESPRESSO_SEQUENCER_STATE_PEERS=http://localhost:$ESPRESSO_SEQUENCER_API_PORT | ||
- ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_URL=http://localhost:$ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_PORT | ||
- ESPRESSO_BUILDER_GENESIS_FILE | ||
depends_on: | ||
sequencer0: | ||
condition: process_healthy | ||
fund-builder: | ||
condition: process_completed | ||
readiness_probe: | ||
http_get: | ||
scheme: http | ||
host: localhost | ||
port: $ESPRESSO_FALLBACK_BUILDER_SERVER_PORT | ||
path: /healthcheck | ||
failure_threshold: 100 | ||
|
||
permissionless-builder: | ||
environment: | ||
- ESPRESSO_MARKETPLACE_BUILDER_NAMESPACE=10 | ||
|
||
submit-transactions-public: | ||
command: submit-transactions | ||
environment: | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_MIN_NAMESPACE=9 | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_MAX_NAMESPACE=10 | ||
|
||
submit-transactions-private: | ||
disabled: true | ||
|
||
submit-transactions-private-fallback: | ||
command: submit-transactions | ||
environment: | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_PORT=$ESPRESSO_SUBMIT_TRANSACTIONS_PRIVATE_FALLBACK_PORT | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_SUBMIT_URL=http://localhost:$ESPRESSO_FALLBACK_BUILDER_SERVER_PORT/txn_submit | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_MIN_NAMESPACE=1 | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_MAX_NAMESPACE=3 | ||
depends_on: | ||
sequencer0: | ||
condition: process_healthy | ||
marketplace-fallback-builder: | ||
condition: process_healthy | ||
readiness_probe: | ||
http_get: | ||
scheme: http | ||
host: localhost | ||
port: $ESPRESSO_SUBMIT_TRANSACTIONS_PRIVATE_FALLBACK_PORT | ||
path: /healthcheck | ||
failure_threshold: 100 | ||
|
||
submit-transactions-private-reserve: | ||
command: submit-transactions | ||
environment: | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_PORT=$ESPRESSO_SUBMIT_TRANSACTIONS_PRIVATE_RESERVE_PORT | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_SUBMIT_URL=http://localhost:$ESPRESSO_RESERVE_BUILDER_SERVER_PORT/txn_submit | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_MIN_NAMESPACE=4 | ||
- ESPRESSO_SUBMIT_TRANSACTIONS_MAX_NAMESPACE=6 | ||
depends_on: | ||
sequencer0: | ||
condition: process_healthy | ||
marketplace-reserve-builder: | ||
condition: process_healthy | ||
readiness_probe: | ||
http_get: | ||
scheme: http | ||
host: localhost | ||
port: $ESPRESSO_SUBMIT_TRANSACTIONS_PRIVATE_RESERVE_PORT | ||
path: /healthcheck | ||
failure_threshold: 100 | ||
|
||
dev-rollup: | ||
command: | ||
dev-rollup register --ns 1; dev-rollup register --ns 2; dev-rollup register --ns 3 | ||
environment: | ||
- ESPRESSO_MARKETPLACE_SOLVER_API_URL=http://localhost:$ESPRESSO_MARKETPLACE_SOLVER_API_PORT | ||
depends_on: | ||
marketplace-solver: | ||
condition: process_healthy |
This file contains 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 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 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