-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #361 from hirosystems/beta
release 4.0.0
- Loading branch information
Showing
80 changed files
with
4,138 additions
and
6,649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
import { MigrationBuilder, ColumnDefinitions } from 'node-pg-migrate'; | ||
|
||
export const shorthands: ColumnDefinitions | undefined = undefined; | ||
|
||
export function up(pgm: MigrationBuilder): void { | ||
pgm.createTable('satoshis', { | ||
ordinal_number: { | ||
type: 'numeric', | ||
primaryKey: true, | ||
}, | ||
rarity: { | ||
type: 'text', | ||
notNull: true, | ||
}, | ||
coinbase_height: { | ||
type: 'bigint', | ||
notNull: true, | ||
}, | ||
}); | ||
pgm.createIndex('satoshis', ['rarity']); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* eslint-disable @typescript-eslint/naming-convention */ | ||
import { MigrationBuilder, ColumnDefinitions } from 'node-pg-migrate'; | ||
|
||
export const shorthands: ColumnDefinitions | undefined = undefined; | ||
|
||
export function up(pgm: MigrationBuilder): void { | ||
pgm.createTable('inscription_transfers', { | ||
genesis_id: { | ||
type: 'text', | ||
notNull: true, | ||
}, | ||
number: { | ||
type: 'bigint', | ||
notNull: true, | ||
}, | ||
ordinal_number: { | ||
type: 'numeric', | ||
notNull: true, | ||
}, | ||
block_height: { | ||
type: 'bigint', | ||
notNull: true, | ||
}, | ||
tx_index: { | ||
type: 'bigint', | ||
notNull: true, | ||
}, | ||
block_hash: { | ||
type: 'text', | ||
notNull: true, | ||
}, | ||
block_transfer_index: { | ||
type: 'int', | ||
notNull: true, | ||
}, | ||
}); | ||
pgm.createConstraint('inscription_transfers', 'inscription_transfers_pkey', { | ||
primaryKey: ['block_height', 'block_transfer_index'], | ||
}); | ||
pgm.createIndex('inscription_transfers', ['genesis_id']); | ||
pgm.createIndex('inscription_transfers', ['number']); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.