rss3

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddressToken   = common.HexToAddress("0xc98D64DA73a6616c42117b582e832812e7B8D57F")
	AddressStaking = common.HexToAddress("0x5301CbBeDc048AbaC7e213184132cf982d593563")

	EventHashStakingDeposited = contract.EventHash("Deposited(address,uint256,uint256,uint256)")
	EventHashStakingWithdrawn = contract.EventHash("Withdrawn(uint256,address,address,uint256)")
	EventHashRewardsClaimed   = contract.EventHash("RewardsClaimed(address,address,uint256)")
)
View Source
var StakingABI = StakingMetaData.ABI

StakingABI is the input ABI used to generate the binding from. Deprecated: Use StakingMetaData.ABI instead.

View Source
var StakingMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_symbol\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_stakingToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_maxReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_start\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"staker\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"duration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"start\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"rewardAmount\",\"type\":\"uint256\"}],\"name\":\"RewardsClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"by\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"rewardsDistributed\",\"type\":\"uint256\"}],\"name\":\"RewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"by\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fundsWithdrawn\",\"type\":\"uint256\"}],\"name\":\"RewardsWithdrawn\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"depositId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdrawn\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAX_LOCK_DURATION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_REWARD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_LOCK_DURATION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POINTS_MULTIPLIER\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_receiver\",\"type\":\"address\"}],\"name\":\"claimRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"claimableTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"cumulativeRewardsOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"depositsOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"end\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"distributeRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"end\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"getDepositsOf\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint64\",\"name\":\"start\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"end\",\"type\":\"uint64\"}],\"internalType\":\"structStaking.Deposit[]\",\"name\":\"_depositsOf\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getDepositsOfLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalStaked_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardReleased_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"apr\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastRewardTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"pendingRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"pointsCorrection\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pointsPerShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardPerSecond\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"rewardReleased\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"stakeWith180Days\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"stakeWith270Days\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"stakeWith360Days\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"stakeWith90Days\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakingToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"start\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"totalDepositOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalStaked\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"depositId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"withdrawableRewardsOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"withdrawnRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"withdrawnRewardsOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

StakingMetaData contains all meta data concerning the Staking contract.

Functions

This section is empty.

Types

type Staking

type Staking struct {
	StakingCaller     // Read-only binding to the contract
	StakingTransactor // Write-only binding to the contract
	StakingFilterer   // Log filterer for contract events
}

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

func NewStaking

func NewStaking(address common.Address, backend bind.ContractBackend) (*Staking, error)

NewStaking creates a new instance of Staking, bound to a specific deployed contract.

type StakingApproval

type StakingApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

StakingApproval represents a Approval event raised by the Staking contract.

type StakingApprovalIterator

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

StakingApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Staking contract.

func (*StakingApprovalIterator) Close

func (it *StakingApprovalIterator) Close() error

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

func (*StakingApprovalIterator) Error

func (it *StakingApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingApprovalIterator) Next

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

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

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

func NewStakingCaller

func NewStakingCaller(address common.Address, caller bind.ContractCaller) (*StakingCaller, error)

NewStakingCaller creates a new read-only instance of Staking, bound to a specific deployed contract.

func (*StakingCaller) Allowance

func (_Staking *StakingCaller) 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(address owner, address spender) view returns(uint256)

func (*StakingCaller) BalanceOf

func (_Staking *StakingCaller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address account) view returns(uint256)

func (*StakingCaller) ClaimableTime

func (_Staking *StakingCaller) ClaimableTime(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

ClaimableTime is a free data retrieval call binding the contract method 0x5dc252b7.

Solidity: function claimableTime(address ) view returns(uint256)

func (*StakingCaller) CumulativeRewardsOf

func (_Staking *StakingCaller) CumulativeRewardsOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

CumulativeRewardsOf is a free data retrieval call binding the contract method 0x10accecc.

Solidity: function cumulativeRewardsOf(address account) view returns(uint256)

func (*StakingCaller) Decimals

func (_Staking *StakingCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*StakingCaller) DepositsOf

func (_Staking *StakingCaller) DepositsOf(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (struct {
	Amount *big.Int
	Start  uint64
	End    uint64
}, error)

DepositsOf is a free data retrieval call binding the contract method 0xae22192e.

Solidity: function depositsOf(address , uint256 ) view returns(uint256 amount, uint64 start, uint64 end)

func (*StakingCaller) End

func (_Staking *StakingCaller) End(opts *bind.CallOpts) (*big.Int, error)

End is a free data retrieval call binding the contract method 0xefbe1c1c.

Solidity: function end() view returns(uint256)

func (*StakingCaller) GetDepositsOf

func (_Staking *StakingCaller) GetDepositsOf(opts *bind.CallOpts, account common.Address, offset *big.Int, limit *big.Int) ([]StakingDeposit, error)

GetDepositsOf is a free data retrieval call binding the contract method 0x2bb14fd2.

Solidity: function getDepositsOf(address account, uint256 offset, uint256 limit) view returns((uint256,uint64,uint64)[] _depositsOf)

func (*StakingCaller) GetDepositsOfLength

func (_Staking *StakingCaller) GetDepositsOfLength(opts *bind.CallOpts, account common.Address) (*big.Int, error)

GetDepositsOfLength is a free data retrieval call binding the contract method 0xb8162dd2.

Solidity: function getDepositsOfLength(address account) view returns(uint256)

func (*StakingCaller) GetInfo

func (_Staking *StakingCaller) GetInfo(opts *bind.CallOpts) (struct {
	StartTime      *big.Int
	EndTime        *big.Int
	TotalStaked    *big.Int
	RewardReleased *big.Int
	Apr            *big.Int
}, error)

GetInfo is a free data retrieval call binding the contract method 0x5a9b0b89.

Solidity: function getInfo() view returns(uint256 startTime, uint256 endTime, uint256 totalStaked_, uint256 rewardReleased_, uint256 apr)

func (*StakingCaller) LastRewardTime

func (_Staking *StakingCaller) LastRewardTime(opts *bind.CallOpts) (*big.Int, error)

LastRewardTime is a free data retrieval call binding the contract method 0x9231cf74.

Solidity: function lastRewardTime() view returns(uint256)

func (*StakingCaller) MAXLOCKDURATION

func (_Staking *StakingCaller) MAXLOCKDURATION(opts *bind.CallOpts) (*big.Int, error)

MAXLOCKDURATION is a free data retrieval call binding the contract method 0x4f1bfc9e.

Solidity: function MAX_LOCK_DURATION() view returns(uint256)

func (*StakingCaller) MAXREWARD

func (_Staking *StakingCaller) MAXREWARD(opts *bind.CallOpts) (*big.Int, error)

MAXREWARD is a free data retrieval call binding the contract method 0x0e1505e0.

Solidity: function MAX_REWARD() view returns(uint256)

func (*StakingCaller) MINLOCKDURATION

func (_Staking *StakingCaller) MINLOCKDURATION(opts *bind.CallOpts) (*big.Int, error)

MINLOCKDURATION is a free data retrieval call binding the contract method 0x78b4330f.

Solidity: function MIN_LOCK_DURATION() view returns(uint256)

func (*StakingCaller) Name

func (_Staking *StakingCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*StakingCaller) POINTSMULTIPLIER

func (_Staking *StakingCaller) POINTSMULTIPLIER(opts *bind.CallOpts) (*big.Int, error)

POINTSMULTIPLIER is a free data retrieval call binding the contract method 0x8f2203f6.

Solidity: function POINTS_MULTIPLIER() view returns(uint128)

func (*StakingCaller) PendingRewards

func (_Staking *StakingCaller) PendingRewards(opts *bind.CallOpts, account common.Address) (*big.Int, error)

PendingRewards is a free data retrieval call binding the contract method 0x31d7a262.

Solidity: function pendingRewards(address account) view returns(uint256)

func (*StakingCaller) PointsCorrection

func (_Staking *StakingCaller) PointsCorrection(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

PointsCorrection is a free data retrieval call binding the contract method 0xb182eb91.

Solidity: function pointsCorrection(address ) view returns(int256)

func (*StakingCaller) PointsPerShare

func (_Staking *StakingCaller) PointsPerShare(opts *bind.CallOpts) (*big.Int, error)

PointsPerShare is a free data retrieval call binding the contract method 0x7e245d79.

Solidity: function pointsPerShare() view returns(uint256)

func (*StakingCaller) RewardPerSecond

func (_Staking *StakingCaller) RewardPerSecond(opts *bind.CallOpts) (*big.Int, error)

RewardPerSecond is a free data retrieval call binding the contract method 0x8f10369a.

Solidity: function rewardPerSecond() view returns(uint256)

func (*StakingCaller) RewardReleased

func (_Staking *StakingCaller) RewardReleased(opts *bind.CallOpts) (*big.Int, error)

RewardReleased is a free data retrieval call binding the contract method 0x09dbf795.

Solidity: function rewardReleased() view returns(uint256)

func (*StakingCaller) StakingToken

func (_Staking *StakingCaller) StakingToken(opts *bind.CallOpts) (common.Address, error)

StakingToken is a free data retrieval call binding the contract method 0x72f702f3.

Solidity: function stakingToken() view returns(address)

func (*StakingCaller) Start

func (_Staking *StakingCaller) Start(opts *bind.CallOpts) (*big.Int, error)

Start is a free data retrieval call binding the contract method 0xbe9a6555.

Solidity: function start() view returns(uint256)

func (*StakingCaller) Symbol

func (_Staking *StakingCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*StakingCaller) TotalDepositOf

func (_Staking *StakingCaller) TotalDepositOf(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TotalDepositOf is a free data retrieval call binding the contract method 0xc5d511e1.

Solidity: function totalDepositOf(address ) view returns(uint256)

func (*StakingCaller) TotalStaked

func (_Staking *StakingCaller) TotalStaked(opts *bind.CallOpts) (*big.Int, error)

TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.

Solidity: function totalStaked() view returns(uint256)

func (*StakingCaller) TotalSupply

func (_Staking *StakingCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*StakingCaller) WithdrawableRewardsOf

func (_Staking *StakingCaller) WithdrawableRewardsOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

WithdrawableRewardsOf is a free data retrieval call binding the contract method 0x7cd0b5c7.

Solidity: function withdrawableRewardsOf(address account) view returns(uint256)

func (*StakingCaller) WithdrawnRewards

func (_Staking *StakingCaller) WithdrawnRewards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

WithdrawnRewards is a free data retrieval call binding the contract method 0xdd6624e4.

Solidity: function withdrawnRewards(address ) view returns(uint256)

func (*StakingCaller) WithdrawnRewardsOf

func (_Staking *StakingCaller) WithdrawnRewardsOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

WithdrawnRewardsOf is a free data retrieval call binding the contract method 0x18f9e291.

Solidity: function withdrawnRewardsOf(address account) view returns(uint256)

type StakingCallerRaw

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

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

func (*StakingCallerRaw) Call

func (_Staking *StakingCallerRaw) 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 StakingCallerSession

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

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

func (*StakingCallerSession) Allowance

func (_Staking *StakingCallerSession) 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(address owner, address spender) view returns(uint256)

func (*StakingCallerSession) BalanceOf

func (_Staking *StakingCallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address account) view returns(uint256)

func (*StakingCallerSession) ClaimableTime

func (_Staking *StakingCallerSession) ClaimableTime(arg0 common.Address) (*big.Int, error)

ClaimableTime is a free data retrieval call binding the contract method 0x5dc252b7.

Solidity: function claimableTime(address ) view returns(uint256)

func (*StakingCallerSession) CumulativeRewardsOf

func (_Staking *StakingCallerSession) CumulativeRewardsOf(account common.Address) (*big.Int, error)

CumulativeRewardsOf is a free data retrieval call binding the contract method 0x10accecc.

Solidity: function cumulativeRewardsOf(address account) view returns(uint256)

func (*StakingCallerSession) Decimals

func (_Staking *StakingCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*StakingCallerSession) DepositsOf

func (_Staking *StakingCallerSession) DepositsOf(arg0 common.Address, arg1 *big.Int) (struct {
	Amount *big.Int
	Start  uint64
	End    uint64
}, error)

DepositsOf is a free data retrieval call binding the contract method 0xae22192e.

Solidity: function depositsOf(address , uint256 ) view returns(uint256 amount, uint64 start, uint64 end)

func (*StakingCallerSession) End

func (_Staking *StakingCallerSession) End() (*big.Int, error)

End is a free data retrieval call binding the contract method 0xefbe1c1c.

Solidity: function end() view returns(uint256)

func (*StakingCallerSession) GetDepositsOf

func (_Staking *StakingCallerSession) GetDepositsOf(account common.Address, offset *big.Int, limit *big.Int) ([]StakingDeposit, error)

GetDepositsOf is a free data retrieval call binding the contract method 0x2bb14fd2.

Solidity: function getDepositsOf(address account, uint256 offset, uint256 limit) view returns((uint256,uint64,uint64)[] _depositsOf)

func (*StakingCallerSession) GetDepositsOfLength

func (_Staking *StakingCallerSession) GetDepositsOfLength(account common.Address) (*big.Int, error)

GetDepositsOfLength is a free data retrieval call binding the contract method 0xb8162dd2.

Solidity: function getDepositsOfLength(address account) view returns(uint256)

func (*StakingCallerSession) GetInfo

func (_Staking *StakingCallerSession) GetInfo() (struct {
	StartTime      *big.Int
	EndTime        *big.Int
	TotalStaked    *big.Int
	RewardReleased *big.Int
	Apr            *big.Int
}, error)

GetInfo is a free data retrieval call binding the contract method 0x5a9b0b89.

Solidity: function getInfo() view returns(uint256 startTime, uint256 endTime, uint256 totalStaked_, uint256 rewardReleased_, uint256 apr)

func (*StakingCallerSession) LastRewardTime

func (_Staking *StakingCallerSession) LastRewardTime() (*big.Int, error)

LastRewardTime is a free data retrieval call binding the contract method 0x9231cf74.

Solidity: function lastRewardTime() view returns(uint256)

func (*StakingCallerSession) MAXLOCKDURATION

func (_Staking *StakingCallerSession) MAXLOCKDURATION() (*big.Int, error)

MAXLOCKDURATION is a free data retrieval call binding the contract method 0x4f1bfc9e.

Solidity: function MAX_LOCK_DURATION() view returns(uint256)

func (*StakingCallerSession) MAXREWARD

func (_Staking *StakingCallerSession) MAXREWARD() (*big.Int, error)

MAXREWARD is a free data retrieval call binding the contract method 0x0e1505e0.

Solidity: function MAX_REWARD() view returns(uint256)

func (*StakingCallerSession) MINLOCKDURATION

func (_Staking *StakingCallerSession) MINLOCKDURATION() (*big.Int, error)

MINLOCKDURATION is a free data retrieval call binding the contract method 0x78b4330f.

Solidity: function MIN_LOCK_DURATION() view returns(uint256)

func (*StakingCallerSession) Name

func (_Staking *StakingCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*StakingCallerSession) POINTSMULTIPLIER

func (_Staking *StakingCallerSession) POINTSMULTIPLIER() (*big.Int, error)

POINTSMULTIPLIER is a free data retrieval call binding the contract method 0x8f2203f6.

Solidity: function POINTS_MULTIPLIER() view returns(uint128)

func (*StakingCallerSession) PendingRewards

func (_Staking *StakingCallerSession) PendingRewards(account common.Address) (*big.Int, error)

PendingRewards is a free data retrieval call binding the contract method 0x31d7a262.

Solidity: function pendingRewards(address account) view returns(uint256)

func (*StakingCallerSession) PointsCorrection

func (_Staking *StakingCallerSession) PointsCorrection(arg0 common.Address) (*big.Int, error)

PointsCorrection is a free data retrieval call binding the contract method 0xb182eb91.

Solidity: function pointsCorrection(address ) view returns(int256)

func (*StakingCallerSession) PointsPerShare

func (_Staking *StakingCallerSession) PointsPerShare() (*big.Int, error)

PointsPerShare is a free data retrieval call binding the contract method 0x7e245d79.

Solidity: function pointsPerShare() view returns(uint256)

func (*StakingCallerSession) RewardPerSecond

func (_Staking *StakingCallerSession) RewardPerSecond() (*big.Int, error)

RewardPerSecond is a free data retrieval call binding the contract method 0x8f10369a.

Solidity: function rewardPerSecond() view returns(uint256)

func (*StakingCallerSession) RewardReleased

func (_Staking *StakingCallerSession) RewardReleased() (*big.Int, error)

RewardReleased is a free data retrieval call binding the contract method 0x09dbf795.

Solidity: function rewardReleased() view returns(uint256)

func (*StakingCallerSession) StakingToken

func (_Staking *StakingCallerSession) StakingToken() (common.Address, error)

StakingToken is a free data retrieval call binding the contract method 0x72f702f3.

Solidity: function stakingToken() view returns(address)

func (*StakingCallerSession) Start

func (_Staking *StakingCallerSession) Start() (*big.Int, error)

Start is a free data retrieval call binding the contract method 0xbe9a6555.

Solidity: function start() view returns(uint256)

func (*StakingCallerSession) Symbol

func (_Staking *StakingCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*StakingCallerSession) TotalDepositOf

func (_Staking *StakingCallerSession) TotalDepositOf(arg0 common.Address) (*big.Int, error)

TotalDepositOf is a free data retrieval call binding the contract method 0xc5d511e1.

Solidity: function totalDepositOf(address ) view returns(uint256)

func (*StakingCallerSession) TotalStaked

func (_Staking *StakingCallerSession) TotalStaked() (*big.Int, error)

TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.

Solidity: function totalStaked() view returns(uint256)

func (*StakingCallerSession) TotalSupply

func (_Staking *StakingCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*StakingCallerSession) WithdrawableRewardsOf

func (_Staking *StakingCallerSession) WithdrawableRewardsOf(account common.Address) (*big.Int, error)

WithdrawableRewardsOf is a free data retrieval call binding the contract method 0x7cd0b5c7.

Solidity: function withdrawableRewardsOf(address account) view returns(uint256)

func (*StakingCallerSession) WithdrawnRewards

func (_Staking *StakingCallerSession) WithdrawnRewards(arg0 common.Address) (*big.Int, error)

WithdrawnRewards is a free data retrieval call binding the contract method 0xdd6624e4.

Solidity: function withdrawnRewards(address ) view returns(uint256)

func (*StakingCallerSession) WithdrawnRewardsOf

func (_Staking *StakingCallerSession) WithdrawnRewardsOf(account common.Address) (*big.Int, error)

WithdrawnRewardsOf is a free data retrieval call binding the contract method 0x18f9e291.

Solidity: function withdrawnRewardsOf(address account) view returns(uint256)

type StakingDeposit

type StakingDeposit struct {
	Amount *big.Int
	Start  uint64
	End    uint64
}

StakingDeposit is an auto generated low-level Go binding around an user-defined struct.

type StakingDeposited

type StakingDeposited struct {
	Staker   common.Address
	Amount   *big.Int
	Duration *big.Int
	Start    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

StakingDeposited represents a Deposited event raised by the Staking contract.

type StakingDepositedIterator

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

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

func (*StakingDepositedIterator) Close

func (it *StakingDepositedIterator) Close() error

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

func (*StakingDepositedIterator) Error

func (it *StakingDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingDepositedIterator) Next

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

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

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

func NewStakingFilterer

func NewStakingFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingFilterer, error)

NewStakingFilterer creates a new log filterer instance of Staking, bound to a specific deployed contract.

func (*StakingFilterer) FilterApproval

func (_Staking *StakingFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*StakingApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*StakingFilterer) FilterDeposited

func (_Staking *StakingFilterer) FilterDeposited(opts *bind.FilterOpts, staker []common.Address, amount []*big.Int, duration []*big.Int) (*StakingDepositedIterator, error)

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

Solidity: event Deposited(address indexed staker, uint256 indexed amount, uint256 indexed duration, uint256 start)

func (*StakingFilterer) FilterRewardsClaimed

func (_Staking *StakingFilterer) FilterRewardsClaimed(opts *bind.FilterOpts, _from []common.Address, _receiver []common.Address, rewardAmount []*big.Int) (*StakingRewardsClaimedIterator, error)

FilterRewardsClaimed is a free log retrieval operation binding the contract event 0x9310ccfcb8de723f578a9e4282ea9f521f05ae40dc08f3068dfad528a65ee3c7.

Solidity: event RewardsClaimed(address indexed _from, address indexed _receiver, uint256 indexed rewardAmount)

func (*StakingFilterer) FilterRewardsDistributed

func (_Staking *StakingFilterer) FilterRewardsDistributed(opts *bind.FilterOpts, by []common.Address) (*StakingRewardsDistributedIterator, error)

FilterRewardsDistributed is a free log retrieval operation binding the contract event 0xdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece086.

Solidity: event RewardsDistributed(address indexed by, uint256 rewardsDistributed)

func (*StakingFilterer) FilterRewardsWithdrawn

func (_Staking *StakingFilterer) FilterRewardsWithdrawn(opts *bind.FilterOpts, by []common.Address) (*StakingRewardsWithdrawnIterator, error)

FilterRewardsWithdrawn is a free log retrieval operation binding the contract event 0x8a43c4352486ec339f487f64af78ca5cbf06cd47833f073d3baf3a193e503161.

Solidity: event RewardsWithdrawn(address indexed by, uint256 fundsWithdrawn)

func (*StakingFilterer) FilterTransfer

func (_Staking *StakingFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*StakingTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*StakingFilterer) FilterWithdrawn

func (_Staking *StakingFilterer) FilterWithdrawn(opts *bind.FilterOpts, depositId []*big.Int, receiver []common.Address, from []common.Address) (*StakingWithdrawnIterator, error)

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

Solidity: event Withdrawn(uint256 indexed depositId, address indexed receiver, address indexed from, uint256 amount)

func (*StakingFilterer) ParseApproval

func (_Staking *StakingFilterer) ParseApproval(log types.Log) (*StakingApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*StakingFilterer) ParseDeposited

func (_Staking *StakingFilterer) ParseDeposited(log types.Log) (*StakingDeposited, error)

ParseDeposited is a log parse operation binding the contract event 0x91ede45f04a37a7c170f5c1207df3b6bc748dc1e04ad5e917a241d0f52feada3.

Solidity: event Deposited(address indexed staker, uint256 indexed amount, uint256 indexed duration, uint256 start)

func (*StakingFilterer) ParseRewardsClaimed

func (_Staking *StakingFilterer) ParseRewardsClaimed(log types.Log) (*StakingRewardsClaimed, error)

ParseRewardsClaimed is a log parse operation binding the contract event 0x9310ccfcb8de723f578a9e4282ea9f521f05ae40dc08f3068dfad528a65ee3c7.

Solidity: event RewardsClaimed(address indexed _from, address indexed _receiver, uint256 indexed rewardAmount)

func (*StakingFilterer) ParseRewardsDistributed

func (_Staking *StakingFilterer) ParseRewardsDistributed(log types.Log) (*StakingRewardsDistributed, error)

ParseRewardsDistributed is a log parse operation binding the contract event 0xdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece086.

Solidity: event RewardsDistributed(address indexed by, uint256 rewardsDistributed)

func (*StakingFilterer) ParseRewardsWithdrawn

func (_Staking *StakingFilterer) ParseRewardsWithdrawn(log types.Log) (*StakingRewardsWithdrawn, error)

ParseRewardsWithdrawn is a log parse operation binding the contract event 0x8a43c4352486ec339f487f64af78ca5cbf06cd47833f073d3baf3a193e503161.

Solidity: event RewardsWithdrawn(address indexed by, uint256 fundsWithdrawn)

func (*StakingFilterer) ParseTransfer

func (_Staking *StakingFilterer) ParseTransfer(log types.Log) (*StakingTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*StakingFilterer) ParseWithdrawn

func (_Staking *StakingFilterer) ParseWithdrawn(log types.Log) (*StakingWithdrawn, error)

ParseWithdrawn is a log parse operation binding the contract event 0xe5df19de43c8c04fd192bc68e484b2593570925fbb6ad8c07ccafbc2aa5c37a1.

Solidity: event Withdrawn(uint256 indexed depositId, address indexed receiver, address indexed from, uint256 amount)

func (*StakingFilterer) WatchApproval

func (_Staking *StakingFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *StakingApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*StakingFilterer) WatchDeposited

func (_Staking *StakingFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *StakingDeposited, staker []common.Address, amount []*big.Int, duration []*big.Int) (event.Subscription, error)

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

Solidity: event Deposited(address indexed staker, uint256 indexed amount, uint256 indexed duration, uint256 start)

func (*StakingFilterer) WatchRewardsClaimed

func (_Staking *StakingFilterer) WatchRewardsClaimed(opts *bind.WatchOpts, sink chan<- *StakingRewardsClaimed, _from []common.Address, _receiver []common.Address, rewardAmount []*big.Int) (event.Subscription, error)

WatchRewardsClaimed is a free log subscription operation binding the contract event 0x9310ccfcb8de723f578a9e4282ea9f521f05ae40dc08f3068dfad528a65ee3c7.

Solidity: event RewardsClaimed(address indexed _from, address indexed _receiver, uint256 indexed rewardAmount)

func (*StakingFilterer) WatchRewardsDistributed

func (_Staking *StakingFilterer) WatchRewardsDistributed(opts *bind.WatchOpts, sink chan<- *StakingRewardsDistributed, by []common.Address) (event.Subscription, error)

WatchRewardsDistributed is a free log subscription operation binding the contract event 0xdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece086.

Solidity: event RewardsDistributed(address indexed by, uint256 rewardsDistributed)

func (*StakingFilterer) WatchRewardsWithdrawn

func (_Staking *StakingFilterer) WatchRewardsWithdrawn(opts *bind.WatchOpts, sink chan<- *StakingRewardsWithdrawn, by []common.Address) (event.Subscription, error)

WatchRewardsWithdrawn is a free log subscription operation binding the contract event 0x8a43c4352486ec339f487f64af78ca5cbf06cd47833f073d3baf3a193e503161.

Solidity: event RewardsWithdrawn(address indexed by, uint256 fundsWithdrawn)

func (*StakingFilterer) WatchTransfer

func (_Staking *StakingFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *StakingTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*StakingFilterer) WatchWithdrawn

func (_Staking *StakingFilterer) WatchWithdrawn(opts *bind.WatchOpts, sink chan<- *StakingWithdrawn, depositId []*big.Int, receiver []common.Address, from []common.Address) (event.Subscription, error)

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

Solidity: event Withdrawn(uint256 indexed depositId, address indexed receiver, address indexed from, uint256 amount)

type StakingRaw

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

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

func (*StakingRaw) Call

func (_Staking *StakingRaw) 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 (*StakingRaw) Transact

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

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

func (*StakingRaw) Transfer

func (_Staking *StakingRaw) 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 StakingRewardsClaimed

type StakingRewardsClaimed struct {
	From         common.Address
	Receiver     common.Address
	RewardAmount *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

StakingRewardsClaimed represents a RewardsClaimed event raised by the Staking contract.

type StakingRewardsClaimedIterator

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

StakingRewardsClaimedIterator is returned from FilterRewardsClaimed and is used to iterate over the raw logs and unpacked data for RewardsClaimed events raised by the Staking contract.

func (*StakingRewardsClaimedIterator) Close

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

func (*StakingRewardsClaimedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingRewardsDistributed struct {
	By                 common.Address
	RewardsDistributed *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

StakingRewardsDistributed represents a RewardsDistributed event raised by the Staking contract.

type StakingRewardsDistributedIterator

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

StakingRewardsDistributedIterator is returned from FilterRewardsDistributed and is used to iterate over the raw logs and unpacked data for RewardsDistributed events raised by the Staking contract.

func (*StakingRewardsDistributedIterator) Close

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

func (*StakingRewardsDistributedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingRewardsWithdrawn struct {
	By             common.Address
	FundsWithdrawn *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

StakingRewardsWithdrawn represents a RewardsWithdrawn event raised by the Staking contract.

type StakingRewardsWithdrawnIterator

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

StakingRewardsWithdrawnIterator is returned from FilterRewardsWithdrawn and is used to iterate over the raw logs and unpacked data for RewardsWithdrawn events raised by the Staking contract.

func (*StakingRewardsWithdrawnIterator) Close

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

func (*StakingRewardsWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

type StakingSession struct {
	Contract     *Staking          // 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
}

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

func (*StakingSession) Allowance

func (_Staking *StakingSession) 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(address owner, address spender) view returns(uint256)

func (*StakingSession) Approve

func (_Staking *StakingSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*StakingSession) BalanceOf

func (_Staking *StakingSession) BalanceOf(account common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address account) view returns(uint256)

func (*StakingSession) ClaimRewards

func (_Staking *StakingSession) ClaimRewards(_receiver common.Address) (*types.Transaction, error)

ClaimRewards is a paid mutator transaction binding the contract method 0xef5cfb8c.

Solidity: function claimRewards(address _receiver) returns()

func (*StakingSession) ClaimableTime

func (_Staking *StakingSession) ClaimableTime(arg0 common.Address) (*big.Int, error)

ClaimableTime is a free data retrieval call binding the contract method 0x5dc252b7.

Solidity: function claimableTime(address ) view returns(uint256)

func (*StakingSession) CumulativeRewardsOf

func (_Staking *StakingSession) CumulativeRewardsOf(account common.Address) (*big.Int, error)

CumulativeRewardsOf is a free data retrieval call binding the contract method 0x10accecc.

Solidity: function cumulativeRewardsOf(address account) view returns(uint256)

func (*StakingSession) Decimals

func (_Staking *StakingSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*StakingSession) DecreaseAllowance

func (_Staking *StakingSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*StakingSession) DepositsOf

func (_Staking *StakingSession) DepositsOf(arg0 common.Address, arg1 *big.Int) (struct {
	Amount *big.Int
	Start  uint64
	End    uint64
}, error)

DepositsOf is a free data retrieval call binding the contract method 0xae22192e.

Solidity: function depositsOf(address , uint256 ) view returns(uint256 amount, uint64 start, uint64 end)

func (*StakingSession) DistributeRewards

func (_Staking *StakingSession) DistributeRewards() (*types.Transaction, error)

DistributeRewards is a paid mutator transaction binding the contract method 0x6f4a2cd0.

Solidity: function distributeRewards() returns()

func (*StakingSession) End

func (_Staking *StakingSession) End() (*big.Int, error)

End is a free data retrieval call binding the contract method 0xefbe1c1c.

Solidity: function end() view returns(uint256)

func (*StakingSession) GetDepositsOf

func (_Staking *StakingSession) GetDepositsOf(account common.Address, offset *big.Int, limit *big.Int) ([]StakingDeposit, error)

GetDepositsOf is a free data retrieval call binding the contract method 0x2bb14fd2.

Solidity: function getDepositsOf(address account, uint256 offset, uint256 limit) view returns((uint256,uint64,uint64)[] _depositsOf)

func (*StakingSession) GetDepositsOfLength

func (_Staking *StakingSession) GetDepositsOfLength(account common.Address) (*big.Int, error)

GetDepositsOfLength is a free data retrieval call binding the contract method 0xb8162dd2.

Solidity: function getDepositsOfLength(address account) view returns(uint256)

func (*StakingSession) GetInfo

func (_Staking *StakingSession) GetInfo() (struct {
	StartTime      *big.Int
	EndTime        *big.Int
	TotalStaked    *big.Int
	RewardReleased *big.Int
	Apr            *big.Int
}, error)

GetInfo is a free data retrieval call binding the contract method 0x5a9b0b89.

Solidity: function getInfo() view returns(uint256 startTime, uint256 endTime, uint256 totalStaked_, uint256 rewardReleased_, uint256 apr)

func (*StakingSession) IncreaseAllowance

func (_Staking *StakingSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*StakingSession) LastRewardTime

func (_Staking *StakingSession) LastRewardTime() (*big.Int, error)

LastRewardTime is a free data retrieval call binding the contract method 0x9231cf74.

Solidity: function lastRewardTime() view returns(uint256)

func (*StakingSession) MAXLOCKDURATION

func (_Staking *StakingSession) MAXLOCKDURATION() (*big.Int, error)

MAXLOCKDURATION is a free data retrieval call binding the contract method 0x4f1bfc9e.

Solidity: function MAX_LOCK_DURATION() view returns(uint256)

func (*StakingSession) MAXREWARD

func (_Staking *StakingSession) MAXREWARD() (*big.Int, error)

MAXREWARD is a free data retrieval call binding the contract method 0x0e1505e0.

Solidity: function MAX_REWARD() view returns(uint256)

func (*StakingSession) MINLOCKDURATION

func (_Staking *StakingSession) MINLOCKDURATION() (*big.Int, error)

MINLOCKDURATION is a free data retrieval call binding the contract method 0x78b4330f.

Solidity: function MIN_LOCK_DURATION() view returns(uint256)

func (*StakingSession) Name

func (_Staking *StakingSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*StakingSession) POINTSMULTIPLIER

func (_Staking *StakingSession) POINTSMULTIPLIER() (*big.Int, error)

POINTSMULTIPLIER is a free data retrieval call binding the contract method 0x8f2203f6.

Solidity: function POINTS_MULTIPLIER() view returns(uint128)

func (*StakingSession) PendingRewards

func (_Staking *StakingSession) PendingRewards(account common.Address) (*big.Int, error)

PendingRewards is a free data retrieval call binding the contract method 0x31d7a262.

Solidity: function pendingRewards(address account) view returns(uint256)

func (*StakingSession) PointsCorrection

func (_Staking *StakingSession) PointsCorrection(arg0 common.Address) (*big.Int, error)

PointsCorrection is a free data retrieval call binding the contract method 0xb182eb91.

Solidity: function pointsCorrection(address ) view returns(int256)

func (*StakingSession) PointsPerShare

func (_Staking *StakingSession) PointsPerShare() (*big.Int, error)

PointsPerShare is a free data retrieval call binding the contract method 0x7e245d79.

Solidity: function pointsPerShare() view returns(uint256)

func (*StakingSession) RewardPerSecond

func (_Staking *StakingSession) RewardPerSecond() (*big.Int, error)

RewardPerSecond is a free data retrieval call binding the contract method 0x8f10369a.

Solidity: function rewardPerSecond() view returns(uint256)

func (*StakingSession) RewardReleased

func (_Staking *StakingSession) RewardReleased() (*big.Int, error)

RewardReleased is a free data retrieval call binding the contract method 0x09dbf795.

Solidity: function rewardReleased() view returns(uint256)

func (*StakingSession) StakeWith180Days

func (_Staking *StakingSession) StakeWith180Days(amount *big.Int) (*types.Transaction, error)

StakeWith180Days is a paid mutator transaction binding the contract method 0x616869be.

Solidity: function stakeWith180Days(uint256 amount) returns()

func (*StakingSession) StakeWith270Days

func (_Staking *StakingSession) StakeWith270Days(amount *big.Int) (*types.Transaction, error)

StakeWith270Days is a paid mutator transaction binding the contract method 0xc812e633.

Solidity: function stakeWith270Days(uint256 amount) returns()

func (*StakingSession) StakeWith360Days

func (_Staking *StakingSession) StakeWith360Days(amount *big.Int) (*types.Transaction, error)

StakeWith360Days is a paid mutator transaction binding the contract method 0x278dc969.

Solidity: function stakeWith360Days(uint256 amount) returns()

func (*StakingSession) StakeWith90Days

func (_Staking *StakingSession) StakeWith90Days(amount *big.Int) (*types.Transaction, error)

StakeWith90Days is a paid mutator transaction binding the contract method 0x383c7d87.

Solidity: function stakeWith90Days(uint256 amount) returns()

func (*StakingSession) StakingToken

func (_Staking *StakingSession) StakingToken() (common.Address, error)

StakingToken is a free data retrieval call binding the contract method 0x72f702f3.

Solidity: function stakingToken() view returns(address)

func (*StakingSession) Start

func (_Staking *StakingSession) Start() (*big.Int, error)

Start is a free data retrieval call binding the contract method 0xbe9a6555.

Solidity: function start() view returns(uint256)

func (*StakingSession) Symbol

func (_Staking *StakingSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*StakingSession) TotalDepositOf

func (_Staking *StakingSession) TotalDepositOf(arg0 common.Address) (*big.Int, error)

TotalDepositOf is a free data retrieval call binding the contract method 0xc5d511e1.

Solidity: function totalDepositOf(address ) view returns(uint256)

func (*StakingSession) TotalStaked

func (_Staking *StakingSession) TotalStaked() (*big.Int, error)

TotalStaked is a free data retrieval call binding the contract method 0x817b1cd2.

Solidity: function totalStaked() view returns(uint256)

func (*StakingSession) TotalSupply

func (_Staking *StakingSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*StakingSession) Transfer

func (_Staking *StakingSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*StakingSession) TransferFrom

func (_Staking *StakingSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

func (*StakingSession) Withdraw

func (_Staking *StakingSession) Withdraw(depositId *big.Int, receiver common.Address) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 depositId, address receiver) returns()

func (*StakingSession) WithdrawableRewardsOf

func (_Staking *StakingSession) WithdrawableRewardsOf(account common.Address) (*big.Int, error)

WithdrawableRewardsOf is a free data retrieval call binding the contract method 0x7cd0b5c7.

Solidity: function withdrawableRewardsOf(address account) view returns(uint256)

func (*StakingSession) WithdrawnRewards

func (_Staking *StakingSession) WithdrawnRewards(arg0 common.Address) (*big.Int, error)

WithdrawnRewards is a free data retrieval call binding the contract method 0xdd6624e4.

Solidity: function withdrawnRewards(address ) view returns(uint256)

func (*StakingSession) WithdrawnRewardsOf

func (_Staking *StakingSession) WithdrawnRewardsOf(account common.Address) (*big.Int, error)

WithdrawnRewardsOf is a free data retrieval call binding the contract method 0x18f9e291.

Solidity: function withdrawnRewardsOf(address account) view returns(uint256)

type StakingTransactor

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

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

func NewStakingTransactor

func NewStakingTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingTransactor, error)

NewStakingTransactor creates a new write-only instance of Staking, bound to a specific deployed contract.

func (*StakingTransactor) Approve

func (_Staking *StakingTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*StakingTransactor) ClaimRewards

func (_Staking *StakingTransactor) ClaimRewards(opts *bind.TransactOpts, _receiver common.Address) (*types.Transaction, error)

ClaimRewards is a paid mutator transaction binding the contract method 0xef5cfb8c.

Solidity: function claimRewards(address _receiver) returns()

func (*StakingTransactor) DecreaseAllowance

func (_Staking *StakingTransactor) DecreaseAllowance(opts *bind.TransactOpts, spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*StakingTransactor) DistributeRewards

func (_Staking *StakingTransactor) DistributeRewards(opts *bind.TransactOpts) (*types.Transaction, error)

DistributeRewards is a paid mutator transaction binding the contract method 0x6f4a2cd0.

Solidity: function distributeRewards() returns()

func (*StakingTransactor) IncreaseAllowance

func (_Staking *StakingTransactor) IncreaseAllowance(opts *bind.TransactOpts, spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*StakingTransactor) StakeWith180Days

func (_Staking *StakingTransactor) StakeWith180Days(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

StakeWith180Days is a paid mutator transaction binding the contract method 0x616869be.

Solidity: function stakeWith180Days(uint256 amount) returns()

func (*StakingTransactor) StakeWith270Days

func (_Staking *StakingTransactor) StakeWith270Days(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

StakeWith270Days is a paid mutator transaction binding the contract method 0xc812e633.

Solidity: function stakeWith270Days(uint256 amount) returns()

func (*StakingTransactor) StakeWith360Days

func (_Staking *StakingTransactor) StakeWith360Days(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

StakeWith360Days is a paid mutator transaction binding the contract method 0x278dc969.

Solidity: function stakeWith360Days(uint256 amount) returns()

func (*StakingTransactor) StakeWith90Days

func (_Staking *StakingTransactor) StakeWith90Days(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

StakeWith90Days is a paid mutator transaction binding the contract method 0x383c7d87.

Solidity: function stakeWith90Days(uint256 amount) returns()

func (*StakingTransactor) Transfer

func (_Staking *StakingTransactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*StakingTransactor) TransferFrom

func (_Staking *StakingTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

func (*StakingTransactor) Withdraw

func (_Staking *StakingTransactor) Withdraw(opts *bind.TransactOpts, depositId *big.Int, receiver common.Address) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 depositId, address receiver) returns()

type StakingTransactorRaw

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

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

func (*StakingTransactorRaw) Transact

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

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

func (*StakingTransactorRaw) Transfer

func (_Staking *StakingTransactorRaw) 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 StakingTransactorSession

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

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

func (*StakingTransactorSession) Approve

func (_Staking *StakingTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*StakingTransactorSession) ClaimRewards

func (_Staking *StakingTransactorSession) ClaimRewards(_receiver common.Address) (*types.Transaction, error)

ClaimRewards is a paid mutator transaction binding the contract method 0xef5cfb8c.

Solidity: function claimRewards(address _receiver) returns()

func (*StakingTransactorSession) DecreaseAllowance

func (_Staking *StakingTransactorSession) DecreaseAllowance(spender common.Address, subtractedValue *big.Int) (*types.Transaction, error)

DecreaseAllowance is a paid mutator transaction binding the contract method 0xa457c2d7.

Solidity: function decreaseAllowance(address spender, uint256 subtractedValue) returns(bool)

func (*StakingTransactorSession) DistributeRewards

func (_Staking *StakingTransactorSession) DistributeRewards() (*types.Transaction, error)

DistributeRewards is a paid mutator transaction binding the contract method 0x6f4a2cd0.

Solidity: function distributeRewards() returns()

func (*StakingTransactorSession) IncreaseAllowance

func (_Staking *StakingTransactorSession) IncreaseAllowance(spender common.Address, addedValue *big.Int) (*types.Transaction, error)

IncreaseAllowance is a paid mutator transaction binding the contract method 0x39509351.

Solidity: function increaseAllowance(address spender, uint256 addedValue) returns(bool)

func (*StakingTransactorSession) StakeWith180Days

func (_Staking *StakingTransactorSession) StakeWith180Days(amount *big.Int) (*types.Transaction, error)

StakeWith180Days is a paid mutator transaction binding the contract method 0x616869be.

Solidity: function stakeWith180Days(uint256 amount) returns()

func (*StakingTransactorSession) StakeWith270Days

func (_Staking *StakingTransactorSession) StakeWith270Days(amount *big.Int) (*types.Transaction, error)

StakeWith270Days is a paid mutator transaction binding the contract method 0xc812e633.

Solidity: function stakeWith270Days(uint256 amount) returns()

func (*StakingTransactorSession) StakeWith360Days

func (_Staking *StakingTransactorSession) StakeWith360Days(amount *big.Int) (*types.Transaction, error)

StakeWith360Days is a paid mutator transaction binding the contract method 0x278dc969.

Solidity: function stakeWith360Days(uint256 amount) returns()

func (*StakingTransactorSession) StakeWith90Days

func (_Staking *StakingTransactorSession) StakeWith90Days(amount *big.Int) (*types.Transaction, error)

StakeWith90Days is a paid mutator transaction binding the contract method 0x383c7d87.

Solidity: function stakeWith90Days(uint256 amount) returns()

func (*StakingTransactorSession) Transfer

func (_Staking *StakingTransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 amount) returns(bool)

func (*StakingTransactorSession) TransferFrom

func (_Staking *StakingTransactorSession) TransferFrom(from common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address from, address to, uint256 amount) returns(bool)

func (*StakingTransactorSession) Withdraw

func (_Staking *StakingTransactorSession) Withdraw(depositId *big.Int, receiver common.Address) (*types.Transaction, error)

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

Solidity: function withdraw(uint256 depositId, address receiver) returns()

type StakingTransfer

type StakingTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

StakingTransfer represents a Transfer event raised by the Staking contract.

type StakingTransferIterator

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

StakingTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Staking contract.

func (*StakingTransferIterator) Close

func (it *StakingTransferIterator) Close() error

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

func (*StakingTransferIterator) Error

func (it *StakingTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingTransferIterator) Next

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

type StakingWithdrawn struct {
	DepositId *big.Int
	Receiver  common.Address
	From      common.Address
	Amount    *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StakingWithdrawn represents a Withdrawn event raised by the Staking contract.

type StakingWithdrawnIterator

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

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

func (*StakingWithdrawnIterator) Close

func (it *StakingWithdrawnIterator) Close() error

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

func (*StakingWithdrawnIterator) Error

func (it *StakingWithdrawnIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingWithdrawnIterator) Next

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