Skip to content

Commit

Permalink
fix: add pos_rewards table
Browse files Browse the repository at this point in the history
  • Loading branch information
neocybereth committed Dec 16, 2024
1 parent 3540112 commit 90fecd6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.

This file was deleted.

1 change: 0 additions & 1 deletion orm/migrations/2024-12-16-230753_rewards_per_epoch/up.sql

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE IF EXISTS pos_rewards;
11 changes: 11 additions & 0 deletions orm/migrations/2024-12-16-231256_create_pos_rewards_table/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Creates the pos_rewards table with four columns:
-- owner: TEXT, representing the delegator address
-- validator_id: INTEGER, representing the validator identifier
-- raw_amount: NUMERIC, holding large numeric values for rewards
-- epoch: INTEGER, representing the epoch number
CREATE TABLE pos_rewards (
owner TEXT NOT NULL,
validator_id INTEGER NOT NULL,
raw_amount NUMERIC NOT NULL,
epoch INTEGER NOT NULL
);

0 comments on commit 90fecd6

Please sign in to comment.