Skip to content

Commit

Permalink
FIX: Use TokenMetaData in AccountTokenData
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmihaic committed Nov 8, 2022
1 parent c77c2b1 commit 38dd797
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
12 changes: 0 additions & 12 deletions data/api/apiTokenMetaData.go

This file was deleted.

14 changes: 12 additions & 2 deletions data/outport/dtos.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,26 @@ import (
"time"

"github.com/ElrondNetwork/elrond-go-core/data"
"github.com/ElrondNetwork/elrond-go-core/data/esdt"
)

// TokenMetaData is the api metaData struct for tokens
type TokenMetaData struct {
Nonce uint64 `json:"nonce"`
Name string `json:"name"`
Creator string `json:"creator"`
Royalties uint32 `json:"royalties"`
Hash []byte `json:"hash"`
URIs [][]byte `json:"uris"`
Attributes []byte `json:"attributes"`
}

// AccountTokenData holds the data needed for indexing a token of an altered account
type AccountTokenData struct {
Nonce uint64 `json:"nonce"`
Identifier string `json:"identifier"`
Balance string `json:"balance"`
Properties string `json:"properties"`
MetaData *esdt.MetaData `json:"metadata"`
MetaData *TokenMetaData `json:"metadata"`
AdditionalData *AdditionalAccountTokenData `json:"additionalData,omitempty"`
}

Expand Down

0 comments on commit 38dd797

Please sign in to comment.