Skip to content

Commit ad7e492

Browse files
authored
fix: add automatic pox switching to rosetta (#1454)
* refactor: add minor changes to rosetta * chore: switch to stacks.js v6 and refactor helpers * fix: update rosetta construction for 2.1 * test: refactor pox transition tests * test: add btc address format rosetta test * build: npm audit * chore: lint fix json files not in src * chore: fix exports * test: add rosetta stacking for each block height * test: add double stacking test * chore: revert back to original suggested_fee_multiplier behavior * chore: remove dynamic contract from dummy data * chore: remove todos * test: fix test address * test: skip failing tests * test: add check to rosetta contract tests * chore: update to latest node next branch for testing Co-authored-by: janniks <[email protected]>
1 parent eeeffd0 commit ad7e492

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1960
-2113
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,11 +418,14 @@ jobs:
418418
test-2_1-transition:
419419
strategy:
420420
matrix:
421-
suite: [
422-
Stacking on pox-2 after pox-1 force unlock,
423-
Consistent API and RPC account balances through pox transitions,
424-
Rosetta - Stacks 2.1 transition tests,
425-
]
421+
suite:
422+
[
423+
Stacking on pox-2 after pox-1 force unlock,
424+
Consistent API and RPC account balances through pox transitions,
425+
Rosetta - Stacked STX unlock during transition,
426+
Rosetta - Transistion periods use correct contracts,
427+
PoX Transition - Double stacking,
428+
]
426429
runs-on: ubuntu-latest
427430
steps:
428431
- uses: actions/checkout@v2

.vscode/launch.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,27 @@
318318
"preLaunchTask": "stacks-node:deploy-dev",
319319
"postDebugTask": "stacks-node:stop-dev"
320320
},
321+
{
322+
"type": "node",
323+
"request": "launch",
324+
"name": "Jest: rosetta",
325+
"program": "${workspaceFolder}/node_modules/.bin/jest",
326+
"args": [
327+
"--testTimeout=3600000",
328+
"--runInBand",
329+
"--no-cache",
330+
"--config",
331+
"${workspaceRoot}/tests/jest.config.rosetta.js"
332+
],
333+
"outputCapture": "std",
334+
"console": "integratedTerminal",
335+
"preLaunchTask": "stacks-node:deploy-dev",
336+
"postDebugTask": "stacks-node:stop-dev",
337+
"env": {
338+
"NODE_ENV": "development",
339+
"STACKS_CHAIN_ID": "0x80000000"
340+
}
341+
},
321342
{
322343
"type": "node",
323344
"request": "launch",

docker/docker-compose.dev.stacks-krypton-2.1-transition.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.7'
22
services:
33
stacks-blockchain:
4-
image: "zone117x/stacks-api-e2e:stacks2.1-transition-feat-segwit-events-8fb6fad"
4+
image: "zone117x/stacks-api-e2e:stacks2.1-transition-930b652"
55
ports:
66
- "18443:18443" # bitcoin regtest JSON-RPC interface
77
- "18444:18444" # bitcoin regtest p2p

docker/docker-compose.dev.stacks-krypton.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.7'
22
services:
33
stacks-blockchain:
4-
image: "zone117x/stacks-api-e2e:stacks2.1-feat-segwit-events-8fb6fad"
4+
image: "zone117x/stacks-api-e2e:stacks2.1-930b652"
55
ports:
66
- "18443:18443" # bitcoin regtest JSON-RPC interface
77
- "18444:18444" # bitcoin regtest p2p

0 commit comments

Comments
 (0)