-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more fields in fevm transaction (#1255)
* Add new fields for fevm transaction * Get the Actor from DataSource API
- Loading branch information
Showing
5 changed files
with
120 additions
and
1 deletion.
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
27 changes: 27 additions & 0 deletions
27
schemas/v1/31_add_message_and_address_and_actor_names_to_fevm_transcation.go
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,27 @@ | ||
package v1 | ||
|
||
func init() { | ||
patches.Register( | ||
31, | ||
` | ||
ALTER TABLE {{ .SchemaName | default "public"}}.fevm_transactions | ||
ADD COLUMN IF NOT EXISTS "from_filecoin_address" text; | ||
ALTER TABLE {{ .SchemaName | default "public"}}.fevm_transactions | ||
ADD COLUMN IF NOT EXISTS "to_filecoin_address" text; | ||
ALTER TABLE {{ .SchemaName | default "public"}}.fevm_transactions | ||
ADD COLUMN IF NOT EXISTS "from_actor_name" text; | ||
ALTER TABLE {{ .SchemaName | default "public"}}.fevm_transactions | ||
ADD COLUMN IF NOT EXISTS "to_actor_name" text; | ||
ALTER TABLE {{ .SchemaName | default "public"}}.fevm_transactions | ||
ADD COLUMN IF NOT EXISTS "message_cid" text; | ||
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.fevm_transactions.from_filecoin_address IS 'Filecoin Address of the sender.'; | ||
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.fevm_transactions.to_filecoin_address IS 'Filecoin Address of the receiver.'; | ||
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.fevm_transactions.from_actor_name IS 'Fully-versioned human-readable identifier of sender (From).'; | ||
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.fevm_transactions.to_actor_name IS 'Fully-versioned human-readable identifier of receiver (To).'; | ||
COMMENT ON COLUMN {{ .SchemaName | default "public"}}.fevm_transactions.message_cid IS 'Filecoin Message Cid'; | ||
`, | ||
) | ||
} |
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