Documentation ¶
Index ¶
- Variables
- type BurnTokenResult
- type CancelOrderResult
- type ClaimHTLTResult
- type CreateOrderResult
- type DepositHTLTResult
- type DepositProposalResult
- type FreezeTokenResult
- type HTLTResult
- type IssueMiniTokenResult
- type IssueMiniTokenValue
- type IssueTinyTokenResult
- type IssueTinyTokenValue
- type IssueTokenResult
- type IssueTokenValue
- type ListMiniPairResult
- type ListPairResult
- type MintTokenResult
- type Option
- type RefundHTLTResult
- type SendTokenResult
- type SetAccountFlagsResult
- type SetUriResult
- type SubmitProposalResult
- type TimeLockResult
- type TimeReLockResult
- type TimeUnLockResult
- type TransactionClient
- type TransferTokenOwnershipResult
- type UnfreezeTokenResult
- type VoteProposalResult
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WithSource = tx.WithSource WithMemo = tx.WithMemo WithAcNumAndSequence = tx.WithAcNumAndSequence )
Functions ¶
This section is empty.
Types ¶
type BurnTokenResult ¶
type BurnTokenResult struct {
tx.TxCommitResult
}
type CancelOrderResult ¶
type CancelOrderResult struct {
tx.TxCommitResult
}
type ClaimHTLTResult ¶
type ClaimHTLTResult struct {
tx.TxCommitResult
}
type CreateOrderResult ¶
type CreateOrderResult struct { tx.TxCommitResult OrderId string }
type DepositHTLTResult ¶
type DepositHTLTResult struct {
tx.TxCommitResult
}
type DepositProposalResult ¶
type DepositProposalResult struct {
tx.TxCommitResult
}
type FreezeTokenResult ¶
type FreezeTokenResult struct {
tx.TxCommitResult
}
type HTLTResult ¶
type HTLTResult struct {
tx.TxCommitResult
}
type IssueMiniTokenResult ¶
type IssueMiniTokenResult struct { tx.TxCommitResult Symbol string `json:"symbol"` }
type IssueMiniTokenValue ¶
type IssueTinyTokenResult ¶
type IssueTinyTokenResult struct { tx.TxCommitResult Symbol string `json:"symbol"` }
type IssueTinyTokenValue ¶
type IssueTokenResult ¶
type IssueTokenResult struct { tx.TxCommitResult Symbol string `json:"symbol"` }
type IssueTokenValue ¶
type ListMiniPairResult ¶
type ListMiniPairResult struct {
tx.TxCommitResult
}
type ListPairResult ¶
type ListPairResult struct {
tx.TxCommitResult
}
type MintTokenResult ¶
type MintTokenResult struct {
tx.TxCommitResult
}
type RefundHTLTResult ¶
type RefundHTLTResult struct {
tx.TxCommitResult
}
type SendTokenResult ¶
type SendTokenResult struct {
tx.TxCommitResult
}
type SetAccountFlagsResult ¶
type SetAccountFlagsResult struct {
tx.TxCommitResult
}
type SetUriResult ¶
type SetUriResult struct {
tx.TxCommitResult
}
type SubmitProposalResult ¶
type SubmitProposalResult struct { tx.TxCommitResult ProposalId int64 `json:"proposal_id"` }
type TimeLockResult ¶
type TimeLockResult struct { tx.TxCommitResult LockId int64 `json:"lock_id"` }
type TimeReLockResult ¶
type TimeReLockResult struct { tx.TxCommitResult LockId int64 `json:"lock_id"` }
type TimeUnLockResult ¶
type TimeUnLockResult struct { tx.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 []msg.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 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) 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 {
tx.TxCommitResult
}
type UnfreezeTokenResult ¶
type UnfreezeTokenResult struct {
tx.TxCommitResult
}
type VoteProposalResult ¶
type VoteProposalResult struct {
tx.TxCommitResult
}
Source Files ¶
- burn_token.go
- cancel_order.go
- create_order.go
- deposit_proposal.go
- freeze_token.go
- htlc.go
- issue_mini_token.go
- issue_tiny_token.go
- issue_token.go
- list_mini_pair.go
- list_pair.go
- mint_token.go
- send_token.go
- set_account_flags.go
- set_uri.go
- submit_proposal.go
- time_lock.go
- transaction.go
- transfer_token_ownership.go
- unfreeze_token.go
- vote_proposal.go
Click to show internal directories.
Click to hide internal directories.