From 1f1e3912d2f119dcb068c88c69991a2f89f21286 Mon Sep 17 00:00:00 2001 From: bayge Date: Thu, 23 Jan 2025 14:19:52 +1030 Subject: [PATCH] Don't dollarise shares, fix table tracking for SARP Signaller --- db/migrations/1736780912-sarp_signaller.sql | 3 ++- lib/types/events/9lives.go | 5 +++-- web/src/components/degenMode/degenModeListItem.tsx | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/db/migrations/1736780912-sarp_signaller.sql b/db/migrations/1736780912-sarp_signaller.sql index 1b14ea95..10ec8eba 100644 --- a/db/migrations/1736780912-sarp_signaller.sql +++ b/db/migrations/1736780912-sarp_signaller.sql @@ -20,7 +20,8 @@ CREATE TABLE ninelives_events_concluded( block_number INTEGER NOT NULL, emitter_addr ADDRESS NOT NULL, - ticket HUGEINT NOT NULL UNIQUE + ticket HUGEINT NOT NULL UNIQUE, + justification BYTES32 NOT NULL ); -- migrate:down diff --git a/lib/types/events/9lives.go b/lib/types/events/9lives.go index 1240f900..e4865002 100644 --- a/lib/types/events/9lives.go +++ b/lib/types/events/9lives.go @@ -65,7 +65,7 @@ type ( TradingAddr Address `json:"trading_addr"` Desc Bytes `json:"desc" gorm:"column:desc_"` LaunchTs time.Time `json:"launch_ts"` - CallDeadline uint64 `json:"call_deadline"` + CallDeadline uint64 `json:"call_deadline"` } EventCallMade struct { @@ -154,6 +154,7 @@ type ( EventConcluded struct { Event - Ticket Number `json:"ticket"` + Ticket Number `json:"ticket"` + Justification Bytes `json:"justification"` } ) diff --git a/web/src/components/degenMode/degenModeListItem.tsx b/web/src/components/degenMode/degenModeListItem.tsx index c12a50f6..4cb0eeb4 100644 --- a/web/src/components/degenMode/degenModeListItem.tsx +++ b/web/src/components/degenMode/degenModeListItem.tsx @@ -56,7 +56,7 @@ export default function DegenModeListItem({ data }: { data: Action }) { {data.type !== "create" ? ( - ${data.actionValue ?? "?"} FOR {data.outcomeName ?? "?"} + {data.actionValue ?? "?"} SHARES FOR {data.outcomeName ?? "?"} ) : null}