Skip to content

Commit

Permalink
Merge pull request #310 from multiversx/merge_rc17next1_into_feat_rel…
Browse files Browse the repository at this point in the history
…ayedv3_2024.07.03_2

Merge rc17next1 into feat relayedv3 2024.07.03 2
  • Loading branch information
sstanculeanu authored Jul 3, 2024
2 parents 182030e + 550eebf commit 626328c
Show file tree
Hide file tree
Showing 3 changed files with 136 additions and 53 deletions.
24 changes: 24 additions & 0 deletions core/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,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

0 comments on commit 626328c

Please sign in to comment.