mainchain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddValidator    = 0
	RemoveValidator = 1

	Unbonded  = 0
	Bonded    = 1
	Unbonding = 2

	TxFailure = 0
	TxSuccess = 1

	// channel status of CelerChannel
	UninitializedChannel = uint8(0)
	OperableChannel      = uint8(1)
	SettlingChannel      = uint8(2)
	ClosedChannel        = uint8(3)
	MigratedChannel      = 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 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 GuardABI = "" /* 10786-byte string literal not displayed */

GuardABI 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 GuardBin = "" /* 28722-byte string literal not displayed */

GuardBin 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 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(candidateInfo CandidateInfo) bool

func ParseStatus

func ParseStatus(candidateInfo CandidateInfo) sdk.BondStatus

func SignMessage

func SignMessage(privateKey *ecdsa.PrivateKey, data []byte) ([]byte, error)

func WaitMined

func WaitMined(ctx context.Context, ec *ethclient.Client,
	tx *ethtypes.Transaction, blockDelay uint64) (*ethtypes.Receipt, error)

func WaitMinedWithTxHash

func WaitMinedWithTxHash(ctx context.Context, ec *ethclient.Client,
	txHash string, blockDelay uint64) (*ethtypes.Receipt, error)

WaitMined waits for tx to be mined on the blockchain It returns tx receipt when the tx has been mined and enough block confirmations have passed

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

func RecoverSigner

func RecoverSigner(data []byte, sig []byte) (Addr, error)

type CandidateInfo

type CandidateInfo struct {
	Initialized   bool
	MinSelfStake  *big.Int
	SidechainAddr []byte
	StakingPool   *big.Int
	Status        *big.Int
	UnbondTime    *big.Int
}

CandidateInfo contains info emitted by the mainchain

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 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 {
	// initialized by SetClient()
	Client *ethclient.Client
	// initialized by SetAuth()
	PrivateKey *ecdsa.PrivateKey
	Address    Addr
	Auth       *bind.TransactOpts
	// initialized by SetContracts()
	GuardAddress  Addr
	Guard         *Guard
	LedgerAddress Addr
	Ledger        *CelerLedger
}

func NewEthClient

func NewEthClient(ws, guardAddrStr, ledgerAddrStr, ks, passphrase string) (*EthClient, error)

NewEthClient creates a new eth client and initializes all fields

func (*EthClient) SetAuth

func (ethClient *EthClient) SetAuth(ks, passphrase string) error

func (*EthClient) SetClient

func (ethClient *EthClient) SetClient(ws string) error

func (*EthClient) SetContracts

func (ethClient *EthClient) SetContracts(guardAddrStr, ledgerAddrStr string) error

func (*EthClient) SignMessage

func (ethClient *EthClient) SignMessage(data []byte) ([]byte, error)

type Guard

type Guard struct {
	GuardCaller     // Read-only binding to the contract
	GuardTransactor // Write-only binding to the contract
	GuardFilterer   // Log filterer for contract events
}

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

func DeployGuard

func DeployGuard(auth *bind.TransactOpts, backend bind.ContractBackend, _celerTokenAddress common.Address, _blameTimeout *big.Int, _minValidatorNum *big.Int, _minStakeInPool *big.Int, _sidechainGoLiveTimeout *big.Int, _maxValidatorNum *big.Int) (common.Address, *types.Transaction, *Guard, error)

DeployGuard deploys a new Ethereum contract, binding an instance of Guard to it.

func NewGuard

func NewGuard(address common.Address, backend bind.ContractBackend) (*Guard, error)

NewGuard creates a new instance of Guard, bound to a specific deployed contract.

type GuardAddSubscriptionBalance

type GuardAddSubscriptionBalance struct {
	Consumer common.Address
	Amount   *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

GuardAddSubscriptionBalance represents a AddSubscriptionBalance event raised by the Guard contract.

type GuardAddSubscriptionBalanceIterator

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

GuardAddSubscriptionBalanceIterator is returned from FilterAddSubscriptionBalance and is used to iterate over the raw logs and unpacked data for AddSubscriptionBalance events raised by the Guard contract.

func (*GuardAddSubscriptionBalanceIterator) Close

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

func (*GuardAddSubscriptionBalanceIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardAddSubscriptionBalanceIterator) 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 GuardCaller

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

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

func NewGuardCaller

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

NewGuardCaller creates a new read-only instance of Guard, bound to a specific deployed contract.

func (*GuardCaller) BlameTimeout

func (_Guard *GuardCaller) BlameTimeout(opts *bind.CallOpts) (*big.Int, error)

BlameTimeout is a free data retrieval call binding the contract method 0x2218d255.

Solidity: function blameTimeout() constant returns(uint256)

func (*GuardCaller) CelerToken

func (_Guard *GuardCaller) CelerToken(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function celerToken() constant returns(address)

func (*GuardCaller) GetCandidateInfo

func (_Guard *GuardCaller) GetCandidateInfo(opts *bind.CallOpts, _candidateAddr common.Address) (struct {
	Initialized   bool
	MinSelfStake  *big.Int
	SidechainAddr []byte
	StakingPool   *big.Int
	Status        *big.Int
	UnbondTime    *big.Int
}, error)

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

Solidity: function getCandidateInfo(address _candidateAddr) constant returns(bool initialized, uint256 minSelfStake, bytes sidechainAddr, uint256 stakingPool, uint256 status, uint256 unbondTime)

func (*GuardCaller) GetDelegatorInfo

func (_Guard *GuardCaller) 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) constant returns(uint256 delegatedStake, uint256 undelegatingStake, uint256[] intentAmounts, uint256[] intentProposedTimes)

func (*GuardCaller) GetMinQuorumStakingPool

func (_Guard *GuardCaller) GetMinQuorumStakingPool(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function getMinQuorumStakingPool() constant returns(uint256)

func (*GuardCaller) GetMinStakingPool

func (_Guard *GuardCaller) GetMinStakingPool(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function getMinStakingPool() constant returns(uint256)

func (*GuardCaller) GetValidatorNum

func (_Guard *GuardCaller) GetValidatorNum(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function getValidatorNum() constant returns(uint256)

func (*GuardCaller) IsValidator

func (_Guard *GuardCaller) 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) constant returns(bool)

func (*GuardCaller) MaxValidatorNum

func (_Guard *GuardCaller) MaxValidatorNum(opts *bind.CallOpts) (*big.Int, error)

MaxValidatorNum is a free data retrieval call binding the contract method 0xfc062d0d.

Solidity: function maxValidatorNum() constant returns(uint256)

func (*GuardCaller) MinStakeInPool

func (_Guard *GuardCaller) MinStakeInPool(opts *bind.CallOpts) (*big.Int, error)

MinStakeInPool is a free data retrieval call binding the contract method 0xdc4c7444.

Solidity: function minStakeInPool() constant returns(uint256)

func (*GuardCaller) MinValidatorNum

func (_Guard *GuardCaller) MinValidatorNum(opts *bind.CallOpts) (*big.Int, error)

MinValidatorNum is a free data retrieval call binding the contract method 0xea5976a9.

Solidity: function minValidatorNum() constant returns(uint256)

func (*GuardCaller) MiningPool

func (_Guard *GuardCaller) MiningPool(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function miningPool() constant returns(uint256)

func (*GuardCaller) RedeemedMiningReward

func (_Guard *GuardCaller) 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 ) constant returns(uint256)

func (*GuardCaller) RedeemedServiceReward

func (_Guard *GuardCaller) 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 ) constant returns(uint256)

func (*GuardCaller) ServicePool

func (_Guard *GuardCaller) ServicePool(opts *bind.CallOpts) (*big.Int, error)

ServicePool is a free data retrieval call binding the contract method 0xe42a06c8.

Solidity: function servicePool() constant returns(uint256)

func (*GuardCaller) SidechainGoLiveTime

func (_Guard *GuardCaller) SidechainGoLiveTime(opts *bind.CallOpts) (*big.Int, error)

SidechainGoLiveTime is a free data retrieval call binding the contract method 0x9ff296ca.

Solidity: function sidechainGoLiveTime() constant returns(uint256)

func (*GuardCaller) SubscriptionDeposits

func (_Guard *GuardCaller) 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 ) constant returns(uint256)

func (*GuardCaller) UsedPenaltyNonce

func (_Guard *GuardCaller) 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 ) constant returns(bool)

func (*GuardCaller) ValidatorSet

func (_Guard *GuardCaller) 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 ) constant returns(address)

type GuardCallerRaw

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

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

func (*GuardCallerRaw) Call

func (_Guard *GuardCallerRaw) 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 GuardCallerSession

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

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

func (*GuardCallerSession) BlameTimeout

func (_Guard *GuardCallerSession) BlameTimeout() (*big.Int, error)

BlameTimeout is a free data retrieval call binding the contract method 0x2218d255.

Solidity: function blameTimeout() constant returns(uint256)

func (*GuardCallerSession) CelerToken

func (_Guard *GuardCallerSession) CelerToken() (common.Address, error)

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

Solidity: function celerToken() constant returns(address)

func (*GuardCallerSession) GetCandidateInfo

func (_Guard *GuardCallerSession) GetCandidateInfo(_candidateAddr common.Address) (struct {
	Initialized   bool
	MinSelfStake  *big.Int
	SidechainAddr []byte
	StakingPool   *big.Int
	Status        *big.Int
	UnbondTime    *big.Int
}, error)

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

Solidity: function getCandidateInfo(address _candidateAddr) constant returns(bool initialized, uint256 minSelfStake, bytes sidechainAddr, uint256 stakingPool, uint256 status, uint256 unbondTime)

func (*GuardCallerSession) GetDelegatorInfo

func (_Guard *GuardCallerSession) 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) constant returns(uint256 delegatedStake, uint256 undelegatingStake, uint256[] intentAmounts, uint256[] intentProposedTimes)

func (*GuardCallerSession) GetMinQuorumStakingPool

func (_Guard *GuardCallerSession) GetMinQuorumStakingPool() (*big.Int, error)

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

Solidity: function getMinQuorumStakingPool() constant returns(uint256)

func (*GuardCallerSession) GetMinStakingPool

func (_Guard *GuardCallerSession) GetMinStakingPool() (*big.Int, error)

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

Solidity: function getMinStakingPool() constant returns(uint256)

func (*GuardCallerSession) GetValidatorNum

func (_Guard *GuardCallerSession) GetValidatorNum() (*big.Int, error)

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

Solidity: function getValidatorNum() constant returns(uint256)

func (*GuardCallerSession) IsValidator

func (_Guard *GuardCallerSession) IsValidator(_addr common.Address) (bool, error)

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

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

func (*GuardCallerSession) MaxValidatorNum

func (_Guard *GuardCallerSession) MaxValidatorNum() (*big.Int, error)

MaxValidatorNum is a free data retrieval call binding the contract method 0xfc062d0d.

Solidity: function maxValidatorNum() constant returns(uint256)

func (*GuardCallerSession) MinStakeInPool

func (_Guard *GuardCallerSession) MinStakeInPool() (*big.Int, error)

MinStakeInPool is a free data retrieval call binding the contract method 0xdc4c7444.

Solidity: function minStakeInPool() constant returns(uint256)

func (*GuardCallerSession) MinValidatorNum

func (_Guard *GuardCallerSession) MinValidatorNum() (*big.Int, error)

MinValidatorNum is a free data retrieval call binding the contract method 0xea5976a9.

Solidity: function minValidatorNum() constant returns(uint256)

func (*GuardCallerSession) MiningPool

func (_Guard *GuardCallerSession) MiningPool() (*big.Int, error)

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

Solidity: function miningPool() constant returns(uint256)

func (*GuardCallerSession) RedeemedMiningReward

func (_Guard *GuardCallerSession) RedeemedMiningReward(arg0 common.Address) (*big.Int, error)

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

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

func (*GuardCallerSession) RedeemedServiceReward

func (_Guard *GuardCallerSession) RedeemedServiceReward(arg0 common.Address) (*big.Int, error)

RedeemedServiceReward is a free data retrieval call binding the contract method 0xc57f6661.

Solidity: function redeemedServiceReward(address ) constant returns(uint256)

func (*GuardCallerSession) ServicePool

func (_Guard *GuardCallerSession) ServicePool() (*big.Int, error)

ServicePool is a free data retrieval call binding the contract method 0xe42a06c8.

Solidity: function servicePool() constant returns(uint256)

func (*GuardCallerSession) SidechainGoLiveTime

func (_Guard *GuardCallerSession) SidechainGoLiveTime() (*big.Int, error)

SidechainGoLiveTime is a free data retrieval call binding the contract method 0x9ff296ca.

Solidity: function sidechainGoLiveTime() constant returns(uint256)

func (*GuardCallerSession) SubscriptionDeposits

func (_Guard *GuardCallerSession) SubscriptionDeposits(arg0 common.Address) (*big.Int, error)

SubscriptionDeposits is a free data retrieval call binding the contract method 0x1e77733a.

Solidity: function subscriptionDeposits(address ) constant returns(uint256)

func (*GuardCallerSession) UsedPenaltyNonce

func (_Guard *GuardCallerSession) UsedPenaltyNonce(arg0 *big.Int) (bool, error)

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

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

func (*GuardCallerSession) ValidatorSet

func (_Guard *GuardCallerSession) ValidatorSet(arg0 *big.Int) (common.Address, error)

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

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

type GuardCandidateUnbonded

type GuardCandidateUnbonded struct {
	Candidate common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

GuardCandidateUnbonded represents a CandidateUnbonded event raised by the Guard contract.

type GuardCandidateUnbondedIterator

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

GuardCandidateUnbondedIterator is returned from FilterCandidateUnbonded and is used to iterate over the raw logs and unpacked data for CandidateUnbonded events raised by the Guard contract.

func (*GuardCandidateUnbondedIterator) Close

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

func (*GuardCandidateUnbondedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardCandidateUnbondedIterator) 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 GuardConfirmWithdraw

type GuardConfirmWithdraw struct {
	Delegator common.Address
	Candidate common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

GuardConfirmWithdraw represents a ConfirmWithdraw event raised by the Guard contract.

type GuardConfirmWithdrawIterator

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

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

func (*GuardConfirmWithdrawIterator) Close

func (it *GuardConfirmWithdrawIterator) Close() error

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

func (*GuardConfirmWithdrawIterator) Error

func (it *GuardConfirmWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardConfirmWithdrawIterator) 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 GuardDelegate

type GuardDelegate struct {
	Delegator   common.Address
	Candidate   common.Address
	NewStake    *big.Int
	StakingPool *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

GuardDelegate represents a Delegate event raised by the Guard contract.

type GuardDelegateIterator

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

GuardDelegateIterator is returned from FilterDelegate and is used to iterate over the raw logs and unpacked data for Delegate events raised by the Guard contract.

func (*GuardDelegateIterator) Close

func (it *GuardDelegateIterator) Close() error

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

func (*GuardDelegateIterator) Error

func (it *GuardDelegateIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardDelegateIterator) Next

func (it *GuardDelegateIterator) 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 GuardFilterer

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

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

func NewGuardFilterer

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

NewGuardFilterer creates a new log filterer instance of Guard, bound to a specific deployed contract.

func (*GuardFilterer) FilterAddSubscriptionBalance

func (_Guard *GuardFilterer) FilterAddSubscriptionBalance(opts *bind.FilterOpts, consumer []common.Address) (*GuardAddSubscriptionBalanceIterator, error)

FilterAddSubscriptionBalance is a free log retrieval operation binding the contract event 0xac095ced75d400384d8404a37883183a56b937b8ff8195fa0c52c3ccc8bb8a49.

Solidity: event AddSubscriptionBalance(address indexed consumer, uint256 amount)

func (*GuardFilterer) FilterCandidateUnbonded

func (_Guard *GuardFilterer) FilterCandidateUnbonded(opts *bind.FilterOpts, candidate []common.Address) (*GuardCandidateUnbondedIterator, error)

FilterCandidateUnbonded is a free log retrieval operation binding the contract event 0xbe85a9a7aa606febeaa35606e49cd7324c63cf970f4f5fd0c7e983f42b20b219.

Solidity: event CandidateUnbonded(address indexed candidate)

func (*GuardFilterer) FilterConfirmWithdraw

func (_Guard *GuardFilterer) FilterConfirmWithdraw(opts *bind.FilterOpts, delegator []common.Address, candidate []common.Address) (*GuardConfirmWithdrawIterator, 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 (*GuardFilterer) FilterDelegate

func (_Guard *GuardFilterer) FilterDelegate(opts *bind.FilterOpts, delegator []common.Address, candidate []common.Address) (*GuardDelegateIterator, 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 (*GuardFilterer) FilterIndemnify

func (_Guard *GuardFilterer) FilterIndemnify(opts *bind.FilterOpts, indemnitee []common.Address) (*GuardIndemnifyIterator, error)

FilterIndemnify is a free log retrieval operation binding the contract event 0x5739ab1e78cc400665fe049852d266e9ac5995451b5e666b25f3c30b19087d8e.

Solidity: event Indemnify(address indexed indemnitee, uint256 amount)

func (*GuardFilterer) FilterInitializeCandidate

func (_Guard *GuardFilterer) FilterInitializeCandidate(opts *bind.FilterOpts, candidate []common.Address) (*GuardInitializeCandidateIterator, error)

FilterInitializeCandidate is a free log retrieval operation binding the contract event 0x377f6597c5132797119197fab0e953f73fd5bb109a897a11c871834af2d092a9.

Solidity: event InitializeCandidate(address indexed candidate, uint256 minSelfStake, bytes sidechainAddr)

func (*GuardFilterer) FilterIntendWithdraw

func (_Guard *GuardFilterer) FilterIntendWithdraw(opts *bind.FilterOpts, delegator []common.Address, candidate []common.Address) (*GuardIntendWithdrawIterator, 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 (*GuardFilterer) FilterMiningPoolContribution

func (_Guard *GuardFilterer) FilterMiningPoolContribution(opts *bind.FilterOpts, contributor []common.Address) (*GuardMiningPoolContributionIterator, error)

FilterMiningPoolContribution is a free log retrieval operation binding the contract event 0x97e19c4040b6c46d4275e0c4fea68f8f92c81138372ffdb089932c211938f765.

Solidity: event MiningPoolContribution(address indexed contributor, uint256 contribution, uint256 miningPoolSize)

func (*GuardFilterer) FilterPunish

func (_Guard *GuardFilterer) FilterPunish(opts *bind.FilterOpts, validator []common.Address, delegator []common.Address) (*GuardPunishIterator, error)

FilterPunish is a free log retrieval operation binding the contract event 0x111897aba775ed4cb659e35805c453dcd8f0024cc414f560f9677bdfae30952a.

Solidity: event Punish(address indexed validator, address indexed delegator, uint256 amount)

func (*GuardFilterer) FilterRedeemReward

func (_Guard *GuardFilterer) FilterRedeemReward(opts *bind.FilterOpts, receiver []common.Address) (*GuardRedeemRewardIterator, error)

FilterRedeemReward is a free log retrieval operation binding the contract event 0x960a5cc298ffb55e7c3f1b994053dcf9298367b34bf7699d94368be331558b2e.

Solidity: event RedeemReward(address indexed receiver, uint256 miningReward, uint256 serviceReward, uint256 miningPool, uint256 servicePool)

func (*GuardFilterer) FilterUpdateSidechainAddr

func (_Guard *GuardFilterer) FilterUpdateSidechainAddr(opts *bind.FilterOpts, candidate []common.Address, oldSidechainAddr [][]byte, newSidechainAddr [][]byte) (*GuardUpdateSidechainAddrIterator, 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 (*GuardFilterer) FilterValidatorChange

func (_Guard *GuardFilterer) FilterValidatorChange(opts *bind.FilterOpts, ethAddr []common.Address, changeType []uint8) (*GuardValidatorChangeIterator, error)

FilterValidatorChange is a free log retrieval operation binding the contract event 0x63f783ba869265648de5e70add96be9f4914e3bde064fdc19fd7e6a8ebf2f46c.

Solidity: event ValidatorChange(address indexed ethAddr, uint8 indexed changeType)

func (*GuardFilterer) FilterWithdrawFromUnbondedCandidate

func (_Guard *GuardFilterer) FilterWithdrawFromUnbondedCandidate(opts *bind.FilterOpts, delegator []common.Address, candidate []common.Address) (*GuardWithdrawFromUnbondedCandidateIterator, 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 (*GuardFilterer) ParseAddSubscriptionBalance

func (_Guard *GuardFilterer) ParseAddSubscriptionBalance(log types.Log) (*GuardAddSubscriptionBalance, error)

ParseAddSubscriptionBalance is a log parse operation binding the contract event 0xac095ced75d400384d8404a37883183a56b937b8ff8195fa0c52c3ccc8bb8a49.

Solidity: event AddSubscriptionBalance(address indexed consumer, uint256 amount)

func (*GuardFilterer) ParseCandidateUnbonded

func (_Guard *GuardFilterer) ParseCandidateUnbonded(log types.Log) (*GuardCandidateUnbonded, error)

ParseCandidateUnbonded is a log parse operation binding the contract event 0xbe85a9a7aa606febeaa35606e49cd7324c63cf970f4f5fd0c7e983f42b20b219.

Solidity: event CandidateUnbonded(address indexed candidate)

func (*GuardFilterer) ParseConfirmWithdraw

func (_Guard *GuardFilterer) ParseConfirmWithdraw(log types.Log) (*GuardConfirmWithdraw, error)

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

Solidity: event ConfirmWithdraw(address indexed delegator, address indexed candidate, uint256 amount)

func (*GuardFilterer) ParseDelegate

func (_Guard *GuardFilterer) ParseDelegate(log types.Log) (*GuardDelegate, 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 (*GuardFilterer) ParseIndemnify

func (_Guard *GuardFilterer) ParseIndemnify(log types.Log) (*GuardIndemnify, error)

ParseIndemnify is a log parse operation binding the contract event 0x5739ab1e78cc400665fe049852d266e9ac5995451b5e666b25f3c30b19087d8e.

Solidity: event Indemnify(address indexed indemnitee, uint256 amount)

func (*GuardFilterer) ParseInitializeCandidate

func (_Guard *GuardFilterer) ParseInitializeCandidate(log types.Log) (*GuardInitializeCandidate, error)

ParseInitializeCandidate is a log parse operation binding the contract event 0x377f6597c5132797119197fab0e953f73fd5bb109a897a11c871834af2d092a9.

Solidity: event InitializeCandidate(address indexed candidate, uint256 minSelfStake, bytes sidechainAddr)

func (*GuardFilterer) ParseIntendWithdraw

func (_Guard *GuardFilterer) ParseIntendWithdraw(log types.Log) (*GuardIntendWithdraw, 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 (*GuardFilterer) ParseMiningPoolContribution

func (_Guard *GuardFilterer) ParseMiningPoolContribution(log types.Log) (*GuardMiningPoolContribution, error)

ParseMiningPoolContribution is a log parse operation binding the contract event 0x97e19c4040b6c46d4275e0c4fea68f8f92c81138372ffdb089932c211938f765.

Solidity: event MiningPoolContribution(address indexed contributor, uint256 contribution, uint256 miningPoolSize)

func (*GuardFilterer) ParsePunish

func (_Guard *GuardFilterer) ParsePunish(log types.Log) (*GuardPunish, error)

ParsePunish is a log parse operation binding the contract event 0x111897aba775ed4cb659e35805c453dcd8f0024cc414f560f9677bdfae30952a.

Solidity: event Punish(address indexed validator, address indexed delegator, uint256 amount)

func (*GuardFilterer) ParseRedeemReward

func (_Guard *GuardFilterer) ParseRedeemReward(log types.Log) (*GuardRedeemReward, error)

ParseRedeemReward is a log parse operation binding the contract event 0x960a5cc298ffb55e7c3f1b994053dcf9298367b34bf7699d94368be331558b2e.

Solidity: event RedeemReward(address indexed receiver, uint256 miningReward, uint256 serviceReward, uint256 miningPool, uint256 servicePool)

func (*GuardFilterer) ParseUpdateSidechainAddr

func (_Guard *GuardFilterer) ParseUpdateSidechainAddr(log types.Log) (*GuardUpdateSidechainAddr, 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 (*GuardFilterer) ParseValidatorChange

func (_Guard *GuardFilterer) ParseValidatorChange(log types.Log) (*GuardValidatorChange, error)

ParseValidatorChange is a log parse operation binding the contract event 0x63f783ba869265648de5e70add96be9f4914e3bde064fdc19fd7e6a8ebf2f46c.

Solidity: event ValidatorChange(address indexed ethAddr, uint8 indexed changeType)

func (*GuardFilterer) ParseWithdrawFromUnbondedCandidate

func (_Guard *GuardFilterer) ParseWithdrawFromUnbondedCandidate(log types.Log) (*GuardWithdrawFromUnbondedCandidate, error)

ParseWithdrawFromUnbondedCandidate is a log parse operation binding the contract event 0x585e40624b400c05be4193af453d2fd2e69facd17163bda6afd44546f3dbbaa8.

Solidity: event WithdrawFromUnbondedCandidate(address indexed delegator, address indexed candidate, uint256 amount)

func (*GuardFilterer) WatchAddSubscriptionBalance

func (_Guard *GuardFilterer) WatchAddSubscriptionBalance(opts *bind.WatchOpts, sink chan<- *GuardAddSubscriptionBalance, 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 (*GuardFilterer) WatchCandidateUnbonded

func (_Guard *GuardFilterer) WatchCandidateUnbonded(opts *bind.WatchOpts, sink chan<- *GuardCandidateUnbonded, 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 (*GuardFilterer) WatchConfirmWithdraw

func (_Guard *GuardFilterer) WatchConfirmWithdraw(opts *bind.WatchOpts, sink chan<- *GuardConfirmWithdraw, 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 (*GuardFilterer) WatchDelegate

func (_Guard *GuardFilterer) WatchDelegate(opts *bind.WatchOpts, sink chan<- *GuardDelegate, 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 (*GuardFilterer) WatchIndemnify

func (_Guard *GuardFilterer) WatchIndemnify(opts *bind.WatchOpts, sink chan<- *GuardIndemnify, indemnitee []common.Address) (event.Subscription, error)

WatchIndemnify is a free log subscription operation binding the contract event 0x5739ab1e78cc400665fe049852d266e9ac5995451b5e666b25f3c30b19087d8e.

Solidity: event Indemnify(address indexed indemnitee, uint256 amount)

func (*GuardFilterer) WatchInitializeCandidate

func (_Guard *GuardFilterer) WatchInitializeCandidate(opts *bind.WatchOpts, sink chan<- *GuardInitializeCandidate, candidate []common.Address) (event.Subscription, error)

WatchInitializeCandidate is a free log subscription operation binding the contract event 0x377f6597c5132797119197fab0e953f73fd5bb109a897a11c871834af2d092a9.

Solidity: event InitializeCandidate(address indexed candidate, uint256 minSelfStake, bytes sidechainAddr)

func (*GuardFilterer) WatchIntendWithdraw

func (_Guard *GuardFilterer) WatchIntendWithdraw(opts *bind.WatchOpts, sink chan<- *GuardIntendWithdraw, 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 (*GuardFilterer) WatchMiningPoolContribution

func (_Guard *GuardFilterer) WatchMiningPoolContribution(opts *bind.WatchOpts, sink chan<- *GuardMiningPoolContribution, 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 (*GuardFilterer) WatchPunish

func (_Guard *GuardFilterer) WatchPunish(opts *bind.WatchOpts, sink chan<- *GuardPunish, validator []common.Address, delegator []common.Address) (event.Subscription, error)

WatchPunish is a free log subscription operation binding the contract event 0x111897aba775ed4cb659e35805c453dcd8f0024cc414f560f9677bdfae30952a.

Solidity: event Punish(address indexed validator, address indexed delegator, uint256 amount)

func (*GuardFilterer) WatchRedeemReward

func (_Guard *GuardFilterer) WatchRedeemReward(opts *bind.WatchOpts, sink chan<- *GuardRedeemReward, receiver []common.Address) (event.Subscription, error)

WatchRedeemReward is a free log subscription operation binding the contract event 0x960a5cc298ffb55e7c3f1b994053dcf9298367b34bf7699d94368be331558b2e.

Solidity: event RedeemReward(address indexed receiver, uint256 miningReward, uint256 serviceReward, uint256 miningPool, uint256 servicePool)

func (*GuardFilterer) WatchUpdateSidechainAddr

func (_Guard *GuardFilterer) WatchUpdateSidechainAddr(opts *bind.WatchOpts, sink chan<- *GuardUpdateSidechainAddr, 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)

func (*GuardFilterer) WatchValidatorChange

func (_Guard *GuardFilterer) WatchValidatorChange(opts *bind.WatchOpts, sink chan<- *GuardValidatorChange, 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 (*GuardFilterer) WatchWithdrawFromUnbondedCandidate

func (_Guard *GuardFilterer) WatchWithdrawFromUnbondedCandidate(opts *bind.WatchOpts, sink chan<- *GuardWithdrawFromUnbondedCandidate, 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 GuardIndemnify

type GuardIndemnify struct {
	Indemnitee common.Address
	Amount     *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

GuardIndemnify represents a Indemnify event raised by the Guard contract.

type GuardIndemnifyIterator

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

GuardIndemnifyIterator is returned from FilterIndemnify and is used to iterate over the raw logs and unpacked data for Indemnify events raised by the Guard contract.

func (*GuardIndemnifyIterator) Close

func (it *GuardIndemnifyIterator) Close() error

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

func (*GuardIndemnifyIterator) Error

func (it *GuardIndemnifyIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardIndemnifyIterator) Next

func (it *GuardIndemnifyIterator) 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 GuardInitializeCandidate

type GuardInitializeCandidate struct {
	Candidate     common.Address
	MinSelfStake  *big.Int
	SidechainAddr []byte
	Raw           types.Log // Blockchain specific contextual infos
}

GuardInitializeCandidate represents a InitializeCandidate event raised by the Guard contract.

type GuardInitializeCandidateIterator

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

GuardInitializeCandidateIterator is returned from FilterInitializeCandidate and is used to iterate over the raw logs and unpacked data for InitializeCandidate events raised by the Guard contract.

func (*GuardInitializeCandidateIterator) Close

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

func (*GuardInitializeCandidateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardInitializeCandidateIterator) 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 GuardIntendWithdraw

type GuardIntendWithdraw struct {
	Delegator      common.Address
	Candidate      common.Address
	WithdrawAmount *big.Int
	ProposedTime   *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

GuardIntendWithdraw represents a IntendWithdraw event raised by the Guard contract.

type GuardIntendWithdrawIterator

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

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

func (*GuardIntendWithdrawIterator) Close

func (it *GuardIntendWithdrawIterator) Close() error

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

func (*GuardIntendWithdrawIterator) Error

func (it *GuardIntendWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardIntendWithdrawIterator) Next

func (it *GuardIntendWithdrawIterator) 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 GuardMiningPoolContribution

type GuardMiningPoolContribution struct {
	Contributor    common.Address
	Contribution   *big.Int
	MiningPoolSize *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

GuardMiningPoolContribution represents a MiningPoolContribution event raised by the Guard contract.

type GuardMiningPoolContributionIterator

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

GuardMiningPoolContributionIterator is returned from FilterMiningPoolContribution and is used to iterate over the raw logs and unpacked data for MiningPoolContribution events raised by the Guard contract.

func (*GuardMiningPoolContributionIterator) Close

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

func (*GuardMiningPoolContributionIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardMiningPoolContributionIterator) 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 GuardPunish

type GuardPunish struct {
	Validator common.Address
	Delegator common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

GuardPunish represents a Punish event raised by the Guard contract.

type GuardPunishIterator

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

GuardPunishIterator is returned from FilterPunish and is used to iterate over the raw logs and unpacked data for Punish events raised by the Guard contract.

func (*GuardPunishIterator) Close

func (it *GuardPunishIterator) Close() error

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

func (*GuardPunishIterator) Error

func (it *GuardPunishIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardPunishIterator) Next

func (it *GuardPunishIterator) 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 GuardRaw

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

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

func (*GuardRaw) Call

func (_Guard *GuardRaw) 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 (*GuardRaw) Transact

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

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

func (*GuardRaw) Transfer

func (_Guard *GuardRaw) 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 GuardRedeemReward

type GuardRedeemReward struct {
	Receiver      common.Address
	MiningReward  *big.Int
	ServiceReward *big.Int
	MiningPool    *big.Int
	ServicePool   *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

GuardRedeemReward represents a RedeemReward event raised by the Guard contract.

type GuardRedeemRewardIterator

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

GuardRedeemRewardIterator is returned from FilterRedeemReward and is used to iterate over the raw logs and unpacked data for RedeemReward events raised by the Guard contract.

func (*GuardRedeemRewardIterator) Close

func (it *GuardRedeemRewardIterator) Close() error

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

func (*GuardRedeemRewardIterator) Error

func (it *GuardRedeemRewardIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardRedeemRewardIterator) Next

func (it *GuardRedeemRewardIterator) 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 GuardSession

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

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

func (*GuardSession) BlameTimeout

func (_Guard *GuardSession) BlameTimeout() (*big.Int, error)

BlameTimeout is a free data retrieval call binding the contract method 0x2218d255.

Solidity: function blameTimeout() constant returns(uint256)

func (*GuardSession) CelerToken

func (_Guard *GuardSession) CelerToken() (common.Address, error)

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

Solidity: function celerToken() constant returns(address)

func (*GuardSession) ClaimValidator

func (_Guard *GuardSession) ClaimValidator() (*types.Transaction, error)

ClaimValidator is a paid mutator transaction binding the contract method 0x6e7cf85d.

Solidity: function claimValidator() returns()

func (*GuardSession) ConfirmUnbondedCandidate

func (_Guard *GuardSession) 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 (*GuardSession) ConfirmWithdraw

func (_Guard *GuardSession) 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 (*GuardSession) ContributeToMiningPool

func (_Guard *GuardSession) 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 (*GuardSession) Delegate

func (_Guard *GuardSession) 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 (*GuardSession) GetCandidateInfo

func (_Guard *GuardSession) GetCandidateInfo(_candidateAddr common.Address) (struct {
	Initialized   bool
	MinSelfStake  *big.Int
	SidechainAddr []byte
	StakingPool   *big.Int
	Status        *big.Int
	UnbondTime    *big.Int
}, error)

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

Solidity: function getCandidateInfo(address _candidateAddr) constant returns(bool initialized, uint256 minSelfStake, bytes sidechainAddr, uint256 stakingPool, uint256 status, uint256 unbondTime)

func (*GuardSession) GetDelegatorInfo

func (_Guard *GuardSession) 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) constant returns(uint256 delegatedStake, uint256 undelegatingStake, uint256[] intentAmounts, uint256[] intentProposedTimes)

func (*GuardSession) GetMinQuorumStakingPool

func (_Guard *GuardSession) GetMinQuorumStakingPool() (*big.Int, error)

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

Solidity: function getMinQuorumStakingPool() constant returns(uint256)

func (*GuardSession) GetMinStakingPool

func (_Guard *GuardSession) GetMinStakingPool() (*big.Int, error)

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

Solidity: function getMinStakingPool() constant returns(uint256)

func (*GuardSession) GetValidatorNum

func (_Guard *GuardSession) GetValidatorNum() (*big.Int, error)

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

Solidity: function getValidatorNum() constant returns(uint256)

func (*GuardSession) InitializeCandidate

func (_Guard *GuardSession) InitializeCandidate(_minSelfStake *big.Int, _sidechainAddr []byte) (*types.Transaction, error)

InitializeCandidate is a paid mutator transaction binding the contract method 0x26c36617.

Solidity: function initializeCandidate(uint256 _minSelfStake, bytes _sidechainAddr) returns()

func (*GuardSession) IntendWithdraw

func (_Guard *GuardSession) 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 (*GuardSession) IsValidator

func (_Guard *GuardSession) IsValidator(_addr common.Address) (bool, error)

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

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

func (*GuardSession) MaxValidatorNum

func (_Guard *GuardSession) MaxValidatorNum() (*big.Int, error)

MaxValidatorNum is a free data retrieval call binding the contract method 0xfc062d0d.

Solidity: function maxValidatorNum() constant returns(uint256)

func (*GuardSession) MinStakeInPool

func (_Guard *GuardSession) MinStakeInPool() (*big.Int, error)

MinStakeInPool is a free data retrieval call binding the contract method 0xdc4c7444.

Solidity: function minStakeInPool() constant returns(uint256)

func (*GuardSession) MinValidatorNum

func (_Guard *GuardSession) MinValidatorNum() (*big.Int, error)

MinValidatorNum is a free data retrieval call binding the contract method 0xea5976a9.

Solidity: function minValidatorNum() constant returns(uint256)

func (*GuardSession) MiningPool

func (_Guard *GuardSession) MiningPool() (*big.Int, error)

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

Solidity: function miningPool() constant returns(uint256)

func (*GuardSession) Punish

func (_Guard *GuardSession) Punish(_penaltyRequest []byte) (*types.Transaction, error)

Punish is a paid mutator transaction binding the contract method 0x3620d149.

Solidity: function punish(bytes _penaltyRequest) returns()

func (*GuardSession) RedeemReward

func (_Guard *GuardSession) RedeemReward(_rewardRequest []byte) (*types.Transaction, error)

RedeemReward is a paid mutator transaction binding the contract method 0x73a6e450.

Solidity: function redeemReward(bytes _rewardRequest) returns()

func (*GuardSession) RedeemedMiningReward

func (_Guard *GuardSession) RedeemedMiningReward(arg0 common.Address) (*big.Int, error)

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

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

func (*GuardSession) RedeemedServiceReward

func (_Guard *GuardSession) RedeemedServiceReward(arg0 common.Address) (*big.Int, error)

RedeemedServiceReward is a free data retrieval call binding the contract method 0xc57f6661.

Solidity: function redeemedServiceReward(address ) constant returns(uint256)

func (*GuardSession) ServicePool

func (_Guard *GuardSession) ServicePool() (*big.Int, error)

ServicePool is a free data retrieval call binding the contract method 0xe42a06c8.

Solidity: function servicePool() constant returns(uint256)

func (*GuardSession) SidechainGoLiveTime

func (_Guard *GuardSession) SidechainGoLiveTime() (*big.Int, error)

SidechainGoLiveTime is a free data retrieval call binding the contract method 0x9ff296ca.

Solidity: function sidechainGoLiveTime() constant returns(uint256)

func (*GuardSession) Subscribe

func (_Guard *GuardSession) 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 (*GuardSession) SubscriptionDeposits

func (_Guard *GuardSession) SubscriptionDeposits(arg0 common.Address) (*big.Int, error)

SubscriptionDeposits is a free data retrieval call binding the contract method 0x1e77733a.

Solidity: function subscriptionDeposits(address ) constant returns(uint256)

func (*GuardSession) UpdateSidechainAddr

func (_Guard *GuardSession) UpdateSidechainAddr(_sidechainAddr []byte) (*types.Transaction, error)

UpdateSidechainAddr is a paid mutator transaction binding the contract method 0xe02f39bd.

Solidity: function updateSidechainAddr(bytes _sidechainAddr) returns()

func (*GuardSession) UsedPenaltyNonce

func (_Guard *GuardSession) UsedPenaltyNonce(arg0 *big.Int) (bool, error)

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

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

func (*GuardSession) ValidatorSet

func (_Guard *GuardSession) ValidatorSet(arg0 *big.Int) (common.Address, error)

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

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

func (*GuardSession) WithdrawFromUnbondedCandidate

func (_Guard *GuardSession) 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 GuardTransactor

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

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

func NewGuardTransactor

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

NewGuardTransactor creates a new write-only instance of Guard, bound to a specific deployed contract.

func (*GuardTransactor) ClaimValidator

func (_Guard *GuardTransactor) ClaimValidator(opts *bind.TransactOpts) (*types.Transaction, error)

ClaimValidator is a paid mutator transaction binding the contract method 0x6e7cf85d.

Solidity: function claimValidator() returns()

func (*GuardTransactor) ConfirmUnbondedCandidate

func (_Guard *GuardTransactor) 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 (*GuardTransactor) ConfirmWithdraw

func (_Guard *GuardTransactor) 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 (*GuardTransactor) ContributeToMiningPool

func (_Guard *GuardTransactor) 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 (*GuardTransactor) Delegate

func (_Guard *GuardTransactor) 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 (*GuardTransactor) InitializeCandidate

func (_Guard *GuardTransactor) InitializeCandidate(opts *bind.TransactOpts, _minSelfStake *big.Int, _sidechainAddr []byte) (*types.Transaction, error)

InitializeCandidate is a paid mutator transaction binding the contract method 0x26c36617.

Solidity: function initializeCandidate(uint256 _minSelfStake, bytes _sidechainAddr) returns()

func (*GuardTransactor) IntendWithdraw

func (_Guard *GuardTransactor) 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 (*GuardTransactor) Punish

func (_Guard *GuardTransactor) Punish(opts *bind.TransactOpts, _penaltyRequest []byte) (*types.Transaction, error)

Punish is a paid mutator transaction binding the contract method 0x3620d149.

Solidity: function punish(bytes _penaltyRequest) returns()

func (*GuardTransactor) RedeemReward

func (_Guard *GuardTransactor) 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 (*GuardTransactor) Subscribe

func (_Guard *GuardTransactor) 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 (*GuardTransactor) UpdateSidechainAddr

func (_Guard *GuardTransactor) 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()

func (*GuardTransactor) WithdrawFromUnbondedCandidate

func (_Guard *GuardTransactor) 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 GuardTransactorRaw

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

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

func (*GuardTransactorRaw) Transact

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

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

func (*GuardTransactorRaw) Transfer

func (_Guard *GuardTransactorRaw) 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 GuardTransactorSession

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

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

func (*GuardTransactorSession) ClaimValidator

func (_Guard *GuardTransactorSession) ClaimValidator() (*types.Transaction, error)

ClaimValidator is a paid mutator transaction binding the contract method 0x6e7cf85d.

Solidity: function claimValidator() returns()

func (*GuardTransactorSession) ConfirmUnbondedCandidate

func (_Guard *GuardTransactorSession) 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 (*GuardTransactorSession) ConfirmWithdraw

func (_Guard *GuardTransactorSession) 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 (*GuardTransactorSession) ContributeToMiningPool

func (_Guard *GuardTransactorSession) 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 (*GuardTransactorSession) Delegate

func (_Guard *GuardTransactorSession) 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 (*GuardTransactorSession) InitializeCandidate

func (_Guard *GuardTransactorSession) InitializeCandidate(_minSelfStake *big.Int, _sidechainAddr []byte) (*types.Transaction, error)

InitializeCandidate is a paid mutator transaction binding the contract method 0x26c36617.

Solidity: function initializeCandidate(uint256 _minSelfStake, bytes _sidechainAddr) returns()

func (*GuardTransactorSession) IntendWithdraw

func (_Guard *GuardTransactorSession) 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 (*GuardTransactorSession) Punish

func (_Guard *GuardTransactorSession) Punish(_penaltyRequest []byte) (*types.Transaction, error)

Punish is a paid mutator transaction binding the contract method 0x3620d149.

Solidity: function punish(bytes _penaltyRequest) returns()

func (*GuardTransactorSession) RedeemReward

func (_Guard *GuardTransactorSession) RedeemReward(_rewardRequest []byte) (*types.Transaction, error)

RedeemReward is a paid mutator transaction binding the contract method 0x73a6e450.

Solidity: function redeemReward(bytes _rewardRequest) returns()

func (*GuardTransactorSession) Subscribe

func (_Guard *GuardTransactorSession) 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 (*GuardTransactorSession) UpdateSidechainAddr

func (_Guard *GuardTransactorSession) UpdateSidechainAddr(_sidechainAddr []byte) (*types.Transaction, error)

UpdateSidechainAddr is a paid mutator transaction binding the contract method 0xe02f39bd.

Solidity: function updateSidechainAddr(bytes _sidechainAddr) returns()

func (*GuardTransactorSession) WithdrawFromUnbondedCandidate

func (_Guard *GuardTransactorSession) 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 GuardUpdateSidechainAddr

type GuardUpdateSidechainAddr struct {
	Candidate        common.Address
	OldSidechainAddr common.Hash
	NewSidechainAddr common.Hash
	Raw              types.Log // Blockchain specific contextual infos
}

GuardUpdateSidechainAddr represents a UpdateSidechainAddr event raised by the Guard contract.

type GuardUpdateSidechainAddrIterator

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

GuardUpdateSidechainAddrIterator is returned from FilterUpdateSidechainAddr and is used to iterate over the raw logs and unpacked data for UpdateSidechainAddr events raised by the Guard contract.

func (*GuardUpdateSidechainAddrIterator) Close

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

func (*GuardUpdateSidechainAddrIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardUpdateSidechainAddrIterator) 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 GuardValidatorChange

type GuardValidatorChange struct {
	EthAddr    common.Address
	ChangeType uint8
	Raw        types.Log // Blockchain specific contextual infos
}

GuardValidatorChange represents a ValidatorChange event raised by the Guard contract.

type GuardValidatorChangeIterator

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

GuardValidatorChangeIterator is returned from FilterValidatorChange and is used to iterate over the raw logs and unpacked data for ValidatorChange events raised by the Guard contract.

func (*GuardValidatorChangeIterator) Close

func (it *GuardValidatorChangeIterator) Close() error

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

func (*GuardValidatorChangeIterator) Error

func (it *GuardValidatorChangeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardValidatorChangeIterator) 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 GuardWithdrawFromUnbondedCandidate

type GuardWithdrawFromUnbondedCandidate struct {
	Delegator common.Address
	Candidate common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

GuardWithdrawFromUnbondedCandidate represents a WithdrawFromUnbondedCandidate event raised by the Guard contract.

type GuardWithdrawFromUnbondedCandidateIterator

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

GuardWithdrawFromUnbondedCandidateIterator is returned from FilterWithdrawFromUnbondedCandidate and is used to iterate over the raw logs and unpacked data for WithdrawFromUnbondedCandidate events raised by the Guard contract.

func (*GuardWithdrawFromUnbondedCandidateIterator) Close

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

func (*GuardWithdrawFromUnbondedCandidateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

Jump to

Keyboard shortcuts

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