Documentation ¶
Index ¶
- type Fixtures
- func (f *Fixtures) AddGenesisAccount(address sdk.AccAddress, coins sdk.Coins, flags ...string)
- func (f *Fixtures) CLIConfig(key, value string, flags ...string)
- func (f *Fixtures) Cleanup(dirs ...string)
- func (f *Fixtures) CollectGenTxs(flags ...string)
- func (f *Fixtures) Flags() string
- func (f *Fixtures) GDInit(moniker string, flags ...string)
- func (f *Fixtures) GDStart(flags ...string) *tests.Process
- func (f *Fixtures) GenTx(name string, flags ...string)
- func (f *Fixtures) KeyAddress(name string) sdk.AccAddress
- func (f *Fixtures) KeysAdd(name string, flags ...string)
- func (f *Fixtures) KeysDelete(name string, flags ...string)
- func (f *Fixtures) KeysShow(name string, flags ...string) keys.KeyOutput
- func (f *Fixtures) QueryAccount(address sdk.AccAddress, flags ...string) auth.BaseAccount
- func (f *Fixtures) QueryGovDeposit(proposalID int, depositor sdk.AccAddress, flags ...string) gov.Deposit
- func (f *Fixtures) QueryGovDeposits(propsalID int, flags ...string) []gov.Deposit
- func (f *Fixtures) QueryGovParamDeposit() gov.DepositParams
- func (f *Fixtures) QueryGovParamTallying() gov.TallyParams
- func (f *Fixtures) QueryGovParamVoting() gov.VotingParams
- func (f *Fixtures) QueryGovProposal(proposalID int, flags ...string) gov.Proposal
- func (f *Fixtures) QueryGovProposals(flags ...string) gov.Proposals
- func (f *Fixtures) QueryGovVote(proposalID int, voter sdk.AccAddress, flags ...string) gov.Vote
- func (f *Fixtures) QueryGovVotes(proposalID int, flags ...string) []gov.Vote
- func (f *Fixtures) QuerySlashingParams() slashing.Params
- func (f *Fixtures) QueryStakingDelegationsTo(valAddr sdk.ValAddress, flags ...string) []staking.Delegation
- func (f *Fixtures) QueryStakingParameters(flags ...string) staking.Params
- func (f *Fixtures) QueryStakingPool(flags ...string) staking.Pool
- func (f *Fixtures) QueryStakingUnbondingDelegationsFrom(valAddr sdk.ValAddress, flags ...string) []staking.UnbondingDelegation
- func (f *Fixtures) QueryStakingValidator(valAddr sdk.ValAddress, flags ...string) staking.Validator
- func (f *Fixtures) QueryTxs(page, limit int, tags ...string) []tx.Info
- func (f *Fixtures) QueryTxsInvalid(expectedErr error, page, limit int, tags ...string)
- func (f *Fixtures) TxBroadcast(fileName string, flags ...string) (bool, string, string)
- func (f *Fixtures) TxGovDeposit(proposalID int, from string, amount sdk.Coin, flags ...string) (bool, string, string)
- func (f *Fixtures) TxGovSubmitProposal(from, typ, title, description string, deposit sdk.Coin, flags ...string) (bool, string, string)
- func (f *Fixtures) TxGovVote(proposalID int, option gov.VoteOption, from string, flags ...string) (bool, string, string)
- func (f *Fixtures) TxMultisign(fileName, name string, signaturesFiles []string, flags ...string) (bool, string, string)
- func (f *Fixtures) TxSend(from string, to sdk.AccAddress, amount sdk.Coin, flags ...string) (bool, string, string)
- func (f *Fixtures) TxSign(signer, fileName string, flags ...string) (bool, string, string)
- func (f *Fixtures) TxStakingCreateValidator(from, consPubKey string, amount sdk.Coin, flags ...string) (bool, string, string)
- func (f *Fixtures) TxStakingUnbond(from, shares string, validator sdk.ValAddress, flags ...string) bool
- func (f *Fixtures) UnsafeResetAll(flags ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fixtures ¶
type Fixtures struct { ChainID string RPCAddr string Port string GDHome string GCLIHome string P2PAddr string T *testing.T }
Fixtures is used to setup the testing environment
func InitFixtures ¶
InitFixtures is called at the beginning of a test and initializes a chain with 1 validator
func NewFixtures ¶
NewFixtures creates a new instance of Fixtures with many vars set
func (*Fixtures) AddGenesisAccount ¶
AddGenesisAccount is gaiad add-genesis-account
func (*Fixtures) Cleanup ¶
Cleanup is meant to be run at the end of a test to clean up an remaining test state
func (*Fixtures) CollectGenTxs ¶
CollectGenTxs is gaiad collect-gentxs
func (*Fixtures) GDInit ¶
GDInit is gaiad init NOTE: GDInit sets the ChainID for the Fixtures instance
func (*Fixtures) GDStart ¶
GDStart runs gaiad start with the appropriate flags and returns a process
func (*Fixtures) KeyAddress ¶
func (f *Fixtures) KeyAddress(name string) sdk.AccAddress
KeyAddress returns the SDK account address from the key
func (*Fixtures) KeysDelete ¶
KeysDelete is gaiacli keys delete
func (*Fixtures) QueryAccount ¶
func (f *Fixtures) QueryAccount(address sdk.AccAddress, flags ...string) auth.BaseAccount
QueryAccount is gaiacli query account
func (*Fixtures) QueryGovDeposit ¶
func (f *Fixtures) QueryGovDeposit(proposalID int, depositor sdk.AccAddress, flags ...string) gov.Deposit
QueryGovDeposit is gaiacli query gov deposit
func (*Fixtures) QueryGovDeposits ¶
QueryGovDeposits is gaiacli query gov deposits
func (*Fixtures) QueryGovParamDeposit ¶
func (f *Fixtures) QueryGovParamDeposit() gov.DepositParams
QueryGovParamDeposit is gaiacli query gov param deposit
func (*Fixtures) QueryGovParamTallying ¶
func (f *Fixtures) QueryGovParamTallying() gov.TallyParams
QueryGovParamTallying is gaiacli query gov param tallying
func (*Fixtures) QueryGovParamVoting ¶
func (f *Fixtures) QueryGovParamVoting() gov.VotingParams
QueryGovParamVoting is gaiacli query gov param voting
func (*Fixtures) QueryGovProposal ¶
QueryGovProposal is gaiacli query gov proposal
func (*Fixtures) QueryGovProposals ¶
QueryGovProposals is gaiacli query gov proposals
func (*Fixtures) QueryGovVote ¶
QueryGovVote is gaiacli query gov vote
func (*Fixtures) QueryGovVotes ¶
QueryGovVotes is gaiacli query gov votes
func (*Fixtures) QuerySlashingParams ¶
QuerySlashingParams is gaiacli query slashing params
func (*Fixtures) QueryStakingDelegationsTo ¶
func (f *Fixtures) QueryStakingDelegationsTo(valAddr sdk.ValAddress, flags ...string) []staking.Delegation
QueryStakingDelegationsTo is gaiacli query staking delegations-to
func (*Fixtures) QueryStakingParameters ¶
QueryStakingParameters is gaiacli query staking parameters
func (*Fixtures) QueryStakingPool ¶
QueryStakingPool is gaiacli query staking pool
func (*Fixtures) QueryStakingUnbondingDelegationsFrom ¶
func (f *Fixtures) QueryStakingUnbondingDelegationsFrom(valAddr sdk.ValAddress, flags ...string) []staking.UnbondingDelegation
QueryStakingUnbondingDelegationsFrom is gaiacli query staking unbonding-delegations-from
func (*Fixtures) QueryStakingValidator ¶
QueryStakingValidator is gaiacli query staking validator
func (*Fixtures) QueryTxsInvalid ¶
QueryTxsInvalid query txs with wrong parameters and compare expected error
func (*Fixtures) TxBroadcast ¶
TxBroadcast is gaiacli tx sign
func (*Fixtures) TxGovDeposit ¶
func (f *Fixtures) TxGovDeposit(proposalID int, from string, amount sdk.Coin, flags ...string) (bool, string, string)
TxGovDeposit is gaiacli tx gov deposit
func (*Fixtures) TxGovSubmitProposal ¶
func (f *Fixtures) TxGovSubmitProposal(from, typ, title, description string, deposit sdk.Coin, flags ...string) (bool, string, string)
TxGovSubmitProposal is gaiacli tx gov submit-proposal
func (*Fixtures) TxGovVote ¶
func (f *Fixtures) TxGovVote(proposalID int, option gov.VoteOption, from string, flags ...string) (bool, string, string)
TxGovVote is gaiacli tx gov vote
func (*Fixtures) TxMultisign ¶
func (f *Fixtures) TxMultisign(fileName, name string, signaturesFiles []string, flags ...string) (bool, string, string)
TxMultisign is gaiacli tx multisign
func (*Fixtures) TxSend ¶
func (f *Fixtures) TxSend(from string, to sdk.AccAddress, amount sdk.Coin, flags ...string) (bool, string, string)
TxSend is gaiacli tx send
func (*Fixtures) TxStakingCreateValidator ¶
func (f *Fixtures) TxStakingCreateValidator(from, consPubKey string, amount sdk.Coin, flags ...string) (bool, string, string)
TxStakingCreateValidator is gaiacli tx staking create-validator
func (*Fixtures) TxStakingUnbond ¶
func (f *Fixtures) TxStakingUnbond(from, shares string, validator sdk.ValAddress, flags ...string) bool
TxStakingUnbond is gaiacli tx staking unbond
func (*Fixtures) UnsafeResetAll ¶
UnsafeResetAll is gaiad unsafe-reset-all