ethcontroller

package
v3.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContractABI = ContractMetaData.ABI

ContractABI is the input ABI used to generate the binding from. Deprecated: Use ContractMetaData.ABI instead.

View Source
var ContractMetaData = &bind.MetaData{
	ABI: "[{\"constant\":true,\"inputs\":[{\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_prices\",\"type\":\"address\"}],\"name\":\"setPriceOracle\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_minCommitmentAge\",\"type\":\"uint256\"},{\"name\":\"_maxCommitmentAge\",\"type\":\"uint256\"}],\"name\":\"setCommitmentAges\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"commitments\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"rentPrice\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"duration\",\"type\":\"uint256\"},{\"name\":\"secret\",\"type\":\"bytes32\"}],\"name\":\"register\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"MIN_REGISTRATION_DURATION\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"minCommitmentAge\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"}],\"name\":\"valid\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"renew\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"}],\"name\":\"available\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"maxCommitmentAge\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"commitment\",\"type\":\"bytes32\"}],\"name\":\"commit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"secret\",\"type\":\"bytes32\"}],\"name\":\"makeCommitment\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_base\",\"type\":\"address\"},{\"name\":\"_prices\",\"type\":\"address\"},{\"name\":\"_minCommitmentAge\",\"type\":\"uint256\"},{\"name\":\"_maxCommitmentAge\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"name\",\"type\":\"string\"},{\"indexed\":true,\"name\":\"label\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"cost\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"expires\",\"type\":\"uint256\"}],\"name\":\"NameRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"name\",\"type\":\"string\"},{\"indexed\":true,\"name\":\"label\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"cost\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"expires\",\"type\":\"uint256\"}],\"name\":\"NameRenewed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"oracle\",\"type\":\"address\"}],\"name\":\"NewPriceOracle\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"}]",
}

ContractMetaData contains all meta data concerning the Contract contract.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	ContractCaller     // Read-only binding to the contract
	ContractTransactor // Write-only binding to the contract
	ContractFilterer   // Log filterer for contract events
}

Contract is an auto generated Go binding around an Ethereum contract.

func NewContract

func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error)

NewContract creates a new instance of Contract, bound to a specific deployed contract.

type ContractCaller

type ContractCaller struct {
	// contains filtered or unexported fields
}

ContractCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewContractCaller

func NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error)

NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.

func (*ContractCaller) Available

func (_Contract *ContractCaller) Available(opts *bind.CallOpts, name string) (bool, error)

Available is a free data retrieval call binding the contract method 0xaeb8ce9b.

Solidity: function available(string name) view returns(bool)

func (*ContractCaller) Commitments

func (_Contract *ContractCaller) Commitments(opts *bind.CallOpts, arg0 [32]byte) (*big.Int, error)

Commitments is a free data retrieval call binding the contract method 0x839df945.

Solidity: function commitments(bytes32 ) view returns(uint256)

func (*ContractCaller) IsOwner

func (_Contract *ContractCaller) IsOwner(opts *bind.CallOpts) (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*ContractCaller) MINREGISTRATIONDURATION

func (_Contract *ContractCaller) MINREGISTRATIONDURATION(opts *bind.CallOpts) (*big.Int, error)

MINREGISTRATIONDURATION is a free data retrieval call binding the contract method 0x8a95b09f.

Solidity: function MIN_REGISTRATION_DURATION() view returns(uint256)

func (*ContractCaller) MakeCommitment

func (_Contract *ContractCaller) MakeCommitment(opts *bind.CallOpts, name string, owner common.Address, secret [32]byte) ([32]byte, error)

MakeCommitment is a free data retrieval call binding the contract method 0xf49826be.

Solidity: function makeCommitment(string name, address owner, bytes32 secret) pure returns(bytes32)

func (*ContractCaller) MaxCommitmentAge

func (_Contract *ContractCaller) MaxCommitmentAge(opts *bind.CallOpts) (*big.Int, error)

MaxCommitmentAge is a free data retrieval call binding the contract method 0xce1e09c0.

Solidity: function maxCommitmentAge() view returns(uint256)

func (*ContractCaller) MinCommitmentAge

func (_Contract *ContractCaller) MinCommitmentAge(opts *bind.CallOpts) (*big.Int, error)

MinCommitmentAge is a free data retrieval call binding the contract method 0x8d839ffe.

Solidity: function minCommitmentAge() view returns(uint256)

func (*ContractCaller) Owner

func (_Contract *ContractCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*ContractCaller) RentPrice

func (_Contract *ContractCaller) RentPrice(opts *bind.CallOpts, name string, duration *big.Int) (*big.Int, error)

RentPrice is a free data retrieval call binding the contract method 0x83e7f6ff.

Solidity: function rentPrice(string name, uint256 duration) view returns(uint256)

func (*ContractCaller) SupportsInterface

func (_Contract *ContractCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)

func (*ContractCaller) Valid

func (_Contract *ContractCaller) Valid(opts *bind.CallOpts, name string) (bool, error)

Valid is a free data retrieval call binding the contract method 0x9791c097.

Solidity: function valid(string name) view returns(bool)

type ContractCallerRaw

type ContractCallerRaw struct {
	Contract *ContractCaller // Generic read-only contract binding to access the raw methods on
}

ContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*ContractCallerRaw) Call

func (_Contract *ContractCallerRaw) 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 ContractCallerSession

type ContractCallerSession struct {
	Contract *ContractCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts   // Call options to use throughout this session
}

ContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*ContractCallerSession) Available

func (_Contract *ContractCallerSession) Available(name string) (bool, error)

Available is a free data retrieval call binding the contract method 0xaeb8ce9b.

Solidity: function available(string name) view returns(bool)

func (*ContractCallerSession) Commitments

func (_Contract *ContractCallerSession) Commitments(arg0 [32]byte) (*big.Int, error)

Commitments is a free data retrieval call binding the contract method 0x839df945.

Solidity: function commitments(bytes32 ) view returns(uint256)

func (*ContractCallerSession) IsOwner

func (_Contract *ContractCallerSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*ContractCallerSession) MINREGISTRATIONDURATION

func (_Contract *ContractCallerSession) MINREGISTRATIONDURATION() (*big.Int, error)

MINREGISTRATIONDURATION is a free data retrieval call binding the contract method 0x8a95b09f.

Solidity: function MIN_REGISTRATION_DURATION() view returns(uint256)

func (*ContractCallerSession) MakeCommitment

func (_Contract *ContractCallerSession) MakeCommitment(name string, owner common.Address, secret [32]byte) ([32]byte, error)

MakeCommitment is a free data retrieval call binding the contract method 0xf49826be.

Solidity: function makeCommitment(string name, address owner, bytes32 secret) pure returns(bytes32)

func (*ContractCallerSession) MaxCommitmentAge

func (_Contract *ContractCallerSession) MaxCommitmentAge() (*big.Int, error)

MaxCommitmentAge is a free data retrieval call binding the contract method 0xce1e09c0.

Solidity: function maxCommitmentAge() view returns(uint256)

func (*ContractCallerSession) MinCommitmentAge

func (_Contract *ContractCallerSession) MinCommitmentAge() (*big.Int, error)

MinCommitmentAge is a free data retrieval call binding the contract method 0x8d839ffe.

Solidity: function minCommitmentAge() view returns(uint256)

func (*ContractCallerSession) Owner

func (_Contract *ContractCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*ContractCallerSession) RentPrice

func (_Contract *ContractCallerSession) RentPrice(name string, duration *big.Int) (*big.Int, error)

RentPrice is a free data retrieval call binding the contract method 0x83e7f6ff.

Solidity: function rentPrice(string name, uint256 duration) view returns(uint256)

func (*ContractCallerSession) SupportsInterface

func (_Contract *ContractCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)

func (*ContractCallerSession) Valid

func (_Contract *ContractCallerSession) Valid(name string) (bool, error)

Valid is a free data retrieval call binding the contract method 0x9791c097.

Solidity: function valid(string name) view returns(bool)

type ContractFilterer

type ContractFilterer struct {
	// contains filtered or unexported fields
}

ContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewContractFilterer

func NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error)

NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.

func (*ContractFilterer) FilterNameRegistered

func (_Contract *ContractFilterer) FilterNameRegistered(opts *bind.FilterOpts, label [][32]byte, owner []common.Address) (*ContractNameRegisteredIterator, error)

FilterNameRegistered is a free log retrieval operation binding the contract event 0xca6abbe9d7f11422cb6ca7629fbf6fe9efb1c621f71ce8f02b9f2a230097404f.

Solidity: event NameRegistered(string name, bytes32 indexed label, address indexed owner, uint256 cost, uint256 expires)

func (*ContractFilterer) FilterNameRenewed

func (_Contract *ContractFilterer) FilterNameRenewed(opts *bind.FilterOpts, label [][32]byte) (*ContractNameRenewedIterator, error)

FilterNameRenewed is a free log retrieval operation binding the contract event 0x3da24c024582931cfaf8267d8ed24d13a82a8068d5bd337d30ec45cea4e506ae.

Solidity: event NameRenewed(string name, bytes32 indexed label, uint256 cost, uint256 expires)

func (*ContractFilterer) FilterNewPriceOracle

func (_Contract *ContractFilterer) FilterNewPriceOracle(opts *bind.FilterOpts, oracle []common.Address) (*ContractNewPriceOracleIterator, error)

FilterNewPriceOracle is a free log retrieval operation binding the contract event 0xf261845a790fe29bbd6631e2ca4a5bdc83e6eed7c3271d9590d97287e00e9123.

Solidity: event NewPriceOracle(address indexed oracle)

func (*ContractFilterer) FilterOwnershipTransferred

func (_Contract *ContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ContractFilterer) ParseNameRegistered

func (_Contract *ContractFilterer) ParseNameRegistered(log types.Log) (*ContractNameRegistered, error)

ParseNameRegistered is a log parse operation binding the contract event 0xca6abbe9d7f11422cb6ca7629fbf6fe9efb1c621f71ce8f02b9f2a230097404f.

Solidity: event NameRegistered(string name, bytes32 indexed label, address indexed owner, uint256 cost, uint256 expires)

func (*ContractFilterer) ParseNameRenewed

func (_Contract *ContractFilterer) ParseNameRenewed(log types.Log) (*ContractNameRenewed, error)

ParseNameRenewed is a log parse operation binding the contract event 0x3da24c024582931cfaf8267d8ed24d13a82a8068d5bd337d30ec45cea4e506ae.

Solidity: event NameRenewed(string name, bytes32 indexed label, uint256 cost, uint256 expires)

func (*ContractFilterer) ParseNewPriceOracle

func (_Contract *ContractFilterer) ParseNewPriceOracle(log types.Log) (*ContractNewPriceOracle, error)

ParseNewPriceOracle is a log parse operation binding the contract event 0xf261845a790fe29bbd6631e2ca4a5bdc83e6eed7c3271d9590d97287e00e9123.

Solidity: event NewPriceOracle(address indexed oracle)

func (*ContractFilterer) ParseOwnershipTransferred

func (_Contract *ContractFilterer) ParseOwnershipTransferred(log types.Log) (*ContractOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*ContractFilterer) WatchNameRegistered

func (_Contract *ContractFilterer) WatchNameRegistered(opts *bind.WatchOpts, sink chan<- *ContractNameRegistered, label [][32]byte, owner []common.Address) (event.Subscription, error)

WatchNameRegistered is a free log subscription operation binding the contract event 0xca6abbe9d7f11422cb6ca7629fbf6fe9efb1c621f71ce8f02b9f2a230097404f.

Solidity: event NameRegistered(string name, bytes32 indexed label, address indexed owner, uint256 cost, uint256 expires)

func (*ContractFilterer) WatchNameRenewed

func (_Contract *ContractFilterer) WatchNameRenewed(opts *bind.WatchOpts, sink chan<- *ContractNameRenewed, label [][32]byte) (event.Subscription, error)

WatchNameRenewed is a free log subscription operation binding the contract event 0x3da24c024582931cfaf8267d8ed24d13a82a8068d5bd337d30ec45cea4e506ae.

Solidity: event NameRenewed(string name, bytes32 indexed label, uint256 cost, uint256 expires)

func (*ContractFilterer) WatchNewPriceOracle

func (_Contract *ContractFilterer) WatchNewPriceOracle(opts *bind.WatchOpts, sink chan<- *ContractNewPriceOracle, oracle []common.Address) (event.Subscription, error)

WatchNewPriceOracle is a free log subscription operation binding the contract event 0xf261845a790fe29bbd6631e2ca4a5bdc83e6eed7c3271d9590d97287e00e9123.

Solidity: event NewPriceOracle(address indexed oracle)

func (*ContractFilterer) WatchOwnershipTransferred

func (_Contract *ContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

type ContractNameRegistered

type ContractNameRegistered struct {
	Name    string
	Label   [32]byte
	Owner   common.Address
	Cost    *big.Int
	Expires *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ContractNameRegistered represents a NameRegistered event raised by the Contract contract.

type ContractNameRegisteredIterator

type ContractNameRegisteredIterator struct {
	Event *ContractNameRegistered // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ContractNameRegisteredIterator is returned from FilterNameRegistered and is used to iterate over the raw logs and unpacked data for NameRegistered events raised by the Contract contract.

func (*ContractNameRegisteredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ContractNameRegisteredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractNameRegisteredIterator) Next

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 ContractNameRenewed

type ContractNameRenewed struct {
	Name    string
	Label   [32]byte
	Cost    *big.Int
	Expires *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ContractNameRenewed represents a NameRenewed event raised by the Contract contract.

type ContractNameRenewedIterator

type ContractNameRenewedIterator struct {
	Event *ContractNameRenewed // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ContractNameRenewedIterator is returned from FilterNameRenewed and is used to iterate over the raw logs and unpacked data for NameRenewed events raised by the Contract contract.

func (*ContractNameRenewedIterator) Close

func (it *ContractNameRenewedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*ContractNameRenewedIterator) Error

func (it *ContractNameRenewedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractNameRenewedIterator) Next

func (it *ContractNameRenewedIterator) 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 ContractNewPriceOracle

type ContractNewPriceOracle struct {
	Oracle common.Address
	Raw    types.Log // Blockchain specific contextual infos
}

ContractNewPriceOracle represents a NewPriceOracle event raised by the Contract contract.

type ContractNewPriceOracleIterator

type ContractNewPriceOracleIterator struct {
	Event *ContractNewPriceOracle // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ContractNewPriceOracleIterator is returned from FilterNewPriceOracle and is used to iterate over the raw logs and unpacked data for NewPriceOracle events raised by the Contract contract.

func (*ContractNewPriceOracleIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ContractNewPriceOracleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractNewPriceOracleIterator) Next

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 ContractOwnershipTransferred

type ContractOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

ContractOwnershipTransferred represents a OwnershipTransferred event raised by the Contract contract.

type ContractOwnershipTransferredIterator

type ContractOwnershipTransferredIterator struct {
	Event *ContractOwnershipTransferred // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

ContractOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Contract contract.

func (*ContractOwnershipTransferredIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*ContractOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractOwnershipTransferredIterator) Next

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 ContractRaw

type ContractRaw struct {
	Contract *Contract // Generic contract binding to access the raw methods on
}

ContractRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*ContractRaw) Call

func (_Contract *ContractRaw) 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 (*ContractRaw) Transact

func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ContractRaw) Transfer

func (_Contract *ContractRaw) 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 ContractSession

type ContractSession struct {
	Contract     *Contract         // 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
}

ContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*ContractSession) Available

func (_Contract *ContractSession) Available(name string) (bool, error)

Available is a free data retrieval call binding the contract method 0xaeb8ce9b.

Solidity: function available(string name) view returns(bool)

func (*ContractSession) Commit

func (_Contract *ContractSession) Commit(commitment [32]byte) (*types.Transaction, error)

Commit is a paid mutator transaction binding the contract method 0xf14fcbc8.

Solidity: function commit(bytes32 commitment) returns()

func (*ContractSession) Commitments

func (_Contract *ContractSession) Commitments(arg0 [32]byte) (*big.Int, error)

Commitments is a free data retrieval call binding the contract method 0x839df945.

Solidity: function commitments(bytes32 ) view returns(uint256)

func (*ContractSession) IsOwner

func (_Contract *ContractSession) IsOwner() (bool, error)

IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.

Solidity: function isOwner() view returns(bool)

func (*ContractSession) MINREGISTRATIONDURATION

func (_Contract *ContractSession) MINREGISTRATIONDURATION() (*big.Int, error)

MINREGISTRATIONDURATION is a free data retrieval call binding the contract method 0x8a95b09f.

Solidity: function MIN_REGISTRATION_DURATION() view returns(uint256)

func (*ContractSession) MakeCommitment

func (_Contract *ContractSession) MakeCommitment(name string, owner common.Address, secret [32]byte) ([32]byte, error)

MakeCommitment is a free data retrieval call binding the contract method 0xf49826be.

Solidity: function makeCommitment(string name, address owner, bytes32 secret) pure returns(bytes32)

func (*ContractSession) MaxCommitmentAge

func (_Contract *ContractSession) MaxCommitmentAge() (*big.Int, error)

MaxCommitmentAge is a free data retrieval call binding the contract method 0xce1e09c0.

Solidity: function maxCommitmentAge() view returns(uint256)

func (*ContractSession) MinCommitmentAge

func (_Contract *ContractSession) MinCommitmentAge() (*big.Int, error)

MinCommitmentAge is a free data retrieval call binding the contract method 0x8d839ffe.

Solidity: function minCommitmentAge() view returns(uint256)

func (*ContractSession) Owner

func (_Contract *ContractSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*ContractSession) Register

func (_Contract *ContractSession) Register(name string, owner common.Address, duration *big.Int, secret [32]byte) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0x85f6d155.

Solidity: function register(string name, address owner, uint256 duration, bytes32 secret) payable returns()

func (*ContractSession) Renew

func (_Contract *ContractSession) Renew(name string, duration *big.Int) (*types.Transaction, error)

Renew is a paid mutator transaction binding the contract method 0xacf1a841.

Solidity: function renew(string name, uint256 duration) payable returns()

func (*ContractSession) RenounceOwnership

func (_Contract *ContractSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ContractSession) RentPrice

func (_Contract *ContractSession) RentPrice(name string, duration *big.Int) (*big.Int, error)

RentPrice is a free data retrieval call binding the contract method 0x83e7f6ff.

Solidity: function rentPrice(string name, uint256 duration) view returns(uint256)

func (*ContractSession) SetCommitmentAges

func (_Contract *ContractSession) SetCommitmentAges(_minCommitmentAge *big.Int, _maxCommitmentAge *big.Int) (*types.Transaction, error)

SetCommitmentAges is a paid mutator transaction binding the contract method 0x7e324479.

Solidity: function setCommitmentAges(uint256 _minCommitmentAge, uint256 _maxCommitmentAge) returns()

func (*ContractSession) SetPriceOracle

func (_Contract *ContractSession) SetPriceOracle(_prices common.Address) (*types.Transaction, error)

SetPriceOracle is a paid mutator transaction binding the contract method 0x530e784f.

Solidity: function setPriceOracle(address _prices) returns()

func (*ContractSession) SupportsInterface

func (_Contract *ContractSession) SupportsInterface(interfaceID [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceID) pure returns(bool)

func (*ContractSession) TransferOwnership

func (_Contract *ContractSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*ContractSession) Valid

func (_Contract *ContractSession) Valid(name string) (bool, error)

Valid is a free data retrieval call binding the contract method 0x9791c097.

Solidity: function valid(string name) view returns(bool)

func (*ContractSession) Withdraw

func (_Contract *ContractSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

type ContractTransactor

type ContractTransactor struct {
	// contains filtered or unexported fields
}

ContractTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewContractTransactor

func NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error)

NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.

func (*ContractTransactor) Commit

func (_Contract *ContractTransactor) Commit(opts *bind.TransactOpts, commitment [32]byte) (*types.Transaction, error)

Commit is a paid mutator transaction binding the contract method 0xf14fcbc8.

Solidity: function commit(bytes32 commitment) returns()

func (*ContractTransactor) Register

func (_Contract *ContractTransactor) Register(opts *bind.TransactOpts, name string, owner common.Address, duration *big.Int, secret [32]byte) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0x85f6d155.

Solidity: function register(string name, address owner, uint256 duration, bytes32 secret) payable returns()

func (*ContractTransactor) Renew

func (_Contract *ContractTransactor) Renew(opts *bind.TransactOpts, name string, duration *big.Int) (*types.Transaction, error)

Renew is a paid mutator transaction binding the contract method 0xacf1a841.

Solidity: function renew(string name, uint256 duration) payable returns()

func (*ContractTransactor) RenounceOwnership

func (_Contract *ContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ContractTransactor) SetCommitmentAges

func (_Contract *ContractTransactor) SetCommitmentAges(opts *bind.TransactOpts, _minCommitmentAge *big.Int, _maxCommitmentAge *big.Int) (*types.Transaction, error)

SetCommitmentAges is a paid mutator transaction binding the contract method 0x7e324479.

Solidity: function setCommitmentAges(uint256 _minCommitmentAge, uint256 _maxCommitmentAge) returns()

func (*ContractTransactor) SetPriceOracle

func (_Contract *ContractTransactor) SetPriceOracle(opts *bind.TransactOpts, _prices common.Address) (*types.Transaction, error)

SetPriceOracle is a paid mutator transaction binding the contract method 0x530e784f.

Solidity: function setPriceOracle(address _prices) returns()

func (*ContractTransactor) TransferOwnership

func (_Contract *ContractTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*ContractTransactor) Withdraw

func (_Contract *ContractTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

type ContractTransactorRaw

type ContractTransactorRaw struct {
	Contract *ContractTransactor // Generic write-only contract binding to access the raw methods on
}

ContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*ContractTransactorRaw) Transact

func (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*ContractTransactorRaw) Transfer

func (_Contract *ContractTransactorRaw) 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 ContractTransactorSession

type ContractTransactorSession struct {
	Contract     *ContractTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

ContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*ContractTransactorSession) Commit

func (_Contract *ContractTransactorSession) Commit(commitment [32]byte) (*types.Transaction, error)

Commit is a paid mutator transaction binding the contract method 0xf14fcbc8.

Solidity: function commit(bytes32 commitment) returns()

func (*ContractTransactorSession) Register

func (_Contract *ContractTransactorSession) Register(name string, owner common.Address, duration *big.Int, secret [32]byte) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0x85f6d155.

Solidity: function register(string name, address owner, uint256 duration, bytes32 secret) payable returns()

func (*ContractTransactorSession) Renew

func (_Contract *ContractTransactorSession) Renew(name string, duration *big.Int) (*types.Transaction, error)

Renew is a paid mutator transaction binding the contract method 0xacf1a841.

Solidity: function renew(string name, uint256 duration) payable returns()

func (*ContractTransactorSession) RenounceOwnership

func (_Contract *ContractTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*ContractTransactorSession) SetCommitmentAges

func (_Contract *ContractTransactorSession) SetCommitmentAges(_minCommitmentAge *big.Int, _maxCommitmentAge *big.Int) (*types.Transaction, error)

SetCommitmentAges is a paid mutator transaction binding the contract method 0x7e324479.

Solidity: function setCommitmentAges(uint256 _minCommitmentAge, uint256 _maxCommitmentAge) returns()

func (*ContractTransactorSession) SetPriceOracle

func (_Contract *ContractTransactorSession) SetPriceOracle(_prices common.Address) (*types.Transaction, error)

SetPriceOracle is a paid mutator transaction binding the contract method 0x530e784f.

Solidity: function setPriceOracle(address _prices) returns()

func (*ContractTransactorSession) TransferOwnership

func (_Contract *ContractTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*ContractTransactorSession) Withdraw

func (_Contract *ContractTransactorSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL