-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: insert correct contract address
* closes #7 every specific event now links to the contract address that emitted the event log.
- Loading branch information
1 parent
5df4b89
commit 1b4a434
Showing
4 changed files
with
66 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ALTER TABLE tx DROP COLUMN contract_address; | ||
|
||
ALTER TABLE token_transfer ADD COLUMN contract_address VARCHAR(42); | ||
UPDATE token_transfer SET contract_address = '0x0000000000000000000000000000000000000000'; | ||
ALTER TABLE token_transfer ALTER COLUMN contract_address SET NOT NULL; | ||
|
||
ALTER TABLE token_mint ADD COLUMN contract_address VARCHAR(42); | ||
UPDATE token_mint SET contract_address = '0x0000000000000000000000000000000000000000'; | ||
ALTER TABLE token_mint ALTER COLUMN contract_address SET NOT NULL; | ||
|
||
ALTER TABLE token_burn ADD COLUMN contract_address VARCHAR(42); | ||
UPDATE token_burn SET contract_address = '0x0000000000000000000000000000000000000000'; | ||
ALTER TABLE token_burn ALTER COLUMN contract_address SET NOT NULL; | ||
|
||
ALTER TABLE faucet_give ADD COLUMN contract_address VARCHAR(42); | ||
UPDATE faucet_give SET contract_address = '0x0000000000000000000000000000000000000000'; | ||
ALTER TABLE faucet_give ALTER COLUMN contract_address SET NOT NULL; | ||
|
||
ALTER TABLE pool_swap ADD COLUMN contract_address VARCHAR(42); | ||
UPDATE pool_swap SET contract_address = '0x0000000000000000000000000000000000000000'; | ||
ALTER TABLE pool_swap ALTER COLUMN contract_address SET NOT NULL; | ||
|
||
ALTER TABLE pool_deposit ADD COLUMN contract_address VARCHAR(42); | ||
UPDATE pool_deposit SET contract_address = '0x0000000000000000000000000000000000000000'; | ||
ALTER TABLE pool_deposit ALTER COLUMN contract_address SET NOT NULL; | ||
|
||
ALTER TABLE price_index_updates ADD COLUMN contract_address VARCHAR(42); | ||
UPDATE price_index_updates SET contract_address = '0x0000000000000000000000000000000000000000'; | ||
ALTER TABLE price_index_updates ALTER COLUMN contract_address SET NOT NULL; |
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