stakemanager

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const StakemanagerABI = "" /* 3384-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Stakemanager

type Stakemanager struct {
	StakemanagerCaller     // Read-only binding to the contract
	StakemanagerTransactor // Write-only binding to the contract
	StakemanagerFilterer   // Log filterer for contract events
}

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

func NewStakemanager

func NewStakemanager(address common.Address, backend bind.ContractBackend) (*Stakemanager, error)

NewStakemanager creates a new instance of Stakemanager, bound to a specific deployed contract.

type StakemanagerCaller

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

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

func NewStakemanagerCaller

func NewStakemanagerCaller(address common.Address, caller bind.ContractCaller) (*StakemanagerCaller, error)

NewStakemanagerCaller creates a new read-only instance of Stakemanager, bound to a specific deployed contract.

func (*StakemanagerCaller) AccountStateRoot

func (_Stakemanager *StakemanagerCaller) AccountStateRoot(opts *bind.CallOpts) ([32]byte, error)

AccountStateRoot is a free data retrieval call binding the contract method 0x17c2b910.

Solidity: function accountStateRoot() constant returns(bytes32)

func (*StakemanagerCaller) CurrentEpoch

func (_Stakemanager *StakemanagerCaller) CurrentEpoch(opts *bind.CallOpts) (*big.Int, error)

CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.

Solidity: function currentEpoch() constant returns(uint256)

func (*StakemanagerCaller) SupportsHistory

func (_Stakemanager *StakemanagerCaller) SupportsHistory(opts *bind.CallOpts) (bool, error)

SupportsHistory is a free data retrieval call binding the contract method 0x7033e4a6.

Solidity: function supportsHistory() constant returns(bool)

func (*StakemanagerCaller) TotalStakedFor

func (_Stakemanager *StakemanagerCaller) TotalStakedFor(opts *bind.CallOpts, addr common.Address) (*big.Int, error)

TotalStakedFor is a free data retrieval call binding the contract method 0x4b341aed.

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

func (*StakemanagerCaller) WITHDRAWALDELAY

func (_Stakemanager *StakemanagerCaller) 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 StakemanagerCallerRaw

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

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

func (*StakemanagerCallerRaw) Call

func (_Stakemanager *StakemanagerCallerRaw) 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 StakemanagerCallerSession

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

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

func (*StakemanagerCallerSession) AccountStateRoot

func (_Stakemanager *StakemanagerCallerSession) AccountStateRoot() ([32]byte, error)

AccountStateRoot is a free data retrieval call binding the contract method 0x17c2b910.

Solidity: function accountStateRoot() constant returns(bytes32)

func (*StakemanagerCallerSession) CurrentEpoch

func (_Stakemanager *StakemanagerCallerSession) CurrentEpoch() (*big.Int, error)

CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.

Solidity: function currentEpoch() constant returns(uint256)

func (*StakemanagerCallerSession) SupportsHistory

func (_Stakemanager *StakemanagerCallerSession) SupportsHistory() (bool, error)

SupportsHistory is a free data retrieval call binding the contract method 0x7033e4a6.

Solidity: function supportsHistory() constant returns(bool)

func (*StakemanagerCallerSession) TotalStakedFor

func (_Stakemanager *StakemanagerCallerSession) TotalStakedFor(addr common.Address) (*big.Int, error)

TotalStakedFor is a free data retrieval call binding the contract method 0x4b341aed.

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

func (*StakemanagerCallerSession) WITHDRAWALDELAY

func (_Stakemanager *StakemanagerCallerSession) WITHDRAWALDELAY() (*big.Int, error)

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

Solidity: function WITHDRAWAL_DELAY() constant returns(uint256)

type StakemanagerFilterer

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

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

func NewStakemanagerFilterer

func NewStakemanagerFilterer(address common.Address, filterer bind.ContractFilterer) (*StakemanagerFilterer, error)

NewStakemanagerFilterer creates a new log filterer instance of Stakemanager, bound to a specific deployed contract.

type StakemanagerRaw

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

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

func (*StakemanagerRaw) Call

func (_Stakemanager *StakemanagerRaw) 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 (*StakemanagerRaw) Transact

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

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

func (*StakemanagerRaw) Transfer

func (_Stakemanager *StakemanagerRaw) 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 StakemanagerSession

type StakemanagerSession struct {
	Contract     *Stakemanager     // 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
}

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

func (*StakemanagerSession) AccountStateRoot

func (_Stakemanager *StakemanagerSession) AccountStateRoot() ([32]byte, error)

AccountStateRoot is a free data retrieval call binding the contract method 0x17c2b910.

Solidity: function accountStateRoot() constant returns(bytes32)

func (*StakemanagerSession) CheckSignatures

func (_Stakemanager *StakemanagerSession) CheckSignatures(stakePower *big.Int, blockInterval *big.Int, voteHash [32]byte, stateRoot [32]byte, sigs []byte) (*types.Transaction, error)

CheckSignatures is a paid mutator transaction binding the contract method 0x5eca276b.

Solidity: function checkSignatures(uint256 stakePower, uint256 blockInterval, bytes32 voteHash, bytes32 stateRoot, bytes sigs) returns(uint256)

func (*StakemanagerSession) ConfirmAuctionBid

func (_Stakemanager *StakemanagerSession) ConfirmAuctionBid(validatorId *big.Int, heimdallFee *big.Int, signer common.Address, acceptDelegation bool) (*types.Transaction, error)

ConfirmAuctionBid is a paid mutator transaction binding the contract method 0x7d4bd608.

Solidity: function confirmAuctionBid(uint256 validatorId, uint256 heimdallFee, address signer, bool acceptDelegation) returns()

func (*StakemanagerSession) CurrentEpoch

func (_Stakemanager *StakemanagerSession) CurrentEpoch() (*big.Int, error)

CurrentEpoch is a free data retrieval call binding the contract method 0x76671808.

Solidity: function currentEpoch() constant returns(uint256)

func (*StakemanagerSession) DelegationTransfer

func (_Stakemanager *StakemanagerSession) DelegationTransfer(validatorId *big.Int, amount *big.Int, delegator common.Address) (*types.Transaction, error)

DelegationTransfer is a paid mutator transaction binding the contract method 0x4777fb42.

Solidity: function delegationTransfer(uint256 validatorId, uint256 amount, address delegator) returns()

func (*StakemanagerSession) Stake

func (_Stakemanager *StakemanagerSession) Stake(amount *big.Int, heimdallFee *big.Int, signer common.Address, acceptDelegation bool) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0x06254a9c.

Solidity: function stake(uint256 amount, uint256 heimdallFee, address signer, bool acceptDelegation) returns()

func (*StakemanagerSession) StakeFor

func (_Stakemanager *StakemanagerSession) StakeFor(user common.Address, amount *big.Int, heimdallFee *big.Int, signer common.Address, acceptDelegation bool) (*types.Transaction, error)

StakeFor is a paid mutator transaction binding the contract method 0x76324ea5.

Solidity: function stakeFor(address user, uint256 amount, uint256 heimdallFee, address signer, bool acceptDelegation) returns()

func (*StakemanagerSession) StartAuction

func (_Stakemanager *StakemanagerSession) StartAuction(validatorId *big.Int, amount *big.Int) (*types.Transaction, error)

StartAuction is a paid mutator transaction binding the contract method 0x4fee13fc.

Solidity: function startAuction(uint256 validatorId, uint256 amount) returns()

func (*StakemanagerSession) SupportsHistory

func (_Stakemanager *StakemanagerSession) SupportsHistory() (bool, error)

SupportsHistory is a free data retrieval call binding the contract method 0x7033e4a6.

Solidity: function supportsHistory() constant returns(bool)

func (*StakemanagerSession) TotalStakedFor

func (_Stakemanager *StakemanagerSession) TotalStakedFor(addr common.Address) (*big.Int, error)

TotalStakedFor is a free data retrieval call binding the contract method 0x4b341aed.

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

func (*StakemanagerSession) Unstake

func (_Stakemanager *StakemanagerSession) Unstake(validatorId *big.Int) (*types.Transaction, error)

Unstake is a paid mutator transaction binding the contract method 0x2e17de78.

Solidity: function unstake(uint256 validatorId) returns()

func (*StakemanagerSession) UpdateValidatorState

func (_Stakemanager *StakemanagerSession) UpdateValidatorState(validatorId *big.Int, amount *big.Int) (*types.Transaction, error)

UpdateValidatorState is a paid mutator transaction binding the contract method 0x9ff11500.

Solidity: function updateValidatorState(uint256 validatorId, int256 amount) returns()

func (*StakemanagerSession) WITHDRAWALDELAY

func (_Stakemanager *StakemanagerSession) WITHDRAWALDELAY() (*big.Int, error)

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

Solidity: function WITHDRAWAL_DELAY() constant returns(uint256)

type StakemanagerTransactor

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

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

func NewStakemanagerTransactor

func NewStakemanagerTransactor(address common.Address, transactor bind.ContractTransactor) (*StakemanagerTransactor, error)

NewStakemanagerTransactor creates a new write-only instance of Stakemanager, bound to a specific deployed contract.

func (*StakemanagerTransactor) CheckSignatures

func (_Stakemanager *StakemanagerTransactor) CheckSignatures(opts *bind.TransactOpts, stakePower *big.Int, blockInterval *big.Int, voteHash [32]byte, stateRoot [32]byte, sigs []byte) (*types.Transaction, error)

CheckSignatures is a paid mutator transaction binding the contract method 0x5eca276b.

Solidity: function checkSignatures(uint256 stakePower, uint256 blockInterval, bytes32 voteHash, bytes32 stateRoot, bytes sigs) returns(uint256)

func (*StakemanagerTransactor) ConfirmAuctionBid

func (_Stakemanager *StakemanagerTransactor) ConfirmAuctionBid(opts *bind.TransactOpts, validatorId *big.Int, heimdallFee *big.Int, signer common.Address, acceptDelegation bool) (*types.Transaction, error)

ConfirmAuctionBid is a paid mutator transaction binding the contract method 0x7d4bd608.

Solidity: function confirmAuctionBid(uint256 validatorId, uint256 heimdallFee, address signer, bool acceptDelegation) returns()

func (*StakemanagerTransactor) DelegationTransfer

func (_Stakemanager *StakemanagerTransactor) DelegationTransfer(opts *bind.TransactOpts, validatorId *big.Int, amount *big.Int, delegator common.Address) (*types.Transaction, error)

DelegationTransfer is a paid mutator transaction binding the contract method 0x4777fb42.

Solidity: function delegationTransfer(uint256 validatorId, uint256 amount, address delegator) returns()

func (*StakemanagerTransactor) Stake

func (_Stakemanager *StakemanagerTransactor) Stake(opts *bind.TransactOpts, amount *big.Int, heimdallFee *big.Int, signer common.Address, acceptDelegation bool) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0x06254a9c.

Solidity: function stake(uint256 amount, uint256 heimdallFee, address signer, bool acceptDelegation) returns()

func (*StakemanagerTransactor) StakeFor

func (_Stakemanager *StakemanagerTransactor) StakeFor(opts *bind.TransactOpts, user common.Address, amount *big.Int, heimdallFee *big.Int, signer common.Address, acceptDelegation bool) (*types.Transaction, error)

StakeFor is a paid mutator transaction binding the contract method 0x76324ea5.

Solidity: function stakeFor(address user, uint256 amount, uint256 heimdallFee, address signer, bool acceptDelegation) returns()

func (*StakemanagerTransactor) StartAuction

func (_Stakemanager *StakemanagerTransactor) StartAuction(opts *bind.TransactOpts, validatorId *big.Int, amount *big.Int) (*types.Transaction, error)

StartAuction is a paid mutator transaction binding the contract method 0x4fee13fc.

Solidity: function startAuction(uint256 validatorId, uint256 amount) returns()

func (*StakemanagerTransactor) Unstake

func (_Stakemanager *StakemanagerTransactor) Unstake(opts *bind.TransactOpts, validatorId *big.Int) (*types.Transaction, error)

Unstake is a paid mutator transaction binding the contract method 0x2e17de78.

Solidity: function unstake(uint256 validatorId) returns()

func (*StakemanagerTransactor) UpdateValidatorState

func (_Stakemanager *StakemanagerTransactor) UpdateValidatorState(opts *bind.TransactOpts, validatorId *big.Int, amount *big.Int) (*types.Transaction, error)

UpdateValidatorState is a paid mutator transaction binding the contract method 0x9ff11500.

Solidity: function updateValidatorState(uint256 validatorId, int256 amount) returns()

type StakemanagerTransactorRaw

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

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

func (*StakemanagerTransactorRaw) Transact

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

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

func (*StakemanagerTransactorRaw) Transfer

func (_Stakemanager *StakemanagerTransactorRaw) 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 StakemanagerTransactorSession

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

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

func (*StakemanagerTransactorSession) CheckSignatures

func (_Stakemanager *StakemanagerTransactorSession) CheckSignatures(stakePower *big.Int, blockInterval *big.Int, voteHash [32]byte, stateRoot [32]byte, sigs []byte) (*types.Transaction, error)

CheckSignatures is a paid mutator transaction binding the contract method 0x5eca276b.

Solidity: function checkSignatures(uint256 stakePower, uint256 blockInterval, bytes32 voteHash, bytes32 stateRoot, bytes sigs) returns(uint256)

func (*StakemanagerTransactorSession) ConfirmAuctionBid

func (_Stakemanager *StakemanagerTransactorSession) ConfirmAuctionBid(validatorId *big.Int, heimdallFee *big.Int, signer common.Address, acceptDelegation bool) (*types.Transaction, error)

ConfirmAuctionBid is a paid mutator transaction binding the contract method 0x7d4bd608.

Solidity: function confirmAuctionBid(uint256 validatorId, uint256 heimdallFee, address signer, bool acceptDelegation) returns()

func (*StakemanagerTransactorSession) DelegationTransfer

func (_Stakemanager *StakemanagerTransactorSession) DelegationTransfer(validatorId *big.Int, amount *big.Int, delegator common.Address) (*types.Transaction, error)

DelegationTransfer is a paid mutator transaction binding the contract method 0x4777fb42.

Solidity: function delegationTransfer(uint256 validatorId, uint256 amount, address delegator) returns()

func (*StakemanagerTransactorSession) Stake

func (_Stakemanager *StakemanagerTransactorSession) Stake(amount *big.Int, heimdallFee *big.Int, signer common.Address, acceptDelegation bool) (*types.Transaction, error)

Stake is a paid mutator transaction binding the contract method 0x06254a9c.

Solidity: function stake(uint256 amount, uint256 heimdallFee, address signer, bool acceptDelegation) returns()

func (*StakemanagerTransactorSession) StakeFor

func (_Stakemanager *StakemanagerTransactorSession) StakeFor(user common.Address, amount *big.Int, heimdallFee *big.Int, signer common.Address, acceptDelegation bool) (*types.Transaction, error)

StakeFor is a paid mutator transaction binding the contract method 0x76324ea5.

Solidity: function stakeFor(address user, uint256 amount, uint256 heimdallFee, address signer, bool acceptDelegation) returns()

func (*StakemanagerTransactorSession) StartAuction

func (_Stakemanager *StakemanagerTransactorSession) StartAuction(validatorId *big.Int, amount *big.Int) (*types.Transaction, error)

StartAuction is a paid mutator transaction binding the contract method 0x4fee13fc.

Solidity: function startAuction(uint256 validatorId, uint256 amount) returns()

func (*StakemanagerTransactorSession) Unstake

func (_Stakemanager *StakemanagerTransactorSession) Unstake(validatorId *big.Int) (*types.Transaction, error)

Unstake is a paid mutator transaction binding the contract method 0x2e17de78.

Solidity: function unstake(uint256 validatorId) returns()

func (*StakemanagerTransactorSession) UpdateValidatorState

func (_Stakemanager *StakemanagerTransactorSession) UpdateValidatorState(validatorId *big.Int, amount *big.Int) (*types.Transaction, error)

UpdateValidatorState is a paid mutator transaction binding the contract method 0x9ff11500.

Solidity: function updateValidatorState(uint256 validatorId, int256 amount) returns()

Jump to

Keyboard shortcuts

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