rpctest

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var Bytecode_strange_loop = hex.MustDecodeString("60606040526017600055602260015560116002556001600360006101000a81548160ff021916908315150217905550341561003957600080fd5b610369806100486000396000f300606060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063ebb384dd14610046575b600080fd5b341561005157600080fd5b61005961006f565b6040518082815260200191505060405180910390f35b60006002549050600360009054906101000a900460ff161561021f57600154600254121561017e576002600081548092919060010191905055506002547f55707369652100000000000000000000000000000000000000000000000000007f3ff0b1eac80ecf8e93d1a2d7982a9230f8ea7693439fd548687b08a5e292b09760405160405180910390a360025490503073ffffffffffffffffffffffffffffffffffffffff1663ebb384dd6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561016157600080fd5b5af1151561016e57600080fd5b505050604051805190505061021a565b6000600360006101000a81548160ff02191690831515021790555060025490503073ffffffffffffffffffffffffffffffffffffffff1663ebb384dd6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b151561020157600080fd5b5af1151561020e57600080fd5b50505060405180519050505b610339565b600054600254131561031357600260008154809291906001900391905055506002547f446f776e736965210000000000000000000000000000000000000000000000007f3ff0b1eac80ecf8e93d1a2d7982a9230f8ea7693439fd548687b08a5e292b09760405160405180910390a360025490503073ffffffffffffffffffffffffffffffffffffffff1663ebb384dd6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15156102f657600080fd5b5af1151561030357600080fd5b5050506040518051905050610338565b6001600360006101000a81548160ff021916908315150217905550600254905061033a565b5b5b905600a165627a7a723058202906ff200f065bf0b9e4f4d744be14a519f74f794b53a0ea5993280b38eeaf210029")
View Source
var PrivateAccounts = integration.MakePrivateAccounts(10) // make keys

Functions

func CallContract

func CallContract(t testing.TB, cli rpctransact.TransactClient, inputAddress,
	contractAddress crypto.Address) *exec.TxExecution

func CommittedTxCount

func CommittedTxCount(t *testing.T, em event.Emitter) chan int

func CreateContract

func CreateContract(t testing.TB, cli rpctransact.TransactClient, inputAddress crypto.Address) *exec.TxExecution

func DumpStorage

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

dump all storage for an account. currently unused

func GetAccount

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

get the account

func GetSequence

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

get an account's sequence number

func GetStorage

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

func MakeDefaultCallTx

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

func NewExecutionEventsClient

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

func NewQueryClient

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

func NewTransactClient

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

Helpers

func UpdateName

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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