SimplePREApplication

notice

Contract handles PRE configuration

events

OperatorBonded(address,address,uint256)

notice

Signals that an operator was bonded to the staking provider

params

operator

Operator address

stakingProvider

Staking provider address

startTimestamp

Timestamp bonding occurred

OperatorConfirmed(address,address)

notice

Signals that an operator address is confirmed

params

operator

Operator address

stakingProvider

Staking provider address

methods

authorizedStake(address)

notice

Get all tokens delegated to the staking provider

bondOperator(address,address)

notice

Bond operator

params

_operator

Operator address. Must be a real address, not a contract

_stakingProvider

Staking provider address

confirmOperatorAddress()

notice

Make a confirmation by operator

constructor

notice

Constructor sets address of token contract and parameters for staking

params

_minAuthorization

Amount of minimum allowable authorization

_minOperatorSeconds

Min amount of seconds while an operator can’t be changed

_tStaking

T token staking contract

getActiveStakingProviders(uint256,uint256)

details

Note that activeStakingProviders[0] is an array of uint256, but you want addresses. Careful when used directly!

notice

Get the value of authorized tokens for active providers as well as providers and their authorized tokens

params

_maxStakingProviders

Max providers for looking, if set 0 then all will be used

_startIndex

Start index for looking in providers array

returns

activeStakingProviders

Array of providers and their authorized tokens. Providers addresses stored as uint256

allAuthorizedTokens

Sum of authorized tokens for active providers

getBeneficiary(address)

notice

Returns beneficiary related to the staking provider

getOperatorFromStakingProvider(address)

notice

Returns operator for specified staking provider

getStakingProvidersLength()

notice

Return the length of the array of staking providers

isAuthorized(address)

notice

Returns true if staking provider has authorized stake to this application

isOperatorConfirmed(address)

notice

Returns true if operator has confirmed address

stakingProviderFromOperator(address)

notice

Returns staking provider for specified operator