mainchain

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ValidatorChangeType
	AddValidator    = 0
	RemoveValidator = 1

	// CandidateStatus
	Unbonded  = 0
	Bonded    = 1
	Unbonding = 2

	// ParamNames
	ProposalDeposit     = 0
	GovernVoteTimeout   = 1
	SlashTimeout        = 2
	MinValidatorNum     = 3
	MaxValidatorNum     = 4
	MinStakeInPool      = 5
	AdvanceNoticePeriod = 6
	MigrationTime       = 7

	Unvoted     = 0
	VoteYes     = 1
	VoteNo      = 2
	VoteAbstain = 3

	ProposalStatusUninitiated = 0
	ProposalStatusVoting      = 1
	ProposalStatusClosed      = 2

	TxFailure = 0
	TxSuccess = 1

	// channel status of CelerChannel
	ChannelStatus_UNINITIALIZED uint8 = 0
	ChannelStatus_OPERABLE      uint8 = 1
	ChannelStatus_SETTLING      uint8 = 2
	ChannelStatus_CLOSED        uint8 = 3
	ChannelStatus_MIGRATED      uint8 = 4
)
View Source
const CelerLedgerABI = "" /* 14860-byte string literal not displayed */

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

View Source
const DPoSABI = "" /* 29924-byte string literal not displayed */

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

View Source
const ERC20ABI = "" /* 3312-byte string literal not displayed */

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

View Source
const ERC20Bin = `` /* 3854-byte string literal not displayed */

ERC20Bin is the compiled bytecode used for deploying new contracts.

View Source
const ERC20InterfaceABI = "" /* 2048-byte string literal not displayed */

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

View Source
const ERC20InterfaceBin = `0x`

ERC20InterfaceBin is the compiled bytecode used for deploying new contracts.

View Source
const SGNABI = "" /* 6604-byte string literal not displayed */

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

Variables

View Source
var (
	// ZeroAddr is all 0s
	ZeroAddr Addr
	// ZeroAddrHex is string of 20 0s
	ZeroAddrHex = Addr2Hex(ZeroAddr)
	// ZeroBigInt is big.NewInt(0)
	ZeroBigInt = big.NewInt(0)
	// ZeroCid is all 0s
	ZeroCid CidType
)
View Source
var CelerLedgerBin = ""

CelerLedgerBin is the compiled bytecode used for deploying new contracts.

View Source
var DPoSBin = "" /* 45604-byte string literal not displayed */

DPoSBin is the compiled bytecode used for deploying new contracts.

View Source
var (
	ErrPeersNotMatch = errors.New("channel peers not match")
)
View Source
var SGNBin = "" /* 13238-byte string literal not displayed */

SGNBin is the compiled bytecode used for deploying new contracts.

Functions

func Addr2Hex

func Addr2Hex(a Addr) string

Addr2Hex returns hex without 0x

func Bytes2AddrHex

func Bytes2AddrHex(b []byte) string

Bytes2AddrHex returns hex without 0x

func Bytes2Hex

func Bytes2Hex(b []byte) string

Bytes2Hex returns hex string without 0x prefix

func Cid2Hex

func Cid2Hex(p CidType) string

Cid2Hex returns hex without 0x prefix

func FormatAddrHex

func FormatAddrHex(s string) string

FormatAddrHex formats a string into standard Addr string

func GetAddressFromKeystore added in v0.2.5

func GetAddressFromKeystore(ksBytes []byte) (string, error)

func GetSimplexSeqNum added in v0.2.6

func GetSimplexSeqNum(
	ledger *CelerLedger, cid CidType,
	simplexSender, simplexReceiver Addr) (seqNum uint64, err error)

GetSimplexSeqNum get the mainchain simplex seqNum

func GetTxSender

func GetTxSender(ec *ethclient.Client, txHashStr string) (string, error)

GetTxSender returns the sender address of the given transaction

func Hex2Bytes

func Hex2Bytes(s string) (b []byte)

Hex2Bytes supports hex string with or without 0x prefix Calls hex.DecodeString directly and ignore err similar to ec.FromHex but better

func IsBonded

func IsBonded(dposCandidateInfo DPoSCandidateInfo) bool

func ParseStatus

func ParseStatus(dposCandidateInfo DPoSCandidateInfo) sdk.BondStatus

Types

type Addr

type Addr = ec.Address

Addr is alias to geth common.Address

func Bytes2Addr

func Bytes2Addr(b []byte) Addr

Bytes2Addr returns Address from b Addr.Bytes() does the reverse

func Hex2Addr

func Hex2Addr(s string) Addr

Hex2Addr accepts hex string with or without 0x prefix and return Addr

type CelerLedger

type CelerLedger struct {
	CelerLedgerCaller     // Read-only binding to the contract
	CelerLedgerTransactor // Write-only binding to the contract
	CelerLedgerFilterer   // Log filterer for contract events
}

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

func DeployCelerLedger

func DeployCelerLedger(auth *bind.TransactOpts, backend bind.ContractBackend, _ethPool common.Address, _payRegistry common.Address, _celerWallet common.Address) (common.Address, *types.Transaction, *CelerLedger, error)

DeployCelerLedger deploys a new Ethereum contract, binding an instance of CelerLedger to it.

func NewCelerLedger

func NewCelerLedger(address common.Address, backend bind.ContractBackend) (*CelerLedger, error)

NewCelerLedger creates a new instance of CelerLedger, bound to a specific deployed contract.

type CelerLedgerCaller

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

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

func NewCelerLedgerCaller

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

NewCelerLedgerCaller creates a new read-only instance of CelerLedger, bound to a specific deployed contract.

func (*CelerLedgerCaller) GetBalanceLimit

func (_CelerLedger *CelerLedgerCaller) GetBalanceLimit(opts *bind.CallOpts, _tokenAddr common.Address) (*big.Int, error)

GetBalanceLimit is a free data retrieval call binding the contract method 0xec7c637d.

Solidity: function getBalanceLimit(address _tokenAddr) constant returns(uint256)

func (*CelerLedgerCaller) GetBalanceLimitsEnabled

func (_CelerLedger *CelerLedgerCaller) GetBalanceLimitsEnabled(opts *bind.CallOpts) (bool, error)

GetBalanceLimitsEnabled is a free data retrieval call binding the contract method 0x2b559ecc.

Solidity: function getBalanceLimitsEnabled() constant returns(bool)

func (*CelerLedgerCaller) GetBalanceMap

func (_CelerLedger *CelerLedgerCaller) GetBalanceMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, error)

GetBalanceMap is a free data retrieval call binding the contract method 0xbd480cb7.

Solidity: function getBalanceMap(bytes32 _channelId) constant returns(address[2], uint256[2], uint256[2])

func (*CelerLedgerCaller) GetCelerWallet

func (_CelerLedger *CelerLedgerCaller) GetCelerWallet(opts *bind.CallOpts) (common.Address, error)

GetCelerWallet is a free data retrieval call binding the contract method 0xa099a39f.

Solidity: function getCelerWallet() constant returns(address)

func (*CelerLedgerCaller) GetChannelMigrationArgs

func (_CelerLedger *CelerLedgerCaller) GetChannelMigrationArgs(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, *big.Int, common.Address, *big.Int, error)

GetChannelMigrationArgs is a free data retrieval call binding the contract method 0x2f0ac304.

Solidity: function getChannelMigrationArgs(bytes32 _channelId) constant returns(uint256, uint256, address, uint256)

func (*CelerLedgerCaller) GetChannelStatus

func (_CelerLedger *CelerLedgerCaller) GetChannelStatus(opts *bind.CallOpts, _channelId [32]byte) (uint8, error)

GetChannelStatus is a free data retrieval call binding the contract method 0xcc0b94b7.

Solidity: function getChannelStatus(bytes32 _channelId) constant returns(uint8)

func (*CelerLedgerCaller) GetChannelStatusNum

func (_CelerLedger *CelerLedgerCaller) GetChannelStatusNum(opts *bind.CallOpts, _channelStatus *big.Int) (*big.Int, error)

GetChannelStatusNum is a free data retrieval call binding the contract method 0x307d6f96.

Solidity: function getChannelStatusNum(uint256 _channelStatus) constant returns(uint256)

func (*CelerLedgerCaller) GetCooperativeWithdrawSeqNum

func (_CelerLedger *CelerLedgerCaller) GetCooperativeWithdrawSeqNum(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error)

GetCooperativeWithdrawSeqNum is a free data retrieval call binding the contract method 0xf0c73d70.

Solidity: function getCooperativeWithdrawSeqNum(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerCaller) GetDisputeTimeout

func (_CelerLedger *CelerLedgerCaller) GetDisputeTimeout(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error)

GetDisputeTimeout is a free data retrieval call binding the contract method 0xe6322df7.

Solidity: function getDisputeTimeout(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerCaller) GetEthPool

func (_CelerLedger *CelerLedgerCaller) GetEthPool(opts *bind.CallOpts) (common.Address, error)

GetEthPool is a free data retrieval call binding the contract method 0xd75f960e.

Solidity: function getEthPool() constant returns(address)

func (*CelerLedgerCaller) GetLastPayResolveDeadlineMap

func (_CelerLedger *CelerLedgerCaller) GetLastPayResolveDeadlineMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetLastPayResolveDeadlineMap is a free data retrieval call binding the contract method 0x9f1fad83.

Solidity: function getLastPayResolveDeadlineMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerCaller) GetMigratedTo

func (_CelerLedger *CelerLedgerCaller) GetMigratedTo(opts *bind.CallOpts, _channelId [32]byte) (common.Address, error)

GetMigratedTo is a free data retrieval call binding the contract method 0xc38a325d.

Solidity: function getMigratedTo(bytes32 _channelId) constant returns(address)

func (*CelerLedgerCaller) GetNextPayIdListHashMap

func (_CelerLedger *CelerLedgerCaller) GetNextPayIdListHashMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2][32]byte, error)

GetNextPayIdListHashMap is a free data retrieval call binding the contract method 0xcd3a1be6.

Solidity: function getNextPayIdListHashMap(bytes32 _channelId) constant returns(address[2], bytes32[2])

func (*CelerLedgerCaller) GetPayRegistry

func (_CelerLedger *CelerLedgerCaller) GetPayRegistry(opts *bind.CallOpts) (common.Address, error)

GetPayRegistry is a free data retrieval call binding the contract method 0x312ea2c6.

Solidity: function getPayRegistry() constant returns(address)

func (*CelerLedgerCaller) GetPeersMigrationInfo

func (_CelerLedger *CelerLedgerCaller) GetPeersMigrationInfo(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, error)

GetPeersMigrationInfo is a free data retrieval call binding the contract method 0x88f41465.

Solidity: function getPeersMigrationInfo(bytes32 _channelId) constant returns(address[2], uint256[2], uint256[2], uint256[2], uint256[2], uint256[2])

func (*CelerLedgerCaller) GetPendingPayOutMap

func (_CelerLedger *CelerLedgerCaller) GetPendingPayOutMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetPendingPayOutMap is a free data retrieval call binding the contract method 0x0165cef8.

Solidity: function getPendingPayOutMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerCaller) GetSettleFinalizedTime

func (_CelerLedger *CelerLedgerCaller) GetSettleFinalizedTime(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error)

GetSettleFinalizedTime is a free data retrieval call binding the contract method 0x09b65d86.

Solidity: function getSettleFinalizedTime(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerCaller) GetStateSeqNumMap

func (_CelerLedger *CelerLedgerCaller) GetStateSeqNumMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetStateSeqNumMap is a free data retrieval call binding the contract method 0x666a6d65.

Solidity: function getStateSeqNumMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerCaller) GetTokenContract

func (_CelerLedger *CelerLedgerCaller) GetTokenContract(opts *bind.CallOpts, _channelId [32]byte) (common.Address, error)

GetTokenContract is a free data retrieval call binding the contract method 0x2e2a5a02.

Solidity: function getTokenContract(bytes32 _channelId) constant returns(address)

func (*CelerLedgerCaller) GetTokenType

func (_CelerLedger *CelerLedgerCaller) GetTokenType(opts *bind.CallOpts, _channelId [32]byte) (uint8, error)

GetTokenType is a free data retrieval call binding the contract method 0x979a9b5e.

Solidity: function getTokenType(bytes32 _channelId) constant returns(uint8)

func (*CelerLedgerCaller) GetTotalBalance

func (_CelerLedger *CelerLedgerCaller) GetTotalBalance(opts *bind.CallOpts, _channelId [32]byte) (*big.Int, error)

GetTotalBalance is a free data retrieval call binding the contract method 0x69d5dd67.

Solidity: function getTotalBalance(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerCaller) GetTransferOutMap

func (_CelerLedger *CelerLedgerCaller) GetTransferOutMap(opts *bind.CallOpts, _channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetTransferOutMap is a free data retrieval call binding the contract method 0xd927bfc4.

Solidity: function getTransferOutMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerCaller) GetWithdrawIntent

func (_CelerLedger *CelerLedgerCaller) GetWithdrawIntent(opts *bind.CallOpts, _channelId [32]byte) (common.Address, *big.Int, *big.Int, [32]byte, error)

GetWithdrawIntent is a free data retrieval call binding the contract method 0x76bff117.

Solidity: function getWithdrawIntent(bytes32 _channelId) constant returns(address, uint256, uint256, bytes32)

func (*CelerLedgerCaller) IsOwner

func (_CelerLedger *CelerLedgerCaller) IsOwner(opts *bind.CallOpts) (bool, error)

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

Solidity: function isOwner() constant returns(bool)

func (*CelerLedgerCaller) Owner

func (_CelerLedger *CelerLedgerCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() constant returns(address)

type CelerLedgerCallerRaw

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

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

func (*CelerLedgerCallerRaw) Call

func (_CelerLedger *CelerLedgerCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type CelerLedgerCallerSession

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

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

func (*CelerLedgerCallerSession) GetBalanceLimit

func (_CelerLedger *CelerLedgerCallerSession) GetBalanceLimit(_tokenAddr common.Address) (*big.Int, error)

GetBalanceLimit is a free data retrieval call binding the contract method 0xec7c637d.

Solidity: function getBalanceLimit(address _tokenAddr) constant returns(uint256)

func (*CelerLedgerCallerSession) GetBalanceLimitsEnabled

func (_CelerLedger *CelerLedgerCallerSession) GetBalanceLimitsEnabled() (bool, error)

GetBalanceLimitsEnabled is a free data retrieval call binding the contract method 0x2b559ecc.

Solidity: function getBalanceLimitsEnabled() constant returns(bool)

func (*CelerLedgerCallerSession) GetBalanceMap

func (_CelerLedger *CelerLedgerCallerSession) GetBalanceMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, error)

GetBalanceMap is a free data retrieval call binding the contract method 0xbd480cb7.

Solidity: function getBalanceMap(bytes32 _channelId) constant returns(address[2], uint256[2], uint256[2])

func (*CelerLedgerCallerSession) GetCelerWallet

func (_CelerLedger *CelerLedgerCallerSession) GetCelerWallet() (common.Address, error)

GetCelerWallet is a free data retrieval call binding the contract method 0xa099a39f.

Solidity: function getCelerWallet() constant returns(address)

func (*CelerLedgerCallerSession) GetChannelMigrationArgs

func (_CelerLedger *CelerLedgerCallerSession) GetChannelMigrationArgs(_channelId [32]byte) (*big.Int, *big.Int, common.Address, *big.Int, error)

GetChannelMigrationArgs is a free data retrieval call binding the contract method 0x2f0ac304.

Solidity: function getChannelMigrationArgs(bytes32 _channelId) constant returns(uint256, uint256, address, uint256)

func (*CelerLedgerCallerSession) GetChannelStatus

func (_CelerLedger *CelerLedgerCallerSession) GetChannelStatus(_channelId [32]byte) (uint8, error)

GetChannelStatus is a free data retrieval call binding the contract method 0xcc0b94b7.

Solidity: function getChannelStatus(bytes32 _channelId) constant returns(uint8)

func (*CelerLedgerCallerSession) GetChannelStatusNum

func (_CelerLedger *CelerLedgerCallerSession) GetChannelStatusNum(_channelStatus *big.Int) (*big.Int, error)

GetChannelStatusNum is a free data retrieval call binding the contract method 0x307d6f96.

Solidity: function getChannelStatusNum(uint256 _channelStatus) constant returns(uint256)

func (*CelerLedgerCallerSession) GetCooperativeWithdrawSeqNum

func (_CelerLedger *CelerLedgerCallerSession) GetCooperativeWithdrawSeqNum(_channelId [32]byte) (*big.Int, error)

GetCooperativeWithdrawSeqNum is a free data retrieval call binding the contract method 0xf0c73d70.

Solidity: function getCooperativeWithdrawSeqNum(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerCallerSession) GetDisputeTimeout

func (_CelerLedger *CelerLedgerCallerSession) GetDisputeTimeout(_channelId [32]byte) (*big.Int, error)

GetDisputeTimeout is a free data retrieval call binding the contract method 0xe6322df7.

Solidity: function getDisputeTimeout(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerCallerSession) GetEthPool

func (_CelerLedger *CelerLedgerCallerSession) GetEthPool() (common.Address, error)

GetEthPool is a free data retrieval call binding the contract method 0xd75f960e.

Solidity: function getEthPool() constant returns(address)

func (*CelerLedgerCallerSession) GetLastPayResolveDeadlineMap

func (_CelerLedger *CelerLedgerCallerSession) GetLastPayResolveDeadlineMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetLastPayResolveDeadlineMap is a free data retrieval call binding the contract method 0x9f1fad83.

Solidity: function getLastPayResolveDeadlineMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerCallerSession) GetMigratedTo

func (_CelerLedger *CelerLedgerCallerSession) GetMigratedTo(_channelId [32]byte) (common.Address, error)

GetMigratedTo is a free data retrieval call binding the contract method 0xc38a325d.

Solidity: function getMigratedTo(bytes32 _channelId) constant returns(address)

func (*CelerLedgerCallerSession) GetNextPayIdListHashMap

func (_CelerLedger *CelerLedgerCallerSession) GetNextPayIdListHashMap(_channelId [32]byte) ([2]common.Address, [2][32]byte, error)

GetNextPayIdListHashMap is a free data retrieval call binding the contract method 0xcd3a1be6.

Solidity: function getNextPayIdListHashMap(bytes32 _channelId) constant returns(address[2], bytes32[2])

func (*CelerLedgerCallerSession) GetPayRegistry

func (_CelerLedger *CelerLedgerCallerSession) GetPayRegistry() (common.Address, error)

GetPayRegistry is a free data retrieval call binding the contract method 0x312ea2c6.

Solidity: function getPayRegistry() constant returns(address)

func (*CelerLedgerCallerSession) GetPeersMigrationInfo

func (_CelerLedger *CelerLedgerCallerSession) GetPeersMigrationInfo(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, error)

GetPeersMigrationInfo is a free data retrieval call binding the contract method 0x88f41465.

Solidity: function getPeersMigrationInfo(bytes32 _channelId) constant returns(address[2], uint256[2], uint256[2], uint256[2], uint256[2], uint256[2])

func (*CelerLedgerCallerSession) GetPendingPayOutMap

func (_CelerLedger *CelerLedgerCallerSession) GetPendingPayOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetPendingPayOutMap is a free data retrieval call binding the contract method 0x0165cef8.

Solidity: function getPendingPayOutMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerCallerSession) GetSettleFinalizedTime

func (_CelerLedger *CelerLedgerCallerSession) GetSettleFinalizedTime(_channelId [32]byte) (*big.Int, error)

GetSettleFinalizedTime is a free data retrieval call binding the contract method 0x09b65d86.

Solidity: function getSettleFinalizedTime(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerCallerSession) GetStateSeqNumMap

func (_CelerLedger *CelerLedgerCallerSession) GetStateSeqNumMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetStateSeqNumMap is a free data retrieval call binding the contract method 0x666a6d65.

Solidity: function getStateSeqNumMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerCallerSession) GetTokenContract

func (_CelerLedger *CelerLedgerCallerSession) GetTokenContract(_channelId [32]byte) (common.Address, error)

GetTokenContract is a free data retrieval call binding the contract method 0x2e2a5a02.

Solidity: function getTokenContract(bytes32 _channelId) constant returns(address)

func (*CelerLedgerCallerSession) GetTokenType

func (_CelerLedger *CelerLedgerCallerSession) GetTokenType(_channelId [32]byte) (uint8, error)

GetTokenType is a free data retrieval call binding the contract method 0x979a9b5e.

Solidity: function getTokenType(bytes32 _channelId) constant returns(uint8)

func (*CelerLedgerCallerSession) GetTotalBalance

func (_CelerLedger *CelerLedgerCallerSession) GetTotalBalance(_channelId [32]byte) (*big.Int, error)

GetTotalBalance is a free data retrieval call binding the contract method 0x69d5dd67.

Solidity: function getTotalBalance(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerCallerSession) GetTransferOutMap

func (_CelerLedger *CelerLedgerCallerSession) GetTransferOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetTransferOutMap is a free data retrieval call binding the contract method 0xd927bfc4.

Solidity: function getTransferOutMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerCallerSession) GetWithdrawIntent

func (_CelerLedger *CelerLedgerCallerSession) GetWithdrawIntent(_channelId [32]byte) (common.Address, *big.Int, *big.Int, [32]byte, error)

GetWithdrawIntent is a free data retrieval call binding the contract method 0x76bff117.

Solidity: function getWithdrawIntent(bytes32 _channelId) constant returns(address, uint256, uint256, bytes32)

func (*CelerLedgerCallerSession) IsOwner

func (_CelerLedger *CelerLedgerCallerSession) IsOwner() (bool, error)

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

Solidity: function isOwner() constant returns(bool)

func (*CelerLedgerCallerSession) Owner

func (_CelerLedger *CelerLedgerCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

type CelerLedgerClearOnePay

type CelerLedgerClearOnePay struct {
	ChannelId [32]byte
	PayId     [32]byte
	PeerFrom  common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

CelerLedgerClearOnePay represents a ClearOnePay event raised by the CelerLedger contract.

type CelerLedgerClearOnePayIterator

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

CelerLedgerClearOnePayIterator is returned from FilterClearOnePay and is used to iterate over the raw logs and unpacked data for ClearOnePay events raised by the CelerLedger contract.

func (*CelerLedgerClearOnePayIterator) Close

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

func (*CelerLedgerClearOnePayIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerClearOnePayIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerConfirmSettle

type CelerLedgerConfirmSettle struct {
	ChannelId     [32]byte
	SettleBalance [2]*big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

CelerLedgerConfirmSettle represents a ConfirmSettle event raised by the CelerLedger contract.

type CelerLedgerConfirmSettleFail

type CelerLedgerConfirmSettleFail struct {
	ChannelId [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

CelerLedgerConfirmSettleFail represents a ConfirmSettleFail event raised by the CelerLedger contract.

type CelerLedgerConfirmSettleFailIterator

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

CelerLedgerConfirmSettleFailIterator is returned from FilterConfirmSettleFail and is used to iterate over the raw logs and unpacked data for ConfirmSettleFail events raised by the CelerLedger contract.

func (*CelerLedgerConfirmSettleFailIterator) Close

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

func (*CelerLedgerConfirmSettleFailIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerConfirmSettleFailIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerConfirmSettleIterator

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

CelerLedgerConfirmSettleIterator is returned from FilterConfirmSettle and is used to iterate over the raw logs and unpacked data for ConfirmSettle events raised by the CelerLedger contract.

func (*CelerLedgerConfirmSettleIterator) Close

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

func (*CelerLedgerConfirmSettleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerConfirmSettleIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerConfirmWithdraw

type CelerLedgerConfirmWithdraw struct {
	ChannelId          [32]byte
	WithdrawnAmount    *big.Int
	Receiver           common.Address
	RecipientChannelId [32]byte
	Deposits           [2]*big.Int
	Withdrawals        [2]*big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

CelerLedgerConfirmWithdraw represents a ConfirmWithdraw event raised by the CelerLedger contract.

type CelerLedgerConfirmWithdrawIterator

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

CelerLedgerConfirmWithdrawIterator is returned from FilterConfirmWithdraw and is used to iterate over the raw logs and unpacked data for ConfirmWithdraw events raised by the CelerLedger contract.

func (*CelerLedgerConfirmWithdrawIterator) Close

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

func (*CelerLedgerConfirmWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerConfirmWithdrawIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerCooperativeSettle

type CelerLedgerCooperativeSettle struct {
	ChannelId     [32]byte
	SettleBalance [2]*big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

CelerLedgerCooperativeSettle represents a CooperativeSettle event raised by the CelerLedger contract.

type CelerLedgerCooperativeSettleIterator

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

CelerLedgerCooperativeSettleIterator is returned from FilterCooperativeSettle and is used to iterate over the raw logs and unpacked data for CooperativeSettle events raised by the CelerLedger contract.

func (*CelerLedgerCooperativeSettleIterator) Close

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

func (*CelerLedgerCooperativeSettleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerCooperativeSettleIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerCooperativeWithdraw

type CelerLedgerCooperativeWithdraw struct {
	ChannelId          [32]byte
	WithdrawnAmount    *big.Int
	Receiver           common.Address
	RecipientChannelId [32]byte
	Deposits           [2]*big.Int
	Withdrawals        [2]*big.Int
	SeqNum             *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

CelerLedgerCooperativeWithdraw represents a CooperativeWithdraw event raised by the CelerLedger contract.

type CelerLedgerCooperativeWithdrawIterator

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

CelerLedgerCooperativeWithdrawIterator is returned from FilterCooperativeWithdraw and is used to iterate over the raw logs and unpacked data for CooperativeWithdraw events raised by the CelerLedger contract.

func (*CelerLedgerCooperativeWithdrawIterator) Close

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

func (*CelerLedgerCooperativeWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerCooperativeWithdrawIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerDeposit

type CelerLedgerDeposit struct {
	ChannelId   [32]byte
	PeerAddrs   [2]common.Address
	Deposits    [2]*big.Int
	Withdrawals [2]*big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

CelerLedgerDeposit represents a Deposit event raised by the CelerLedger contract.

type CelerLedgerDepositIterator

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

CelerLedgerDepositIterator is returned from FilterDeposit and is used to iterate over the raw logs and unpacked data for Deposit events raised by the CelerLedger contract.

func (*CelerLedgerDepositIterator) Close

func (it *CelerLedgerDepositIterator) Close() error

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

func (*CelerLedgerDepositIterator) Error

func (it *CelerLedgerDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerDepositIterator) Next

func (it *CelerLedgerDepositIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerFilterer

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

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

func NewCelerLedgerFilterer

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

NewCelerLedgerFilterer creates a new log filterer instance of CelerLedger, bound to a specific deployed contract.

func (*CelerLedgerFilterer) FilterClearOnePay

func (_CelerLedger *CelerLedgerFilterer) FilterClearOnePay(opts *bind.FilterOpts, channelId [][32]byte, payId [][32]byte, peerFrom []common.Address) (*CelerLedgerClearOnePayIterator, error)

FilterClearOnePay is a free log retrieval operation binding the contract event 0x33252d4bc5cee2ad248475e8c39239a79dc64b2691c9ca1a63ff9af0c75b8776.

Solidity: event ClearOnePay(bytes32 indexed channelId, bytes32 indexed payId, address indexed peerFrom, uint256 amount)

func (*CelerLedgerFilterer) FilterConfirmSettle

func (_CelerLedger *CelerLedgerFilterer) FilterConfirmSettle(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerConfirmSettleIterator, error)

FilterConfirmSettle is a free log retrieval operation binding the contract event 0x728ddd8c5acda5947c34db8d759c66ae70884f526ff9b93637d351b012ef3206.

Solidity: event ConfirmSettle(bytes32 indexed channelId, uint256[2] settleBalance)

func (*CelerLedgerFilterer) FilterConfirmSettleFail

func (_CelerLedger *CelerLedgerFilterer) FilterConfirmSettleFail(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerConfirmSettleFailIterator, error)

FilterConfirmSettleFail is a free log retrieval operation binding the contract event 0xa6549eb18490d42e7ec93f42115d1ee11b706d04077be9597034dd73ec8bcb36.

Solidity: event ConfirmSettleFail(bytes32 indexed channelId)

func (*CelerLedgerFilterer) FilterConfirmWithdraw

func (_CelerLedger *CelerLedgerFilterer) FilterConfirmWithdraw(opts *bind.FilterOpts, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (*CelerLedgerConfirmWithdrawIterator, error)

FilterConfirmWithdraw is a free log retrieval operation binding the contract event 0xe8110b4ee08638c48f6a4d5f726927df4e541893efa9d2c2c47a6b889041826e.

Solidity: event ConfirmWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals)

func (*CelerLedgerFilterer) FilterCooperativeSettle

func (_CelerLedger *CelerLedgerFilterer) FilterCooperativeSettle(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerCooperativeSettleIterator, error)

FilterCooperativeSettle is a free log retrieval operation binding the contract event 0x6c666557dc97fd52cd2d9d6dd6d109e501ffdb831abeecf13aafeeaf762ee1fd.

Solidity: event CooperativeSettle(bytes32 indexed channelId, uint256[2] settleBalance)

func (*CelerLedgerFilterer) FilterCooperativeWithdraw

func (_CelerLedger *CelerLedgerFilterer) FilterCooperativeWithdraw(opts *bind.FilterOpts, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (*CelerLedgerCooperativeWithdrawIterator, error)

FilterCooperativeWithdraw is a free log retrieval operation binding the contract event 0x1b87d077d9b706e42883b454b67730633fd6b4b29f9a9cf5f57c278c54f51c8f.

Solidity: event CooperativeWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals, uint256 seqNum)

func (*CelerLedgerFilterer) FilterDeposit

func (_CelerLedger *CelerLedgerFilterer) FilterDeposit(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerDepositIterator, error)

FilterDeposit is a free log retrieval operation binding the contract event 0xb63f5dc096f516663ffb5ef2b611f0e2acca8617a868c2a3653cba5e3ed0e92c.

Solidity: event Deposit(bytes32 indexed channelId, address[2] peerAddrs, uint256[2] deposits, uint256[2] withdrawals)

func (*CelerLedgerFilterer) FilterIntendSettle

func (_CelerLedger *CelerLedgerFilterer) FilterIntendSettle(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerIntendSettleIterator, error)

FilterIntendSettle is a free log retrieval operation binding the contract event 0x296143e7e25aa055fbb871702776a67da540876e2be721d5c38ba23c97c90d64.

Solidity: event IntendSettle(bytes32 indexed channelId, uint256[2] seqNums)

func (*CelerLedgerFilterer) FilterIntendWithdraw

func (_CelerLedger *CelerLedgerFilterer) FilterIntendWithdraw(opts *bind.FilterOpts, channelId [][32]byte, receiver []common.Address) (*CelerLedgerIntendWithdrawIterator, error)

FilterIntendWithdraw is a free log retrieval operation binding the contract event 0x97883669625c4ff7f5432b4ca33fe75fb5fee985deb196a967e5758f846170fe.

Solidity: event IntendWithdraw(bytes32 indexed channelId, address indexed receiver, uint256 amount)

func (*CelerLedgerFilterer) FilterMigrateChannelFrom

func (_CelerLedger *CelerLedgerFilterer) FilterMigrateChannelFrom(opts *bind.FilterOpts, channelId [][32]byte, oldLedgerAddr []common.Address) (*CelerLedgerMigrateChannelFromIterator, error)

FilterMigrateChannelFrom is a free log retrieval operation binding the contract event 0x141a72a1d915a7c4205104b6e564cc991aa827c5f2c672a5d6a1da8bef99d6eb.

Solidity: event MigrateChannelFrom(bytes32 indexed channelId, address indexed oldLedgerAddr)

func (*CelerLedgerFilterer) FilterMigrateChannelTo

func (_CelerLedger *CelerLedgerFilterer) FilterMigrateChannelTo(opts *bind.FilterOpts, channelId [][32]byte, newLedgerAddr []common.Address) (*CelerLedgerMigrateChannelToIterator, error)

FilterMigrateChannelTo is a free log retrieval operation binding the contract event 0xdefb8a94bbfc44ef5297b035407a7dd1314f369e39c3301f5b90f8810fb9fe4f.

Solidity: event MigrateChannelTo(bytes32 indexed channelId, address indexed newLedgerAddr)

func (*CelerLedgerFilterer) FilterOpenChannel

func (_CelerLedger *CelerLedgerFilterer) FilterOpenChannel(opts *bind.FilterOpts, channelId [][32]byte, tokenAddress []common.Address) (*CelerLedgerOpenChannelIterator, error)

FilterOpenChannel is a free log retrieval operation binding the contract event 0x9d9f66221370175606b4085f28a419b201c9b6dafd9e0c4520e5bf69ea3e166d.

Solidity: event OpenChannel(bytes32 indexed channelId, uint256 tokenType, address indexed tokenAddress, address[2] peerAddrs, uint256[2] initialDeposits)

func (*CelerLedgerFilterer) FilterOwnershipTransferred

func (_CelerLedger *CelerLedgerFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CelerLedgerOwnershipTransferredIterator, error)

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

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

func (*CelerLedgerFilterer) FilterSnapshotStates

func (_CelerLedger *CelerLedgerFilterer) FilterSnapshotStates(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerSnapshotStatesIterator, error)

FilterSnapshotStates is a free log retrieval operation binding the contract event 0xd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271.

Solidity: event SnapshotStates(bytes32 indexed channelId, uint256[2] seqNums)

func (*CelerLedgerFilterer) FilterVetoWithdraw

func (_CelerLedger *CelerLedgerFilterer) FilterVetoWithdraw(opts *bind.FilterOpts, channelId [][32]byte) (*CelerLedgerVetoWithdrawIterator, error)

FilterVetoWithdraw is a free log retrieval operation binding the contract event 0x9a8a5493b616f074b3f754b5fd66049c8e7980f01547289e5e31808485c6002c.

Solidity: event VetoWithdraw(bytes32 indexed channelId)

func (*CelerLedgerFilterer) ParseClearOnePay

func (_CelerLedger *CelerLedgerFilterer) ParseClearOnePay(log types.Log) (*CelerLedgerClearOnePay, error)

ParseClearOnePay is a log parse operation binding the contract event 0x33252d4bc5cee2ad248475e8c39239a79dc64b2691c9ca1a63ff9af0c75b8776.

Solidity: event ClearOnePay(bytes32 indexed channelId, bytes32 indexed payId, address indexed peerFrom, uint256 amount)

func (*CelerLedgerFilterer) ParseConfirmSettle

func (_CelerLedger *CelerLedgerFilterer) ParseConfirmSettle(log types.Log) (*CelerLedgerConfirmSettle, error)

ParseConfirmSettle is a log parse operation binding the contract event 0x728ddd8c5acda5947c34db8d759c66ae70884f526ff9b93637d351b012ef3206.

Solidity: event ConfirmSettle(bytes32 indexed channelId, uint256[2] settleBalance)

func (*CelerLedgerFilterer) ParseConfirmSettleFail

func (_CelerLedger *CelerLedgerFilterer) ParseConfirmSettleFail(log types.Log) (*CelerLedgerConfirmSettleFail, error)

ParseConfirmSettleFail is a log parse operation binding the contract event 0xa6549eb18490d42e7ec93f42115d1ee11b706d04077be9597034dd73ec8bcb36.

Solidity: event ConfirmSettleFail(bytes32 indexed channelId)

func (*CelerLedgerFilterer) ParseConfirmWithdraw

func (_CelerLedger *CelerLedgerFilterer) ParseConfirmWithdraw(log types.Log) (*CelerLedgerConfirmWithdraw, error)

ParseConfirmWithdraw is a log parse operation binding the contract event 0xe8110b4ee08638c48f6a4d5f726927df4e541893efa9d2c2c47a6b889041826e.

Solidity: event ConfirmWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals)

func (*CelerLedgerFilterer) ParseCooperativeSettle

func (_CelerLedger *CelerLedgerFilterer) ParseCooperativeSettle(log types.Log) (*CelerLedgerCooperativeSettle, error)

ParseCooperativeSettle is a log parse operation binding the contract event 0x6c666557dc97fd52cd2d9d6dd6d109e501ffdb831abeecf13aafeeaf762ee1fd.

Solidity: event CooperativeSettle(bytes32 indexed channelId, uint256[2] settleBalance)

func (*CelerLedgerFilterer) ParseCooperativeWithdraw

func (_CelerLedger *CelerLedgerFilterer) ParseCooperativeWithdraw(log types.Log) (*CelerLedgerCooperativeWithdraw, error)

ParseCooperativeWithdraw is a log parse operation binding the contract event 0x1b87d077d9b706e42883b454b67730633fd6b4b29f9a9cf5f57c278c54f51c8f.

Solidity: event CooperativeWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals, uint256 seqNum)

func (*CelerLedgerFilterer) ParseDeposit

func (_CelerLedger *CelerLedgerFilterer) ParseDeposit(log types.Log) (*CelerLedgerDeposit, error)

ParseDeposit is a log parse operation binding the contract event 0xb63f5dc096f516663ffb5ef2b611f0e2acca8617a868c2a3653cba5e3ed0e92c.

Solidity: event Deposit(bytes32 indexed channelId, address[2] peerAddrs, uint256[2] deposits, uint256[2] withdrawals)

func (*CelerLedgerFilterer) ParseIntendSettle

func (_CelerLedger *CelerLedgerFilterer) ParseIntendSettle(log types.Log) (*CelerLedgerIntendSettle, error)

ParseIntendSettle is a log parse operation binding the contract event 0x296143e7e25aa055fbb871702776a67da540876e2be721d5c38ba23c97c90d64.

Solidity: event IntendSettle(bytes32 indexed channelId, uint256[2] seqNums)

func (*CelerLedgerFilterer) ParseIntendWithdraw

func (_CelerLedger *CelerLedgerFilterer) ParseIntendWithdraw(log types.Log) (*CelerLedgerIntendWithdraw, error)

ParseIntendWithdraw is a log parse operation binding the contract event 0x97883669625c4ff7f5432b4ca33fe75fb5fee985deb196a967e5758f846170fe.

Solidity: event IntendWithdraw(bytes32 indexed channelId, address indexed receiver, uint256 amount)

func (*CelerLedgerFilterer) ParseMigrateChannelFrom

func (_CelerLedger *CelerLedgerFilterer) ParseMigrateChannelFrom(log types.Log) (*CelerLedgerMigrateChannelFrom, error)

ParseMigrateChannelFrom is a log parse operation binding the contract event 0x141a72a1d915a7c4205104b6e564cc991aa827c5f2c672a5d6a1da8bef99d6eb.

Solidity: event MigrateChannelFrom(bytes32 indexed channelId, address indexed oldLedgerAddr)

func (*CelerLedgerFilterer) ParseMigrateChannelTo

func (_CelerLedger *CelerLedgerFilterer) ParseMigrateChannelTo(log types.Log) (*CelerLedgerMigrateChannelTo, error)

ParseMigrateChannelTo is a log parse operation binding the contract event 0xdefb8a94bbfc44ef5297b035407a7dd1314f369e39c3301f5b90f8810fb9fe4f.

Solidity: event MigrateChannelTo(bytes32 indexed channelId, address indexed newLedgerAddr)

func (*CelerLedgerFilterer) ParseOpenChannel

func (_CelerLedger *CelerLedgerFilterer) ParseOpenChannel(log types.Log) (*CelerLedgerOpenChannel, error)

ParseOpenChannel is a log parse operation binding the contract event 0x9d9f66221370175606b4085f28a419b201c9b6dafd9e0c4520e5bf69ea3e166d.

Solidity: event OpenChannel(bytes32 indexed channelId, uint256 tokenType, address indexed tokenAddress, address[2] peerAddrs, uint256[2] initialDeposits)

func (*CelerLedgerFilterer) ParseOwnershipTransferred

func (_CelerLedger *CelerLedgerFilterer) ParseOwnershipTransferred(log types.Log) (*CelerLedgerOwnershipTransferred, error)

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

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

func (*CelerLedgerFilterer) ParseSnapshotStates

func (_CelerLedger *CelerLedgerFilterer) ParseSnapshotStates(log types.Log) (*CelerLedgerSnapshotStates, error)

ParseSnapshotStates is a log parse operation binding the contract event 0xd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271.

Solidity: event SnapshotStates(bytes32 indexed channelId, uint256[2] seqNums)

func (*CelerLedgerFilterer) ParseVetoWithdraw

func (_CelerLedger *CelerLedgerFilterer) ParseVetoWithdraw(log types.Log) (*CelerLedgerVetoWithdraw, error)

ParseVetoWithdraw is a log parse operation binding the contract event 0x9a8a5493b616f074b3f754b5fd66049c8e7980f01547289e5e31808485c6002c.

Solidity: event VetoWithdraw(bytes32 indexed channelId)

func (*CelerLedgerFilterer) WatchClearOnePay

func (_CelerLedger *CelerLedgerFilterer) WatchClearOnePay(opts *bind.WatchOpts, sink chan<- *CelerLedgerClearOnePay, channelId [][32]byte, payId [][32]byte, peerFrom []common.Address) (event.Subscription, error)

WatchClearOnePay is a free log subscription operation binding the contract event 0x33252d4bc5cee2ad248475e8c39239a79dc64b2691c9ca1a63ff9af0c75b8776.

Solidity: event ClearOnePay(bytes32 indexed channelId, bytes32 indexed payId, address indexed peerFrom, uint256 amount)

func (*CelerLedgerFilterer) WatchConfirmSettle

func (_CelerLedger *CelerLedgerFilterer) WatchConfirmSettle(opts *bind.WatchOpts, sink chan<- *CelerLedgerConfirmSettle, channelId [][32]byte) (event.Subscription, error)

WatchConfirmSettle is a free log subscription operation binding the contract event 0x728ddd8c5acda5947c34db8d759c66ae70884f526ff9b93637d351b012ef3206.

Solidity: event ConfirmSettle(bytes32 indexed channelId, uint256[2] settleBalance)

func (*CelerLedgerFilterer) WatchConfirmSettleFail

func (_CelerLedger *CelerLedgerFilterer) WatchConfirmSettleFail(opts *bind.WatchOpts, sink chan<- *CelerLedgerConfirmSettleFail, channelId [][32]byte) (event.Subscription, error)

WatchConfirmSettleFail is a free log subscription operation binding the contract event 0xa6549eb18490d42e7ec93f42115d1ee11b706d04077be9597034dd73ec8bcb36.

Solidity: event ConfirmSettleFail(bytes32 indexed channelId)

func (*CelerLedgerFilterer) WatchConfirmWithdraw

func (_CelerLedger *CelerLedgerFilterer) WatchConfirmWithdraw(opts *bind.WatchOpts, sink chan<- *CelerLedgerConfirmWithdraw, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (event.Subscription, error)

WatchConfirmWithdraw is a free log subscription operation binding the contract event 0xe8110b4ee08638c48f6a4d5f726927df4e541893efa9d2c2c47a6b889041826e.

Solidity: event ConfirmWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals)

func (*CelerLedgerFilterer) WatchCooperativeSettle

func (_CelerLedger *CelerLedgerFilterer) WatchCooperativeSettle(opts *bind.WatchOpts, sink chan<- *CelerLedgerCooperativeSettle, channelId [][32]byte) (event.Subscription, error)

WatchCooperativeSettle is a free log subscription operation binding the contract event 0x6c666557dc97fd52cd2d9d6dd6d109e501ffdb831abeecf13aafeeaf762ee1fd.

Solidity: event CooperativeSettle(bytes32 indexed channelId, uint256[2] settleBalance)

func (*CelerLedgerFilterer) WatchCooperativeWithdraw

func (_CelerLedger *CelerLedgerFilterer) WatchCooperativeWithdraw(opts *bind.WatchOpts, sink chan<- *CelerLedgerCooperativeWithdraw, channelId [][32]byte, receiver []common.Address, recipientChannelId [][32]byte) (event.Subscription, error)

WatchCooperativeWithdraw is a free log subscription operation binding the contract event 0x1b87d077d9b706e42883b454b67730633fd6b4b29f9a9cf5f57c278c54f51c8f.

Solidity: event CooperativeWithdraw(bytes32 indexed channelId, uint256 withdrawnAmount, address indexed receiver, bytes32 indexed recipientChannelId, uint256[2] deposits, uint256[2] withdrawals, uint256 seqNum)

func (*CelerLedgerFilterer) WatchDeposit

func (_CelerLedger *CelerLedgerFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *CelerLedgerDeposit, channelId [][32]byte) (event.Subscription, error)

WatchDeposit is a free log subscription operation binding the contract event 0xb63f5dc096f516663ffb5ef2b611f0e2acca8617a868c2a3653cba5e3ed0e92c.

Solidity: event Deposit(bytes32 indexed channelId, address[2] peerAddrs, uint256[2] deposits, uint256[2] withdrawals)

func (*CelerLedgerFilterer) WatchIntendSettle

func (_CelerLedger *CelerLedgerFilterer) WatchIntendSettle(opts *bind.WatchOpts, sink chan<- *CelerLedgerIntendSettle, channelId [][32]byte) (event.Subscription, error)

WatchIntendSettle is a free log subscription operation binding the contract event 0x296143e7e25aa055fbb871702776a67da540876e2be721d5c38ba23c97c90d64.

Solidity: event IntendSettle(bytes32 indexed channelId, uint256[2] seqNums)

func (*CelerLedgerFilterer) WatchIntendWithdraw

func (_CelerLedger *CelerLedgerFilterer) WatchIntendWithdraw(opts *bind.WatchOpts, sink chan<- *CelerLedgerIntendWithdraw, channelId [][32]byte, receiver []common.Address) (event.Subscription, error)

WatchIntendWithdraw is a free log subscription operation binding the contract event 0x97883669625c4ff7f5432b4ca33fe75fb5fee985deb196a967e5758f846170fe.

Solidity: event IntendWithdraw(bytes32 indexed channelId, address indexed receiver, uint256 amount)

func (*CelerLedgerFilterer) WatchMigrateChannelFrom

func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelFrom(opts *bind.WatchOpts, sink chan<- *CelerLedgerMigrateChannelFrom, channelId [][32]byte, oldLedgerAddr []common.Address) (event.Subscription, error)

WatchMigrateChannelFrom is a free log subscription operation binding the contract event 0x141a72a1d915a7c4205104b6e564cc991aa827c5f2c672a5d6a1da8bef99d6eb.

Solidity: event MigrateChannelFrom(bytes32 indexed channelId, address indexed oldLedgerAddr)

func (*CelerLedgerFilterer) WatchMigrateChannelTo

func (_CelerLedger *CelerLedgerFilterer) WatchMigrateChannelTo(opts *bind.WatchOpts, sink chan<- *CelerLedgerMigrateChannelTo, channelId [][32]byte, newLedgerAddr []common.Address) (event.Subscription, error)

WatchMigrateChannelTo is a free log subscription operation binding the contract event 0xdefb8a94bbfc44ef5297b035407a7dd1314f369e39c3301f5b90f8810fb9fe4f.

Solidity: event MigrateChannelTo(bytes32 indexed channelId, address indexed newLedgerAddr)

func (*CelerLedgerFilterer) WatchOpenChannel

func (_CelerLedger *CelerLedgerFilterer) WatchOpenChannel(opts *bind.WatchOpts, sink chan<- *CelerLedgerOpenChannel, channelId [][32]byte, tokenAddress []common.Address) (event.Subscription, error)

WatchOpenChannel is a free log subscription operation binding the contract event 0x9d9f66221370175606b4085f28a419b201c9b6dafd9e0c4520e5bf69ea3e166d.

Solidity: event OpenChannel(bytes32 indexed channelId, uint256 tokenType, address indexed tokenAddress, address[2] peerAddrs, uint256[2] initialDeposits)

func (*CelerLedgerFilterer) WatchOwnershipTransferred

func (_CelerLedger *CelerLedgerFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CelerLedgerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

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

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

func (*CelerLedgerFilterer) WatchSnapshotStates

func (_CelerLedger *CelerLedgerFilterer) WatchSnapshotStates(opts *bind.WatchOpts, sink chan<- *CelerLedgerSnapshotStates, channelId [][32]byte) (event.Subscription, error)

WatchSnapshotStates is a free log subscription operation binding the contract event 0xd0793cc4198bf052a6d91a9a1273c4af39f02a91b0e19029477511c278c5b271.

Solidity: event SnapshotStates(bytes32 indexed channelId, uint256[2] seqNums)

func (*CelerLedgerFilterer) WatchVetoWithdraw

func (_CelerLedger *CelerLedgerFilterer) WatchVetoWithdraw(opts *bind.WatchOpts, sink chan<- *CelerLedgerVetoWithdraw, channelId [][32]byte) (event.Subscription, error)

WatchVetoWithdraw is a free log subscription operation binding the contract event 0x9a8a5493b616f074b3f754b5fd66049c8e7980f01547289e5e31808485c6002c.

Solidity: event VetoWithdraw(bytes32 indexed channelId)

type CelerLedgerIntendSettle

type CelerLedgerIntendSettle struct {
	ChannelId [32]byte
	SeqNums   [2]*big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

CelerLedgerIntendSettle represents a IntendSettle event raised by the CelerLedger contract.

type CelerLedgerIntendSettleIterator

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

CelerLedgerIntendSettleIterator is returned from FilterIntendSettle and is used to iterate over the raw logs and unpacked data for IntendSettle events raised by the CelerLedger contract.

func (*CelerLedgerIntendSettleIterator) Close

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

func (*CelerLedgerIntendSettleIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerIntendSettleIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerIntendWithdraw

type CelerLedgerIntendWithdraw struct {
	ChannelId [32]byte
	Receiver  common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

CelerLedgerIntendWithdraw represents a IntendWithdraw event raised by the CelerLedger contract.

type CelerLedgerIntendWithdrawIterator

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

CelerLedgerIntendWithdrawIterator is returned from FilterIntendWithdraw and is used to iterate over the raw logs and unpacked data for IntendWithdraw events raised by the CelerLedger contract.

func (*CelerLedgerIntendWithdrawIterator) Close

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

func (*CelerLedgerIntendWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerIntendWithdrawIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerMigrateChannelFrom

type CelerLedgerMigrateChannelFrom struct {
	ChannelId     [32]byte
	OldLedgerAddr common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

CelerLedgerMigrateChannelFrom represents a MigrateChannelFrom event raised by the CelerLedger contract.

type CelerLedgerMigrateChannelFromIterator

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

CelerLedgerMigrateChannelFromIterator is returned from FilterMigrateChannelFrom and is used to iterate over the raw logs and unpacked data for MigrateChannelFrom events raised by the CelerLedger contract.

func (*CelerLedgerMigrateChannelFromIterator) Close

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

func (*CelerLedgerMigrateChannelFromIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerMigrateChannelFromIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerMigrateChannelTo

type CelerLedgerMigrateChannelTo struct {
	ChannelId     [32]byte
	NewLedgerAddr common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

CelerLedgerMigrateChannelTo represents a MigrateChannelTo event raised by the CelerLedger contract.

type CelerLedgerMigrateChannelToIterator

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

CelerLedgerMigrateChannelToIterator is returned from FilterMigrateChannelTo and is used to iterate over the raw logs and unpacked data for MigrateChannelTo events raised by the CelerLedger contract.

func (*CelerLedgerMigrateChannelToIterator) Close

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

func (*CelerLedgerMigrateChannelToIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerMigrateChannelToIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerOpenChannel

type CelerLedgerOpenChannel struct {
	ChannelId       [32]byte
	TokenType       *big.Int
	TokenAddress    common.Address
	PeerAddrs       [2]common.Address
	InitialDeposits [2]*big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

CelerLedgerOpenChannel represents a OpenChannel event raised by the CelerLedger contract.

type CelerLedgerOpenChannelIterator

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

CelerLedgerOpenChannelIterator is returned from FilterOpenChannel and is used to iterate over the raw logs and unpacked data for OpenChannel events raised by the CelerLedger contract.

func (*CelerLedgerOpenChannelIterator) Close

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

func (*CelerLedgerOpenChannelIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerOpenChannelIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerOwnershipTransferred

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

CelerLedgerOwnershipTransferred represents a OwnershipTransferred event raised by the CelerLedger contract.

type CelerLedgerOwnershipTransferredIterator

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

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

func (*CelerLedgerOwnershipTransferredIterator) Close

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

func (*CelerLedgerOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerOwnershipTransferredIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerRaw

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

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

func (*CelerLedgerRaw) Call

func (_CelerLedger *CelerLedgerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*CelerLedgerRaw) Transact

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

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

func (*CelerLedgerRaw) Transfer

func (_CelerLedger *CelerLedgerRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CelerLedgerSession

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

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

func (*CelerLedgerSession) ClearPays

func (_CelerLedger *CelerLedgerSession) ClearPays(_channelId [32]byte, _peerFrom common.Address, _payIdList []byte) (*types.Transaction, error)

ClearPays is a paid mutator transaction binding the contract method 0xfd0a1a61.

Solidity: function clearPays(bytes32 _channelId, address _peerFrom, bytes _payIdList) returns()

func (*CelerLedgerSession) ConfirmSettle

func (_CelerLedger *CelerLedgerSession) ConfirmSettle(_channelId [32]byte) (*types.Transaction, error)

ConfirmSettle is a paid mutator transaction binding the contract method 0xc7ff8625.

Solidity: function confirmSettle(bytes32 _channelId) returns()

func (*CelerLedgerSession) ConfirmWithdraw

func (_CelerLedger *CelerLedgerSession) ConfirmWithdraw(_channelId [32]byte) (*types.Transaction, error)

ConfirmWithdraw is a paid mutator transaction binding the contract method 0x7e9a7a3e.

Solidity: function confirmWithdraw(bytes32 _channelId) returns()

func (*CelerLedgerSession) CooperativeSettle

func (_CelerLedger *CelerLedgerSession) CooperativeSettle(_settleRequest []byte) (*types.Transaction, error)

CooperativeSettle is a paid mutator transaction binding the contract method 0x09683c03.

Solidity: function cooperativeSettle(bytes _settleRequest) returns()

func (*CelerLedgerSession) CooperativeWithdraw

func (_CelerLedger *CelerLedgerSession) CooperativeWithdraw(_cooperativeWithdrawRequest []byte) (*types.Transaction, error)

CooperativeWithdraw is a paid mutator transaction binding the contract method 0xd757abd2.

Solidity: function cooperativeWithdraw(bytes _cooperativeWithdrawRequest) returns()

func (*CelerLedgerSession) Deposit

func (_CelerLedger *CelerLedgerSession) Deposit(_channelId [32]byte, _receiver common.Address, _transferFromAmount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd954863c.

Solidity: function deposit(bytes32 _channelId, address _receiver, uint256 _transferFromAmount) returns()

func (*CelerLedgerSession) DepositInBatch

func (_CelerLedger *CelerLedgerSession) DepositInBatch(_channelIds [][32]byte, _receivers []common.Address, _transferFromAmounts []*big.Int) (*types.Transaction, error)

DepositInBatch is a paid mutator transaction binding the contract method 0xe5780db2.

Solidity: function depositInBatch(bytes32[] _channelIds, address[] _receivers, uint256[] _transferFromAmounts) returns()

func (*CelerLedgerSession) DisableBalanceLimits

func (_CelerLedger *CelerLedgerSession) DisableBalanceLimits() (*types.Transaction, error)

DisableBalanceLimits is a paid mutator transaction binding the contract method 0xe063913c.

Solidity: function disableBalanceLimits() returns()

func (*CelerLedgerSession) EnableBalanceLimits

func (_CelerLedger *CelerLedgerSession) EnableBalanceLimits() (*types.Transaction, error)

EnableBalanceLimits is a paid mutator transaction binding the contract method 0x83c8f8b8.

Solidity: function enableBalanceLimits() returns()

func (*CelerLedgerSession) GetBalanceLimit

func (_CelerLedger *CelerLedgerSession) GetBalanceLimit(_tokenAddr common.Address) (*big.Int, error)

GetBalanceLimit is a free data retrieval call binding the contract method 0xec7c637d.

Solidity: function getBalanceLimit(address _tokenAddr) constant returns(uint256)

func (*CelerLedgerSession) GetBalanceLimitsEnabled

func (_CelerLedger *CelerLedgerSession) GetBalanceLimitsEnabled() (bool, error)

GetBalanceLimitsEnabled is a free data retrieval call binding the contract method 0x2b559ecc.

Solidity: function getBalanceLimitsEnabled() constant returns(bool)

func (*CelerLedgerSession) GetBalanceMap

func (_CelerLedger *CelerLedgerSession) GetBalanceMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, error)

GetBalanceMap is a free data retrieval call binding the contract method 0xbd480cb7.

Solidity: function getBalanceMap(bytes32 _channelId) constant returns(address[2], uint256[2], uint256[2])

func (*CelerLedgerSession) GetCelerWallet

func (_CelerLedger *CelerLedgerSession) GetCelerWallet() (common.Address, error)

GetCelerWallet is a free data retrieval call binding the contract method 0xa099a39f.

Solidity: function getCelerWallet() constant returns(address)

func (*CelerLedgerSession) GetChannelMigrationArgs

func (_CelerLedger *CelerLedgerSession) GetChannelMigrationArgs(_channelId [32]byte) (*big.Int, *big.Int, common.Address, *big.Int, error)

GetChannelMigrationArgs is a free data retrieval call binding the contract method 0x2f0ac304.

Solidity: function getChannelMigrationArgs(bytes32 _channelId) constant returns(uint256, uint256, address, uint256)

func (*CelerLedgerSession) GetChannelStatus

func (_CelerLedger *CelerLedgerSession) GetChannelStatus(_channelId [32]byte) (uint8, error)

GetChannelStatus is a free data retrieval call binding the contract method 0xcc0b94b7.

Solidity: function getChannelStatus(bytes32 _channelId) constant returns(uint8)

func (*CelerLedgerSession) GetChannelStatusNum

func (_CelerLedger *CelerLedgerSession) GetChannelStatusNum(_channelStatus *big.Int) (*big.Int, error)

GetChannelStatusNum is a free data retrieval call binding the contract method 0x307d6f96.

Solidity: function getChannelStatusNum(uint256 _channelStatus) constant returns(uint256)

func (*CelerLedgerSession) GetCooperativeWithdrawSeqNum

func (_CelerLedger *CelerLedgerSession) GetCooperativeWithdrawSeqNum(_channelId [32]byte) (*big.Int, error)

GetCooperativeWithdrawSeqNum is a free data retrieval call binding the contract method 0xf0c73d70.

Solidity: function getCooperativeWithdrawSeqNum(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerSession) GetDisputeTimeout

func (_CelerLedger *CelerLedgerSession) GetDisputeTimeout(_channelId [32]byte) (*big.Int, error)

GetDisputeTimeout is a free data retrieval call binding the contract method 0xe6322df7.

Solidity: function getDisputeTimeout(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerSession) GetEthPool

func (_CelerLedger *CelerLedgerSession) GetEthPool() (common.Address, error)

GetEthPool is a free data retrieval call binding the contract method 0xd75f960e.

Solidity: function getEthPool() constant returns(address)

func (*CelerLedgerSession) GetLastPayResolveDeadlineMap

func (_CelerLedger *CelerLedgerSession) GetLastPayResolveDeadlineMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetLastPayResolveDeadlineMap is a free data retrieval call binding the contract method 0x9f1fad83.

Solidity: function getLastPayResolveDeadlineMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerSession) GetMigratedTo

func (_CelerLedger *CelerLedgerSession) GetMigratedTo(_channelId [32]byte) (common.Address, error)

GetMigratedTo is a free data retrieval call binding the contract method 0xc38a325d.

Solidity: function getMigratedTo(bytes32 _channelId) constant returns(address)

func (*CelerLedgerSession) GetNextPayIdListHashMap

func (_CelerLedger *CelerLedgerSession) GetNextPayIdListHashMap(_channelId [32]byte) ([2]common.Address, [2][32]byte, error)

GetNextPayIdListHashMap is a free data retrieval call binding the contract method 0xcd3a1be6.

Solidity: function getNextPayIdListHashMap(bytes32 _channelId) constant returns(address[2], bytes32[2])

func (*CelerLedgerSession) GetPayRegistry

func (_CelerLedger *CelerLedgerSession) GetPayRegistry() (common.Address, error)

GetPayRegistry is a free data retrieval call binding the contract method 0x312ea2c6.

Solidity: function getPayRegistry() constant returns(address)

func (*CelerLedgerSession) GetPeersMigrationInfo

func (_CelerLedger *CelerLedgerSession) GetPeersMigrationInfo(_channelId [32]byte) ([2]common.Address, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, [2]*big.Int, error)

GetPeersMigrationInfo is a free data retrieval call binding the contract method 0x88f41465.

Solidity: function getPeersMigrationInfo(bytes32 _channelId) constant returns(address[2], uint256[2], uint256[2], uint256[2], uint256[2], uint256[2])

func (*CelerLedgerSession) GetPendingPayOutMap

func (_CelerLedger *CelerLedgerSession) GetPendingPayOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetPendingPayOutMap is a free data retrieval call binding the contract method 0x0165cef8.

Solidity: function getPendingPayOutMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerSession) GetSettleFinalizedTime

func (_CelerLedger *CelerLedgerSession) GetSettleFinalizedTime(_channelId [32]byte) (*big.Int, error)

GetSettleFinalizedTime is a free data retrieval call binding the contract method 0x09b65d86.

Solidity: function getSettleFinalizedTime(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerSession) GetStateSeqNumMap

func (_CelerLedger *CelerLedgerSession) GetStateSeqNumMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetStateSeqNumMap is a free data retrieval call binding the contract method 0x666a6d65.

Solidity: function getStateSeqNumMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerSession) GetTokenContract

func (_CelerLedger *CelerLedgerSession) GetTokenContract(_channelId [32]byte) (common.Address, error)

GetTokenContract is a free data retrieval call binding the contract method 0x2e2a5a02.

Solidity: function getTokenContract(bytes32 _channelId) constant returns(address)

func (*CelerLedgerSession) GetTokenType

func (_CelerLedger *CelerLedgerSession) GetTokenType(_channelId [32]byte) (uint8, error)

GetTokenType is a free data retrieval call binding the contract method 0x979a9b5e.

Solidity: function getTokenType(bytes32 _channelId) constant returns(uint8)

func (*CelerLedgerSession) GetTotalBalance

func (_CelerLedger *CelerLedgerSession) GetTotalBalance(_channelId [32]byte) (*big.Int, error)

GetTotalBalance is a free data retrieval call binding the contract method 0x69d5dd67.

Solidity: function getTotalBalance(bytes32 _channelId) constant returns(uint256)

func (*CelerLedgerSession) GetTransferOutMap

func (_CelerLedger *CelerLedgerSession) GetTransferOutMap(_channelId [32]byte) ([2]common.Address, [2]*big.Int, error)

GetTransferOutMap is a free data retrieval call binding the contract method 0xd927bfc4.

Solidity: function getTransferOutMap(bytes32 _channelId) constant returns(address[2], uint256[2])

func (*CelerLedgerSession) GetWithdrawIntent

func (_CelerLedger *CelerLedgerSession) GetWithdrawIntent(_channelId [32]byte) (common.Address, *big.Int, *big.Int, [32]byte, error)

GetWithdrawIntent is a free data retrieval call binding the contract method 0x76bff117.

Solidity: function getWithdrawIntent(bytes32 _channelId) constant returns(address, uint256, uint256, bytes32)

func (*CelerLedgerSession) IntendSettle

func (_CelerLedger *CelerLedgerSession) IntendSettle(_signedSimplexStateArray []byte) (*types.Transaction, error)

IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe.

Solidity: function intendSettle(bytes _signedSimplexStateArray) returns()

func (*CelerLedgerSession) IntendWithdraw

func (_CelerLedger *CelerLedgerSession) IntendWithdraw(_channelId [32]byte, _amount *big.Int, _recipientChannelId [32]byte) (*types.Transaction, error)

IntendWithdraw is a paid mutator transaction binding the contract method 0x8942ecb2.

Solidity: function intendWithdraw(bytes32 _channelId, uint256 _amount, bytes32 _recipientChannelId) returns()

func (*CelerLedgerSession) IsOwner

func (_CelerLedger *CelerLedgerSession) IsOwner() (bool, error)

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

Solidity: function isOwner() constant returns(bool)

func (*CelerLedgerSession) MigrateChannelFrom

func (_CelerLedger *CelerLedgerSession) MigrateChannelFrom(_fromLedgerAddr common.Address, _migrationRequest []byte) (*types.Transaction, error)

MigrateChannelFrom is a paid mutator transaction binding the contract method 0x2e3c517a.

Solidity: function migrateChannelFrom(address _fromLedgerAddr, bytes _migrationRequest) returns()

func (*CelerLedgerSession) MigrateChannelTo

func (_CelerLedger *CelerLedgerSession) MigrateChannelTo(_migrationRequest []byte) (*types.Transaction, error)

MigrateChannelTo is a paid mutator transaction binding the contract method 0xe0a515b7.

Solidity: function migrateChannelTo(bytes _migrationRequest) returns(bytes32)

func (*CelerLedgerSession) OpenChannel

func (_CelerLedger *CelerLedgerSession) OpenChannel(_openRequest []byte) (*types.Transaction, error)

OpenChannel is a paid mutator transaction binding the contract method 0x93b7b3ce.

Solidity: function openChannel(bytes _openRequest) returns()

func (*CelerLedgerSession) Owner

func (_CelerLedger *CelerLedgerSession) Owner() (common.Address, error)

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

Solidity: function owner() constant returns(address)

func (*CelerLedgerSession) RenounceOwnership

func (_CelerLedger *CelerLedgerSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*CelerLedgerSession) SetBalanceLimits

func (_CelerLedger *CelerLedgerSession) SetBalanceLimits(_tokenAddrs []common.Address, _limits []*big.Int) (*types.Transaction, error)

SetBalanceLimits is a paid mutator transaction binding the contract method 0xa8580cab.

Solidity: function setBalanceLimits(address[] _tokenAddrs, uint256[] _limits) returns()

func (*CelerLedgerSession) SnapshotStates

func (_CelerLedger *CelerLedgerSession) SnapshotStates(_signedSimplexStateArray []byte) (*types.Transaction, error)

SnapshotStates is a paid mutator transaction binding the contract method 0x4102b9a8.

Solidity: function snapshotStates(bytes _signedSimplexStateArray) returns()

func (*CelerLedgerSession) TransferOwnership

func (_CelerLedger *CelerLedgerSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*CelerLedgerSession) VetoWithdraw

func (_CelerLedger *CelerLedgerSession) VetoWithdraw(_channelId [32]byte) (*types.Transaction, error)

VetoWithdraw is a paid mutator transaction binding the contract method 0x255aab59.

Solidity: function vetoWithdraw(bytes32 _channelId) returns()

type CelerLedgerSnapshotStates

type CelerLedgerSnapshotStates struct {
	ChannelId [32]byte
	SeqNums   [2]*big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

CelerLedgerSnapshotStates represents a SnapshotStates event raised by the CelerLedger contract.

type CelerLedgerSnapshotStatesIterator

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

CelerLedgerSnapshotStatesIterator is returned from FilterSnapshotStates and is used to iterate over the raw logs and unpacked data for SnapshotStates events raised by the CelerLedger contract.

func (*CelerLedgerSnapshotStatesIterator) Close

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

func (*CelerLedgerSnapshotStatesIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerSnapshotStatesIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CelerLedgerTransactor

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

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

func NewCelerLedgerTransactor

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

NewCelerLedgerTransactor creates a new write-only instance of CelerLedger, bound to a specific deployed contract.

func (*CelerLedgerTransactor) ClearPays

func (_CelerLedger *CelerLedgerTransactor) ClearPays(opts *bind.TransactOpts, _channelId [32]byte, _peerFrom common.Address, _payIdList []byte) (*types.Transaction, error)

ClearPays is a paid mutator transaction binding the contract method 0xfd0a1a61.

Solidity: function clearPays(bytes32 _channelId, address _peerFrom, bytes _payIdList) returns()

func (*CelerLedgerTransactor) ConfirmSettle

func (_CelerLedger *CelerLedgerTransactor) ConfirmSettle(opts *bind.TransactOpts, _channelId [32]byte) (*types.Transaction, error)

ConfirmSettle is a paid mutator transaction binding the contract method 0xc7ff8625.

Solidity: function confirmSettle(bytes32 _channelId) returns()

func (*CelerLedgerTransactor) ConfirmWithdraw

func (_CelerLedger *CelerLedgerTransactor) ConfirmWithdraw(opts *bind.TransactOpts, _channelId [32]byte) (*types.Transaction, error)

ConfirmWithdraw is a paid mutator transaction binding the contract method 0x7e9a7a3e.

Solidity: function confirmWithdraw(bytes32 _channelId) returns()

func (*CelerLedgerTransactor) CooperativeSettle

func (_CelerLedger *CelerLedgerTransactor) CooperativeSettle(opts *bind.TransactOpts, _settleRequest []byte) (*types.Transaction, error)

CooperativeSettle is a paid mutator transaction binding the contract method 0x09683c03.

Solidity: function cooperativeSettle(bytes _settleRequest) returns()

func (*CelerLedgerTransactor) CooperativeWithdraw

func (_CelerLedger *CelerLedgerTransactor) CooperativeWithdraw(opts *bind.TransactOpts, _cooperativeWithdrawRequest []byte) (*types.Transaction, error)

CooperativeWithdraw is a paid mutator transaction binding the contract method 0xd757abd2.

Solidity: function cooperativeWithdraw(bytes _cooperativeWithdrawRequest) returns()

func (*CelerLedgerTransactor) Deposit

func (_CelerLedger *CelerLedgerTransactor) Deposit(opts *bind.TransactOpts, _channelId [32]byte, _receiver common.Address, _transferFromAmount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd954863c.

Solidity: function deposit(bytes32 _channelId, address _receiver, uint256 _transferFromAmount) returns()

func (*CelerLedgerTransactor) DepositInBatch

func (_CelerLedger *CelerLedgerTransactor) DepositInBatch(opts *bind.TransactOpts, _channelIds [][32]byte, _receivers []common.Address, _transferFromAmounts []*big.Int) (*types.Transaction, error)

DepositInBatch is a paid mutator transaction binding the contract method 0xe5780db2.

Solidity: function depositInBatch(bytes32[] _channelIds, address[] _receivers, uint256[] _transferFromAmounts) returns()

func (*CelerLedgerTransactor) DisableBalanceLimits

func (_CelerLedger *CelerLedgerTransactor) DisableBalanceLimits(opts *bind.TransactOpts) (*types.Transaction, error)

DisableBalanceLimits is a paid mutator transaction binding the contract method 0xe063913c.

Solidity: function disableBalanceLimits() returns()

func (*CelerLedgerTransactor) EnableBalanceLimits

func (_CelerLedger *CelerLedgerTransactor) EnableBalanceLimits(opts *bind.TransactOpts) (*types.Transaction, error)

EnableBalanceLimits is a paid mutator transaction binding the contract method 0x83c8f8b8.

Solidity: function enableBalanceLimits() returns()

func (*CelerLedgerTransactor) IntendSettle

func (_CelerLedger *CelerLedgerTransactor) IntendSettle(opts *bind.TransactOpts, _signedSimplexStateArray []byte) (*types.Transaction, error)

IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe.

Solidity: function intendSettle(bytes _signedSimplexStateArray) returns()

func (*CelerLedgerTransactor) IntendWithdraw

func (_CelerLedger *CelerLedgerTransactor) IntendWithdraw(opts *bind.TransactOpts, _channelId [32]byte, _amount *big.Int, _recipientChannelId [32]byte) (*types.Transaction, error)

IntendWithdraw is a paid mutator transaction binding the contract method 0x8942ecb2.

Solidity: function intendWithdraw(bytes32 _channelId, uint256 _amount, bytes32 _recipientChannelId) returns()

func (*CelerLedgerTransactor) MigrateChannelFrom

func (_CelerLedger *CelerLedgerTransactor) MigrateChannelFrom(opts *bind.TransactOpts, _fromLedgerAddr common.Address, _migrationRequest []byte) (*types.Transaction, error)

MigrateChannelFrom is a paid mutator transaction binding the contract method 0x2e3c517a.

Solidity: function migrateChannelFrom(address _fromLedgerAddr, bytes _migrationRequest) returns()

func (*CelerLedgerTransactor) MigrateChannelTo

func (_CelerLedger *CelerLedgerTransactor) MigrateChannelTo(opts *bind.TransactOpts, _migrationRequest []byte) (*types.Transaction, error)

MigrateChannelTo is a paid mutator transaction binding the contract method 0xe0a515b7.

Solidity: function migrateChannelTo(bytes _migrationRequest) returns(bytes32)

func (*CelerLedgerTransactor) OpenChannel

func (_CelerLedger *CelerLedgerTransactor) OpenChannel(opts *bind.TransactOpts, _openRequest []byte) (*types.Transaction, error)

OpenChannel is a paid mutator transaction binding the contract method 0x93b7b3ce.

Solidity: function openChannel(bytes _openRequest) returns()

func (*CelerLedgerTransactor) RenounceOwnership

func (_CelerLedger *CelerLedgerTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*CelerLedgerTransactor) SetBalanceLimits

func (_CelerLedger *CelerLedgerTransactor) SetBalanceLimits(opts *bind.TransactOpts, _tokenAddrs []common.Address, _limits []*big.Int) (*types.Transaction, error)

SetBalanceLimits is a paid mutator transaction binding the contract method 0xa8580cab.

Solidity: function setBalanceLimits(address[] _tokenAddrs, uint256[] _limits) returns()

func (*CelerLedgerTransactor) SnapshotStates

func (_CelerLedger *CelerLedgerTransactor) SnapshotStates(opts *bind.TransactOpts, _signedSimplexStateArray []byte) (*types.Transaction, error)

SnapshotStates is a paid mutator transaction binding the contract method 0x4102b9a8.

Solidity: function snapshotStates(bytes _signedSimplexStateArray) returns()

func (*CelerLedgerTransactor) TransferOwnership

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

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

Solidity: function transferOwnership(address newOwner) returns()

func (*CelerLedgerTransactor) VetoWithdraw

func (_CelerLedger *CelerLedgerTransactor) VetoWithdraw(opts *bind.TransactOpts, _channelId [32]byte) (*types.Transaction, error)

VetoWithdraw is a paid mutator transaction binding the contract method 0x255aab59.

Solidity: function vetoWithdraw(bytes32 _channelId) returns()

type CelerLedgerTransactorRaw

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

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

func (*CelerLedgerTransactorRaw) Transact

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

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

func (*CelerLedgerTransactorRaw) Transfer

func (_CelerLedger *CelerLedgerTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type CelerLedgerTransactorSession

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

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

func (*CelerLedgerTransactorSession) ClearPays

func (_CelerLedger *CelerLedgerTransactorSession) ClearPays(_channelId [32]byte, _peerFrom common.Address, _payIdList []byte) (*types.Transaction, error)

ClearPays is a paid mutator transaction binding the contract method 0xfd0a1a61.

Solidity: function clearPays(bytes32 _channelId, address _peerFrom, bytes _payIdList) returns()

func (*CelerLedgerTransactorSession) ConfirmSettle

func (_CelerLedger *CelerLedgerTransactorSession) ConfirmSettle(_channelId [32]byte) (*types.Transaction, error)

ConfirmSettle is a paid mutator transaction binding the contract method 0xc7ff8625.

Solidity: function confirmSettle(bytes32 _channelId) returns()

func (*CelerLedgerTransactorSession) ConfirmWithdraw

func (_CelerLedger *CelerLedgerTransactorSession) ConfirmWithdraw(_channelId [32]byte) (*types.Transaction, error)

ConfirmWithdraw is a paid mutator transaction binding the contract method 0x7e9a7a3e.

Solidity: function confirmWithdraw(bytes32 _channelId) returns()

func (*CelerLedgerTransactorSession) CooperativeSettle

func (_CelerLedger *CelerLedgerTransactorSession) CooperativeSettle(_settleRequest []byte) (*types.Transaction, error)

CooperativeSettle is a paid mutator transaction binding the contract method 0x09683c03.

Solidity: function cooperativeSettle(bytes _settleRequest) returns()

func (*CelerLedgerTransactorSession) CooperativeWithdraw

func (_CelerLedger *CelerLedgerTransactorSession) CooperativeWithdraw(_cooperativeWithdrawRequest []byte) (*types.Transaction, error)

CooperativeWithdraw is a paid mutator transaction binding the contract method 0xd757abd2.

Solidity: function cooperativeWithdraw(bytes _cooperativeWithdrawRequest) returns()

func (*CelerLedgerTransactorSession) Deposit

func (_CelerLedger *CelerLedgerTransactorSession) Deposit(_channelId [32]byte, _receiver common.Address, _transferFromAmount *big.Int) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xd954863c.

Solidity: function deposit(bytes32 _channelId, address _receiver, uint256 _transferFromAmount) returns()

func (*CelerLedgerTransactorSession) DepositInBatch

func (_CelerLedger *CelerLedgerTransactorSession) DepositInBatch(_channelIds [][32]byte, _receivers []common.Address, _transferFromAmounts []*big.Int) (*types.Transaction, error)

DepositInBatch is a paid mutator transaction binding the contract method 0xe5780db2.

Solidity: function depositInBatch(bytes32[] _channelIds, address[] _receivers, uint256[] _transferFromAmounts) returns()

func (*CelerLedgerTransactorSession) DisableBalanceLimits

func (_CelerLedger *CelerLedgerTransactorSession) DisableBalanceLimits() (*types.Transaction, error)

DisableBalanceLimits is a paid mutator transaction binding the contract method 0xe063913c.

Solidity: function disableBalanceLimits() returns()

func (*CelerLedgerTransactorSession) EnableBalanceLimits

func (_CelerLedger *CelerLedgerTransactorSession) EnableBalanceLimits() (*types.Transaction, error)

EnableBalanceLimits is a paid mutator transaction binding the contract method 0x83c8f8b8.

Solidity: function enableBalanceLimits() returns()

func (*CelerLedgerTransactorSession) IntendSettle

func (_CelerLedger *CelerLedgerTransactorSession) IntendSettle(_signedSimplexStateArray []byte) (*types.Transaction, error)

IntendSettle is a paid mutator transaction binding the contract method 0x130d33fe.

Solidity: function intendSettle(bytes _signedSimplexStateArray) returns()

func (*CelerLedgerTransactorSession) IntendWithdraw

func (_CelerLedger *CelerLedgerTransactorSession) IntendWithdraw(_channelId [32]byte, _amount *big.Int, _recipientChannelId [32]byte) (*types.Transaction, error)

IntendWithdraw is a paid mutator transaction binding the contract method 0x8942ecb2.

Solidity: function intendWithdraw(bytes32 _channelId, uint256 _amount, bytes32 _recipientChannelId) returns()

func (*CelerLedgerTransactorSession) MigrateChannelFrom

func (_CelerLedger *CelerLedgerTransactorSession) MigrateChannelFrom(_fromLedgerAddr common.Address, _migrationRequest []byte) (*types.Transaction, error)

MigrateChannelFrom is a paid mutator transaction binding the contract method 0x2e3c517a.

Solidity: function migrateChannelFrom(address _fromLedgerAddr, bytes _migrationRequest) returns()

func (*CelerLedgerTransactorSession) MigrateChannelTo

func (_CelerLedger *CelerLedgerTransactorSession) MigrateChannelTo(_migrationRequest []byte) (*types.Transaction, error)

MigrateChannelTo is a paid mutator transaction binding the contract method 0xe0a515b7.

Solidity: function migrateChannelTo(bytes _migrationRequest) returns(bytes32)

func (*CelerLedgerTransactorSession) OpenChannel

func (_CelerLedger *CelerLedgerTransactorSession) OpenChannel(_openRequest []byte) (*types.Transaction, error)

OpenChannel is a paid mutator transaction binding the contract method 0x93b7b3ce.

Solidity: function openChannel(bytes _openRequest) returns()

func (*CelerLedgerTransactorSession) RenounceOwnership

func (_CelerLedger *CelerLedgerTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*CelerLedgerTransactorSession) SetBalanceLimits

func (_CelerLedger *CelerLedgerTransactorSession) SetBalanceLimits(_tokenAddrs []common.Address, _limits []*big.Int) (*types.Transaction, error)

SetBalanceLimits is a paid mutator transaction binding the contract method 0xa8580cab.

Solidity: function setBalanceLimits(address[] _tokenAddrs, uint256[] _limits) returns()

func (*CelerLedgerTransactorSession) SnapshotStates

func (_CelerLedger *CelerLedgerTransactorSession) SnapshotStates(_signedSimplexStateArray []byte) (*types.Transaction, error)

SnapshotStates is a paid mutator transaction binding the contract method 0x4102b9a8.

Solidity: function snapshotStates(bytes _signedSimplexStateArray) returns()

func (*CelerLedgerTransactorSession) TransferOwnership

func (_CelerLedger *CelerLedgerTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*CelerLedgerTransactorSession) VetoWithdraw

func (_CelerLedger *CelerLedgerTransactorSession) VetoWithdraw(_channelId [32]byte) (*types.Transaction, error)

VetoWithdraw is a paid mutator transaction binding the contract method 0x255aab59.

Solidity: function vetoWithdraw(bytes32 _channelId) returns()

type CelerLedgerVetoWithdraw

type CelerLedgerVetoWithdraw struct {
	ChannelId [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

CelerLedgerVetoWithdraw represents a VetoWithdraw event raised by the CelerLedger contract.

type CelerLedgerVetoWithdrawIterator

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

CelerLedgerVetoWithdrawIterator is returned from FilterVetoWithdraw and is used to iterate over the raw logs and unpacked data for VetoWithdraw events raised by the CelerLedger contract.

func (*CelerLedgerVetoWithdrawIterator) Close

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

func (*CelerLedgerVetoWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CelerLedgerVetoWithdrawIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type CidType

type CidType = ec.Hash

CidType is the type for payment channel ID Note we need to change all cid.Hex() to Cid2Hex() because Hash.Hex() has 0x prefix

func Bytes2Cid

func Bytes2Cid(b []byte) CidType

Bytes2Cid converts bytes to CidType

func Hex2Cid

func Hex2Cid(s string) CidType

Hex2Cid accepts hex string with or without 0x prefix and return CidType

type DPoS added in v0.2.0

type DPoS struct {
	DPoSCaller     // Read-only binding to the contract
	DPoSTransactor // Write-only binding to the contract
	DPoSFilterer   // Log filterer for contract events
}

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

func DeployDPoS added in v0.2.0

func DeployDPoS(auth *bind.TransactOpts, backend bind.ContractBackend, _celerTokenAddress common.Address, _governProposalDeposit *big.Int, _governVoteTimeout *big.Int, _slashTimeout *big.Int, _minValidatorNum *big.Int, _maxValidatorNum *big.Int, _minStakeInPool *big.Int, _advanceNoticePeriod *big.Int, _dposGoLiveTimeout *big.Int) (common.Address, *types.Transaction, *DPoS, error)

DeployDPoS deploys a new Ethereum contract, binding an instance of DPoS to it.

func NewDPoS added in v0.2.0

func NewDPoS(address common.Address, backend bind.ContractBackend) (*DPoS, error)

NewDPoS creates a new instance of DPoS, bound to a specific deployed contract.

type DPoSCaller added in v0.2.0

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

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

func NewDPoSCaller added in v0.2.0

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

NewDPoSCaller creates a new read-only instance of DPoS, bound to a specific deployed contract.

func (*DPoSCaller) COMMISSIONRATEBASE added in v0.2.0

func (_DPoS *DPoSCaller) COMMISSIONRATEBASE(opts *bind.CallOpts) (*big.Int, error)

COMMISSIONRATEBASE is a free data retrieval call binding the contract method 0xbee8380e.

Solidity: function COMMISSION_RATE_BASE() view returns(uint256)

func (*DPoSCaller) CelerToken added in v0.2.0

func (_DPoS *DPoSCaller) CelerToken(opts *bind.CallOpts) (common.Address, error)

CelerToken is a free data retrieval call binding the contract method 0xc6c21e9d.

Solidity: function celerToken() view returns(address)

func (*DPoSCaller) CheckedValidators added in v0.2.0

func (_DPoS *DPoSCaller) CheckedValidators(opts *bind.CallOpts, arg0 common.Address) (bool, error)

CheckedValidators is a free data retrieval call binding the contract method 0x3702db39.

Solidity: function checkedValidators(address ) view returns(bool)

func (*DPoSCaller) DposGoLiveTime added in v0.2.0

func (_DPoS *DPoSCaller) DposGoLiveTime(opts *bind.CallOpts) (*big.Int, error)

DposGoLiveTime is a free data retrieval call binding the contract method 0x39c9563e.

Solidity: function dposGoLiveTime() view returns(uint256)

func (*DPoSCaller) EnableSlash added in v0.2.5

func (_DPoS *DPoSCaller) EnableSlash(opts *bind.CallOpts) (bool, error)

EnableSlash is a free data retrieval call binding the contract method 0x7a3ba4ad.

Solidity: function enableSlash() view returns(bool)

func (*DPoSCaller) EnableWhitelist added in v0.2.2

func (_DPoS *DPoSCaller) EnableWhitelist(opts *bind.CallOpts) (bool, error)

EnableWhitelist is a free data retrieval call binding the contract method 0xcdfb2b4e.

Solidity: function enableWhitelist() view returns(bool)

func (*DPoSCaller) GetCandidateInfo added in v0.2.0

func (_DPoS *DPoSCaller) GetCandidateInfo(opts *bind.CallOpts, _candidateAddr common.Address) (struct {
	Initialized     bool
	MinSelfStake    *big.Int
	StakingPool     *big.Int
	Status          *big.Int
	UnbondTime      *big.Int
	CommissionRate  *big.Int
	RateLockEndTime *big.Int
}, error)

GetCandidateInfo is a free data retrieval call binding the contract method 0x28bde1e1.

Solidity: function getCandidateInfo(address _candidateAddr) view returns(bool initialized, uint256 minSelfStake, uint256 stakingPool, uint256 status, uint256 unbondTime, uint256 commissionRate, uint256 rateLockEndTime)

func (*DPoSCaller) GetDelegatorInfo added in v0.2.0

func (_DPoS *DPoSCaller) GetDelegatorInfo(opts *bind.CallOpts, _candidateAddr common.Address, _delegatorAddr common.Address) (struct {
	DelegatedStake      *big.Int
	UndelegatingStake   *big.Int
	IntentAmounts       []*big.Int
	IntentProposedTimes []*big.Int
}, error)

GetDelegatorInfo is a free data retrieval call binding the contract method 0xeecefef8.

Solidity: function getDelegatorInfo(address _candidateAddr, address _delegatorAddr) view returns(uint256 delegatedStake, uint256 undelegatingStake, uint256[] intentAmounts, uint256[] intentProposedTimes)

func (*DPoSCaller) GetMinQuorumStakingPool added in v0.2.0

func (_DPoS *DPoSCaller) GetMinQuorumStakingPool(opts *bind.CallOpts) (*big.Int, error)

GetMinQuorumStakingPool is a free data retrieval call binding the contract method 0xa3e814b9.

Solidity: function getMinQuorumStakingPool() view returns(uint256)

func (*DPoSCaller) GetMinStakingPool added in v0.2.0

func (_DPoS *DPoSCaller) GetMinStakingPool(opts *bind.CallOpts) (*big.Int, error)

GetMinStakingPool is a free data retrieval call binding the contract method 0x8e9472a3.

Solidity: function getMinStakingPool() view returns(uint256)

func (*DPoSCaller) GetParamProposalVote added in v0.2.0

func (_DPoS *DPoSCaller) GetParamProposalVote(opts *bind.CallOpts, _proposalId *big.Int, _voter common.Address) (uint8, error)

GetParamProposalVote is a free data retrieval call binding the contract method 0x581c53c5.

Solidity: function getParamProposalVote(uint256 _proposalId, address _voter) view returns(uint8)

func (*DPoSCaller) GetSidechainProposalVote added in v0.2.0

func (_DPoS *DPoSCaller) GetSidechainProposalVote(opts *bind.CallOpts, _proposalId *big.Int, _voter common.Address) (uint8, error)

GetSidechainProposalVote is a free data retrieval call binding the contract method 0x8515b0e2.

Solidity: function getSidechainProposalVote(uint256 _proposalId, address _voter) view returns(uint8)

func (*DPoSCaller) GetTotalValidatorStakingPool added in v0.2.0

func (_DPoS *DPoSCaller) GetTotalValidatorStakingPool(opts *bind.CallOpts) (*big.Int, error)

GetTotalValidatorStakingPool is a free data retrieval call binding the contract method 0x89ed7939.

Solidity: function getTotalValidatorStakingPool() view returns(uint256)

func (*DPoSCaller) GetUIntValue added in v0.2.0

func (_DPoS *DPoSCaller) GetUIntValue(opts *bind.CallOpts, _record *big.Int) (*big.Int, error)

GetUIntValue is a free data retrieval call binding the contract method 0x64c66395.

Solidity: function getUIntValue(uint256 _record) view returns(uint256)

func (*DPoSCaller) GetValidatorNum added in v0.2.0

func (_DPoS *DPoSCaller) GetValidatorNum(opts *bind.CallOpts) (*big.Int, error)

GetValidatorNum is a free data retrieval call binding the contract method 0x1cfe4f0b.

Solidity: function getValidatorNum() view returns(uint256)

func (*DPoSCaller) IsMigrating added in v0.2.3

func (_DPoS *DPoSCaller) IsMigrating(opts *bind.CallOpts) (bool, error)

IsMigrating is a free data retrieval call binding the contract method 0xf05e777d.

Solidity: function isMigrating() view returns(bool)

func (*DPoSCaller) IsOwner added in v0.2.0

func (_DPoS *DPoSCaller) IsOwner(opts *bind.CallOpts) (bool, error)

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

Solidity: function isOwner() view returns(bool)

func (*DPoSCaller) IsPauser added in v0.2.2

func (_DPoS *DPoSCaller) IsPauser(opts *bind.CallOpts, account common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

Solidity: function isPauser(address account) view returns(bool)

func (*DPoSCaller) IsSidechainRegistered added in v0.2.0

func (_DPoS *DPoSCaller) IsSidechainRegistered(opts *bind.CallOpts, _sidechainAddr common.Address) (bool, error)

IsSidechainRegistered is a free data retrieval call binding the contract method 0x325820b3.

Solidity: function isSidechainRegistered(address _sidechainAddr) view returns(bool)

func (*DPoSCaller) IsValidDPoS added in v0.2.0

func (_DPoS *DPoSCaller) IsValidDPoS(opts *bind.CallOpts) (bool, error)

IsValidDPoS is a free data retrieval call binding the contract method 0xeab2ed8c.

Solidity: function isValidDPoS() view returns(bool)

func (*DPoSCaller) IsValidator added in v0.2.0

func (_DPoS *DPoSCaller) IsValidator(opts *bind.CallOpts, _addr common.Address) (bool, error)

IsValidator is a free data retrieval call binding the contract method 0xfacd743b.

Solidity: function isValidator(address _addr) view returns(bool)

func (*DPoSCaller) IsWhitelistAdmin added in v0.2.2

func (_DPoS *DPoSCaller) IsWhitelistAdmin(opts *bind.CallOpts, account common.Address) (bool, error)

IsWhitelistAdmin is a free data retrieval call binding the contract method 0xbb5f747b.

Solidity: function isWhitelistAdmin(address account) view returns(bool)

func (*DPoSCaller) IsWhitelisted added in v0.2.2

func (_DPoS *DPoSCaller) IsWhitelisted(opts *bind.CallOpts, account common.Address) (bool, error)

IsWhitelisted is a free data retrieval call binding the contract method 0x3af32abf.

Solidity: function isWhitelisted(address account) view returns(bool)

func (*DPoSCaller) MiningPool added in v0.2.0

func (_DPoS *DPoSCaller) MiningPool(opts *bind.CallOpts) (*big.Int, error)

MiningPool is a free data retrieval call binding the contract method 0x73397597.

Solidity: function miningPool() view returns(uint256)

func (*DPoSCaller) NextParamProposalId added in v0.2.0

func (_DPoS *DPoSCaller) NextParamProposalId(opts *bind.CallOpts) (*big.Int, error)

NextParamProposalId is a free data retrieval call binding the contract method 0x22da7927.

Solidity: function nextParamProposalId() view returns(uint256)

func (*DPoSCaller) NextSidechainProposalId added in v0.2.0

func (_DPoS *DPoSCaller) NextSidechainProposalId(opts *bind.CallOpts) (*big.Int, error)

NextSidechainProposalId is a free data retrieval call binding the contract method 0x2bf0fe59.

Solidity: function nextSidechainProposalId() view returns(uint256)

func (*DPoSCaller) Owner added in v0.2.0

func (_DPoS *DPoSCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DPoSCaller) ParamProposals added in v0.2.0

func (_DPoS *DPoSCaller) ParamProposals(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Proposer     common.Address
	Deposit      *big.Int
	VoteDeadline *big.Int
	Record       *big.Int
	NewValue     *big.Int
	Status       uint8
}, error)

ParamProposals is a free data retrieval call binding the contract method 0x7e5fb8f3.

Solidity: function paramProposals(uint256 ) view returns(address proposer, uint256 deposit, uint256 voteDeadline, uint256 record, uint256 newValue, uint8 status)

func (*DPoSCaller) Paused added in v0.2.2

func (_DPoS *DPoSCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*DPoSCaller) RedeemedMiningReward added in v0.2.0

func (_DPoS *DPoSCaller) RedeemedMiningReward(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

RedeemedMiningReward is a free data retrieval call binding the contract method 0x87e53fef.

Solidity: function redeemedMiningReward(address ) view returns(uint256)

func (*DPoSCaller) RegisteredSidechains added in v0.2.0

func (_DPoS *DPoSCaller) RegisteredSidechains(opts *bind.CallOpts, arg0 common.Address) (bool, error)

RegisteredSidechains is a free data retrieval call binding the contract method 0x49444b71.

Solidity: function registeredSidechains(address ) view returns(bool)

func (*DPoSCaller) SidechainProposals added in v0.2.0

func (_DPoS *DPoSCaller) SidechainProposals(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Proposer      common.Address
	Deposit       *big.Int
	VoteDeadline  *big.Int
	SidechainAddr common.Address
	Registered    bool
	Status        uint8
}, error)

SidechainProposals is a free data retrieval call binding the contract method 0xe97b7452.

Solidity: function sidechainProposals(uint256 ) view returns(address proposer, uint256 deposit, uint256 voteDeadline, address sidechainAddr, bool registered, uint8 status)

func (*DPoSCaller) UIntStorage added in v0.2.0

func (_DPoS *DPoSCaller) UIntStorage(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

UIntStorage is a free data retrieval call binding the contract method 0x64ed600a.

Solidity: function UIntStorage(uint256 ) view returns(uint256)

func (*DPoSCaller) UsedPenaltyNonce added in v0.2.0

func (_DPoS *DPoSCaller) UsedPenaltyNonce(opts *bind.CallOpts, arg0 *big.Int) (bool, error)

UsedPenaltyNonce is a free data retrieval call binding the contract method 0xfb878749.

Solidity: function usedPenaltyNonce(uint256 ) view returns(bool)

func (*DPoSCaller) ValidatorSet added in v0.2.0

func (_DPoS *DPoSCaller) ValidatorSet(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

ValidatorSet is a free data retrieval call binding the contract method 0xe64808f3.

Solidity: function validatorSet(uint256 ) view returns(address)

type DPoSCallerRaw added in v0.2.0

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

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

func (*DPoSCallerRaw) Call added in v0.2.0

func (_DPoS *DPoSCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type DPoSCallerSession added in v0.2.0

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

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

func (*DPoSCallerSession) COMMISSIONRATEBASE added in v0.2.0

func (_DPoS *DPoSCallerSession) COMMISSIONRATEBASE() (*big.Int, error)

COMMISSIONRATEBASE is a free data retrieval call binding the contract method 0xbee8380e.

Solidity: function COMMISSION_RATE_BASE() view returns(uint256)

func (*DPoSCallerSession) CelerToken added in v0.2.0

func (_DPoS *DPoSCallerSession) CelerToken() (common.Address, error)

CelerToken is a free data retrieval call binding the contract method 0xc6c21e9d.

Solidity: function celerToken() view returns(address)

func (*DPoSCallerSession) CheckedValidators added in v0.2.0

func (_DPoS *DPoSCallerSession) CheckedValidators(arg0 common.Address) (bool, error)

CheckedValidators is a free data retrieval call binding the contract method 0x3702db39.

Solidity: function checkedValidators(address ) view returns(bool)

func (*DPoSCallerSession) DposGoLiveTime added in v0.2.0

func (_DPoS *DPoSCallerSession) DposGoLiveTime() (*big.Int, error)

DposGoLiveTime is a free data retrieval call binding the contract method 0x39c9563e.

Solidity: function dposGoLiveTime() view returns(uint256)

func (*DPoSCallerSession) EnableSlash added in v0.2.5

func (_DPoS *DPoSCallerSession) EnableSlash() (bool, error)

EnableSlash is a free data retrieval call binding the contract method 0x7a3ba4ad.

Solidity: function enableSlash() view returns(bool)

func (*DPoSCallerSession) EnableWhitelist added in v0.2.2

func (_DPoS *DPoSCallerSession) EnableWhitelist() (bool, error)

EnableWhitelist is a free data retrieval call binding the contract method 0xcdfb2b4e.

Solidity: function enableWhitelist() view returns(bool)

func (*DPoSCallerSession) GetCandidateInfo added in v0.2.0

func (_DPoS *DPoSCallerSession) GetCandidateInfo(_candidateAddr common.Address) (struct {
	Initialized     bool
	MinSelfStake    *big.Int
	StakingPool     *big.Int
	Status          *big.Int
	UnbondTime      *big.Int
	CommissionRate  *big.Int
	RateLockEndTime *big.Int
}, error)

GetCandidateInfo is a free data retrieval call binding the contract method 0x28bde1e1.

Solidity: function getCandidateInfo(address _candidateAddr) view returns(bool initialized, uint256 minSelfStake, uint256 stakingPool, uint256 status, uint256 unbondTime, uint256 commissionRate, uint256 rateLockEndTime)

func (*DPoSCallerSession) GetDelegatorInfo added in v0.2.0

func (_DPoS *DPoSCallerSession) GetDelegatorInfo(_candidateAddr common.Address, _delegatorAddr common.Address) (struct {
	DelegatedStake      *big.Int
	UndelegatingStake   *big.Int
	IntentAmounts       []*big.Int
	IntentProposedTimes []*big.Int
}, error)

GetDelegatorInfo is a free data retrieval call binding the contract method 0xeecefef8.

Solidity: function getDelegatorInfo(address _candidateAddr, address _delegatorAddr) view returns(uint256 delegatedStake, uint256 undelegatingStake, uint256[] intentAmounts, uint256[] intentProposedTimes)

func (*DPoSCallerSession) GetMinQuorumStakingPool added in v0.2.0

func (_DPoS *DPoSCallerSession) GetMinQuorumStakingPool() (*big.Int, error)

GetMinQuorumStakingPool is a free data retrieval call binding the contract method 0xa3e814b9.

Solidity: function getMinQuorumStakingPool() view returns(uint256)

func (*DPoSCallerSession) GetMinStakingPool added in v0.2.0

func (_DPoS *DPoSCallerSession) GetMinStakingPool() (*big.Int, error)

GetMinStakingPool is a free data retrieval call binding the contract method 0x8e9472a3.

Solidity: function getMinStakingPool() view returns(uint256)

func (*DPoSCallerSession) GetParamProposalVote added in v0.2.0

func (_DPoS *DPoSCallerSession) GetParamProposalVote(_proposalId *big.Int, _voter common.Address) (uint8, error)

GetParamProposalVote is a free data retrieval call binding the contract method 0x581c53c5.

Solidity: function getParamProposalVote(uint256 _proposalId, address _voter) view returns(uint8)

func (*DPoSCallerSession) GetSidechainProposalVote added in v0.2.0

func (_DPoS *DPoSCallerSession) GetSidechainProposalVote(_proposalId *big.Int, _voter common.Address) (uint8, error)

GetSidechainProposalVote is a free data retrieval call binding the contract method 0x8515b0e2.

Solidity: function getSidechainProposalVote(uint256 _proposalId, address _voter) view returns(uint8)

func (*DPoSCallerSession) GetTotalValidatorStakingPool added in v0.2.0

func (_DPoS *DPoSCallerSession) GetTotalValidatorStakingPool() (*big.Int, error)

GetTotalValidatorStakingPool is a free data retrieval call binding the contract method 0x89ed7939.

Solidity: function getTotalValidatorStakingPool() view returns(uint256)

func (*DPoSCallerSession) GetUIntValue added in v0.2.0

func (_DPoS *DPoSCallerSession) GetUIntValue(_record *big.Int) (*big.Int, error)

GetUIntValue is a free data retrieval call binding the contract method 0x64c66395.

Solidity: function getUIntValue(uint256 _record) view returns(uint256)

func (*DPoSCallerSession) GetValidatorNum added in v0.2.0

func (_DPoS *DPoSCallerSession) GetValidatorNum() (*big.Int, error)

GetValidatorNum is a free data retrieval call binding the contract method 0x1cfe4f0b.

Solidity: function getValidatorNum() view returns(uint256)

func (*DPoSCallerSession) IsMigrating added in v0.2.3

func (_DPoS *DPoSCallerSession) IsMigrating() (bool, error)

IsMigrating is a free data retrieval call binding the contract method 0xf05e777d.

Solidity: function isMigrating() view returns(bool)

func (*DPoSCallerSession) IsOwner added in v0.2.0

func (_DPoS *DPoSCallerSession) IsOwner() (bool, error)

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

Solidity: function isOwner() view returns(bool)

func (*DPoSCallerSession) IsPauser added in v0.2.2

func (_DPoS *DPoSCallerSession) IsPauser(account common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

Solidity: function isPauser(address account) view returns(bool)

func (*DPoSCallerSession) IsSidechainRegistered added in v0.2.0

func (_DPoS *DPoSCallerSession) IsSidechainRegistered(_sidechainAddr common.Address) (bool, error)

IsSidechainRegistered is a free data retrieval call binding the contract method 0x325820b3.

Solidity: function isSidechainRegistered(address _sidechainAddr) view returns(bool)

func (*DPoSCallerSession) IsValidDPoS added in v0.2.0

func (_DPoS *DPoSCallerSession) IsValidDPoS() (bool, error)

IsValidDPoS is a free data retrieval call binding the contract method 0xeab2ed8c.

Solidity: function isValidDPoS() view returns(bool)

func (*DPoSCallerSession) IsValidator added in v0.2.0

func (_DPoS *DPoSCallerSession) IsValidator(_addr common.Address) (bool, error)

IsValidator is a free data retrieval call binding the contract method 0xfacd743b.

Solidity: function isValidator(address _addr) view returns(bool)

func (*DPoSCallerSession) IsWhitelistAdmin added in v0.2.2

func (_DPoS *DPoSCallerSession) IsWhitelistAdmin(account common.Address) (bool, error)

IsWhitelistAdmin is a free data retrieval call binding the contract method 0xbb5f747b.

Solidity: function isWhitelistAdmin(address account) view returns(bool)

func (*DPoSCallerSession) IsWhitelisted added in v0.2.2

func (_DPoS *DPoSCallerSession) IsWhitelisted(account common.Address) (bool, error)

IsWhitelisted is a free data retrieval call binding the contract method 0x3af32abf.

Solidity: function isWhitelisted(address account) view returns(bool)

func (*DPoSCallerSession) MiningPool added in v0.2.0

func (_DPoS *DPoSCallerSession) MiningPool() (*big.Int, error)

MiningPool is a free data retrieval call binding the contract method 0x73397597.

Solidity: function miningPool() view returns(uint256)

func (*DPoSCallerSession) NextParamProposalId added in v0.2.0

func (_DPoS *DPoSCallerSession) NextParamProposalId() (*big.Int, error)

NextParamProposalId is a free data retrieval call binding the contract method 0x22da7927.

Solidity: function nextParamProposalId() view returns(uint256)

func (*DPoSCallerSession) NextSidechainProposalId added in v0.2.0

func (_DPoS *DPoSCallerSession) NextSidechainProposalId() (*big.Int, error)

NextSidechainProposalId is a free data retrieval call binding the contract method 0x2bf0fe59.

Solidity: function nextSidechainProposalId() view returns(uint256)

func (*DPoSCallerSession) Owner added in v0.2.0

func (_DPoS *DPoSCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DPoSCallerSession) ParamProposals added in v0.2.0

func (_DPoS *DPoSCallerSession) ParamProposals(arg0 *big.Int) (struct {
	Proposer     common.Address
	Deposit      *big.Int
	VoteDeadline *big.Int
	Record       *big.Int
	NewValue     *big.Int
	Status       uint8
}, error)

ParamProposals is a free data retrieval call binding the contract method 0x7e5fb8f3.

Solidity: function paramProposals(uint256 ) view returns(address proposer, uint256 deposit, uint256 voteDeadline, uint256 record, uint256 newValue, uint8 status)

func (*DPoSCallerSession) Paused added in v0.2.2

func (_DPoS *DPoSCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*DPoSCallerSession) RedeemedMiningReward added in v0.2.0

func (_DPoS *DPoSCallerSession) RedeemedMiningReward(arg0 common.Address) (*big.Int, error)

RedeemedMiningReward is a free data retrieval call binding the contract method 0x87e53fef.

Solidity: function redeemedMiningReward(address ) view returns(uint256)

func (*DPoSCallerSession) RegisteredSidechains added in v0.2.0

func (_DPoS *DPoSCallerSession) RegisteredSidechains(arg0 common.Address) (bool, error)

RegisteredSidechains is a free data retrieval call binding the contract method 0x49444b71.

Solidity: function registeredSidechains(address ) view returns(bool)

func (*DPoSCallerSession) SidechainProposals added in v0.2.0

func (_DPoS *DPoSCallerSession) SidechainProposals(arg0 *big.Int) (struct {
	Proposer      common.Address
	Deposit       *big.Int
	VoteDeadline  *big.Int
	SidechainAddr common.Address
	Registered    bool
	Status        uint8
}, error)

SidechainProposals is a free data retrieval call binding the contract method 0xe97b7452.

Solidity: function sidechainProposals(uint256 ) view returns(address proposer, uint256 deposit, uint256 voteDeadline, address sidechainAddr, bool registered, uint8 status)

func (*DPoSCallerSession) UIntStorage added in v0.2.0

func (_DPoS *DPoSCallerSession) UIntStorage(arg0 *big.Int) (*big.Int, error)

UIntStorage is a free data retrieval call binding the contract method 0x64ed600a.

Solidity: function UIntStorage(uint256 ) view returns(uint256)

func (*DPoSCallerSession) UsedPenaltyNonce added in v0.2.0

func (_DPoS *DPoSCallerSession) UsedPenaltyNonce(arg0 *big.Int) (bool, error)

UsedPenaltyNonce is a free data retrieval call binding the contract method 0xfb878749.

Solidity: function usedPenaltyNonce(uint256 ) view returns(bool)

func (*DPoSCallerSession) ValidatorSet added in v0.2.0

func (_DPoS *DPoSCallerSession) ValidatorSet(arg0 *big.Int) (common.Address, error)

ValidatorSet is a free data retrieval call binding the contract method 0xe64808f3.

Solidity: function validatorSet(uint256 ) view returns(address)

type DPoSCandidateInfo added in v0.2.0

type DPoSCandidateInfo struct {
	Initialized     bool
	MinSelfStake    *big.Int
	StakingPool     *big.Int
	Status          *big.Int
	UnbondTime      *big.Int
	CommissionRate  *big.Int
	RateLockEndTime *big.Int
}

DPoSCandidateInfo contains info emitted by DPoS contract

type DPoSCandidateUnbonded added in v0.2.0

type DPoSCandidateUnbonded struct {
	Candidate common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

DPoSCandidateUnbonded represents a CandidateUnbonded event raised by the DPoS contract.

type DPoSCandidateUnbondedIterator added in v0.2.0

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

DPoSCandidateUnbondedIterator is returned from FilterCandidateUnbonded and is used to iterate over the raw logs and unpacked data for CandidateUnbonded events raised by the DPoS contract.

func (*DPoSCandidateUnbondedIterator) Close added in v0.2.0

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

func (*DPoSCandidateUnbondedIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSCandidateUnbondedIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSCommissionRateAnnouncement added in v0.2.0

type DPoSCommissionRateAnnouncement struct {
	Candidate            common.Address
	AnnouncedRate        *big.Int
	AnnouncedLockEndTime *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

DPoSCommissionRateAnnouncement represents a CommissionRateAnnouncement event raised by the DPoS contract.

type DPoSCommissionRateAnnouncementIterator added in v0.2.0

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

DPoSCommissionRateAnnouncementIterator is returned from FilterCommissionRateAnnouncement and is used to iterate over the raw logs and unpacked data for CommissionRateAnnouncement events raised by the DPoS contract.

func (*DPoSCommissionRateAnnouncementIterator) Close added in v0.2.0

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

func (*DPoSCommissionRateAnnouncementIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSCommissionRateAnnouncementIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSCompensate added in v0.2.3

type DPoSCompensate struct {
	Indemnitee common.Address
	Amount     *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

DPoSCompensate represents a Compensate event raised by the DPoS contract.

type DPoSCompensateIterator added in v0.2.3

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

DPoSCompensateIterator is returned from FilterCompensate and is used to iterate over the raw logs and unpacked data for Compensate events raised by the DPoS contract.

func (*DPoSCompensateIterator) Close added in v0.2.3

func (it *DPoSCompensateIterator) Close() error

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

func (*DPoSCompensateIterator) Error added in v0.2.3

func (it *DPoSCompensateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSCompensateIterator) Next added in v0.2.3

func (it *DPoSCompensateIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSConfirmParamProposal added in v0.2.0

type DPoSConfirmParamProposal struct {
	ProposalId *big.Int
	Passed     bool
	Record     *big.Int
	NewValue   *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

DPoSConfirmParamProposal represents a ConfirmParamProposal event raised by the DPoS contract.

type DPoSConfirmParamProposalIterator added in v0.2.0

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

DPoSConfirmParamProposalIterator is returned from FilterConfirmParamProposal and is used to iterate over the raw logs and unpacked data for ConfirmParamProposal events raised by the DPoS contract.

func (*DPoSConfirmParamProposalIterator) Close added in v0.2.0

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

func (*DPoSConfirmParamProposalIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSConfirmParamProposalIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSConfirmSidechainProposal added in v0.2.0

type DPoSConfirmSidechainProposal struct {
	ProposalId    *big.Int
	Passed        bool
	SidechainAddr common.Address
	Registered    bool
	Raw           types.Log // Blockchain specific contextual infos
}

DPoSConfirmSidechainProposal represents a ConfirmSidechainProposal event raised by the DPoS contract.

type DPoSConfirmSidechainProposalIterator added in v0.2.0

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

DPoSConfirmSidechainProposalIterator is returned from FilterConfirmSidechainProposal and is used to iterate over the raw logs and unpacked data for ConfirmSidechainProposal events raised by the DPoS contract.

func (*DPoSConfirmSidechainProposalIterator) Close added in v0.2.0

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

func (*DPoSConfirmSidechainProposalIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSConfirmSidechainProposalIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSConfirmWithdraw added in v0.2.0

type DPoSConfirmWithdraw struct {
	Delegator common.Address
	Candidate common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

DPoSConfirmWithdraw represents a ConfirmWithdraw event raised by the DPoS contract.

type DPoSConfirmWithdrawIterator added in v0.2.0

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

DPoSConfirmWithdrawIterator is returned from FilterConfirmWithdraw and is used to iterate over the raw logs and unpacked data for ConfirmWithdraw events raised by the DPoS contract.

func (*DPoSConfirmWithdrawIterator) Close added in v0.2.0

func (it *DPoSConfirmWithdrawIterator) Close() error

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

func (*DPoSConfirmWithdrawIterator) Error added in v0.2.0

func (it *DPoSConfirmWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSConfirmWithdrawIterator) Next added in v0.2.0

func (it *DPoSConfirmWithdrawIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSCreateParamProposal added in v0.2.0

type DPoSCreateParamProposal struct {
	ProposalId   *big.Int
	Proposer     common.Address
	Deposit      *big.Int
	VoteDeadline *big.Int
	Record       *big.Int
	NewValue     *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

DPoSCreateParamProposal represents a CreateParamProposal event raised by the DPoS contract.

type DPoSCreateParamProposalIterator added in v0.2.0

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

DPoSCreateParamProposalIterator is returned from FilterCreateParamProposal and is used to iterate over the raw logs and unpacked data for CreateParamProposal events raised by the DPoS contract.

func (*DPoSCreateParamProposalIterator) Close added in v0.2.0

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

func (*DPoSCreateParamProposalIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSCreateParamProposalIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSCreateSidechainProposal added in v0.2.0

type DPoSCreateSidechainProposal struct {
	ProposalId    *big.Int
	Proposer      common.Address
	Deposit       *big.Int
	VoteDeadline  *big.Int
	SidechainAddr common.Address
	Registered    bool
	Raw           types.Log // Blockchain specific contextual infos
}

DPoSCreateSidechainProposal represents a CreateSidechainProposal event raised by the DPoS contract.

type DPoSCreateSidechainProposalIterator added in v0.2.0

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

DPoSCreateSidechainProposalIterator is returned from FilterCreateSidechainProposal and is used to iterate over the raw logs and unpacked data for CreateSidechainProposal events raised by the DPoS contract.

func (*DPoSCreateSidechainProposalIterator) Close added in v0.2.0

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

func (*DPoSCreateSidechainProposalIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSCreateSidechainProposalIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSDelegate added in v0.2.0

type DPoSDelegate struct {
	Delegator   common.Address
	Candidate   common.Address
	NewStake    *big.Int
	StakingPool *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

DPoSDelegate represents a Delegate event raised by the DPoS contract.

type DPoSDelegateIterator added in v0.2.0

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

DPoSDelegateIterator is returned from FilterDelegate and is used to iterate over the raw logs and unpacked data for Delegate events raised by the DPoS contract.

func (*DPoSDelegateIterator) Close added in v0.2.0

func (it *DPoSDelegateIterator) Close() error

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

func (*DPoSDelegateIterator) Error added in v0.2.0

func (it *DPoSDelegateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSDelegateIterator) Next added in v0.2.0

func (it *DPoSDelegateIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSFilterer added in v0.2.0

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

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

func NewDPoSFilterer added in v0.2.0

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

NewDPoSFilterer creates a new log filterer instance of DPoS, bound to a specific deployed contract.

func (*DPoSFilterer) FilterCandidateUnbonded added in v0.2.0

func (_DPoS *DPoSFilterer) FilterCandidateUnbonded(opts *bind.FilterOpts, candidate []common.Address) (*DPoSCandidateUnbondedIterator, error)

FilterCandidateUnbonded is a free log retrieval operation binding the contract event 0xbe85a9a7aa606febeaa35606e49cd7324c63cf970f4f5fd0c7e983f42b20b219.

Solidity: event CandidateUnbonded(address indexed candidate)

func (*DPoSFilterer) FilterCommissionRateAnnouncement added in v0.2.0

func (_DPoS *DPoSFilterer) FilterCommissionRateAnnouncement(opts *bind.FilterOpts, candidate []common.Address) (*DPoSCommissionRateAnnouncementIterator, error)

FilterCommissionRateAnnouncement is a free log retrieval operation binding the contract event 0xd1388fca1fdda1adbe79c9535b48b22e71aa7815469abb61cdbab2a7b4ccd28a.

Solidity: event CommissionRateAnnouncement(address indexed candidate, uint256 announcedRate, uint256 announcedLockEndTime)

func (*DPoSFilterer) FilterCompensate added in v0.2.3

func (_DPoS *DPoSFilterer) FilterCompensate(opts *bind.FilterOpts, indemnitee []common.Address) (*DPoSCompensateIterator, error)

FilterCompensate is a free log retrieval operation binding the contract event 0x92c2a7173158b7618078365b4ad89fd1f774ae4aa04f39e10b966b47f469d34b.

Solidity: event Compensate(address indexed indemnitee, uint256 amount)

func (*DPoSFilterer) FilterConfirmParamProposal added in v0.2.0

func (_DPoS *DPoSFilterer) FilterConfirmParamProposal(opts *bind.FilterOpts) (*DPoSConfirmParamProposalIterator, error)

FilterConfirmParamProposal is a free log retrieval operation binding the contract event 0x106f43a560e53395081c0423504b476d1a2cfed9d56ff972bf77ae43ff7d4ba4.

Solidity: event ConfirmParamProposal(uint256 proposalId, bool passed, uint256 record, uint256 newValue)

func (*DPoSFilterer) FilterConfirmSidechainProposal added in v0.2.0

func (_DPoS *DPoSFilterer) FilterConfirmSidechainProposal(opts *bind.FilterOpts) (*DPoSConfirmSidechainProposalIterator, error)

FilterConfirmSidechainProposal is a free log retrieval operation binding the contract event 0x2c26ff0b5547eb09df5dde3569782330829ac9ffa9811847beab5d466066801c.

Solidity: event ConfirmSidechainProposal(uint256 proposalId, bool passed, address sidechainAddr, bool registered)

func (*DPoSFilterer) FilterConfirmWithdraw added in v0.2.0

func (_DPoS *DPoSFilterer) FilterConfirmWithdraw(opts *bind.FilterOpts, delegator []common.Address, candidate []common.Address) (*DPoSConfirmWithdrawIterator, error)

FilterConfirmWithdraw is a free log retrieval operation binding the contract event 0x08d0283ea9a2e520a2f09611cf37ca6eb70f62e9a807e53756047dd2dc027220.

Solidity: event ConfirmWithdraw(address indexed delegator, address indexed candidate, uint256 amount)

func (*DPoSFilterer) FilterCreateParamProposal added in v0.2.0

func (_DPoS *DPoSFilterer) FilterCreateParamProposal(opts *bind.FilterOpts) (*DPoSCreateParamProposalIterator, error)

FilterCreateParamProposal is a free log retrieval operation binding the contract event 0x40109a070319d6004f4e4b31dba4b605c97bd3474d49865158f55fe093e3b339.

Solidity: event CreateParamProposal(uint256 proposalId, address proposer, uint256 deposit, uint256 voteDeadline, uint256 record, uint256 newValue)

func (*DPoSFilterer) FilterCreateSidechainProposal added in v0.2.0

func (_DPoS *DPoSFilterer) FilterCreateSidechainProposal(opts *bind.FilterOpts) (*DPoSCreateSidechainProposalIterator, error)

FilterCreateSidechainProposal is a free log retrieval operation binding the contract event 0xe6970151d691583ac0aecc2e24c67871318a5c7f7574c6df7929b6dd5d54db68.

Solidity: event CreateSidechainProposal(uint256 proposalId, address proposer, uint256 deposit, uint256 voteDeadline, address sidechainAddr, bool registered)

func (*DPoSFilterer) FilterDelegate added in v0.2.0

func (_DPoS *DPoSFilterer) FilterDelegate(opts *bind.FilterOpts, delegator []common.Address, candidate []common.Address) (*DPoSDelegateIterator, error)

FilterDelegate is a free log retrieval operation binding the contract event 0x500599802164a08023e87ffc3eed0ba3ae60697b3083ba81d046683679d81c6b.

Solidity: event Delegate(address indexed delegator, address indexed candidate, uint256 newStake, uint256 stakingPool)

func (*DPoSFilterer) FilterInitializeCandidate added in v0.2.0

func (_DPoS *DPoSFilterer) FilterInitializeCandidate(opts *bind.FilterOpts, candidate []common.Address) (*DPoSInitializeCandidateIterator, error)

FilterInitializeCandidate is a free log retrieval operation binding the contract event 0x453d56a841836718d9e848e968068cbc2af21ca29d1527fbebd231dc46ceffaa.

Solidity: event InitializeCandidate(address indexed candidate, uint256 minSelfStake, uint256 commissionRate, uint256 rateLockEndTime)

func (*DPoSFilterer) FilterIntendWithdraw added in v0.2.0

func (_DPoS *DPoSFilterer) FilterIntendWithdraw(opts *bind.FilterOpts, delegator []common.Address, candidate []common.Address) (*DPoSIntendWithdrawIterator, error)

FilterIntendWithdraw is a free log retrieval operation binding the contract event 0x7171946bb2a9ef55fcb2eb8cef679db45e2e3a8cef9a44567d34d202b65ff0b1.

Solidity: event IntendWithdraw(address indexed delegator, address indexed candidate, uint256 withdrawAmount, uint256 proposedTime)

func (*DPoSFilterer) FilterMiningPoolContribution added in v0.2.0

func (_DPoS *DPoSFilterer) FilterMiningPoolContribution(opts *bind.FilterOpts, contributor []common.Address) (*DPoSMiningPoolContributionIterator, error)

FilterMiningPoolContribution is a free log retrieval operation binding the contract event 0x97e19c4040b6c46d4275e0c4fea68f8f92c81138372ffdb089932c211938f765.

Solidity: event MiningPoolContribution(address indexed contributor, uint256 contribution, uint256 miningPoolSize)

func (*DPoSFilterer) FilterOwnershipTransferred added in v0.2.0

func (_DPoS *DPoSFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DPoSOwnershipTransferredIterator, error)

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

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

func (*DPoSFilterer) FilterPaused added in v0.2.2

func (_DPoS *DPoSFilterer) FilterPaused(opts *bind.FilterOpts) (*DPoSPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*DPoSFilterer) FilterPauserAdded added in v0.2.2

func (_DPoS *DPoSFilterer) FilterPauserAdded(opts *bind.FilterOpts, account []common.Address) (*DPoSPauserAddedIterator, error)

FilterPauserAdded is a free log retrieval operation binding the contract event 0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8.

Solidity: event PauserAdded(address indexed account)

func (*DPoSFilterer) FilterPauserRemoved added in v0.2.2

func (_DPoS *DPoSFilterer) FilterPauserRemoved(opts *bind.FilterOpts, account []common.Address) (*DPoSPauserRemovedIterator, error)

FilterPauserRemoved is a free log retrieval operation binding the contract event 0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e.

Solidity: event PauserRemoved(address indexed account)

func (*DPoSFilterer) FilterRedeemMiningReward added in v0.2.0

func (_DPoS *DPoSFilterer) FilterRedeemMiningReward(opts *bind.FilterOpts, receiver []common.Address) (*DPoSRedeemMiningRewardIterator, error)

FilterRedeemMiningReward is a free log retrieval operation binding the contract event 0xc243dafa8ee55923dad771198c225cf6dfcdc5e405eda7d4da42b6c6fa018de7.

Solidity: event RedeemMiningReward(address indexed receiver, uint256 reward, uint256 miningPool)

func (*DPoSFilterer) FilterSlash added in v0.2.3

func (_DPoS *DPoSFilterer) FilterSlash(opts *bind.FilterOpts, validator []common.Address, delegator []common.Address) (*DPoSSlashIterator, error)

FilterSlash is a free log retrieval operation binding the contract event 0x9995717781b7b3ba3dd9e553a2b5a2b7593ad9b71f5022a3691a089d5189bd19.

Solidity: event Slash(address indexed validator, address indexed delegator, uint256 amount)

func (*DPoSFilterer) FilterUnpaused added in v0.2.2

func (_DPoS *DPoSFilterer) FilterUnpaused(opts *bind.FilterOpts) (*DPoSUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*DPoSFilterer) FilterUpdateCommissionRate added in v0.2.0

func (_DPoS *DPoSFilterer) FilterUpdateCommissionRate(opts *bind.FilterOpts, candidate []common.Address) (*DPoSUpdateCommissionRateIterator, error)

FilterUpdateCommissionRate is a free log retrieval operation binding the contract event 0x37954fc2aa8b4424ad16c75da2ea4d51ba08ef9e07907e37ccae54a0b4ce1e9e.

Solidity: event UpdateCommissionRate(address indexed candidate, uint256 newRate, uint256 newLockEndTime)

func (*DPoSFilterer) FilterUpdateDelegatedStake added in v0.2.3

func (_DPoS *DPoSFilterer) FilterUpdateDelegatedStake(opts *bind.FilterOpts, delegator []common.Address, candidate []common.Address) (*DPoSUpdateDelegatedStakeIterator, error)

FilterUpdateDelegatedStake is a free log retrieval operation binding the contract event 0xf9edf8bcbb705aa22a96ed2eaeb81b1a55c2035868721a08555d82299fdc1949.

Solidity: event UpdateDelegatedStake(address indexed delegator, address indexed candidate, uint256 delegatorStake, uint256 candidatePool)

func (*DPoSFilterer) FilterUpdateMinSelfStake added in v0.2.3

func (_DPoS *DPoSFilterer) FilterUpdateMinSelfStake(opts *bind.FilterOpts, candidate []common.Address) (*DPoSUpdateMinSelfStakeIterator, error)

FilterUpdateMinSelfStake is a free log retrieval operation binding the contract event 0x4c626e5cfbf8848bfc43930276036d8e6c5c6db09a8fea30eea53eaa034158af.

Solidity: event UpdateMinSelfStake(address indexed candidate, uint256 minSelfStake)

func (*DPoSFilterer) FilterValidatorChange added in v0.2.0

func (_DPoS *DPoSFilterer) FilterValidatorChange(opts *bind.FilterOpts, ethAddr []common.Address, changeType []uint8) (*DPoSValidatorChangeIterator, error)

FilterValidatorChange is a free log retrieval operation binding the contract event 0x63f783ba869265648de5e70add96be9f4914e3bde064fdc19fd7e6a8ebf2f46c.

Solidity: event ValidatorChange(address indexed ethAddr, uint8 indexed changeType)

func (*DPoSFilterer) FilterVoteParam added in v0.2.0

func (_DPoS *DPoSFilterer) FilterVoteParam(opts *bind.FilterOpts) (*DPoSVoteParamIterator, error)

FilterVoteParam is a free log retrieval operation binding the contract event 0x06c7ef6e19454637e93ee60cc680c61fb2ebabb57e58cf36d94141a5036b3d65.

Solidity: event VoteParam(uint256 proposalId, address voter, uint8 voteType)

func (*DPoSFilterer) FilterVoteSidechain added in v0.2.0

func (_DPoS *DPoSFilterer) FilterVoteSidechain(opts *bind.FilterOpts) (*DPoSVoteSidechainIterator, error)

FilterVoteSidechain is a free log retrieval operation binding the contract event 0x7686976924e1fdb79b36f7445ada20b6e9d3377d85b34d5162116e675c39d34c.

Solidity: event VoteSidechain(uint256 proposalId, address voter, uint8 voteType)

func (*DPoSFilterer) FilterWhitelistAdminAdded added in v0.2.2

func (_DPoS *DPoSFilterer) FilterWhitelistAdminAdded(opts *bind.FilterOpts, account []common.Address) (*DPoSWhitelistAdminAddedIterator, error)

FilterWhitelistAdminAdded is a free log retrieval operation binding the contract event 0x22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd20961299.

Solidity: event WhitelistAdminAdded(address indexed account)

func (*DPoSFilterer) FilterWhitelistAdminRemoved added in v0.2.2

func (_DPoS *DPoSFilterer) FilterWhitelistAdminRemoved(opts *bind.FilterOpts, account []common.Address) (*DPoSWhitelistAdminRemovedIterator, error)

FilterWhitelistAdminRemoved is a free log retrieval operation binding the contract event 0x0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e165.

Solidity: event WhitelistAdminRemoved(address indexed account)

func (*DPoSFilterer) FilterWhitelistedAdded added in v0.2.2

func (_DPoS *DPoSFilterer) FilterWhitelistedAdded(opts *bind.FilterOpts, account []common.Address) (*DPoSWhitelistedAddedIterator, error)

FilterWhitelistedAdded is a free log retrieval operation binding the contract event 0xee1504a83b6d4a361f4c1dc78ab59bfa30d6a3b6612c403e86bb01ef2984295f.

Solidity: event WhitelistedAdded(address indexed account)

func (*DPoSFilterer) FilterWhitelistedRemoved added in v0.2.2

func (_DPoS *DPoSFilterer) FilterWhitelistedRemoved(opts *bind.FilterOpts, account []common.Address) (*DPoSWhitelistedRemovedIterator, error)

FilterWhitelistedRemoved is a free log retrieval operation binding the contract event 0x270d9b30cf5b0793bbfd54c9d5b94aeb49462b8148399000265144a8722da6b6.

Solidity: event WhitelistedRemoved(address indexed account)

func (*DPoSFilterer) FilterWithdrawFromUnbondedCandidate added in v0.2.0

func (_DPoS *DPoSFilterer) FilterWithdrawFromUnbondedCandidate(opts *bind.FilterOpts, delegator []common.Address, candidate []common.Address) (*DPoSWithdrawFromUnbondedCandidateIterator, error)

FilterWithdrawFromUnbondedCandidate is a free log retrieval operation binding the contract event 0x585e40624b400c05be4193af453d2fd2e69facd17163bda6afd44546f3dbbaa8.

Solidity: event WithdrawFromUnbondedCandidate(address indexed delegator, address indexed candidate, uint256 amount)

func (*DPoSFilterer) ParseCandidateUnbonded added in v0.2.0

func (_DPoS *DPoSFilterer) ParseCandidateUnbonded(log types.Log) (*DPoSCandidateUnbonded, error)

ParseCandidateUnbonded is a log parse operation binding the contract event 0xbe85a9a7aa606febeaa35606e49cd7324c63cf970f4f5fd0c7e983f42b20b219.

Solidity: event CandidateUnbonded(address indexed candidate)

func (*DPoSFilterer) ParseCommissionRateAnnouncement added in v0.2.0

func (_DPoS *DPoSFilterer) ParseCommissionRateAnnouncement(log types.Log) (*DPoSCommissionRateAnnouncement, error)

ParseCommissionRateAnnouncement is a log parse operation binding the contract event 0xd1388fca1fdda1adbe79c9535b48b22e71aa7815469abb61cdbab2a7b4ccd28a.

Solidity: event CommissionRateAnnouncement(address indexed candidate, uint256 announcedRate, uint256 announcedLockEndTime)

func (*DPoSFilterer) ParseCompensate added in v0.2.3

func (_DPoS *DPoSFilterer) ParseCompensate(log types.Log) (*DPoSCompensate, error)

ParseCompensate is a log parse operation binding the contract event 0x92c2a7173158b7618078365b4ad89fd1f774ae4aa04f39e10b966b47f469d34b.

Solidity: event Compensate(address indexed indemnitee, uint256 amount)

func (*DPoSFilterer) ParseConfirmParamProposal added in v0.2.0

func (_DPoS *DPoSFilterer) ParseConfirmParamProposal(log types.Log) (*DPoSConfirmParamProposal, error)

ParseConfirmParamProposal is a log parse operation binding the contract event 0x106f43a560e53395081c0423504b476d1a2cfed9d56ff972bf77ae43ff7d4ba4.

Solidity: event ConfirmParamProposal(uint256 proposalId, bool passed, uint256 record, uint256 newValue)

func (*DPoSFilterer) ParseConfirmSidechainProposal added in v0.2.0

func (_DPoS *DPoSFilterer) ParseConfirmSidechainProposal(log types.Log) (*DPoSConfirmSidechainProposal, error)

ParseConfirmSidechainProposal is a log parse operation binding the contract event 0x2c26ff0b5547eb09df5dde3569782330829ac9ffa9811847beab5d466066801c.

Solidity: event ConfirmSidechainProposal(uint256 proposalId, bool passed, address sidechainAddr, bool registered)

func (*DPoSFilterer) ParseConfirmWithdraw added in v0.2.0

func (_DPoS *DPoSFilterer) ParseConfirmWithdraw(log types.Log) (*DPoSConfirmWithdraw, error)

ParseConfirmWithdraw is a log parse operation binding the contract event 0x08d0283ea9a2e520a2f09611cf37ca6eb70f62e9a807e53756047dd2dc027220.

Solidity: event ConfirmWithdraw(address indexed delegator, address indexed candidate, uint256 amount)

func (*DPoSFilterer) ParseCreateParamProposal added in v0.2.0

func (_DPoS *DPoSFilterer) ParseCreateParamProposal(log types.Log) (*DPoSCreateParamProposal, error)

ParseCreateParamProposal is a log parse operation binding the contract event 0x40109a070319d6004f4e4b31dba4b605c97bd3474d49865158f55fe093e3b339.

Solidity: event CreateParamProposal(uint256 proposalId, address proposer, uint256 deposit, uint256 voteDeadline, uint256 record, uint256 newValue)

func (*DPoSFilterer) ParseCreateSidechainProposal added in v0.2.0

func (_DPoS *DPoSFilterer) ParseCreateSidechainProposal(log types.Log) (*DPoSCreateSidechainProposal, error)

ParseCreateSidechainProposal is a log parse operation binding the contract event 0xe6970151d691583ac0aecc2e24c67871318a5c7f7574c6df7929b6dd5d54db68.

Solidity: event CreateSidechainProposal(uint256 proposalId, address proposer, uint256 deposit, uint256 voteDeadline, address sidechainAddr, bool registered)

func (*DPoSFilterer) ParseDelegate added in v0.2.0

func (_DPoS *DPoSFilterer) ParseDelegate(log types.Log) (*DPoSDelegate, error)

ParseDelegate is a log parse operation binding the contract event 0x500599802164a08023e87ffc3eed0ba3ae60697b3083ba81d046683679d81c6b.

Solidity: event Delegate(address indexed delegator, address indexed candidate, uint256 newStake, uint256 stakingPool)

func (*DPoSFilterer) ParseInitializeCandidate added in v0.2.0

func (_DPoS *DPoSFilterer) ParseInitializeCandidate(log types.Log) (*DPoSInitializeCandidate, error)

ParseInitializeCandidate is a log parse operation binding the contract event 0x453d56a841836718d9e848e968068cbc2af21ca29d1527fbebd231dc46ceffaa.

Solidity: event InitializeCandidate(address indexed candidate, uint256 minSelfStake, uint256 commissionRate, uint256 rateLockEndTime)

func (*DPoSFilterer) ParseIntendWithdraw added in v0.2.0

func (_DPoS *DPoSFilterer) ParseIntendWithdraw(log types.Log) (*DPoSIntendWithdraw, error)

ParseIntendWithdraw is a log parse operation binding the contract event 0x7171946bb2a9ef55fcb2eb8cef679db45e2e3a8cef9a44567d34d202b65ff0b1.

Solidity: event IntendWithdraw(address indexed delegator, address indexed candidate, uint256 withdrawAmount, uint256 proposedTime)

func (*DPoSFilterer) ParseMiningPoolContribution added in v0.2.0

func (_DPoS *DPoSFilterer) ParseMiningPoolContribution(log types.Log) (*DPoSMiningPoolContribution, error)

ParseMiningPoolContribution is a log parse operation binding the contract event 0x97e19c4040b6c46d4275e0c4fea68f8f92c81138372ffdb089932c211938f765.

Solidity: event MiningPoolContribution(address indexed contributor, uint256 contribution, uint256 miningPoolSize)

func (*DPoSFilterer) ParseOwnershipTransferred added in v0.2.0

func (_DPoS *DPoSFilterer) ParseOwnershipTransferred(log types.Log) (*DPoSOwnershipTransferred, error)

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

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

func (*DPoSFilterer) ParsePaused added in v0.2.2

func (_DPoS *DPoSFilterer) ParsePaused(log types.Log) (*DPoSPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*DPoSFilterer) ParsePauserAdded added in v0.2.2

func (_DPoS *DPoSFilterer) ParsePauserAdded(log types.Log) (*DPoSPauserAdded, error)

ParsePauserAdded is a log parse operation binding the contract event 0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8.

Solidity: event PauserAdded(address indexed account)

func (*DPoSFilterer) ParsePauserRemoved added in v0.2.2

func (_DPoS *DPoSFilterer) ParsePauserRemoved(log types.Log) (*DPoSPauserRemoved, error)

ParsePauserRemoved is a log parse operation binding the contract event 0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e.

Solidity: event PauserRemoved(address indexed account)

func (*DPoSFilterer) ParseRedeemMiningReward added in v0.2.0

func (_DPoS *DPoSFilterer) ParseRedeemMiningReward(log types.Log) (*DPoSRedeemMiningReward, error)

ParseRedeemMiningReward is a log parse operation binding the contract event 0xc243dafa8ee55923dad771198c225cf6dfcdc5e405eda7d4da42b6c6fa018de7.

Solidity: event RedeemMiningReward(address indexed receiver, uint256 reward, uint256 miningPool)

func (*DPoSFilterer) ParseSlash added in v0.2.3

func (_DPoS *DPoSFilterer) ParseSlash(log types.Log) (*DPoSSlash, error)

ParseSlash is a log parse operation binding the contract event 0x9995717781b7b3ba3dd9e553a2b5a2b7593ad9b71f5022a3691a089d5189bd19.

Solidity: event Slash(address indexed validator, address indexed delegator, uint256 amount)

func (*DPoSFilterer) ParseUnpaused added in v0.2.2

func (_DPoS *DPoSFilterer) ParseUnpaused(log types.Log) (*DPoSUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*DPoSFilterer) ParseUpdateCommissionRate added in v0.2.0

func (_DPoS *DPoSFilterer) ParseUpdateCommissionRate(log types.Log) (*DPoSUpdateCommissionRate, error)

ParseUpdateCommissionRate is a log parse operation binding the contract event 0x37954fc2aa8b4424ad16c75da2ea4d51ba08ef9e07907e37ccae54a0b4ce1e9e.

Solidity: event UpdateCommissionRate(address indexed candidate, uint256 newRate, uint256 newLockEndTime)

func (*DPoSFilterer) ParseUpdateDelegatedStake added in v0.2.3

func (_DPoS *DPoSFilterer) ParseUpdateDelegatedStake(log types.Log) (*DPoSUpdateDelegatedStake, error)

ParseUpdateDelegatedStake is a log parse operation binding the contract event 0xf9edf8bcbb705aa22a96ed2eaeb81b1a55c2035868721a08555d82299fdc1949.

Solidity: event UpdateDelegatedStake(address indexed delegator, address indexed candidate, uint256 delegatorStake, uint256 candidatePool)

func (*DPoSFilterer) ParseUpdateMinSelfStake added in v0.2.3

func (_DPoS *DPoSFilterer) ParseUpdateMinSelfStake(log types.Log) (*DPoSUpdateMinSelfStake, error)

ParseUpdateMinSelfStake is a log parse operation binding the contract event 0x4c626e5cfbf8848bfc43930276036d8e6c5c6db09a8fea30eea53eaa034158af.

Solidity: event UpdateMinSelfStake(address indexed candidate, uint256 minSelfStake)

func (*DPoSFilterer) ParseValidatorChange added in v0.2.0

func (_DPoS *DPoSFilterer) ParseValidatorChange(log types.Log) (*DPoSValidatorChange, error)

ParseValidatorChange is a log parse operation binding the contract event 0x63f783ba869265648de5e70add96be9f4914e3bde064fdc19fd7e6a8ebf2f46c.

Solidity: event ValidatorChange(address indexed ethAddr, uint8 indexed changeType)

func (*DPoSFilterer) ParseVoteParam added in v0.2.0

func (_DPoS *DPoSFilterer) ParseVoteParam(log types.Log) (*DPoSVoteParam, error)

ParseVoteParam is a log parse operation binding the contract event 0x06c7ef6e19454637e93ee60cc680c61fb2ebabb57e58cf36d94141a5036b3d65.

Solidity: event VoteParam(uint256 proposalId, address voter, uint8 voteType)

func (*DPoSFilterer) ParseVoteSidechain added in v0.2.0

func (_DPoS *DPoSFilterer) ParseVoteSidechain(log types.Log) (*DPoSVoteSidechain, error)

ParseVoteSidechain is a log parse operation binding the contract event 0x7686976924e1fdb79b36f7445ada20b6e9d3377d85b34d5162116e675c39d34c.

Solidity: event VoteSidechain(uint256 proposalId, address voter, uint8 voteType)

func (*DPoSFilterer) ParseWhitelistAdminAdded added in v0.2.2

func (_DPoS *DPoSFilterer) ParseWhitelistAdminAdded(log types.Log) (*DPoSWhitelistAdminAdded, error)

ParseWhitelistAdminAdded is a log parse operation binding the contract event 0x22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd20961299.

Solidity: event WhitelistAdminAdded(address indexed account)

func (*DPoSFilterer) ParseWhitelistAdminRemoved added in v0.2.2

func (_DPoS *DPoSFilterer) ParseWhitelistAdminRemoved(log types.Log) (*DPoSWhitelistAdminRemoved, error)

ParseWhitelistAdminRemoved is a log parse operation binding the contract event 0x0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e165.

Solidity: event WhitelistAdminRemoved(address indexed account)

func (*DPoSFilterer) ParseWhitelistedAdded added in v0.2.2

func (_DPoS *DPoSFilterer) ParseWhitelistedAdded(log types.Log) (*DPoSWhitelistedAdded, error)

ParseWhitelistedAdded is a log parse operation binding the contract event 0xee1504a83b6d4a361f4c1dc78ab59bfa30d6a3b6612c403e86bb01ef2984295f.

Solidity: event WhitelistedAdded(address indexed account)

func (*DPoSFilterer) ParseWhitelistedRemoved added in v0.2.2

func (_DPoS *DPoSFilterer) ParseWhitelistedRemoved(log types.Log) (*DPoSWhitelistedRemoved, error)

ParseWhitelistedRemoved is a log parse operation binding the contract event 0x270d9b30cf5b0793bbfd54c9d5b94aeb49462b8148399000265144a8722da6b6.

Solidity: event WhitelistedRemoved(address indexed account)

func (*DPoSFilterer) ParseWithdrawFromUnbondedCandidate added in v0.2.0

func (_DPoS *DPoSFilterer) ParseWithdrawFromUnbondedCandidate(log types.Log) (*DPoSWithdrawFromUnbondedCandidate, error)

ParseWithdrawFromUnbondedCandidate is a log parse operation binding the contract event 0x585e40624b400c05be4193af453d2fd2e69facd17163bda6afd44546f3dbbaa8.

Solidity: event WithdrawFromUnbondedCandidate(address indexed delegator, address indexed candidate, uint256 amount)

func (*DPoSFilterer) WatchCandidateUnbonded added in v0.2.0

func (_DPoS *DPoSFilterer) WatchCandidateUnbonded(opts *bind.WatchOpts, sink chan<- *DPoSCandidateUnbonded, candidate []common.Address) (event.Subscription, error)

WatchCandidateUnbonded is a free log subscription operation binding the contract event 0xbe85a9a7aa606febeaa35606e49cd7324c63cf970f4f5fd0c7e983f42b20b219.

Solidity: event CandidateUnbonded(address indexed candidate)

func (*DPoSFilterer) WatchCommissionRateAnnouncement added in v0.2.0

func (_DPoS *DPoSFilterer) WatchCommissionRateAnnouncement(opts *bind.WatchOpts, sink chan<- *DPoSCommissionRateAnnouncement, candidate []common.Address) (event.Subscription, error)

WatchCommissionRateAnnouncement is a free log subscription operation binding the contract event 0xd1388fca1fdda1adbe79c9535b48b22e71aa7815469abb61cdbab2a7b4ccd28a.

Solidity: event CommissionRateAnnouncement(address indexed candidate, uint256 announcedRate, uint256 announcedLockEndTime)

func (*DPoSFilterer) WatchCompensate added in v0.2.3

func (_DPoS *DPoSFilterer) WatchCompensate(opts *bind.WatchOpts, sink chan<- *DPoSCompensate, indemnitee []common.Address) (event.Subscription, error)

WatchCompensate is a free log subscription operation binding the contract event 0x92c2a7173158b7618078365b4ad89fd1f774ae4aa04f39e10b966b47f469d34b.

Solidity: event Compensate(address indexed indemnitee, uint256 amount)

func (*DPoSFilterer) WatchConfirmParamProposal added in v0.2.0

func (_DPoS *DPoSFilterer) WatchConfirmParamProposal(opts *bind.WatchOpts, sink chan<- *DPoSConfirmParamProposal) (event.Subscription, error)

WatchConfirmParamProposal is a free log subscription operation binding the contract event 0x106f43a560e53395081c0423504b476d1a2cfed9d56ff972bf77ae43ff7d4ba4.

Solidity: event ConfirmParamProposal(uint256 proposalId, bool passed, uint256 record, uint256 newValue)

func (*DPoSFilterer) WatchConfirmSidechainProposal added in v0.2.0

func (_DPoS *DPoSFilterer) WatchConfirmSidechainProposal(opts *bind.WatchOpts, sink chan<- *DPoSConfirmSidechainProposal) (event.Subscription, error)

WatchConfirmSidechainProposal is a free log subscription operation binding the contract event 0x2c26ff0b5547eb09df5dde3569782330829ac9ffa9811847beab5d466066801c.

Solidity: event ConfirmSidechainProposal(uint256 proposalId, bool passed, address sidechainAddr, bool registered)

func (*DPoSFilterer) WatchConfirmWithdraw added in v0.2.0

func (_DPoS *DPoSFilterer) WatchConfirmWithdraw(opts *bind.WatchOpts, sink chan<- *DPoSConfirmWithdraw, delegator []common.Address, candidate []common.Address) (event.Subscription, error)

WatchConfirmWithdraw is a free log subscription operation binding the contract event 0x08d0283ea9a2e520a2f09611cf37ca6eb70f62e9a807e53756047dd2dc027220.

Solidity: event ConfirmWithdraw(address indexed delegator, address indexed candidate, uint256 amount)

func (*DPoSFilterer) WatchCreateParamProposal added in v0.2.0

func (_DPoS *DPoSFilterer) WatchCreateParamProposal(opts *bind.WatchOpts, sink chan<- *DPoSCreateParamProposal) (event.Subscription, error)

WatchCreateParamProposal is a free log subscription operation binding the contract event 0x40109a070319d6004f4e4b31dba4b605c97bd3474d49865158f55fe093e3b339.

Solidity: event CreateParamProposal(uint256 proposalId, address proposer, uint256 deposit, uint256 voteDeadline, uint256 record, uint256 newValue)

func (*DPoSFilterer) WatchCreateSidechainProposal added in v0.2.0

func (_DPoS *DPoSFilterer) WatchCreateSidechainProposal(opts *bind.WatchOpts, sink chan<- *DPoSCreateSidechainProposal) (event.Subscription, error)

WatchCreateSidechainProposal is a free log subscription operation binding the contract event 0xe6970151d691583ac0aecc2e24c67871318a5c7f7574c6df7929b6dd5d54db68.

Solidity: event CreateSidechainProposal(uint256 proposalId, address proposer, uint256 deposit, uint256 voteDeadline, address sidechainAddr, bool registered)

func (*DPoSFilterer) WatchDelegate added in v0.2.0

func (_DPoS *DPoSFilterer) WatchDelegate(opts *bind.WatchOpts, sink chan<- *DPoSDelegate, delegator []common.Address, candidate []common.Address) (event.Subscription, error)

WatchDelegate is a free log subscription operation binding the contract event 0x500599802164a08023e87ffc3eed0ba3ae60697b3083ba81d046683679d81c6b.

Solidity: event Delegate(address indexed delegator, address indexed candidate, uint256 newStake, uint256 stakingPool)

func (*DPoSFilterer) WatchInitializeCandidate added in v0.2.0

func (_DPoS *DPoSFilterer) WatchInitializeCandidate(opts *bind.WatchOpts, sink chan<- *DPoSInitializeCandidate, candidate []common.Address) (event.Subscription, error)

WatchInitializeCandidate is a free log subscription operation binding the contract event 0x453d56a841836718d9e848e968068cbc2af21ca29d1527fbebd231dc46ceffaa.

Solidity: event InitializeCandidate(address indexed candidate, uint256 minSelfStake, uint256 commissionRate, uint256 rateLockEndTime)

func (*DPoSFilterer) WatchIntendWithdraw added in v0.2.0

func (_DPoS *DPoSFilterer) WatchIntendWithdraw(opts *bind.WatchOpts, sink chan<- *DPoSIntendWithdraw, delegator []common.Address, candidate []common.Address) (event.Subscription, error)

WatchIntendWithdraw is a free log subscription operation binding the contract event 0x7171946bb2a9ef55fcb2eb8cef679db45e2e3a8cef9a44567d34d202b65ff0b1.

Solidity: event IntendWithdraw(address indexed delegator, address indexed candidate, uint256 withdrawAmount, uint256 proposedTime)

func (*DPoSFilterer) WatchMiningPoolContribution added in v0.2.0

func (_DPoS *DPoSFilterer) WatchMiningPoolContribution(opts *bind.WatchOpts, sink chan<- *DPoSMiningPoolContribution, contributor []common.Address) (event.Subscription, error)

WatchMiningPoolContribution is a free log subscription operation binding the contract event 0x97e19c4040b6c46d4275e0c4fea68f8f92c81138372ffdb089932c211938f765.

Solidity: event MiningPoolContribution(address indexed contributor, uint256 contribution, uint256 miningPoolSize)

func (*DPoSFilterer) WatchOwnershipTransferred added in v0.2.0

func (_DPoS *DPoSFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DPoSOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

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

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

func (*DPoSFilterer) WatchPaused added in v0.2.2

func (_DPoS *DPoSFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *DPoSPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*DPoSFilterer) WatchPauserAdded added in v0.2.2

func (_DPoS *DPoSFilterer) WatchPauserAdded(opts *bind.WatchOpts, sink chan<- *DPoSPauserAdded, account []common.Address) (event.Subscription, error)

WatchPauserAdded is a free log subscription operation binding the contract event 0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8.

Solidity: event PauserAdded(address indexed account)

func (*DPoSFilterer) WatchPauserRemoved added in v0.2.2

func (_DPoS *DPoSFilterer) WatchPauserRemoved(opts *bind.WatchOpts, sink chan<- *DPoSPauserRemoved, account []common.Address) (event.Subscription, error)

WatchPauserRemoved is a free log subscription operation binding the contract event 0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e.

Solidity: event PauserRemoved(address indexed account)

func (*DPoSFilterer) WatchRedeemMiningReward added in v0.2.0

func (_DPoS *DPoSFilterer) WatchRedeemMiningReward(opts *bind.WatchOpts, sink chan<- *DPoSRedeemMiningReward, receiver []common.Address) (event.Subscription, error)

WatchRedeemMiningReward is a free log subscription operation binding the contract event 0xc243dafa8ee55923dad771198c225cf6dfcdc5e405eda7d4da42b6c6fa018de7.

Solidity: event RedeemMiningReward(address indexed receiver, uint256 reward, uint256 miningPool)

func (*DPoSFilterer) WatchSlash added in v0.2.3

func (_DPoS *DPoSFilterer) WatchSlash(opts *bind.WatchOpts, sink chan<- *DPoSSlash, validator []common.Address, delegator []common.Address) (event.Subscription, error)

WatchSlash is a free log subscription operation binding the contract event 0x9995717781b7b3ba3dd9e553a2b5a2b7593ad9b71f5022a3691a089d5189bd19.

Solidity: event Slash(address indexed validator, address indexed delegator, uint256 amount)

func (*DPoSFilterer) WatchUnpaused added in v0.2.2

func (_DPoS *DPoSFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *DPoSUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*DPoSFilterer) WatchUpdateCommissionRate added in v0.2.0

func (_DPoS *DPoSFilterer) WatchUpdateCommissionRate(opts *bind.WatchOpts, sink chan<- *DPoSUpdateCommissionRate, candidate []common.Address) (event.Subscription, error)

WatchUpdateCommissionRate is a free log subscription operation binding the contract event 0x37954fc2aa8b4424ad16c75da2ea4d51ba08ef9e07907e37ccae54a0b4ce1e9e.

Solidity: event UpdateCommissionRate(address indexed candidate, uint256 newRate, uint256 newLockEndTime)

func (*DPoSFilterer) WatchUpdateDelegatedStake added in v0.2.3

func (_DPoS *DPoSFilterer) WatchUpdateDelegatedStake(opts *bind.WatchOpts, sink chan<- *DPoSUpdateDelegatedStake, delegator []common.Address, candidate []common.Address) (event.Subscription, error)

WatchUpdateDelegatedStake is a free log subscription operation binding the contract event 0xf9edf8bcbb705aa22a96ed2eaeb81b1a55c2035868721a08555d82299fdc1949.

Solidity: event UpdateDelegatedStake(address indexed delegator, address indexed candidate, uint256 delegatorStake, uint256 candidatePool)

func (*DPoSFilterer) WatchUpdateMinSelfStake added in v0.2.3

func (_DPoS *DPoSFilterer) WatchUpdateMinSelfStake(opts *bind.WatchOpts, sink chan<- *DPoSUpdateMinSelfStake, candidate []common.Address) (event.Subscription, error)

WatchUpdateMinSelfStake is a free log subscription operation binding the contract event 0x4c626e5cfbf8848bfc43930276036d8e6c5c6db09a8fea30eea53eaa034158af.

Solidity: event UpdateMinSelfStake(address indexed candidate, uint256 minSelfStake)

func (*DPoSFilterer) WatchValidatorChange added in v0.2.0

func (_DPoS *DPoSFilterer) WatchValidatorChange(opts *bind.WatchOpts, sink chan<- *DPoSValidatorChange, ethAddr []common.Address, changeType []uint8) (event.Subscription, error)

WatchValidatorChange is a free log subscription operation binding the contract event 0x63f783ba869265648de5e70add96be9f4914e3bde064fdc19fd7e6a8ebf2f46c.

Solidity: event ValidatorChange(address indexed ethAddr, uint8 indexed changeType)

func (*DPoSFilterer) WatchVoteParam added in v0.2.0

func (_DPoS *DPoSFilterer) WatchVoteParam(opts *bind.WatchOpts, sink chan<- *DPoSVoteParam) (event.Subscription, error)

WatchVoteParam is a free log subscription operation binding the contract event 0x06c7ef6e19454637e93ee60cc680c61fb2ebabb57e58cf36d94141a5036b3d65.

Solidity: event VoteParam(uint256 proposalId, address voter, uint8 voteType)

func (*DPoSFilterer) WatchVoteSidechain added in v0.2.0

func (_DPoS *DPoSFilterer) WatchVoteSidechain(opts *bind.WatchOpts, sink chan<- *DPoSVoteSidechain) (event.Subscription, error)

WatchVoteSidechain is a free log subscription operation binding the contract event 0x7686976924e1fdb79b36f7445ada20b6e9d3377d85b34d5162116e675c39d34c.

Solidity: event VoteSidechain(uint256 proposalId, address voter, uint8 voteType)

func (*DPoSFilterer) WatchWhitelistAdminAdded added in v0.2.2

func (_DPoS *DPoSFilterer) WatchWhitelistAdminAdded(opts *bind.WatchOpts, sink chan<- *DPoSWhitelistAdminAdded, account []common.Address) (event.Subscription, error)

WatchWhitelistAdminAdded is a free log subscription operation binding the contract event 0x22380c05984257a1cb900161c713dd71d39e74820f1aea43bd3f1bdd20961299.

Solidity: event WhitelistAdminAdded(address indexed account)

func (*DPoSFilterer) WatchWhitelistAdminRemoved added in v0.2.2

func (_DPoS *DPoSFilterer) WatchWhitelistAdminRemoved(opts *bind.WatchOpts, sink chan<- *DPoSWhitelistAdminRemoved, account []common.Address) (event.Subscription, error)

WatchWhitelistAdminRemoved is a free log subscription operation binding the contract event 0x0a8eb35e5ca14b3d6f28e4abf2f128dbab231a58b56e89beb5d636115001e165.

Solidity: event WhitelistAdminRemoved(address indexed account)

func (*DPoSFilterer) WatchWhitelistedAdded added in v0.2.2

func (_DPoS *DPoSFilterer) WatchWhitelistedAdded(opts *bind.WatchOpts, sink chan<- *DPoSWhitelistedAdded, account []common.Address) (event.Subscription, error)

WatchWhitelistedAdded is a free log subscription operation binding the contract event 0xee1504a83b6d4a361f4c1dc78ab59bfa30d6a3b6612c403e86bb01ef2984295f.

Solidity: event WhitelistedAdded(address indexed account)

func (*DPoSFilterer) WatchWhitelistedRemoved added in v0.2.2

func (_DPoS *DPoSFilterer) WatchWhitelistedRemoved(opts *bind.WatchOpts, sink chan<- *DPoSWhitelistedRemoved, account []common.Address) (event.Subscription, error)

WatchWhitelistedRemoved is a free log subscription operation binding the contract event 0x270d9b30cf5b0793bbfd54c9d5b94aeb49462b8148399000265144a8722da6b6.

Solidity: event WhitelistedRemoved(address indexed account)

func (*DPoSFilterer) WatchWithdrawFromUnbondedCandidate added in v0.2.0

func (_DPoS *DPoSFilterer) WatchWithdrawFromUnbondedCandidate(opts *bind.WatchOpts, sink chan<- *DPoSWithdrawFromUnbondedCandidate, delegator []common.Address, candidate []common.Address) (event.Subscription, error)

WatchWithdrawFromUnbondedCandidate is a free log subscription operation binding the contract event 0x585e40624b400c05be4193af453d2fd2e69facd17163bda6afd44546f3dbbaa8.

Solidity: event WithdrawFromUnbondedCandidate(address indexed delegator, address indexed candidate, uint256 amount)

type DPoSInitializeCandidate added in v0.2.0

type DPoSInitializeCandidate struct {
	Candidate       common.Address
	MinSelfStake    *big.Int
	CommissionRate  *big.Int
	RateLockEndTime *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

DPoSInitializeCandidate represents a InitializeCandidate event raised by the DPoS contract.

type DPoSInitializeCandidateIterator added in v0.2.0

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

DPoSInitializeCandidateIterator is returned from FilterInitializeCandidate and is used to iterate over the raw logs and unpacked data for InitializeCandidate events raised by the DPoS contract.

func (*DPoSInitializeCandidateIterator) Close added in v0.2.0

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

func (*DPoSInitializeCandidateIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSInitializeCandidateIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSIntendWithdraw added in v0.2.0

type DPoSIntendWithdraw struct {
	Delegator      common.Address
	Candidate      common.Address
	WithdrawAmount *big.Int
	ProposedTime   *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

DPoSIntendWithdraw represents a IntendWithdraw event raised by the DPoS contract.

type DPoSIntendWithdrawIterator added in v0.2.0

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

DPoSIntendWithdrawIterator is returned from FilterIntendWithdraw and is used to iterate over the raw logs and unpacked data for IntendWithdraw events raised by the DPoS contract.

func (*DPoSIntendWithdrawIterator) Close added in v0.2.0

func (it *DPoSIntendWithdrawIterator) Close() error

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

func (*DPoSIntendWithdrawIterator) Error added in v0.2.0

func (it *DPoSIntendWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSIntendWithdrawIterator) Next added in v0.2.0

func (it *DPoSIntendWithdrawIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSMiningPoolContribution added in v0.2.0

type DPoSMiningPoolContribution struct {
	Contributor    common.Address
	Contribution   *big.Int
	MiningPoolSize *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

DPoSMiningPoolContribution represents a MiningPoolContribution event raised by the DPoS contract.

type DPoSMiningPoolContributionIterator added in v0.2.0

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

DPoSMiningPoolContributionIterator is returned from FilterMiningPoolContribution and is used to iterate over the raw logs and unpacked data for MiningPoolContribution events raised by the DPoS contract.

func (*DPoSMiningPoolContributionIterator) Close added in v0.2.0

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

func (*DPoSMiningPoolContributionIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSMiningPoolContributionIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSOwnershipTransferred added in v0.2.0

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

DPoSOwnershipTransferred represents a OwnershipTransferred event raised by the DPoS contract.

type DPoSOwnershipTransferredIterator added in v0.2.0

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

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

func (*DPoSOwnershipTransferredIterator) Close added in v0.2.0

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

func (*DPoSOwnershipTransferredIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSOwnershipTransferredIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSPaused added in v0.2.2

type DPoSPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

DPoSPaused represents a Paused event raised by the DPoS contract.

type DPoSPausedIterator added in v0.2.2

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

DPoSPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the DPoS contract.

func (*DPoSPausedIterator) Close added in v0.2.2

func (it *DPoSPausedIterator) Close() error

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

func (*DPoSPausedIterator) Error added in v0.2.2

func (it *DPoSPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSPausedIterator) Next added in v0.2.2

func (it *DPoSPausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSPauserAdded added in v0.2.2

type DPoSPauserAdded struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

DPoSPauserAdded represents a PauserAdded event raised by the DPoS contract.

type DPoSPauserAddedIterator added in v0.2.2

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

DPoSPauserAddedIterator is returned from FilterPauserAdded and is used to iterate over the raw logs and unpacked data for PauserAdded events raised by the DPoS contract.

func (*DPoSPauserAddedIterator) Close added in v0.2.2

func (it *DPoSPauserAddedIterator) Close() error

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

func (*DPoSPauserAddedIterator) Error added in v0.2.2

func (it *DPoSPauserAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSPauserAddedIterator) Next added in v0.2.2

func (it *DPoSPauserAddedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSPauserRemoved added in v0.2.2

type DPoSPauserRemoved struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

DPoSPauserRemoved represents a PauserRemoved event raised by the DPoS contract.

type DPoSPauserRemovedIterator added in v0.2.2

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

DPoSPauserRemovedIterator is returned from FilterPauserRemoved and is used to iterate over the raw logs and unpacked data for PauserRemoved events raised by the DPoS contract.

func (*DPoSPauserRemovedIterator) Close added in v0.2.2

func (it *DPoSPauserRemovedIterator) Close() error

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

func (*DPoSPauserRemovedIterator) Error added in v0.2.2

func (it *DPoSPauserRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSPauserRemovedIterator) Next added in v0.2.2

func (it *DPoSPauserRemovedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSRaw added in v0.2.0

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

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

func (*DPoSRaw) Call added in v0.2.0

func (_DPoS *DPoSRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*DPoSRaw) Transact added in v0.2.0

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

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

func (*DPoSRaw) Transfer added in v0.2.0

func (_DPoS *DPoSRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type DPoSRedeemMiningReward added in v0.2.0

type DPoSRedeemMiningReward struct {
	Receiver   common.Address
	Reward     *big.Int
	MiningPool *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

DPoSRedeemMiningReward represents a RedeemMiningReward event raised by the DPoS contract.

type DPoSRedeemMiningRewardIterator added in v0.2.0

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

DPoSRedeemMiningRewardIterator is returned from FilterRedeemMiningReward and is used to iterate over the raw logs and unpacked data for RedeemMiningReward events raised by the DPoS contract.

func (*DPoSRedeemMiningRewardIterator) Close added in v0.2.0

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

func (*DPoSRedeemMiningRewardIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSRedeemMiningRewardIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSSession added in v0.2.0

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

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

func (*DPoSSession) AddPauser added in v0.2.2

func (_DPoS *DPoSSession) AddPauser(account common.Address) (*types.Transaction, error)

AddPauser is a paid mutator transaction binding the contract method 0x82dc1ec4.

Solidity: function addPauser(address account) returns()

func (*DPoSSession) AddWhitelistAdmin added in v0.2.2

func (_DPoS *DPoSSession) AddWhitelistAdmin(account common.Address) (*types.Transaction, error)

AddWhitelistAdmin is a paid mutator transaction binding the contract method 0x7362d9c8.

Solidity: function addWhitelistAdmin(address account) returns()

func (*DPoSSession) AddWhitelisted added in v0.2.2

func (_DPoS *DPoSSession) AddWhitelisted(account common.Address) (*types.Transaction, error)

AddWhitelisted is a paid mutator transaction binding the contract method 0x10154bad.

Solidity: function addWhitelisted(address account) returns()

func (*DPoSSession) AnnounceIncreaseCommissionRate added in v0.2.0

func (_DPoS *DPoSSession) AnnounceIncreaseCommissionRate(_newRate *big.Int, _newLockEndTime *big.Int) (*types.Transaction, error)

AnnounceIncreaseCommissionRate is a paid mutator transaction binding the contract method 0xf64f33f2.

Solidity: function announceIncreaseCommissionRate(uint256 _newRate, uint256 _newLockEndTime) returns()

func (*DPoSSession) COMMISSIONRATEBASE added in v0.2.0

func (_DPoS *DPoSSession) COMMISSIONRATEBASE() (*big.Int, error)

COMMISSIONRATEBASE is a free data retrieval call binding the contract method 0xbee8380e.

Solidity: function COMMISSION_RATE_BASE() view returns(uint256)

func (*DPoSSession) CelerToken added in v0.2.0

func (_DPoS *DPoSSession) CelerToken() (common.Address, error)

CelerToken is a free data retrieval call binding the contract method 0xc6c21e9d.

Solidity: function celerToken() view returns(address)

func (*DPoSSession) CheckedValidators added in v0.2.0

func (_DPoS *DPoSSession) CheckedValidators(arg0 common.Address) (bool, error)

CheckedValidators is a free data retrieval call binding the contract method 0x3702db39.

Solidity: function checkedValidators(address ) view returns(bool)

func (*DPoSSession) ClaimValidator added in v0.2.0

func (_DPoS *DPoSSession) ClaimValidator() (*types.Transaction, error)

ClaimValidator is a paid mutator transaction binding the contract method 0x6e7cf85d.

Solidity: function claimValidator() returns()

func (*DPoSSession) ConfirmIncreaseCommissionRate added in v0.2.0

func (_DPoS *DPoSSession) ConfirmIncreaseCommissionRate() (*types.Transaction, error)

ConfirmIncreaseCommissionRate is a paid mutator transaction binding the contract method 0x6e997565.

Solidity: function confirmIncreaseCommissionRate() returns()

func (*DPoSSession) ConfirmParamProposal added in v0.2.0

func (_DPoS *DPoSSession) ConfirmParamProposal(_proposalId *big.Int) (*types.Transaction, error)

ConfirmParamProposal is a paid mutator transaction binding the contract method 0x934a18ec.

Solidity: function confirmParamProposal(uint256 _proposalId) returns()

func (*DPoSSession) ConfirmSidechainProposal added in v0.2.0

func (_DPoS *DPoSSession) ConfirmSidechainProposal(_proposalId *big.Int) (*types.Transaction, error)

ConfirmSidechainProposal is a paid mutator transaction binding the contract method 0x1a06f737.

Solidity: function confirmSidechainProposal(uint256 _proposalId) returns()

func (*DPoSSession) ConfirmUnbondedCandidate added in v0.2.0

func (_DPoS *DPoSSession) ConfirmUnbondedCandidate(_candidateAddr common.Address) (*types.Transaction, error)

ConfirmUnbondedCandidate is a paid mutator transaction binding the contract method 0xc7ec2f35.

Solidity: function confirmUnbondedCandidate(address _candidateAddr) returns()

func (*DPoSSession) ConfirmWithdraw added in v0.2.0

func (_DPoS *DPoSSession) ConfirmWithdraw(_candidateAddr common.Address) (*types.Transaction, error)

ConfirmWithdraw is a paid mutator transaction binding the contract method 0xd2bfc1c7.

Solidity: function confirmWithdraw(address _candidateAddr) returns()

func (*DPoSSession) ContributeToMiningPool added in v0.2.0

func (_DPoS *DPoSSession) ContributeToMiningPool(_amount *big.Int) (*types.Transaction, error)

ContributeToMiningPool is a paid mutator transaction binding the contract method 0x4b7dba6b.

Solidity: function contributeToMiningPool(uint256 _amount) returns()

func (*DPoSSession) CreateParamProposal added in v0.2.0

func (_DPoS *DPoSSession) CreateParamProposal(_record *big.Int, _value *big.Int) (*types.Transaction, error)

CreateParamProposal is a paid mutator transaction binding the contract method 0x3090c0e9.

Solidity: function createParamProposal(uint256 _record, uint256 _value) returns()

func (*DPoSSession) CreateSidechainProposal added in v0.2.0

func (_DPoS *DPoSSession) CreateSidechainProposal(_sidechainAddr common.Address, _registered bool) (*types.Transaction, error)

CreateSidechainProposal is a paid mutator transaction binding the contract method 0xe433c1ca.

Solidity: function createSidechainProposal(address _sidechainAddr, bool _registered) returns()

func (*DPoSSession) Delegate added in v0.2.0

func (_DPoS *DPoSSession) Delegate(_candidateAddr common.Address, _amount *big.Int) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x026e402b.

Solidity: function delegate(address _candidateAddr, uint256 _amount) returns()

func (*DPoSSession) DposGoLiveTime added in v0.2.0

func (_DPoS *DPoSSession) DposGoLiveTime() (*big.Int, error)

DposGoLiveTime is a free data retrieval call binding the contract method 0x39c9563e.

Solidity: function dposGoLiveTime() view returns(uint256)

func (*DPoSSession) DrainToken added in v0.2.2

func (_DPoS *DPoSSession) DrainToken(_amount *big.Int) (*types.Transaction, error)

DrainToken is a paid mutator transaction binding the contract method 0x145aa116.

Solidity: function drainToken(uint256 _amount) returns()

func (*DPoSSession) EnableSlash added in v0.2.5

func (_DPoS *DPoSSession) EnableSlash() (bool, error)

EnableSlash is a free data retrieval call binding the contract method 0x7a3ba4ad.

Solidity: function enableSlash() view returns(bool)

func (*DPoSSession) EnableWhitelist added in v0.2.2

func (_DPoS *DPoSSession) EnableWhitelist() (bool, error)

EnableWhitelist is a free data retrieval call binding the contract method 0xcdfb2b4e.

Solidity: function enableWhitelist() view returns(bool)

func (*DPoSSession) GetCandidateInfo added in v0.2.0

func (_DPoS *DPoSSession) GetCandidateInfo(_candidateAddr common.Address) (struct {
	Initialized     bool
	MinSelfStake    *big.Int
	StakingPool     *big.Int
	Status          *big.Int
	UnbondTime      *big.Int
	CommissionRate  *big.Int
	RateLockEndTime *big.Int
}, error)

GetCandidateInfo is a free data retrieval call binding the contract method 0x28bde1e1.

Solidity: function getCandidateInfo(address _candidateAddr) view returns(bool initialized, uint256 minSelfStake, uint256 stakingPool, uint256 status, uint256 unbondTime, uint256 commissionRate, uint256 rateLockEndTime)

func (*DPoSSession) GetDelegatorInfo added in v0.2.0

func (_DPoS *DPoSSession) GetDelegatorInfo(_candidateAddr common.Address, _delegatorAddr common.Address) (struct {
	DelegatedStake      *big.Int
	UndelegatingStake   *big.Int
	IntentAmounts       []*big.Int
	IntentProposedTimes []*big.Int
}, error)

GetDelegatorInfo is a free data retrieval call binding the contract method 0xeecefef8.

Solidity: function getDelegatorInfo(address _candidateAddr, address _delegatorAddr) view returns(uint256 delegatedStake, uint256 undelegatingStake, uint256[] intentAmounts, uint256[] intentProposedTimes)

func (*DPoSSession) GetMinQuorumStakingPool added in v0.2.0

func (_DPoS *DPoSSession) GetMinQuorumStakingPool() (*big.Int, error)

GetMinQuorumStakingPool is a free data retrieval call binding the contract method 0xa3e814b9.

Solidity: function getMinQuorumStakingPool() view returns(uint256)

func (*DPoSSession) GetMinStakingPool added in v0.2.0

func (_DPoS *DPoSSession) GetMinStakingPool() (*big.Int, error)

GetMinStakingPool is a free data retrieval call binding the contract method 0x8e9472a3.

Solidity: function getMinStakingPool() view returns(uint256)

func (*DPoSSession) GetParamProposalVote added in v0.2.0

func (_DPoS *DPoSSession) GetParamProposalVote(_proposalId *big.Int, _voter common.Address) (uint8, error)

GetParamProposalVote is a free data retrieval call binding the contract method 0x581c53c5.

Solidity: function getParamProposalVote(uint256 _proposalId, address _voter) view returns(uint8)

func (*DPoSSession) GetSidechainProposalVote added in v0.2.0

func (_DPoS *DPoSSession) GetSidechainProposalVote(_proposalId *big.Int, _voter common.Address) (uint8, error)

GetSidechainProposalVote is a free data retrieval call binding the contract method 0x8515b0e2.

Solidity: function getSidechainProposalVote(uint256 _proposalId, address _voter) view returns(uint8)

func (*DPoSSession) GetTotalValidatorStakingPool added in v0.2.0

func (_DPoS *DPoSSession) GetTotalValidatorStakingPool() (*big.Int, error)

GetTotalValidatorStakingPool is a free data retrieval call binding the contract method 0x89ed7939.

Solidity: function getTotalValidatorStakingPool() view returns(uint256)

func (*DPoSSession) GetUIntValue added in v0.2.0

func (_DPoS *DPoSSession) GetUIntValue(_record *big.Int) (*big.Int, error)

GetUIntValue is a free data retrieval call binding the contract method 0x64c66395.

Solidity: function getUIntValue(uint256 _record) view returns(uint256)

func (*DPoSSession) GetValidatorNum added in v0.2.0

func (_DPoS *DPoSSession) GetValidatorNum() (*big.Int, error)

GetValidatorNum is a free data retrieval call binding the contract method 0x1cfe4f0b.

Solidity: function getValidatorNum() view returns(uint256)

func (*DPoSSession) InitializeCandidate added in v0.2.0

func (_DPoS *DPoSSession) InitializeCandidate(_minSelfStake *big.Int, _commissionRate *big.Int, _rateLockEndTime *big.Int) (*types.Transaction, error)

InitializeCandidate is a paid mutator transaction binding the contract method 0xc1e16718.

Solidity: function initializeCandidate(uint256 _minSelfStake, uint256 _commissionRate, uint256 _rateLockEndTime) returns()

func (*DPoSSession) IntendWithdraw added in v0.2.0

func (_DPoS *DPoSSession) IntendWithdraw(_candidateAddr common.Address, _amount *big.Int) (*types.Transaction, error)

IntendWithdraw is a paid mutator transaction binding the contract method 0x785f8ffd.

Solidity: function intendWithdraw(address _candidateAddr, uint256 _amount) returns()

func (*DPoSSession) IsMigrating added in v0.2.3

func (_DPoS *DPoSSession) IsMigrating() (bool, error)

IsMigrating is a free data retrieval call binding the contract method 0xf05e777d.

Solidity: function isMigrating() view returns(bool)

func (*DPoSSession) IsOwner added in v0.2.0

func (_DPoS *DPoSSession) IsOwner() (bool, error)

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

Solidity: function isOwner() view returns(bool)

func (*DPoSSession) IsPauser added in v0.2.2

func (_DPoS *DPoSSession) IsPauser(account common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

Solidity: function isPauser(address account) view returns(bool)

func (*DPoSSession) IsSidechainRegistered added in v0.2.0

func (_DPoS *DPoSSession) IsSidechainRegistered(_sidechainAddr common.Address) (bool, error)

IsSidechainRegistered is a free data retrieval call binding the contract method 0x325820b3.

Solidity: function isSidechainRegistered(address _sidechainAddr) view returns(bool)

func (*DPoSSession) IsValidDPoS added in v0.2.0

func (_DPoS *DPoSSession) IsValidDPoS() (bool, error)

IsValidDPoS is a free data retrieval call binding the contract method 0xeab2ed8c.

Solidity: function isValidDPoS() view returns(bool)

func (*DPoSSession) IsValidator added in v0.2.0

func (_DPoS *DPoSSession) IsValidator(_addr common.Address) (bool, error)

IsValidator is a free data retrieval call binding the contract method 0xfacd743b.

Solidity: function isValidator(address _addr) view returns(bool)

func (*DPoSSession) IsWhitelistAdmin added in v0.2.2

func (_DPoS *DPoSSession) IsWhitelistAdmin(account common.Address) (bool, error)

IsWhitelistAdmin is a free data retrieval call binding the contract method 0xbb5f747b.

Solidity: function isWhitelistAdmin(address account) view returns(bool)

func (*DPoSSession) IsWhitelisted added in v0.2.2

func (_DPoS *DPoSSession) IsWhitelisted(account common.Address) (bool, error)

IsWhitelisted is a free data retrieval call binding the contract method 0x3af32abf.

Solidity: function isWhitelisted(address account) view returns(bool)

func (*DPoSSession) MiningPool added in v0.2.0

func (_DPoS *DPoSSession) MiningPool() (*big.Int, error)

MiningPool is a free data retrieval call binding the contract method 0x73397597.

Solidity: function miningPool() view returns(uint256)

func (*DPoSSession) NextParamProposalId added in v0.2.0

func (_DPoS *DPoSSession) NextParamProposalId() (*big.Int, error)

NextParamProposalId is a free data retrieval call binding the contract method 0x22da7927.

Solidity: function nextParamProposalId() view returns(uint256)

func (*DPoSSession) NextSidechainProposalId added in v0.2.0

func (_DPoS *DPoSSession) NextSidechainProposalId() (*big.Int, error)

NextSidechainProposalId is a free data retrieval call binding the contract method 0x2bf0fe59.

Solidity: function nextSidechainProposalId() view returns(uint256)

func (*DPoSSession) NonIncreaseCommissionRate added in v0.2.0

func (_DPoS *DPoSSession) NonIncreaseCommissionRate(_newRate *big.Int, _newLockEndTime *big.Int) (*types.Transaction, error)

NonIncreaseCommissionRate is a paid mutator transaction binding the contract method 0xbe57959d.

Solidity: function nonIncreaseCommissionRate(uint256 _newRate, uint256 _newLockEndTime) returns()

func (*DPoSSession) Owner added in v0.2.0

func (_DPoS *DPoSSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*DPoSSession) ParamProposals added in v0.2.0

func (_DPoS *DPoSSession) ParamProposals(arg0 *big.Int) (struct {
	Proposer     common.Address
	Deposit      *big.Int
	VoteDeadline *big.Int
	Record       *big.Int
	NewValue     *big.Int
	Status       uint8
}, error)

ParamProposals is a free data retrieval call binding the contract method 0x7e5fb8f3.

Solidity: function paramProposals(uint256 ) view returns(address proposer, uint256 deposit, uint256 voteDeadline, uint256 record, uint256 newValue, uint8 status)

func (*DPoSSession) Pause added in v0.2.2

func (_DPoS *DPoSSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*DPoSSession) Paused added in v0.2.2

func (_DPoS *DPoSSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*DPoSSession) RedeemMiningReward added in v0.2.0

func (_DPoS *DPoSSession) RedeemMiningReward(_receiver common.Address, _cumulativeReward *big.Int) (*types.Transaction, error)

RedeemMiningReward is a paid mutator transaction binding the contract method 0x1f7b0886.

Solidity: function redeemMiningReward(address _receiver, uint256 _cumulativeReward) returns()

func (*DPoSSession) RedeemedMiningReward added in v0.2.0

func (_DPoS *DPoSSession) RedeemedMiningReward(arg0 common.Address) (*big.Int, error)

RedeemedMiningReward is a free data retrieval call binding the contract method 0x87e53fef.

Solidity: function redeemedMiningReward(address ) view returns(uint256)

func (*DPoSSession) RegisterSidechain added in v0.2.0

func (_DPoS *DPoSSession) RegisterSidechain(_addr common.Address) (*types.Transaction, error)

RegisterSidechain is a paid mutator transaction binding the contract method 0xaa09fbae.

Solidity: function registerSidechain(address _addr) returns()

func (*DPoSSession) RegisteredSidechains added in v0.2.0

func (_DPoS *DPoSSession) RegisteredSidechains(arg0 common.Address) (bool, error)

RegisteredSidechains is a free data retrieval call binding the contract method 0x49444b71.

Solidity: function registeredSidechains(address ) view returns(bool)

func (*DPoSSession) RemoveWhitelisted added in v0.2.2

func (_DPoS *DPoSSession) RemoveWhitelisted(account common.Address) (*types.Transaction, error)

RemoveWhitelisted is a paid mutator transaction binding the contract method 0x291d9549.

Solidity: function removeWhitelisted(address account) returns()

func (*DPoSSession) RenounceOwnership added in v0.2.0

func (_DPoS *DPoSSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*DPoSSession) RenouncePauser added in v0.2.2

func (_DPoS *DPoSSession) RenouncePauser() (*types.Transaction, error)

RenouncePauser is a paid mutator transaction binding the contract method 0x6ef8d66d.

Solidity: function renouncePauser() returns()

func (*DPoSSession) RenounceWhitelistAdmin added in v0.2.2

func (_DPoS *DPoSSession) RenounceWhitelistAdmin() (*types.Transaction, error)

RenounceWhitelistAdmin is a paid mutator transaction binding the contract method 0x4c5a628c.

Solidity: function renounceWhitelistAdmin() returns()

func (*DPoSSession) RenounceWhitelisted added in v0.2.2

func (_DPoS *DPoSSession) RenounceWhitelisted() (*types.Transaction, error)

RenounceWhitelisted is a paid mutator transaction binding the contract method 0xd6cd9473.

Solidity: function renounceWhitelisted() returns()

func (*DPoSSession) SidechainProposals added in v0.2.0

func (_DPoS *DPoSSession) SidechainProposals(arg0 *big.Int) (struct {
	Proposer      common.Address
	Deposit       *big.Int
	VoteDeadline  *big.Int
	SidechainAddr common.Address
	Registered    bool
	Status        uint8
}, error)

SidechainProposals is a free data retrieval call binding the contract method 0xe97b7452.

Solidity: function sidechainProposals(uint256 ) view returns(address proposer, uint256 deposit, uint256 voteDeadline, address sidechainAddr, bool registered, uint8 status)

func (*DPoSSession) Slash added in v0.2.3

func (_DPoS *DPoSSession) Slash(_penaltyRequest []byte) (*types.Transaction, error)

Slash is a paid mutator transaction binding the contract method 0x5e47655f.

Solidity: function slash(bytes _penaltyRequest) returns()

func (*DPoSSession) TransferOwnership added in v0.2.0

func (_DPoS *DPoSSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*DPoSSession) UIntStorage added in v0.2.0

func (_DPoS *DPoSSession) UIntStorage(arg0 *big.Int) (*big.Int, error)

UIntStorage is a free data retrieval call binding the contract method 0x64ed600a.

Solidity: function UIntStorage(uint256 ) view returns(uint256)

func (*DPoSSession) Unpause added in v0.2.2

func (_DPoS *DPoSSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*DPoSSession) UpdateEnableSlash added in v0.2.5

func (_DPoS *DPoSSession) UpdateEnableSlash(_enable bool) (*types.Transaction, error)

UpdateEnableSlash is a paid mutator transaction binding the contract method 0x3361e90a.

Solidity: function updateEnableSlash(bool _enable) returns()

func (*DPoSSession) UpdateEnableWhitelist added in v0.2.2

func (_DPoS *DPoSSession) UpdateEnableWhitelist(_enable bool) (*types.Transaction, error)

UpdateEnableWhitelist is a paid mutator transaction binding the contract method 0x2cb57c48.

Solidity: function updateEnableWhitelist(bool _enable) returns()

func (*DPoSSession) UpdateMinSelfStake added in v0.2.3

func (_DPoS *DPoSSession) UpdateMinSelfStake(_minSelfStake *big.Int) (*types.Transaction, error)

UpdateMinSelfStake is a paid mutator transaction binding the contract method 0x866c4b17.

Solidity: function updateMinSelfStake(uint256 _minSelfStake) returns()

func (*DPoSSession) UsedPenaltyNonce added in v0.2.0

func (_DPoS *DPoSSession) UsedPenaltyNonce(arg0 *big.Int) (bool, error)

UsedPenaltyNonce is a free data retrieval call binding the contract method 0xfb878749.

Solidity: function usedPenaltyNonce(uint256 ) view returns(bool)

func (*DPoSSession) ValidateMultiSigMessage added in v0.2.0

func (_DPoS *DPoSSession) ValidateMultiSigMessage(_request []byte) (*types.Transaction, error)

ValidateMultiSigMessage is a paid mutator transaction binding the contract method 0x1c0efd9d.

Solidity: function validateMultiSigMessage(bytes _request) returns(bool)

func (*DPoSSession) ValidatorSet added in v0.2.0

func (_DPoS *DPoSSession) ValidatorSet(arg0 *big.Int) (common.Address, error)

ValidatorSet is a free data retrieval call binding the contract method 0xe64808f3.

Solidity: function validatorSet(uint256 ) view returns(address)

func (*DPoSSession) VoteParam added in v0.2.0

func (_DPoS *DPoSSession) VoteParam(_proposalId *big.Int, _vote uint8) (*types.Transaction, error)

VoteParam is a paid mutator transaction binding the contract method 0x25ed6b35.

Solidity: function voteParam(uint256 _proposalId, uint8 _vote) returns()

func (*DPoSSession) VoteSidechain added in v0.2.0

func (_DPoS *DPoSSession) VoteSidechain(_proposalId *big.Int, _vote uint8) (*types.Transaction, error)

VoteSidechain is a paid mutator transaction binding the contract method 0x85bfe017.

Solidity: function voteSidechain(uint256 _proposalId, uint8 _vote) returns()

func (*DPoSSession) WithdrawFromUnbondedCandidate added in v0.2.0

func (_DPoS *DPoSSession) WithdrawFromUnbondedCandidate(_candidateAddr common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawFromUnbondedCandidate is a paid mutator transaction binding the contract method 0xbb9053d0.

Solidity: function withdrawFromUnbondedCandidate(address _candidateAddr, uint256 _amount) returns()

type DPoSSlash added in v0.2.3

type DPoSSlash struct {
	Validator common.Address
	Delegator common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

DPoSSlash represents a Slash event raised by the DPoS contract.

type DPoSSlashIterator added in v0.2.3

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

DPoSSlashIterator is returned from FilterSlash and is used to iterate over the raw logs and unpacked data for Slash events raised by the DPoS contract.

func (*DPoSSlashIterator) Close added in v0.2.3

func (it *DPoSSlashIterator) Close() error

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

func (*DPoSSlashIterator) Error added in v0.2.3

func (it *DPoSSlashIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSSlashIterator) Next added in v0.2.3

func (it *DPoSSlashIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSTransactor added in v0.2.0

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

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

func NewDPoSTransactor added in v0.2.0

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

NewDPoSTransactor creates a new write-only instance of DPoS, bound to a specific deployed contract.

func (*DPoSTransactor) AddPauser added in v0.2.2

func (_DPoS *DPoSTransactor) AddPauser(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

AddPauser is a paid mutator transaction binding the contract method 0x82dc1ec4.

Solidity: function addPauser(address account) returns()

func (*DPoSTransactor) AddWhitelistAdmin added in v0.2.2

func (_DPoS *DPoSTransactor) AddWhitelistAdmin(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

AddWhitelistAdmin is a paid mutator transaction binding the contract method 0x7362d9c8.

Solidity: function addWhitelistAdmin(address account) returns()

func (*DPoSTransactor) AddWhitelisted added in v0.2.2

func (_DPoS *DPoSTransactor) AddWhitelisted(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

AddWhitelisted is a paid mutator transaction binding the contract method 0x10154bad.

Solidity: function addWhitelisted(address account) returns()

func (*DPoSTransactor) AnnounceIncreaseCommissionRate added in v0.2.0

func (_DPoS *DPoSTransactor) AnnounceIncreaseCommissionRate(opts *bind.TransactOpts, _newRate *big.Int, _newLockEndTime *big.Int) (*types.Transaction, error)

AnnounceIncreaseCommissionRate is a paid mutator transaction binding the contract method 0xf64f33f2.

Solidity: function announceIncreaseCommissionRate(uint256 _newRate, uint256 _newLockEndTime) returns()

func (*DPoSTransactor) ClaimValidator added in v0.2.0

func (_DPoS *DPoSTransactor) ClaimValidator(opts *bind.TransactOpts) (*types.Transaction, error)

ClaimValidator is a paid mutator transaction binding the contract method 0x6e7cf85d.

Solidity: function claimValidator() returns()

func (*DPoSTransactor) ConfirmIncreaseCommissionRate added in v0.2.0

func (_DPoS *DPoSTransactor) ConfirmIncreaseCommissionRate(opts *bind.TransactOpts) (*types.Transaction, error)

ConfirmIncreaseCommissionRate is a paid mutator transaction binding the contract method 0x6e997565.

Solidity: function confirmIncreaseCommissionRate() returns()

func (*DPoSTransactor) ConfirmParamProposal added in v0.2.0

func (_DPoS *DPoSTransactor) ConfirmParamProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)

ConfirmParamProposal is a paid mutator transaction binding the contract method 0x934a18ec.

Solidity: function confirmParamProposal(uint256 _proposalId) returns()

func (*DPoSTransactor) ConfirmSidechainProposal added in v0.2.0

func (_DPoS *DPoSTransactor) ConfirmSidechainProposal(opts *bind.TransactOpts, _proposalId *big.Int) (*types.Transaction, error)

ConfirmSidechainProposal is a paid mutator transaction binding the contract method 0x1a06f737.

Solidity: function confirmSidechainProposal(uint256 _proposalId) returns()

func (*DPoSTransactor) ConfirmUnbondedCandidate added in v0.2.0

func (_DPoS *DPoSTransactor) ConfirmUnbondedCandidate(opts *bind.TransactOpts, _candidateAddr common.Address) (*types.Transaction, error)

ConfirmUnbondedCandidate is a paid mutator transaction binding the contract method 0xc7ec2f35.

Solidity: function confirmUnbondedCandidate(address _candidateAddr) returns()

func (*DPoSTransactor) ConfirmWithdraw added in v0.2.0

func (_DPoS *DPoSTransactor) ConfirmWithdraw(opts *bind.TransactOpts, _candidateAddr common.Address) (*types.Transaction, error)

ConfirmWithdraw is a paid mutator transaction binding the contract method 0xd2bfc1c7.

Solidity: function confirmWithdraw(address _candidateAddr) returns()

func (*DPoSTransactor) ContributeToMiningPool added in v0.2.0

func (_DPoS *DPoSTransactor) ContributeToMiningPool(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)

ContributeToMiningPool is a paid mutator transaction binding the contract method 0x4b7dba6b.

Solidity: function contributeToMiningPool(uint256 _amount) returns()

func (*DPoSTransactor) CreateParamProposal added in v0.2.0

func (_DPoS *DPoSTransactor) CreateParamProposal(opts *bind.TransactOpts, _record *big.Int, _value *big.Int) (*types.Transaction, error)

CreateParamProposal is a paid mutator transaction binding the contract method 0x3090c0e9.

Solidity: function createParamProposal(uint256 _record, uint256 _value) returns()

func (*DPoSTransactor) CreateSidechainProposal added in v0.2.0

func (_DPoS *DPoSTransactor) CreateSidechainProposal(opts *bind.TransactOpts, _sidechainAddr common.Address, _registered bool) (*types.Transaction, error)

CreateSidechainProposal is a paid mutator transaction binding the contract method 0xe433c1ca.

Solidity: function createSidechainProposal(address _sidechainAddr, bool _registered) returns()

func (*DPoSTransactor) Delegate added in v0.2.0

func (_DPoS *DPoSTransactor) Delegate(opts *bind.TransactOpts, _candidateAddr common.Address, _amount *big.Int) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x026e402b.

Solidity: function delegate(address _candidateAddr, uint256 _amount) returns()

func (*DPoSTransactor) DrainToken added in v0.2.2

func (_DPoS *DPoSTransactor) DrainToken(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)

DrainToken is a paid mutator transaction binding the contract method 0x145aa116.

Solidity: function drainToken(uint256 _amount) returns()

func (*DPoSTransactor) InitializeCandidate added in v0.2.0

func (_DPoS *DPoSTransactor) InitializeCandidate(opts *bind.TransactOpts, _minSelfStake *big.Int, _commissionRate *big.Int, _rateLockEndTime *big.Int) (*types.Transaction, error)

InitializeCandidate is a paid mutator transaction binding the contract method 0xc1e16718.

Solidity: function initializeCandidate(uint256 _minSelfStake, uint256 _commissionRate, uint256 _rateLockEndTime) returns()

func (*DPoSTransactor) IntendWithdraw added in v0.2.0

func (_DPoS *DPoSTransactor) IntendWithdraw(opts *bind.TransactOpts, _candidateAddr common.Address, _amount *big.Int) (*types.Transaction, error)

IntendWithdraw is a paid mutator transaction binding the contract method 0x785f8ffd.

Solidity: function intendWithdraw(address _candidateAddr, uint256 _amount) returns()

func (*DPoSTransactor) NonIncreaseCommissionRate added in v0.2.0

func (_DPoS *DPoSTransactor) NonIncreaseCommissionRate(opts *bind.TransactOpts, _newRate *big.Int, _newLockEndTime *big.Int) (*types.Transaction, error)

NonIncreaseCommissionRate is a paid mutator transaction binding the contract method 0xbe57959d.

Solidity: function nonIncreaseCommissionRate(uint256 _newRate, uint256 _newLockEndTime) returns()

func (*DPoSTransactor) Pause added in v0.2.2

func (_DPoS *DPoSTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*DPoSTransactor) RedeemMiningReward added in v0.2.0

func (_DPoS *DPoSTransactor) RedeemMiningReward(opts *bind.TransactOpts, _receiver common.Address, _cumulativeReward *big.Int) (*types.Transaction, error)

RedeemMiningReward is a paid mutator transaction binding the contract method 0x1f7b0886.

Solidity: function redeemMiningReward(address _receiver, uint256 _cumulativeReward) returns()

func (*DPoSTransactor) RegisterSidechain added in v0.2.0

func (_DPoS *DPoSTransactor) RegisterSidechain(opts *bind.TransactOpts, _addr common.Address) (*types.Transaction, error)

RegisterSidechain is a paid mutator transaction binding the contract method 0xaa09fbae.

Solidity: function registerSidechain(address _addr) returns()

func (*DPoSTransactor) RemoveWhitelisted added in v0.2.2

func (_DPoS *DPoSTransactor) RemoveWhitelisted(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

RemoveWhitelisted is a paid mutator transaction binding the contract method 0x291d9549.

Solidity: function removeWhitelisted(address account) returns()

func (*DPoSTransactor) RenounceOwnership added in v0.2.0

func (_DPoS *DPoSTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*DPoSTransactor) RenouncePauser added in v0.2.2

func (_DPoS *DPoSTransactor) RenouncePauser(opts *bind.TransactOpts) (*types.Transaction, error)

RenouncePauser is a paid mutator transaction binding the contract method 0x6ef8d66d.

Solidity: function renouncePauser() returns()

func (*DPoSTransactor) RenounceWhitelistAdmin added in v0.2.2

func (_DPoS *DPoSTransactor) RenounceWhitelistAdmin(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceWhitelistAdmin is a paid mutator transaction binding the contract method 0x4c5a628c.

Solidity: function renounceWhitelistAdmin() returns()

func (*DPoSTransactor) RenounceWhitelisted added in v0.2.2

func (_DPoS *DPoSTransactor) RenounceWhitelisted(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceWhitelisted is a paid mutator transaction binding the contract method 0xd6cd9473.

Solidity: function renounceWhitelisted() returns()

func (*DPoSTransactor) Slash added in v0.2.3

func (_DPoS *DPoSTransactor) Slash(opts *bind.TransactOpts, _penaltyRequest []byte) (*types.Transaction, error)

Slash is a paid mutator transaction binding the contract method 0x5e47655f.

Solidity: function slash(bytes _penaltyRequest) returns()

func (*DPoSTransactor) TransferOwnership added in v0.2.0

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

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

Solidity: function transferOwnership(address newOwner) returns()

func (*DPoSTransactor) Unpause added in v0.2.2

func (_DPoS *DPoSTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*DPoSTransactor) UpdateEnableSlash added in v0.2.5

func (_DPoS *DPoSTransactor) UpdateEnableSlash(opts *bind.TransactOpts, _enable bool) (*types.Transaction, error)

UpdateEnableSlash is a paid mutator transaction binding the contract method 0x3361e90a.

Solidity: function updateEnableSlash(bool _enable) returns()

func (*DPoSTransactor) UpdateEnableWhitelist added in v0.2.2

func (_DPoS *DPoSTransactor) UpdateEnableWhitelist(opts *bind.TransactOpts, _enable bool) (*types.Transaction, error)

UpdateEnableWhitelist is a paid mutator transaction binding the contract method 0x2cb57c48.

Solidity: function updateEnableWhitelist(bool _enable) returns()

func (*DPoSTransactor) UpdateMinSelfStake added in v0.2.3

func (_DPoS *DPoSTransactor) UpdateMinSelfStake(opts *bind.TransactOpts, _minSelfStake *big.Int) (*types.Transaction, error)

UpdateMinSelfStake is a paid mutator transaction binding the contract method 0x866c4b17.

Solidity: function updateMinSelfStake(uint256 _minSelfStake) returns()

func (*DPoSTransactor) ValidateMultiSigMessage added in v0.2.0

func (_DPoS *DPoSTransactor) ValidateMultiSigMessage(opts *bind.TransactOpts, _request []byte) (*types.Transaction, error)

ValidateMultiSigMessage is a paid mutator transaction binding the contract method 0x1c0efd9d.

Solidity: function validateMultiSigMessage(bytes _request) returns(bool)

func (*DPoSTransactor) VoteParam added in v0.2.0

func (_DPoS *DPoSTransactor) VoteParam(opts *bind.TransactOpts, _proposalId *big.Int, _vote uint8) (*types.Transaction, error)

VoteParam is a paid mutator transaction binding the contract method 0x25ed6b35.

Solidity: function voteParam(uint256 _proposalId, uint8 _vote) returns()

func (*DPoSTransactor) VoteSidechain added in v0.2.0

func (_DPoS *DPoSTransactor) VoteSidechain(opts *bind.TransactOpts, _proposalId *big.Int, _vote uint8) (*types.Transaction, error)

VoteSidechain is a paid mutator transaction binding the contract method 0x85bfe017.

Solidity: function voteSidechain(uint256 _proposalId, uint8 _vote) returns()

func (*DPoSTransactor) WithdrawFromUnbondedCandidate added in v0.2.0

func (_DPoS *DPoSTransactor) WithdrawFromUnbondedCandidate(opts *bind.TransactOpts, _candidateAddr common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawFromUnbondedCandidate is a paid mutator transaction binding the contract method 0xbb9053d0.

Solidity: function withdrawFromUnbondedCandidate(address _candidateAddr, uint256 _amount) returns()

type DPoSTransactorRaw added in v0.2.0

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

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

func (*DPoSTransactorRaw) Transact added in v0.2.0

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

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

func (*DPoSTransactorRaw) Transfer added in v0.2.0

func (_DPoS *DPoSTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type DPoSTransactorSession added in v0.2.0

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

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

func (*DPoSTransactorSession) AddPauser added in v0.2.2

func (_DPoS *DPoSTransactorSession) AddPauser(account common.Address) (*types.Transaction, error)

AddPauser is a paid mutator transaction binding the contract method 0x82dc1ec4.

Solidity: function addPauser(address account) returns()

func (*DPoSTransactorSession) AddWhitelistAdmin added in v0.2.2

func (_DPoS *DPoSTransactorSession) AddWhitelistAdmin(account common.Address) (*types.Transaction, error)

AddWhitelistAdmin is a paid mutator transaction binding the contract method 0x7362d9c8.

Solidity: function addWhitelistAdmin(address account) returns()

func (*DPoSTransactorSession) AddWhitelisted added in v0.2.2

func (_DPoS *DPoSTransactorSession) AddWhitelisted(account common.Address) (*types.Transaction, error)

AddWhitelisted is a paid mutator transaction binding the contract method 0x10154bad.

Solidity: function addWhitelisted(address account) returns()

func (*DPoSTransactorSession) AnnounceIncreaseCommissionRate added in v0.2.0

func (_DPoS *DPoSTransactorSession) AnnounceIncreaseCommissionRate(_newRate *big.Int, _newLockEndTime *big.Int) (*types.Transaction, error)

AnnounceIncreaseCommissionRate is a paid mutator transaction binding the contract method 0xf64f33f2.

Solidity: function announceIncreaseCommissionRate(uint256 _newRate, uint256 _newLockEndTime) returns()

func (*DPoSTransactorSession) ClaimValidator added in v0.2.0

func (_DPoS *DPoSTransactorSession) ClaimValidator() (*types.Transaction, error)

ClaimValidator is a paid mutator transaction binding the contract method 0x6e7cf85d.

Solidity: function claimValidator() returns()

func (*DPoSTransactorSession) ConfirmIncreaseCommissionRate added in v0.2.0

func (_DPoS *DPoSTransactorSession) ConfirmIncreaseCommissionRate() (*types.Transaction, error)

ConfirmIncreaseCommissionRate is a paid mutator transaction binding the contract method 0x6e997565.

Solidity: function confirmIncreaseCommissionRate() returns()

func (*DPoSTransactorSession) ConfirmParamProposal added in v0.2.0

func (_DPoS *DPoSTransactorSession) ConfirmParamProposal(_proposalId *big.Int) (*types.Transaction, error)

ConfirmParamProposal is a paid mutator transaction binding the contract method 0x934a18ec.

Solidity: function confirmParamProposal(uint256 _proposalId) returns()

func (*DPoSTransactorSession) ConfirmSidechainProposal added in v0.2.0

func (_DPoS *DPoSTransactorSession) ConfirmSidechainProposal(_proposalId *big.Int) (*types.Transaction, error)

ConfirmSidechainProposal is a paid mutator transaction binding the contract method 0x1a06f737.

Solidity: function confirmSidechainProposal(uint256 _proposalId) returns()

func (*DPoSTransactorSession) ConfirmUnbondedCandidate added in v0.2.0

func (_DPoS *DPoSTransactorSession) ConfirmUnbondedCandidate(_candidateAddr common.Address) (*types.Transaction, error)

ConfirmUnbondedCandidate is a paid mutator transaction binding the contract method 0xc7ec2f35.

Solidity: function confirmUnbondedCandidate(address _candidateAddr) returns()

func (*DPoSTransactorSession) ConfirmWithdraw added in v0.2.0

func (_DPoS *DPoSTransactorSession) ConfirmWithdraw(_candidateAddr common.Address) (*types.Transaction, error)

ConfirmWithdraw is a paid mutator transaction binding the contract method 0xd2bfc1c7.

Solidity: function confirmWithdraw(address _candidateAddr) returns()

func (*DPoSTransactorSession) ContributeToMiningPool added in v0.2.0

func (_DPoS *DPoSTransactorSession) ContributeToMiningPool(_amount *big.Int) (*types.Transaction, error)

ContributeToMiningPool is a paid mutator transaction binding the contract method 0x4b7dba6b.

Solidity: function contributeToMiningPool(uint256 _amount) returns()

func (*DPoSTransactorSession) CreateParamProposal added in v0.2.0

func (_DPoS *DPoSTransactorSession) CreateParamProposal(_record *big.Int, _value *big.Int) (*types.Transaction, error)

CreateParamProposal is a paid mutator transaction binding the contract method 0x3090c0e9.

Solidity: function createParamProposal(uint256 _record, uint256 _value) returns()

func (*DPoSTransactorSession) CreateSidechainProposal added in v0.2.0

func (_DPoS *DPoSTransactorSession) CreateSidechainProposal(_sidechainAddr common.Address, _registered bool) (*types.Transaction, error)

CreateSidechainProposal is a paid mutator transaction binding the contract method 0xe433c1ca.

Solidity: function createSidechainProposal(address _sidechainAddr, bool _registered) returns()

func (*DPoSTransactorSession) Delegate added in v0.2.0

func (_DPoS *DPoSTransactorSession) Delegate(_candidateAddr common.Address, _amount *big.Int) (*types.Transaction, error)

Delegate is a paid mutator transaction binding the contract method 0x026e402b.

Solidity: function delegate(address _candidateAddr, uint256 _amount) returns()

func (*DPoSTransactorSession) DrainToken added in v0.2.2

func (_DPoS *DPoSTransactorSession) DrainToken(_amount *big.Int) (*types.Transaction, error)

DrainToken is a paid mutator transaction binding the contract method 0x145aa116.

Solidity: function drainToken(uint256 _amount) returns()

func (*DPoSTransactorSession) InitializeCandidate added in v0.2.0

func (_DPoS *DPoSTransactorSession) InitializeCandidate(_minSelfStake *big.Int, _commissionRate *big.Int, _rateLockEndTime *big.Int) (*types.Transaction, error)

InitializeCandidate is a paid mutator transaction binding the contract method 0xc1e16718.

Solidity: function initializeCandidate(uint256 _minSelfStake, uint256 _commissionRate, uint256 _rateLockEndTime) returns()

func (*DPoSTransactorSession) IntendWithdraw added in v0.2.0

func (_DPoS *DPoSTransactorSession) IntendWithdraw(_candidateAddr common.Address, _amount *big.Int) (*types.Transaction, error)

IntendWithdraw is a paid mutator transaction binding the contract method 0x785f8ffd.

Solidity: function intendWithdraw(address _candidateAddr, uint256 _amount) returns()

func (*DPoSTransactorSession) NonIncreaseCommissionRate added in v0.2.0

func (_DPoS *DPoSTransactorSession) NonIncreaseCommissionRate(_newRate *big.Int, _newLockEndTime *big.Int) (*types.Transaction, error)

NonIncreaseCommissionRate is a paid mutator transaction binding the contract method 0xbe57959d.

Solidity: function nonIncreaseCommissionRate(uint256 _newRate, uint256 _newLockEndTime) returns()

func (*DPoSTransactorSession) Pause added in v0.2.2

func (_DPoS *DPoSTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*DPoSTransactorSession) RedeemMiningReward added in v0.2.0

func (_DPoS *DPoSTransactorSession) RedeemMiningReward(_receiver common.Address, _cumulativeReward *big.Int) (*types.Transaction, error)

RedeemMiningReward is a paid mutator transaction binding the contract method 0x1f7b0886.

Solidity: function redeemMiningReward(address _receiver, uint256 _cumulativeReward) returns()

func (*DPoSTransactorSession) RegisterSidechain added in v0.2.0

func (_DPoS *DPoSTransactorSession) RegisterSidechain(_addr common.Address) (*types.Transaction, error)

RegisterSidechain is a paid mutator transaction binding the contract method 0xaa09fbae.

Solidity: function registerSidechain(address _addr) returns()

func (*DPoSTransactorSession) RemoveWhitelisted added in v0.2.2

func (_DPoS *DPoSTransactorSession) RemoveWhitelisted(account common.Address) (*types.Transaction, error)

RemoveWhitelisted is a paid mutator transaction binding the contract method 0x291d9549.

Solidity: function removeWhitelisted(address account) returns()

func (*DPoSTransactorSession) RenounceOwnership added in v0.2.0

func (_DPoS *DPoSTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*DPoSTransactorSession) RenouncePauser added in v0.2.2

func (_DPoS *DPoSTransactorSession) RenouncePauser() (*types.Transaction, error)

RenouncePauser is a paid mutator transaction binding the contract method 0x6ef8d66d.

Solidity: function renouncePauser() returns()

func (*DPoSTransactorSession) RenounceWhitelistAdmin added in v0.2.2

func (_DPoS *DPoSTransactorSession) RenounceWhitelistAdmin() (*types.Transaction, error)

RenounceWhitelistAdmin is a paid mutator transaction binding the contract method 0x4c5a628c.

Solidity: function renounceWhitelistAdmin() returns()

func (*DPoSTransactorSession) RenounceWhitelisted added in v0.2.2

func (_DPoS *DPoSTransactorSession) RenounceWhitelisted() (*types.Transaction, error)

RenounceWhitelisted is a paid mutator transaction binding the contract method 0xd6cd9473.

Solidity: function renounceWhitelisted() returns()

func (*DPoSTransactorSession) Slash added in v0.2.3

func (_DPoS *DPoSTransactorSession) Slash(_penaltyRequest []byte) (*types.Transaction, error)

Slash is a paid mutator transaction binding the contract method 0x5e47655f.

Solidity: function slash(bytes _penaltyRequest) returns()

func (*DPoSTransactorSession) TransferOwnership added in v0.2.0

func (_DPoS *DPoSTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*DPoSTransactorSession) Unpause added in v0.2.2

func (_DPoS *DPoSTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*DPoSTransactorSession) UpdateEnableSlash added in v0.2.5

func (_DPoS *DPoSTransactorSession) UpdateEnableSlash(_enable bool) (*types.Transaction, error)

UpdateEnableSlash is a paid mutator transaction binding the contract method 0x3361e90a.

Solidity: function updateEnableSlash(bool _enable) returns()

func (*DPoSTransactorSession) UpdateEnableWhitelist added in v0.2.2

func (_DPoS *DPoSTransactorSession) UpdateEnableWhitelist(_enable bool) (*types.Transaction, error)

UpdateEnableWhitelist is a paid mutator transaction binding the contract method 0x2cb57c48.

Solidity: function updateEnableWhitelist(bool _enable) returns()

func (*DPoSTransactorSession) UpdateMinSelfStake added in v0.2.3

func (_DPoS *DPoSTransactorSession) UpdateMinSelfStake(_minSelfStake *big.Int) (*types.Transaction, error)

UpdateMinSelfStake is a paid mutator transaction binding the contract method 0x866c4b17.

Solidity: function updateMinSelfStake(uint256 _minSelfStake) returns()

func (*DPoSTransactorSession) ValidateMultiSigMessage added in v0.2.0

func (_DPoS *DPoSTransactorSession) ValidateMultiSigMessage(_request []byte) (*types.Transaction, error)

ValidateMultiSigMessage is a paid mutator transaction binding the contract method 0x1c0efd9d.

Solidity: function validateMultiSigMessage(bytes _request) returns(bool)

func (*DPoSTransactorSession) VoteParam added in v0.2.0

func (_DPoS *DPoSTransactorSession) VoteParam(_proposalId *big.Int, _vote uint8) (*types.Transaction, error)

VoteParam is a paid mutator transaction binding the contract method 0x25ed6b35.

Solidity: function voteParam(uint256 _proposalId, uint8 _vote) returns()

func (*DPoSTransactorSession) VoteSidechain added in v0.2.0

func (_DPoS *DPoSTransactorSession) VoteSidechain(_proposalId *big.Int, _vote uint8) (*types.Transaction, error)

VoteSidechain is a paid mutator transaction binding the contract method 0x85bfe017.

Solidity: function voteSidechain(uint256 _proposalId, uint8 _vote) returns()

func (*DPoSTransactorSession) WithdrawFromUnbondedCandidate added in v0.2.0

func (_DPoS *DPoSTransactorSession) WithdrawFromUnbondedCandidate(_candidateAddr common.Address, _amount *big.Int) (*types.Transaction, error)

WithdrawFromUnbondedCandidate is a paid mutator transaction binding the contract method 0xbb9053d0.

Solidity: function withdrawFromUnbondedCandidate(address _candidateAddr, uint256 _amount) returns()

type DPoSUnpaused added in v0.2.2

type DPoSUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

DPoSUnpaused represents a Unpaused event raised by the DPoS contract.

type DPoSUnpausedIterator added in v0.2.2

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

DPoSUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the DPoS contract.

func (*DPoSUnpausedIterator) Close added in v0.2.2

func (it *DPoSUnpausedIterator) Close() error

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

func (*DPoSUnpausedIterator) Error added in v0.2.2

func (it *DPoSUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSUnpausedIterator) Next added in v0.2.2

func (it *DPoSUnpausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSUpdateCommissionRate added in v0.2.0

type DPoSUpdateCommissionRate struct {
	Candidate      common.Address
	NewRate        *big.Int
	NewLockEndTime *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

DPoSUpdateCommissionRate represents a UpdateCommissionRate event raised by the DPoS contract.

type DPoSUpdateCommissionRateIterator added in v0.2.0

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

DPoSUpdateCommissionRateIterator is returned from FilterUpdateCommissionRate and is used to iterate over the raw logs and unpacked data for UpdateCommissionRate events raised by the DPoS contract.

func (*DPoSUpdateCommissionRateIterator) Close added in v0.2.0

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

func (*DPoSUpdateCommissionRateIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSUpdateCommissionRateIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSUpdateDelegatedStake added in v0.2.3

type DPoSUpdateDelegatedStake struct {
	Delegator      common.Address
	Candidate      common.Address
	DelegatorStake *big.Int
	CandidatePool  *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

DPoSUpdateDelegatedStake represents a UpdateDelegatedStake event raised by the DPoS contract.

type DPoSUpdateDelegatedStakeIterator added in v0.2.3

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

DPoSUpdateDelegatedStakeIterator is returned from FilterUpdateDelegatedStake and is used to iterate over the raw logs and unpacked data for UpdateDelegatedStake events raised by the DPoS contract.

func (*DPoSUpdateDelegatedStakeIterator) Close added in v0.2.3

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

func (*DPoSUpdateDelegatedStakeIterator) Error added in v0.2.3

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSUpdateDelegatedStakeIterator) Next added in v0.2.3

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSUpdateMinSelfStake added in v0.2.3

type DPoSUpdateMinSelfStake struct {
	Candidate    common.Address
	MinSelfStake *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

DPoSUpdateMinSelfStake represents a UpdateMinSelfStake event raised by the DPoS contract.

type DPoSUpdateMinSelfStakeIterator added in v0.2.3

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

DPoSUpdateMinSelfStakeIterator is returned from FilterUpdateMinSelfStake and is used to iterate over the raw logs and unpacked data for UpdateMinSelfStake events raised by the DPoS contract.

func (*DPoSUpdateMinSelfStakeIterator) Close added in v0.2.3

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

func (*DPoSUpdateMinSelfStakeIterator) Error added in v0.2.3

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSUpdateMinSelfStakeIterator) Next added in v0.2.3

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSValidatorChange added in v0.2.0

type DPoSValidatorChange struct {
	EthAddr    common.Address
	ChangeType uint8
	Raw        types.Log // Blockchain specific contextual infos
}

DPoSValidatorChange represents a ValidatorChange event raised by the DPoS contract.

type DPoSValidatorChangeIterator added in v0.2.0

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

DPoSValidatorChangeIterator is returned from FilterValidatorChange and is used to iterate over the raw logs and unpacked data for ValidatorChange events raised by the DPoS contract.

func (*DPoSValidatorChangeIterator) Close added in v0.2.0

func (it *DPoSValidatorChangeIterator) Close() error

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

func (*DPoSValidatorChangeIterator) Error added in v0.2.0

func (it *DPoSValidatorChangeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSValidatorChangeIterator) Next added in v0.2.0

func (it *DPoSValidatorChangeIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSVoteParam added in v0.2.0

type DPoSVoteParam struct {
	ProposalId *big.Int
	Voter      common.Address
	VoteType   uint8
	Raw        types.Log // Blockchain specific contextual infos
}

DPoSVoteParam represents a VoteParam event raised by the DPoS contract.

type DPoSVoteParamIterator added in v0.2.0

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

DPoSVoteParamIterator is returned from FilterVoteParam and is used to iterate over the raw logs and unpacked data for VoteParam events raised by the DPoS contract.

func (*DPoSVoteParamIterator) Close added in v0.2.0

func (it *DPoSVoteParamIterator) Close() error

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

func (*DPoSVoteParamIterator) Error added in v0.2.0

func (it *DPoSVoteParamIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSVoteParamIterator) Next added in v0.2.0

func (it *DPoSVoteParamIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSVoteSidechain added in v0.2.0

type DPoSVoteSidechain struct {
	ProposalId *big.Int
	Voter      common.Address
	VoteType   uint8
	Raw        types.Log // Blockchain specific contextual infos
}

DPoSVoteSidechain represents a VoteSidechain event raised by the DPoS contract.

type DPoSVoteSidechainIterator added in v0.2.0

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

DPoSVoteSidechainIterator is returned from FilterVoteSidechain and is used to iterate over the raw logs and unpacked data for VoteSidechain events raised by the DPoS contract.

func (*DPoSVoteSidechainIterator) Close added in v0.2.0

func (it *DPoSVoteSidechainIterator) Close() error

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

func (*DPoSVoteSidechainIterator) Error added in v0.2.0

func (it *DPoSVoteSidechainIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSVoteSidechainIterator) Next added in v0.2.0

func (it *DPoSVoteSidechainIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSWhitelistAdminAdded added in v0.2.2

type DPoSWhitelistAdminAdded struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

DPoSWhitelistAdminAdded represents a WhitelistAdminAdded event raised by the DPoS contract.

type DPoSWhitelistAdminAddedIterator added in v0.2.2

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

DPoSWhitelistAdminAddedIterator is returned from FilterWhitelistAdminAdded and is used to iterate over the raw logs and unpacked data for WhitelistAdminAdded events raised by the DPoS contract.

func (*DPoSWhitelistAdminAddedIterator) Close added in v0.2.2

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

func (*DPoSWhitelistAdminAddedIterator) Error added in v0.2.2

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSWhitelistAdminAddedIterator) Next added in v0.2.2

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSWhitelistAdminRemoved added in v0.2.2

type DPoSWhitelistAdminRemoved struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

DPoSWhitelistAdminRemoved represents a WhitelistAdminRemoved event raised by the DPoS contract.

type DPoSWhitelistAdminRemovedIterator added in v0.2.2

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

DPoSWhitelistAdminRemovedIterator is returned from FilterWhitelistAdminRemoved and is used to iterate over the raw logs and unpacked data for WhitelistAdminRemoved events raised by the DPoS contract.

func (*DPoSWhitelistAdminRemovedIterator) Close added in v0.2.2

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

func (*DPoSWhitelistAdminRemovedIterator) Error added in v0.2.2

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSWhitelistAdminRemovedIterator) Next added in v0.2.2

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSWhitelistedAdded added in v0.2.2

type DPoSWhitelistedAdded struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

DPoSWhitelistedAdded represents a WhitelistedAdded event raised by the DPoS contract.

type DPoSWhitelistedAddedIterator added in v0.2.2

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

DPoSWhitelistedAddedIterator is returned from FilterWhitelistedAdded and is used to iterate over the raw logs and unpacked data for WhitelistedAdded events raised by the DPoS contract.

func (*DPoSWhitelistedAddedIterator) Close added in v0.2.2

func (it *DPoSWhitelistedAddedIterator) Close() error

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

func (*DPoSWhitelistedAddedIterator) Error added in v0.2.2

func (it *DPoSWhitelistedAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSWhitelistedAddedIterator) Next added in v0.2.2

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSWhitelistedRemoved added in v0.2.2

type DPoSWhitelistedRemoved struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

DPoSWhitelistedRemoved represents a WhitelistedRemoved event raised by the DPoS contract.

type DPoSWhitelistedRemovedIterator added in v0.2.2

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

DPoSWhitelistedRemovedIterator is returned from FilterWhitelistedRemoved and is used to iterate over the raw logs and unpacked data for WhitelistedRemoved events raised by the DPoS contract.

func (*DPoSWhitelistedRemovedIterator) Close added in v0.2.2

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

func (*DPoSWhitelistedRemovedIterator) Error added in v0.2.2

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSWhitelistedRemovedIterator) Next added in v0.2.2

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type DPoSWithdrawFromUnbondedCandidate added in v0.2.0

type DPoSWithdrawFromUnbondedCandidate struct {
	Delegator common.Address
	Candidate common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

DPoSWithdrawFromUnbondedCandidate represents a WithdrawFromUnbondedCandidate event raised by the DPoS contract.

type DPoSWithdrawFromUnbondedCandidateIterator added in v0.2.0

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

DPoSWithdrawFromUnbondedCandidateIterator is returned from FilterWithdrawFromUnbondedCandidate and is used to iterate over the raw logs and unpacked data for WithdrawFromUnbondedCandidate events raised by the DPoS contract.

func (*DPoSWithdrawFromUnbondedCandidateIterator) Close added in v0.2.0

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

func (*DPoSWithdrawFromUnbondedCandidateIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*DPoSWithdrawFromUnbondedCandidateIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ERC20

type ERC20 struct {
	ERC20Caller     // Read-only binding to the contract
	ERC20Transactor // Write-only binding to the contract
	ERC20Filterer   // Log filterer for contract events
}

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

func DeployERC20

func DeployERC20(auth *bind.TransactOpts, backend bind.ContractBackend, _initialAmount *big.Int, _tokenName string, _decimalUnits uint8, _tokenSymbol string) (common.Address, *types.Transaction, *ERC20, error)

DeployERC20 deploys a new Ethereum contract, binding an instance of ERC20 to it.

func NewERC20

func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error)

NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.

type ERC20Approval

type ERC20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ERC20Approval represents a Approval event raised by the ERC20 contract.

type ERC20ApprovalIterator

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

ERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20 contract.

func (*ERC20ApprovalIterator) Close

func (it *ERC20ApprovalIterator) Close() error

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

func (*ERC20ApprovalIterator) Error

func (it *ERC20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20ApprovalIterator) Next

func (it *ERC20ApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ERC20Caller

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

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

func NewERC20Caller

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

NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Caller) Allowance

func (_ERC20 *ERC20Caller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)

func (*ERC20Caller) Allowed

func (_ERC20 *ERC20Caller) Allowed(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowed is a free data retrieval call binding the contract method 0x5c658165.

Solidity: function allowed( address, address) constant returns(uint256)

func (*ERC20Caller) BalanceOf

func (_ERC20 *ERC20Caller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*ERC20Caller) Balances

func (_ERC20 *ERC20Caller) Balances(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

Solidity: function balances( address) constant returns(uint256)

func (*ERC20Caller) Decimals

func (_ERC20 *ERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*ERC20Caller) Name

func (_ERC20 *ERC20Caller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*ERC20Caller) Symbol

func (_ERC20 *ERC20Caller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*ERC20Caller) TotalSupply

func (_ERC20 *ERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20CallerRaw

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

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

func (*ERC20CallerRaw) Call

func (_ERC20 *ERC20CallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ERC20CallerSession

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

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

func (*ERC20CallerSession) Allowance

func (_ERC20 *ERC20CallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)

func (*ERC20CallerSession) Allowed

func (_ERC20 *ERC20CallerSession) Allowed(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowed is a free data retrieval call binding the contract method 0x5c658165.

Solidity: function allowed( address, address) constant returns(uint256)

func (*ERC20CallerSession) BalanceOf

func (_ERC20 *ERC20CallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*ERC20CallerSession) Balances

func (_ERC20 *ERC20CallerSession) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

Solidity: function balances( address) constant returns(uint256)

func (*ERC20CallerSession) Decimals

func (_ERC20 *ERC20CallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*ERC20CallerSession) Name

func (_ERC20 *ERC20CallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*ERC20CallerSession) Symbol

func (_ERC20 *ERC20CallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*ERC20CallerSession) TotalSupply

func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20Filterer

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

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

func NewERC20Filterer

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

NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.

func (*ERC20Filterer) FilterApproval

func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*ERC20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: e Approval(_owner indexed address, _spender indexed address, _value uint256)

func (*ERC20Filterer) FilterTransfer

func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*ERC20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: e Transfer(_from indexed address, _to indexed address, _value uint256)

func (*ERC20Filterer) WatchApproval

func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, _owner []common.Address, _spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: e Approval(_owner indexed address, _spender indexed address, _value uint256)

func (*ERC20Filterer) WatchTransfer

func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, _from []common.Address, _to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: e Transfer(_from indexed address, _to indexed address, _value uint256)

type ERC20Interface

type ERC20Interface struct {
	ERC20InterfaceCaller     // Read-only binding to the contract
	ERC20InterfaceTransactor // Write-only binding to the contract
	ERC20InterfaceFilterer   // Log filterer for contract events
}

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

func DeployERC20Interface

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

DeployERC20Interface deploys a new Ethereum contract, binding an instance of ERC20Interface to it.

func NewERC20Interface

func NewERC20Interface(address common.Address, backend bind.ContractBackend) (*ERC20Interface, error)

NewERC20Interface creates a new instance of ERC20Interface, bound to a specific deployed contract.

type ERC20InterfaceApproval

type ERC20InterfaceApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

ERC20InterfaceApproval represents a Approval event raised by the ERC20Interface contract.

type ERC20InterfaceApprovalIterator

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

ERC20InterfaceApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the ERC20Interface contract.

func (*ERC20InterfaceApprovalIterator) Close

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

func (*ERC20InterfaceApprovalIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20InterfaceApprovalIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ERC20InterfaceCaller

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

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

func NewERC20InterfaceCaller

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

NewERC20InterfaceCaller creates a new read-only instance of ERC20Interface, bound to a specific deployed contract.

func (*ERC20InterfaceCaller) Allowance

func (_ERC20Interface *ERC20InterfaceCaller) Allowance(opts *bind.CallOpts, _owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)

func (*ERC20InterfaceCaller) BalanceOf

func (_ERC20Interface *ERC20InterfaceCaller) BalanceOf(opts *bind.CallOpts, _owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*ERC20InterfaceCaller) TotalSupply

func (_ERC20Interface *ERC20InterfaceCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20InterfaceCallerRaw

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

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

func (*ERC20InterfaceCallerRaw) Call

func (_ERC20Interface *ERC20InterfaceCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type ERC20InterfaceCallerSession

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

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

func (*ERC20InterfaceCallerSession) Allowance

func (_ERC20Interface *ERC20InterfaceCallerSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)

func (*ERC20InterfaceCallerSession) BalanceOf

func (_ERC20Interface *ERC20InterfaceCallerSession) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*ERC20InterfaceCallerSession) TotalSupply

func (_ERC20Interface *ERC20InterfaceCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

type ERC20InterfaceFilterer

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

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

func NewERC20InterfaceFilterer

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

NewERC20InterfaceFilterer creates a new log filterer instance of ERC20Interface, bound to a specific deployed contract.

func (*ERC20InterfaceFilterer) FilterApproval

func (_ERC20Interface *ERC20InterfaceFilterer) FilterApproval(opts *bind.FilterOpts, _owner []common.Address, _spender []common.Address) (*ERC20InterfaceApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: e Approval(_owner indexed address, _spender indexed address, _value uint256)

func (*ERC20InterfaceFilterer) FilterTransfer

func (_ERC20Interface *ERC20InterfaceFilterer) FilterTransfer(opts *bind.FilterOpts, _from []common.Address, _to []common.Address) (*ERC20InterfaceTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: e Transfer(_from indexed address, _to indexed address, _value uint256)

func (*ERC20InterfaceFilterer) WatchApproval

func (_ERC20Interface *ERC20InterfaceFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20InterfaceApproval, _owner []common.Address, _spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: e Approval(_owner indexed address, _spender indexed address, _value uint256)

func (*ERC20InterfaceFilterer) WatchTransfer

func (_ERC20Interface *ERC20InterfaceFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20InterfaceTransfer, _from []common.Address, _to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: e Transfer(_from indexed address, _to indexed address, _value uint256)

type ERC20InterfaceRaw

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

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

func (*ERC20InterfaceRaw) Call

func (_ERC20Interface *ERC20InterfaceRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ERC20InterfaceRaw) Transact

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

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

func (*ERC20InterfaceRaw) Transfer

func (_ERC20Interface *ERC20InterfaceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20InterfaceSession

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

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

func (*ERC20InterfaceSession) Allowance

func (_ERC20Interface *ERC20InterfaceSession) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)

func (*ERC20InterfaceSession) Approve

func (_ERC20Interface *ERC20InterfaceSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(_spender address, _value uint256) returns(success bool)

func (*ERC20InterfaceSession) BalanceOf

func (_ERC20Interface *ERC20InterfaceSession) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*ERC20InterfaceSession) TotalSupply

func (_ERC20Interface *ERC20InterfaceSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*ERC20InterfaceSession) Transfer

func (_ERC20Interface *ERC20InterfaceSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(_to address, _value uint256) returns(success bool)

func (*ERC20InterfaceSession) TransferFrom

func (_ERC20Interface *ERC20InterfaceSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)

type ERC20InterfaceTransactor

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

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

func NewERC20InterfaceTransactor

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

NewERC20InterfaceTransactor creates a new write-only instance of ERC20Interface, bound to a specific deployed contract.

func (*ERC20InterfaceTransactor) Approve

func (_ERC20Interface *ERC20InterfaceTransactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(_spender address, _value uint256) returns(success bool)

func (*ERC20InterfaceTransactor) Transfer

func (_ERC20Interface *ERC20InterfaceTransactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(_to address, _value uint256) returns(success bool)

func (*ERC20InterfaceTransactor) TransferFrom

func (_ERC20Interface *ERC20InterfaceTransactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)

type ERC20InterfaceTransactorRaw

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

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

func (*ERC20InterfaceTransactorRaw) Transact

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

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

func (*ERC20InterfaceTransactorRaw) Transfer

func (_ERC20Interface *ERC20InterfaceTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20InterfaceTransactorSession

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

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

func (*ERC20InterfaceTransactorSession) Approve

func (_ERC20Interface *ERC20InterfaceTransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(_spender address, _value uint256) returns(success bool)

func (*ERC20InterfaceTransactorSession) Transfer

func (_ERC20Interface *ERC20InterfaceTransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(_to address, _value uint256) returns(success bool)

func (*ERC20InterfaceTransactorSession) TransferFrom

func (_ERC20Interface *ERC20InterfaceTransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)

type ERC20InterfaceTransfer

type ERC20InterfaceTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ERC20InterfaceTransfer represents a Transfer event raised by the ERC20Interface contract.

type ERC20InterfaceTransferIterator

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

ERC20InterfaceTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20Interface contract.

func (*ERC20InterfaceTransferIterator) Close

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

func (*ERC20InterfaceTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20InterfaceTransferIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ERC20Raw

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

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

func (*ERC20Raw) Call

func (_ERC20 *ERC20Raw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*ERC20Raw) Transact

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

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

func (*ERC20Raw) Transfer

func (_ERC20 *ERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20Session

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

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

func (*ERC20Session) Allowance

func (_ERC20 *ERC20Session) Allowance(_owner common.Address, _spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(_owner address, _spender address) constant returns(remaining uint256)

func (*ERC20Session) Allowed

func (_ERC20 *ERC20Session) Allowed(arg0 common.Address, arg1 common.Address) (*big.Int, error)

Allowed is a free data retrieval call binding the contract method 0x5c658165.

Solidity: function allowed( address, address) constant returns(uint256)

func (*ERC20Session) Approve

func (_ERC20 *ERC20Session) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(_spender address, _value uint256) returns(success bool)

func (*ERC20Session) BalanceOf

func (_ERC20 *ERC20Session) BalanceOf(_owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(_owner address) constant returns(balance uint256)

func (*ERC20Session) Balances

func (_ERC20 *ERC20Session) Balances(arg0 common.Address) (*big.Int, error)

Balances is a free data retrieval call binding the contract method 0x27e235e3.

Solidity: function balances( address) constant returns(uint256)

func (*ERC20Session) Decimals

func (_ERC20 *ERC20Session) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() constant returns(uint8)

func (*ERC20Session) Name

func (_ERC20 *ERC20Session) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() constant returns(string)

func (*ERC20Session) Symbol

func (_ERC20 *ERC20Session) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() constant returns(string)

func (*ERC20Session) TotalSupply

func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*ERC20Session) Transfer

func (_ERC20 *ERC20Session) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(_to address, _value uint256) returns(success bool)

func (*ERC20Session) TransferFrom

func (_ERC20 *ERC20Session) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)

type ERC20Transactor

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

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

func NewERC20Transactor

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

NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Transactor) Approve

func (_ERC20 *ERC20Transactor) Approve(opts *bind.TransactOpts, _spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(_spender address, _value uint256) returns(success bool)

func (*ERC20Transactor) Transfer

func (_ERC20 *ERC20Transactor) Transfer(opts *bind.TransactOpts, _to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(_to address, _value uint256) returns(success bool)

func (*ERC20Transactor) TransferFrom

func (_ERC20 *ERC20Transactor) TransferFrom(opts *bind.TransactOpts, _from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)

type ERC20TransactorRaw

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

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

func (*ERC20TransactorRaw) Transact

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

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

func (*ERC20TransactorRaw) Transfer

func (_ERC20 *ERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type ERC20TransactorSession

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

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

func (*ERC20TransactorSession) Approve

func (_ERC20 *ERC20TransactorSession) Approve(_spender common.Address, _value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(_spender address, _value uint256) returns(success bool)

func (*ERC20TransactorSession) Transfer

func (_ERC20 *ERC20TransactorSession) Transfer(_to common.Address, _value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(_to address, _value uint256) returns(success bool)

func (*ERC20TransactorSession) TransferFrom

func (_ERC20 *ERC20TransactorSession) TransferFrom(_from common.Address, _to common.Address, _value *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(_from address, _to address, _value uint256) returns(success bool)

type ERC20Transfer

type ERC20Transfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

ERC20Transfer represents a Transfer event raised by the ERC20 contract.

type ERC20TransferIterator

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

ERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the ERC20 contract.

func (*ERC20TransferIterator) Close

func (it *ERC20TransferIterator) Close() error

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

func (*ERC20TransferIterator) Error

func (it *ERC20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TransferIterator) Next

func (it *ERC20TransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type EthClient

type EthClient struct {
	// init by NewEthClient
	Client     *ethclient.Client
	Transactor *eth.Transactor
	Signer     eth.Signer
	Address    Addr

	// init by SetContracts
	DPoSAddress   Addr
	DPoS          *DPoS
	SGNAddress    Addr
	SGN           *SGN
	LedgerAddress Addr
	Ledger        *CelerLedger
}

func NewEthClient

func NewEthClient(
	ethurl string,
	ksfile string,
	passphrase string,
	tconfig *TransactorConfig,
	dposAddrStr string,
	sgnAddrStr string,
	ledgerAddrStr string) (*EthClient, error)

func (*EthClient) CheckVotingPower added in v0.2.3

func (ethClient *EthClient) CheckVotingPower(addrs []Addr) (*big.Int, *big.Int, *big.Int, error)

return checkedStakes, totalStakes, quorumStakes

func (*EthClient) GetParamProposal added in v0.2.5

func (ethClient *EthClient) GetParamProposal(id int64) (*ParamProposal, error)

func (*EthClient) GetParamProposalVote added in v0.2.5

func (ethClient *EthClient) GetParamProposalVote(id int64, voter Addr) (uint8, error)

func (*EthClient) GetParamProposalVotes added in v0.2.5

func (ethClient *EthClient) GetParamProposalVotes(id int64) (
	yesVoters []Addr, noVoters []Addr, yesStakes, totalStakes, quorumStakes *big.Int, err error)

func (*EthClient) GetUIntValue added in v0.2.5

func (ethClient *EthClient) GetUIntValue(paramId uint64) (*big.Int, error)

func (*EthClient) GetValidators added in v0.2.3

func (ethClient *EthClient) GetValidators() (map[Addr]*ValidatorInfo, *big.Int, *big.Int, error)

return validators, totalStakes, quorumStakes

func (*EthClient) SignEthMessage added in v0.2.0

func (ethClient *EthClient) SignEthMessage(data []byte) ([]byte, error)

type HashType

type HashType = ec.Hash

HashType is the type for ethereum hash type

func Bytes2Hash

func Bytes2Hash(b []byte) HashType

Bytes2Hash converts bytes to HashType

func GetEventSignature

func GetEventSignature(eventSigStr string) HashType

GetEventSignature accepts the string of an event signature and return the hex

func Hex2Hash

func Hex2Hash(s string) HashType

Hex2Hash accepts hex string with or without 0x prefix and return HashType

type ParamProposal added in v0.2.5

type ParamProposal struct {
	Proposer     Addr
	Deposit      *big.Int
	VoteDeadline *big.Int
	Record       *big.Int
	NewValue     *big.Int
	Status       uint8
}

type SGN added in v0.2.0

type SGN struct {
	SGNCaller     // Read-only binding to the contract
	SGNTransactor // Write-only binding to the contract
	SGNFilterer   // Log filterer for contract events
}

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

func DeploySGN added in v0.2.0

func DeploySGN(auth *bind.TransactOpts, backend bind.ContractBackend, _celerTokenAddress common.Address, _DPoSAddress common.Address) (common.Address, *types.Transaction, *SGN, error)

DeploySGN deploys a new Ethereum contract, binding an instance of SGN to it.

func NewSGN added in v0.2.0

func NewSGN(address common.Address, backend bind.ContractBackend) (*SGN, error)

NewSGN creates a new instance of SGN, bound to a specific deployed contract.

type SGNAddSubscriptionBalance added in v0.2.0

type SGNAddSubscriptionBalance struct {
	Consumer common.Address
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

SGNAddSubscriptionBalance represents a AddSubscriptionBalance event raised by the SGN contract.

type SGNAddSubscriptionBalanceIterator added in v0.2.0

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

SGNAddSubscriptionBalanceIterator is returned from FilterAddSubscriptionBalance and is used to iterate over the raw logs and unpacked data for AddSubscriptionBalance events raised by the SGN contract.

func (*SGNAddSubscriptionBalanceIterator) Close added in v0.2.0

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

func (*SGNAddSubscriptionBalanceIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SGNAddSubscriptionBalanceIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SGNCaller added in v0.2.0

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

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

func NewSGNCaller added in v0.2.0

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

NewSGNCaller creates a new read-only instance of SGN, bound to a specific deployed contract.

func (*SGNCaller) CelerToken added in v0.2.0

func (_SGN *SGNCaller) CelerToken(opts *bind.CallOpts) (common.Address, error)

CelerToken is a free data retrieval call binding the contract method 0xc6c21e9d.

Solidity: function celerToken() view returns(address)

func (*SGNCaller) DPoSContract added in v0.2.0

func (_SGN *SGNCaller) DPoSContract(opts *bind.CallOpts) (common.Address, error)

DPoSContract is a free data retrieval call binding the contract method 0x291a3eb2.

Solidity: function dPoSContract() view returns(address)

func (*SGNCaller) IsOwner added in v0.2.2

func (_SGN *SGNCaller) IsOwner(opts *bind.CallOpts) (bool, error)

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

Solidity: function isOwner() view returns(bool)

func (*SGNCaller) IsPauser added in v0.2.2

func (_SGN *SGNCaller) IsPauser(opts *bind.CallOpts, account common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

Solidity: function isPauser(address account) view returns(bool)

func (*SGNCaller) Owner added in v0.2.2

func (_SGN *SGNCaller) Owner(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SGNCaller) Paused added in v0.2.2

func (_SGN *SGNCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*SGNCaller) RedeemedServiceReward added in v0.2.0

func (_SGN *SGNCaller) RedeemedServiceReward(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

RedeemedServiceReward is a free data retrieval call binding the contract method 0xc57f6661.

Solidity: function redeemedServiceReward(address ) view returns(uint256)

func (*SGNCaller) ServicePool added in v0.2.0

func (_SGN *SGNCaller) ServicePool(opts *bind.CallOpts) (*big.Int, error)

ServicePool is a free data retrieval call binding the contract method 0xe42a06c8.

Solidity: function servicePool() view returns(uint256)

func (*SGNCaller) SidechainAddrMap added in v0.2.0

func (_SGN *SGNCaller) SidechainAddrMap(opts *bind.CallOpts, arg0 common.Address) ([]byte, error)

SidechainAddrMap is a free data retrieval call binding the contract method 0xe27b4110.

Solidity: function sidechainAddrMap(address ) view returns(bytes)

func (*SGNCaller) SubscriptionDeposits added in v0.2.0

func (_SGN *SGNCaller) SubscriptionDeposits(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

SubscriptionDeposits is a free data retrieval call binding the contract method 0x1e77733a.

Solidity: function subscriptionDeposits(address ) view returns(uint256)

type SGNCallerRaw added in v0.2.0

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

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

func (*SGNCallerRaw) Call added in v0.2.0

func (_SGN *SGNCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type SGNCallerSession added in v0.2.0

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

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

func (*SGNCallerSession) CelerToken added in v0.2.0

func (_SGN *SGNCallerSession) CelerToken() (common.Address, error)

CelerToken is a free data retrieval call binding the contract method 0xc6c21e9d.

Solidity: function celerToken() view returns(address)

func (*SGNCallerSession) DPoSContract added in v0.2.0

func (_SGN *SGNCallerSession) DPoSContract() (common.Address, error)

DPoSContract is a free data retrieval call binding the contract method 0x291a3eb2.

Solidity: function dPoSContract() view returns(address)

func (*SGNCallerSession) IsOwner added in v0.2.2

func (_SGN *SGNCallerSession) IsOwner() (bool, error)

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

Solidity: function isOwner() view returns(bool)

func (*SGNCallerSession) IsPauser added in v0.2.2

func (_SGN *SGNCallerSession) IsPauser(account common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

Solidity: function isPauser(address account) view returns(bool)

func (*SGNCallerSession) Owner added in v0.2.2

func (_SGN *SGNCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SGNCallerSession) Paused added in v0.2.2

func (_SGN *SGNCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*SGNCallerSession) RedeemedServiceReward added in v0.2.0

func (_SGN *SGNCallerSession) RedeemedServiceReward(arg0 common.Address) (*big.Int, error)

RedeemedServiceReward is a free data retrieval call binding the contract method 0xc57f6661.

Solidity: function redeemedServiceReward(address ) view returns(uint256)

func (*SGNCallerSession) ServicePool added in v0.2.0

func (_SGN *SGNCallerSession) ServicePool() (*big.Int, error)

ServicePool is a free data retrieval call binding the contract method 0xe42a06c8.

Solidity: function servicePool() view returns(uint256)

func (*SGNCallerSession) SidechainAddrMap added in v0.2.0

func (_SGN *SGNCallerSession) SidechainAddrMap(arg0 common.Address) ([]byte, error)

SidechainAddrMap is a free data retrieval call binding the contract method 0xe27b4110.

Solidity: function sidechainAddrMap(address ) view returns(bytes)

func (*SGNCallerSession) SubscriptionDeposits added in v0.2.0

func (_SGN *SGNCallerSession) SubscriptionDeposits(arg0 common.Address) (*big.Int, error)

SubscriptionDeposits is a free data retrieval call binding the contract method 0x1e77733a.

Solidity: function subscriptionDeposits(address ) view returns(uint256)

type SGNFilterer added in v0.2.0

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

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

func NewSGNFilterer added in v0.2.0

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

NewSGNFilterer creates a new log filterer instance of SGN, bound to a specific deployed contract.

func (*SGNFilterer) FilterAddSubscriptionBalance added in v0.2.0

func (_SGN *SGNFilterer) FilterAddSubscriptionBalance(opts *bind.FilterOpts, consumer []common.Address) (*SGNAddSubscriptionBalanceIterator, error)

FilterAddSubscriptionBalance is a free log retrieval operation binding the contract event 0xac095ced75d400384d8404a37883183a56b937b8ff8195fa0c52c3ccc8bb8a49.

Solidity: event AddSubscriptionBalance(address indexed consumer, uint256 amount)

func (*SGNFilterer) FilterOwnershipTransferred added in v0.2.2

func (_SGN *SGNFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SGNOwnershipTransferredIterator, error)

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

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

func (*SGNFilterer) FilterPaused added in v0.2.2

func (_SGN *SGNFilterer) FilterPaused(opts *bind.FilterOpts) (*SGNPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*SGNFilterer) FilterPauserAdded added in v0.2.2

func (_SGN *SGNFilterer) FilterPauserAdded(opts *bind.FilterOpts, account []common.Address) (*SGNPauserAddedIterator, error)

FilterPauserAdded is a free log retrieval operation binding the contract event 0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8.

Solidity: event PauserAdded(address indexed account)

func (*SGNFilterer) FilterPauserRemoved added in v0.2.2

func (_SGN *SGNFilterer) FilterPauserRemoved(opts *bind.FilterOpts, account []common.Address) (*SGNPauserRemovedIterator, error)

FilterPauserRemoved is a free log retrieval operation binding the contract event 0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e.

Solidity: event PauserRemoved(address indexed account)

func (*SGNFilterer) FilterRedeemReward added in v0.2.0

func (_SGN *SGNFilterer) FilterRedeemReward(opts *bind.FilterOpts, receiver []common.Address) (*SGNRedeemRewardIterator, error)

FilterRedeemReward is a free log retrieval operation binding the contract event 0x09251621f2e88c5e7f8df91fe1d9e9a70610e20e122945470fddd48af0510426.

Solidity: event RedeemReward(address indexed receiver, uint256 cumulativeMiningReward, uint256 serviceReward, uint256 servicePool)

func (*SGNFilterer) FilterUnpaused added in v0.2.2

func (_SGN *SGNFilterer) FilterUnpaused(opts *bind.FilterOpts) (*SGNUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*SGNFilterer) FilterUpdateSidechainAddr added in v0.2.0

func (_SGN *SGNFilterer) FilterUpdateSidechainAddr(opts *bind.FilterOpts, candidate []common.Address, oldSidechainAddr [][]byte, newSidechainAddr [][]byte) (*SGNUpdateSidechainAddrIterator, error)

FilterUpdateSidechainAddr is a free log retrieval operation binding the contract event 0x16de3299ab034ce7e21b22d55f4f9a1474bd3c4d20dbd1cc9bcd39c1ad3d5a2c.

Solidity: event UpdateSidechainAddr(address indexed candidate, bytes indexed oldSidechainAddr, bytes indexed newSidechainAddr)

func (*SGNFilterer) ParseAddSubscriptionBalance added in v0.2.0

func (_SGN *SGNFilterer) ParseAddSubscriptionBalance(log types.Log) (*SGNAddSubscriptionBalance, error)

ParseAddSubscriptionBalance is a log parse operation binding the contract event 0xac095ced75d400384d8404a37883183a56b937b8ff8195fa0c52c3ccc8bb8a49.

Solidity: event AddSubscriptionBalance(address indexed consumer, uint256 amount)

func (*SGNFilterer) ParseOwnershipTransferred added in v0.2.2

func (_SGN *SGNFilterer) ParseOwnershipTransferred(log types.Log) (*SGNOwnershipTransferred, error)

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

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

func (*SGNFilterer) ParsePaused added in v0.2.2

func (_SGN *SGNFilterer) ParsePaused(log types.Log) (*SGNPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*SGNFilterer) ParsePauserAdded added in v0.2.2

func (_SGN *SGNFilterer) ParsePauserAdded(log types.Log) (*SGNPauserAdded, error)

ParsePauserAdded is a log parse operation binding the contract event 0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8.

Solidity: event PauserAdded(address indexed account)

func (*SGNFilterer) ParsePauserRemoved added in v0.2.2

func (_SGN *SGNFilterer) ParsePauserRemoved(log types.Log) (*SGNPauserRemoved, error)

ParsePauserRemoved is a log parse operation binding the contract event 0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e.

Solidity: event PauserRemoved(address indexed account)

func (*SGNFilterer) ParseRedeemReward added in v0.2.0

func (_SGN *SGNFilterer) ParseRedeemReward(log types.Log) (*SGNRedeemReward, error)

ParseRedeemReward is a log parse operation binding the contract event 0x09251621f2e88c5e7f8df91fe1d9e9a70610e20e122945470fddd48af0510426.

Solidity: event RedeemReward(address indexed receiver, uint256 cumulativeMiningReward, uint256 serviceReward, uint256 servicePool)

func (*SGNFilterer) ParseUnpaused added in v0.2.2

func (_SGN *SGNFilterer) ParseUnpaused(log types.Log) (*SGNUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*SGNFilterer) ParseUpdateSidechainAddr added in v0.2.0

func (_SGN *SGNFilterer) ParseUpdateSidechainAddr(log types.Log) (*SGNUpdateSidechainAddr, error)

ParseUpdateSidechainAddr is a log parse operation binding the contract event 0x16de3299ab034ce7e21b22d55f4f9a1474bd3c4d20dbd1cc9bcd39c1ad3d5a2c.

Solidity: event UpdateSidechainAddr(address indexed candidate, bytes indexed oldSidechainAddr, bytes indexed newSidechainAddr)

func (*SGNFilterer) WatchAddSubscriptionBalance added in v0.2.0

func (_SGN *SGNFilterer) WatchAddSubscriptionBalance(opts *bind.WatchOpts, sink chan<- *SGNAddSubscriptionBalance, consumer []common.Address) (event.Subscription, error)

WatchAddSubscriptionBalance is a free log subscription operation binding the contract event 0xac095ced75d400384d8404a37883183a56b937b8ff8195fa0c52c3ccc8bb8a49.

Solidity: event AddSubscriptionBalance(address indexed consumer, uint256 amount)

func (*SGNFilterer) WatchOwnershipTransferred added in v0.2.2

func (_SGN *SGNFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SGNOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

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

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

func (*SGNFilterer) WatchPaused added in v0.2.2

func (_SGN *SGNFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *SGNPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*SGNFilterer) WatchPauserAdded added in v0.2.2

func (_SGN *SGNFilterer) WatchPauserAdded(opts *bind.WatchOpts, sink chan<- *SGNPauserAdded, account []common.Address) (event.Subscription, error)

WatchPauserAdded is a free log subscription operation binding the contract event 0x6719d08c1888103bea251a4ed56406bd0c3e69723c8a1686e017e7bbe159b6f8.

Solidity: event PauserAdded(address indexed account)

func (*SGNFilterer) WatchPauserRemoved added in v0.2.2

func (_SGN *SGNFilterer) WatchPauserRemoved(opts *bind.WatchOpts, sink chan<- *SGNPauserRemoved, account []common.Address) (event.Subscription, error)

WatchPauserRemoved is a free log subscription operation binding the contract event 0xcd265ebaf09df2871cc7bd4133404a235ba12eff2041bb89d9c714a2621c7c7e.

Solidity: event PauserRemoved(address indexed account)

func (*SGNFilterer) WatchRedeemReward added in v0.2.0

func (_SGN *SGNFilterer) WatchRedeemReward(opts *bind.WatchOpts, sink chan<- *SGNRedeemReward, receiver []common.Address) (event.Subscription, error)

WatchRedeemReward is a free log subscription operation binding the contract event 0x09251621f2e88c5e7f8df91fe1d9e9a70610e20e122945470fddd48af0510426.

Solidity: event RedeemReward(address indexed receiver, uint256 cumulativeMiningReward, uint256 serviceReward, uint256 servicePool)

func (*SGNFilterer) WatchUnpaused added in v0.2.2

func (_SGN *SGNFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *SGNUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*SGNFilterer) WatchUpdateSidechainAddr added in v0.2.0

func (_SGN *SGNFilterer) WatchUpdateSidechainAddr(opts *bind.WatchOpts, sink chan<- *SGNUpdateSidechainAddr, candidate []common.Address, oldSidechainAddr [][]byte, newSidechainAddr [][]byte) (event.Subscription, error)

WatchUpdateSidechainAddr is a free log subscription operation binding the contract event 0x16de3299ab034ce7e21b22d55f4f9a1474bd3c4d20dbd1cc9bcd39c1ad3d5a2c.

Solidity: event UpdateSidechainAddr(address indexed candidate, bytes indexed oldSidechainAddr, bytes indexed newSidechainAddr)

type SGNOwnershipTransferred added in v0.2.2

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

SGNOwnershipTransferred represents a OwnershipTransferred event raised by the SGN contract.

type SGNOwnershipTransferredIterator added in v0.2.2

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

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

func (*SGNOwnershipTransferredIterator) Close added in v0.2.2

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

func (*SGNOwnershipTransferredIterator) Error added in v0.2.2

Error returns any retrieval or parsing error occurred during filtering.

func (*SGNOwnershipTransferredIterator) Next added in v0.2.2

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SGNPaused added in v0.2.2

type SGNPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

SGNPaused represents a Paused event raised by the SGN contract.

type SGNPausedIterator added in v0.2.2

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

SGNPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the SGN contract.

func (*SGNPausedIterator) Close added in v0.2.2

func (it *SGNPausedIterator) Close() error

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

func (*SGNPausedIterator) Error added in v0.2.2

func (it *SGNPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SGNPausedIterator) Next added in v0.2.2

func (it *SGNPausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SGNPauserAdded added in v0.2.2

type SGNPauserAdded struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

SGNPauserAdded represents a PauserAdded event raised by the SGN contract.

type SGNPauserAddedIterator added in v0.2.2

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

SGNPauserAddedIterator is returned from FilterPauserAdded and is used to iterate over the raw logs and unpacked data for PauserAdded events raised by the SGN contract.

func (*SGNPauserAddedIterator) Close added in v0.2.2

func (it *SGNPauserAddedIterator) Close() error

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

func (*SGNPauserAddedIterator) Error added in v0.2.2

func (it *SGNPauserAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SGNPauserAddedIterator) Next added in v0.2.2

func (it *SGNPauserAddedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SGNPauserRemoved added in v0.2.2

type SGNPauserRemoved struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

SGNPauserRemoved represents a PauserRemoved event raised by the SGN contract.

type SGNPauserRemovedIterator added in v0.2.2

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

SGNPauserRemovedIterator is returned from FilterPauserRemoved and is used to iterate over the raw logs and unpacked data for PauserRemoved events raised by the SGN contract.

func (*SGNPauserRemovedIterator) Close added in v0.2.2

func (it *SGNPauserRemovedIterator) Close() error

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

func (*SGNPauserRemovedIterator) Error added in v0.2.2

func (it *SGNPauserRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SGNPauserRemovedIterator) Next added in v0.2.2

func (it *SGNPauserRemovedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SGNRaw added in v0.2.0

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

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

func (*SGNRaw) Call added in v0.2.0

func (_SGN *SGNRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*SGNRaw) Transact added in v0.2.0

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

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

func (*SGNRaw) Transfer added in v0.2.0

func (_SGN *SGNRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SGNRedeemReward added in v0.2.0

type SGNRedeemReward struct {
	Receiver               common.Address
	CumulativeMiningReward *big.Int
	ServiceReward          *big.Int
	ServicePool            *big.Int
	Raw                    types.Log // Blockchain specific contextual infos
}

SGNRedeemReward represents a RedeemReward event raised by the SGN contract.

type SGNRedeemRewardIterator added in v0.2.0

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

SGNRedeemRewardIterator is returned from FilterRedeemReward and is used to iterate over the raw logs and unpacked data for RedeemReward events raised by the SGN contract.

func (*SGNRedeemRewardIterator) Close added in v0.2.0

func (it *SGNRedeemRewardIterator) Close() error

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

func (*SGNRedeemRewardIterator) Error added in v0.2.0

func (it *SGNRedeemRewardIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SGNRedeemRewardIterator) Next added in v0.2.0

func (it *SGNRedeemRewardIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SGNSession added in v0.2.0

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

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

func (*SGNSession) AddPauser added in v0.2.2

func (_SGN *SGNSession) AddPauser(account common.Address) (*types.Transaction, error)

AddPauser is a paid mutator transaction binding the contract method 0x82dc1ec4.

Solidity: function addPauser(address account) returns()

func (*SGNSession) CelerToken added in v0.2.0

func (_SGN *SGNSession) CelerToken() (common.Address, error)

CelerToken is a free data retrieval call binding the contract method 0xc6c21e9d.

Solidity: function celerToken() view returns(address)

func (*SGNSession) DPoSContract added in v0.2.0

func (_SGN *SGNSession) DPoSContract() (common.Address, error)

DPoSContract is a free data retrieval call binding the contract method 0x291a3eb2.

Solidity: function dPoSContract() view returns(address)

func (*SGNSession) DrainToken added in v0.2.2

func (_SGN *SGNSession) DrainToken(_amount *big.Int) (*types.Transaction, error)

DrainToken is a paid mutator transaction binding the contract method 0x145aa116.

Solidity: function drainToken(uint256 _amount) returns()

func (*SGNSession) IsOwner added in v0.2.2

func (_SGN *SGNSession) IsOwner() (bool, error)

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

Solidity: function isOwner() view returns(bool)

func (*SGNSession) IsPauser added in v0.2.2

func (_SGN *SGNSession) IsPauser(account common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

Solidity: function isPauser(address account) view returns(bool)

func (*SGNSession) Owner added in v0.2.2

func (_SGN *SGNSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SGNSession) Pause added in v0.2.2

func (_SGN *SGNSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*SGNSession) Paused added in v0.2.2

func (_SGN *SGNSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*SGNSession) RedeemReward added in v0.2.0

func (_SGN *SGNSession) RedeemReward(_rewardRequest []byte) (*types.Transaction, error)

RedeemReward is a paid mutator transaction binding the contract method 0x73a6e450.

Solidity: function redeemReward(bytes _rewardRequest) returns()

func (*SGNSession) RedeemedServiceReward added in v0.2.0

func (_SGN *SGNSession) RedeemedServiceReward(arg0 common.Address) (*big.Int, error)

RedeemedServiceReward is a free data retrieval call binding the contract method 0xc57f6661.

Solidity: function redeemedServiceReward(address ) view returns(uint256)

func (*SGNSession) RenounceOwnership added in v0.2.2

func (_SGN *SGNSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SGNSession) RenouncePauser added in v0.2.2

func (_SGN *SGNSession) RenouncePauser() (*types.Transaction, error)

RenouncePauser is a paid mutator transaction binding the contract method 0x6ef8d66d.

Solidity: function renouncePauser() returns()

func (*SGNSession) ServicePool added in v0.2.0

func (_SGN *SGNSession) ServicePool() (*big.Int, error)

ServicePool is a free data retrieval call binding the contract method 0xe42a06c8.

Solidity: function servicePool() view returns(uint256)

func (*SGNSession) SidechainAddrMap added in v0.2.0

func (_SGN *SGNSession) SidechainAddrMap(arg0 common.Address) ([]byte, error)

SidechainAddrMap is a free data retrieval call binding the contract method 0xe27b4110.

Solidity: function sidechainAddrMap(address ) view returns(bytes)

func (*SGNSession) Subscribe added in v0.2.0

func (_SGN *SGNSession) Subscribe(_amount *big.Int) (*types.Transaction, error)

Subscribe is a paid mutator transaction binding the contract method 0x0f574ba7.

Solidity: function subscribe(uint256 _amount) returns()

func (*SGNSession) SubscriptionDeposits added in v0.2.0

func (_SGN *SGNSession) SubscriptionDeposits(arg0 common.Address) (*big.Int, error)

SubscriptionDeposits is a free data retrieval call binding the contract method 0x1e77733a.

Solidity: function subscriptionDeposits(address ) view returns(uint256)

func (*SGNSession) TransferOwnership added in v0.2.2

func (_SGN *SGNSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*SGNSession) Unpause added in v0.2.2

func (_SGN *SGNSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*SGNSession) UpdateSidechainAddr added in v0.2.0

func (_SGN *SGNSession) UpdateSidechainAddr(_sidechainAddr []byte) (*types.Transaction, error)

UpdateSidechainAddr is a paid mutator transaction binding the contract method 0xe02f39bd.

Solidity: function updateSidechainAddr(bytes _sidechainAddr) returns()

type SGNTransactor added in v0.2.0

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

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

func NewSGNTransactor added in v0.2.0

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

NewSGNTransactor creates a new write-only instance of SGN, bound to a specific deployed contract.

func (*SGNTransactor) AddPauser added in v0.2.2

func (_SGN *SGNTransactor) AddPauser(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

AddPauser is a paid mutator transaction binding the contract method 0x82dc1ec4.

Solidity: function addPauser(address account) returns()

func (*SGNTransactor) DrainToken added in v0.2.2

func (_SGN *SGNTransactor) DrainToken(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)

DrainToken is a paid mutator transaction binding the contract method 0x145aa116.

Solidity: function drainToken(uint256 _amount) returns()

func (*SGNTransactor) Pause added in v0.2.2

func (_SGN *SGNTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*SGNTransactor) RedeemReward added in v0.2.0

func (_SGN *SGNTransactor) RedeemReward(opts *bind.TransactOpts, _rewardRequest []byte) (*types.Transaction, error)

RedeemReward is a paid mutator transaction binding the contract method 0x73a6e450.

Solidity: function redeemReward(bytes _rewardRequest) returns()

func (*SGNTransactor) RenounceOwnership added in v0.2.2

func (_SGN *SGNTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SGNTransactor) RenouncePauser added in v0.2.2

func (_SGN *SGNTransactor) RenouncePauser(opts *bind.TransactOpts) (*types.Transaction, error)

RenouncePauser is a paid mutator transaction binding the contract method 0x6ef8d66d.

Solidity: function renouncePauser() returns()

func (*SGNTransactor) Subscribe added in v0.2.0

func (_SGN *SGNTransactor) Subscribe(opts *bind.TransactOpts, _amount *big.Int) (*types.Transaction, error)

Subscribe is a paid mutator transaction binding the contract method 0x0f574ba7.

Solidity: function subscribe(uint256 _amount) returns()

func (*SGNTransactor) TransferOwnership added in v0.2.2

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

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

Solidity: function transferOwnership(address newOwner) returns()

func (*SGNTransactor) Unpause added in v0.2.2

func (_SGN *SGNTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*SGNTransactor) UpdateSidechainAddr added in v0.2.0

func (_SGN *SGNTransactor) UpdateSidechainAddr(opts *bind.TransactOpts, _sidechainAddr []byte) (*types.Transaction, error)

UpdateSidechainAddr is a paid mutator transaction binding the contract method 0xe02f39bd.

Solidity: function updateSidechainAddr(bytes _sidechainAddr) returns()

type SGNTransactorRaw added in v0.2.0

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

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

func (*SGNTransactorRaw) Transact added in v0.2.0

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

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

func (*SGNTransactorRaw) Transfer added in v0.2.0

func (_SGN *SGNTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type SGNTransactorSession added in v0.2.0

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

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

func (*SGNTransactorSession) AddPauser added in v0.2.2

func (_SGN *SGNTransactorSession) AddPauser(account common.Address) (*types.Transaction, error)

AddPauser is a paid mutator transaction binding the contract method 0x82dc1ec4.

Solidity: function addPauser(address account) returns()

func (*SGNTransactorSession) DrainToken added in v0.2.2

func (_SGN *SGNTransactorSession) DrainToken(_amount *big.Int) (*types.Transaction, error)

DrainToken is a paid mutator transaction binding the contract method 0x145aa116.

Solidity: function drainToken(uint256 _amount) returns()

func (*SGNTransactorSession) Pause added in v0.2.2

func (_SGN *SGNTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*SGNTransactorSession) RedeemReward added in v0.2.0

func (_SGN *SGNTransactorSession) RedeemReward(_rewardRequest []byte) (*types.Transaction, error)

RedeemReward is a paid mutator transaction binding the contract method 0x73a6e450.

Solidity: function redeemReward(bytes _rewardRequest) returns()

func (*SGNTransactorSession) RenounceOwnership added in v0.2.2

func (_SGN *SGNTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*SGNTransactorSession) RenouncePauser added in v0.2.2

func (_SGN *SGNTransactorSession) RenouncePauser() (*types.Transaction, error)

RenouncePauser is a paid mutator transaction binding the contract method 0x6ef8d66d.

Solidity: function renouncePauser() returns()

func (*SGNTransactorSession) Subscribe added in v0.2.0

func (_SGN *SGNTransactorSession) Subscribe(_amount *big.Int) (*types.Transaction, error)

Subscribe is a paid mutator transaction binding the contract method 0x0f574ba7.

Solidity: function subscribe(uint256 _amount) returns()

func (*SGNTransactorSession) TransferOwnership added in v0.2.2

func (_SGN *SGNTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*SGNTransactorSession) Unpause added in v0.2.2

func (_SGN *SGNTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*SGNTransactorSession) UpdateSidechainAddr added in v0.2.0

func (_SGN *SGNTransactorSession) UpdateSidechainAddr(_sidechainAddr []byte) (*types.Transaction, error)

UpdateSidechainAddr is a paid mutator transaction binding the contract method 0xe02f39bd.

Solidity: function updateSidechainAddr(bytes _sidechainAddr) returns()

type SGNUnpaused added in v0.2.2

type SGNUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

SGNUnpaused represents a Unpaused event raised by the SGN contract.

type SGNUnpausedIterator added in v0.2.2

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

SGNUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the SGN contract.

func (*SGNUnpausedIterator) Close added in v0.2.2

func (it *SGNUnpausedIterator) Close() error

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

func (*SGNUnpausedIterator) Error added in v0.2.2

func (it *SGNUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SGNUnpausedIterator) Next added in v0.2.2

func (it *SGNUnpausedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SGNUpdateSidechainAddr added in v0.2.0

type SGNUpdateSidechainAddr struct {
	Candidate        common.Address
	OldSidechainAddr common.Hash
	NewSidechainAddr common.Hash
	Raw              types.Log // Blockchain specific contextual infos
}

SGNUpdateSidechainAddr represents a UpdateSidechainAddr event raised by the SGN contract.

type SGNUpdateSidechainAddrIterator added in v0.2.0

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

SGNUpdateSidechainAddrIterator is returned from FilterUpdateSidechainAddr and is used to iterate over the raw logs and unpacked data for UpdateSidechainAddr events raised by the SGN contract.

func (*SGNUpdateSidechainAddrIterator) Close added in v0.2.0

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

func (*SGNUpdateSidechainAddrIterator) Error added in v0.2.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SGNUpdateSidechainAddrIterator) Next added in v0.2.0

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type SidechainAddr added in v0.2.0

type SidechainAddr = []byte

SidechainAddr is alias to []byte

type TransactorConfig added in v0.2.0

type TransactorConfig struct {
	BlockDelay           uint64
	BlockPollingInterval uint64
	ChainId              *big.Int
	AddGasPriceGwei      uint64
	MinGasPriceGwei      uint64
}

type ValidatorInfo added in v0.2.3

type ValidatorInfo struct {
	StakingPool     *big.Int
	MinSelfStake    *big.Int
	CommissionRate  *big.Int
	RateLockEndTime *big.Int
}

Jump to

Keyboard shortcuts

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