-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5881904
commit d113244
Showing
2 changed files
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
BEGIN; | ||
|
||
ALTER TABLE chain.runtime_transactions | ||
-- For evm.Call transactions, we store both the name of the function and | ||
-- the function paramters. | ||
ADD COLUMN evm_fn_name TEXT, | ||
ADD COLUMN evm_fn_params JSONB, | ||
-- The parsed result(s) return by the transaction. | ||
ADD COLUMN evm_tx_result JSONB, | ||
-- Custom errors may be arbitrarily defined by the contract abi. This field | ||
-- stores the full abi-decoded error object. Note that the error name is | ||
-- stored separately in the existing error_message column. For example, if we | ||
-- have an error like `InsufficientBalance{available: 4, required: 10}`. | ||
-- the error_message column would hold `InsufficientBalance`, and | ||
-- the error_params column would store `{available: 4, required: 10}`. | ||
ADD COLUMN error_params JSONB; | ||
|
||
COMMIT; |