burrow: github.com/hyperledger/burrow/integration/rpctest Index | Files

package rpctest

import "github.com/hyperledger/burrow/integration/rpctest"


Package Files

helpers.go tx_expecter.go


const UpsieDownsieCallCount = 1 + (34 - 17) + 1 + (34 - 23)

Recursive call count for UpsieDownsie() function call from strange_loop.sol Equals initial call, then depth from 17 -> 34, one for the bounce, then depth from 34 -> 23, so... (I didn't say it had to make sense):


var GenesisDoc = integration.TestGenesisDoc(PrivateAccounts, 0)
var PrivateAccounts = integration.MakePrivateAccounts("mysecret", 10) // make keys

func CallContract Uses

func CallContract(cli rpctransact.TransactClient, inputAddress, contractAddress crypto.Address, data []byte) (*exec.TxExecution, error)

func CreateContract Uses

func CreateContract(cli rpctransact.TransactClient, inputAddress crypto.Address, bytecode []byte, metamap []MetadataMap) (*exec.TxExecution, error)

func DumpStorage Uses

func DumpStorage(t *testing.T, client infoclient.RPCClient, addr crypto.Address) *rpc.ResultDumpStorage

dump all storage for an account. currently unused

func GetAccount Uses

func GetAccount(t *testing.T, client infoclient.RPCClient, addr crypto.Address) *acm.Account

get the account

func GetSequence Uses

func GetSequence(t *testing.T, client infoclient.RPCClient, addr crypto.Address) uint64

get an account's sequence number

func GetStorage Uses

func GetStorage(t *testing.T, client infoclient.RPCClient, addr crypto.Address, key []byte) []byte

func MakeDefaultCallTx Uses

func MakeDefaultCallTx(t *testing.T, client infoclient.RPCClient, addr *crypto.Address, code []byte, amt, gasLim,
    fee uint64) *txs.Envelope

func NewExecutionEventsClient Uses

func NewExecutionEventsClient(t testing.TB, listenAddress string) rpcevents.ExecutionEventsClient

func NewQueryClient Uses

func NewQueryClient(t testing.TB, listenAddress string) rpcquery.QueryClient

func NewTransactClient Uses

func NewTransactClient(t testing.TB, listenAddress string) rpctransact.TransactClient


func UpdateName Uses

func UpdateName(cli rpctransact.TransactClient, inputAddress crypto.Address, name, data string,
    expiresIn uint64) (*exec.TxExecution, error)

func WaitNBlocks Uses

func WaitNBlocks(ecli rpcevents.ExecutionEventsClient, n int) (rerr error)

type MetadataMap Uses

type MetadataMap struct {
    DeployedCode []byte
    Abi          []byte

type TxExpecter Uses

type TxExpecter struct {
    // contains filtered or unexported fields

func ExpectTxs Uses

func ExpectTxs(emitter *event.Emitter, name string) *TxExpecter

Start listening for blocks and cross off any transactions that were expected. Expect can be called multiple times before a single call to AssertCommitted. TxExpecter is single-shot - create multiple TxExpecters if you want to call AssertCommitted multiple times.

func (*TxExpecter) AssertCommitted Uses

func (exp *TxExpecter) AssertCommitted(t testing.TB) *rpcevents.BlockRange

Assert that all expected transactions are committed. Will block until all expected transactions are committed. Returns the BlockRange over which the transactions were committed.

func (*TxExpecter) Expect Uses

func (exp *TxExpecter) Expect(txHash binary.HexBytes)

Expect a transaction to be committed

func (*TxExpecter) Pass Uses

func (exp *TxExpecter) Pass() *rpcevents.BlockRange

Package rpctest imports 22 packages (graph). Updated 2020-06-09. Refresh now. Tools for package owners.