Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Deployer = NewAccountFromKey(deployerPrivateKey)
)
Functions ¶
func NewPrivateKeySigner ¶
func NewPrivateKeySigner(key *ecdsa.PrivateKey) *privateKeySigner
Types ¶
type AbiList ¶
type AbiList struct {
// contains filtered or unexported fields
}
func (*AbiList) InputLookup ¶
func (*AbiList) LookupByTx ¶
type EthAccount ¶
type EthAccount struct { PrivateKey *ecdsa.PrivateKey PublicKey ecdsa.PublicKey Address common.Address Transactor *bind.TransactOpts }
func NewAccountFromKey ¶
func NewAccountFromKey(privateKey *ecdsa.PrivateKey) *EthAccount
func NewRandomAccount ¶
func NewRandomAccount() (*EthAccount, error)
type MystIdentity ¶
type MystIdentity struct { PublicKey *ecdsa.PublicKey Address common.Address // contains filtered or unexported fields }
func NewMystIdentity ¶
func NewMystIdentity() (*MystIdentity, error)
func (MystIdentity) GetPublicKey ¶
type TransactionalBackend ¶
type TransactionalBackend interface { bind.ContractBackend Commit() //taken from Simulated backend TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) //taken from Simulated backend }
func LoggingBackend ¶
func LoggingBackend(sb TransactionalBackend, abis *AbiList) TransactionalBackend
func NewSimulatedBackend ¶
func NewSimulatedBackend(genesisAddress common.Address, initialAmmount int64) TransactionalBackend
Keep in mind that initial amount is actually in Gwei - you need really HUGE numbers here to make more than few simple transactions
type TxLoggingBackend ¶
type TxLoggingBackend struct { TransactionalBackend // contains filtered or unexported fields }
func (*TxLoggingBackend) CallContract ¶
func (*TxLoggingBackend) SendTransaction ¶
func (sb *TxLoggingBackend) SendTransaction(ctx context.Context, tx *types.Transaction) error
Click to show internal directories.
Click to hide internal directories.