Documentation ¶
Index ¶
- type AmmSwap
- type AmmSwapQuery
- type AmmSwapTx
- type Auth
- type AuthQuery
- type Backend
- type BackendQuery
- type Dex
- type DexQuery
- type DexTx
- type DistrTx
- type Distribution
- type Evm
- type EvmQuery
- type EvmTx
- type EvmUtils
- type Farm
- type FarmQuery
- type FarmTx
- type GovQuery
- type GovTx
- type Governance
- type Order
- type OrderQuery
- type OrderTx
- type Slashing
- type SlashingTx
- type Staking
- type StakingQuery
- type StakingTx
- type Tendermint
- type TendermintQuery
- type Token
- type TokenQuery
- type TokenTx
- type Web3Proxy
- type Web3ProxyQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmmSwap ¶
type AmmSwap interface { gosdktypes.Module AmmSwapTx AmmSwapQuery }
AmmSwap shows the expected behavior for inner ammswap client
type AmmSwapQuery ¶
type AmmSwapQuery interface { QuerySwapTokenPair(token string) (types.SwapTokenPair, error) QuerySwapTokenPairs() ([]types.SwapTokenPair, error) QueryBuyAmount(tokenToSellStr, tokenDenomToBuy string) (sdk.Dec, error) }
AmmSwapQuery shows the expected query behavior for inner ammswap client
type AmmSwapTx ¶
type AmmSwapTx interface { AddLiquidity(fromInfo keys.Info, passWd, minLiquidity, maxBaseAmount, quoteAmount, deadlineDuration, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) RemoveLiquidity(fromInfo keys.Info, passWd, liquidity, minBaseAmount, minQuoteAmount, deadlineDuration, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) CreateExchange(fromInfo keys.Info, passWd, baseToken, quoteToken, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) TokenSwap(fromInfo keys.Info, passWd, soldTokenAmount, minBoughtTokenAmount, recipient, deadlineDuration, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) }
AmmSwapTx shows the expected tx behavior for inner ammswap client
type Auth ¶
type Auth interface { gosdktypes.Module AuthQuery }
Auth shows the expected behavior for inner auth client
type Backend ¶
type Backend interface { gosdktypes.Module BackendQuery }
Backend shows the expected behavior for inner backend client
type BackendQuery ¶
type BackendQuery interface { QueryCandles(product string, granularity, size int) ([][]string, error) QueryTickers(product string, count ...int) ([]types.Ticker, error) QueryRecentTxRecord(product string, start, end, page, perPage int) ([]types.MatchResult, error) QueryOpenOrders(addrStr, product, side string, start, end, page, perPage int) ([]types.Order, error) QueryClosedOrders(addrStr, product, side string, start, end, page, perPage int) ([]types.Order, error) QueryDeals(addrStr, product, side string, start, end, page, perPage int) ([]types.Deal, error) QueryTransactions(addrStr string, typeCode, start, end, page, perPage int) ([]types.Transaction, error) }
BackendQuery shows the expected query behavior for inner backend client
type Dex ¶
type Dex interface { gosdktypes.Module DexTx DexQuery }
Dex shows the expected behavior for inner dex client
type DexQuery ¶
type DexQuery interface {
QueryProducts(ownerAddr string, page, perPage int) ([]types.TokenPair, error)
}
DexQuery shows the expected query behavior for inner dex client
type DexTx ¶
type DexTx interface { List(fromInfo keys.Info, passWd, baseAsset, quoteAsset, initPriceStr, memo string, accNum, seqNum uint64) ( sdk.TxResponse, error) Deposit(fromInfo keys.Info, passWd, product, amountStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) Withdraw(fromInfo keys.Info, passWd, product, amountStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) TransferOwnership(fromInfo keys.Info, passWd, product, toAddrStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) ConfirmOwnership(fromInfo keys.Info, passWd, product, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) RegisterDexOperator(fromInfo keys.Info, passWd, handleFeeAddrStr, website, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) EditDexOperator(fromInfo keys.Info, passWd, handleFeeAddrStr, website, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) }
DexTx shows the expected tx behavior for inner dex client
type DistrTx ¶
type DistrTx interface { SetWithdrawAddr(fromInfo keys.Info, passWd, withdrawAddrStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) WithdrawRewards(fromInfo keys.Info, passWd, valAddrStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) }
DistrTx shows the expected tx behavior for inner distribution client
type Distribution ¶
type Distribution interface { gosdktypes.Module DistrTx }
Distribution shows the expected behavior for inner distribution client
type Evm ¶
type Evm interface { gosdktypes.Module EvmTx EvmQuery EvmUtils // contains filtered or unexported methods }
Evm shows the expected behavior for inner farm client
type EvmQuery ¶
type EvmQuery interface { QueryCode(contractAddrStr string) (types.QueryResCode, error) QueryStorageAt(contractAddrStr, keyHexStr string) (types.QueryResStorage, error) }
EvmQuery shows the expected query behavior for inner evm client
type EvmTx ¶
type EvmTx interface { SendTx(fromInfo keys.Info, passWd, toAddrStr, amountStr, payloadStr, memo string, accNum, seqNum uint64) ( sdk.TxResponse, error) CreateContract(fromInfo keys.Info, passWd, amountStr, payloadStr, memo string, accNum, seqNum uint64) ( sdk.TxResponse, string, error) SendTxEthereum(privHex, toAddrStr, amountStr, payloadStr string, gasLimit, seqNum uint64) (sdk.TxResponse, error) CreateContractEthereum(privHex, amountStr, payloadStr string, gasLimit, seqNum uint64) (sdk.TxResponse, error) }
EvmTx shows the expected tx behavior for inner evm client
type EvmUtils ¶ added in v0.18.2
type EvmUtils interface {
GetTxHash(signedTx *ethcore.Transaction) (ethcmn.Hash, error)
}
type Farm ¶
type Farm interface { gosdktypes.Module FarmTx FarmQuery }
Farm shows the expected behavior for inner farm client
type FarmQuery ¶
type FarmQuery interface { QueryPools() ([]types.FarmPool, error) QueryPool(poolName string) (types.FarmPool, error) QueryAccount(accAddrStr string) ([]string, error) QueryAccountsLockedTo(poolName string) ([]sdk.AccAddress, error) QueryLockInfo(poolName, accAddrStr string) (types.LockInfo, error) QueryEarnings(poolName, accAddrStr string) (types.Earnings, error) }
FarmQuery shows the expected query behavior for inner farm client
type FarmTx ¶
type FarmTx interface { CreatePool(fromInfo keys.Info, passWd, poolName, minLockAmountStr, yieldToken, memo string, accNum, seqNum uint64) ( sdk.TxResponse, error) DestroyPool(fromInfo keys.Info, passWd, poolName, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) Provide(fromInfo keys.Info, passWd, poolName, amountStr, yieldPerBlockStr string, startHeightToYield int64, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) Lock(fromInfo keys.Info, passWd, poolName, amountStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) Unlock(fromInfo keys.Info, passWd, poolName, amountStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) Claim(fromInfo keys.Info, passWd, poolName, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) }
FarmTx shows the expected tx behavior for inner farm client
type GovQuery ¶
type GovQuery interface {
QueryProposals(depositorAddrStr, voterAddrStr, status string, numLimit uint64) ([]types.Proposal, error)
}
GovQuery shows the expected query behavior for inner governance client
type GovTx ¶
type GovTx interface { SubmitTextProposal(fromInfo keys.Info, passWd, proposalPath, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) SubmitParamsChangeProposal(fromInfo keys.Info, passWd, proposalPath, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) SubmitDelistProposal(fromInfo keys.Info, passWd, proposalPath, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) SubmitCommunityPoolSpendProposal(fromInfo keys.Info, passWd, proposalPath, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) SubmitManageWhiteListProposal(fromInfo keys.Info, passWd, proposalPath, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) Deposit(fromInfo keys.Info, passWd, depositCoinsStr, memo string, proposalID, accNum, seqNum uint64) (sdk.TxResponse, error) Vote(fromInfo keys.Info, passWd, voteOption, memo string, proposalID, accNum, seqNum uint64) (sdk.TxResponse, error) }
GovTx shows the expected tx behavior for inner governance client
type Governance ¶
type Governance interface { gosdktypes.Module GovTx GovQuery }
Governance shows the expected behavior for inner governance client
type Order ¶
type Order interface { gosdktypes.Module OrderTx OrderQuery }
Order shows the expected behavior for inner order client
type OrderQuery ¶
type OrderQuery interface { QueryDepthBook(product string) (types.BookRes, error) QueryOrderDetail(orderID string) (types.OrderDetail, error) }
OrderQuery shows the expected query behavior for inner order client
type OrderTx ¶
type OrderTx interface { NewOrders(fromInfo keys.Info, passWd, products, sides, prices, quantities, memo string, accNum, seqNum uint64) ( sdk.TxResponse, error) CancelOrders(fromInfo keys.Info, passWd, orderIDs, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) }
OrderTx shows the expected tx behavior for inner order client
type Slashing ¶
type Slashing interface { gosdktypes.Module SlashingTx }
Slashing shows the expected behavior for inner slashing client
type SlashingTx ¶
type SlashingTx interface {
Unjail(fromInfo keys.Info, passWd, memo string, accNum, seqNum uint64) (sdk.TxResponse, error)
}
SlashingTx shows the expected tx behavior for inner slashing client
type Staking ¶
type Staking interface { gosdktypes.Module StakingTx StakingQuery }
Staking shows the expected behavior for inner staking client
type StakingQuery ¶
type StakingQuery interface { QueryValidators() ([]types.Validator, error) QueryValidator(valAddrStr string) (types.Validator, error) QueryDelegator(delAddrStr string) (types.DelegatorResponse, error) }
StakingQuery shows the expected query behavior for inner staking client
type StakingTx ¶
type StakingTx interface { CreateValidator(fromInfo keys.Info, passWd, pubkeyStr, moniker, identity, website, details, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) DestroyValidator(fromInfo keys.Info, passWd string, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) EditValidator(fromInfo keys.Info, passWd, moniker, identity, website, details, memo string, accNum, seqNum uint64) ( sdk.TxResponse, error) Deposit(fromInfo keys.Info, passWd, coinsStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) Withdraw(fromInfo keys.Info, passWd, coinsStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) RegisterProxy(fromInfo keys.Info, passWd, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) UnregisterProxy(fromInfo keys.Info, passWd, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) BindProxy(fromInfo keys.Info, passWd, proxyAddrStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) UnbindProxy(fromInfo keys.Info, passWd, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) }
StakingTx shows the expected tx behavior for inner staking client
type Tendermint ¶
type Tendermint interface { gosdktypes.Module TendermintQuery }
Tendermint shows the expected behavior for inner tendermint client
type TendermintQuery ¶
type TendermintQuery interface { QueryBlock(height int64) (*types.Block, error) QueryBlockResults(height int64) (*types.ResultBlockResults, error) QueryCommitResult(height int64) (*types.ResultCommit, error) QueryValidatorsResult(height int64) (*types.ResultValidators, error) QueryTxResult(hashHexStr string, prove bool) (*types.ResultTx, error) // QueryTxsByEvents assumes the node to query a truth teller QueryTxsByEvents(eventsStr string, page, limit int) (*ctypes.ResultTxSearch, error) }
TendermintQuery shows the expected query behavior for inner tendermint client
type Token ¶
type Token interface { gosdktypes.Module TokenTx TokenQuery }
Token shows the expected behavior for inner token client
type TokenQuery ¶
TokenQuery shows the expected query behavior for inner token client
type TokenTx ¶
type TokenTx interface { Send(fromInfo keys.Info, passWd, toAddrStr, coinsStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) MultiSend(fromInfo keys.Info, passWd string, transfers []types.TransferUnit, memo string, accNum, seqNum uint64) ( sdk.TxResponse, error) Issue(fromInfo keys.Info, passWd, orgSymbol, wholeName, totalSupply, tokenDesc, memo string, mintable bool, accNum, seqNum uint64) (sdk.TxResponse, error) Mint(fromInfo keys.Info, passWd, coinsStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) Burn(fromInfo keys.Info, passWd, coinsStr, memo string, accNum, seqNum uint64) (sdk.TxResponse, error) Edit(fromInfo keys.Info, passWd, symbol, description, wholeName, memo string, isDescEdit, isWholeNameEdit bool, accNum, seqNum uint64) (sdk.TxResponse, error) }
TokenTx shows the expected tx behavior for inner token client
type Web3Proxy ¶
type Web3Proxy interface { Web3ProxyQuery }
Web3Proxy shows the expected behavior as Web3 without rest server routing