Documentation
¶
Index ¶
- Constants
- type Ad
- type KetherData
- type KetherHomepage
- type KetherHomepageCaller
- func (_KetherHomepage *KetherHomepageCaller) Ads(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- func (_KetherHomepage *KetherHomepageCaller) GetAdsLength(opts *bind.CallOpts) (*big.Int, error)
- func (_KetherHomepage *KetherHomepageCaller) Grid(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (bool, error)
- func (_KetherHomepage *KetherHomepageCaller) PixelsPerCell(opts *bind.CallOpts) (*big.Int, error)
- func (_KetherHomepage *KetherHomepageCaller) WeiPixelPrice(opts *bind.CallOpts) (*big.Int, error)
- type KetherHomepageCallerRaw
- type KetherHomepageCallerSession
- func (_KetherHomepage *KetherHomepageCallerSession) Ads(arg0 *big.Int) (struct{ ... }, error)
- func (_KetherHomepage *KetherHomepageCallerSession) GetAdsLength() (*big.Int, error)
- func (_KetherHomepage *KetherHomepageCallerSession) Grid(arg0 *big.Int, arg1 *big.Int) (bool, error)
- func (_KetherHomepage *KetherHomepageCallerSession) PixelsPerCell() (*big.Int, error)
- func (_KetherHomepage *KetherHomepageCallerSession) WeiPixelPrice() (*big.Int, error)
- type KetherHomepageRaw
- func (_KetherHomepage *KetherHomepageRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_KetherHomepage *KetherHomepageRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type KetherHomepageSession
- func (_KetherHomepage *KetherHomepageSession) Ads(arg0 *big.Int) (struct{ ... }, error)
- func (_KetherHomepage *KetherHomepageSession) Buy(_x *big.Int, _y *big.Int, _width *big.Int, _height *big.Int) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageSession) ForceNSFW(_idx *big.Int, _NSFW bool) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageSession) GetAdsLength() (*big.Int, error)
- func (_KetherHomepage *KetherHomepageSession) Grid(arg0 *big.Int, arg1 *big.Int) (bool, error)
- func (_KetherHomepage *KetherHomepageSession) PixelsPerCell() (*big.Int, error)
- func (_KetherHomepage *KetherHomepageSession) Publish(_idx *big.Int, _link string, _image string, _title string, _NSFW bool) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageSession) SetAdOwner(_idx *big.Int, _newOwner common.Address) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageSession) WeiPixelPrice() (*big.Int, error)
- func (_KetherHomepage *KetherHomepageSession) Withdraw() (*types.Transaction, error)
- type KetherHomepageTransactor
- func (_KetherHomepage *KetherHomepageTransactor) Buy(opts *bind.TransactOpts, _x *big.Int, _y *big.Int, _width *big.Int, ...) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageTransactor) ForceNSFW(opts *bind.TransactOpts, _idx *big.Int, _NSFW bool) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageTransactor) Publish(opts *bind.TransactOpts, _idx *big.Int, _link string, _image string, ...) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageTransactor) SetAdOwner(opts *bind.TransactOpts, _idx *big.Int, _newOwner common.Address) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
- type KetherHomepageTransactorRaw
- type KetherHomepageTransactorSession
- func (_KetherHomepage *KetherHomepageTransactorSession) Buy(_x *big.Int, _y *big.Int, _width *big.Int, _height *big.Int) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageTransactorSession) ForceNSFW(_idx *big.Int, _NSFW bool) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageTransactorSession) Publish(_idx *big.Int, _link string, _image string, _title string, _NSFW bool) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageTransactorSession) SetAdOwner(_idx *big.Int, _newOwner common.Address) (*types.Transaction, error)
- func (_KetherHomepage *KetherHomepageTransactorSession) Withdraw() (*types.Transaction, error)
- type KetherWatcher
Constants ¶
const KetherHomepageABI = "" /* 3541-byte string literal not displayed */
KetherHomepageABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ad ¶
type Ad struct { Idx int `json:"idx"` Owner string `json:"owner"` X int `json:"x"` Y int `json:"y"` Width int `json:"width"` Height int `json:"height"` Link string `json:"link,omitempty"` Image string `json:"image,omitempty"` Title string `json:"title,omitempty"` NSFW bool `json:"NSFW"` ForceNSFW bool `json:"forceNSFW"` ImageSize int `json:"imageSize"` }
type KetherData ¶
type KetherHomepage ¶
type KetherHomepage struct { KetherHomepageCaller // Read-only binding to the contract KetherHomepageTransactor // Write-only binding to the contract }
KetherHomepage is an auto generated Go binding around an Ethereum contract.
func NewKetherHomepage ¶
func NewKetherHomepage(address common.Address, backend bind.ContractBackend) (*KetherHomepage, error)
NewKetherHomepage creates a new instance of KetherHomepage, bound to a specific deployed contract.
type KetherHomepageCaller ¶
type KetherHomepageCaller struct {
// contains filtered or unexported fields
}
KetherHomepageCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewKetherHomepageCaller ¶
func NewKetherHomepageCaller(address common.Address, caller bind.ContractCaller) (*KetherHomepageCaller, error)
NewKetherHomepageCaller creates a new read-only instance of KetherHomepage, bound to a specific deployed contract.
func (*KetherHomepageCaller) Ads ¶
func (_KetherHomepage *KetherHomepageCaller) Ads(opts *bind.CallOpts, arg0 *big.Int) (struct { Owner common.Address X *big.Int Y *big.Int Width *big.Int Height *big.Int Link string Image string Title string NSFW bool ForceNSFW bool }, error)
Ads is a free data retrieval call binding the contract method 0x11a7a4c0.
Solidity: function ads( uint256) constant returns(owner address, x uint256, y uint256, width uint256, height uint256, link string, image string, title string, NSFW bool, forceNSFW bool)
func (*KetherHomepageCaller) GetAdsLength ¶
GetAdsLength is a free data retrieval call binding the contract method 0x7a6adab6.
Solidity: function getAdsLength() constant returns(uint256)
func (*KetherHomepageCaller) Grid ¶
func (_KetherHomepage *KetherHomepageCaller) Grid(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (bool, error)
Grid is a free data retrieval call binding the contract method 0x146008e3.
Solidity: function grid( uint256, uint256) constant returns(bool)
func (*KetherHomepageCaller) PixelsPerCell ¶
PixelsPerCell is a free data retrieval call binding the contract method 0x13f4b42c.
Solidity: function pixelsPerCell() constant returns(uint256)
func (*KetherHomepageCaller) WeiPixelPrice ¶
WeiPixelPrice is a free data retrieval call binding the contract method 0xd5bec84e.
Solidity: function weiPixelPrice() constant returns(uint256)
type KetherHomepageCallerRaw ¶
type KetherHomepageCallerRaw struct {
Contract *KetherHomepageCaller // Generic read-only contract binding to access the raw methods on
}
KetherHomepageCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*KetherHomepageCallerRaw) Call ¶
func (_KetherHomepage *KetherHomepageCallerRaw) 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 KetherHomepageCallerSession ¶
type KetherHomepageCallerSession struct { Contract *KetherHomepageCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
KetherHomepageCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*KetherHomepageCallerSession) Ads ¶
func (_KetherHomepage *KetherHomepageCallerSession) Ads(arg0 *big.Int) (struct { Owner common.Address X *big.Int Y *big.Int Width *big.Int Height *big.Int Link string Image string Title string NSFW bool ForceNSFW bool }, error)
Ads is a free data retrieval call binding the contract method 0x11a7a4c0.
Solidity: function ads( uint256) constant returns(owner address, x uint256, y uint256, width uint256, height uint256, link string, image string, title string, NSFW bool, forceNSFW bool)
func (*KetherHomepageCallerSession) GetAdsLength ¶
func (_KetherHomepage *KetherHomepageCallerSession) GetAdsLength() (*big.Int, error)
GetAdsLength is a free data retrieval call binding the contract method 0x7a6adab6.
Solidity: function getAdsLength() constant returns(uint256)
func (*KetherHomepageCallerSession) Grid ¶
func (_KetherHomepage *KetherHomepageCallerSession) Grid(arg0 *big.Int, arg1 *big.Int) (bool, error)
Grid is a free data retrieval call binding the contract method 0x146008e3.
Solidity: function grid( uint256, uint256) constant returns(bool)
func (*KetherHomepageCallerSession) PixelsPerCell ¶
func (_KetherHomepage *KetherHomepageCallerSession) PixelsPerCell() (*big.Int, error)
PixelsPerCell is a free data retrieval call binding the contract method 0x13f4b42c.
Solidity: function pixelsPerCell() constant returns(uint256)
func (*KetherHomepageCallerSession) WeiPixelPrice ¶
func (_KetherHomepage *KetherHomepageCallerSession) WeiPixelPrice() (*big.Int, error)
WeiPixelPrice is a free data retrieval call binding the contract method 0xd5bec84e.
Solidity: function weiPixelPrice() constant returns(uint256)
type KetherHomepageRaw ¶
type KetherHomepageRaw struct {
Contract *KetherHomepage // Generic contract binding to access the raw methods on
}
KetherHomepageRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*KetherHomepageRaw) Call ¶
func (_KetherHomepage *KetherHomepageRaw) 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 (*KetherHomepageRaw) Transact ¶
func (_KetherHomepage *KetherHomepageRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KetherHomepageRaw) Transfer ¶
func (_KetherHomepage *KetherHomepageRaw) 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 KetherHomepageSession ¶
type KetherHomepageSession struct { Contract *KetherHomepage // 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 }
KetherHomepageSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*KetherHomepageSession) Ads ¶
func (_KetherHomepage *KetherHomepageSession) Ads(arg0 *big.Int) (struct { Owner common.Address X *big.Int Y *big.Int Width *big.Int Height *big.Int Link string Image string Title string NSFW bool ForceNSFW bool }, error)
Ads is a free data retrieval call binding the contract method 0x11a7a4c0.
Solidity: function ads( uint256) constant returns(owner address, x uint256, y uint256, width uint256, height uint256, link string, image string, title string, NSFW bool, forceNSFW bool)
func (*KetherHomepageSession) Buy ¶
func (_KetherHomepage *KetherHomepageSession) Buy(_x *big.Int, _y *big.Int, _width *big.Int, _height *big.Int) (*types.Transaction, error)
Buy is a paid mutator transaction binding the contract method 0x1281311d.
Solidity: function buy(_x uint256, _y uint256, _width uint256, _height uint256) returns(idx uint256)
func (*KetherHomepageSession) ForceNSFW ¶
func (_KetherHomepage *KetherHomepageSession) ForceNSFW(_idx *big.Int, _NSFW bool) (*types.Transaction, error)
ForceNSFW is a paid mutator transaction binding the contract method 0xacff2fce.
Solidity: function forceNSFW(_idx uint256, _NSFW bool) returns()
func (*KetherHomepageSession) GetAdsLength ¶
func (_KetherHomepage *KetherHomepageSession) GetAdsLength() (*big.Int, error)
GetAdsLength is a free data retrieval call binding the contract method 0x7a6adab6.
Solidity: function getAdsLength() constant returns(uint256)
func (*KetherHomepageSession) Grid ¶
Grid is a free data retrieval call binding the contract method 0x146008e3.
Solidity: function grid( uint256, uint256) constant returns(bool)
func (*KetherHomepageSession) PixelsPerCell ¶
func (_KetherHomepage *KetherHomepageSession) PixelsPerCell() (*big.Int, error)
PixelsPerCell is a free data retrieval call binding the contract method 0x13f4b42c.
Solidity: function pixelsPerCell() constant returns(uint256)
func (*KetherHomepageSession) Publish ¶
func (_KetherHomepage *KetherHomepageSession) Publish(_idx *big.Int, _link string, _image string, _title string, _NSFW bool) (*types.Transaction, error)
Publish is a paid mutator transaction binding the contract method 0x45ebc145.
Solidity: function publish(_idx uint256, _link string, _image string, _title string, _NSFW bool) returns()
func (*KetherHomepageSession) SetAdOwner ¶
func (_KetherHomepage *KetherHomepageSession) SetAdOwner(_idx *big.Int, _newOwner common.Address) (*types.Transaction, error)
SetAdOwner is a paid mutator transaction binding the contract method 0x759c7a58.
Solidity: function setAdOwner(_idx uint256, _newOwner address) returns()
func (*KetherHomepageSession) WeiPixelPrice ¶
func (_KetherHomepage *KetherHomepageSession) WeiPixelPrice() (*big.Int, error)
WeiPixelPrice is a free data retrieval call binding the contract method 0xd5bec84e.
Solidity: function weiPixelPrice() constant returns(uint256)
func (*KetherHomepageSession) Withdraw ¶
func (_KetherHomepage *KetherHomepageSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type KetherHomepageTransactor ¶
type KetherHomepageTransactor struct {
// contains filtered or unexported fields
}
KetherHomepageTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewKetherHomepageTransactor ¶
func NewKetherHomepageTransactor(address common.Address, transactor bind.ContractTransactor) (*KetherHomepageTransactor, error)
NewKetherHomepageTransactor creates a new write-only instance of KetherHomepage, bound to a specific deployed contract.
func (*KetherHomepageTransactor) Buy ¶
func (_KetherHomepage *KetherHomepageTransactor) Buy(opts *bind.TransactOpts, _x *big.Int, _y *big.Int, _width *big.Int, _height *big.Int) (*types.Transaction, error)
Buy is a paid mutator transaction binding the contract method 0x1281311d.
Solidity: function buy(_x uint256, _y uint256, _width uint256, _height uint256) returns(idx uint256)
func (*KetherHomepageTransactor) ForceNSFW ¶
func (_KetherHomepage *KetherHomepageTransactor) ForceNSFW(opts *bind.TransactOpts, _idx *big.Int, _NSFW bool) (*types.Transaction, error)
ForceNSFW is a paid mutator transaction binding the contract method 0xacff2fce.
Solidity: function forceNSFW(_idx uint256, _NSFW bool) returns()
func (*KetherHomepageTransactor) Publish ¶
func (_KetherHomepage *KetherHomepageTransactor) Publish(opts *bind.TransactOpts, _idx *big.Int, _link string, _image string, _title string, _NSFW bool) (*types.Transaction, error)
Publish is a paid mutator transaction binding the contract method 0x45ebc145.
Solidity: function publish(_idx uint256, _link string, _image string, _title string, _NSFW bool) returns()
func (*KetherHomepageTransactor) SetAdOwner ¶
func (_KetherHomepage *KetherHomepageTransactor) SetAdOwner(opts *bind.TransactOpts, _idx *big.Int, _newOwner common.Address) (*types.Transaction, error)
SetAdOwner is a paid mutator transaction binding the contract method 0x759c7a58.
Solidity: function setAdOwner(_idx uint256, _newOwner address) returns()
func (*KetherHomepageTransactor) Withdraw ¶
func (_KetherHomepage *KetherHomepageTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type KetherHomepageTransactorRaw ¶
type KetherHomepageTransactorRaw struct {
Contract *KetherHomepageTransactor // Generic write-only contract binding to access the raw methods on
}
KetherHomepageTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*KetherHomepageTransactorRaw) Transact ¶
func (_KetherHomepage *KetherHomepageTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*KetherHomepageTransactorRaw) Transfer ¶
func (_KetherHomepage *KetherHomepageTransactorRaw) 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 KetherHomepageTransactorSession ¶
type KetherHomepageTransactorSession struct { Contract *KetherHomepageTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
KetherHomepageTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*KetherHomepageTransactorSession) Buy ¶
func (_KetherHomepage *KetherHomepageTransactorSession) Buy(_x *big.Int, _y *big.Int, _width *big.Int, _height *big.Int) (*types.Transaction, error)
Buy is a paid mutator transaction binding the contract method 0x1281311d.
Solidity: function buy(_x uint256, _y uint256, _width uint256, _height uint256) returns(idx uint256)
func (*KetherHomepageTransactorSession) ForceNSFW ¶
func (_KetherHomepage *KetherHomepageTransactorSession) ForceNSFW(_idx *big.Int, _NSFW bool) (*types.Transaction, error)
ForceNSFW is a paid mutator transaction binding the contract method 0xacff2fce.
Solidity: function forceNSFW(_idx uint256, _NSFW bool) returns()
func (*KetherHomepageTransactorSession) Publish ¶
func (_KetherHomepage *KetherHomepageTransactorSession) Publish(_idx *big.Int, _link string, _image string, _title string, _NSFW bool) (*types.Transaction, error)
Publish is a paid mutator transaction binding the contract method 0x45ebc145.
Solidity: function publish(_idx uint256, _link string, _image string, _title string, _NSFW bool) returns()
func (*KetherHomepageTransactorSession) SetAdOwner ¶
func (_KetherHomepage *KetherHomepageTransactorSession) SetAdOwner(_idx *big.Int, _newOwner common.Address) (*types.Transaction, error)
SetAdOwner is a paid mutator transaction binding the contract method 0x759c7a58.
Solidity: function setAdOwner(_idx uint256, _newOwner address) returns()
func (*KetherHomepageTransactorSession) Withdraw ¶
func (_KetherHomepage *KetherHomepageTransactorSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type KetherWatcher ¶
type KetherWatcher struct {
// contains filtered or unexported fields
}
func NewKetherWatcher ¶
func (*KetherWatcher) Watch ¶
func (w *KetherWatcher) Watch(duration time.Duration)