Documentation ¶
Index ¶
- Variables
- func CreateCreateCallCommand() *cobra.Command
- func CreateCreateCallDeploymentCommand() *cobra.Command
- func CreatePerformCreate2Command() *cobra.Command
- func CreatePerformCreateCommand() *cobra.Command
- func KeyFromFile(keystoreFile string, password string) (*keystore.Key, error)
- func NewChainContext(timeout uint) (context.Context, context.CancelFunc)
- func NewClient(rpcURL string) (*ethclient.Client, error)
- func SetCallParametersFromArgs(opts *bind.CallOpts, pending bool, fromAddress, blockNumber string)
- func SetTransactionParametersFromArgs(opts *bind.TransactOpts, ...)
- func UnlockKeystore(keystoreData []byte, password string) (*keystore.Key, error)
- type CreateCall
- type CreateCallCaller
- type CreateCallCallerRaw
- type CreateCallCallerSession
- type CreateCallContractCreation
- type CreateCallContractCreationIterator
- type CreateCallFilterer
- func (_CreateCall *CreateCallFilterer) FilterContractCreation(opts *bind.FilterOpts, newContract []common.Address) (*CreateCallContractCreationIterator, error)
- func (_CreateCall *CreateCallFilterer) ParseContractCreation(log types.Log) (*CreateCallContractCreation, error)
- func (_CreateCall *CreateCallFilterer) WatchContractCreation(opts *bind.WatchOpts, sink chan<- *CreateCallContractCreation, ...) (event.Subscription, error)
- type CreateCallRaw
- func (_CreateCall *CreateCallRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_CreateCall *CreateCallRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_CreateCall *CreateCallRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type CreateCallSession
- type CreateCallTransactor
- func (_CreateCall *CreateCallTransactor) PerformCreate(opts *bind.TransactOpts, value *big.Int, deploymentData []byte) (*types.Transaction, error)
- func (_CreateCall *CreateCallTransactor) PerformCreate2(opts *bind.TransactOpts, value *big.Int, deploymentData []byte, salt [32]byte) (*types.Transaction, error)
- type CreateCallTransactorRaw
- type CreateCallTransactorSession
Constants ¶
This section is empty.
Variables ¶
var CreateCallABI = CreateCallMetaData.ABI
CreateCallABI is the input ABI used to generate the binding from. Deprecated: Use CreateCallMetaData.ABI instead.
var CreateCallBin = CreateCallMetaData.Bin
CreateCallBin is the compiled bytecode used for deploying new contracts. Deprecated: Use CreateCallMetaData.Bin instead.
var CreateCallMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newContract\",\"type\":\"address\"}],\"name\":\"ContractCreation\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"deploymentData\",\"type\":\"bytes\"}],\"name\":\"performCreate\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"newContract\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"deploymentData\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"salt\",\"type\":\"bytes32\"}],\"name\":\"performCreate2\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"newContract\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b5061044b806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80634847be6f1461003b5780634c8c9ea114610134575b600080fd5b6101086004803603606081101561005157600080fd5b81019080803590602001909291908035906020019064010000000081111561007857600080fd5b82018360208201111561008a57600080fd5b803590602001918460018302840111640100000000831117156100ac57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190929190505050610223565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101f76004803603604081101561014a57600080fd5b81019080803590602001909291908035906020019064010000000081111561017157600080fd5b82018360208201111561018357600080fd5b803590602001918460018302840111640100000000831117156101a557600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061031d565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008183518460200186f59050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156102d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f436f756c64206e6f74206465706c6f7920636f6e74726163740000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167f4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b51160405160405180910390a29392505050565b600081516020830184f09050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156103cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260198152602001807f436f756c64206e6f74206465706c6f7920636f6e74726163740000000000000081525060200191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167f4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b51160405160405180910390a29291505056fea2646970667358221220153dfbb31f5824b1a17183b88443b5d0771b935e8acd92186d58555a02e4b41f64736f6c63430007060033",
}
CreateCallMetaData contains all meta data concerning the CreateCall contract.
var ErrNoRPCURL error = errors.New("no RPC URL provided -- please pass an RPC URL from the command line or set the CREATE_CALL_RPC_URL environment variable")
Functions ¶
func CreateCreateCallCommand ¶
func KeyFromFile ¶
Loads a key from file, prompting the user for the password if it is not provided as a function argument.
func NewChainContext ¶
func NewChainContext(timeout uint) (context.Context, context.CancelFunc)
Creates a new context to be used when interacting with the chain client.
func NewClient ¶
Generates an Ethereum client to the JSONRPC API at the given URL. If rpcURL is empty, then it attempts to read the RPC URL from the CREATE_CALL_RPC_URL environment variable. If that is empty, too, then it returns an error.
func SetCallParametersFromArgs ¶
This method is used to set the parameters on a view call from command line arguments (represented mostly as strings).
func SetTransactionParametersFromArgs ¶
func SetTransactionParametersFromArgs(opts *bind.TransactOpts, nonce, value, gasPrice, maxFeePerGas, maxPriorityFeePerGas string, gasLimit uint64, noSend bool)
This method is used to set the parameters on a transaction from command line arguments (represented mostly as strings).
Types ¶
type CreateCall ¶
type CreateCall struct { CreateCallCaller // Read-only binding to the contract CreateCallTransactor // Write-only binding to the contract CreateCallFilterer // Log filterer for contract events }
CreateCall is an auto generated Go binding around an Ethereum contract.
func DeployCreateCall ¶
func DeployCreateCall(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *CreateCall, error)
DeployCreateCall deploys a new Ethereum contract, binding an instance of CreateCall to it.
func NewCreateCall ¶
func NewCreateCall(address common.Address, backend bind.ContractBackend) (*CreateCall, error)
NewCreateCall creates a new instance of CreateCall, bound to a specific deployed contract.
type CreateCallCaller ¶
type CreateCallCaller struct {
// contains filtered or unexported fields
}
CreateCallCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCreateCallCaller ¶
func NewCreateCallCaller(address common.Address, caller bind.ContractCaller) (*CreateCallCaller, error)
NewCreateCallCaller creates a new read-only instance of CreateCall, bound to a specific deployed contract.
type CreateCallCallerRaw ¶
type CreateCallCallerRaw struct {
Contract *CreateCallCaller // Generic read-only contract binding to access the raw methods on
}
CreateCallCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*CreateCallCallerRaw) Call ¶
func (_CreateCall *CreateCallCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type CreateCallCallerSession ¶
type CreateCallCallerSession struct { Contract *CreateCallCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
CreateCallCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type CreateCallContractCreation ¶
type CreateCallContractCreation struct { NewContract common.Address Raw types.Log // Blockchain specific contextual infos }
CreateCallContractCreation represents a ContractCreation event raised by the CreateCall contract.
type CreateCallContractCreationIterator ¶
type CreateCallContractCreationIterator struct { Event *CreateCallContractCreation // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CreateCallContractCreationIterator is returned from FilterContractCreation and is used to iterate over the raw logs and unpacked data for ContractCreation events raised by the CreateCall contract.
func (*CreateCallContractCreationIterator) Close ¶
func (it *CreateCallContractCreationIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CreateCallContractCreationIterator) Error ¶
func (it *CreateCallContractCreationIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CreateCallContractCreationIterator) Next ¶
func (it *CreateCallContractCreationIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type CreateCallFilterer ¶
type CreateCallFilterer struct {
// contains filtered or unexported fields
}
CreateCallFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCreateCallFilterer ¶
func NewCreateCallFilterer(address common.Address, filterer bind.ContractFilterer) (*CreateCallFilterer, error)
NewCreateCallFilterer creates a new log filterer instance of CreateCall, bound to a specific deployed contract.
func (*CreateCallFilterer) FilterContractCreation ¶
func (_CreateCall *CreateCallFilterer) FilterContractCreation(opts *bind.FilterOpts, newContract []common.Address) (*CreateCallContractCreationIterator, error)
FilterContractCreation is a free log retrieval operation binding the contract event 0x4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b511.
Solidity: event ContractCreation(address indexed newContract)
func (*CreateCallFilterer) ParseContractCreation ¶
func (_CreateCall *CreateCallFilterer) ParseContractCreation(log types.Log) (*CreateCallContractCreation, error)
ParseContractCreation is a log parse operation binding the contract event 0x4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b511.
Solidity: event ContractCreation(address indexed newContract)
func (*CreateCallFilterer) WatchContractCreation ¶
func (_CreateCall *CreateCallFilterer) WatchContractCreation(opts *bind.WatchOpts, sink chan<- *CreateCallContractCreation, newContract []common.Address) (event.Subscription, error)
WatchContractCreation is a free log subscription operation binding the contract event 0x4db17dd5e4732fb6da34a148104a592783ca119a1e7bb8829eba6cbadef0b511.
Solidity: event ContractCreation(address indexed newContract)
type CreateCallRaw ¶
type CreateCallRaw struct {
Contract *CreateCall // Generic contract binding to access the raw methods on
}
CreateCallRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*CreateCallRaw) Call ¶
func (_CreateCall *CreateCallRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*CreateCallRaw) Transact ¶
func (_CreateCall *CreateCallRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CreateCallRaw) Transfer ¶
func (_CreateCall *CreateCallRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type CreateCallSession ¶
type CreateCallSession struct { Contract *CreateCall // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CreateCallSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*CreateCallSession) PerformCreate ¶
func (_CreateCall *CreateCallSession) PerformCreate(value *big.Int, deploymentData []byte) (*types.Transaction, error)
PerformCreate is a paid mutator transaction binding the contract method 0x4c8c9ea1.
Solidity: function performCreate(uint256 value, bytes deploymentData) returns(address newContract)
func (*CreateCallSession) PerformCreate2 ¶
func (_CreateCall *CreateCallSession) PerformCreate2(value *big.Int, deploymentData []byte, salt [32]byte) (*types.Transaction, error)
PerformCreate2 is a paid mutator transaction binding the contract method 0x4847be6f.
Solidity: function performCreate2(uint256 value, bytes deploymentData, bytes32 salt) returns(address newContract)
type CreateCallTransactor ¶
type CreateCallTransactor struct {
// contains filtered or unexported fields
}
CreateCallTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCreateCallTransactor ¶
func NewCreateCallTransactor(address common.Address, transactor bind.ContractTransactor) (*CreateCallTransactor, error)
NewCreateCallTransactor creates a new write-only instance of CreateCall, bound to a specific deployed contract.
func (*CreateCallTransactor) PerformCreate ¶
func (_CreateCall *CreateCallTransactor) PerformCreate(opts *bind.TransactOpts, value *big.Int, deploymentData []byte) (*types.Transaction, error)
PerformCreate is a paid mutator transaction binding the contract method 0x4c8c9ea1.
Solidity: function performCreate(uint256 value, bytes deploymentData) returns(address newContract)
func (*CreateCallTransactor) PerformCreate2 ¶
func (_CreateCall *CreateCallTransactor) PerformCreate2(opts *bind.TransactOpts, value *big.Int, deploymentData []byte, salt [32]byte) (*types.Transaction, error)
PerformCreate2 is a paid mutator transaction binding the contract method 0x4847be6f.
Solidity: function performCreate2(uint256 value, bytes deploymentData, bytes32 salt) returns(address newContract)
type CreateCallTransactorRaw ¶
type CreateCallTransactorRaw struct {
Contract *CreateCallTransactor // Generic write-only contract binding to access the raw methods on
}
CreateCallTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*CreateCallTransactorRaw) Transact ¶
func (_CreateCall *CreateCallTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CreateCallTransactorRaw) Transfer ¶
func (_CreateCall *CreateCallTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type CreateCallTransactorSession ¶
type CreateCallTransactorSession struct { Contract *CreateCallTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CreateCallTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*CreateCallTransactorSession) PerformCreate ¶
func (_CreateCall *CreateCallTransactorSession) PerformCreate(value *big.Int, deploymentData []byte) (*types.Transaction, error)
PerformCreate is a paid mutator transaction binding the contract method 0x4c8c9ea1.
Solidity: function performCreate(uint256 value, bytes deploymentData) returns(address newContract)
func (*CreateCallTransactorSession) PerformCreate2 ¶
func (_CreateCall *CreateCallTransactorSession) PerformCreate2(value *big.Int, deploymentData []byte, salt [32]byte) (*types.Transaction, error)
PerformCreate2 is a paid mutator transaction binding the contract method 0x4847be6f.
Solidity: function performCreate2(uint256 value, bytes deploymentData, bytes32 salt) returns(address newContract)