github.com/status-im/status-go@v1.1.0/protocol/communities/token/community_token.go (about) 1 package token 2 3 import ( 4 "github.com/status-im/status-go/protocol/protobuf" 5 "github.com/status-im/status-go/services/wallet/bigint" 6 ) 7 8 type DeployState uint8 9 10 const ( 11 Failed DeployState = iota 12 InProgress 13 Deployed 14 ) 15 16 type PrivilegesLevel uint8 17 18 const ( 19 OwnerLevel PrivilegesLevel = iota 20 MasterLevel 21 CommunityLevel 22 ) 23 24 type CommunityToken struct { 25 TokenType protobuf.CommunityTokenType `json:"tokenType"` 26 CommunityID string `json:"communityId"` 27 Address string `json:"address"` 28 Name string `json:"name"` 29 Symbol string `json:"symbol"` 30 Description string `json:"description"` 31 Supply *bigint.BigInt `json:"supply"` 32 InfiniteSupply bool `json:"infiniteSupply"` 33 Transferable bool `json:"transferable"` 34 RemoteSelfDestruct bool `json:"remoteSelfDestruct"` 35 ChainID int `json:"chainId"` 36 DeployState DeployState `json:"deployState"` 37 Base64Image string `json:"image"` 38 Decimals int `json:"decimals"` 39 Deployer string `json:"deployer"` 40 PrivilegesLevel PrivilegesLevel `json:"privilegesLevel"` 41 TransactionHash string `json:"transactionHash"` 42 Version string `json:"version"` 43 }