Skip to content

Commit 3aefd5d

Browse files
authored
Merge branch 'next' into develop
2 parents 1e4ef42 + b2b5251 commit 3aefd5d

File tree

118 files changed

+1578
-6119
lines changed

Some content is hidden

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

118 files changed

+1578
-6119
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PG_PORT=5490
33
PG_USER=postgres
44
PG_PASSWORD=postgres
55
PG_DATABASE=stacks_blockchain_api
6-
PG_SCHEMA=public
6+
PG_SCHEMA=stacks_blockchain_api
77
PG_SSL=false
88
# Idle connection timeout in seconds, defaults to 30
99
# PG_IDLE_TIMEOUT=30

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- master
77
- develop
88
- beta
9-
- nakamoto
9+
- next
1010
tags-ignore:
1111
- "**"
1212
paths-ignore:

.gitpod.Dockerfile

Lines changed: 0 additions & 23 deletions
This file was deleted.

.gitpod.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.releaserc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"prerelease": true
88
},
99
{
10-
"name": "nakamoto",
11-
"channel": "nakamoto",
10+
"name": "next",
11+
"channel": "next",
1212
"prerelease": true
1313
}
1414
],
@@ -44,7 +44,13 @@
4444
"pkgRoot": "./client"
4545
}
4646
],
47-
"@semantic-release/github",
47+
[
48+
"@semantic-release/github",
49+
{
50+
"successComment": false,
51+
"draftRelease": true
52+
}
53+
],
4854
"@semantic-release/changelog",
4955
"@semantic-release/git"
5056
]

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,6 @@ The feature can be used via program args. For example, if there are breaking cha
105105
SQL schema, like adding a new column that requires events to be re-played, the following steps
106106
could be run:
107107

108-
### Event Replay V2
109-
110-
This version of the replay process relies on parquet files processing instead of TSV files.
111-
112-
There are some improvements on the replay process and this version is is, around, 10x times faster than the previous (V1) one.
113-
114-
__Note: the previous event-replay version is still available and can be used as well, for the same purpose.__
115-
116108
#### Instructions
117109

118110
To run the new event-replay, please follow the instructions at [stacks-event-replay](https://github.com/hirosystems/stacks-event-replay#installation) repository.

config/extra-tx-post-endpoints.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

migrations/1588256295395_ft_events.js

Lines changed: 0 additions & 83 deletions
This file was deleted.

migrations/1588261750265_nft_events.js

Lines changed: 0 additions & 85 deletions
This file was deleted.
Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
/** @param { import("node-pg-migrate").MigrationBuilder } pgm */
2-
exports.up = pgm => {
1+
import { MigrationBuilder, ColumnDefinitions } from 'node-pg-migrate';
2+
3+
export const shorthands: ColumnDefinitions | undefined = undefined;
4+
5+
export async function up(pgm: MigrationBuilder): Promise<void> {
36
pgm.createTable('blocks', {
47
index_block_hash: {
58
type: 'bytea',
@@ -69,11 +72,40 @@ exports.up = pgm => {
6972
type: 'bigint',
7073
notNull: true,
7174
},
75+
tx_count: {
76+
type: 'int',
77+
notNull: true,
78+
default: 1,
79+
},
80+
block_time: {
81+
type: 'integer',
82+
notNull: true,
83+
default: '0',
84+
},
85+
signer_bitvec: {
86+
type: 'bit varying',
87+
},
88+
tenure_height: {
89+
type: 'integer',
90+
},
91+
signer_signatures: {
92+
type: 'bytea[]',
93+
},
94+
tx_total_size: {
95+
type: 'int',
96+
},
7297
});
7398

7499
pgm.createIndex('blocks', 'block_hash', { method: 'hash' });
75-
pgm.createIndex('blocks', 'burn_block_hash', { method: 'hash' });
76-
pgm.createIndex('blocks', 'index_block_hash', { method: 'hash' });
77100
pgm.createIndex('blocks', [{ name: 'block_height', sort: 'DESC' }]);
101+
pgm.createIndex('blocks', 'burn_block_hash', { method: 'hash' });
78102
pgm.createIndex('blocks', [{ name: 'burn_block_height', sort: 'DESC' }]);
103+
pgm.createIndex('blocks', 'index_block_hash', { method: 'hash' });
104+
pgm.createIndex('blocks', 'signer_signatures', { method: 'gin' });
105+
pgm.createIndex('blocks', ['tenure_height', { name: 'block_height', sort: 'DESC' }]);
106+
}
107+
108+
export async function down(pgm: MigrationBuilder): Promise<void> {
109+
pgm.dropTable('blocks');
79110
}
111+

0 commit comments

Comments
 (0)