-
Notifications
You must be signed in to change notification settings - Fork 11
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 #15 from jdogresorg/counterparty-2.0
counterparty 2.0 updates
- Loading branch information
Showing
17 changed files
with
320 additions
and
175 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
Git LFS file not shown
Git LFS file not shown
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 was deleted.
Oops, something went wrong.
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,7 @@ | ||
DROP TABLE IF EXISTS address_events; | ||
CREATE TABLE address_events ( | ||
address_id INTEGER UNSIGNED, -- id from index_addresses table | ||
event_index INTEGER UNSIGNED | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
CREATE UNIQUE INDEX address_id ON addresses (address_id); |
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 |
---|---|---|
@@ -1,29 +1,33 @@ | ||
DROP TABLE IF EXISTS dispensers; | ||
CREATE TABLE dispensers ( | ||
tx_index INTEGER UNSIGNED, | ||
-- tx_hash TEXT, | ||
tx_hash_id INTEGER UNSIGNED, -- id of record in index_transactions | ||
block_index INTEGER UNSIGNED, | ||
-- source TEXT, | ||
source_id INTEGER UNSIGNED, -- id of record in index_addresses | ||
-- asset TEXT, | ||
asset_id INTEGER UNSIGNED, -- id of record in assets table | ||
give_quantity BIGINT, -- Tokens to vend per dispense | ||
escrow_quantity BIGINT, -- Tokens to escrow in dispenser | ||
satoshirate BIGINT, -- Bitcoin satoshis required per dispense | ||
give_remaining BIGINT, | ||
oracle_address_id INTEGER UNSIGNED, -- id of record in index_addresses table | ||
last_status_tx_hash_id INTEGER UNSIGNED, -- id of record in index_transactions | ||
origin_id INTEGER UNSIGNED, -- id of record in index_addresses | ||
closing_reason TEXT, | ||
status TEXT | ||
tx_index INTEGER UNSIGNED, | ||
-- tx_hash TEXT, | ||
tx_hash_id INTEGER UNSIGNED, -- id of record in index_transactions | ||
block_index INTEGER UNSIGNED, | ||
-- source TEXT, | ||
source_id INTEGER UNSIGNED, -- id of record in index_addresses | ||
-- asset TEXT, | ||
asset_id INTEGER UNSIGNED, -- id of record in assets table | ||
give_quantity BIGINT, -- Tokens to vend per dispense | ||
escrow_quantity BIGINT, -- Tokens to escrow in dispenser | ||
satoshirate BIGINT, -- Bitcoin satoshis required per dispense | ||
give_remaining BIGINT, | ||
oracle_address_id INTEGER UNSIGNED, -- id of record in index_addresses table | ||
last_status_tx_hash_id INTEGER UNSIGNED, -- id of record in index_transactions | ||
origin_id INTEGER UNSIGNED, -- id of record in index_addresses | ||
closing_reason TEXT, | ||
status TEXT, | ||
dispense_count INTEGER DEFAULT 0, | ||
last_status_tx_source_id INTEGER UNSIGNED, | ||
close_block_index INTEGER UNSIGNED | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
CREATE UNIQUE INDEX tx_index ON dispensers (tx_index); | ||
CREATE INDEX tx_hash_id ON dispensers (tx_hash_id); | ||
CREATE INDEX block_index ON dispensers (block_index); | ||
CREATE INDEX source_id ON dispensers (source_id); | ||
CREATE INDEX asset_id ON dispensers (asset_id); | ||
CREATE INDEX oracle_address_id ON dispensers (oracle_address_id); | ||
CREATE INDEX last_status_tx_hash_id ON dispensers (last_status_tx_hash_id); | ||
CREATE INDEX origin_id ON dispensers (origin_id); | ||
CREATE UNIQUE INDEX tx_index ON dispensers (tx_index); | ||
CREATE INDEX tx_hash_id ON dispensers (tx_hash_id); | ||
CREATE INDEX block_index ON dispensers (block_index); | ||
CREATE INDEX source_id ON dispensers (source_id); | ||
CREATE INDEX asset_id ON dispensers (asset_id); | ||
CREATE INDEX oracle_address_id ON dispensers (oracle_address_id); | ||
CREATE INDEX last_status_tx_hash_id ON dispensers (last_status_tx_hash_id); | ||
CREATE INDEX origin_id ON dispensers (origin_id); | ||
CREATE INDEX last_status_tx_source_id ON dispensers (last_status_tx_source_id); |
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 @@ | ||
DROP TABLE IF EXISTS fairminters; | ||
CREATE TABLE fairminters ( | ||
-- tx_hash TEXT, | ||
tx_hash_id INTEGER UNSIGNED, | ||
tx_index INTEGER UNSIGNED, | ||
block_index INTEGER UNSIGNED, | ||
-- source TEXT, | ||
source_id INTEGER UNSIGNED, -- id of record in index_addresses table | ||
-- asset TEXT, | ||
asset_id INTEGER UNSIGNED, -- id of record in assets table | ||
-- asset_parent TEXT, | ||
asset_parent_id INTEGER UNSIGNED, -- id of record in assets table | ||
asset_longname VARCHAR(255), | ||
description VARCHAR(10000), | ||
price INTEGER UNSIGNED, | ||
quantity_by_price INTEGER UNSIGNED, | ||
hard_cap VARCHAR(250), | ||
burn_payment VARCHAR(250), | ||
max_mint_per_tx VARCHAR(250), | ||
premint_quantity VARCHAR(250),, | ||
start_block INTEGER UNSIGNED, | ||
end_block INTEGER UNSIGNED, | ||
minted_asset_commission_int VARCHAR(250), | ||
soft_cap VARCHAR(250), | ||
soft_cap_deadline_block INTEGER UNSIGNED, | ||
lock_description VARCHAR(250), | ||
lock_quantity VARCHAR(250), | ||
divisible VARCHAR(250), | ||
pre_minted VARCHAR(250), | ||
status VARCHAR(250), | ||
earned_quantity VARCHAR(250), | ||
commission VARCHAR(250), | ||
paid_quantity VARCHAR(250) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
CREATE INDEX tx_hash_id ON fairminters (tx_hash_id); | ||
CREATE INDEX block_index ON fairminters (block_index); | ||
CREATE INDEX source_id ON fairminters (source_id); | ||
CREATE INDEX asset_id ON fairminters (asset_id); | ||
CREATE INDEX asset_parent_id ON fairminters (asset_parent_id); | ||
CREATE INDEX asset_longname ON fairminters (asset_longname); | ||
CREATE INDEX status ON fairminters (status); |
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,24 @@ | ||
DROP TABLE IF EXISTS fairmints; | ||
CREATE TABLE fairmints ( | ||
-- tx_hash TEXT, | ||
tx_hash_id INTEGER UNSIGNED, | ||
tx_index INTEGER UNSIGNED, | ||
block_index INTEGER UNSIGNED, | ||
-- source TEXT, | ||
source_id INTEGER UNSIGNED, -- id of record in index_addresses table | ||
-- fairminter_tx_hash TEXT, | ||
fairminter_tx_hash_id INTEGER UNSIGNED, | ||
-- asset TEXT, | ||
asset_id INTEGER UNSIGNED, -- id of record in assets table | ||
earn_quantity VARCHAR(250), | ||
paid_quantity VARCHAR(250), | ||
commission VARCHAR(250), | ||
status VARCHAR(250) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | ||
|
||
CREATE INDEX tx_hash_id ON fairmints (tx_hash_id); | ||
CREATE INDEX block_index ON fairmints (block_index); | ||
CREATE INDEX source_id ON fairmints (source_id); | ||
CREATE INDEX fairminter_tx_hash_id ON fairmints (fairminter_tx_hash_id); | ||
CREATE INDEX asset_id ON fairmints (asset_id); | ||
CREATE INDEX status ON fairmints (status); |
Oops, something went wrong.