lbd

package module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 17 Imported by: 0

README

go-lbd

Library for Golang to call LINE Blockchain Developers API. When you use Golang to develop a service, it allows you to easily send a request without separately setting HTTP connection or signature.

For testing

Environment values

Set environment values

export API_KEY=
export API_SECRET=
export SERVICE_ID=

export OWNER_ADDR=
export OWNER_SECRET=

export SERVICETOKEN_CONTRACT_ID=
export ITEMTOKEN_CONTRACT_ID=

export USER_ID=
Transactions

Set environment value TX=1.

Documentation

Index

Constants

View Source
const (
	CashewBaseURL = "https://test-api.blockchain.line.me"
	DaphneBaseURL = "https://api.blockchain.line.me"
)
View Source
const (
	DefaultLimit int = 50
)

Variables

This section is empty.

Functions

func DivideId

func DivideId(tokenId string) (string, string)

func GenerateNonce

func GenerateNonce(timestampMsec int64) string

func NowMsec

func NowMsec() int64

Types

type AttachNonFungibleRequest

type AttachNonFungibleRequest struct {
	*Request
	ParentTokenId        string `json:"parentTokenId"`
	ServiceWalletAddress string `json:"serviceWalletAddress"`
	ServiceWalletSecret  string `json:"serviceWalletSecret"`
	TokenHolderAddress   string `json:"tokenHolderAddress,omitempty"`
	TokenHolderUserId    string `json:"tokenHolderUserId,omitempty"`
}

func (AttachNonFungibleRequest) Encode

func (r AttachNonFungibleRequest) Encode() string

type Attribute

type Attribute struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type Balance

type Balance struct {
	Symbol   string `json:"symbol"`
	Decimals int64  `json:"decimals"`
	Amount   string `json:"amount"`
}

type BalanceOfFungible

type BalanceOfFungible struct {
	TokenType string `json:"tokenType"`
	Name      string `json:"name"`
	Meta      string `json:"meta"`
	Amount    string `json:"amount"`
}

type BalanceOfNonFungiblesToken

type BalanceOfNonFungiblesToken struct {
	Name      string `json:"name"`
	TokenId   string `json:"tokenId"`
	CreatedAt int64  `json:"createdAt"`
	BurnedAt  int64  `json:"burnedAt"`
}

type BalanceOfNonFungiblesTokenType

type BalanceOfNonFungiblesTokenType struct {
	List          []BalanceOfNonFungiblesTokenTypeList `json:"list"`
	PrePageToken  string                               `json:"prePageToken"`
	NextPageToken string                               `json:"nextPageToken"`
}

type BalanceOfNonFungiblesTokenTypeList

type BalanceOfNonFungiblesTokenTypeList struct {
	Type  BalanceOfNonFungiblesType  `json:"type"`
	Token BalanceOfNonFungiblesToken `json:"token"`
}

type BalanceOfNonFungiblesType

type BalanceOfNonFungiblesType struct {
	TokenType   string `json:"tokenType"`
	Name        string `json:"name"`
	Meta        string `json:"meta"`
	CreatedAt   int64  `json:"createdAt"`
	TotalSupply string `json:"totalSupply"`
	TotalMint   string `json:"totalMint"`
	TotalBurn   string `json:"totalBurn"`
}

type BalanceOfServiceTokens

type BalanceOfServiceTokens struct {
	ContractId string `json:"contractId"`
	Name       string `json:"name"`
	Symbol     string `json:"symbol"`
	ImgUri     string `json:"imgUri"`
	Decimals   int64  `json:"decimals"`
	Amount     string `json:"amount"`
}

type BalanceOfSpecificNonFungible

type BalanceOfSpecificNonFungible struct {
	TokenIndex string `json:"tokenIndex"`
	Name       string `json:"name"`
	Meta       string `json:"meta"`
}

type BatchTransferNonFungibleRequest

type BatchTransferNonFungibleRequest struct {
	*Request
	WalletSecret string          `json:"walletSecret"`
	ToUserId     string          `json:"toUserId,omitempty"`
	ToAddress    string          `json:"toAddress,omitempty"`
	TransferList []*TransferList `json:"transferList"`
}

func (BatchTransferNonFungibleRequest) Encode

type BurnItemTokenRequest

type BurnItemTokenRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Amount       string `json:"amount,omitempty"`
	FromUserId   string `json:"fromUserId,omitempty"`
	FromAddress  string `json:"fromAddress,omitempty"`
}

func (BurnItemTokenRequest) Encode

func (r BurnItemTokenRequest) Encode() string

type BurnServiceTokenRequest

type BurnServiceTokenRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Amount       string `json:"amount"`
	FromUserId   string `json:"fromUserId,omitempty"`
	FromAddress  string `json:"fromAddress,omitempty"`
}

func (BurnServiceTokenRequest) Encode

func (r BurnServiceTokenRequest) Encode() string

type CreateFungibleRequest

type CreateFungibleRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Name         string `json:"name"`
	Meta         string `json:"meta,omitempty"`
}

func (CreateFungibleRequest) Encode

func (r CreateFungibleRequest) Encode() string

type CreateNonFungibleRequest

type CreateNonFungibleRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Name         string `json:"name"`
	Meta         string `json:"meta"`
}

func (CreateNonFungibleRequest) Encode

func (r CreateNonFungibleRequest) Encode() string

type DetachNonFungibleParentRequest

type DetachNonFungibleParentRequest struct {
	*Request
	ServiceWalletAddress string `json:"serviceWalletAddress"`
	ServiceWalletSecret  string `json:"serviceWalletSecret"`
	TokenHolderAddress   string `json:"tokenHolderAddress,omitempty"`
	TokenHolderUserId    string `json:"tokenHolderUserId,omitempty"`
}

func (DetachNonFungibleParentRequest) Encode

type Event

type Event struct {
	Type       string      `json:"type"`
	Attributes []Attribute `json:"attributes"`
}

type Fee

type Fee struct {
	Gas    int64         `json:"gas"`
	Amount []interface{} `json:"amount"`
}

type FungibleHolders added in v1.1.0

type FungibleHolders struct {
	WalletAddress string `json:"walletAddress"`
	UserID        string `json:"userId"`
	Amount        string `json:"amount"`
}

type FungibleInformation

type FungibleInformation struct {
	TokenType   string `json:"tokenType"`
	Name        string `json:"name"`
	Meta        string `json:"meta"`
	CreatedAt   int64  `json:"createdAt"`
	TotalSupply string `json:"totalSupply"`
	TotalMint   string `json:"totalMint"`
	TotalBurn   string `json:"totalBurn"`
}

type FungibleTokenResponse

type FungibleTokenResponse struct {
	TokenType    string `json:"tokenType"`
	Url          string `json:"url"`
	Status       string `json:"status"`
	DetailStatus string `json:"detailStatus"`
}

type Holder

type Holder struct {
	WalletAddress *string `json:"walletAddress"`
	UserID        *string `json:"userId"`
	NumberOfIndex string  `json:"numberOfIndex"`
}

Holders Response Struct

type IssueSessionTokenForBaseCoinTransferRequest

type IssueSessionTokenForBaseCoinTransferRequest struct {
	*Request
	ToUserId    string      `json:"toUserId,omitempty"`
	ToAddress   string      `json:"toAddress,omitempty"`
	Amount      string      `json:"amount"`
	RequestType RequestType `json:"-"`
}

func (IssueSessionTokenForBaseCoinTransferRequest) Encode

type IssueSessionTokenForProxySettingRequest

type IssueSessionTokenForProxySettingRequest struct {
	*Request
	OwnerAddress string      `json:"ownerAddress"`
	OwnerSecret  string      `json:"ownerSecret"`
	RequestType  RequestType `json:"-"`
}

func (IssueSessionTokenForProxySettingRequest) Encode

type ItemTokenContractInformation

type ItemTokenContractInformation struct {
	ContractID   string `json:"contractId"`
	BaseImgURI   string `json:"baseImgUri"`
	OwnerAddress string `json:"ownerAddress"`
	CreatedAt    int64  `json:"createdAt"`
	ServiceID    string `json:"serviceId"`
}

type ItemTokenHolder

type ItemTokenHolder struct {
	WalletAddress *string `json:"walletAddress"`
	UserID        *string `json:"userId"`
	TokenID       *string `json:"tokenId"`
	Amount        string  `json:"amount"`
}

type LBD

type LBD struct {
	Network Network

	Owner *Wallet
	Debug bool
	// contains filtered or unexported fields
}

func NewCashew

func NewCashew(apiKey string, secret string, owner *Wallet) (*LBD, error)

func NewDaphne

func NewDaphne(apiKey string, secret string, owner *Wallet) (*LBD, error)

func NewLBD

func NewLBD(network Network, url string, apiKey string, secret string, owner *Wallet) (*LBD, error)

func (*LBD) AttachNonFungibleAnother

func (l *LBD) AttachNonFungibleAnother(contractId, tokenType, tokenIndex, parentTokenId, to string) (*Transaction, error)

func (LBD) BatchTransferDelegatedNonFungiblesUserWallet

func (l LBD) BatchTransferDelegatedNonFungiblesUserWallet(userId, contractId, to string, transferList []TransferList) (*Transfer, error)

func (*LBD) BatchTransferNonFungible

func (l *LBD) BatchTransferNonFungible(walletAddress, contactId, to string, transferList []*TransferList) (*Transaction, error)

func (*LBD) BurnFungible

func (l *LBD) BurnFungible(contractId, tokenType, from string, amount *big.Int) (*Transaction, error)

func (*LBD) BurnNonFungible

func (l *LBD) BurnNonFungible(contractId, tokenType, tokenIndex, from string) (*Transaction, error)

func (*LBD) BurnServiceToken

func (l *LBD) BurnServiceToken(contractId, from string, amount *big.Int) (*Transaction, error)

func (LBD) CommitTransaction

func (l LBD) CommitTransaction(requestSessionToken string) (*Transaction, error)

func (*LBD) CreateNonFungible

func (l *LBD) CreateNonFungible(contractId, name, meta string) (*Transaction, error)

func (*LBD) DetachNonFungibleParent

func (l *LBD) DetachNonFungibleParent(contractId, tokenType, tokenIndex, to string) (*Transaction, error)

func (*LBD) Do

func (l *LBD) Do(r Requester, sign bool) (*Response, error)

func (LBD) GetExplorerURL

func (l LBD) GetExplorerURL(tx *Transaction) string

func (LBD) IsAddress

func (l LBD) IsAddress(s string) bool

func (*LBD) IssueFungible

func (l *LBD) IssueFungible(contractId, name, meta string) (*Transaction, error)

func (*LBD) IssueSessionTokenForBaseCoinTransfer

func (l *LBD) IssueSessionTokenForBaseCoinTransfer(fromUserId, to string, amount *big.Int, requestType RequestType) (*SessionToken, error)

func (*LBD) IssueSessionTokenForProxySetting

func (l *LBD) IssueSessionTokenForProxySetting(userId, contractId string, requestType RequestType) (*SessionToken, error)

func (LBD) IssueSessionTokenForServiceTokenProxySetting

func (l LBD) IssueSessionTokenForServiceTokenProxySetting(userId, contractId string, requestType RequestType) (*SessionToken, error)

func (LBD) IssueSessionTokenForServiceTokenTransfer

func (l LBD) IssueSessionTokenForServiceTokenTransfer(fromUserId, contractId, to string, amount *big.Int, requestType RequestType) (*SessionToken, error)

func (LBD) ListAllFungibles

func (l LBD) ListAllFungibles(contractId string, pager *Pager) ([]*TokenType, error)

func (LBD) ListAllFungiblesItemToken

func (l LBD) ListAllFungiblesItemToken(contractId string) ([]*TokenType, error)

func (LBD) ListAllNonFungibles

func (l LBD) ListAllNonFungibles(contractId string, pager *Pager) ([]*TokenType, error)

func (LBD) ListAllNonFungiblesItemToken

func (l LBD) ListAllNonFungiblesItemToken(contractId string) ([]*TokenType, error)

func (*LBD) ListAllServiceTokenHolders

func (l *LBD) ListAllServiceTokenHolders(contentId string) ([]*ServiceTokenHolders, error)

func (*LBD) ListAllServiceTokens

func (l *LBD) ListAllServiceTokens() ([]*ServiceToken, error)

func (LBD) ListAllServiceWallets

func (l LBD) ListAllServiceWallets() ([]*Wallet, error)

func (LBD) ListBalanceOfAllServiceTokensUserWallet

func (l LBD) ListBalanceOfAllServiceTokensUserWallet(userId string) ([]*BalanceOfServiceTokens, error)

func (LBD) ListBalanceOfSpecificTypeOfNonFungiblesUserWallet

func (l LBD) ListBalanceOfSpecificTypeOfNonFungiblesUserWallet(userId string, contractId, tokenType string) ([]*NonFungibleToken, error)

func (LBD) ListTheChildrenOfNonFungible

func (l LBD) ListTheChildrenOfNonFungible(contractId, tokenType, tokenIndex string, pager *Pager) ([]*NonFungibleInformation, error)

func (LBD) ListTheChildrenOfNonFungibleItemToken

func (l LBD) ListTheChildrenOfNonFungibleItemToken(contractId, tokenType, tokenIndex string) ([]*NonFungibleInformation, error)

func (LBD) ListWalletAddressBalanceAllServiceTokens added in v1.1.0

func (l LBD) ListWalletAddressBalanceAllServiceTokens(walletAddress string) ([]*RetrieveBalanceServiceTokensResponse, error)

func (LBD) ListWalletAddresseBalanceAllServiceTokens deprecated

func (l LBD) ListWalletAddresseBalanceAllServiceTokens(walletAddress string) ([]*RetrieveBalanceServiceTokensResponse, error)

Deprecated: Use ListWalletAddressBalanceAllServiceTokens

func (*LBD) MintFungible

func (l *LBD) MintFungible(contractId, tokenType, to string, amount *big.Int) (*Transaction, error)

func (*LBD) MintMultipleNonFungible

func (l *LBD) MintMultipleNonFungible(contractId, to string, mintList []*MintList) (*Transaction, error)

func (*LBD) MintMultipleNonFungibleRecipients

func (l *LBD) MintMultipleNonFungibleRecipients(contractId string, mintList []*MultiMintList) (*Transaction, error)

func (*LBD) MintNonFungible

func (l *LBD) MintNonFungible(contractId, tokenType, name, meta, to string) (*Transaction, error)

func (*LBD) MintServiceToken

func (l *LBD) MintServiceToken(contractId string, to string, amount *big.Int) (*Transaction, error)

func (LBD) RetrieveAllFungibleHolders

func (l LBD) RetrieveAllFungibleHolders(contractId, tokenType string, pager *Pager) ([]*FungibleHolders, error)

func (LBD) RetrieveAllFungibleHoldersItemToken

func (l LBD) RetrieveAllFungibleHoldersItemToken(contractId, tokenType string) ([]*FungibleHolders, error)

func (*LBD) RetrieveBalanceAllFungibles

func (l *LBD) RetrieveBalanceAllFungibles(walletAddress, contactId string, pager *Pager) ([]*RetrieveBalanceFungibles, error)

func (*LBD) RetrieveBalanceAllServiceTokens

func (l *LBD) RetrieveBalanceAllServiceTokens(walletAddress string, pager *Pager) ([]*RetrieveBalanceServiceTokensResponse, error)

func (LBD) RetrieveBalanceOfAllFungiblesUserWallet

func (l LBD) RetrieveBalanceOfAllFungiblesUserWallet(userId, contractId string, pager *Pager) ([]*BalanceOfFungible, error)

func (*LBD) RetrieveBalanceOfAllNonFungiblesServiceWallet

func (l *LBD) RetrieveBalanceOfAllNonFungiblesServiceWallet(walletAddress, contractId string, pager *Pager) ([]*NonFungible, error)

func (LBD) RetrieveBalanceOfAllNonFungiblesUserWallet

func (l LBD) RetrieveBalanceOfAllNonFungiblesUserWallet(userId, contractId string, pager *Pager) ([]*NonFungible, error)

func (LBD) RetrieveBalanceOfAllServiceTokensUserWallet

func (l LBD) RetrieveBalanceOfAllServiceTokensUserWallet(userId string, pager *Pager) ([]*BalanceOfServiceTokens, error)

func (LBD) RetrieveBalanceOfNonFungiblesWithTokenTypeUserWallet

func (l LBD) RetrieveBalanceOfNonFungiblesWithTokenTypeUserWallet(userId, contractId, orderBy, pageToken string, limit uint32) (*BalanceOfNonFungiblesTokenType, error)

func (LBD) RetrieveBalanceOfSpecificFungibleUserWallet

func (l LBD) RetrieveBalanceOfSpecificFungibleUserWallet(userId, contractId, tokenType string) (*BalanceOfFungible, error)

func (LBD) RetrieveBalanceOfSpecificNonFungibleUserWallet

func (l LBD) RetrieveBalanceOfSpecificNonFungibleUserWallet(userId, contractId, tokenType, tokenIndex string) (*BalanceOfSpecificNonFungible, error)

func (LBD) RetrieveBalanceOfSpecificServiceTokenUserWallet

func (l LBD) RetrieveBalanceOfSpecificServiceTokenUserWallet(userId, contractId string) (*BalanceOfServiceTokens, error)

func (LBD) RetrieveBalanceOfSpecificTypeOfNonFungiblesServiceWallet

func (l LBD) RetrieveBalanceOfSpecificTypeOfNonFungiblesServiceWallet(walletAddress, contractId, tokenType string, pager *Pager) ([]*NonFungibleToken, error)

func (LBD) RetrieveBalanceOfSpecificTypeOfNonFungiblesUserWallet

func (l LBD) RetrieveBalanceOfSpecificTypeOfNonFungiblesUserWallet(userId, contractId, tokenType string, pager *Pager) ([]*NonFungibleToken, error)

func (*LBD) RetrieveBalanceSpecificFungible

func (l *LBD) RetrieveBalanceSpecificFungible(walletAddress, contractId, tokenType string) (*RetrieveBalanceFungibles, error)

func (*LBD) RetrieveBalanceSpecificNonFungible

func (l *LBD) RetrieveBalanceSpecificNonFungible(walletAddress, contractId, tokenType, tokenIndex string) (*RetrieveBalanceNonFungible, error)

func (*LBD) RetrieveBalanceSpecificServiceTokenWallet

func (l *LBD) RetrieveBalanceSpecificServiceTokenWallet(walletAddress, contractId string) (*RetrieveBalanceServiceTokensResponse, error)

func (*LBD) RetrieveBaseCoinBalance

func (l *LBD) RetrieveBaseCoinBalance(walletAddress string) (*RetrieveBaseCoinBalance, error)

func (LBD) RetrieveBaseCoinBalanceUserWallet

func (l LBD) RetrieveBaseCoinBalanceUserWallet(userId string) (*Balance, error)

func (LBD) RetrieveFungibleInformation

func (l LBD) RetrieveFungibleInformation(contractId, tokenType string) (*FungibleInformation, error)

func (LBD) RetrieveFungibleTokenMediaResourceStatus added in v1.1.0

func (l LBD) RetrieveFungibleTokenMediaResourceStatus(contractId, requestId string) ([]*FungibleTokenResponse, error)

Get media resource status for multiple fungible tokens

func (LBD) RetrieveFungibleTokenThumbnailStatus added in v1.1.0

func (l LBD) RetrieveFungibleTokenThumbnailStatus(contractId, requestId string) ([]*FungibleTokenResponse, error)

Get thumbnail status of multiple fungible tokens

func (LBD) RetrieveHolderOfSpecificNonFungible

func (l LBD) RetrieveHolderOfSpecificNonFungible(contractId, tokenType string, pager *Pager) ([]*Holder, error)

func (LBD) RetrieveHolderOfSpecificNonFungibleItemToken

func (l LBD) RetrieveHolderOfSpecificNonFungibleItemToken(contractId, tokenType string) ([]*Holder, error)

func (LBD) RetrieveItemTokenContractInformation

func (l LBD) RetrieveItemTokenContractInformation(contractId string) (*ItemTokenContractInformation, error)

func (*LBD) RetrieveNonFungibleInformation

func (l *LBD) RetrieveNonFungibleInformation(contractId, tokenType, tokenIndex string) (*NonFungibleInformation, error)

func (LBD) RetrieveNonFungibleTokenMediaResourceStatus added in v1.1.0

func (l LBD) RetrieveNonFungibleTokenMediaResourceStatus(contractId, requestId string) ([]*NonFungibleTokenResponse, error)

Get media resource status for multiple non-fungible tokens

func (LBD) RetrieveNonFungibleTokenThumbnailStatus added in v1.1.0

func (l LBD) RetrieveNonFungibleTokenThumbnailStatus(contractId, requestId string) ([]*NonFungibleTokenResponse, error)

Get thumbnail status of multiple non-fungible tokens

func (*LBD) RetrieveNonFungibleTokenType

func (l *LBD) RetrieveNonFungibleTokenType(contractId, tokenType string, pager *Pager) (*TokenType, error)

func (LBD) RetrieveServerTime

func (l LBD) RetrieveServerTime() (int64, error)

func (LBD) RetrieveServiceInformation

func (l LBD) RetrieveServiceInformation(serviceId string) (*ServiceInformation, error)

func (*LBD) RetrieveServiceTokenInformation

func (l *LBD) RetrieveServiceTokenInformation(contractId string) (*ServiceToken, error)

func (*LBD) RetrieveServiceWalletInformation

func (l *LBD) RetrieveServiceWalletInformation(walletAddress string) (*WalletInformation, error)

func (*LBD) RetrieveServiceWalletTransactionHistory

func (l *LBD) RetrieveServiceWalletTransactionHistory(walletAddress string) ([]*Transaction, error)

func (LBD) RetrieveSessionTokenStatus

func (l LBD) RetrieveSessionTokenStatus(requestSessionToken string) (SessionTokenStatus, error)

func (LBD) RetrieveText

func (l LBD) RetrieveText(txHash string) (*MemoInformation, error)

func (LBD) RetrieveTheHolderOfSpecificNonFungible

func (l LBD) RetrieveTheHolderOfSpecificNonFungible(contractId, tokenType, tokenIndex string) (*ItemTokenHolder, error)

func (LBD) RetrieveTheParentOfNonFungible

func (l LBD) RetrieveTheParentOfNonFungible(contractId, tokenType, tokenIndex string) (*ParentNonFungible, error)

func (LBD) RetrieveTheRootOfNonFungible

func (l LBD) RetrieveTheRootOfNonFungible(contractId, tokenType, tokenIndex string) (*ParentNonFungible, error)

func (LBD) RetrieveTheStatusOfMultipleFungibleTokenIcons deprecated

func (l LBD) RetrieveTheStatusOfMultipleFungibleTokenIcons(contractId, requestId string) ([]*FungibleTokenResponse, error)

Deprecated: Use RetrieveFungibleTokenMediaResourceStatus or RetrieveFungibleTokenThumbnailsStatus instead.

func (LBD) RetrieveTheStatusOfMultipleNonFungibleTokenIcons deprecated

func (l LBD) RetrieveTheStatusOfMultipleNonFungibleTokenIcons(contractId, requestId string) ([]*NonFungibleTokenResponse, error)

Deprecated: Use RetrieveNonFungibleTokenMediaResourceStatus or RetrieveNonFungibleTokenThumbnailsStatus instead.

func (LBD) RetrieveTransactionInformation

func (l LBD) RetrieveTransactionInformation(txHash string) (*Transaction, error)

func (LBD) RetrieveUserHoldersFungibles

func (l LBD) RetrieveUserHoldersFungibles(userId, contractId string) ([]*BalanceOfFungible, error)

func (LBD) RetrieveUserHoldersNonFungibles

func (l LBD) RetrieveUserHoldersNonFungibles(userId string, contractId string) ([]*NonFungible, error)

func (LBD) RetrieveUserInformation

func (l LBD) RetrieveUserInformation(userId string) (*UserInformation, error)

func (LBD) RetrieveUserWalletTransactionHistory

func (l LBD) RetrieveUserWalletTransactionHistory(userId string) ([]*Transaction, error)

func (LBD) RetrieveWalletAddressBalanceOfAllFungibleServiceWallet

func (l LBD) RetrieveWalletAddressBalanceOfAllFungibleServiceWallet(walletAddress string, contractId string) ([]*RetrieveBalanceFungibles, error)

func (LBD) RetrieveWalletAddressBalanceOfAllNonFungiblesServiceWallet

func (l LBD) RetrieveWalletAddressBalanceOfAllNonFungiblesServiceWallet(walletAddress string, contractId string) ([]*NonFungible, error)

func (LBD) RetrieveWalletAddressBalanceOfSpecificTypeOfNonFungiblesServiceWallet

func (l LBD) RetrieveWalletAddressBalanceOfSpecificTypeOfNonFungiblesServiceWallet(walletAddress, contractId, tokenType string) ([]*NonFungibleToken, error)

func (LBD) RetrieveWhetherTheItemTokenProxySet

func (l LBD) RetrieveWhetherTheItemTokenProxySet(userId, contractId string) (*ServiceTokenProxySet, error)

func (LBD) RetrieveWhetherTheServiceTokenProxySet

func (l LBD) RetrieveWhetherTheServiceTokenProxySet(userId, contractId string) (*ServiceTokenProxySet, error)

func (*LBD) SaveText

func (l *LBD) SaveText(memo string) (*Transaction, error)

func (LBD) Sign

func (l LBD) Sign(r Requester) string

func (*LBD) TransferBaseCoins

func (l *LBD) TransferBaseCoins(from *Wallet, to string, amount *big.Int) (*Transaction, error)

func (LBD) TransferDelegatedFungibleUserWallet

func (l LBD) TransferDelegatedFungibleUserWallet(userId, contractId, tokenType, to string, amount *big.Int) (*Transfer, error)

func (LBD) TransferDelegatedNonFungible

func (l LBD) TransferDelegatedNonFungible(userId, contractId, tokenType, tokenIndex, to string) (*Transfer, error)

func (LBD) TransferDelegatedServiceTokenUserWallet

func (l LBD) TransferDelegatedServiceTokenUserWallet(userId, contractId, to string, amount *big.Int) (*Transfer, error)

func (*LBD) TransferFungible

func (l *LBD) TransferFungible(from *Wallet, contractId, to, tokenType string, amount *big.Int) (*Transaction, error)

func (*LBD) TransferNonFungibleServiceWallet

func (l *LBD) TransferNonFungibleServiceWallet(walletAddress, walletSecret, contractId, to, tokenType, tokenIndex string) (*Transaction, error)

func (*LBD) TransferNonFungibleUserWallet

func (l *LBD) TransferNonFungibleUserWallet(contractId, fromUserId, to, tokenType, tokenIndex string) (*Transaction, error)

func (*LBD) TransferServiceTokens

func (l *LBD) TransferServiceTokens(from *Wallet, contractId, to string, amount *big.Int) (*Transaction, error)

func (*LBD) UpdateFungibleInformation

func (l *LBD) UpdateFungibleInformation(contractId, tokenType, name, meta string) (*Transaction, error)

func (*LBD) UpdateFungibleTokenMediaResources added in v1.1.0

func (l *LBD) UpdateFungibleTokenMediaResources(contactId string, updateList []*UpdateFungibleList) (*UpdateMediaResourcesResponse, error)

Update media resources for multiple fungible tokens

func (*LBD) UpdateFungibleTokenThumbnails added in v1.1.0

func (l *LBD) UpdateFungibleTokenThumbnails(contactId string, updateList []*UpdateFungibleList) (*UpdateThumbnailsResponse, error)

Update thumbnails for multiple fungible tokens

func (*LBD) UpdateMultipleFungibleTokenIcons deprecated

func (l *LBD) UpdateMultipleFungibleTokenIcons(contactId string, updateList []*UpdateFungibleList) (*UpdateMultipleTokenIconsResponse, error)

Deprecated: Use UpdateFungibleTokenThumbnails or UpdateFungibleTokenMediaResources instead.

func (LBD) UpdateMultipleFungibleTokenIconsCache

func (l LBD) UpdateMultipleFungibleTokenIconsCache(tokenIds []string, contractId string) error

func (*LBD) UpdateMultipleNonFungibleTokenIcons deprecated

func (l *LBD) UpdateMultipleNonFungibleTokenIcons(contactId string, updateList []*UpdateList) (*UpdateMultipleTokenIconsResponse, error)

Deprecated: Use UpdateNonFungibleTokenThumbnails or UpdateNonFungibleTokenMediaResources or instead.

func (LBD) UpdateMultipleNonFungibleTokenIconsCache

func (l LBD) UpdateMultipleNonFungibleTokenIconsCache(tokenIds []string, contractId string) error

func (*LBD) UpdateNonFungibleInformation

func (l *LBD) UpdateNonFungibleInformation(contractId, tokenType, tokenIndex, name, meta string) (*Transaction, error)

func (*LBD) UpdateNonFungibleTokenMediaResources added in v1.1.0

func (l *LBD) UpdateNonFungibleTokenMediaResources(contactId string, updateList []*UpdateList) (*UpdateMediaResourcesResponse, error)

Update media resources for multiple non-fungible tokens

func (*LBD) UpdateNonFungibleTokenThumbnails added in v1.1.0

func (l *LBD) UpdateNonFungibleTokenThumbnails(contactId string, updateList []*UpdateList) (*UpdateThumbnailsResponse, error)

Update thumbnails for multiple non-fungible tokens

func (*LBD) UpdateNonFungibleTokenType

func (l *LBD) UpdateNonFungibleTokenType(contractId, tokenType, name, meta string) (*Transaction, error)

func (*LBD) UpdateServiceTokenInformation

func (l *LBD) UpdateServiceTokenInformation(contractId, name, meta string) (*Transaction, error)

type Log

type Log struct {
	MsgIndex int64   `json:"msgIndex"`
	Success  bool    `json:"success"`
	Log      string  `json:"log"`
	Events   []Event `json:"events"`
}

type MemoInformation

type MemoInformation struct {
	Memo string `json:"memo"`
}

type MemosRequest

type MemosRequest struct {
	*Request
	WalletAddress string `json:"walletAddress"`
	WalletSecret  string `json:"walletSecret"`
	Memo          string `json:"memo"`
}

func (MemosRequest) Encode

func (r MemosRequest) Encode() string

type Meta

type Meta struct {
	// contains filtered or unexported fields
}

func NewMeta

func NewMeta() *Meta

func UnmarshalMeta

func UnmarshalMeta(data []byte) (*Meta, error)

func (*Meta) MarshalJSON

func (m *Meta) MarshalJSON() ([]byte, error)

func (*Meta) Set

func (m *Meta) Set(key, value string) (err error)

func (*Meta) String

func (m *Meta) String() string

type MintFungibleRequest

type MintFungibleRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	ToUserId     string `json:"toUserId,omitempty"`
	ToAddress    string `json:"toAddress,omitempty"`
	Amount       string `json:"amount"`
}

func (MintFungibleRequest) Encode

func (r MintFungibleRequest) Encode() string

type MintList

type MintList struct {
	TokenType string `json:"tokenType"`
	Name      string `json:"name"`
	Meta      string `json:"meta"`
}

type MintMultipleNonFungibleRecipientsRequest

type MintMultipleNonFungibleRecipientsRequest struct {
	*Request
	OwnerAddress string           `json:"ownerAddress"`
	OwnerSecret  string           `json:"ownerSecret"`
	MintList     []*MultiMintList `json:"mintList"`
}

func (MintMultipleNonFungibleRecipientsRequest) Encode

type MintMultipleNonFungibleRequest

type MintMultipleNonFungibleRequest struct {
	*Request
	OwnerAddress string      `json:"ownerAddress"`
	OwnerSecret  string      `json:"ownerSecret"`
	MintList     []*MintList `json:"mintList"`
	ToUserId     string      `json:"toUserId,omitempty"`
	ToAddress    string      `json:"toAddress,omitempty"`
}

func (MintMultipleNonFungibleRequest) Encode

type MintNonFungibleRequest

type MintNonFungibleRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Name         string `json:"name"`
	Meta         string `json:"meta"`
	ToUserId     string `json:"toUserId,omitempty"`
	ToAddress    string `json:"toAddress,omitempty"`
}

func (MintNonFungibleRequest) Encode

func (r MintNonFungibleRequest) Encode() string

type MintServiceTokenRequest

type MintServiceTokenRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Amount       string `json:"amount"`
	ToUserId     string `json:"toUserId,omitempty"`
	ToAddress    string `json:"toAddress,omitempty"`
}

func (MintServiceTokenRequest) Encode

func (r MintServiceTokenRequest) Encode() string

type Msg

type Msg struct {
	Type  string          `json:"type"`
	Value json.RawMessage `json:"value"`
}

type MultiMintList

type MultiMintList struct {
	TokenType string `json:"tokenType"`
	Name      string `json:"name"`
	Meta      string `json:"meta,omitempty"`
	ToAddress string `json:"toAddress,omitempty"`
	ToUserId  string `json:"toUserId,omitempty"`
}

type Network

type Network string
const (
	Cashew Network = "Cashew"
	Daphne Network = "Daphne"
)

type NonFungible

type NonFungible struct {
	Name          string `json:"name"`
	TokenType     string `json:"tokenType"`
	Meta          string `json:"meta"`
	NumberOfIndex string `json:"numberOfIndex"`
}

type NonFungibleInformation

type NonFungibleInformation struct {
	Name      string      `json:"name"`
	TokenID   string      `json:"tokenId"`
	Meta      string      `json:"meta"`
	CreatedAt int64       `json:"createdAt"`
	BurnedAt  interface{} `json:"burnedAt"`
}

type NonFungibleToken

type NonFungibleToken struct {
	Name       string `json:"name"`
	TokenType  string `json:"tokenType"`
	TokenIndex string `json:"tokenIndex"`
	Meta       string `json:"meta"`
}

func (*NonFungibleToken) ID

func (n *NonFungibleToken) ID() string

type NonFungibleTokenBurnRequest

type NonFungibleTokenBurnRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	FromUserId   string `json:"fromUserId,omitempty"`
	FromAddress  string `json:"fromAddress,omitempty"`
}

func (NonFungibleTokenBurnRequest) Encode

type NonFungibleTokenResponse

type NonFungibleTokenResponse struct {
	TokenType    string `json:"tokenType"`
	TokenIndex   string `json:"tokenIndex"`
	Url          string `json:"url"`
	Status       string `json:"status"`
	DetailStatus string `json:"detailStatus"`
}

type NonFungibleTokenType

type NonFungibleTokenType struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Name         string `json:"name"`
	Meta         string `json:"meta"`
}

type Pager

type Pager struct {
	Limit   int
	Page    int
	OrderBy string
}

type ParentNonFungible

type ParentNonFungible struct {
	Name      string `json:"name"`
	TokenId   string `json:"tokenId"`
	Meta      string `json:"meta"`
	CreatedAt int64  `json:"createdAt"`
	BurnedAt  int64  `json:"burnedAt"`
}

type PubKey

type PubKey struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type Request

type Request struct {
	// contains filtered or unexported fields
}

func NewDeleteRequest

func NewDeleteRequest(path string) *Request

func NewGetRequest

func NewGetRequest(path string) *Request

func NewGetRequestWithQuery

func NewGetRequestWithQuery(path string, query url.Values) *Request

func NewPostRequest

func NewPostRequest(path string) *Request

func NewPutRequest

func NewPutRequest(path string) *Request

func NewRequest

func NewRequest(method, path string) *Request

func (*Request) Encode

func (r *Request) Encode() string

func (*Request) HasQuery

func (r *Request) HasQuery() bool

func (*Request) Method

func (r *Request) Method() string

func (*Request) Nonce

func (r *Request) Nonce() string

func (*Request) Path

func (r *Request) Path() string

func (*Request) Query

func (r *Request) Query() url.Values

func (*Request) RawQuery

func (r *Request) RawQuery() string

func (*Request) Timestamp

func (r *Request) Timestamp() string

func (*Request) URI

func (r *Request) URI() string

type RequestType

type RequestType string
const (
	RequestTypeRedirectUri RequestType = "redirectUri"
	RequestTypeAOA         RequestType = "aoa"
)

type Requester

type Requester interface {
	Method() string
	URI() string
	Path() string
	Nonce() string
	Timestamp() string
	Encode() string
	HasQuery() bool
	Query() url.Values
	RawQuery() string
}

type Response

type Response struct {
	ResponseTime  int64           `json:"responseTime"`
	StatusCode    int64           `json:"statusCode"`
	StatusMessage string          `json:"statusMessage"`
	ResponseData  json.RawMessage `json:"responseData"`
}

type RetrieveBalanceFungibles

type RetrieveBalanceFungibles struct {
	TokenType string `json:"tokenType"`
	Name      string `json:"name"`
	Meta      string `json:"meta"`
	Amount    string `json:"amount"`
}

type RetrieveBalanceNonFungible

type RetrieveBalanceNonFungible struct {
	TokenIndex string `json:"tokenIndex"`
	Name       string `json:"name"`
	Meta       string `json:"meta"`
}

type RetrieveBalanceServiceTokensResponse

type RetrieveBalanceServiceTokensResponse struct {
	ContractID string `json:"contractId"`
	Name       string `json:"name"`
	Symbol     string `json:"symbol"`
	Amount     string `json:"amount"`
	Decimals   int64  `json:"decimals"`
	ImgUri     string `json:"imgUri"`
}

type RetrieveBaseCoinBalance

type RetrieveBaseCoinBalance struct {
	Symbol   string `json:"symbol"`
	Amount   string `json:"amount"`
	Decimals int64  `json:"decimals"`
}

type ServiceInformation

type ServiceInformation struct {
	ServiceID   string `json:"serviceId"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Category    string `json:"category"`
}

type ServiceToken

type ServiceToken struct {
	ContractID   string `json:"contractId"`
	OwnerAddress string `json:"ownerAddress"`
	Name         string `json:"name"`
	Symbol       string `json:"symbol"`
	ImgURI       string `json:"imgUri"`
	Meta         string `json:"meta"`
	Decimals     int64  `json:"decimals"`
	CreatedAt    int64  `json:"createdAt"`
	TotalSupply  string `json:"totalSupply"`
	TotalMint    string `json:"totalMint"`
	TotalBurn    string `json:"totalBurn"`
	ServiceID    string `json:"serviceId"`
}

type ServiceTokenHolders

type ServiceTokenHolders struct {
	Address string `json:"address"`
	UserID  string `json:"userId"`
	Amount  string `json:"amount"`
}

type ServiceTokenProxySet

type ServiceTokenProxySet struct {
	IsApproved bool `json:"isApproved"`
}

type SessionToken

type SessionToken struct {
	RequestSessionToken string `json:"requestSessionToken"`
	RedirectURI         string `json:"redirectUri"`
}

func UnmarshalSessionToken

func UnmarshalSessionToken(data []byte) (*SessionToken, error)

func (*SessionToken) Marshal

func (r *SessionToken) Marshal() ([]byte, error)

type SessionTokenStatus

type SessionTokenStatus string
const (
	SessionTokenStatusUnknown      SessionTokenStatus = "Unknown"
	SessionTokenStatusAuthorized   SessionTokenStatus = "Authorized"
	SessionTokenStatusUnauthorized SessionTokenStatus = "Unauthorized"
)

type Signature

type Signature struct {
	PubKey    PubKey `json:"pubKey"`
	Signature string `json:"signature"`
}

type Token

type Token struct {
	TokenIndex string `json:"tokenIndex"`
	Name       string `json:"name"`
	Meta       string `json:"meta"`
	CreatedAt  int64  `json:"createdAt"`
	BurnedAt   int64  `json:"burnedAt"`
}

type TokenType

type TokenType struct {
	TokenType   string   `json:"tokenType"`
	Name        string   `json:"name"`
	Meta        string   `json:"meta"`
	CreatedAt   int64    `json:"createdAt"`
	TotalSupply string   `json:"totalSupply"`
	TotalMint   string   `json:"totalMint"`
	TotalBurn   string   `json:"totalBurn"`
	Token       []*Token `json:"token"`
}

type Transaction

type Transaction struct {
	Height    int64  `json:"height"`
	Txhash    string `json:"txhash"`
	Index     int64  `json:"index"`
	Codespace string `json:"codespace"`
	Code      int64  `json:"code"`
	Logs      []Log  `json:"logs"`
	GasWanted int64  `json:"gasWanted"`
	GasUsed   int64  `json:"gasUsed"`
	Tx        Tx     `json:"tx"`
	Timestamp int64  `json:"timestamp"`
}

func ConstructRawTransaction

func ConstructRawTransaction(raw []byte) (*Transaction, error)

func UnmarshalTransaction

func UnmarshalTransaction(data []byte) (*Transaction, error)

func (*Transaction) Check

func (t *Transaction) Check() (err error)

func (*Transaction) Marshal

func (r *Transaction) Marshal() ([]byte, error)

type Transfer

type Transfer struct {
	TxHash string `json:"txHash"`
}

func UnmarshalTransfer

func UnmarshalTransfer(data []byte) (*Transfer, error)

func (*Transfer) Marshal

func (r *Transfer) Marshal() ([]byte, error)

type TransferBaseCoinsRequest

type TransferBaseCoinsRequest struct {
	*Request
	WalletSecret string `json:"walletSecret"`
	ToUserId     string `json:"toUserId,omitempty"`
	ToAddress    string `json:"toAddress,omitempty"`
	Amount       string `json:"amount"`
}

func (TransferBaseCoinsRequest) Encode

func (r TransferBaseCoinsRequest) Encode() string

type TransferDelegatedNonFungibleRequest

type TransferDelegatedNonFungibleRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	ToUserId     string `json:"toUserId,omitempty"`
	ToAddress    string `json:"toAddress,omitempty"`
}

func (TransferDelegatedNonFungibleRequest) Encode

type TransferDelegatedNonFungiblesRequest

type TransferDelegatedNonFungiblesRequest struct {
	*Request
	OwnerAddress string         `json:"ownerAddress"`
	OwnerSecret  string         `json:"ownerSecret"`
	ToUserId     string         `json:"toUserId,omitempty"`
	ToAddress    string         `json:"toAddress,omitempty"`
	TransferList []TransferList `json:"transferList"`
}

func (TransferDelegatedNonFungiblesRequest) Encode

type TransferDelegatedRequest

type TransferDelegatedRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Amount       string `json:"amount"`
	ToUserId     string `json:"toUserId,omitempty"`
	ToAddress    string `json:"toAddress,omitempty"`
}

func (TransferDelegatedRequest) Encode

func (r TransferDelegatedRequest) Encode() string

type TransferList

type TransferList struct {
	TokenId string `json:"tokenId"`
}

type TransferNonFungibleServiceWalletRequest

type TransferNonFungibleServiceWalletRequest struct {
	*Request
	WalletSecret string `json:"walletSecret"`
	ToUserId     string `json:"toUserId,omitempty"`
	ToAddress    string `json:"toAddress,omitempty"`
}

func (TransferNonFungibleServiceWalletRequest) Encode

type TransferNonFungibleUserWalletRequest

type TransferNonFungibleUserWalletRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	ToUserId     string `json:"toUserId,omitempty"`
	ToAddress    string `json:"toAddress,omitempty"`
}

func (TransferNonFungibleUserWalletRequest) Encode

type TransferRequest

type TransferRequest struct {
	*Request
	WalletSecret string `json:"walletSecret"`
	ToUserId     string `json:"toUserId,omitempty"`
	ToAddress    string `json:"toAddress,omitempty"`
	Amount       string `json:"amount"`
}

func (TransferRequest) Encode

func (r TransferRequest) Encode() string

type Tx

type Tx struct {
	Type  string  `json:"type"`
	Value TxValue `json:"value"`
}

type TxValue

type TxValue struct {
	Msg        []Msg       `json:"msg"`
	Fee        Fee         `json:"fee"`
	Memo       string      `json:"memo"`
	Signatures []Signature `json:"signatures"`
}

type UpdateFungibleInformationRequest

type UpdateFungibleInformationRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Name         string `json:"name,omitempty"`
	Meta         string `json:"meta,omitempty"`
}

func (UpdateFungibleInformationRequest) Encode

type UpdateFungibleList

type UpdateFungibleList struct {
	TokenType string `json:"tokenType"`
}

type UpdateList

type UpdateList struct {
	TokenType  string `json:"tokenType"`
	TokenIndex string `json:"tokenIndex"`
}

type UpdateMediaResourcesResponse added in v1.1.0

type UpdateMediaResourcesResponse struct {
	RequestId string `json:"requestId"`
}

type UpdateMultipleFungibleTokenIconsRequest

type UpdateMultipleFungibleTokenIconsRequest struct {
	*Request
	UpdateList []*UpdateFungibleList `json:"updateList"`
}

func (UpdateMultipleFungibleTokenIconsRequest) Encode

type UpdateMultipleFungibleTokenUpdateListRequest added in v1.1.0

type UpdateMultipleFungibleTokenUpdateListRequest struct {
	*Request
	UpdateList []*UpdateFungibleList `json:"updateList"`
}

func (UpdateMultipleFungibleTokenUpdateListRequest) Encode added in v1.1.0

type UpdateMultipleNonFungibleTokenIconsRequest

type UpdateMultipleNonFungibleTokenIconsRequest struct {
	*Request
	UpdateList []*UpdateList `json:"updateList"`
}

func (UpdateMultipleNonFungibleTokenIconsRequest) Encode

type UpdateMultipleNonFungibleTokenUpdateListRequest added in v1.1.0

type UpdateMultipleNonFungibleTokenUpdateListRequest struct {
	*Request
	UpdateList []*UpdateList `json:"updateList"`
}

func (UpdateMultipleNonFungibleTokenUpdateListRequest) Encode added in v1.1.0

type UpdateMultipleTokenIconsResponse

type UpdateMultipleTokenIconsResponse struct {
	RequestId string `json:"requestId"`
}

type UpdateNonFungibleInformationRequest

type UpdateNonFungibleInformationRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Name         string `json:"name"`
	Meta         string `json:"meta,omitempty"`
}

func (UpdateNonFungibleInformationRequest) Encode

type UpdateNonFungibleTokenTypeRequest

type UpdateNonFungibleTokenTypeRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Name         string `json:"name"`
	Meta         string `json:"meta"`
}

func (UpdateNonFungibleTokenTypeRequest) Encode

type UpdateServiceTokenInformationRequest

type UpdateServiceTokenInformationRequest struct {
	*Request
	OwnerAddress string `json:"ownerAddress"`
	OwnerSecret  string `json:"ownerSecret"`
	Name         string `json:"name,omitempty"`
	Meta         string `json:"meta,omitempty"`
}

func (UpdateServiceTokenInformationRequest) Encode

type UpdateThumbnailsResponse added in v1.1.0

type UpdateThumbnailsResponse struct {
	RequestId string `json:"requestId"`
}

type UserInformation

type UserInformation struct {
	UserID        string `json:"userId"`
	WalletAddress string `json:"walletAddress"`
}

type Wallet

type Wallet struct {
	Name      string `json:"name"`
	Address   string `json:"walletAddress"`
	Secret    string `json:"-"`
	CreatedAt int64  `json:"createdAt"`
}

func NewWallet

func NewWallet(address, secret string) *Wallet

type WalletInformation added in v1.1.0

type WalletInformation struct {
	Name          string `json:"name"`
	WalletAddress string `json:"walletAddress"`
	CreatedAt     int64  `json:"createdAt"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL