txserver

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

View Source
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

Jump to

Keyboard shortcuts

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