rpctest

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 19 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_revert = hex.MustDecodeString("608060405234801561001057600080fd5b506101f4806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680635b202afb14610046575b600080fd5b34801561005257600080fd5b50610077600480360381019080803563ffffffff169060200190929190505050610079565b005b60008163ffffffff1614156100f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600f8152602001807f492068617665207265766572746564000000000000000000000000000000000081525060200191505060405180910390fd5b8080600190039150508063ffffffff167ff7f0feb5b4ac5276c55faa8936d962de931ebe8333a2efdc0506878de3979ba960405160405180910390a23073ffffffffffffffffffffffffffffffffffffffff16635b202afb826040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808263ffffffff1663ffffffff168152602001915050600060405180830381600087803b1580156101ad57600080fd5b505af11580156101c1573d6000803e3d6000fd5b50505050505600a165627a7a7230582077df1a115dbda77b79cd760ca63317f07d20168d8f8f7dff84a5dafbd4a429040029")
View Source
var Bytecode_strange_loop = hex.MustDecodeString("60806040526017600055602260015560116002556001600360006101000a81548160ff02191690831515021790555034801561003a57600080fd5b506103da8061004a6000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063ebb384dd14610046575b600080fd5b34801561005257600080fd5b5061005b610071565b6040518082815260200191505060405180910390f35b60006002549050600360009054906101000a900460ff161561026b5760015460025412156101a5576002600081548092919060010191905055506002547f55707369652100000000000000000000000000000000000000000000000000007f3ff0b1eac80ecf8e93d1a2d7982a9230f8ea7693439fd548687b08a5e292b09760405160405180910390a360025490503073ffffffffffffffffffffffffffffffffffffffff1663ebb384dd6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561016457600080fd5b505af1158015610178573d6000803e3d6000fd5b505050506040513d602081101561018e57600080fd5b810190808051906020019092919050505050610266565b6000600360006101000a81548160ff02191690831515021790555060025490503073ffffffffffffffffffffffffffffffffffffffff1663ebb384dd6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561022957600080fd5b505af115801561023d573d6000803e3d6000fd5b505050506040513d602081101561025357600080fd5b8101908080519060200190929190505050505b6103aa565b600054600254131561038457600260008154809291906001900391905055506002547f446f776e736965210000000000000000000000000000000000000000000000007f3ff0b1eac80ecf8e93d1a2d7982a9230f8ea7693439fd548687b08a5e292b09760405160405180910390a360025490503073ffffffffffffffffffffffffffffffffffffffff1663ebb384dd6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561034357600080fd5b505af1158015610357573d6000803e3d6000fd5b505050506040513d602081101561036d57600080fd5b8101908080519060200190929190505050506103a9565b6001600360006101000a81548160ff02191690831515021790555060025490506103ab565b5b5b905600a165627a7a7230582069471e5659f08561dbd25cf475e14cd38672739818c30a94b7df7dc7bc4619490029")
View Source
var PrivateAccounts = integration.MakePrivateAccounts(10) // make keys

Functions

func CallContract

func CallContract(t testing.TB, cli rpctransact.TransactClient, inputAddress, contractAddress crypto.Address,
	data []byte) *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, bytecode []byte) *exec.TxExecution

func DumpStorage

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

dump all storage for an account. currently unused

func GetAccount

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

get the account

func GetSequence

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

get an account's sequence number

func GetStorage

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

func MakeDefaultCallTx

func MakeDefaultCallTx(t *testing.T, client infoclient.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