Documentation ¶
Index ¶
- func DelegateTxRawKeySigner(key *ecdsa.PrivateKey) bind.SignerFn
- func DelegateTxWalletSigner(account accounts.Account, wallet accounts.Wallet, passphrase *string) bind.SignerFn
- func TxRawKeySigner(key *ecdsa.PrivateKey) bind.SignerFn
- func TxWalletSigner(account accounts.Account, wallet accounts.Wallet, passphrase *string) bind.SignerFn
- type BoundContract
- func (c *BoundContract) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (c *BoundContract) Transact(opts *TransactOpts, method string, params ...interface{}) (*types.Receipt, error)
- func (c *BoundContract) Transfer(opts *TransactOpts) (*types.Receipt, error)
- type ContractBackend
- type ContractTransactor
- type Deployment
- type Deployments
- type EventIterator
- type TransactOpts
- func MergeTxOpts(ctx context.Context, origin *TransactOpts, opts ...*TransactOpts) *TransactOpts
- func NewKeyedFeePayerTransactor(key *ecdsa.PrivateKey) *TransactOpts
- func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts
- func NewWalletFeePayerTransactor(account accounts.Account, wallet accounts.Wallet, passphrase *string) *TransactOpts
- func NewWalletTransactor(account accounts.Account, wallet accounts.Wallet, passphrase *string) *TransactOpts
- func (opts *TransactOpts) MakeTransaction(client ContractBackend, contract *common.Address, input []byte) (*types.Transaction, error)
- func (opts *TransactOpts) MakeTransactionData(client ContractBackend, contract *common.Address, input []byte) (types.TxType, map[types.TxValueKeyType]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelegateTxRawKeySigner ¶
func DelegateTxRawKeySigner(key *ecdsa.PrivateKey) bind.SignerFn
func DelegateTxWalletSigner ¶
func TxRawKeySigner ¶
func TxRawKeySigner(key *ecdsa.PrivateKey) bind.SignerFn
Types ¶
type BoundContract ¶
type BoundContract struct { *bind.BoundContract // contains filtered or unexported fields }
func NewBoundContract ¶
func NewBoundContract( address common.Address, abi abi.ABI, name string, backend ContractBackend, ) *BoundContract
func (*BoundContract) Call ¶
func (c *BoundContract) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
func (*BoundContract) Transact ¶
func (c *BoundContract) Transact(opts *TransactOpts, method string, params ...interface{}) (*types.Receipt, error)
func (*BoundContract) Transfer ¶
func (c *BoundContract) Transfer(opts *TransactOpts) (*types.Receipt, error)
type ContractBackend ¶
type ContractBackend interface { bind.ContractCaller bind.ContractFilterer ContractTransactor Client() *client.Client Deployment(string) (Deployment, bool) Transactor(context.Context, ...*TransactOpts) *TransactOpts MakeTransaction(*TransactOpts, *common.Address, []byte) (*types.Transaction, error) WaitMined(context.Context, *types.Transaction) (*types.Receipt, error) WaitMinedWithHash(context.Context, common.Hash) (*types.Receipt, error) WaitDeployed(context.Context, *types.Transaction) (*types.Receipt, error) }
ContractBackend is an interface that used by airbloc contracts
type ContractTransactor ¶
type ContractTransactor interface { // PendingCodeAt returns the code of the given account in the pending state. PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error) // PendingNonceAt retrieves the current pending nonce associated with an account. PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) // SuggestGasPrice retrieves the currently suggested gas price to allow a timely // execution of a transaction. SuggestGasPrice(ctx context.Context) (*big.Int, error) // EstimateGas tries to estimate the gas needed to execute a specific // transaction based on the current pending state of the backend blockchain. // There is no guarantee that this is the true gas limit requirement as other // transactions may be added or removed by miners, but it should provide a basis // for setting a reasonable default. EstimateGas(ctx context.Context, call klaytn.CallMsg) (gas uint64, err error) // SendTransaction injects the transaction into the pending pool for execution. SendTransaction(ctx context.Context, tx *types.Transaction) (*types.Receipt, error) // ChainID can return the chain ID of the chain. ChainID(ctx context.Context) (*big.Int, error) }
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
func NewDeployment ¶
func (Deployment) Address ¶
func (d Deployment) Address() common.Address
func (Deployment) CreatedAt ¶
func (d Deployment) CreatedAt() *big.Int
func (Deployment) TxHash ¶
func (d Deployment) TxHash() common.Hash
type Deployments ¶
type Deployments map[string]deploymentData
func GetDeploymentsFrom ¶
func GetDeploymentsFrom(path string) (Deployments, error)
func (Deployments) Get ¶
func (ds Deployments) Get(contract string) (Deployment, bool)
type EventIterator ¶
EventIterator is an interface for all return value of contract's filterer methods
type TransactOpts ¶
type TransactOpts struct { From common.Address FeePayer common.Address Signer bind.SignerFn Value *big.Int GasPrice *big.Int GasLimit uint64 TxType types.TxType Context context.Context }
TransactOpts is the collection of authorization data required to create a valid Klaytn transaction.
func MergeTxOpts ¶
func MergeTxOpts(ctx context.Context, origin *TransactOpts, opts ...*TransactOpts) *TransactOpts
func NewKeyedFeePayerTransactor ¶
func NewKeyedFeePayerTransactor(key *ecdsa.PrivateKey) *TransactOpts
func NewKeyedTransactor ¶
func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts
func NewWalletTransactor ¶
func (*TransactOpts) MakeTransaction ¶
func (opts *TransactOpts) MakeTransaction(client ContractBackend, contract *common.Address, input []byte) (*types.Transaction, error)
func (*TransactOpts) MakeTransactionData ¶
func (opts *TransactOpts) MakeTransactionData(client ContractBackend, contract *common.Address, input []byte) (types.TxType, map[types.TxValueKeyType]interface{}, error)
Click to show internal directories.
Click to hide internal directories.