Documentation ¶
Index ¶
- Constants
- Variables
- type SimpleStorage
- type SimpleStorageCaller
- type SimpleStorageCallerRaw
- type SimpleStorageCallerSession
- type SimpleStorageFilterer
- type SimpleStorageRaw
- func (_SimpleStorage *SimpleStorageRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_SimpleStorage *SimpleStorageRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SimpleStorage *SimpleStorageRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SimpleStorageSession
- func (_SimpleStorage *SimpleStorageSession) Add(x *big.Int) (*types.Transaction, error)
- func (_SimpleStorage *SimpleStorageSession) Get() (*big.Int, error)
- func (_SimpleStorage *SimpleStorageSession) Set(x *big.Int) (*types.Transaction, error)
- func (_SimpleStorage *SimpleStorageSession) StoredData() (*big.Int, error)
- type SimpleStorageTransactor
- type SimpleStorageTransactorRaw
- type SimpleStorageTransactorSession
Constants ¶
const SimpleStorageABI = "" /* 836-byte string literal not displayed */
SimpleStorageABI is the input ABI used to generate the binding from.
Variables ¶
var SimpleStorageBin = "" /* 732-byte string literal not displayed */
SimpleStorageBin is the compiled bytecode used for deploying new contracts.
var SimpleStorageFuncSigs = map[string]string{
"1003e2d2": "add(uint256)",
"6d4ce63c": "get()",
"60fe47b1": "set(uint256)",
"2a1afcd9": "storedData()",
}
SimpleStorageFuncSigs maps the 4-byte function signature to its string representation.
Functions ¶
This section is empty.
Types ¶
type SimpleStorage ¶
type SimpleStorage struct { SimpleStorageCaller // Read-only binding to the contract SimpleStorageTransactor // Write-only binding to the contract SimpleStorageFilterer // Log filterer for contract events }
SimpleStorage is an auto generated Go binding around an Ethereum contract.
func DeploySimpleStorage ¶
func DeploySimpleStorage(auth *bind.TransactOpts, backend bind.ContractBackend, _storedData *big.Int) (common.Address, *types.Transaction, *SimpleStorage, error)
DeploySimpleStorage deploys a new Ethereum contract, binding an instance of SimpleStorage to it.
func NewSimpleStorage ¶
func NewSimpleStorage(address common.Address, backend bind.ContractBackend) (*SimpleStorage, error)
NewSimpleStorage creates a new instance of SimpleStorage, bound to a specific deployed contract.
type SimpleStorageCaller ¶
type SimpleStorageCaller struct {
// contains filtered or unexported fields
}
SimpleStorageCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSimpleStorageCaller ¶
func NewSimpleStorageCaller(address common.Address, caller bind.ContractCaller) (*SimpleStorageCaller, error)
NewSimpleStorageCaller creates a new read-only instance of SimpleStorage, bound to a specific deployed contract.
func (*SimpleStorageCaller) Get ¶
Get is a free data retrieval call binding the contract method 0x6d4ce63c.
Solidity: function get() view returns(uint256 retVal)
func (*SimpleStorageCaller) StoredData ¶
StoredData is a free data retrieval call binding the contract method 0x2a1afcd9.
Solidity: function storedData() view returns(uint256)
type SimpleStorageCallerRaw ¶
type SimpleStorageCallerRaw struct {
Contract *SimpleStorageCaller // Generic read-only contract binding to access the raw methods on
}
SimpleStorageCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SimpleStorageCallerRaw) Call ¶
func (_SimpleStorage *SimpleStorageCallerRaw) 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 SimpleStorageCallerSession ¶
type SimpleStorageCallerSession struct { Contract *SimpleStorageCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SimpleStorageCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SimpleStorageCallerSession) Get ¶
func (_SimpleStorage *SimpleStorageCallerSession) Get() (*big.Int, error)
Get is a free data retrieval call binding the contract method 0x6d4ce63c.
Solidity: function get() view returns(uint256 retVal)
func (*SimpleStorageCallerSession) StoredData ¶
func (_SimpleStorage *SimpleStorageCallerSession) StoredData() (*big.Int, error)
StoredData is a free data retrieval call binding the contract method 0x2a1afcd9.
Solidity: function storedData() view returns(uint256)
type SimpleStorageFilterer ¶
type SimpleStorageFilterer struct {
// contains filtered or unexported fields
}
SimpleStorageFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSimpleStorageFilterer ¶
func NewSimpleStorageFilterer(address common.Address, filterer bind.ContractFilterer) (*SimpleStorageFilterer, error)
NewSimpleStorageFilterer creates a new log filterer instance of SimpleStorage, bound to a specific deployed contract.
type SimpleStorageRaw ¶
type SimpleStorageRaw struct {
Contract *SimpleStorage // Generic contract binding to access the raw methods on
}
SimpleStorageRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SimpleStorageRaw) Call ¶
func (_SimpleStorage *SimpleStorageRaw) 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 (*SimpleStorageRaw) Transact ¶
func (_SimpleStorage *SimpleStorageRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SimpleStorageRaw) Transfer ¶
func (_SimpleStorage *SimpleStorageRaw) 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 SimpleStorageSession ¶
type SimpleStorageSession struct { Contract *SimpleStorage // 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 }
SimpleStorageSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SimpleStorageSession) Add ¶
func (_SimpleStorage *SimpleStorageSession) Add(x *big.Int) (*types.Transaction, error)
Add is a paid mutator transaction binding the contract method 0x1003e2d2.
Solidity: function add(uint256 x) returns()
func (*SimpleStorageSession) Get ¶
func (_SimpleStorage *SimpleStorageSession) Get() (*big.Int, error)
Get is a free data retrieval call binding the contract method 0x6d4ce63c.
Solidity: function get() view returns(uint256 retVal)
func (*SimpleStorageSession) Set ¶
func (_SimpleStorage *SimpleStorageSession) Set(x *big.Int) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0x60fe47b1.
Solidity: function set(uint256 x) returns()
func (*SimpleStorageSession) StoredData ¶
func (_SimpleStorage *SimpleStorageSession) StoredData() (*big.Int, error)
StoredData is a free data retrieval call binding the contract method 0x2a1afcd9.
Solidity: function storedData() view returns(uint256)
type SimpleStorageTransactor ¶
type SimpleStorageTransactor struct {
// contains filtered or unexported fields
}
SimpleStorageTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSimpleStorageTransactor ¶
func NewSimpleStorageTransactor(address common.Address, transactor bind.ContractTransactor) (*SimpleStorageTransactor, error)
NewSimpleStorageTransactor creates a new write-only instance of SimpleStorage, bound to a specific deployed contract.
func (*SimpleStorageTransactor) Add ¶
func (_SimpleStorage *SimpleStorageTransactor) Add(opts *bind.TransactOpts, x *big.Int) (*types.Transaction, error)
Add is a paid mutator transaction binding the contract method 0x1003e2d2.
Solidity: function add(uint256 x) returns()
func (*SimpleStorageTransactor) Set ¶
func (_SimpleStorage *SimpleStorageTransactor) Set(opts *bind.TransactOpts, x *big.Int) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0x60fe47b1.
Solidity: function set(uint256 x) returns()
type SimpleStorageTransactorRaw ¶
type SimpleStorageTransactorRaw struct {
Contract *SimpleStorageTransactor // Generic write-only contract binding to access the raw methods on
}
SimpleStorageTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SimpleStorageTransactorRaw) Transact ¶
func (_SimpleStorage *SimpleStorageTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SimpleStorageTransactorRaw) Transfer ¶
func (_SimpleStorage *SimpleStorageTransactorRaw) 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 SimpleStorageTransactorSession ¶
type SimpleStorageTransactorSession struct { Contract *SimpleStorageTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SimpleStorageTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SimpleStorageTransactorSession) Add ¶
func (_SimpleStorage *SimpleStorageTransactorSession) Add(x *big.Int) (*types.Transaction, error)
Add is a paid mutator transaction binding the contract method 0x1003e2d2.
Solidity: function add(uint256 x) returns()
func (*SimpleStorageTransactorSession) Set ¶
func (_SimpleStorage *SimpleStorageTransactorSession) Set(x *big.Int) (*types.Transaction, error)
Set is a paid mutator transaction binding the contract method 0x60fe47b1.
Solidity: function set(uint256 x) returns()