Documentation
¶
Overview ¶
Package auth provides ability to generate bind.TransactOpts using admin account
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAuth ¶
func GenerateAuth(ctx context.Context, client *ethclient.Client, privateKeyBytes []byte) (*bind.TransactOpts, error)
GenerateAuth generates a new keyed transactor with the given private key bytes and context
Types ¶
type Admin ¶
type Admin struct {
// contains filtered or unexported fields
}
func (*Admin) GenerateAuth ¶
type ContractSigner ¶ added in v0.3.0
type ContractSigner interface {
GenerateAuth(ctx context.Context) (*bind.TransactOpts, error)
}
type MockContractSigner ¶ added in v0.3.0
MockContractSigner is a mock implementation of the ContractSigner interface.
func (*MockContractSigner) GenerateAuth ¶ added in v0.3.0
func (m *MockContractSigner) GenerateAuth(ctx context.Context) (*bind.TransactOpts, error)
Click to show internal directories.
Click to hide internal directories.