2018-07-11 00:25:45 -07:00
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package permissions
import (
2018-09-05 19:40:21 -07:00
"math/big"
2018-07-11 00:25:45 -07:00
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// PermissionsABI is the input ABI used to generate the binding from.
2018-09-19 20:18:39 -07:00
const PermissionsABI = "[{\"constant\":true,\"inputs\":[{\"name\":\"_enodeId\",\"type\":\"string\"}],\"name\":\"getVoteCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_enodeId\",\"type\":\"string\"},{\"name\":\"_voter\",\"type\":\"address\"}],\"name\":\"getVoteStatus\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_enodeId\",\"type\":\"string\"}],\"name\":\"approveNode\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getNumberOfAccounts\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_enodeId\",\"type\":\"string\"}],\"name\":\"getNodeStatus\",\"outputs\":[{\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_enodeId\",\"type\":\"string\"}],\"name\":\"deactivateNode\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_enodeId\",\"type\":\"string\"}],\"name\":\"proposeDeactivation\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_enodeId\",\"type\":\"string\"}],\"name\":\"blacklistNode\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_enodeId\",\"type\":\"string\"},{\"name\":\"_ipAddrPort\",\"type\":\"string\"},{\"name\":\"_discPort\",\"type\":\"string\"},{\"name\":\"_raftPort\",\"type\":\"string\"}],\"name\":\"proposeNodeBlacklisting\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getEnodeId\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"removeVoter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getNumberOfNodes\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_address\",\"type\":\"address\"},{\"name\":\"_accountAccess\",\"type\":\"uint8\"}],\"name\":\"updateAccountAccess\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_enodeId\",\"type\":\"string\"},{\"name\":\"_ipAddrPort\",\"type\":\"string\"},{\"name\":\"_discPort\",\"type\":\"string\"},{\"name\":\"_raftPort\",\"type\":\"string\"}],\"name\":\"proposeNode\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_index\",\"type\":\"uint256\"}],\"name\":\"getAccountAddress\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_address\",\"type\":\"address\"}],\"name\":\"addVoter\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_enodeId\",\"type\":\"string\"}],\"name\":\"NodeProposed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_enodeId\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_ipAddrPort\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_discPort\",\"type\":\"string\"},{\"indexed\":false,\"name\":\"_raftPort\",\"type\":\"string\"}],\"name\":\" NodeApprove
2018-07-11 00:25:45 -07:00
// Permissions is an auto generated Go binding around an Ethereum contract.
type Permissions struct {
PermissionsCaller // Read-only binding to the contract
PermissionsTransactor // Write-only binding to the contract
PermissionsFilterer // Log filterer for contract events
}
// PermissionsCaller is an auto generated read-only Go binding around an Ethereum contract.
type PermissionsCaller struct {
contract * bind . BoundContract // Generic contract wrapper for the low level calls
}
// PermissionsTransactor is an auto generated write-only Go binding around an Ethereum contract.
type PermissionsTransactor struct {
contract * bind . BoundContract // Generic contract wrapper for the low level calls
}
// PermissionsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type PermissionsFilterer struct {
contract * bind . BoundContract // Generic contract wrapper for the low level calls
}
// PermissionsSession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type PermissionsSession struct {
Contract * Permissions // 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
}
// PermissionsCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type PermissionsCallerSession struct {
Contract * PermissionsCaller // Generic contract caller binding to set the session for
CallOpts bind . CallOpts // Call options to use throughout this session
}
// PermissionsTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type PermissionsTransactorSession struct {
Contract * PermissionsTransactor // Generic contract transactor binding to set the session for
TransactOpts bind . TransactOpts // Transaction auth options to use throughout this session
}
// PermissionsRaw is an auto generated low-level Go binding around an Ethereum contract.
type PermissionsRaw struct {
Contract * Permissions // Generic contract binding to access the raw methods on
}
// PermissionsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type PermissionsCallerRaw struct {
Contract * PermissionsCaller // Generic read-only contract binding to access the raw methods on
}
// PermissionsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type PermissionsTransactorRaw struct {
Contract * PermissionsTransactor // Generic write-only contract binding to access the raw methods on
}
// NewPermissions creates a new instance of Permissions, bound to a specific deployed contract.
func NewPermissions ( address common . Address , backend bind . ContractBackend ) ( * Permissions , error ) {
contract , err := bindPermissions ( address , backend , backend , backend )
if err != nil {
return nil , err
}
return & Permissions { PermissionsCaller : PermissionsCaller { contract : contract } , PermissionsTransactor : PermissionsTransactor { contract : contract } , PermissionsFilterer : PermissionsFilterer { contract : contract } } , nil
}
// NewPermissionsCaller creates a new read-only instance of Permissions, bound to a specific deployed contract.
func NewPermissionsCaller ( address common . Address , caller bind . ContractCaller ) ( * PermissionsCaller , error ) {
contract , err := bindPermissions ( address , caller , nil , nil )
if err != nil {
return nil , err
}
return & PermissionsCaller { contract : contract } , nil
}
// NewPermissionsTransactor creates a new write-only instance of Permissions, bound to a specific deployed contract.
func NewPermissionsTransactor ( address common . Address , transactor bind . ContractTransactor ) ( * PermissionsTransactor , error ) {
contract , err := bindPermissions ( address , nil , transactor , nil )
if err != nil {
return nil , err
}
return & PermissionsTransactor { contract : contract } , nil
}
// NewPermissionsFilterer creates a new log filterer instance of Permissions, bound to a specific deployed contract.
func NewPermissionsFilterer ( address common . Address , filterer bind . ContractFilterer ) ( * PermissionsFilterer , error ) {
contract , err := bindPermissions ( address , nil , nil , filterer )
if err != nil {
return nil , err
}
return & PermissionsFilterer { contract : contract } , nil
}
// bindPermissions binds a generic wrapper to an already deployed contract.
func bindPermissions ( address common . Address , caller bind . ContractCaller , transactor bind . ContractTransactor , filterer bind . ContractFilterer ) ( * bind . BoundContract , error ) {
parsed , err := abi . JSON ( strings . NewReader ( PermissionsABI ) )
if err != nil {
return nil , err
}
return bind . NewBoundContract ( address , parsed , caller , transactor , filterer ) , nil
}
// 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 ( _Permissions * PermissionsRaw ) Call ( opts * bind . CallOpts , result interface { } , method string , params ... interface { } ) error {
return _Permissions . Contract . PermissionsCaller . contract . Call ( opts , result , method , params ... )
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func ( _Permissions * PermissionsRaw ) Transfer ( opts * bind . TransactOpts ) ( * types . Transaction , error ) {
return _Permissions . Contract . PermissionsTransactor . contract . Transfer ( opts )
}
// Transact invokes the (paid) contract method with params as input values.
func ( _Permissions * PermissionsRaw ) Transact ( opts * bind . TransactOpts , method string , params ... interface { } ) ( * types . Transaction , error ) {
return _Permissions . Contract . PermissionsTransactor . contract . Transact ( opts , method , params ... )
}
// 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 ( _Permissions * PermissionsCallerRaw ) Call ( opts * bind . CallOpts , result interface { } , method string , params ... interface { } ) error {
return _Permissions . Contract . contract . Call ( opts , result , method , params ... )
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func ( _Permissions * PermissionsTransactorRaw ) Transfer ( opts * bind . TransactOpts ) ( * types . Transaction , error ) {
return _Permissions . Contract . contract . Transfer ( opts )
}
// Transact invokes the (paid) contract method with params as input values.
func ( _Permissions * PermissionsTransactorRaw ) Transact ( opts * bind . TransactOpts , method string , params ... interface { } ) ( * types . Transaction , error ) {
return _Permissions . Contract . contract . Transact ( opts , method , params ... )
}
2018-09-05 19:40:21 -07:00
// GetAccountAddress is a free data retrieval call binding the contract method 0xdb4cf8e6.
//
// Solidity: function getAccountAddress(_index uint256) constant returns(address)
func ( _Permissions * PermissionsCaller ) GetAccountAddress ( opts * bind . CallOpts , _index * big . Int ) ( common . Address , error ) {
var (
ret0 = new ( common . Address )
)
out := ret0
err := _Permissions . contract . Call ( opts , out , "getAccountAddress" , _index )
return * ret0 , err
}
// GetAccountAddress is a free data retrieval call binding the contract method 0xdb4cf8e6.
//
// Solidity: function getAccountAddress(_index uint256) constant returns(address)
func ( _Permissions * PermissionsSession ) GetAccountAddress ( _index * big . Int ) ( common . Address , error ) {
return _Permissions . Contract . GetAccountAddress ( & _Permissions . CallOpts , _index )
}
// GetAccountAddress is a free data retrieval call binding the contract method 0xdb4cf8e6.
//
// Solidity: function getAccountAddress(_index uint256) constant returns(address)
func ( _Permissions * PermissionsCallerSession ) GetAccountAddress ( _index * big . Int ) ( common . Address , error ) {
return _Permissions . Contract . GetAccountAddress ( & _Permissions . CallOpts , _index )
}
// GetEnodeId is a free data retrieval call binding the contract method 0x769b24f2.
//
// Solidity: function getEnodeId(_index uint256) constant returns(string)
func ( _Permissions * PermissionsCaller ) GetEnodeId ( opts * bind . CallOpts , _index * big . Int ) ( string , error ) {
var (
ret0 = new ( string )
)
out := ret0
err := _Permissions . contract . Call ( opts , out , "getEnodeId" , _index )
return * ret0 , err
}
// GetEnodeId is a free data retrieval call binding the contract method 0x769b24f2.
//
// Solidity: function getEnodeId(_index uint256) constant returns(string)
func ( _Permissions * PermissionsSession ) GetEnodeId ( _index * big . Int ) ( string , error ) {
return _Permissions . Contract . GetEnodeId ( & _Permissions . CallOpts , _index )
}
// GetEnodeId is a free data retrieval call binding the contract method 0x769b24f2.
//
// Solidity: function getEnodeId(_index uint256) constant returns(string)
func ( _Permissions * PermissionsCallerSession ) GetEnodeId ( _index * big . Int ) ( string , error ) {
return _Permissions . Contract . GetEnodeId ( & _Permissions . CallOpts , _index )
}
2018-07-11 00:25:45 -07:00
// GetNodeStatus is a free data retrieval call binding the contract method 0x397eeccb.
//
2018-09-05 19:40:21 -07:00
// Solidity: function getNodeStatus(_enodeId string) constant returns(uint8)
2018-07-11 00:25:45 -07:00
func ( _Permissions * PermissionsCaller ) GetNodeStatus ( opts * bind . CallOpts , _enodeId string ) ( uint8 , error ) {
var (
ret0 = new ( uint8 )
)
out := ret0
err := _Permissions . contract . Call ( opts , out , "getNodeStatus" , _enodeId )
return * ret0 , err
}
// GetNodeStatus is a free data retrieval call binding the contract method 0x397eeccb.
//
2018-09-05 19:40:21 -07:00
// Solidity: function getNodeStatus(_enodeId string) constant returns(uint8)
2018-07-11 00:25:45 -07:00
func ( _Permissions * PermissionsSession ) GetNodeStatus ( _enodeId string ) ( uint8 , error ) {
return _Permissions . Contract . GetNodeStatus ( & _Permissions . CallOpts , _enodeId )
}
// GetNodeStatus is a free data retrieval call binding the contract method 0x397eeccb.
//
2018-09-05 19:40:21 -07:00
// Solidity: function getNodeStatus(_enodeId string) constant returns(uint8)
2018-07-11 00:25:45 -07:00
func ( _Permissions * PermissionsCallerSession ) GetNodeStatus ( _enodeId string ) ( uint8 , error ) {
return _Permissions . Contract . GetNodeStatus ( & _Permissions . CallOpts , _enodeId )
}
2018-09-05 19:40:21 -07:00
// GetNumberOfAccounts is a free data retrieval call binding the contract method 0x309e36ef.
2018-07-11 00:25:45 -07:00
//
2018-09-05 19:40:21 -07:00
// Solidity: function getNumberOfAccounts() constant returns(uint256)
func ( _Permissions * PermissionsCaller ) GetNumberOfAccounts ( opts * bind . CallOpts ) ( * big . Int , error ) {
var (
ret0 = new ( * big . Int )
)
out := ret0
err := _Permissions . contract . Call ( opts , out , "getNumberOfAccounts" )
return * ret0 , err
2018-07-11 00:25:45 -07:00
}
2018-09-05 19:40:21 -07:00
// GetNumberOfAccounts is a free data retrieval call binding the contract method 0x309e36ef.
2018-07-11 00:25:45 -07:00
//
2018-09-05 19:40:21 -07:00
// Solidity: function getNumberOfAccounts() constant returns(uint256)
func ( _Permissions * PermissionsSession ) GetNumberOfAccounts ( ) ( * big . Int , error ) {
return _Permissions . Contract . GetNumberOfAccounts ( & _Permissions . CallOpts )
2018-07-11 00:25:45 -07:00
}
2018-09-05 19:40:21 -07:00
// GetNumberOfAccounts is a free data retrieval call binding the contract method 0x309e36ef.
2018-07-11 00:25:45 -07:00
//
2018-09-05 19:40:21 -07:00
// Solidity: function getNumberOfAccounts() constant returns(uint256)
func ( _Permissions * PermissionsCallerSession ) GetNumberOfAccounts ( ) ( * big . Int , error ) {
return _Permissions . Contract . GetNumberOfAccounts ( & _Permissions . CallOpts )
}
// GetNumberOfNodes is a free data retrieval call binding the contract method 0xb81c806a.
//
// Solidity: function getNumberOfNodes() constant returns(uint256)
func ( _Permissions * PermissionsCaller ) GetNumberOfNodes ( opts * bind . CallOpts ) ( * big . Int , error ) {
var (
ret0 = new ( * big . Int )
)
out := ret0
err := _Permissions . contract . Call ( opts , out , "getNumberOfNodes" )
return * ret0 , err
}
// GetNumberOfNodes is a free data retrieval call binding the contract method 0xb81c806a.
//
// Solidity: function getNumberOfNodes() constant returns(uint256)
func ( _Permissions * PermissionsSession ) GetNumberOfNodes ( ) ( * big . Int , error ) {
return _Permissions . Contract . GetNumberOfNodes ( & _Permissions . CallOpts )
}
// GetNumberOfNodes is a free data retrieval call binding the contract method 0xb81c806a.
//
// Solidity: function getNumberOfNodes() constant returns(uint256)
func ( _Permissions * PermissionsCallerSession ) GetNumberOfNodes ( ) ( * big . Int , error ) {
return _Permissions . Contract . GetNumberOfNodes ( & _Permissions . CallOpts )
}
// GetVoteCount is a free data retrieval call binding the contract method 0x069953a7.
//
// Solidity: function getVoteCount(_enodeId string) constant returns(uint256)
func ( _Permissions * PermissionsCaller ) GetVoteCount ( opts * bind . CallOpts , _enodeId string ) ( * big . Int , error ) {
var (
ret0 = new ( * big . Int )
)
out := ret0
err := _Permissions . contract . Call ( opts , out , "getVoteCount" , _enodeId )
return * ret0 , err
}
// GetVoteCount is a free data retrieval call binding the contract method 0x069953a7.
//
// Solidity: function getVoteCount(_enodeId string) constant returns(uint256)
func ( _Permissions * PermissionsSession ) GetVoteCount ( _enodeId string ) ( * big . Int , error ) {
return _Permissions . Contract . GetVoteCount ( & _Permissions . CallOpts , _enodeId )
}
// GetVoteCount is a free data retrieval call binding the contract method 0x069953a7.
//
// Solidity: function getVoteCount(_enodeId string) constant returns(uint256)
func ( _Permissions * PermissionsCallerSession ) GetVoteCount ( _enodeId string ) ( * big . Int , error ) {
return _Permissions . Contract . GetVoteCount ( & _Permissions . CallOpts , _enodeId )
}
// GetVoteStatus is a free data retrieval call binding the contract method 0x0fdc2150.
//
// Solidity: function getVoteStatus(_enodeId string, _voter address) constant returns(bool)
func ( _Permissions * PermissionsCaller ) GetVoteStatus ( opts * bind . CallOpts , _enodeId string , _voter common . Address ) ( bool , error ) {
var (
ret0 = new ( bool )
)
out := ret0
err := _Permissions . contract . Call ( opts , out , "getVoteStatus" , _enodeId , _voter )
return * ret0 , err
}
// GetVoteStatus is a free data retrieval call binding the contract method 0x0fdc2150.
//
// Solidity: function getVoteStatus(_enodeId string, _voter address) constant returns(bool)
func ( _Permissions * PermissionsSession ) GetVoteStatus ( _enodeId string , _voter common . Address ) ( bool , error ) {
return _Permissions . Contract . GetVoteStatus ( & _Permissions . CallOpts , _enodeId , _voter )
}
// GetVoteStatus is a free data retrieval call binding the contract method 0x0fdc2150.
//
// Solidity: function getVoteStatus(_enodeId string, _voter address) constant returns(bool)
func ( _Permissions * PermissionsCallerSession ) GetVoteStatus ( _enodeId string , _voter common . Address ) ( bool , error ) {
return _Permissions . Contract . GetVoteStatus ( & _Permissions . CallOpts , _enodeId , _voter )
2018-07-11 00:25:45 -07:00
}
2018-09-19 20:18:39 -07:00
// AddVoter is a paid mutator transaction binding the contract method 0xf4ab9adf.
2018-08-31 04:35:35 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function addVoter(_address address) returns()
func ( _Permissions * PermissionsTransactor ) AddVoter ( opts * bind . TransactOpts , _address common . Address ) ( * types . Transaction , error ) {
return _Permissions . contract . Transact ( opts , "addVoter" , _address )
2018-08-31 04:35:35 -07:00
}
2018-09-19 20:18:39 -07:00
// AddVoter is a paid mutator transaction binding the contract method 0xf4ab9adf.
2018-08-31 04:35:35 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function addVoter(_address address) returns()
func ( _Permissions * PermissionsSession ) AddVoter ( _address common . Address ) ( * types . Transaction , error ) {
return _Permissions . Contract . AddVoter ( & _Permissions . TransactOpts , _address )
2018-08-31 04:35:35 -07:00
}
2018-09-19 20:18:39 -07:00
// AddVoter is a paid mutator transaction binding the contract method 0xf4ab9adf.
2018-08-31 04:35:35 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function addVoter(_address address) returns()
func ( _Permissions * PermissionsTransactorSession ) AddVoter ( _address common . Address ) ( * types . Transaction , error ) {
return _Permissions . Contract . AddVoter ( & _Permissions . TransactOpts , _address )
2018-08-31 04:35:35 -07:00
}
2018-09-19 20:18:39 -07:00
// ApproveNode is a paid mutator transaction binding the contract method 0x21c67088.
2018-07-11 00:25:45 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function approveNode(_enodeId string) returns()
func ( _Permissions * PermissionsTransactor ) ApproveNode ( opts * bind . TransactOpts , _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . contract . Transact ( opts , "approveNode" , _enodeId )
2018-07-11 00:25:45 -07:00
}
2018-09-19 20:18:39 -07:00
// ApproveNode is a paid mutator transaction binding the contract method 0x21c67088.
2018-07-11 00:25:45 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function approveNode(_enodeId string) returns()
func ( _Permissions * PermissionsSession ) ApproveNode ( _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . Contract . ApproveNode ( & _Permissions . TransactOpts , _enodeId )
2018-07-11 00:25:45 -07:00
}
2018-09-19 20:18:39 -07:00
// ApproveNode is a paid mutator transaction binding the contract method 0x21c67088.
2018-07-11 00:25:45 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function approveNode(_enodeId string) returns()
func ( _Permissions * PermissionsTransactorSession ) ApproveNode ( _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . Contract . ApproveNode ( & _Permissions . TransactOpts , _enodeId )
2018-07-11 00:25:45 -07:00
}
2018-09-19 20:18:39 -07:00
// BlacklistNode is a paid mutator transaction binding the contract method 0x487363f9.
2018-07-11 00:25:45 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function blacklistNode(_enodeId string) returns()
func ( _Permissions * PermissionsTransactor ) BlacklistNode ( opts * bind . TransactOpts , _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . contract . Transact ( opts , "blacklistNode" , _enodeId )
2018-07-11 00:25:45 -07:00
}
2018-09-19 20:18:39 -07:00
// BlacklistNode is a paid mutator transaction binding the contract method 0x487363f9.
2018-07-11 00:25:45 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function blacklistNode(_enodeId string) returns()
func ( _Permissions * PermissionsSession ) BlacklistNode ( _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . Contract . BlacklistNode ( & _Permissions . TransactOpts , _enodeId )
2018-07-11 00:25:45 -07:00
}
2018-09-19 20:18:39 -07:00
// BlacklistNode is a paid mutator transaction binding the contract method 0x487363f9.
2018-07-11 00:25:45 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function blacklistNode(_enodeId string) returns()
func ( _Permissions * PermissionsTransactorSession ) BlacklistNode ( _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . Contract . BlacklistNode ( & _Permissions . TransactOpts , _enodeId )
2018-07-11 00:25:45 -07:00
}
2018-09-19 20:18:39 -07:00
// DeactivateNode is a paid mutator transaction binding the contract method 0x420c26de.
2018-08-31 04:35:35 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function deactivateNode(_enodeId string) returns()
func ( _Permissions * PermissionsTransactor ) DeactivateNode ( opts * bind . TransactOpts , _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . contract . Transact ( opts , "deactivateNode" , _enodeId )
2018-08-31 04:35:35 -07:00
}
2018-09-19 20:18:39 -07:00
// DeactivateNode is a paid mutator transaction binding the contract method 0x420c26de.
2018-08-31 04:35:35 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function deactivateNode(_enodeId string) returns()
func ( _Permissions * PermissionsSession ) DeactivateNode ( _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . Contract . DeactivateNode ( & _Permissions . TransactOpts , _enodeId )
2018-08-31 04:35:35 -07:00
}
2018-09-19 20:18:39 -07:00
// DeactivateNode is a paid mutator transaction binding the contract method 0x420c26de.
2018-08-31 04:35:35 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function deactivateNode(_enodeId string) returns()
func ( _Permissions * PermissionsTransactorSession ) DeactivateNode ( _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . Contract . DeactivateNode ( & _Permissions . TransactOpts , _enodeId )
2018-08-31 04:35:35 -07:00
}
2018-09-19 20:18:39 -07:00
// ProposeDeactivation is a paid mutator transaction binding the contract method 0x47b8fe57.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function proposeDeactivation(_enodeId string) returns()
func ( _Permissions * PermissionsTransactor ) ProposeDeactivation ( opts * bind . TransactOpts , _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . contract . Transact ( opts , "proposeDeactivation" , _enodeId )
2018-09-05 19:40:21 -07:00
}
2018-09-19 20:18:39 -07:00
// ProposeDeactivation is a paid mutator transaction binding the contract method 0x47b8fe57.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function proposeDeactivation(_enodeId string) returns()
func ( _Permissions * PermissionsSession ) ProposeDeactivation ( _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . Contract . ProposeDeactivation ( & _Permissions . TransactOpts , _enodeId )
2018-09-05 19:40:21 -07:00
}
2018-09-19 20:18:39 -07:00
// ProposeDeactivation is a paid mutator transaction binding the contract method 0x47b8fe57.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function proposeDeactivation(_enodeId string) returns()
func ( _Permissions * PermissionsTransactorSession ) ProposeDeactivation ( _enodeId string ) ( * types . Transaction , error ) {
return _Permissions . Contract . ProposeDeactivation ( & _Permissions . TransactOpts , _enodeId )
2018-09-05 19:40:21 -07:00
}
2018-09-19 20:18:39 -07:00
// ProposeNode is a paid mutator transaction binding the contract method 0xc7ab7ccf.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function proposeNode(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string) returns()
func ( _Permissions * PermissionsTransactor ) ProposeNode ( opts * bind . TransactOpts , _enodeId string , _ipAddrPort string , _discPort string , _raftPort string ) ( * types . Transaction , error ) {
return _Permissions . contract . Transact ( opts , "proposeNode" , _enodeId , _ipAddrPort , _discPort , _raftPort )
2018-09-05 19:40:21 -07:00
}
2018-09-19 20:18:39 -07:00
// ProposeNode is a paid mutator transaction binding the contract method 0xc7ab7ccf.
2018-08-05 22:26:29 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function proposeNode(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string) returns()
func ( _Permissions * PermissionsSession ) ProposeNode ( _enodeId string , _ipAddrPort string , _discPort string , _raftPort string ) ( * types . Transaction , error ) {
return _Permissions . Contract . ProposeNode ( & _Permissions . TransactOpts , _enodeId , _ipAddrPort , _discPort , _raftPort )
2018-09-05 19:40:21 -07:00
}
2018-09-19 20:18:39 -07:00
// ProposeNode is a paid mutator transaction binding the contract method 0xc7ab7ccf.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function proposeNode(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string) returns()
func ( _Permissions * PermissionsTransactorSession ) ProposeNode ( _enodeId string , _ipAddrPort string , _discPort string , _raftPort string ) ( * types . Transaction , error ) {
return _Permissions . Contract . ProposeNode ( & _Permissions . TransactOpts , _enodeId , _ipAddrPort , _discPort , _raftPort )
2018-09-05 19:40:21 -07:00
}
2018-09-19 20:18:39 -07:00
// ProposeNodeBlacklisting is a paid mutator transaction binding the contract method 0x60514a5a.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function proposeNodeBlacklisting(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string) returns()
func ( _Permissions * PermissionsTransactor ) ProposeNodeBlacklisting ( opts * bind . TransactOpts , _enodeId string , _ipAddrPort string , _discPort string , _raftPort string ) ( * types . Transaction , error ) {
return _Permissions . contract . Transact ( opts , "proposeNodeBlacklisting" , _enodeId , _ipAddrPort , _discPort , _raftPort )
2018-09-05 19:40:21 -07:00
}
2018-09-19 20:18:39 -07:00
// ProposeNodeBlacklisting is a paid mutator transaction binding the contract method 0x60514a5a.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function proposeNodeBlacklisting(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string) returns()
func ( _Permissions * PermissionsSession ) ProposeNodeBlacklisting ( _enodeId string , _ipAddrPort string , _discPort string , _raftPort string ) ( * types . Transaction , error ) {
return _Permissions . Contract . ProposeNodeBlacklisting ( & _Permissions . TransactOpts , _enodeId , _ipAddrPort , _discPort , _raftPort )
2018-09-05 19:40:21 -07:00
}
2018-09-19 20:18:39 -07:00
// ProposeNodeBlacklisting is a paid mutator transaction binding the contract method 0x60514a5a.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: function proposeNodeBlacklisting(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string) returns()
func ( _Permissions * PermissionsTransactorSession ) ProposeNodeBlacklisting ( _enodeId string , _ipAddrPort string , _discPort string , _raftPort string ) ( * types . Transaction , error ) {
return _Permissions . Contract . ProposeNodeBlacklisting ( & _Permissions . TransactOpts , _enodeId , _ipAddrPort , _discPort , _raftPort )
2018-08-05 22:26:29 -07:00
}
2018-09-05 19:40:21 -07:00
// RemoveVoter is a paid mutator transaction binding the contract method 0x86c1ff68.
2018-08-05 22:26:29 -07:00
//
2018-09-05 19:40:21 -07:00
// Solidity: function removeVoter(_address address) returns()
func ( _Permissions * PermissionsTransactor ) RemoveVoter ( opts * bind . TransactOpts , _address common . Address ) ( * types . Transaction , error ) {
return _Permissions . contract . Transact ( opts , "removeVoter" , _address )
2018-08-05 22:26:29 -07:00
}
2018-09-05 19:40:21 -07:00
// RemoveVoter is a paid mutator transaction binding the contract method 0x86c1ff68.
2018-08-05 22:26:29 -07:00
//
2018-09-05 19:40:21 -07:00
// Solidity: function removeVoter(_address address) returns()
func ( _Permissions * PermissionsSession ) RemoveVoter ( _address common . Address ) ( * types . Transaction , error ) {
return _Permissions . Contract . RemoveVoter ( & _Permissions . TransactOpts , _address )
2018-08-05 22:26:29 -07:00
}
2018-09-05 19:40:21 -07:00
// RemoveVoter is a paid mutator transaction binding the contract method 0x86c1ff68.
//
// Solidity: function removeVoter(_address address) returns()
func ( _Permissions * PermissionsTransactorSession ) RemoveVoter ( _address common . Address ) ( * types . Transaction , error ) {
return _Permissions . Contract . RemoveVoter ( & _Permissions . TransactOpts , _address )
}
// UpdateAccountAccess is a paid mutator transaction binding the contract method 0xc6962b99.
//
// Solidity: function updateAccountAccess(_address address, _accountAccess uint8) returns()
func ( _Permissions * PermissionsTransactor ) UpdateAccountAccess ( opts * bind . TransactOpts , _address common . Address , _accountAccess uint8 ) ( * types . Transaction , error ) {
return _Permissions . contract . Transact ( opts , "updateAccountAccess" , _address , _accountAccess )
}
// UpdateAccountAccess is a paid mutator transaction binding the contract method 0xc6962b99.
//
// Solidity: function updateAccountAccess(_address address, _accountAccess uint8) returns()
func ( _Permissions * PermissionsSession ) UpdateAccountAccess ( _address common . Address , _accountAccess uint8 ) ( * types . Transaction , error ) {
return _Permissions . Contract . UpdateAccountAccess ( & _Permissions . TransactOpts , _address , _accountAccess )
}
// UpdateAccountAccess is a paid mutator transaction binding the contract method 0xc6962b99.
//
// Solidity: function updateAccountAccess(_address address, _accountAccess uint8) returns()
func ( _Permissions * PermissionsTransactorSession ) UpdateAccountAccess ( _address common . Address , _accountAccess uint8 ) ( * types . Transaction , error ) {
return _Permissions . Contract . UpdateAccountAccess ( & _Permissions . TransactOpts , _address , _accountAccess )
}
// PermissionsAccountAccessModifiedIterator is returned from FilterAccountAccessModified and is used to iterate over the raw logs and unpacked data for AccountAccessModified events raised by the Permissions contract.
type PermissionsAccountAccessModifiedIterator struct {
Event * PermissionsAccountAccessModified // Event containing the contract specifics and raw log
2018-08-05 22:26:29 -07:00
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
2018-09-05 19:40:21 -07:00
func ( it * PermissionsAccountAccessModifiedIterator ) Next ( ) bool {
2018-08-05 22:26:29 -07:00
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
2018-09-05 19:40:21 -07:00
it . Event = new ( PermissionsAccountAccessModified )
2018-08-05 22:26:29 -07:00
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
2018-09-05 19:40:21 -07:00
it . Event = new ( PermissionsAccountAccessModified )
2018-08-05 22:26:29 -07:00
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
2018-09-05 19:40:21 -07:00
func ( it * PermissionsAccountAccessModifiedIterator ) Error ( ) error {
2018-08-05 22:26:29 -07:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2018-09-05 19:40:21 -07:00
func ( it * PermissionsAccountAccessModifiedIterator ) Close ( ) error {
2018-08-05 22:26:29 -07:00
it . sub . Unsubscribe ( )
return nil
}
2018-09-05 19:40:21 -07:00
// PermissionsAccountAccessModified represents a AccountAccessModified event raised by the Permissions contract.
type PermissionsAccountAccessModified struct {
Address common . Address
Access uint8
Raw types . Log // Blockchain specific contextual infos
2018-08-05 22:26:29 -07:00
}
2018-09-05 19:40:21 -07:00
// FilterAccountAccessModified is a free log retrieval operation binding the contract event 0x5c7c83802ef5601aed89f3f4e4ab42298ecf8ac3fe099adad5712fc65ba9676d.
2018-08-05 22:26:29 -07:00
//
2018-09-05 19:40:21 -07:00
// Solidity: e AccountAccessModified(_address address, _access uint8)
func ( _Permissions * PermissionsFilterer ) FilterAccountAccessModified ( opts * bind . FilterOpts ) ( * PermissionsAccountAccessModifiedIterator , error ) {
2018-08-05 22:26:29 -07:00
2018-09-05 19:40:21 -07:00
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "AccountAccessModified" )
2018-08-05 22:26:29 -07:00
if err != nil {
return nil , err
}
2018-09-05 19:40:21 -07:00
return & PermissionsAccountAccessModifiedIterator { contract : _Permissions . contract , event : "AccountAccessModified" , logs : logs , sub : sub } , nil
2018-08-05 22:26:29 -07:00
}
2018-09-05 19:40:21 -07:00
// WatchAccountAccessModified is a free log subscription operation binding the contract event 0x5c7c83802ef5601aed89f3f4e4ab42298ecf8ac3fe099adad5712fc65ba9676d.
2018-08-05 22:26:29 -07:00
//
2018-09-05 19:40:21 -07:00
// Solidity: e AccountAccessModified(_address address, _access uint8)
func ( _Permissions * PermissionsFilterer ) WatchAccountAccessModified ( opts * bind . WatchOpts , sink chan <- * PermissionsAccountAccessModified ) ( event . Subscription , error ) {
2018-08-05 22:26:29 -07:00
2018-09-05 19:40:21 -07:00
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "AccountAccessModified" )
2018-08-05 22:26:29 -07:00
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
2018-09-05 19:40:21 -07:00
event := new ( PermissionsAccountAccessModified )
if err := _Permissions . contract . UnpackLog ( event , "AccountAccessModified" , log ) ; err != nil {
2018-08-05 22:26:29 -07:00
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
2018-09-05 19:40:21 -07:00
// PermissionsNoVotingAccountIterator is returned from FilterNoVotingAccount and is used to iterate over the raw logs and unpacked data for NoVotingAccount events raised by the Permissions contract.
type PermissionsNoVotingAccountIterator struct {
Event * PermissionsNoVotingAccount // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsNoVotingAccountIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsNoVotingAccount )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsNoVotingAccount )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsNoVotingAccountIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsNoVotingAccountIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsNoVotingAccount represents a NoVotingAccount event raised by the Permissions contract.
type PermissionsNoVotingAccount struct {
Raw types . Log // Blockchain specific contextual infos
}
// FilterNoVotingAccount is a free log retrieval operation binding the contract event 0x4b3dfc3b006eb0d5d60b3f275b4796aa31ed21a75d2e91fe750fc7549b426f67.
//
// Solidity: e NoVotingAccount()
func ( _Permissions * PermissionsFilterer ) FilterNoVotingAccount ( opts * bind . FilterOpts ) ( * PermissionsNoVotingAccountIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "NoVotingAccount" )
if err != nil {
return nil , err
}
return & PermissionsNoVotingAccountIterator { contract : _Permissions . contract , event : "NoVotingAccount" , logs : logs , sub : sub } , nil
}
// WatchNoVotingAccount is a free log subscription operation binding the contract event 0x4b3dfc3b006eb0d5d60b3f275b4796aa31ed21a75d2e91fe750fc7549b426f67.
//
// Solidity: e NoVotingAccount()
func ( _Permissions * PermissionsFilterer ) WatchNoVotingAccount ( opts * bind . WatchOpts , sink chan <- * PermissionsNoVotingAccount ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "NoVotingAccount" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsNoVotingAccount )
if err := _Permissions . contract . UnpackLog ( event , "NoVotingAccount" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
2018-07-11 00:25:45 -07:00
// PermissionsNodeApprovedIterator is returned from FilterNodeApproved and is used to iterate over the raw logs and unpacked data for NodeApproved events raised by the Permissions contract.
type PermissionsNodeApprovedIterator struct {
Event * PermissionsNodeApproved // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsNodeApprovedIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodeApproved )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodeApproved )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsNodeApprovedIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsNodeApprovedIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsNodeApproved represents a NodeApproved event raised by the Permissions contract.
type PermissionsNodeApproved struct {
2018-08-12 19:00:35 -07:00
EnodeId string
IpAddrPort string
DiscPort string
RaftPort string
Raw types . Log // Blockchain specific contextual infos
2018-07-11 00:25:45 -07:00
}
2018-08-12 19:00:35 -07:00
// FilterNodeApproved is a free log retrieval operation binding the contract event 0xc6d86deaa3b3cf7c374cfd405aae9f08571fce2bf6ccfe8f98a399cda8960a98.
2018-07-11 00:25:45 -07:00
//
2018-08-12 19:00:35 -07:00
// Solidity: e NodeApproved(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string)
2018-07-11 00:25:45 -07:00
func ( _Permissions * PermissionsFilterer ) FilterNodeApproved ( opts * bind . FilterOpts ) ( * PermissionsNodeApprovedIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "NodeApproved" )
if err != nil {
return nil , err
}
return & PermissionsNodeApprovedIterator { contract : _Permissions . contract , event : "NodeApproved" , logs : logs , sub : sub } , nil
}
2018-08-12 19:00:35 -07:00
// WatchNodeApproved is a free log subscription operation binding the contract event 0xc6d86deaa3b3cf7c374cfd405aae9f08571fce2bf6ccfe8f98a399cda8960a98.
2018-07-11 00:25:45 -07:00
//
2018-08-12 19:00:35 -07:00
// Solidity: e NodeApproved(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string)
2018-07-11 00:25:45 -07:00
func ( _Permissions * PermissionsFilterer ) WatchNodeApproved ( opts * bind . WatchOpts , sink chan <- * PermissionsNodeApproved ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "NodeApproved" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsNodeApproved )
if err := _Permissions . contract . UnpackLog ( event , "NodeApproved" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
2018-08-31 04:35:35 -07:00
// PermissionsNodeBlacklistedIterator is returned from FilterNodeBlacklisted and is used to iterate over the raw logs and unpacked data for NodeBlacklisted events raised by the Permissions contract.
type PermissionsNodeBlacklistedIterator struct {
Event * PermissionsNodeBlacklisted // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsNodeBlacklistedIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodeBlacklisted )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodeBlacklisted )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsNodeBlacklistedIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsNodeBlacklistedIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsNodeBlacklisted represents a NodeBlacklisted event raised by the Permissions contract.
type PermissionsNodeBlacklisted struct {
EnodeId string
IpAddrPort string
DiscPort string
RaftPort string
Raw types . Log // Blockchain specific contextual infos
}
// FilterNodeBlacklisted is a free log retrieval operation binding the contract event 0xe1b239bf9d5854aeca74dfeac25d6ce470230bdb5f0eec48713c4375becfe97e.
//
// Solidity: e NodeBlacklisted(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string)
func ( _Permissions * PermissionsFilterer ) FilterNodeBlacklisted ( opts * bind . FilterOpts ) ( * PermissionsNodeBlacklistedIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "NodeBlacklisted" )
if err != nil {
return nil , err
}
return & PermissionsNodeBlacklistedIterator { contract : _Permissions . contract , event : "NodeBlacklisted" , logs : logs , sub : sub } , nil
}
// WatchNodeBlacklisted is a free log subscription operation binding the contract event 0xe1b239bf9d5854aeca74dfeac25d6ce470230bdb5f0eec48713c4375becfe97e.
//
// Solidity: e NodeBlacklisted(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string)
func ( _Permissions * PermissionsFilterer ) WatchNodeBlacklisted ( opts * bind . WatchOpts , sink chan <- * PermissionsNodeBlacklisted ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "NodeBlacklisted" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsNodeBlacklisted )
if err := _Permissions . contract . UnpackLog ( event , "NodeBlacklisted" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
2018-07-11 00:25:45 -07:00
// PermissionsNodeDeactivatedIterator is returned from FilterNodeDeactivated and is used to iterate over the raw logs and unpacked data for NodeDeactivated events raised by the Permissions contract.
type PermissionsNodeDeactivatedIterator struct {
Event * PermissionsNodeDeactivated // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsNodeDeactivatedIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodeDeactivated )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodeDeactivated )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsNodeDeactivatedIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsNodeDeactivatedIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsNodeDeactivated represents a NodeDeactivated event raised by the Permissions contract.
type PermissionsNodeDeactivated struct {
2018-08-12 19:00:35 -07:00
EnodeId string
IpAddrPort string
DiscPort string
RaftPort string
Raw types . Log // Blockchain specific contextual infos
2018-07-11 00:25:45 -07:00
}
2018-08-12 19:00:35 -07:00
// FilterNodeDeactivated is a free log retrieval operation binding the contract event 0xd5fa0ecdea15b332dd0a270c65234bc4aee212edf2ed62eb2fd182ef55ca98a1.
2018-07-11 00:25:45 -07:00
//
2018-08-12 19:00:35 -07:00
// Solidity: e NodeDeactivated(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string)
2018-07-11 00:25:45 -07:00
func ( _Permissions * PermissionsFilterer ) FilterNodeDeactivated ( opts * bind . FilterOpts ) ( * PermissionsNodeDeactivatedIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "NodeDeactivated" )
if err != nil {
return nil , err
}
return & PermissionsNodeDeactivatedIterator { contract : _Permissions . contract , event : "NodeDeactivated" , logs : logs , sub : sub } , nil
}
2018-08-12 19:00:35 -07:00
// WatchNodeDeactivated is a free log subscription operation binding the contract event 0xd5fa0ecdea15b332dd0a270c65234bc4aee212edf2ed62eb2fd182ef55ca98a1.
2018-07-11 00:25:45 -07:00
//
2018-08-12 19:00:35 -07:00
// Solidity: e NodeDeactivated(_enodeId string, _ipAddrPort string, _discPort string, _raftPort string)
2018-07-11 00:25:45 -07:00
func ( _Permissions * PermissionsFilterer ) WatchNodeDeactivated ( opts * bind . WatchOpts , sink chan <- * PermissionsNodeDeactivated ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "NodeDeactivated" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsNodeDeactivated )
if err := _Permissions . contract . UnpackLog ( event , "NodeDeactivated" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
2018-09-19 20:18:39 -07:00
// PermissionsNodePendingBlacklistIterator is returned from FilterNodePendingBlacklist and is used to iterate over the raw logs and unpacked data for NodePendingBlacklist events raised by the Permissions contract.
type PermissionsNodePendingBlacklistIterator struct {
Event * PermissionsNodePendingBlacklist // Event containing the contract specifics and raw log
2018-08-31 04:35:35 -07:00
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
2018-09-19 20:18:39 -07:00
func ( it * PermissionsNodePendingBlacklistIterator ) Next ( ) bool {
2018-08-31 04:35:35 -07:00
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
2018-09-19 20:18:39 -07:00
it . Event = new ( PermissionsNodePendingBlacklist )
2018-08-31 04:35:35 -07:00
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
2018-09-19 20:18:39 -07:00
it . Event = new ( PermissionsNodePendingBlacklist )
2018-08-31 04:35:35 -07:00
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
2018-09-19 20:18:39 -07:00
func ( it * PermissionsNodePendingBlacklistIterator ) Error ( ) error {
2018-08-31 04:35:35 -07:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2018-09-19 20:18:39 -07:00
func ( it * PermissionsNodePendingBlacklistIterator ) Close ( ) error {
2018-08-31 04:35:35 -07:00
it . sub . Unsubscribe ( )
return nil
}
2018-09-19 20:18:39 -07:00
// PermissionsNodePendingBlacklist represents a NodePendingBlacklist event raised by the Permissions contract.
type PermissionsNodePendingBlacklist struct {
2018-08-31 04:35:35 -07:00
EnodeId string
Raw types . Log // Blockchain specific contextual infos
}
2018-09-19 20:18:39 -07:00
// FilterNodePendingBlacklist is a free log retrieval operation binding the contract event 0xb249ebebf429f1c79f3c9663998b3e22d45f242de6527c4a95e41d4d28115d74.
2018-08-31 04:35:35 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: e NodePendingBlacklist(_enodeId string)
func ( _Permissions * PermissionsFilterer ) FilterNodePendingBlacklist ( opts * bind . FilterOpts ) ( * PermissionsNodePendingBlacklistIterator , error ) {
2018-08-31 04:35:35 -07:00
2018-09-19 20:18:39 -07:00
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "NodePendingBlacklist" )
2018-08-31 04:35:35 -07:00
if err != nil {
return nil , err
}
2018-09-19 20:18:39 -07:00
return & PermissionsNodePendingBlacklistIterator { contract : _Permissions . contract , event : "NodePendingBlacklist" , logs : logs , sub : sub } , nil
2018-08-31 04:35:35 -07:00
}
2018-09-19 20:18:39 -07:00
// WatchNodePendingBlacklist is a free log subscription operation binding the contract event 0xb249ebebf429f1c79f3c9663998b3e22d45f242de6527c4a95e41d4d28115d74.
2018-08-31 04:35:35 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: e NodePendingBlacklist(_enodeId string)
func ( _Permissions * PermissionsFilterer ) WatchNodePendingBlacklist ( opts * bind . WatchOpts , sink chan <- * PermissionsNodePendingBlacklist ) ( event . Subscription , error ) {
2018-08-31 04:35:35 -07:00
2018-09-19 20:18:39 -07:00
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "NodePendingBlacklist" )
2018-08-31 04:35:35 -07:00
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
2018-09-19 20:18:39 -07:00
event := new ( PermissionsNodePendingBlacklist )
if err := _Permissions . contract . UnpackLog ( event , "NodePendingBlacklist" , log ) ; err != nil {
2018-08-31 04:35:35 -07:00
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
2018-07-11 00:25:45 -07:00
// PermissionsNodePendingDeactivationIterator is returned from FilterNodePendingDeactivation and is used to iterate over the raw logs and unpacked data for NodePendingDeactivation events raised by the Permissions contract.
type PermissionsNodePendingDeactivationIterator struct {
Event * PermissionsNodePendingDeactivation // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsNodePendingDeactivationIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodePendingDeactivation )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodePendingDeactivation )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsNodePendingDeactivationIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsNodePendingDeactivationIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsNodePendingDeactivation represents a NodePendingDeactivation event raised by the Permissions contract.
type PermissionsNodePendingDeactivation struct {
EnodeId string
Raw types . Log // Blockchain specific contextual infos
}
// FilterNodePendingDeactivation is a free log retrieval operation binding the contract event 0x2b5689b33f48f1dcbda2084e130a9bee7b3bf14dc767ea74cbdf3e5fffb118e4.
//
// Solidity: e NodePendingDeactivation(_enodeId string)
func ( _Permissions * PermissionsFilterer ) FilterNodePendingDeactivation ( opts * bind . FilterOpts ) ( * PermissionsNodePendingDeactivationIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "NodePendingDeactivation" )
if err != nil {
return nil , err
}
return & PermissionsNodePendingDeactivationIterator { contract : _Permissions . contract , event : "NodePendingDeactivation" , logs : logs , sub : sub } , nil
}
// WatchNodePendingDeactivation is a free log subscription operation binding the contract event 0x2b5689b33f48f1dcbda2084e130a9bee7b3bf14dc767ea74cbdf3e5fffb118e4.
//
// Solidity: e NodePendingDeactivation(_enodeId string)
func ( _Permissions * PermissionsFilterer ) WatchNodePendingDeactivation ( opts * bind . WatchOpts , sink chan <- * PermissionsNodePendingDeactivation ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "NodePendingDeactivation" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsNodePendingDeactivation )
if err := _Permissions . contract . UnpackLog ( event , "NodePendingDeactivation" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
2018-09-05 19:40:21 -07:00
2018-09-19 20:18:39 -07:00
// PermissionsNodeProposedIterator is returned from FilterNodeProposed and is used to iterate over the raw logs and unpacked data for NodeProposed events raised by the Permissions contract.
type PermissionsNodeProposedIterator struct {
Event * PermissionsNodeProposed // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsNodeProposedIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodeProposed )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsNodeProposed )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsNodeProposedIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsNodeProposedIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsNodeProposed represents a NodeProposed event raised by the Permissions contract.
type PermissionsNodeProposed struct {
EnodeId string
Raw types . Log // Blockchain specific contextual infos
}
// FilterNodeProposed is a free log retrieval operation binding the contract event 0xaddedf3fcf588a85e0b0c3210c30da3f5597ae35221859f7e19427397a2ba80a.
//
// Solidity: e NodeProposed(_enodeId string)
func ( _Permissions * PermissionsFilterer ) FilterNodeProposed ( opts * bind . FilterOpts ) ( * PermissionsNodeProposedIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "NodeProposed" )
if err != nil {
return nil , err
}
return & PermissionsNodeProposedIterator { contract : _Permissions . contract , event : "NodeProposed" , logs : logs , sub : sub } , nil
}
// WatchNodeProposed is a free log subscription operation binding the contract event 0xaddedf3fcf588a85e0b0c3210c30da3f5597ae35221859f7e19427397a2ba80a.
//
// Solidity: e NodeProposed(_enodeId string)
func ( _Permissions * PermissionsFilterer ) WatchNodeProposed ( opts * bind . WatchOpts , sink chan <- * PermissionsNodeProposed ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "NodeProposed" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsNodeProposed )
if err := _Permissions . contract . UnpackLog ( event , "NodeProposed" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
2018-09-05 19:40:21 -07:00
// PermissionsVoteNodeApprovalIterator is returned from FilterVoteNodeApproval and is used to iterate over the raw logs and unpacked data for VoteNodeApproval events raised by the Permissions contract.
type PermissionsVoteNodeApprovalIterator struct {
Event * PermissionsVoteNodeApproval // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsVoteNodeApprovalIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsVoteNodeApproval )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsVoteNodeApproval )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsVoteNodeApprovalIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsVoteNodeApprovalIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsVoteNodeApproval represents a VoteNodeApproval event raised by the Permissions contract.
type PermissionsVoteNodeApproval struct {
EnodeId string
AccountAddress common . Address
Raw types . Log // Blockchain specific contextual infos
}
// FilterVoteNodeApproval is a free log retrieval operation binding the contract event 0xffbebd8cfb97304c3b16b9139a3f06e547af483cc4b5111bdbb66ccdf2aa43f3.
//
// Solidity: e VoteNodeApproval(_enodeId string, _accountAddress address)
func ( _Permissions * PermissionsFilterer ) FilterVoteNodeApproval ( opts * bind . FilterOpts ) ( * PermissionsVoteNodeApprovalIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "VoteNodeApproval" )
if err != nil {
return nil , err
}
return & PermissionsVoteNodeApprovalIterator { contract : _Permissions . contract , event : "VoteNodeApproval" , logs : logs , sub : sub } , nil
}
// WatchVoteNodeApproval is a free log subscription operation binding the contract event 0xffbebd8cfb97304c3b16b9139a3f06e547af483cc4b5111bdbb66ccdf2aa43f3.
//
// Solidity: e VoteNodeApproval(_enodeId string, _accountAddress address)
func ( _Permissions * PermissionsFilterer ) WatchVoteNodeApproval ( opts * bind . WatchOpts , sink chan <- * PermissionsVoteNodeApproval ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "VoteNodeApproval" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsVoteNodeApproval )
if err := _Permissions . contract . UnpackLog ( event , "VoteNodeApproval" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
2018-09-19 20:18:39 -07:00
// PermissionsVoteNodeBlacklistIterator is returned from FilterVoteNodeBlacklist and is used to iterate over the raw logs and unpacked data for VoteNodeBlacklist events raised by the Permissions contract.
type PermissionsVoteNodeBlacklistIterator struct {
Event * PermissionsVoteNodeBlacklist // Event containing the contract specifics and raw log
2018-09-05 19:40:21 -07:00
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
2018-09-19 20:18:39 -07:00
func ( it * PermissionsVoteNodeBlacklistIterator ) Next ( ) bool {
2018-09-05 19:40:21 -07:00
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
2018-09-19 20:18:39 -07:00
it . Event = new ( PermissionsVoteNodeBlacklist )
2018-09-05 19:40:21 -07:00
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
2018-09-19 20:18:39 -07:00
it . Event = new ( PermissionsVoteNodeBlacklist )
2018-09-05 19:40:21 -07:00
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
2018-09-19 20:18:39 -07:00
func ( it * PermissionsVoteNodeBlacklistIterator ) Error ( ) error {
2018-09-05 19:40:21 -07:00
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
2018-09-19 20:18:39 -07:00
func ( it * PermissionsVoteNodeBlacklistIterator ) Close ( ) error {
2018-09-05 19:40:21 -07:00
it . sub . Unsubscribe ( )
return nil
}
2018-09-19 20:18:39 -07:00
// PermissionsVoteNodeBlacklist represents a VoteNodeBlacklist event raised by the Permissions contract.
type PermissionsVoteNodeBlacklist struct {
2018-09-05 19:40:21 -07:00
EnodeId string
AccountAddress common . Address
Raw types . Log // Blockchain specific contextual infos
}
2018-09-19 20:18:39 -07:00
// FilterVoteNodeBlacklist is a free log retrieval operation binding the contract event 0xe5db3c593cd193882142dc86075a90f3b5075cbe3df4f433517393e29aa7327f.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: e VoteNodeBlacklist(_enodeId string, _accountAddress address)
func ( _Permissions * PermissionsFilterer ) FilterVoteNodeBlacklist ( opts * bind . FilterOpts ) ( * PermissionsVoteNodeBlacklistIterator , error ) {
2018-09-05 19:40:21 -07:00
2018-09-19 20:18:39 -07:00
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "VoteNodeBlacklist" )
2018-09-05 19:40:21 -07:00
if err != nil {
return nil , err
}
2018-09-19 20:18:39 -07:00
return & PermissionsVoteNodeBlacklistIterator { contract : _Permissions . contract , event : "VoteNodeBlacklist" , logs : logs , sub : sub } , nil
2018-09-05 19:40:21 -07:00
}
2018-09-19 20:18:39 -07:00
// WatchVoteNodeBlacklist is a free log subscription operation binding the contract event 0xe5db3c593cd193882142dc86075a90f3b5075cbe3df4f433517393e29aa7327f.
2018-09-05 19:40:21 -07:00
//
2018-09-19 20:18:39 -07:00
// Solidity: e VoteNodeBlacklist(_enodeId string, _accountAddress address)
func ( _Permissions * PermissionsFilterer ) WatchVoteNodeBlacklist ( opts * bind . WatchOpts , sink chan <- * PermissionsVoteNodeBlacklist ) ( event . Subscription , error ) {
2018-09-05 19:40:21 -07:00
2018-09-19 20:18:39 -07:00
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "VoteNodeBlacklist" )
2018-09-05 19:40:21 -07:00
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
2018-09-19 20:18:39 -07:00
event := new ( PermissionsVoteNodeBlacklist )
if err := _Permissions . contract . UnpackLog ( event , "VoteNodeBlacklist" , log ) ; err != nil {
2018-09-05 19:40:21 -07:00
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
// PermissionsVoteNodeDeactivationIterator is returned from FilterVoteNodeDeactivation and is used to iterate over the raw logs and unpacked data for VoteNodeDeactivation events raised by the Permissions contract.
type PermissionsVoteNodeDeactivationIterator struct {
Event * PermissionsVoteNodeDeactivation // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsVoteNodeDeactivationIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsVoteNodeDeactivation )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsVoteNodeDeactivation )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsVoteNodeDeactivationIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsVoteNodeDeactivationIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsVoteNodeDeactivation represents a VoteNodeDeactivation event raised by the Permissions contract.
type PermissionsVoteNodeDeactivation struct {
EnodeId string
AccountAddress common . Address
Raw types . Log // Blockchain specific contextual infos
}
// FilterVoteNodeDeactivation is a free log retrieval operation binding the contract event 0xa5243abad84fa64b3ca3ab0b45c7954a089a38bd40d0797fc3c0e8ee304229e1.
//
// Solidity: e VoteNodeDeactivation(_enodeId string, _accountAddress address)
func ( _Permissions * PermissionsFilterer ) FilterVoteNodeDeactivation ( opts * bind . FilterOpts ) ( * PermissionsVoteNodeDeactivationIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "VoteNodeDeactivation" )
if err != nil {
return nil , err
}
return & PermissionsVoteNodeDeactivationIterator { contract : _Permissions . contract , event : "VoteNodeDeactivation" , logs : logs , sub : sub } , nil
}
// WatchVoteNodeDeactivation is a free log subscription operation binding the contract event 0xa5243abad84fa64b3ca3ab0b45c7954a089a38bd40d0797fc3c0e8ee304229e1.
//
// Solidity: e VoteNodeDeactivation(_enodeId string, _accountAddress address)
func ( _Permissions * PermissionsFilterer ) WatchVoteNodeDeactivation ( opts * bind . WatchOpts , sink chan <- * PermissionsVoteNodeDeactivation ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "VoteNodeDeactivation" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsVoteNodeDeactivation )
if err := _Permissions . contract . UnpackLog ( event , "VoteNodeDeactivation" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
// PermissionsVoterAddedIterator is returned from FilterVoterAdded and is used to iterate over the raw logs and unpacked data for VoterAdded events raised by the Permissions contract.
type PermissionsVoterAddedIterator struct {
Event * PermissionsVoterAdded // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsVoterAddedIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsVoterAdded )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsVoterAdded )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsVoterAddedIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsVoterAddedIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsVoterAdded represents a VoterAdded event raised by the Permissions contract.
type PermissionsVoterAdded struct {
Address common . Address
Raw types . Log // Blockchain specific contextual infos
}
// FilterVoterAdded is a free log retrieval operation binding the contract event 0xa636f4a11e2d3ba7f89d042ecb0a6b886716e98cd49d8fd876ee0f73bced42b8.
//
// Solidity: e VoterAdded(_address address)
func ( _Permissions * PermissionsFilterer ) FilterVoterAdded ( opts * bind . FilterOpts ) ( * PermissionsVoterAddedIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "VoterAdded" )
if err != nil {
return nil , err
}
return & PermissionsVoterAddedIterator { contract : _Permissions . contract , event : "VoterAdded" , logs : logs , sub : sub } , nil
}
// WatchVoterAdded is a free log subscription operation binding the contract event 0xa636f4a11e2d3ba7f89d042ecb0a6b886716e98cd49d8fd876ee0f73bced42b8.
//
// Solidity: e VoterAdded(_address address)
func ( _Permissions * PermissionsFilterer ) WatchVoterAdded ( opts * bind . WatchOpts , sink chan <- * PermissionsVoterAdded ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "VoterAdded" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsVoterAdded )
if err := _Permissions . contract . UnpackLog ( event , "VoterAdded" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
// PermissionsVoterRemovedIterator is returned from FilterVoterRemoved and is used to iterate over the raw logs and unpacked data for VoterRemoved events raised by the Permissions contract.
type PermissionsVoterRemovedIterator struct {
Event * PermissionsVoterRemoved // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * PermissionsVoterRemovedIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( PermissionsVoterRemoved )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( PermissionsVoterRemoved )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * PermissionsVoterRemovedIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * PermissionsVoterRemovedIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// PermissionsVoterRemoved represents a VoterRemoved event raised by the Permissions contract.
type PermissionsVoterRemoved struct {
Address common . Address
Raw types . Log // Blockchain specific contextual infos
}
// FilterVoterRemoved is a free log retrieval operation binding the contract event 0xa14a79af012d1756818f9bd59ccfc9ad185a71df86b9392d9059d9e6faf6d644.
//
// Solidity: e VoterRemoved(_address address)
func ( _Permissions * PermissionsFilterer ) FilterVoterRemoved ( opts * bind . FilterOpts ) ( * PermissionsVoterRemovedIterator , error ) {
logs , sub , err := _Permissions . contract . FilterLogs ( opts , "VoterRemoved" )
if err != nil {
return nil , err
}
return & PermissionsVoterRemovedIterator { contract : _Permissions . contract , event : "VoterRemoved" , logs : logs , sub : sub } , nil
}
// WatchVoterRemoved is a free log subscription operation binding the contract event 0xa14a79af012d1756818f9bd59ccfc9ad185a71df86b9392d9059d9e6faf6d644.
//
// Solidity: e VoterRemoved(_address address)
func ( _Permissions * PermissionsFilterer ) WatchVoterRemoved ( opts * bind . WatchOpts , sink chan <- * PermissionsVoterRemoved ) ( event . Subscription , error ) {
logs , sub , err := _Permissions . contract . WatchLogs ( opts , "VoterRemoved" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( PermissionsVoterRemoved )
if err := _Permissions . contract . UnpackLog ( event , "VoterRemoved" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}