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

Release v7.10.0 stable #1941

Merged
merged 46 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
dc89bf3
Merge pull request #1840 from hirosystems/master
rafaelcr Jan 23, 2024
5e5650a
feat: pox 4 revoke events and signer-key support (#1829)
janniks Jan 25, 2024
8533bef
chore(release): 7.9.0-nakamoto.1 [skip ci]
semantic-release-bot Jan 25, 2024
8ec726b
fix: remove signer columns from tenure-change transactions (#1845)
rafaelcr Jan 26, 2024
f847523
chore(release): 7.9.0-nakamoto.2 [skip ci]
semantic-release-bot Jan 26, 2024
7521dc3
test: fix flaky postgres teardown in tests (#1850)
zone117x Jan 26, 2024
7b072a3
test: give bitcoind more time to process btc rewards (#1851)
zone117x Jan 26, 2024
ada8536
fix: sql transactional consistency bug with fetching chaintip in vari…
zone117x Jan 26, 2024
12473c8
chore(release): 7.9.0-nakamoto.3 [skip ci]
semantic-release-bot Jan 26, 2024
c17ad23
feat: add signer-keys from pox4 events (#1857)
zone117x Feb 4, 2024
191c6f5
chore(release): 7.9.0-nakamoto.4 [skip ci]
semantic-release-bot Feb 4, 2024
11f2483
Merge branch 'master' into nakamoto
zone117x Feb 20, 2024
a548731
chore(release): 7.9.0-nakamoto.5 [skip ci]
semantic-release-bot Feb 20, 2024
f547832
feat: nakamoto block timestamps (#1886)
zone117x Mar 15, 2024
7122a4f
chore(release): 7.9.0-nakamoto.6 [skip ci]
semantic-release-bot Mar 15, 2024
d2c2805
feat: pox stacker & signer cycle details (#1873)
zone117x Mar 20, 2024
aa05e36
chore(release): 7.9.0-nakamoto.7 [skip ci]
semantic-release-bot Mar 20, 2024
aa1750f
feat: ingest signer_bitvec (#1900)
zone117x Mar 20, 2024
7c2b3b4
chore(release): 7.9.0-nakamoto.8 [skip ci]
semantic-release-bot Mar 20, 2024
1572e73
fix: event-replay readiness for nakamoto & fix for #1879 (#1903)
csgui Mar 21, 2024
5be5e10
chore(release): 7.9.0-nakamoto.9 [skip ci]
semantic-release-bot Mar 21, 2024
2f6f12e
Merge branch 'master' into nakamoto
zone117x Mar 21, 2024
7b98f08
chore: post-merge lint fix
zone117x Mar 21, 2024
a67dbcd
chore(release): 7.10.0-nakamoto.1 [skip ci]
semantic-release-bot Mar 21, 2024
01fb971
fix: add nakamoto testnet to openapi docs (#1910)
rafaelcr Mar 25, 2024
44fcf75
chore(release): 7.10.0-nakamoto.2 [skip ci]
semantic-release-bot Mar 25, 2024
a7a4558
fix: cycles response for empty cycle info (#1914)
rafaelcr Mar 28, 2024
301f9a1
chore(release): 7.10.0-nakamoto.3 [skip ci]
semantic-release-bot Mar 28, 2024
3cd2c64
fix: other empty result responses (#1915)
rafaelcr Mar 28, 2024
3d870ed
chore(release): 7.10.0-nakamoto.4 [skip ci]
semantic-release-bot Mar 28, 2024
dc7d600
fix: cycle signer filter (#1916)
rafaelcr Mar 28, 2024
183fdae
chore(release): 7.10.0-nakamoto.5 [skip ci]
semantic-release-bot Mar 28, 2024
a7ee96d
fix: batch drop mempool transactions (#1920)
rafaelcr Apr 2, 2024
3e64492
chore(release): 7.10.0-nakamoto.6 [skip ci]
semantic-release-bot Apr 2, 2024
ae6bbe8
feat: add nakamoto block time to v2 endpoints (#1921)
zone117x Apr 4, 2024
82abc90
chore(release): 7.10.0-nakamoto.7 [skip ci]
semantic-release-bot Apr 4, 2024
ab98b97
chore: update to latest stacks image with epoch2.5 bootup, pox-4 test…
zone117x Apr 9, 2024
2ba36f9
feat: rosetta pox4 stacking support (#1928)
zone117x Apr 9, 2024
e4f48be
test: skip flaky phase test (#1932)
janniks Apr 10, 2024
b0567c8
test: add regtest solo stacking (#1904)
janniks Apr 10, 2024
519d40b
Merge branch 'develop' into nakamoto
rafaelcr Apr 10, 2024
4ddcbfa
Merge pull request #1933 from hirosystems/nakamoto
rafaelcr Apr 10, 2024
b0e5720
test: pox-4 delegation integration tests (#1937)
rafaelcr Apr 11, 2024
9e9a464
fix: pox4 stack-stx burn-op handling (#1936)
zone117x Apr 11, 2024
73ec0db
fix: delegate-stx burn-op parsing and test fix (#1939)
zone117x Apr 12, 2024
49a4d25
fix: log message when sql migration is performed (#1942)
zone117x Apr 12, 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
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,4 @@ STACKS_NODE_TYPE=L1
# IBD_MODE_UNTIL_BLOCK=

# Folder with events to be imported by the event-replay.
STACKS_EVENTS_DIR=./eventssds
STACKS_EVENTS_DIR=./events
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,6 @@ jobs:
- lint
- lint-docs
- test
- test-2_5
- test-bns
- test-rosetta
- test-rosetta-cli-construction
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tasks:
- init: npm ci
command: npm run dev
- openMode: split-right
command: stacks-node start --config=stacks-blockchain/Stacks-dev.toml
command: stacks-node start --config stacks-blockchain/Stacks-dev.toml

github:
prebuilds:
Expand Down
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"skipFiles": [
"<node_internals>/**"
],
"runtimeVersion": "20",
"runtimeArgs": ["-r", "ts-node/register/transpile-only", "-r", "tsconfig-paths/register"],
"args": ["${workspaceFolder}/src/index.ts"],
"outputCapture": "std",
Expand Down
10 changes: 9 additions & 1 deletion client/src/generated/models/RosettaOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable */
/**
* Stacks Blockchain API
* Welcome to the API reference overview for the <a href=\"https://docs.hiro.so/get-started/stacks-blockchain-api\">Stacks Blockchain API</a>. <a href=\"https://hirosystems.github.io/stacks-blockchain-api/collection.json\" download=\"stacks-api-collection.json\">Download Postman collection</a>
* Welcome to the API reference overview for the [Stacks Blockchain API](https://docs.hiro.so/get-started/stacks-blockchain-api). [Download Postman collection](https://hirosystems.github.io/stacks-blockchain-api/collection.json)
*
* The version of the OpenAPI document: STACKS_API_VERSION
*
Expand Down Expand Up @@ -139,6 +139,12 @@ export interface RosettaOptions {
* @memberof RosettaOptions
*/
pox_addr?: string;
/**
* The hex-encoded signer key (buff 33) for PoX.
* @type {string}
* @memberof RosettaOptions
*/
signer_key?: string;
}

export function RosettaOptionsFromJSON(json: any): RosettaOptions {
Expand Down Expand Up @@ -171,6 +177,7 @@ export function RosettaOptionsFromJSONTyped(json: any, ignoreDiscriminator: bool
'burn_block_height': !exists(json, 'burn_block_height') ? undefined : json['burn_block_height'],
'delegate_to': !exists(json, 'delegate_to') ? undefined : json['delegate_to'],
'pox_addr': !exists(json, 'pox_addr') ? undefined : json['pox_addr'],
'signer_key': !exists(json, 'signer_key') ? undefined : json['signer_key'],
};
}

Expand Down Expand Up @@ -203,6 +210,7 @@ export function RosettaOptionsToJSON(value?: RosettaOptions | null): any {
'burn_block_height': value.burn_block_height,
'delegate_to': value.delegate_to,
'pox_addr': value.pox_addr,
'signer_key': value.signer_key,
};
}

2 changes: 1 addition & 1 deletion docker/docker-compose.dev.stacks-blockchain-follower.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
stacks-blockchain:
build:
context: ../stacks-blockchain/docker
command: stacks-node start --config=/app/config/Stacks-follower.toml
command: stacks-node start --config /app/config/Stacks-follower.toml
restart: on-failure
environment:
STACKS_EVENT_OBSERVER: host.docker.internal:3700
Expand Down
8 changes: 4 additions & 4 deletions docker/docker-compose.dev.stacks-blockchain.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
version: '3.7'
services:
stacks-blockchain:
image: "hirosystems/stacks-api-e2e:stacks3.0-800259e"
image: 'hirosystems/stacks-api-e2e:stacks3.0-4d11d85'
restart: on-failure
environment:
STACKS_EVENT_OBSERVER: host.docker.internal:3700
BLOCKSTACK_USE_TEST_GENESIS_CHAINSTATE: 1
NOP_BLOCKSTACK_DEBUG: 1
ports:
- "20443:20443"
- "20444:20444"
- '20443:20443'
- '20444:20444'
volumes:
- ../stacks-blockchain/:/app/config
- ../stacks-blockchain/.chaindata:/tmp/stacks-blockchain-data
extra_hosts:
- "host.docker.internal:host-gateway" # fixes `host.docker.internal` on linux hosts
- 'host.docker.internal:host-gateway' # fixes `host.docker.internal` on linux hosts
12 changes: 6 additions & 6 deletions docker/docker-compose.dev.stacks-krypton.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
version: '3.7'
services:
stacks-blockchain:
image: "hirosystems/stacks-api-e2e:stacks3.0-800259e"
image: 'hirosystems/stacks-api-e2e:stacks3.0-4d11d85'
ports:
- "18443:18443" # bitcoin regtest JSON-RPC interface
- "18444:18444" # bitcoin regtest p2p
- "20443:20443" # stacks-node RPC interface
- "20444:20444" # stacks-node p2p
- '18443:18443' # bitcoin regtest JSON-RPC interface
- '18444:18444' # bitcoin regtest p2p
- '20443:20443' # stacks-node RPC interface
- '20444:20444' # stacks-node p2p
environment:
MINE_INTERVAL: 0.1s
STACKS_EVENT_OBSERVER: host.docker.internal:3700
# STACKS_LOG_TRACE: 1
# STACKS_LOG_DEBUG: 1
extra_hosts:
- "host.docker.internal:host-gateway" # fixes `host.docker.internal` on linux hosts
- 'host.docker.internal:host-gateway' # fixes `host.docker.internal` on linux hosts
2 changes: 1 addition & 1 deletion docker/docker-compose.dev.subnets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
image: "hirosystems/stacks-subnets:7012d22"
# build:
# dockerfile: ./subnet-node.Dockerfile
command: subnet-node start --config=/app/config/Stacks-subnet.toml
command: subnet-node start --config /app/config/Stacks-subnet.toml
ports:
- "30443:30443" # subnet-node RPC interface
- "30444:30444" # subnet-node p2p
Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.7'
services:
stacks-blockchain:
command: stacks-node start --config=/app/config/Stacks-mocknet.toml
command: stacks-node start --config /app/config/Stacks-mocknet.toml
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
stacks-blockchain:
build:
context: ../stacks-blockchain/docker
command: stacks-node start --config=/app/config/Stacks-follower.toml
command: stacks-node start --config /app/config/Stacks-follower.toml
restart: on-failure
environment:
STACKS_EVENT_OBSERVER: stacks-blockchain-api:3700
Expand Down
2 changes: 1 addition & 1 deletion docker/rosetta.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ case "${STACKS_NETWORK}" in
;;
esac
# start stacks-blockchain and store pid
${STACKS_BLOCKCHAIN_DIR}/stacks-node start --config=${STACKS_BLOCKCHAIN_DIR}/${STACKS_NETWORK}-follower-conf.toml 2>&1 &
${STACKS_BLOCKCHAIN_DIR}/stacks-node start --config ${STACKS_BLOCKCHAIN_DIR}/${STACKS_NETWORK}-follower-conf.toml 2>&1 &
STACKS_BLOCKCHAIN_PID=$!

# start stacks-blockchain-api and store pid
Expand Down
4 changes: 2 additions & 2 deletions docker/standalone-regtest.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ RUN <<EOF

export STACKS_EVENT_OBSERVER="127.0.0.1:3998"
envsubst < config.toml.in > config.toml
stacks-node start --config=config.toml &
stacks-node start --config config.toml &
STACKS_PID=$!

while true; do
Expand Down Expand Up @@ -359,7 +359,7 @@ cat > run.sh <<'EOM'

export STACKS_EVENT_OBSERVER="127.0.0.1:3700"
envsubst < config.toml.in > config.toml
stacks-node start --config=config.toml &
stacks-node start --config config.toml &
STACKS_PID=$!

while true; do
Expand Down
12 changes: 12 additions & 0 deletions docs/api/stacking/get-pox-cycle-signer-stackers.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"limit": 20,
"offset": 0,
"total": 1,
"results": [
{
"pox_address": "15Z2sAvjgVDpcBh4vx9g2XKU8FVHYcXNaj",
"stacked_amount": "686251350000000000",
"stacker_address": "STRYYQQ9M8KAF4NS7WNZQYY59X93XEKR31JP64CP"
}
]
}
29 changes: 29 additions & 0 deletions docs/api/stacking/get-pox-cycle-signer-stackers.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"description": "GET request that returns stackers for a signer in a PoX cycle",
"additionalProperties": false,
"title": "PoxCycleSignerStackersListResponse",
"type": "object",
"required": ["results", "limit", "offset", "total"],
"properties": {
"limit": {
"type": "integer",
"maximum": 200,
"description": "The number of stackers to return"
},
"offset": {
"type": "integer",
"description": "The number to stackers to skip (starting at `0`)",
"default": 0
},
"total": {
"type": "integer",
"description": "The total number of stackers"
},
"results": {
"type": "array",
"items": {
"$ref": "../../entities/stacking/stacker.schema.json"
}
}
}
}
28 changes: 28 additions & 0 deletions docs/api/stacking/get-pox-cycle-signers.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"limit": 20,
"offset": 0,
"total": 3,
"results": [
{
"signing_key": "0x038e3c4529395611be9abf6fa3b6987e81d402385e3d605a073f42f407565a4a3d",
"stacked_amount": "686251350000000000",
"stacked_amount_percent": 50,
"weight": 5,
"weight_percent": 55.55555555555556
},
{
"signing_key": "0x029874497a7952483aa23890e9d0898696f33864d3df90939930a1f45421fe3b09",
"stacked_amount": "457500900000000000",
"stacked_amount_percent": 33.333333333333336,
"weight": 3,
"weight_percent": 33.33333333333333
},
{
"signing_key": "0x02dcde79b38787b72d8e5e0af81cffa802f0a3c8452d6b46e08859165f49a72736",
"stacked_amount": "228750450000000000",
"stacked_amount_percent": 16.666666666666668,
"weight": 1,
"weight_percent": 11.11111111111111
}
]
}
29 changes: 29 additions & 0 deletions docs/api/stacking/get-pox-cycle-signers.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"description": "GET request that returns signers for a PoX cycle",
"additionalProperties": false,
"title": "PoxCycleSignersListResponse",
"type": "object",
"required": ["results", "limit", "offset", "total"],
"properties": {
"limit": {
"type": "integer",
"maximum": 200,
"description": "The number of signers to return"
},
"offset": {
"type": "integer",
"description": "The number to signers to skip (starting at `0`)",
"default": 0
},
"total": {
"type": "integer",
"description": "The total number of signers"
},
"results": {
"type": "array",
"items": {
"$ref": "../../entities/stacking/signer.schema.json"
}
}
}
}
31 changes: 31 additions & 0 deletions docs/api/stacking/get-pox-cycles.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"limit": 20,
"offset": 0,
"total": 3,
"results": [
{
"block_height": 50,
"cycle_number": 14,
"index_block_hash": "0xf5be33abc4e508bdaf2191e88339372edcb3358c44e2a31e1b9b44f2880dde09",
"total_signers": 3,
"total_stacked_amount": "1372502700000000000",
"total_weight": 9
},
{
"block_height": 22,
"cycle_number": 13,
"index_block_hash": "0x5077c7d971dd83cd3ba19dca579e3cc8dcf17913186b66093c94520e50d3b7b2",
"total_signers": 3,
"total_stacked_amount": "1372502700000000000",
"total_weight": 9
},
{
"block_height": 13,
"cycle_number": 12,
"index_block_hash": "0x62d06851fe03f17cb45a488ae70bd8e0c5c308c523f37814ad4df36bd2108713",
"total_signers": 3,
"total_stacked_amount": "1372502700000000000",
"total_weight": 9
}
]
}
29 changes: 29 additions & 0 deletions docs/api/stacking/get-pox-cycles.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"description": "GET request that returns PoX cycles",
"additionalProperties": false,
"title": "PoxCycleListResponse",
"type": "object",
"required": ["results", "limit", "offset", "total"],
"properties": {
"limit": {
"type": "integer",
"maximum": 200,
"description": "The number of cycles to return"
},
"offset": {
"type": "integer",
"description": "The number to cycles to skip (starting at `0`)",
"default": 0
},
"total": {
"type": "integer",
"description": "The total number of cycles"
},
"results": {
"type": "array",
"items": {
"$ref": "../../entities/stacking/pox-cycle.schema.json"
}
}
}
}
2 changes: 2 additions & 0 deletions docs/entities/blocks/block.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"canonical": true,
"height": 3275,
"hash": "0xe77ba8cf6bb7c0e4f64adc83356289ed467d31a22354907b4bb814590058430f",
"block_time": 1594233639,
"block_time_iso": "2020-08-27T16:41:26.000Z",
"index_block_hash": "0x918697ef63f9d8bdf844c3312b299e72a231cde542f3173f7755bb8c1cdaf3a7",
"parent_block_hash": "0x75ab21ef25cbff2caa14c27d830ed7886a4d1522e1b6f9e5dc3b59ccf73ed49f",
"burn_block_time": 1594233639,
Expand Down
10 changes: 10 additions & 0 deletions docs/entities/blocks/block.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"canonical",
"height",
"hash",
"block_time",
"block_time_iso",
"index_block_hash",
"parent_block_hash",
"txs",
Expand Down Expand Up @@ -39,6 +41,14 @@
"type": "string",
"description": "Hash representing the block"
},
"block_time": {
"type": "number",
"description": "Unix timestamp (in seconds) indicating when this block was mined."
},
"block_time_iso": {
"type": "string",
"description": "An ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ) indicating when this block was mined."
},
"index_block_hash": {
"type": "string",
"description": "The only hash that can uniquely identify an anchored block or an unconfirmed state trie"
Expand Down
2 changes: 2 additions & 0 deletions docs/entities/blocks/nakamoto-block.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"canonical": true,
"height": 3275,
"hash": "0xe77ba8cf6bb7c0e4f64adc83356289ed467d31a22354907b4bb814590058430f",
"block_time": 1594233639,
"block_time_iso": "2020-08-27T16:41:26.000Z",
"index_block_hash": "0x918697ef63f9d8bdf844c3312b299e72a231cde542f3173f7755bb8c1cdaf3a7",
"parent_block_hash": "0x75ab21ef25cbff2caa14c27d830ed7886a4d1522e1b6f9e5dc3b59ccf73ed49f",
"parent_index_block_hash": "0x4262db117659d1ca9406970c8f44ffd3d8f11f8e18c591d2e3960f4070107756",
Expand Down
Loading
Loading