transaction

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 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 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
}

Jump to

Keyboard shortcuts

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