-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(relayer): add is_profitable and fee related columns (#17619)
Co-authored-by: Daniel Wang <99078276+dantaik@users.noreply.github.com> Co-authored-by: jeff <113397187+cyberhorsey@users.noreply.github.com>
- Loading branch information
1 parent
1320950
commit e2359d4
Showing
8 changed files
with
155 additions
and
25 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
23 changes: 23 additions & 0 deletions
23
packages/relayer/migrations/1708366669_alert_events_is_profitable.sql
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,23 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
ALTER TABLE `events` | ||
ADD COLUMN `fee` BIGINT UNSIGNED NULL, | ||
ADD COLUMN `dest_chain_base_fee` BIGINT UNSIGNED NULL, | ||
ADD COLUMN `gas_tip_cap` BIGINT UNSIGNED NULL, | ||
ADD COLUMN `gas_limit` BIGINT UNSIGNED NULL, | ||
ADD COLUMN `is_profitable` BOOLEAN NULL, | ||
ADD COLUMN `estimated_onchain_fee` BIGINT UNSIGNED NULL, | ||
ADD COLUMN `is_profitable_evaluated_at` TIMESTAMP NULL; | ||
|
||
-- +goose StatementEnd | ||
-- +goose Down | ||
-- +goose StatementBegin | ||
ALTER TABLE `events` | ||
DROP COLUMN `fee`, | ||
DROP COLUMN `dest_chain_base_fee`, | ||
DROP COLUMN `gas_tip_cap`, | ||
DROP COLUMN `gas_limit`, | ||
DROP COLUMN `is_profitable`, | ||
DROP COLUMN `estimated_onchain_fee`, | ||
DROP COLUMN `is_profitable_evaluated_at`; | ||
-- +goose StatementEnd |
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
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