contract

package
v0.0.0-rc5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const StaminaABI = "" /* 6480-byte string literal not displayed */

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

View Source
const StaminaBin = `` /* 7884-byte string literal not displayed */

StaminaBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stamina

type Stamina struct {
	StaminaCaller     // Read-only binding to the contract
	StaminaTransactor // Write-only binding to the contract
	StaminaFilterer   // Log filterer for contract events
}

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

func DeployStamina

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

DeployStamina deploys a new Ethereum contract, binding an instance of Stamina to it.

func NewStamina

func NewStamina(address common.Address, backend bind.ContractBackend) (*Stamina, error)

NewStamina creates a new instance of Stamina, bound to a specific deployed contract.

type StaminaCaller

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

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

func NewStaminaCaller

func NewStaminaCaller(address common.Address, caller bind.ContractCaller) (*StaminaCaller, error)

NewStaminaCaller creates a new read-only instance of Stamina, bound to a specific deployed contract.

func (*StaminaCaller) Development

func (_Stamina *StaminaCaller) Development(opts *bind.CallOpts) (bool, error)

Development is a free data retrieval call binding the contract method 0x7b929c27.

Solidity: function development() constant returns(bool)

func (*StaminaCaller) GetDelegatee

func (_Stamina *StaminaCaller) GetDelegatee(opts *bind.CallOpts, delegator common.Address) (common.Address, error)

GetDelegatee is a free data retrieval call binding the contract method 0x9b4e735f.

Solidity: function getDelegatee(delegator address) constant returns(address)

func (*StaminaCaller) GetDeposit

func (_Stamina *StaminaCaller) GetDeposit(opts *bind.CallOpts, depositor common.Address, delegatee common.Address) (*big.Int, error)

GetDeposit is a free data retrieval call binding the contract method 0xc35082a9.

Solidity: function getDeposit(depositor address, delegatee address) constant returns(uint256)

func (*StaminaCaller) GetLastRecoveryBlock

func (_Stamina *StaminaCaller) GetLastRecoveryBlock(opts *bind.CallOpts, delegatee common.Address) (*big.Int, error)

GetLastRecoveryBlock is a free data retrieval call binding the contract method 0x937aaef1.

Solidity: function getLastRecoveryBlock(delegatee address) constant returns(uint256)

func (*StaminaCaller) GetNumRecovery

func (_Stamina *StaminaCaller) GetNumRecovery(opts *bind.CallOpts, delegatee common.Address) (*big.Int, error)

GetNumRecovery is a free data retrieval call binding the contract method 0xb69ad63b.

Solidity: function getNumRecovery(delegatee address) constant returns(uint256)

func (*StaminaCaller) GetNumWithdrawals

func (_Stamina *StaminaCaller) GetNumWithdrawals(opts *bind.CallOpts, depositor common.Address) (*big.Int, error)

GetNumWithdrawals is a free data retrieval call binding the contract method 0xd898ae1c.

Solidity: function getNumWithdrawals(depositor address) constant returns(uint256)

func (*StaminaCaller) GetStamina

func (_Stamina *StaminaCaller) GetStamina(opts *bind.CallOpts, addr common.Address) (*big.Int, error)

GetStamina is a free data retrieval call binding the contract method 0x3900e4ec.

Solidity: function getStamina(addr address) constant returns(uint256)

func (*StaminaCaller) GetTotalDeposit

func (_Stamina *StaminaCaller) GetTotalDeposit(opts *bind.CallOpts, delegatee common.Address) (*big.Int, error)

GetTotalDeposit is a free data retrieval call binding the contract method 0x857184d1.

Solidity: function getTotalDeposit(delegatee address) constant returns(uint256)

func (*StaminaCaller) GetWithdrawal

func (_Stamina *StaminaCaller) GetWithdrawal(opts *bind.CallOpts, depositor common.Address, withdrawalIndex *big.Int) (struct {
	Amount             *big.Int
	RequestBlockNumber *big.Int
	Delegatee          common.Address
	Processed          bool
}, error)

GetWithdrawal is a free data retrieval call binding the contract method 0x5be4f765.

Solidity: function getWithdrawal(depositor address, withdrawalIndex uint256) constant returns(amount uint128, requestBlockNumber uint128, delegatee address, processed bool)

func (*StaminaCaller) Initialized

func (_Stamina *StaminaCaller) Initialized(opts *bind.CallOpts) (bool, error)

Initialized is a free data retrieval call binding the contract method 0x158ef93e.

Solidity: function initialized() constant returns(bool)

func (*StaminaCaller) MINDEPOSIT

func (_Stamina *StaminaCaller) MINDEPOSIT(opts *bind.CallOpts) (*big.Int, error)

MINDEPOSIT is a free data retrieval call binding the contract method 0xe1e158a5.

Solidity: function MIN_DEPOSIT() constant returns(uint256)

func (*StaminaCaller) RECOVEREPOCHLENGTH

func (_Stamina *StaminaCaller) RECOVEREPOCHLENGTH(opts *bind.CallOpts) (*big.Int, error)

RECOVEREPOCHLENGTH is a free data retrieval call binding the contract method 0x1556d8ac.

Solidity: function RECOVER_EPOCH_LENGTH() constant returns(uint256)

func (*StaminaCaller) WITHDRAWALDELAY

func (_Stamina *StaminaCaller) WITHDRAWALDELAY(opts *bind.CallOpts) (*big.Int, error)

WITHDRAWALDELAY is a free data retrieval call binding the contract method 0x0ebb172a.

Solidity: function WITHDRAWAL_DELAY() constant returns(uint256)

type StaminaCallerRaw

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

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

func (*StaminaCallerRaw) Call

func (_Stamina *StaminaCallerRaw) 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 StaminaCallerSession

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

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

func (*StaminaCallerSession) Development

func (_Stamina *StaminaCallerSession) Development() (bool, error)

Development is a free data retrieval call binding the contract method 0x7b929c27.

Solidity: function development() constant returns(bool)

func (*StaminaCallerSession) GetDelegatee

func (_Stamina *StaminaCallerSession) GetDelegatee(delegator common.Address) (common.Address, error)

GetDelegatee is a free data retrieval call binding the contract method 0x9b4e735f.

Solidity: function getDelegatee(delegator address) constant returns(address)

func (*StaminaCallerSession) GetDeposit

func (_Stamina *StaminaCallerSession) GetDeposit(depositor common.Address, delegatee common.Address) (*big.Int, error)

GetDeposit is a free data retrieval call binding the contract method 0xc35082a9.

Solidity: function getDeposit(depositor address, delegatee address) constant returns(uint256)

func (*StaminaCallerSession) GetLastRecoveryBlock

func (_Stamina *StaminaCallerSession) GetLastRecoveryBlock(delegatee common.Address) (*big.Int, error)

GetLastRecoveryBlock is a free data retrieval call binding the contract method 0x937aaef1.

Solidity: function getLastRecoveryBlock(delegatee address) constant returns(uint256)

func (*StaminaCallerSession) GetNumRecovery

func (_Stamina *StaminaCallerSession) GetNumRecovery(delegatee common.Address) (*big.Int, error)

GetNumRecovery is a free data retrieval call binding the contract method 0xb69ad63b.

Solidity: function getNumRecovery(delegatee address) constant returns(uint256)

func (*StaminaCallerSession) GetNumWithdrawals

func (_Stamina *StaminaCallerSession) GetNumWithdrawals(depositor common.Address) (*big.Int, error)

GetNumWithdrawals is a free data retrieval call binding the contract method 0xd898ae1c.

Solidity: function getNumWithdrawals(depositor address) constant returns(uint256)

func (*StaminaCallerSession) GetStamina

func (_Stamina *StaminaCallerSession) GetStamina(addr common.Address) (*big.Int, error)

GetStamina is a free data retrieval call binding the contract method 0x3900e4ec.

Solidity: function getStamina(addr address) constant returns(uint256)

func (*StaminaCallerSession) GetTotalDeposit

func (_Stamina *StaminaCallerSession) GetTotalDeposit(delegatee common.Address) (*big.Int, error)

GetTotalDeposit is a free data retrieval call binding the contract method 0x857184d1.

Solidity: function getTotalDeposit(delegatee address) constant returns(uint256)

func (*StaminaCallerSession) GetWithdrawal

func (_Stamina *StaminaCallerSession) GetWithdrawal(depositor common.Address, withdrawalIndex *big.Int) (struct {
	Amount             *big.Int
	RequestBlockNumber *big.Int
	Delegatee          common.Address
	Processed          bool
}, error)

GetWithdrawal is a free data retrieval call binding the contract method 0x5be4f765.

Solidity: function getWithdrawal(depositor address, withdrawalIndex uint256) constant returns(amount uint128, requestBlockNumber uint128, delegatee address, processed bool)

func (*StaminaCallerSession) Initialized

func (_Stamina *StaminaCallerSession) Initialized() (bool, error)

Initialized is a free data retrieval call binding the contract method 0x158ef93e.

Solidity: function initialized() constant returns(bool)

func (*StaminaCallerSession) MINDEPOSIT

func (_Stamina *StaminaCallerSession) MINDEPOSIT() (*big.Int, error)

MINDEPOSIT is a free data retrieval call binding the contract method 0xe1e158a5.

Solidity: function MIN_DEPOSIT() constant returns(uint256)

func (*StaminaCallerSession) RECOVEREPOCHLENGTH

func (_Stamina *StaminaCallerSession) RECOVEREPOCHLENGTH() (*big.Int, error)

RECOVEREPOCHLENGTH is a free data retrieval call binding the contract method 0x1556d8ac.

Solidity: function RECOVER_EPOCH_LENGTH() constant returns(uint256)

func (*StaminaCallerSession) WITHDRAWALDELAY

func (_Stamina *StaminaCallerSession) WITHDRAWALDELAY() (*big.Int, error)

WITHDRAWALDELAY is a free data retrieval call binding the contract method 0x0ebb172a.

Solidity: function WITHDRAWAL_DELAY() constant returns(uint256)

type StaminaDelegateeChanged

type StaminaDelegateeChanged struct {
	Delegator    common.Address
	OldDelegatee common.Address
	NewDelegatee common.Address
	Raw          types.Log // Blockchain specific contextual infos
}

StaminaDelegateeChanged represents a DelegateeChanged event raised by the Stamina contract.

type StaminaDelegateeChangedIterator

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

StaminaDelegateeChangedIterator is returned from FilterDelegateeChanged and is used to iterate over the raw logs and unpacked data for DelegateeChanged events raised by the Stamina contract.

func (*StaminaDelegateeChangedIterator) Close

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

func (*StaminaDelegateeChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StaminaDeposited struct {
	Depositor common.Address
	Delegatee common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StaminaDeposited represents a Deposited event raised by the Stamina contract.

type StaminaDepositedIterator

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

StaminaDepositedIterator is returned from FilterDeposited and is used to iterate over the raw logs and unpacked data for Deposited events raised by the Stamina contract.

func (*StaminaDepositedIterator) Close

func (it *StaminaDepositedIterator) Close() error

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

func (*StaminaDepositedIterator) Error

func (it *StaminaDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaminaDepositedIterator) Next

func (it *StaminaDepositedIterator) 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 StaminaFilterer

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

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

func NewStaminaFilterer

func NewStaminaFilterer(address common.Address, filterer bind.ContractFilterer) (*StaminaFilterer, error)

NewStaminaFilterer creates a new log filterer instance of Stamina, bound to a specific deployed contract.

func (*StaminaFilterer) FilterDelegateeChanged

func (_Stamina *StaminaFilterer) FilterDelegateeChanged(opts *bind.FilterOpts, delegator []common.Address) (*StaminaDelegateeChangedIterator, error)

FilterDelegateeChanged is a free log retrieval operation binding the contract event 0x5884d7e3ec123de8e772bcf576c18dcdad75b056c4314f999ed966693419c692.

Solidity: e DelegateeChanged(delegator indexed address, oldDelegatee address, newDelegatee address)

func (*StaminaFilterer) FilterDeposited

func (_Stamina *StaminaFilterer) FilterDeposited(opts *bind.FilterOpts, depositor []common.Address, delegatee []common.Address) (*StaminaDepositedIterator, error)

FilterDeposited is a free log retrieval operation binding the contract event 0x8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7.

Solidity: e Deposited(depositor indexed address, delegatee indexed address, amount uint256)

func (*StaminaFilterer) FilterStaminaAdded

func (_Stamina *StaminaFilterer) FilterStaminaAdded(opts *bind.FilterOpts, delegatee []common.Address) (*StaminaStaminaAddedIterator, error)

FilterStaminaAdded is a free log retrieval operation binding the contract event 0x85bf8701ef98ea32e97f08708da81c7daa93e87ea3e2fd661801cce6d36f6809.

Solidity: e StaminaAdded(delegatee indexed address, amount uint256, recovered bool)

func (*StaminaFilterer) FilterStaminaSubtracted

func (_Stamina *StaminaFilterer) FilterStaminaSubtracted(opts *bind.FilterOpts, delegatee []common.Address) (*StaminaStaminaSubtractedIterator, error)

FilterStaminaSubtracted is a free log retrieval operation binding the contract event 0x66649d0546ffaed7a9e91793ec2fba0941afa9ebed5b599a8031611ad911fd2f.

Solidity: e StaminaSubtracted(delegatee indexed address, amount uint256)

func (*StaminaFilterer) FilterWithdrawalRequested

func (_Stamina *StaminaFilterer) FilterWithdrawalRequested(opts *bind.FilterOpts, depositor []common.Address, delegatee []common.Address) (*StaminaWithdrawalRequestedIterator, error)

FilterWithdrawalRequested is a free log retrieval operation binding the contract event 0x3aeb15af61588a39bcfafb19ed853140d195c2a924537afbf9a6d04348e76a69.

Solidity: e WithdrawalRequested(depositor indexed address, delegatee indexed address, amount uint256, requestBlockNumber uint256, withdrawalIndex uint256)

func (*StaminaFilterer) FilterWithdrawn

func (_Stamina *StaminaFilterer) FilterWithdrawn(opts *bind.FilterOpts, depositor []common.Address, delegatee []common.Address) (*StaminaWithdrawnIterator, error)

FilterWithdrawn is a free log retrieval operation binding the contract event 0x91fb9d98b786c57d74c099ccd2beca1739e9f6a81fb49001ca465c4b7591bbe2.

Solidity: e Withdrawn(depositor indexed address, delegatee indexed address, amount uint256, withdrawalIndex uint256)

func (*StaminaFilterer) WatchDelegateeChanged

func (_Stamina *StaminaFilterer) WatchDelegateeChanged(opts *bind.WatchOpts, sink chan<- *StaminaDelegateeChanged, delegator []common.Address) (event.Subscription, error)

WatchDelegateeChanged is a free log subscription operation binding the contract event 0x5884d7e3ec123de8e772bcf576c18dcdad75b056c4314f999ed966693419c692.

Solidity: e DelegateeChanged(delegator indexed address, oldDelegatee address, newDelegatee address)

func (*StaminaFilterer) WatchDeposited

func (_Stamina *StaminaFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *StaminaDeposited, depositor []common.Address, delegatee []common.Address) (event.Subscription, error)

WatchDeposited is a free log subscription operation binding the contract event 0x8752a472e571a816aea92eec8dae9baf628e840f4929fbcc2d155e6233ff68a7.

Solidity: e Deposited(depositor indexed address, delegatee indexed address, amount uint256)

func (*StaminaFilterer) WatchStaminaAdded

func (_Stamina *StaminaFilterer) WatchStaminaAdded(opts *bind.WatchOpts, sink chan<- *StaminaStaminaAdded, delegatee []common.Address) (event.Subscription, error)

WatchStaminaAdded is a free log subscription operation binding the contract event 0x85bf8701ef98ea32e97f08708da81c7daa93e87ea3e2fd661801cce6d36f6809.

Solidity: e StaminaAdded(delegatee indexed address, amount uint256, recovered bool)

func (*StaminaFilterer) WatchStaminaSubtracted

func (_Stamina *StaminaFilterer) WatchStaminaSubtracted(opts *bind.WatchOpts, sink chan<- *StaminaStaminaSubtracted, delegatee []common.Address) (event.Subscription, error)

WatchStaminaSubtracted is a free log subscription operation binding the contract event 0x66649d0546ffaed7a9e91793ec2fba0941afa9ebed5b599a8031611ad911fd2f.

Solidity: e StaminaSubtracted(delegatee indexed address, amount uint256)

func (*StaminaFilterer) WatchWithdrawalRequested

func (_Stamina *StaminaFilterer) WatchWithdrawalRequested(opts *bind.WatchOpts, sink chan<- *StaminaWithdrawalRequested, depositor []common.Address, delegatee []common.Address) (event.Subscription, error)

WatchWithdrawalRequested is a free log subscription operation binding the contract event 0x3aeb15af61588a39bcfafb19ed853140d195c2a924537afbf9a6d04348e76a69.

Solidity: e WithdrawalRequested(depositor indexed address, delegatee indexed address, amount uint256, requestBlockNumber uint256, withdrawalIndex uint256)

func (*StaminaFilterer) WatchWithdrawn

func (_Stamina *StaminaFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *StaminaWithdrawn, depositor []common.Address, delegatee []common.Address) (event.Subscription, error)

WatchWithdrawn is a free log subscription operation binding the contract event 0x91fb9d98b786c57d74c099ccd2beca1739e9f6a81fb49001ca465c4b7591bbe2.

Solidity: e Withdrawn(depositor indexed address, delegatee indexed address, amount uint256, withdrawalIndex uint256)

type StaminaRaw

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

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

func (*StaminaRaw) Call

func (_Stamina *StaminaRaw) 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 (*StaminaRaw) Transact

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

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

func (*StaminaRaw) Transfer

func (_Stamina *StaminaRaw) 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 StaminaSession

type StaminaSession struct {
	Contract     *Stamina          // 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
}

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

func (*StaminaSession) AddStamina

func (_Stamina *StaminaSession) AddStamina(delegatee common.Address, amount *big.Int) (*types.Transaction, error)

AddStamina is a paid mutator transaction binding the contract method 0xbcac9736.

Solidity: function addStamina(delegatee address, amount uint256) returns(bool)

func (*StaminaSession) Deposit

func (_Stamina *StaminaSession) Deposit(delegatee common.Address) (*types.Transaction, error)

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

Solidity: function deposit(delegatee address) returns(bool)

func (*StaminaSession) Development

func (_Stamina *StaminaSession) Development() (bool, error)

Development is a free data retrieval call binding the contract method 0x7b929c27.

Solidity: function development() constant returns(bool)

func (*StaminaSession) GetDelegatee

func (_Stamina *StaminaSession) GetDelegatee(delegator common.Address) (common.Address, error)

GetDelegatee is a free data retrieval call binding the contract method 0x9b4e735f.

Solidity: function getDelegatee(delegator address) constant returns(address)

func (*StaminaSession) GetDeposit

func (_Stamina *StaminaSession) GetDeposit(depositor common.Address, delegatee common.Address) (*big.Int, error)

GetDeposit is a free data retrieval call binding the contract method 0xc35082a9.

Solidity: function getDeposit(depositor address, delegatee address) constant returns(uint256)

func (*StaminaSession) GetLastRecoveryBlock

func (_Stamina *StaminaSession) GetLastRecoveryBlock(delegatee common.Address) (*big.Int, error)

GetLastRecoveryBlock is a free data retrieval call binding the contract method 0x937aaef1.

Solidity: function getLastRecoveryBlock(delegatee address) constant returns(uint256)

func (*StaminaSession) GetNumRecovery

func (_Stamina *StaminaSession) GetNumRecovery(delegatee common.Address) (*big.Int, error)

GetNumRecovery is a free data retrieval call binding the contract method 0xb69ad63b.

Solidity: function getNumRecovery(delegatee address) constant returns(uint256)

func (*StaminaSession) GetNumWithdrawals

func (_Stamina *StaminaSession) GetNumWithdrawals(depositor common.Address) (*big.Int, error)

GetNumWithdrawals is a free data retrieval call binding the contract method 0xd898ae1c.

Solidity: function getNumWithdrawals(depositor address) constant returns(uint256)

func (*StaminaSession) GetStamina

func (_Stamina *StaminaSession) GetStamina(addr common.Address) (*big.Int, error)

GetStamina is a free data retrieval call binding the contract method 0x3900e4ec.

Solidity: function getStamina(addr address) constant returns(uint256)

func (*StaminaSession) GetTotalDeposit

func (_Stamina *StaminaSession) GetTotalDeposit(delegatee common.Address) (*big.Int, error)

GetTotalDeposit is a free data retrieval call binding the contract method 0x857184d1.

Solidity: function getTotalDeposit(delegatee address) constant returns(uint256)

func (*StaminaSession) GetWithdrawal

func (_Stamina *StaminaSession) GetWithdrawal(depositor common.Address, withdrawalIndex *big.Int) (struct {
	Amount             *big.Int
	RequestBlockNumber *big.Int
	Delegatee          common.Address
	Processed          bool
}, error)

GetWithdrawal is a free data retrieval call binding the contract method 0x5be4f765.

Solidity: function getWithdrawal(depositor address, withdrawalIndex uint256) constant returns(amount uint128, requestBlockNumber uint128, delegatee address, processed bool)

func (*StaminaSession) Init

func (_Stamina *StaminaSession) Init(minDeposit *big.Int, recoveryEpochLength *big.Int, withdrawalDelay *big.Int) (*types.Transaction, error)

Init is a paid mutator transaction binding the contract method 0x8cd8db8a.

Solidity: function init(minDeposit uint256, recoveryEpochLength uint256, withdrawalDelay uint256) returns()

func (*StaminaSession) Initialized

func (_Stamina *StaminaSession) Initialized() (bool, error)

Initialized is a free data retrieval call binding the contract method 0x158ef93e.

Solidity: function initialized() constant returns(bool)

func (*StaminaSession) MINDEPOSIT

func (_Stamina *StaminaSession) MINDEPOSIT() (*big.Int, error)

MINDEPOSIT is a free data retrieval call binding the contract method 0xe1e158a5.

Solidity: function MIN_DEPOSIT() constant returns(uint256)

func (*StaminaSession) RECOVEREPOCHLENGTH

func (_Stamina *StaminaSession) RECOVEREPOCHLENGTH() (*big.Int, error)

RECOVEREPOCHLENGTH is a free data retrieval call binding the contract method 0x1556d8ac.

Solidity: function RECOVER_EPOCH_LENGTH() constant returns(uint256)

func (*StaminaSession) RequestWithdrawal

func (_Stamina *StaminaSession) RequestWithdrawal(delegatee common.Address, amount *big.Int) (*types.Transaction, error)

RequestWithdrawal is a paid mutator transaction binding the contract method 0xda95ebf7.

Solidity: function requestWithdrawal(delegatee address, amount uint256) returns(bool)

func (*StaminaSession) SetDelegator

func (_Stamina *StaminaSession) SetDelegator(delegator common.Address) (*types.Transaction, error)

SetDelegator is a paid mutator transaction binding the contract method 0x83cd9cc3.

Solidity: function setDelegator(delegator address) returns(bool)

func (*StaminaSession) SubtractStamina

func (_Stamina *StaminaSession) SubtractStamina(delegatee common.Address, amount *big.Int) (*types.Transaction, error)

SubtractStamina is a paid mutator transaction binding the contract method 0xd1c0c042.

Solidity: function subtractStamina(delegatee address, amount uint256) returns(bool)

func (*StaminaSession) WITHDRAWALDELAY

func (_Stamina *StaminaSession) WITHDRAWALDELAY() (*big.Int, error)

WITHDRAWALDELAY is a free data retrieval call binding the contract method 0x0ebb172a.

Solidity: function WITHDRAWAL_DELAY() constant returns(uint256)

func (*StaminaSession) Withdraw

func (_Stamina *StaminaSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns(bool)

type StaminaStaminaAdded

type StaminaStaminaAdded struct {
	Delegatee common.Address
	Amount    *big.Int
	Recovered bool
	Raw       types.Log // Blockchain specific contextual infos
}

StaminaStaminaAdded represents a StaminaAdded event raised by the Stamina contract.

type StaminaStaminaAddedIterator

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

StaminaStaminaAddedIterator is returned from FilterStaminaAdded and is used to iterate over the raw logs and unpacked data for StaminaAdded events raised by the Stamina contract.

func (*StaminaStaminaAddedIterator) Close

func (it *StaminaStaminaAddedIterator) Close() error

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

func (*StaminaStaminaAddedIterator) Error

func (it *StaminaStaminaAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaminaStaminaAddedIterator) Next

func (it *StaminaStaminaAddedIterator) 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 StaminaStaminaSubtracted

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

StaminaStaminaSubtracted represents a StaminaSubtracted event raised by the Stamina contract.

type StaminaStaminaSubtractedIterator

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

StaminaStaminaSubtractedIterator is returned from FilterStaminaSubtracted and is used to iterate over the raw logs and unpacked data for StaminaSubtracted events raised by the Stamina contract.

func (*StaminaStaminaSubtractedIterator) Close

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

func (*StaminaStaminaSubtractedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewStaminaTransactor

func NewStaminaTransactor(address common.Address, transactor bind.ContractTransactor) (*StaminaTransactor, error)

NewStaminaTransactor creates a new write-only instance of Stamina, bound to a specific deployed contract.

func (*StaminaTransactor) AddStamina

func (_Stamina *StaminaTransactor) AddStamina(opts *bind.TransactOpts, delegatee common.Address, amount *big.Int) (*types.Transaction, error)

AddStamina is a paid mutator transaction binding the contract method 0xbcac9736.

Solidity: function addStamina(delegatee address, amount uint256) returns(bool)

func (*StaminaTransactor) Deposit

func (_Stamina *StaminaTransactor) Deposit(opts *bind.TransactOpts, delegatee common.Address) (*types.Transaction, error)

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

Solidity: function deposit(delegatee address) returns(bool)

func (*StaminaTransactor) Init

func (_Stamina *StaminaTransactor) Init(opts *bind.TransactOpts, minDeposit *big.Int, recoveryEpochLength *big.Int, withdrawalDelay *big.Int) (*types.Transaction, error)

Init is a paid mutator transaction binding the contract method 0x8cd8db8a.

Solidity: function init(minDeposit uint256, recoveryEpochLength uint256, withdrawalDelay uint256) returns()

func (*StaminaTransactor) RequestWithdrawal

func (_Stamina *StaminaTransactor) RequestWithdrawal(opts *bind.TransactOpts, delegatee common.Address, amount *big.Int) (*types.Transaction, error)

RequestWithdrawal is a paid mutator transaction binding the contract method 0xda95ebf7.

Solidity: function requestWithdrawal(delegatee address, amount uint256) returns(bool)

func (*StaminaTransactor) SetDelegator

func (_Stamina *StaminaTransactor) SetDelegator(opts *bind.TransactOpts, delegator common.Address) (*types.Transaction, error)

SetDelegator is a paid mutator transaction binding the contract method 0x83cd9cc3.

Solidity: function setDelegator(delegator address) returns(bool)

func (*StaminaTransactor) SubtractStamina

func (_Stamina *StaminaTransactor) SubtractStamina(opts *bind.TransactOpts, delegatee common.Address, amount *big.Int) (*types.Transaction, error)

SubtractStamina is a paid mutator transaction binding the contract method 0xd1c0c042.

Solidity: function subtractStamina(delegatee address, amount uint256) returns(bool)

func (*StaminaTransactor) Withdraw

func (_Stamina *StaminaTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns(bool)

type StaminaTransactorRaw

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

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

func (*StaminaTransactorRaw) Transact

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

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

func (*StaminaTransactorRaw) Transfer

func (_Stamina *StaminaTransactorRaw) 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 StaminaTransactorSession

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

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

func (*StaminaTransactorSession) AddStamina

func (_Stamina *StaminaTransactorSession) AddStamina(delegatee common.Address, amount *big.Int) (*types.Transaction, error)

AddStamina is a paid mutator transaction binding the contract method 0xbcac9736.

Solidity: function addStamina(delegatee address, amount uint256) returns(bool)

func (*StaminaTransactorSession) Deposit

func (_Stamina *StaminaTransactorSession) Deposit(delegatee common.Address) (*types.Transaction, error)

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

Solidity: function deposit(delegatee address) returns(bool)

func (*StaminaTransactorSession) Init

func (_Stamina *StaminaTransactorSession) Init(minDeposit *big.Int, recoveryEpochLength *big.Int, withdrawalDelay *big.Int) (*types.Transaction, error)

Init is a paid mutator transaction binding the contract method 0x8cd8db8a.

Solidity: function init(minDeposit uint256, recoveryEpochLength uint256, withdrawalDelay uint256) returns()

func (*StaminaTransactorSession) RequestWithdrawal

func (_Stamina *StaminaTransactorSession) RequestWithdrawal(delegatee common.Address, amount *big.Int) (*types.Transaction, error)

RequestWithdrawal is a paid mutator transaction binding the contract method 0xda95ebf7.

Solidity: function requestWithdrawal(delegatee address, amount uint256) returns(bool)

func (*StaminaTransactorSession) SetDelegator

func (_Stamina *StaminaTransactorSession) SetDelegator(delegator common.Address) (*types.Transaction, error)

SetDelegator is a paid mutator transaction binding the contract method 0x83cd9cc3.

Solidity: function setDelegator(delegator address) returns(bool)

func (*StaminaTransactorSession) SubtractStamina

func (_Stamina *StaminaTransactorSession) SubtractStamina(delegatee common.Address, amount *big.Int) (*types.Transaction, error)

SubtractStamina is a paid mutator transaction binding the contract method 0xd1c0c042.

Solidity: function subtractStamina(delegatee address, amount uint256) returns(bool)

func (*StaminaTransactorSession) Withdraw

func (_Stamina *StaminaTransactorSession) Withdraw() (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.

Solidity: function withdraw() returns(bool)

type StaminaWithdrawalRequested

type StaminaWithdrawalRequested struct {
	Depositor          common.Address
	Delegatee          common.Address
	Amount             *big.Int
	RequestBlockNumber *big.Int
	WithdrawalIndex    *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

StaminaWithdrawalRequested represents a WithdrawalRequested event raised by the Stamina contract.

type StaminaWithdrawalRequestedIterator

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

StaminaWithdrawalRequestedIterator is returned from FilterWithdrawalRequested and is used to iterate over the raw logs and unpacked data for WithdrawalRequested events raised by the Stamina contract.

func (*StaminaWithdrawalRequestedIterator) Close

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

func (*StaminaWithdrawalRequestedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StaminaWithdrawn struct {
	Depositor       common.Address
	Delegatee       common.Address
	Amount          *big.Int
	WithdrawalIndex *big.Int
	Raw             types.Log // Blockchain specific contextual infos
}

StaminaWithdrawn represents a Withdrawn event raised by the Stamina contract.

type StaminaWithdrawnIterator

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

StaminaWithdrawnIterator is returned from FilterWithdrawn and is used to iterate over the raw logs and unpacked data for Withdrawn events raised by the Stamina contract.

func (*StaminaWithdrawnIterator) Close

func (it *StaminaWithdrawnIterator) Close() error

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

func (*StaminaWithdrawnIterator) Error

func (it *StaminaWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StaminaWithdrawnIterator) Next

func (it *StaminaWithdrawnIterator) 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.

Jump to

Keyboard shortcuts

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