transaction

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 IssueTokenValue struct {
	Name        string `json:"name"`
	Symbol      string `json:"symbol"`
	OrigSymbol  string `json:"original_symbol"`
	TotalSupply string `json:"total_supply"`
	Owner       string `json:"owner"`
}

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 WithMemo added in v1.0.4

func WithMemo(memo string) Option

func WithSource added in v1.0.4

func WithSource(source int64) Option

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
}

Jump to

Keyboard shortcuts

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