bondstaking

package
v1.1.1-rc-29 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BondstakingABI = "" /* 5163-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Bondstaking

type Bondstaking struct {
	BondstakingCaller     // Read-only binding to the contract
	BondstakingTransactor // Write-only binding to the contract
	BondstakingFilterer   // Log filterer for contract events
}

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

func NewBondstaking

func NewBondstaking(address common.Address, backend bind.ContractBackend) (*Bondstaking, error)

NewBondstaking creates a new instance of Bondstaking, bound to a specific deployed contract.

type BondstakingCaller

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

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

func NewBondstakingCaller

func NewBondstakingCaller(address common.Address, caller bind.ContractCaller) (*BondstakingCaller, error)

NewBondstakingCaller creates a new read-only instance of Bondstaking, bound to a specific deployed contract.

func (*BondstakingCaller) BalanceOf

func (_Bondstaking *BondstakingCaller) BalanceOf(opts *bind.CallOpts, user common.Address, token common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0xf7888aec.

Solidity: function balanceOf(address user, address token) view returns(uint256)

func (*BondstakingCaller) ComputeNewMultiplier

func (_Bondstaking *BondstakingCaller) ComputeNewMultiplier(opts *bind.CallOpts, prevBalance *big.Int, prevMultiplier *big.Int, amount *big.Int, currentMultiplier *big.Int) (*big.Int, error)

ComputeNewMultiplier is a free data retrieval call binding the contract method 0x4be41dba.

Solidity: function computeNewMultiplier(uint256 prevBalance, uint128 prevMultiplier, uint256 amount, uint128 currentMultiplier) pure returns(uint128)

func (*BondstakingCaller) CurrentEpochMultiplier

func (_Bondstaking *BondstakingCaller) CurrentEpochMultiplier(opts *bind.CallOpts) (*big.Int, error)

CurrentEpochMultiplier is a free data retrieval call binding the contract method 0xce58a2a8.

Solidity: function currentEpochMultiplier() view returns(uint128)

func (*BondstakingCaller) Epoch1Start

func (_Bondstaking *BondstakingCaller) Epoch1Start(opts *bind.CallOpts) (*big.Int, error)

Epoch1Start is a free data retrieval call binding the contract method 0xf4a4341d.

Solidity: function epoch1Start() view returns(uint256)

func (*BondstakingCaller) EpochDuration

func (_Bondstaking *BondstakingCaller) EpochDuration(opts *bind.CallOpts) (*big.Int, error)

EpochDuration is a free data retrieval call binding the contract method 0x4ff0876a.

Solidity: function epochDuration() view returns(uint256)

func (*BondstakingCaller) EpochIsInitialized

func (_Bondstaking *BondstakingCaller) EpochIsInitialized(opts *bind.CallOpts, token common.Address, epochId *big.Int) (bool, error)

EpochIsInitialized is a free data retrieval call binding the contract method 0xaa579154.

Solidity: function epochIsInitialized(address token, uint128 epochId) view returns(bool)

func (*BondstakingCaller) GetCurrentEpoch

func (_Bondstaking *BondstakingCaller) GetCurrentEpoch(opts *bind.CallOpts) (*big.Int, error)

GetCurrentEpoch is a free data retrieval call binding the contract method 0xb97dd9e2.

Solidity: function getCurrentEpoch() view returns(uint128)

func (*BondstakingCaller) GetEpochPoolSize

func (_Bondstaking *BondstakingCaller) GetEpochPoolSize(opts *bind.CallOpts, tokenAddress common.Address, epochId *big.Int) (*big.Int, error)

GetEpochPoolSize is a free data retrieval call binding the contract method 0x2ca32d7e.

Solidity: function getEpochPoolSize(address tokenAddress, uint128 epochId) view returns(uint256)

func (*BondstakingCaller) GetEpochUserBalance

func (_Bondstaking *BondstakingCaller) GetEpochUserBalance(opts *bind.CallOpts, user common.Address, token common.Address, epochId *big.Int) (*big.Int, error)

GetEpochUserBalance is a free data retrieval call binding the contract method 0x8c028dd0.

Solidity: function getEpochUserBalance(address user, address token, uint128 epochId) view returns(uint256)

type BondstakingCallerRaw

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

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

func (*BondstakingCallerRaw) Call

func (_Bondstaking *BondstakingCallerRaw) 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 BondstakingCallerSession

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

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

func (*BondstakingCallerSession) BalanceOf

func (_Bondstaking *BondstakingCallerSession) BalanceOf(user common.Address, token common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0xf7888aec.

Solidity: function balanceOf(address user, address token) view returns(uint256)

func (*BondstakingCallerSession) ComputeNewMultiplier

func (_Bondstaking *BondstakingCallerSession) ComputeNewMultiplier(prevBalance *big.Int, prevMultiplier *big.Int, amount *big.Int, currentMultiplier *big.Int) (*big.Int, error)

ComputeNewMultiplier is a free data retrieval call binding the contract method 0x4be41dba.

Solidity: function computeNewMultiplier(uint256 prevBalance, uint128 prevMultiplier, uint256 amount, uint128 currentMultiplier) pure returns(uint128)

func (*BondstakingCallerSession) CurrentEpochMultiplier

func (_Bondstaking *BondstakingCallerSession) CurrentEpochMultiplier() (*big.Int, error)

CurrentEpochMultiplier is a free data retrieval call binding the contract method 0xce58a2a8.

Solidity: function currentEpochMultiplier() view returns(uint128)

func (*BondstakingCallerSession) Epoch1Start

func (_Bondstaking *BondstakingCallerSession) Epoch1Start() (*big.Int, error)

Epoch1Start is a free data retrieval call binding the contract method 0xf4a4341d.

Solidity: function epoch1Start() view returns(uint256)

func (*BondstakingCallerSession) EpochDuration

func (_Bondstaking *BondstakingCallerSession) EpochDuration() (*big.Int, error)

EpochDuration is a free data retrieval call binding the contract method 0x4ff0876a.

Solidity: function epochDuration() view returns(uint256)

func (*BondstakingCallerSession) EpochIsInitialized

func (_Bondstaking *BondstakingCallerSession) EpochIsInitialized(token common.Address, epochId *big.Int) (bool, error)

EpochIsInitialized is a free data retrieval call binding the contract method 0xaa579154.

Solidity: function epochIsInitialized(address token, uint128 epochId) view returns(bool)

func (*BondstakingCallerSession) GetCurrentEpoch

func (_Bondstaking *BondstakingCallerSession) GetCurrentEpoch() (*big.Int, error)

GetCurrentEpoch is a free data retrieval call binding the contract method 0xb97dd9e2.

Solidity: function getCurrentEpoch() view returns(uint128)

func (*BondstakingCallerSession) GetEpochPoolSize

func (_Bondstaking *BondstakingCallerSession) GetEpochPoolSize(tokenAddress common.Address, epochId *big.Int) (*big.Int, error)

GetEpochPoolSize is a free data retrieval call binding the contract method 0x2ca32d7e.

Solidity: function getEpochPoolSize(address tokenAddress, uint128 epochId) view returns(uint256)

func (*BondstakingCallerSession) GetEpochUserBalance

func (_Bondstaking *BondstakingCallerSession) GetEpochUserBalance(user common.Address, token common.Address, epochId *big.Int) (*big.Int, error)

GetEpochUserBalance is a free data retrieval call binding the contract method 0x8c028dd0.

Solidity: function getEpochUserBalance(address user, address token, uint128 epochId) view returns(uint256)

type BondstakingDeposit

type BondstakingDeposit struct {
	User         common.Address
	TokenAddress common.Address
	Amount       *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

BondstakingDeposit represents a Deposit event raised by the Bondstaking contract.

type BondstakingDepositIterator

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

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

func (*BondstakingDepositIterator) Close

func (it *BondstakingDepositIterator) Close() error

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

func (*BondstakingDepositIterator) Error

func (it *BondstakingDepositIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BondstakingDepositIterator) Next

func (it *BondstakingDepositIterator) 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 BondstakingEmergencyWithdraw

type BondstakingEmergencyWithdraw struct {
	User         common.Address
	TokenAddress common.Address
	Amount       *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

BondstakingEmergencyWithdraw represents a EmergencyWithdraw event raised by the Bondstaking contract.

type BondstakingEmergencyWithdrawIterator

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

BondstakingEmergencyWithdrawIterator is returned from FilterEmergencyWithdraw and is used to iterate over the raw logs and unpacked data for EmergencyWithdraw events raised by the Bondstaking contract.

func (*BondstakingEmergencyWithdrawIterator) Close

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

func (*BondstakingEmergencyWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func NewBondstakingFilterer

func NewBondstakingFilterer(address common.Address, filterer bind.ContractFilterer) (*BondstakingFilterer, error)

NewBondstakingFilterer creates a new log filterer instance of Bondstaking, bound to a specific deployed contract.

func (*BondstakingFilterer) FilterDeposit

func (_Bondstaking *BondstakingFilterer) FilterDeposit(opts *bind.FilterOpts, user []common.Address, tokenAddress []common.Address) (*BondstakingDepositIterator, error)

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

Solidity: event Deposit(address indexed user, address indexed tokenAddress, uint256 amount)

func (*BondstakingFilterer) FilterEmergencyWithdraw

func (_Bondstaking *BondstakingFilterer) FilterEmergencyWithdraw(opts *bind.FilterOpts, user []common.Address, tokenAddress []common.Address) (*BondstakingEmergencyWithdrawIterator, error)

FilterEmergencyWithdraw is a free log retrieval operation binding the contract event 0xf24ef89f38eadc1bde50701ad6e4d6d11a2dc24f7cf834a486991f3883328504.

Solidity: event EmergencyWithdraw(address indexed user, address indexed tokenAddress, uint256 amount)

func (*BondstakingFilterer) FilterManualEpochInit

func (_Bondstaking *BondstakingFilterer) FilterManualEpochInit(opts *bind.FilterOpts, caller []common.Address, epochId []*big.Int) (*BondstakingManualEpochInitIterator, error)

FilterManualEpochInit is a free log retrieval operation binding the contract event 0xb85c32b8d9cecc81feba78646289584a693e9a8afea40ab2fd31efae4408429f.

Solidity: event ManualEpochInit(address indexed caller, uint128 indexed epochId, address[] tokens)

func (*BondstakingFilterer) FilterWithdraw

func (_Bondstaking *BondstakingFilterer) FilterWithdraw(opts *bind.FilterOpts, user []common.Address, tokenAddress []common.Address) (*BondstakingWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb.

Solidity: event Withdraw(address indexed user, address indexed tokenAddress, uint256 amount)

func (*BondstakingFilterer) ParseDeposit

func (_Bondstaking *BondstakingFilterer) ParseDeposit(log types.Log) (*BondstakingDeposit, error)

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

Solidity: event Deposit(address indexed user, address indexed tokenAddress, uint256 amount)

func (*BondstakingFilterer) ParseEmergencyWithdraw

func (_Bondstaking *BondstakingFilterer) ParseEmergencyWithdraw(log types.Log) (*BondstakingEmergencyWithdraw, error)

ParseEmergencyWithdraw is a log parse operation binding the contract event 0xf24ef89f38eadc1bde50701ad6e4d6d11a2dc24f7cf834a486991f3883328504.

Solidity: event EmergencyWithdraw(address indexed user, address indexed tokenAddress, uint256 amount)

func (*BondstakingFilterer) ParseManualEpochInit

func (_Bondstaking *BondstakingFilterer) ParseManualEpochInit(log types.Log) (*BondstakingManualEpochInit, error)

ParseManualEpochInit is a log parse operation binding the contract event 0xb85c32b8d9cecc81feba78646289584a693e9a8afea40ab2fd31efae4408429f.

Solidity: event ManualEpochInit(address indexed caller, uint128 indexed epochId, address[] tokens)

func (*BondstakingFilterer) ParseWithdraw

func (_Bondstaking *BondstakingFilterer) ParseWithdraw(log types.Log) (*BondstakingWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb.

Solidity: event Withdraw(address indexed user, address indexed tokenAddress, uint256 amount)

func (*BondstakingFilterer) WatchDeposit

func (_Bondstaking *BondstakingFilterer) WatchDeposit(opts *bind.WatchOpts, sink chan<- *BondstakingDeposit, user []common.Address, tokenAddress []common.Address) (event.Subscription, error)

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

Solidity: event Deposit(address indexed user, address indexed tokenAddress, uint256 amount)

func (*BondstakingFilterer) WatchEmergencyWithdraw

func (_Bondstaking *BondstakingFilterer) WatchEmergencyWithdraw(opts *bind.WatchOpts, sink chan<- *BondstakingEmergencyWithdraw, user []common.Address, tokenAddress []common.Address) (event.Subscription, error)

WatchEmergencyWithdraw is a free log subscription operation binding the contract event 0xf24ef89f38eadc1bde50701ad6e4d6d11a2dc24f7cf834a486991f3883328504.

Solidity: event EmergencyWithdraw(address indexed user, address indexed tokenAddress, uint256 amount)

func (*BondstakingFilterer) WatchManualEpochInit

func (_Bondstaking *BondstakingFilterer) WatchManualEpochInit(opts *bind.WatchOpts, sink chan<- *BondstakingManualEpochInit, caller []common.Address, epochId []*big.Int) (event.Subscription, error)

WatchManualEpochInit is a free log subscription operation binding the contract event 0xb85c32b8d9cecc81feba78646289584a693e9a8afea40ab2fd31efae4408429f.

Solidity: event ManualEpochInit(address indexed caller, uint128 indexed epochId, address[] tokens)

func (*BondstakingFilterer) WatchWithdraw

func (_Bondstaking *BondstakingFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *BondstakingWithdraw, user []common.Address, tokenAddress []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb.

Solidity: event Withdraw(address indexed user, address indexed tokenAddress, uint256 amount)

type BondstakingManualEpochInit

type BondstakingManualEpochInit struct {
	Caller  common.Address
	EpochId *big.Int
	Tokens  []common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

BondstakingManualEpochInit represents a ManualEpochInit event raised by the Bondstaking contract.

type BondstakingManualEpochInitIterator

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

BondstakingManualEpochInitIterator is returned from FilterManualEpochInit and is used to iterate over the raw logs and unpacked data for ManualEpochInit events raised by the Bondstaking contract.

func (*BondstakingManualEpochInitIterator) Close

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

func (*BondstakingManualEpochInitIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

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

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

func (*BondstakingRaw) Call

func (_Bondstaking *BondstakingRaw) 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 (*BondstakingRaw) Transact

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

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

func (*BondstakingRaw) Transfer

func (_Bondstaking *BondstakingRaw) 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 BondstakingSession

type BondstakingSession struct {
	Contract     *Bondstaking      // 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
}

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

func (*BondstakingSession) BalanceOf

func (_Bondstaking *BondstakingSession) BalanceOf(user common.Address, token common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0xf7888aec.

Solidity: function balanceOf(address user, address token) view returns(uint256)

func (*BondstakingSession) ComputeNewMultiplier

func (_Bondstaking *BondstakingSession) ComputeNewMultiplier(prevBalance *big.Int, prevMultiplier *big.Int, amount *big.Int, currentMultiplier *big.Int) (*big.Int, error)

ComputeNewMultiplier is a free data retrieval call binding the contract method 0x4be41dba.

Solidity: function computeNewMultiplier(uint256 prevBalance, uint128 prevMultiplier, uint256 amount, uint128 currentMultiplier) pure returns(uint128)

func (*BondstakingSession) CurrentEpochMultiplier

func (_Bondstaking *BondstakingSession) CurrentEpochMultiplier() (*big.Int, error)

CurrentEpochMultiplier is a free data retrieval call binding the contract method 0xce58a2a8.

Solidity: function currentEpochMultiplier() view returns(uint128)

func (*BondstakingSession) Deposit

func (_Bondstaking *BondstakingSession) Deposit(tokenAddress common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(address tokenAddress, uint256 amount) returns()

func (*BondstakingSession) EmergencyWithdraw

func (_Bondstaking *BondstakingSession) EmergencyWithdraw(tokenAddress common.Address) (*types.Transaction, error)

EmergencyWithdraw is a paid mutator transaction binding the contract method 0x6ff1c9bc.

Solidity: function emergencyWithdraw(address tokenAddress) returns()

func (*BondstakingSession) Epoch1Start

func (_Bondstaking *BondstakingSession) Epoch1Start() (*big.Int, error)

Epoch1Start is a free data retrieval call binding the contract method 0xf4a4341d.

Solidity: function epoch1Start() view returns(uint256)

func (*BondstakingSession) EpochDuration

func (_Bondstaking *BondstakingSession) EpochDuration() (*big.Int, error)

EpochDuration is a free data retrieval call binding the contract method 0x4ff0876a.

Solidity: function epochDuration() view returns(uint256)

func (*BondstakingSession) EpochIsInitialized

func (_Bondstaking *BondstakingSession) EpochIsInitialized(token common.Address, epochId *big.Int) (bool, error)

EpochIsInitialized is a free data retrieval call binding the contract method 0xaa579154.

Solidity: function epochIsInitialized(address token, uint128 epochId) view returns(bool)

func (*BondstakingSession) GetCurrentEpoch

func (_Bondstaking *BondstakingSession) GetCurrentEpoch() (*big.Int, error)

GetCurrentEpoch is a free data retrieval call binding the contract method 0xb97dd9e2.

Solidity: function getCurrentEpoch() view returns(uint128)

func (*BondstakingSession) GetEpochPoolSize

func (_Bondstaking *BondstakingSession) GetEpochPoolSize(tokenAddress common.Address, epochId *big.Int) (*big.Int, error)

GetEpochPoolSize is a free data retrieval call binding the contract method 0x2ca32d7e.

Solidity: function getEpochPoolSize(address tokenAddress, uint128 epochId) view returns(uint256)

func (*BondstakingSession) GetEpochUserBalance

func (_Bondstaking *BondstakingSession) GetEpochUserBalance(user common.Address, token common.Address, epochId *big.Int) (*big.Int, error)

GetEpochUserBalance is a free data retrieval call binding the contract method 0x8c028dd0.

Solidity: function getEpochUserBalance(address user, address token, uint128 epochId) view returns(uint256)

func (*BondstakingSession) ManualEpochInit

func (_Bondstaking *BondstakingSession) ManualEpochInit(tokens []common.Address, epochId *big.Int) (*types.Transaction, error)

ManualEpochInit is a paid mutator transaction binding the contract method 0xea2c38ae.

Solidity: function manualEpochInit(address[] tokens, uint128 epochId) returns()

func (*BondstakingSession) Withdraw

func (_Bondstaking *BondstakingSession) Withdraw(tokenAddress common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address tokenAddress, uint256 amount) returns()

type BondstakingTransactor

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

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

func NewBondstakingTransactor

func NewBondstakingTransactor(address common.Address, transactor bind.ContractTransactor) (*BondstakingTransactor, error)

NewBondstakingTransactor creates a new write-only instance of Bondstaking, bound to a specific deployed contract.

func (*BondstakingTransactor) Deposit

func (_Bondstaking *BondstakingTransactor) Deposit(opts *bind.TransactOpts, tokenAddress common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(address tokenAddress, uint256 amount) returns()

func (*BondstakingTransactor) EmergencyWithdraw

func (_Bondstaking *BondstakingTransactor) EmergencyWithdraw(opts *bind.TransactOpts, tokenAddress common.Address) (*types.Transaction, error)

EmergencyWithdraw is a paid mutator transaction binding the contract method 0x6ff1c9bc.

Solidity: function emergencyWithdraw(address tokenAddress) returns()

func (*BondstakingTransactor) ManualEpochInit

func (_Bondstaking *BondstakingTransactor) ManualEpochInit(opts *bind.TransactOpts, tokens []common.Address, epochId *big.Int) (*types.Transaction, error)

ManualEpochInit is a paid mutator transaction binding the contract method 0xea2c38ae.

Solidity: function manualEpochInit(address[] tokens, uint128 epochId) returns()

func (*BondstakingTransactor) Withdraw

func (_Bondstaking *BondstakingTransactor) Withdraw(opts *bind.TransactOpts, tokenAddress common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address tokenAddress, uint256 amount) returns()

type BondstakingTransactorRaw

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

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

func (*BondstakingTransactorRaw) Transact

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

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

func (*BondstakingTransactorRaw) Transfer

func (_Bondstaking *BondstakingTransactorRaw) 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 BondstakingTransactorSession

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

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

func (*BondstakingTransactorSession) Deposit

func (_Bondstaking *BondstakingTransactorSession) Deposit(tokenAddress common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function deposit(address tokenAddress, uint256 amount) returns()

func (*BondstakingTransactorSession) EmergencyWithdraw

func (_Bondstaking *BondstakingTransactorSession) EmergencyWithdraw(tokenAddress common.Address) (*types.Transaction, error)

EmergencyWithdraw is a paid mutator transaction binding the contract method 0x6ff1c9bc.

Solidity: function emergencyWithdraw(address tokenAddress) returns()

func (*BondstakingTransactorSession) ManualEpochInit

func (_Bondstaking *BondstakingTransactorSession) ManualEpochInit(tokens []common.Address, epochId *big.Int) (*types.Transaction, error)

ManualEpochInit is a paid mutator transaction binding the contract method 0xea2c38ae.

Solidity: function manualEpochInit(address[] tokens, uint128 epochId) returns()

func (*BondstakingTransactorSession) Withdraw

func (_Bondstaking *BondstakingTransactorSession) Withdraw(tokenAddress common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address tokenAddress, uint256 amount) returns()

type BondstakingWithdraw

type BondstakingWithdraw struct {
	User         common.Address
	TokenAddress common.Address
	Amount       *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

BondstakingWithdraw represents a Withdraw event raised by the Bondstaking contract.

type BondstakingWithdrawIterator

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

BondstakingWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the Bondstaking contract.

func (*BondstakingWithdrawIterator) Close

func (it *BondstakingWithdrawIterator) Close() error

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

func (*BondstakingWithdrawIterator) Error

func (it *BondstakingWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BondstakingWithdrawIterator) Next

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