contract

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AppManagerABI = "" /* 2984-byte string literal not displayed */

AppManagerABI is the input ABI used to generate the binding from.

View Source
const AppManagerBin = `` /* 6404-byte string literal not displayed */

AppManagerBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppManager

type AppManager struct {
	AppManagerCaller     // Read-only binding to the contract
	AppManagerTransactor // Write-only binding to the contract
	AppManagerFilterer   // Log filterer for contract events
}

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

func DeployAppManager

func DeployAppManager(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *AppManager, error)

DeployAppManager deploys a new Ethereum contract, binding an instance of AppManager to it.

func NewAppManager

func NewAppManager(address common.Address, backend bind.ContractBackend) (*AppManager, error)

NewAppManager creates a new instance of AppManager, bound to a specific deployed contract.

type AppManagerCaller

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

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

func NewAppManagerCaller

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

NewAppManagerCaller creates a new read-only instance of AppManager, bound to a specific deployed contract.

func (*AppManagerCaller) GetAppCandidateAddrs

func (_AppManager *AppManagerCaller) GetAppCandidateAddrs(opts *bind.CallOpts, appId string) ([]common.Address, error)

GetAppCandidateAddrs is a free data retrieval call binding the contract method 0xfb068e15.

Solidity: function getAppCandidateAddrs(appId string) constant returns(address[])

func (*AppManagerCaller) GetAppConsensusType

func (_AppManager *AppManagerCaller) GetAppConsensusType(opts *bind.CallOpts, appId string) (uint8, error)

GetAppConsensusType is a free data retrieval call binding the contract method 0xae1d9067.

Solidity: function getAppConsensusType(appId string) constant returns(uint8)

func (*AppManagerCaller) GetAppCreatorAddr

func (_AppManager *AppManagerCaller) GetAppCreatorAddr(opts *bind.CallOpts, appId string) (common.Address, error)

GetAppCreatorAddr is a free data retrieval call binding the contract method 0x2d830ce8.

Solidity: function getAppCreatorAddr(appId string) constant returns(address)

func (*AppManagerCaller) IsAdmin

func (_AppManager *AppManagerCaller) IsAdmin(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0xe9e43f1f.

Solidity: function _isAdmin( address) constant returns(bool)

type AppManagerCallerRaw

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

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

func (*AppManagerCallerRaw) Call

func (_AppManager *AppManagerCallerRaw) 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 AppManagerCallerSession

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

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

func (*AppManagerCallerSession) GetAppCandidateAddrs

func (_AppManager *AppManagerCallerSession) GetAppCandidateAddrs(appId string) ([]common.Address, error)

GetAppCandidateAddrs is a free data retrieval call binding the contract method 0xfb068e15.

Solidity: function getAppCandidateAddrs(appId string) constant returns(address[])

func (*AppManagerCallerSession) GetAppConsensusType

func (_AppManager *AppManagerCallerSession) GetAppConsensusType(appId string) (uint8, error)

GetAppConsensusType is a free data retrieval call binding the contract method 0xae1d9067.

Solidity: function getAppConsensusType(appId string) constant returns(uint8)

func (*AppManagerCallerSession) GetAppCreatorAddr

func (_AppManager *AppManagerCallerSession) GetAppCreatorAddr(appId string) (common.Address, error)

GetAppCreatorAddr is a free data retrieval call binding the contract method 0x2d830ce8.

Solidity: function getAppCreatorAddr(appId string) constant returns(address)

func (*AppManagerCallerSession) IsAdmin

func (_AppManager *AppManagerCallerSession) IsAdmin(arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0xe9e43f1f.

Solidity: function _isAdmin( address) constant returns(bool)

type AppManagerFilterer

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

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

func NewAppManagerFilterer

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

NewAppManagerFilterer creates a new log filterer instance of AppManager, bound to a specific deployed contract.

func (*AppManagerFilterer) FilterLogAddAdmin

func (_AppManager *AppManagerFilterer) FilterLogAddAdmin(opts *bind.FilterOpts) (*AppManagerLogAddAdminIterator, error)

FilterLogAddAdmin is a free log retrieval operation binding the contract event 0xdf593c01aa2f7c955ab35aee0623fe0744c2117efb32343667f5b9660e9d5049.

Solidity: e LogAddAdmin(whoAdded address, newAdmin address)

func (*AppManagerFilterer) FilterLogRemoveAdmin

func (_AppManager *AppManagerFilterer) FilterLogRemoveAdmin(opts *bind.FilterOpts) (*AppManagerLogRemoveAdminIterator, error)

FilterLogRemoveAdmin is a free log retrieval operation binding the contract event 0x472fe119cc78dd3474799f043c04071f7092335f7d6e1a30eb4998940828b3e8.

Solidity: e LogRemoveAdmin(whoRemoved address, admin address)

func (*AppManagerFilterer) FilterOwnershipTransferred

func (_AppManager *AppManagerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*AppManagerOwnershipTransferredIterator, error)

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

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

func (*AppManagerFilterer) WatchLogAddAdmin

func (_AppManager *AppManagerFilterer) WatchLogAddAdmin(opts *bind.WatchOpts, sink chan<- *AppManagerLogAddAdmin) (event.Subscription, error)

WatchLogAddAdmin is a free log subscription operation binding the contract event 0xdf593c01aa2f7c955ab35aee0623fe0744c2117efb32343667f5b9660e9d5049.

Solidity: e LogAddAdmin(whoAdded address, newAdmin address)

func (*AppManagerFilterer) WatchLogRemoveAdmin

func (_AppManager *AppManagerFilterer) WatchLogRemoveAdmin(opts *bind.WatchOpts, sink chan<- *AppManagerLogRemoveAdmin) (event.Subscription, error)

WatchLogRemoveAdmin is a free log subscription operation binding the contract event 0x472fe119cc78dd3474799f043c04071f7092335f7d6e1a30eb4998940828b3e8.

Solidity: e LogRemoveAdmin(whoRemoved address, admin address)

func (*AppManagerFilterer) WatchOwnershipTransferred

func (_AppManager *AppManagerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *AppManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

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

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

type AppManagerLogAddAdmin

type AppManagerLogAddAdmin struct {
	WhoAdded common.Address
	NewAdmin common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

AppManagerLogAddAdmin represents a LogAddAdmin event raised by the AppManager contract.

type AppManagerLogAddAdminIterator

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

AppManagerLogAddAdminIterator is returned from FilterLogAddAdmin and is used to iterate over the raw logs and unpacked data for LogAddAdmin events raised by the AppManager contract.

func (*AppManagerLogAddAdminIterator) Close

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

func (*AppManagerLogAddAdminIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppManagerLogAddAdminIterator) 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 AppManagerLogRemoveAdmin

type AppManagerLogRemoveAdmin struct {
	WhoRemoved common.Address
	Admin      common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

AppManagerLogRemoveAdmin represents a LogRemoveAdmin event raised by the AppManager contract.

type AppManagerLogRemoveAdminIterator

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

AppManagerLogRemoveAdminIterator is returned from FilterLogRemoveAdmin and is used to iterate over the raw logs and unpacked data for LogRemoveAdmin events raised by the AppManager contract.

func (*AppManagerLogRemoveAdminIterator) Close

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

func (*AppManagerLogRemoveAdminIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppManagerLogRemoveAdminIterator) 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 AppManagerOwnershipTransferred

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

AppManagerOwnershipTransferred represents a OwnershipTransferred event raised by the AppManager contract.

type AppManagerOwnershipTransferredIterator

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

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

func (*AppManagerOwnershipTransferredIterator) Close

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

func (*AppManagerOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AppManagerOwnershipTransferredIterator) 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 AppManagerRaw

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

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

func (*AppManagerRaw) Call

func (_AppManager *AppManagerRaw) 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 (*AppManagerRaw) Transact

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

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

func (*AppManagerRaw) Transfer

func (_AppManager *AppManagerRaw) 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 AppManagerSession

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

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

func (*AppManagerSession) AddAdmin

func (_AppManager *AppManagerSession) AddAdmin(admin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(admin address) returns(bool)

func (*AppManagerSession) GetAppCandidateAddrs

func (_AppManager *AppManagerSession) GetAppCandidateAddrs(appId string) ([]common.Address, error)

GetAppCandidateAddrs is a free data retrieval call binding the contract method 0xfb068e15.

Solidity: function getAppCandidateAddrs(appId string) constant returns(address[])

func (*AppManagerSession) GetAppConsensusType

func (_AppManager *AppManagerSession) GetAppConsensusType(appId string) (uint8, error)

GetAppConsensusType is a free data retrieval call binding the contract method 0xae1d9067.

Solidity: function getAppConsensusType(appId string) constant returns(uint8)

func (*AppManagerSession) GetAppCreatorAddr

func (_AppManager *AppManagerSession) GetAppCreatorAddr(appId string) (common.Address, error)

GetAppCreatorAddr is a free data retrieval call binding the contract method 0x2d830ce8.

Solidity: function getAppCreatorAddr(appId string) constant returns(address)

func (*AppManagerSession) IsAdmin

func (_AppManager *AppManagerSession) IsAdmin(arg0 common.Address) (bool, error)

IsAdmin is a free data retrieval call binding the contract method 0xe9e43f1f.

Solidity: function _isAdmin( address) constant returns(bool)

func (*AppManagerSession) RemoveAdmin

func (_AppManager *AppManagerSession) RemoveAdmin(admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(admin address) returns(bool)

func (*AppManagerSession) SetAppCandidateAddrs

func (_AppManager *AppManagerSession) SetAppCandidateAddrs(appId string, addrs []common.Address) (*types.Transaction, error)

SetAppCandidateAddrs is a paid mutator transaction binding the contract method 0x668acc4a.

Solidity: function setAppCandidateAddrs(appId string, addrs address[]) returns()

func (*AppManagerSession) SetAppConsensusType

func (_AppManager *AppManagerSession) SetAppConsensusType(appId string, consensusType uint8) (*types.Transaction, error)

SetAppConsensusType is a paid mutator transaction binding the contract method 0x2feae2d0.

Solidity: function setAppConsensusType(appId string, consensusType uint8) returns()

func (*AppManagerSession) SetAppCreatorAddr

func (_AppManager *AppManagerSession) SetAppCreatorAddr(appId string, addr common.Address) (*types.Transaction, error)

SetAppCreatorAddr is a paid mutator transaction binding the contract method 0x3a34d6de.

Solidity: function setAppCreatorAddr(appId string, addr address) returns()

func (*AppManagerSession) TransferOwnership

func (_AppManager *AppManagerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(newOwner address) returns()

type AppManagerTransactor

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

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

func NewAppManagerTransactor

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

NewAppManagerTransactor creates a new write-only instance of AppManager, bound to a specific deployed contract.

func (*AppManagerTransactor) AddAdmin

func (_AppManager *AppManagerTransactor) AddAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(admin address) returns(bool)

func (*AppManagerTransactor) RemoveAdmin

func (_AppManager *AppManagerTransactor) RemoveAdmin(opts *bind.TransactOpts, admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(admin address) returns(bool)

func (*AppManagerTransactor) SetAppCandidateAddrs

func (_AppManager *AppManagerTransactor) SetAppCandidateAddrs(opts *bind.TransactOpts, appId string, addrs []common.Address) (*types.Transaction, error)

SetAppCandidateAddrs is a paid mutator transaction binding the contract method 0x668acc4a.

Solidity: function setAppCandidateAddrs(appId string, addrs address[]) returns()

func (*AppManagerTransactor) SetAppConsensusType

func (_AppManager *AppManagerTransactor) SetAppConsensusType(opts *bind.TransactOpts, appId string, consensusType uint8) (*types.Transaction, error)

SetAppConsensusType is a paid mutator transaction binding the contract method 0x2feae2d0.

Solidity: function setAppConsensusType(appId string, consensusType uint8) returns()

func (*AppManagerTransactor) SetAppCreatorAddr

func (_AppManager *AppManagerTransactor) SetAppCreatorAddr(opts *bind.TransactOpts, appId string, addr common.Address) (*types.Transaction, error)

SetAppCreatorAddr is a paid mutator transaction binding the contract method 0x3a34d6de.

Solidity: function setAppCreatorAddr(appId string, addr address) returns()

func (*AppManagerTransactor) TransferOwnership

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

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

Solidity: function transferOwnership(newOwner address) returns()

type AppManagerTransactorRaw

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

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

func (*AppManagerTransactorRaw) Transact

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

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

func (*AppManagerTransactorRaw) Transfer

func (_AppManager *AppManagerTransactorRaw) 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 AppManagerTransactorSession

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

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

func (*AppManagerTransactorSession) AddAdmin

func (_AppManager *AppManagerTransactorSession) AddAdmin(admin common.Address) (*types.Transaction, error)

AddAdmin is a paid mutator transaction binding the contract method 0x70480275.

Solidity: function addAdmin(admin address) returns(bool)

func (*AppManagerTransactorSession) RemoveAdmin

func (_AppManager *AppManagerTransactorSession) RemoveAdmin(admin common.Address) (*types.Transaction, error)

RemoveAdmin is a paid mutator transaction binding the contract method 0x1785f53c.

Solidity: function removeAdmin(admin address) returns(bool)

func (*AppManagerTransactorSession) SetAppCandidateAddrs

func (_AppManager *AppManagerTransactorSession) SetAppCandidateAddrs(appId string, addrs []common.Address) (*types.Transaction, error)

SetAppCandidateAddrs is a paid mutator transaction binding the contract method 0x668acc4a.

Solidity: function setAppCandidateAddrs(appId string, addrs address[]) returns()

func (*AppManagerTransactorSession) SetAppConsensusType

func (_AppManager *AppManagerTransactorSession) SetAppConsensusType(appId string, consensusType uint8) (*types.Transaction, error)

SetAppConsensusType is a paid mutator transaction binding the contract method 0x2feae2d0.

Solidity: function setAppConsensusType(appId string, consensusType uint8) returns()

func (*AppManagerTransactorSession) SetAppCreatorAddr

func (_AppManager *AppManagerTransactorSession) SetAppCreatorAddr(appId string, addr common.Address) (*types.Transaction, error)

SetAppCreatorAddr is a paid mutator transaction binding the contract method 0x3a34d6de.

Solidity: function setAppCreatorAddr(appId string, addr address) returns()

func (*AppManagerTransactorSession) TransferOwnership

func (_AppManager *AppManagerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(newOwner address) returns()

Jump to

Keyboard shortcuts

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