Skip to content

Commit

Permalink
Merge pull request #326 from multiversx/merge-rc-1-7-next1-into-sover…
Browse files Browse the repository at this point in the history
…eign-7-oct-2024

Merge rc 1 7 next1 into sovereign 7 oct 2024
  • Loading branch information
mariusmihaic authored Oct 11, 2024
2 parents 9028001 + 50ac1ae commit b884700
Show file tree
Hide file tree
Showing 22 changed files with 975 additions and 1,070 deletions.
24 changes: 24 additions & 0 deletions core/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,30 @@ const (
DynamicMeta
)

// String will convert number type in string
func (t ESDTType) String() string {
switch t {
case Fungible:
return FungibleESDT
case NonFungible:
return NonFungibleESDT
case NonFungibleV2:
return NonFungibleESDTv2
case SemiFungible:
return SemiFungibleESDT
case MetaFungible:
return MetaESDT
case DynamicNFT:
return DynamicNFTESDT
case DynamicSFT:
return DynamicSFTESDT
case DynamicMeta:
return DynamicMetaESDT
default:
return "Unknown"
}
}

// FungibleESDT defines the string for the token type of fungible ESDT
const FungibleESDT = "FungibleESDT"

Expand Down
164 changes: 111 additions & 53 deletions data/alteredAccount/alteredAccount.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions data/alteredAccount/alteredAccount.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ message AccountTokenData {
string Properties = 4 [(gogoproto.jsontag) = "properties"];
TokenMetaData MetaData = 5 [(gogoproto.jsontag) = "metaData,omitempty"];
AdditionalAccountTokenData AdditionalData = 6 [(gogoproto.jsontag) = "additionalData,omitempty"];
string Type = 7 [(gogoproto.jsontag) = "type,omitempty"];
}

message TokenMetaData {
Expand Down
Loading

0 comments on commit b884700

Please sign in to comment.