Documentation
¶
Index ¶
- type BurnTokenResult
- type CancelOrderResult
- type CreateOrderResult
- type DepositProposalResult
- type FreezeTokenResult
- type IssueTokenResult
- type IssueTokenValue
- type ListPairResult
- type MintTokenResult
- type SendTokenResult
- type SubmitProposalResult
- type TransactionClient
- type UnfreezeTokenResult
- type VoteProposalResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BurnTokenResult ¶
type BurnTokenResult struct {
tx.TxCommitResult
}
type CancelOrderResult ¶
type CancelOrderResult struct {
tx.TxCommitResult
}
type CreateOrderResult ¶
type CreateOrderResult struct {
tx.TxCommitResult
OrderId string
}
type DepositProposalResult ¶
type DepositProposalResult struct {
tx.TxCommitResult
}
type FreezeTokenResult ¶
type FreezeTokenResult struct {
tx.TxCommitResult
}
type IssueTokenResult ¶
type IssueTokenResult struct {
tx.TxCommitResult
Symbol string `json:"symbol"`
}
type IssueTokenValue ¶
type ListPairResult ¶
type ListPairResult struct {
tx.TxCommitResult
}
type MintTokenResult ¶
type MintTokenResult struct {
tx.TxCommitResult
}
type SendTokenResult ¶
type SendTokenResult struct {
tx.TxCommitResult
}
type SubmitProposalResult ¶
type SubmitProposalResult struct {
tx.TxCommitResult
ProposalId int64 `json:"proposal_id"`
}
type TransactionClient ¶
type TransactionClient interface {
CreateOrder(baseAssetSymbol, quoteAssetSymbol string, op int8, price, quantity int64, sync bool) (*CreateOrderResult, error)
CancelOrder(baseAssetSymbol, quoteAssetSymbol, refId string, sync bool) (*CancelOrderResult, error)
BurnToken(symbol string, amount int64, sync bool) (*BurnTokenResult, error)
ListPair(proposalId int64, baseAssetSymbol string, quoteAssetSymbol string, initPrice int64, sync bool) (*ListPairResult, error)
FreezeToken(symbol string, amount int64, sync bool) (*FreezeTokenResult, error)
UnfreezeToken(symbol string, amount int64, sync bool) (*UnfreezeTokenResult, error)
IssueToken(name, symbol string, supply int64, sync bool, mintable bool) (*IssueTokenResult, error)
SendToken(transfers []msg.Transfer, sync bool) (*SendTokenResult, error)
MintToken(symbol string, amount int64, sync bool) (*MintTokenResult, error)
SubmitListPairProposal(title string, param msg.ListTradingPairParams, initialDeposit int64, votingPeriod time.Duration, sync bool) (*SubmitProposalResult, error)
SubmitProposal(title string, description string, proposalType msg.ProposalKind, initialDeposit int64, votingPeriod time.Duration, sync bool) (*SubmitProposalResult, error)
DepositProposal(proposalID int64, amount int64, sync bool) (*DepositProposalResult, error)
VoteProposal(proposalID int64, option msg.VoteOption, sync bool) (*VoteProposalResult, error)
GetKeyManager() keys.KeyManager
}
func NewClient ¶
func NewClient(chainId string, keyManager keys.KeyManager, queryClient query.QueryClient, basicClient basic.BasicClient) TransactionClient
type UnfreezeTokenResult ¶
type UnfreezeTokenResult struct {
tx.TxCommitResult
}
type VoteProposalResult ¶
type VoteProposalResult struct {
tx.TxCommitResult
}
Click to show internal directories.
Click to hide internal directories.