2023-07-07 13:03:37 +00:00
|
|
|
package token
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/status-im/status-go/protocol/protobuf"
|
|
|
|
"github.com/status-im/status-go/services/wallet/bigint"
|
|
|
|
)
|
|
|
|
|
|
|
|
type DeployState uint8
|
|
|
|
|
|
|
|
const (
|
|
|
|
Failed DeployState = iota
|
|
|
|
InProgress
|
|
|
|
Deployed
|
|
|
|
)
|
|
|
|
|
2023-07-18 08:33:45 +00:00
|
|
|
type PrivilegesLevel uint8
|
|
|
|
|
|
|
|
const (
|
|
|
|
OwnerLevel PrivilegesLevel = iota
|
|
|
|
MasterLevel
|
|
|
|
CommunityLevel
|
|
|
|
)
|
|
|
|
|
2023-07-07 13:03:37 +00:00
|
|
|
type CommunityToken struct {
|
|
|
|
TokenType protobuf.CommunityTokenType `json:"tokenType"`
|
|
|
|
CommunityID string `json:"communityId"`
|
|
|
|
Address string `json:"address"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Symbol string `json:"symbol"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Supply *bigint.BigInt `json:"supply"`
|
|
|
|
InfiniteSupply bool `json:"infiniteSupply"`
|
|
|
|
Transferable bool `json:"transferable"`
|
|
|
|
RemoteSelfDestruct bool `json:"remoteSelfDestruct"`
|
|
|
|
ChainID int `json:"chainId"`
|
|
|
|
DeployState DeployState `json:"deployState"`
|
|
|
|
Base64Image string `json:"image"`
|
|
|
|
Decimals int `json:"decimals"`
|
2023-07-18 08:33:45 +00:00
|
|
|
Deployer string `json:"deployer"`
|
|
|
|
PrivilegesLevel PrivilegesLevel `json:"privilegesLevel"`
|
2024-05-21 08:51:48 +00:00
|
|
|
TransactionHash string `json:"transactionHash"`
|
2024-07-02 11:34:18 +00:00
|
|
|
Version string `json:"version"`
|
2023-07-07 13:03:37 +00:00
|
|
|
}
|