Documentation
¶
Index ¶
- type BurnTokenResult
- type CancelOrderResult
- type CreateOrderResult
- type DepositProposalResult
- type FreezeTokenResult
- type IssueTokenResult
- type IssueTokenValue
- type ListPairResult
- type MintTokenResult
- type Option
- 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 Option ¶ added in v1.0.4
type Option func(*tx.StdSignMsg) *tx.StdSignMsg
func WithSource ¶ added in v1.0.4
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, options ...Option) (*CreateOrderResult, error) CancelOrder(baseAssetSymbol, quoteAssetSymbol, refId string, sync bool, options ...Option) (*CancelOrderResult, error) BurnToken(symbol string, amount int64, sync bool, options ...Option) (*BurnTokenResult, error) ListPair(proposalId int64, baseAssetSymbol string, quoteAssetSymbol string, initPrice int64, sync bool, options ...Option) (*ListPairResult, error) FreezeToken(symbol string, amount int64, sync bool, options ...Option) (*FreezeTokenResult, error) UnfreezeToken(symbol string, amount int64, sync bool, options ...Option) (*UnfreezeTokenResult, error) IssueToken(name, symbol string, supply int64, sync bool, mintable bool, options ...Option) (*IssueTokenResult, error) SendToken(transfers []msg.Transfer, sync bool, options ...Option) (*SendTokenResult, error) MintToken(symbol string, amount int64, sync bool, options ...Option) (*MintTokenResult, error) SubmitListPairProposal(title string, param msg.ListTradingPairParams, initialDeposit int64, votingPeriod time.Duration, sync bool, options ...Option) (*SubmitProposalResult, error) SubmitProposal(title string, description string, proposalType msg.ProposalKind, initialDeposit int64, votingPeriod time.Duration, sync bool, options ...Option) (*SubmitProposalResult, error) DepositProposal(proposalID int64, amount int64, sync bool, options ...Option) (*DepositProposalResult, error) VoteProposal(proposalID int64, option msg.VoteOption, sync bool, options ...Option) (*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.