From d1203ae681fb7a02b866875886f583dcd33383fc Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Wed, 21 Dec 2022 11:58:24 +0200 Subject: [PATCH 1/3] add current owner --- data/outport/dtos.go | 1 + 1 file changed, 1 insertion(+) diff --git a/data/outport/dtos.go b/data/outport/dtos.go index f32188ff6..fc6660147 100644 --- a/data/outport/dtos.go +++ b/data/outport/dtos.go @@ -32,6 +32,7 @@ type AlteredAccount struct { Nonce uint64 `json:"nonce"` Address string `json:"address"` Balance string `json:"balance,omitempty"` + CurrentOwner string `json:"currentOwner,omitempty"` Tokens []*AccountTokenData `json:"tokens"` AdditionalData *AdditionalAccountData `json:"additionalData,omitempty"` } From 8a1c79726c3edd01b191d912abfe1a54fff4eb35 Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Wed, 21 Dec 2022 12:16:42 +0200 Subject: [PATCH 2/3] added userName field and developerRewards field --- data/outport/dtos.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/data/outport/dtos.go b/data/outport/dtos.go index fc6660147..a1a38b750 100644 --- a/data/outport/dtos.go +++ b/data/outport/dtos.go @@ -29,12 +29,14 @@ type AccountTokenData struct { // AlteredAccount holds the data needed of an altered account in a block type AlteredAccount struct { - Nonce uint64 `json:"nonce"` - Address string `json:"address"` - Balance string `json:"balance,omitempty"` - CurrentOwner string `json:"currentOwner,omitempty"` - Tokens []*AccountTokenData `json:"tokens"` - AdditionalData *AdditionalAccountData `json:"additionalData,omitempty"` + Nonce uint64 `json:"nonce"` + Address string `json:"address"` + Balance string `json:"balance,omitempty"` + CurrentOwner string `json:"currentOwner,omitempty"` + UserName string `json:"userName,omitempty"` + DeveloperRewards string `json:"developerRewards,omitempty"` + Tokens []*AccountTokenData `json:"tokens"` + AdditionalData *AdditionalAccountData `json:"additionalData,omitempty"` } // AdditionalAccountData holds the additional data for an altered account From 54b2630733816f508e88f954295da7d9da4f2a66 Mon Sep 17 00:00:00 2001 From: Iuga Mihai Date: Fri, 23 Dec 2022 16:26:02 +0200 Subject: [PATCH 3/3] fixes after review --- data/outport/dtos.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/data/outport/dtos.go b/data/outport/dtos.go index a1a38b750..73026c4c1 100644 --- a/data/outport/dtos.go +++ b/data/outport/dtos.go @@ -29,20 +29,20 @@ type AccountTokenData struct { // AlteredAccount holds the data needed of an altered account in a block type AlteredAccount struct { - Nonce uint64 `json:"nonce"` - Address string `json:"address"` - Balance string `json:"balance,omitempty"` - CurrentOwner string `json:"currentOwner,omitempty"` - UserName string `json:"userName,omitempty"` - DeveloperRewards string `json:"developerRewards,omitempty"` - Tokens []*AccountTokenData `json:"tokens"` - AdditionalData *AdditionalAccountData `json:"additionalData,omitempty"` + Nonce uint64 `json:"nonce"` + Address string `json:"address"` + Balance string `json:"balance,omitempty"` + Tokens []*AccountTokenData `json:"tokens"` + AdditionalData *AdditionalAccountData `json:"additionalData,omitempty"` } // AdditionalAccountData holds the additional data for an altered account type AdditionalAccountData struct { - IsSender bool `json:"isSender,omitempty"` - BalanceChanged bool `json:"balanceChanged,omitempty"` + IsSender bool `json:"isSender,omitempty"` + BalanceChanged bool `json:"balanceChanged,omitempty"` + CurrentOwner string `json:"currentOwner,omitempty"` + UserName string `json:"userName,omitempty"` + DeveloperRewards string `json:"developerRewards,omitempty"` } // AdditionalAccountTokenData holds the additional data for indexing a token of an altered account