Skip to content

Release Nakamoto beta #1906

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

Merged
merged 24 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
24 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
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
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
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,40 @@
## [7.9.0-nakamoto.9](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.9.0-nakamoto.8...v7.9.0-nakamoto.9) (2024-03-21)


### Bug Fixes

* event-replay readiness for nakamoto & fix for [#1879](https://github.com/hirosystems/stacks-blockchain-api/issues/1879) ([#1903](https://github.com/hirosystems/stacks-blockchain-api/issues/1903)) ([1572e73](https://github.com/hirosystems/stacks-blockchain-api/commit/1572e737337680510850b23662e1f36c57ebc198))

## [7.9.0-nakamoto.8](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.9.0-nakamoto.7...v7.9.0-nakamoto.8) (2024-03-20)


### Features

* ingest signer_bitvec ([#1900](https://github.com/hirosystems/stacks-blockchain-api/issues/1900)) ([aa1750f](https://github.com/hirosystems/stacks-blockchain-api/commit/aa1750f7ebbdfe4c2a84583f98c3ff465236f8aa))

## [7.9.0-nakamoto.7](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.9.0-nakamoto.6...v7.9.0-nakamoto.7) (2024-03-20)


### Features

* pox stacker & signer cycle details ([#1873](https://github.com/hirosystems/stacks-blockchain-api/issues/1873)) ([d2c2805](https://github.com/hirosystems/stacks-blockchain-api/commit/d2c28059cfca99cd9b9a35cb8c96074a60fedd35))

## [7.9.0-nakamoto.6](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.9.0-nakamoto.5...v7.9.0-nakamoto.6) (2024-03-15)


### Features

* nakamoto block timestamps ([#1886](https://github.com/hirosystems/stacks-blockchain-api/issues/1886)) ([f547832](https://github.com/hirosystems/stacks-blockchain-api/commit/f5478329d7267a65b5f3c557b197feadff298afb))

## [7.9.0-nakamoto.5](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.9.0-nakamoto.4...v7.9.0-nakamoto.5) (2024-02-20)


### Bug Fixes

* report placeholder in prom metrics for invalid request paths ([#1867](https://github.com/hirosystems/stacks-blockchain-api/issues/1867)) ([7921488](https://github.com/hirosystems/stacks-blockchain-api/commit/79214883a5c58724ddc3e7d7b57381317cb6e27d))
* **rosetta:** use /v2/fees/transaction for fee estimation ([b287b7b](https://github.com/hirosystems/stacks-blockchain-api/commit/b287b7bb3426719553e9ffa3b88178fb24207a6b))
* sql transactional consistency bug with fetching chaintip in various areas ([#1853](https://github.com/hirosystems/stacks-blockchain-api/issues/1853)) ([07339c0](https://github.com/hirosystems/stacks-blockchain-api/commit/07339c08f3f42bc7b08c2e830939bfadcd308cb0))

## [7.8.2](https://github.com/hirosystems/stacks-blockchain-api/compare/v7.8.1...v7.8.2) (2024-02-19)


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,
};
}

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-457f270'
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-457f270'
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
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"
}
}
}
}
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
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
"pox_addr": {
"type": "string",
"description": "The reward address for stacking transaction. It should be a valid Bitcoin address"
},
"signer_key": {
"type": "string",
"description": "The hex-encoded signer key (buff 33) for PoX."
}
}
}
8 changes: 8 additions & 0 deletions docs/entities/stacking/pox-cycle.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"block_height": 50,
"cycle_number": 14,
"index_block_hash": "0xf5be33abc4e508bdaf2191e88339372edcb3358c44e2a31e1b9b44f2880dde09",
"total_signers": 3,
"total_stacked_amount": "1372502700000000000",
"total_weight": 9
}
33 changes: 33 additions & 0 deletions docs/entities/stacking/pox-cycle.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"title": "PoxCycle",
"type": "object",
"additionalProperties": false,
"required": [
"block_height",
"index_block_hash",
"cycle_number",
"total_weight",
"total_stacked_amount",
"total_signers"
],
"properties": {
"block_height": {
"type": "integer"
},
"index_block_hash": {
"type": "string"
},
"cycle_number": {
"type": "integer"
},
"total_weight": {
"type": "integer"
},
"total_stacked_amount": {
"type": "string"
},
"total_signers": {
"type": "integer"
}
}
}
7 changes: 7 additions & 0 deletions docs/entities/stacking/signer.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"signing_key": "0x038e3c4529395611be9abf6fa3b6987e81d402385e3d605a073f42f407565a4a3d",
"stacked_amount": "686251350000000000",
"stacked_amount_percent": 50,
"weight": 5,
"weight_percent": 55.55555555555556
}
Loading