transaction

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WithSource           = txtype.WithSource
	WithMemo             = txtype.WithMemo
	WithAcNumAndSequence = txtype.WithAcNumAndSequence
)

Functions

This section is empty.

Types

type BurnTokenResult

type BurnTokenResult struct {
	txtype.TxCommitResult
}

type CancelOrderResult

type CancelOrderResult struct {
	txtype.TxCommitResult
}

type ClaimHTLTResult

type ClaimHTLTResult struct {
	txtype.TxCommitResult
}

type CreateOrderResult

type CreateOrderResult struct {
	txtype.TxCommitResult
	OrderId string
}

type DepositHTLTResult

type DepositHTLTResult struct {
	txtype.TxCommitResult
}

type DepositProposalResult

type DepositProposalResult struct {
	txtype.TxCommitResult
}

type FreezeTokenResult

type FreezeTokenResult struct {
	txtype.TxCommitResult
}

type HTLTResult

type HTLTResult struct {
	txtype.TxCommitResult
}

type IssueMiniTokenResult

type IssueMiniTokenResult struct {
	txtype.TxCommitResult
	Symbol string `json:"symbol"`
}

type IssueMiniTokenValue

type IssueMiniTokenValue struct {
	Name        string `json:"name"`
	Symbol      string `json:"symbol"`
	OrigSymbol  string `json:"original_symbol"`
	TotalSupply string `json:"total_supply"`
	TokenURI    string `json:"token_uri"`
	Owner       string `json:"owner"`
}

type IssueTinyTokenResult

type IssueTinyTokenResult struct {
	txtype.TxCommitResult
	Symbol string `json:"symbol"`
}

type IssueTinyTokenValue

type IssueTinyTokenValue struct {
	Name        string `json:"name"`
	Symbol      string `json:"symbol"`
	OrigSymbol  string `json:"original_symbol"`
	TotalSupply string `json:"total_supply"`
	TokenURI    string `json:"token_uri"`
	Owner       string `json:"owner"`
}

type IssueTokenResult

type IssueTokenResult struct {
	txtype.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 ListMiniPairResult

type ListMiniPairResult struct {
	txtype.TxCommitResult
}

type ListPairResult

type ListPairResult struct {
	txtype.TxCommitResult
}

type MintTokenResult

type MintTokenResult struct {
	txtype.TxCommitResult
}

type Option

type Option = txtype.Option

type RefundHTLTResult

type RefundHTLTResult struct {
	txtype.TxCommitResult
}

type SendTokenResult

type SendTokenResult struct {
	txtype.TxCommitResult
}

type SetAccountFlagsResult

type SetAccountFlagsResult struct {
	txtype.TxCommitResult
}

type SetUriResult

type SetUriResult struct {
	txtype.TxCommitResult
}

type SubmitProposalResult

type SubmitProposalResult struct {
	txtype.TxCommitResult
	ProposalId int64 `json:"proposal_id"`
}

type TimeLockResult

type TimeLockResult struct {
	txtype.TxCommitResult
	LockId int64 `json:"lock_id"`
}

type TimeReLockResult

type TimeReLockResult struct {
	txtype.TxCommitResult
	LockId int64 `json:"lock_id"`
}

type TimeUnLockResult

type TimeUnLockResult struct {
	txtype.TxCommitResult
	LockId int64 `json:"lock_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 []msgtype.Transfer, sync bool, options ...Option) (*SendTokenResult, error)
	MintToken(symbol string, amount int64, sync bool, options ...Option) (*MintTokenResult, error)
	TransferTokenOwnership(symbol string, newOwner types.AccAddress, sync bool, options ...Option) (*TransferTokenOwnershipResult, error)
	TimeLock(description string, amount types.Coins, lockTime int64, sync bool, options ...Option) (*TimeLockResult, error)
	TimeUnLock(id int64, sync bool, options ...Option) (*TimeUnLockResult, error)
	TimeReLock(id int64, description string, amount types.Coins, lockTime int64, sync bool, options ...Option) (*TimeReLockResult, error)
	SetAccountFlags(flags uint64, sync bool, options ...Option) (*SetAccountFlagsResult, error)
	AddAccountFlags(flagOptions []types.FlagOption, sync bool, options ...Option) (*SetAccountFlagsResult, error)
	HTLT(recipient types.AccAddress, recipientOtherChain, senderOtherChain string, randomNumberHash []byte, timestamp int64, amount types.Coins, expectedIncome string, heightSpan int64, crossChain bool, sync bool, options ...Option) (*HTLTResult, error)
	DepositHTLT(swapID []byte, amount types.Coins, sync bool, options ...Option) (*DepositHTLTResult, error)
	ClaimHTLT(swapID []byte, randomNumber []byte, sync bool, options ...Option) (*ClaimHTLTResult, error)
	RefundHTLT(swapID []byte, sync bool, options ...Option) (*RefundHTLTResult, error)

	SubmitListPairProposal(title string, param msgtype.ListTradingPairParams, initialDeposit int64, votingPeriod time.Duration, sync bool, options ...Option) (*SubmitProposalResult, error)
	SubmitProposal(title string, description string, proposalType msgtype.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 msgtype.VoteOption, sync bool, options ...Option) (*VoteProposalResult, error)

	IssueMiniToken(name, symbol string, supply int64, sync bool, mintable bool, tokenURI string, options ...Option) (*IssueMiniTokenResult, error)
	IssueTinyToken(name, symbol string, supply int64, sync bool, mintable bool, tokenURI string, options ...Option) (*IssueTinyTokenResult, error)
	ListMiniPair(baseAssetSymbol string, quoteAssetSymbol string, initPrice int64, sync bool, options ...Option) (*ListMiniPairResult, error)
	SetURI(symbol, tokenURI string, sync bool, options ...Option) (*SetUriResult, error)

	GetKeyManager() keys.KeyManager
}

func NewClient

func NewClient(chainId string, keyManager keys.KeyManager, queryClient query.QueryClient, basicClient basic.BasicClient) TransactionClient

type TransferTokenOwnershipResult

type TransferTokenOwnershipResult struct {
	txtype.TxCommitResult
}

type UnfreezeTokenResult

type UnfreezeTokenResult struct {
	txtype.TxCommitResult
}

type VoteProposalResult

type VoteProposalResult struct {
	txtype.TxCommitResult
}

Jump to

Keyboard shortcuts

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