diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ab6321..d4639fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: push: env: - STACKS_BLOCKCHAIN_COMMIT: 9af9c0b5b80f948e90916a45f3f316c81a7ac481 + STACKS_BLOCKCHAIN_COMMIT: 74e3cedeec5215f3286af6565c1503e578a848fb concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/Dockerfile.e2e b/Dockerfile.e2e index fd62321..322bfc1 100644 --- a/Dockerfile.e2e +++ b/Dockerfile.e2e @@ -3,7 +3,7 @@ FROM rust:bookworm as builder # A commit hash, tag, or branch -ARG GIT_COMMIT=9af9c0b5b80f948e90916a45f3f316c81a7ac481 +ARG GIT_COMMIT=74e3cedeec5215f3286af6565c1503e578a848fb ARG BLOCKCHAIN_REPO=https://github.com/stacks-network/stacks-blockchain.git ARG TARGETPLATFORM @@ -100,10 +100,12 @@ ENV STACKS_24_HEIGHT=$STACKS_24_HEIGHT ARG STACKS_25_HEIGHT=112 ENV STACKS_25_HEIGHT=$STACKS_25_HEIGHT -# do not boot into epoch3.0 for now (it doesn't work yet) -ARG STACKS_30_HEIGHT=999999 +ARG STACKS_30_HEIGHT=132 ENV STACKS_30_HEIGHT=$STACKS_30_HEIGHT +ARG STACKS_PREHEAT_FINISH_HEIGHT=150 +ENV STACKS_PREHEAT_FINISH_HEIGHT=$STACKS_PREHEAT_FINISH_HEIGHT + # priv: 6ad9cadb42d4edbfbe0c5bfb3b8a4125ddced021c4174f829b714ccbf527f02001 # ARG REWARD_RECIPIENT=STQM73RQC4EX0A07KWG1J5ECZJYBZS4SJ4ERC6WN ARG REWARD_RECIPIENT @@ -134,6 +136,33 @@ const server = http.createServer((req, res) => { EOM EOF +# Create Stacking script +RUN npm init -y && npm i @stacks/stacking@6 +RUN < /root/stack.js <<'EOM' + const { StackingClient } = require('@stacks/stacking'); + const { StacksTestnet } = require('@stacks/network'); + console.log('Stacking with args:', process.argv.slice(2)); + const network = new StacksTestnet({ url: 'http://localhost:20443' }); + const address = 'ST18MDW2PDTBSCR1ACXYRJP2JX70FWNM6YY2VX4SS'; + const client = new StackingClient(address, network); + client.stack({ + amountMicroStx: parseInt(process.argv[2]), + burnBlockHeight: parseInt(process.argv[3]), + poxAddress: 'mvuYDknzDtPgGqm2GnbAbmGMLwiyW3AwFP', + cycles: 12, + privateKey: '08c14a1eada0dd42b667b40f59f7c8dedb12113613448dc04980aea20b268ddb01', + fee: 1000, + nonce: 0, + }) + .then(r => console.log('Stacked', r)) + .catch(e => { + console.error('Error stacking', e); + process.exit(1); + }); +EOM +EOF + # Bootstrap chainstates SHELL ["/bin/bash", "-ce"] RUN <