Documentation
¶
Index ¶
- func CancelBatch(t *testing.T, ctx context.Context, transactor *bind.TransactOpts, ...) (*types.Transaction, *types.Receipt)
- func DeployCallProxy(t *testing.T, ctx context.Context, transactor *bind.TransactOpts, ...) (common.Address, *types.Transaction, *types.Receipt, *contracts.CallProxy)
- func DeployStorage(t *testing.T, ctx context.Context, transactor *bind.TransactOpts, ...) (common.Address, *types.Transaction, *types.Receipt, ...)
- func DeployTimelock(t *testing.T, ctx context.Context, transactor *bind.TransactOpts, ...) (common.Address, *types.Transaction, *types.Receipt, *contracts.RBACTimelock)
- func ExecuteBatch(t *testing.T, ctx context.Context, transactor *bind.TransactOpts, ...) (*types.Transaction, *types.Receipt)
- func ScheduleBatch(t *testing.T, ctx context.Context, transactor *bind.TransactOpts, ...) (*types.Transaction, *types.Receipt)
- func SendTransaction(t *testing.T, ctx context.Context, transactor *bind.TransactOpts, ...)
- func UpdateDelay(t *testing.T, ctx context.Context, transactor *bind.TransactOpts, ...) (*types.Transaction, *types.Receipt)
- type Backend
- type TestAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelBatch ¶ added in v0.0.7
func CancelBatch( t *testing.T, ctx context.Context, transactor *bind.TransactOpts, backend Backend, timelockContract *contracts.RBACTimelock, operationID [32]byte, ) ( *types.Transaction, *types.Receipt, )
func DeployCallProxy ¶ added in v0.0.7
func DeployStorage ¶ added in v0.0.7
func DeployStorage( t *testing.T, ctx context.Context, transactor *bind.TransactOpts, backend Backend, ) ( common.Address, *types.Transaction, *types.Receipt, *test_contracts.StorageContract, )
func DeployTimelock ¶ added in v0.0.7
func ExecuteBatch ¶ added in v0.0.7
func ExecuteBatch( t *testing.T, ctx context.Context, transactor *bind.TransactOpts, backend Backend, timelockContract *contracts.RBACTimelock, calls []contracts.RBACTimelockCall, predecessor [32]byte, salt [32]byte, ) ( *types.Transaction, *types.Receipt, )
func ScheduleBatch ¶ added in v0.0.7
func ScheduleBatch( t *testing.T, ctx context.Context, transactor *bind.TransactOpts, backend Backend, timelockContract *contracts.RBACTimelock, calls []contracts.RBACTimelockCall, predecessor [32]byte, salt [32]byte, delay *big.Int, ) ( *types.Transaction, *types.Receipt, )
func SendTransaction ¶ added in v0.0.7
func UpdateDelay ¶ added in v0.0.7
func UpdateDelay( t *testing.T, ctx context.Context, transactor *bind.TransactOpts, backend Backend, timelockContract *contracts.RBACTimelock, delay *big.Int, ) ( *types.Transaction, *types.Receipt, )
Types ¶
type Backend ¶ added in v0.0.7
func NewRPCBackend ¶ added in v0.0.7
func NewSimulatedBackend ¶ added in v0.0.7
func NewSimulatedBackend(t *testing.T, genesisAlloc types.GenesisAlloc) Backend
type TestAccount ¶
type TestAccount struct { Address common.Address HexAddress string PrivateKey *ecdsa.PrivateKey HexPrivateKey string }
TestAccount is data type wrapping attributes typically needed when managing ethereum accounts.
func NewTestAccount ¶
func NewTestAccount(t *testing.T) TestAccount
NewTestAccount generates a new ecdsa key and returns a TestAccount structure with the associated attributes.
func (TestAccount) String ¶
func (ta TestAccount) String() string
Click to show internal directories.
Click to hide internal directories.