Documentation
¶
Index ¶
- Constants
- func GetEventAttribute(resp *sdktypes.TxResponse, eventType, attributeKey string) (string, error)
- type PellTxServer
- func (zts PellTxServer) BroadcastTx(account string, msg sdktypes.Msg) (*sdktypes.TxResponse, error)
- func (ts *PellTxServer) DeployPellSystemContract(admin string) (*sdktypes.TxResponse, error)
- func (zts PellTxServer) EnableVerificationFlags(account string) error
- func (zts PellTxServer) FundEmissionsPool(account string, amount *big.Int) error
- func (zts PellTxServer) GetAccountAddress(index int) string
- func (zts PellTxServer) GetAccountAddressFromName(name string) (string, error)
- func (zts PellTxServer) GetAccountMnemonic(index int) string
- func (zts PellTxServer) GetAccountName(index int) string
- func (zts PellTxServer) GetAllAccountAddress() []string
- func (zts PellTxServer) SendPellFromAdmin(to sdktypes.AccAddress, amount *big.Int) error
Constants ¶
const EmissionsPoolAddress = "pell1w43fn2ze2wyhu5hfmegr6vp52c3dgn0s9yy4j2"
EmissionsPoolAddress is the address of the emissions pool This address is constant for all networks because it is derived from emissions name
Variables ¶
This section is empty.
Functions ¶
func GetEventAttribute ¶
func GetEventAttribute(resp *sdktypes.TxResponse, eventType, attributeKey string) (string, error)
Types ¶
type PellTxServer ¶
type PellTxServer struct {
// contains filtered or unexported fields
}
PellTxServer is a PellChain tx server for E2E test
func NewTxServer ¶
func NewTxServer(rpcAddr string, names []string, mnemonics []string, chainID string) (PellTxServer, error)
NewPellTxServer returns a new TxServer with provided account
func (PellTxServer) BroadcastTx ¶
func (zts PellTxServer) BroadcastTx(account string, msg sdktypes.Msg) (*sdktypes.TxResponse, error)
BroadcastTx broadcasts a tx to PellChain with the provided msg from the account and waiting for blockTime for tx to be included in the block
func (*PellTxServer) DeployPellSystemContract ¶
func (ts *PellTxServer) DeployPellSystemContract(admin string) (*sdktypes.TxResponse, error)
func (PellTxServer) EnableVerificationFlags ¶
func (zts PellTxServer) EnableVerificationFlags(account string) error
EnableVerificationFlags enables the verification flags for the lightclient module
func (PellTxServer) FundEmissionsPool ¶
func (zts PellTxServer) FundEmissionsPool(account string, amount *big.Int) error
FundEmissionsPool funds the emissions pool with the given amount
func (PellTxServer) GetAccountAddress ¶
func (zts PellTxServer) GetAccountAddress(index int) string
GetAccountAddress returns the account address from the given index returns empty string if index is out of bound, error should be handled by caller
func (PellTxServer) GetAccountAddressFromName ¶
func (zts PellTxServer) GetAccountAddressFromName(name string) (string, error)
GetAccountAddressFromName returns the account address from the given name
func (PellTxServer) GetAccountMnemonic ¶
func (zts PellTxServer) GetAccountMnemonic(index int) string
GetAccountMnemonic returns the account name from the given index returns empty string if index is out of bound, error should be handled by caller
func (PellTxServer) GetAccountName ¶
func (zts PellTxServer) GetAccountName(index int) string
GetAccountName returns the account name from the given index returns empty string if index is out of bound, error should be handled by caller
func (PellTxServer) GetAllAccountAddress ¶
func (zts PellTxServer) GetAllAccountAddress() []string
GetAllAccountAddress returns all account addresses
func (PellTxServer) SendPellFromAdmin ¶
func (zts PellTxServer) SendPellFromAdmin(to sdktypes.AccAddress, amount *big.Int) error