exposed

package
v0.0.0-...-025e626 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 AuthQuery

type AuthQuery interface {
	QueryAccount(accAddrStr string) (types.Account, error)
}

AuthQuery shows the expected query behavior for inner auth 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 {
	SendTxEthereum(priv *ecdsa.PrivateKey, nonce uint64, to ethcmn.Address, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte) (resp sdk.TxResponse, err error)
	CreateContractEthereum(priv *ecdsa.PrivateKey, nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte) (resp sdk.TxResponse, err error)
}

EvmTx shows the expected tx behavior for inner evm client

type EvmUtils

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 Feesplit

type Feesplit interface {
	gosdktypes.Module
	FeesplitTx
	FeesplitQuery
}

Feesplit shows the expected behavior for inner Feesplit client

type FeesplitQuery

type FeesplitQuery interface {

	// QueryFeesplits query all fee splits
	QueryFeesplits(pageReq *query.PageRequest) (*types.QueryFeeSplitsResponse, error)

	// QueryFeeSplit query a registered contract for fee distribution by hex address
	QueryFeeSplit(contractAddress string) (*types.QueryFeeSplitResponse, error)

	// QueryParams query the current feesplit module parameters
	QueryParams() (*types.QueryParamsResponse, error)

	// QueryDeployerFeeSplits query all contracts that a given deployer has registered for fee distribution
	QueryDeployerFeeSplits(deployerAddress string, pageReq *query.PageRequest) (*types.QueryDeployerFeeSplitsResponse, error)

	// QueryWithdrawerFeeSplits query all contracts that have been registered for fee distribution with a given withdrawer address
	QueryWithdrawerFeeSplits(withdrawerAddress string, pageReq *query.PageRequest) (*types.QueryWithdrawerFeeSplitsResponse, error)
}

FeesplitQuery shows the expected query behavior for inner Feesplit client

type FeesplitTx

type FeesplitTx interface {
	// RegisterFeeSplit register a contract for fee distribution.
	// **NOTE** Please ensure, that the deployer of the contract (or the factory that deployes the contract)
	// is an account that is owned by your project
	// to avoid that an individual deployer who leaves your project becomes malicious.
	RegisterFeeSplit(fromInfo keys.Info, passWd string, accNum, seqNum uint64, memo string, contractAddress string, nonces []uint64, withdrawAddress string) (*sdk.TxResponse, error)

	// CancelFeeSplit cancel a contract from fee distribution.
	// The deployer will no longer receive fees from users interacting with the contract.
	// Only the contract deployer can cancel a contract.
	CancelFeeSplit(fromInfo keys.Info, passWd string, accNum, seqNum uint64, memo string, contractAddress string) (*sdk.TxResponse, error)

	// UpdateFeeSplit update withdraw address for a contract registered for fee distribution.
	// Only the contract deployer can update the withdraw address.
	UpdateFeeSplit(fromInfo keys.Info, passWd string, accNum, seqNum uint64, memo string, contractAddress string, withdrawAddress string) (*sdk.TxResponse, error)
}

FeesplitTx shows the expected tx behavior for inner Feesplit 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 Ibc

type Ibc interface {
	gosdktypes.Module
	IbcTx
	IbcQuery
}

Ibc shows the expected behavior for inner ibc client

type IbcQuery

type IbcQuery interface {

	// QueryDenomTrace query a a denomination trace from a given hash.
	QueryDenomTrace(hash string) (*ibcTypes.QueryDenomTraceResponse, error)

	// QueryDenomTraces query all the denomination trace infos.
	QueryDenomTraces(page *query.PageRequest) (*ibcTypes.QueryDenomTracesResponse, error)

	// QueryIbcParams ibc-transfer parameter querying.
	QueryIbcParams() (*ibcTypes.QueryParamsResponse, error)

	// QueryEscrowAddress ibc-transfer parameter querying.
	QueryEscrowAddress(portID, channelID string) sdk.AccAddress

	// QueryChannels query channels
	QueryChannels() (*chantypes.QueryChannelsResponse, error)

	// QueryTx query a tx
	QueryTx(hash string) (*ctypes.ResultTx, error)

	// QueryTxs
	QueryTxs(page, limit int, events []string) ([]*ctypes.ResultTx, error)

	// QueryHeaderAtHeight
	QueryHeaderAtHeight(height int64) (ibcexported.Header, error)

	// QueryChannel
	QueryChannel(req *chantypes.QueryChannelRequest) (*chantypes.QueryChannelResponse, error)

	// ConnectionChannels queries all the channels associated with a connection
	// end.
	ConnectionChannels(req *chantypes.QueryConnectionChannelsRequest) (*chantypes.QueryConnectionChannelsResponse, error)
	// ChannelClientState queries for the client state for the channel associated
	// with the provided channel identifiers.
	ChannelClientState(req *chantypes.QueryChannelClientStateRequest) (*chantypes.QueryChannelClientStateResponse, error)
	// ChannelConsensusState queries for the consensus state for the channel
	// associated with the provided channel identifiers.
	ChannelConsensusState(req *chantypes.QueryChannelConsensusStateRequest) (*chantypes.QueryChannelConsensusStateResponse, error)
	// PacketCommitment queries a stored packet commitment hash.
	PacketCommitment(req *chantypes.QueryPacketCommitmentRequest) (*chantypes.QueryPacketCommitmentResponse, error)
	// PacketCommitments returns all the packet commitments hashes associated
	// with a channel.
	PacketCommitments(req *chantypes.QueryPacketCommitmentsRequest) (*chantypes.QueryPacketCommitmentsResponse, error)
	// PacketReceipt queries if a given packet sequence has been received on the
	// queried chain
	PacketReceipt(req *chantypes.QueryPacketReceiptRequest) (*chantypes.QueryPacketReceiptResponse, error)
	// PacketAcknowledgement queries a stored packet acknowledgement hash.
	PacketAcknowledgement(req *chantypes.QueryPacketAcknowledgementRequest) (*chantypes.QueryPacketAcknowledgementResponse, error)
	// PacketAcknowledgements returns all the packet acknowledgements associated
	// with a channel.
	PacketAcknowledgements(req *chantypes.QueryPacketAcknowledgementsRequest) (*chantypes.QueryPacketAcknowledgementsResponse, error)
	// UnreceivedPackets returns all the unreceived IBC packets associated with a
	// channel and sequences.
	UnreceivedPackets(req *chantypes.QueryUnreceivedPacketsRequest) (*chantypes.QueryUnreceivedPacketsResponse, error)
	// UnreceivedAcks returns all the unreceived IBC acknowledgements associated
	// with a channel and sequences.
	UnreceivedAcks(req *chantypes.QueryUnreceivedAcksRequest) (*chantypes.QueryUnreceivedAcksResponse, error)
	// NextSequenceReceive returns the next receive sequence for a given channel.
	NextSequenceReceive(req *chantypes.QueryNextSequenceReceiveRequest) (*chantypes.QueryNextSequenceReceiveResponse, error)
}

IbcQuery shows the ibc query info

type IbcTx

type IbcTx interface {

	// Transfer transfer token to destination chain
	Transfer(priKey tmcrypto.PrivKey, srcChannel string, receiver string, amount string, fee sdk.CoinAdapters, memo string, timeoutHeight client_types.Height) (resp sdk.TxResponse, err error)
}

IbcTx send ibc tx

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)
	AddShares(fromInfo keys.Info, passWd string, valAddrsStr []string, 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)
	QueryStatus() (*ctypes.ResultStatus, 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

type TokenQuery interface {
	QueryTokenInfo(ownerAddr, symbol string) ([]types.TokenResp, error)
}

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

type Web3ProxyQuery

type Web3ProxyQuery interface {
	BlockNumberProxy() (hexutil.Uint64, error)
	EstimateGasProxy(args rpctypes.CallArgs) (hexutil.Uint64, error)
}

Web3Query shows the expected behavior as web3 query request

Jump to

Keyboard shortcuts

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