rss3

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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")
	AddressStakingVSL    = common.HexToAddress("0x28F14d917fddbA0c1f2923C406952478DfDA5578")
	AddressSettlementVSL = common.HexToAddress("0x0cE3159BF19F3C55B648D04E8f0Ae1Ae118D2A0B")
	AddressChipsVSL      = common.HexToAddress("0x849f8F55078dCc69dD857b58Cc04631EBA54E4DE")

	EventHashStakingDeposited = contract.EventHash("Deposited(address,uint256,uint256,uint256)")
	EventHashStakingWithdrawn = contract.EventHash("Withdrawn(uint256,address,address,uint256)")
	EventHashRewardsClaimed   = contract.EventHash("RewardsClaimed(address,address,uint256)")

	EventHashStakingVSLDeposited = contract.EventHash("Deposited(address,uint256)")
	EventHashStakingVSLStaked    = contract.EventHash("Staked(address,address,uint256,uint256,uint256)")
	EventHashTransfer            = contract.EventHash("Transfer(address,address,uint256)")
)
View Source
var ChipsABI = ChipsMetaData.ABI

ChipsABI is the input ABI used to generate the binding from. Deprecated: Use ChipsMetaData.ABI instead.

View Source
var ChipsMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"AlphaWithdrawNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlreadyClaimed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"AmountTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BatchSizeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotStaking\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ChipNotAuthorized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ChipNotPublicGood\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"ChipNotValid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChipsIdOverflow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChipsNotSameOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"claimId\",\"type\":\"uint256\"}],\"name\":\"ClaimIdNotExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClaimTimeNotReady\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CreateNodeToZeroAddress\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721IncorrectOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721InsufficientApproval\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOperator\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC721InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721NonexistentToken\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyChipsIds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyNodeList\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExcessWithdrawalAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidArrayLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"InvalidEpoch\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"got\",\"type\":\"uint256\"}],\"name\":\"InvalidEpochNumber\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"traitId\",\"type\":\"uint256\"}],\"name\":\"InvalidTraitId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"NodeAlreadyPublicGood\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeNotExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"NodeNotPublicGood\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeStakedOrDeposited\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OperationRewardsExceed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PublicGoodNodeNotDeposited\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PublicGoodNodeNotInAlphaPhase\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"RewardsAlreadyDistributed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SettlementPhase\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"StakeToPublicGoodNode\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingRewardsExceed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SubmissionIntervalNotElapsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TaxRateBasisPointsTooLarge\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TaxRateBasisPointsTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"staking_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"batchSize\",\"type\":\"uint256\"}],\"name\":\"mintBatch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"startTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTokenId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"nodeImageAndAttributesURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakingContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

ChipsMetaData contains all meta data concerning the Chips contract.

View Source
var SettlementABI = SettlementMetaData.ABI

SettlementABI is the input ABI used to generate the binding from. Deprecated: Use SettlementMetaData.ABI instead.

View Source
var SettlementMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"AccessControlBadConfirmation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"neededRole\",\"type\":\"bytes32\"}],\"name\":\"AccessControlUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlphaWithdrawNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlreadyClaimed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"AmountTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BatchSizeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotStaking\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ChipNotAuthorized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ChipNotPublicGood\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"ChipNotValid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChipsIdOverflow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChipsNotSameOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"claimId\",\"type\":\"uint256\"}],\"name\":\"ClaimIdNotExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClaimTimeNotReady\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CreateNodeToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyChipsIds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyNodeList\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExcessWithdrawalAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidArrayLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"InvalidEpoch\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"got\",\"type\":\"uint256\"}],\"name\":\"InvalidEpochNumber\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"traitId\",\"type\":\"uint256\"}],\"name\":\"InvalidTraitId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"NodeAlreadyPublicGood\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeNotExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"NodeNotPublicGood\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeStakedOrDeposited\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OperationRewardsExceed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PublicGoodNodeNotDeposited\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PublicGoodNodeNotInAlphaPhase\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"RewardsAlreadyDistributed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SettlementPhase\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"StakeToPublicGoodNode\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingRewardsExceed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SubmissionIntervalNotElapsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TaxRateBasisPointsTooLarge\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TaxRateBasisPointsTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"EPOCH_DURATION\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ORACLE_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TOTAL_REWARDS_PER_YEAR\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"nodeAddrs\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"operationRewards\",\"type\":\"uint256[]\"},{\"internalType\":\"bool\",\"name\":\"isFinal\",\"type\":\"bool\"}],\"name\":\"distributeRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getBonusInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"staking\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oracleAccount\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"operationRewardsPercent\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"callerConfirmation\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"}],\"name\":\"setTaxRateBasisPoints4PublicPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"nodeAddrs\",\"type\":\"address[]\"}],\"name\":\"slashNodes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stakingContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"operationRewardsPercent\",\"type\":\"uint256\"}],\"name\":\"updateRewardsRatio\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

SettlementMetaData contains all meta data concerning the Settlement contract.

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.

View Source
var StakingVSLABI = StakingVSLMetaData.ABI

StakingVSLABI is the input ABI used to generate the binding from. Deprecated: Use StakingVSLMetaData.ABI instead.

View Source
var StakingVSLMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"treasury\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"stakeRatio\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stakeUnbondingPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depositUnbondingPeriod\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nodeSlashRateBasisPoints\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"userSlashRateBasisPoints\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minDeposit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minTaxRateBasisPoints\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AccessControlBadConfirmation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"neededRole\",\"type\":\"bytes32\"}],\"name\":\"AccessControlUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlphaWithdrawNotAllowed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AlreadyClaimed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"AmountTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"BatchSizeZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CallerNotStaking\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CheckpointUnorderedInsertion\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ChipNotAuthorized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ChipNotPublicGood\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"ChipNotValid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChipsIdOverflow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChipsNotSameOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"claimId\",\"type\":\"uint256\"}],\"name\":\"ClaimIdNotExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ClaimTimeNotReady\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CreateNodeToZeroAddress\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyChipsIds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EmptyNodeList\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EnforcedPause\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExcessWithdrawalAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ExpectedPause\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InsufficientValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidArrayLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"}],\"name\":\"InvalidEpoch\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"current\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"got\",\"type\":\"uint256\"}],\"name\":\"InvalidEpochNumber\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"traitId\",\"type\":\"uint256\"}],\"name\":\"InvalidTraitId\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"NodeAlreadyPublicGood\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeNotExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"NodeNotPublicGood\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NodeStakedOrDeposited\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OperationRewardsExceed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PublicGoodNodeNotDeposited\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"PublicGoodNodeNotInAlphaPhase\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ReentrancyGuardReentrantCall\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"RewardsAlreadyDistributed\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"bits\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"SafeCastOverflowedUintDowncast\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SettlementPhase\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"StakeToPublicGoodNode\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StakingRewardsExceed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SubmissionIntervalNotElapsed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TaxRateBasisPointsTooLarge\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TaxRateBasisPointsTooSmall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransferFailed\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Deposited\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nodeId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"publicGood\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"alpha\",\"type\":\"bool\"}],\"name\":\"NodeCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"slashedOperationPool\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"slashedStakingPool\",\"type\":\"uint256\"}],\"name\":\"NodeSlashed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"}],\"name\":\"NodeTaxRateBasisPointsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"NodeUpdated2PublicGood\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startTimestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endTimestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"publicPoolRewards\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"publicPoolTax\",\"type\":\"uint256\"}],\"name\":\"PublicGoodRewardDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"}],\"name\":\"PublicPoolTaxRateBasisPointsSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startTimestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endTimestamp\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"nodeAddrs\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"operationRewards\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"stakingRewards\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"taxAmounts\",\"type\":\"uint256[]\"}],\"name\":\"RewardDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"startTokenId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"endTokenId\",\"type\":\"uint256\"}],\"name\":\"Staked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unstakeAmount\",\"type\":\"uint256\"}],\"name\":\"UnstakeClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"unstakeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"chipsIds\",\"type\":\"uint256[]\"}],\"name\":\"UnstakeRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"name\":\"WithdrawRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"name\":\"WithdrawalClaimed\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEPOSIT_UNBONDING_PERIOD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_DEPOSIT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_TAX_RATE_BASIS_POINTS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"NODE_SLASH_RATE_BASIS_POINTS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ORACLE_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAUSE_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SHARES_PER_CHIP\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"STAKE_RATIO\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"STAKE_UNBONDING_PERIOD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"TREASURY\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"USER_SLASH_RATE_BASIS_POINTS\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"chipsContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"requestIds\",\"type\":\"uint256[]\"}],\"name\":\"claimUnstake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"requestIds\",\"type\":\"uint256[]\"}],\"name\":\"claimWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"publicGood\",\"type\":\"bool\"}],\"name\":\"createNode\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"disableAlphaPhase\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[3]\",\"name\":\"epochInfo\",\"type\":\"uint256[3]\"},{\"internalType\":\"address[]\",\"name\":\"nodeAddrs\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"operationRewards\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"stakingRewards\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"publicPoolRewards\",\"type\":\"uint256\"}],\"name\":\"distributeRewards\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getChipsInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"getNode\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nodeId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"publicGood\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"alpha\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"operationPoolTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stakingPoolTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalShares\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slashedTokens\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.Node\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"getNodeAvatar\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNodeCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"nodeAddrs\",\"type\":\"address[]\"}],\"name\":\"getNodes\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nodeId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"publicGood\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"alpha\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"operationPoolTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stakingPoolTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalShares\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slashedTokens\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.Node[]\",\"name\":\"nodes\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit\",\"type\":\"uint256\"}],\"name\":\"getNodesWithPagination\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nodeId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"publicGood\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"alpha\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"operationPoolTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stakingPoolTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalShares\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slashedTokens\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.Node[]\",\"name\":\"nodes\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"name\":\"getPendingUnstake\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"unstakeAmount\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.UnstakeRequest\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"name\":\"getPendingWithdrawal\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint40\",\"name\":\"timestamp\",\"type\":\"uint40\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.WithdrawalRequest\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPoolInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalOperationPoolTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalStakingPoolTokens\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPublicPool\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nodeId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"publicGood\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"alpha\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"description\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"operationPoolTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"stakingPoolTokens\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalShares\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"slashedTokens\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.Node\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"chips\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pauseAccount\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"oracleAccount\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isAlphaPhase\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isSettlementPhase\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"minTokensToStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"callerConfirmation\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"chipsIds\",\"type\":\"uint256[]\"}],\"name\":\"requestUnstake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"requestWithdrawal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"requestId\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"enabled\",\"type\":\"bool\"}],\"name\":\"setSettlementPhase\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"}],\"name\":\"setTaxRateBasisPoints4Node\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"taxRateBasisPoints\",\"type\":\"uint64\"}],\"name\":\"setTaxRateBasisPoints4PublicPool\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"nodeAddrs\",\"type\":\"address[]\"}],\"name\":\"slashNodes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"stake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"startTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTokenId\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAddr\",\"type\":\"address\"}],\"name\":\"stakeToPublicPool\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"startTokenId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endTokenId\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updateToPublicGood\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw2Treasury\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

StakingVSLMetaData contains all meta data concerning the StakingVSL contract.

Functions

This section is empty.

Types

type Chips added in v0.3.0

type Chips struct {
	ChipsCaller     // Read-only binding to the contract
	ChipsTransactor // Write-only binding to the contract
	ChipsFilterer   // Log filterer for contract events
}

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

func NewChips added in v0.3.0

func NewChips(address common.Address, backend bind.ContractBackend) (*Chips, error)

NewChips creates a new instance of Chips, bound to a specific deployed contract.

type ChipsApproval added in v0.3.0

type ChipsApproval struct {
	Owner    common.Address
	Approved common.Address
	TokenId  *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

ChipsApproval represents a Approval event raised by the Chips contract.

type ChipsApprovalForAll added in v0.3.0

type ChipsApprovalForAll struct {
	Owner    common.Address
	Operator common.Address
	Approved bool
	Raw      types.Log // Blockchain specific contextual infos
}

ChipsApprovalForAll represents a ApprovalForAll event raised by the Chips contract.

type ChipsApprovalForAllIterator added in v0.3.0

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

ChipsApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the Chips contract.

func (*ChipsApprovalForAllIterator) Close added in v0.3.0

func (it *ChipsApprovalForAllIterator) Close() error

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

func (*ChipsApprovalForAllIterator) Error added in v0.3.0

func (it *ChipsApprovalForAllIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChipsApprovalForAllIterator) Next added in v0.3.0

func (it *ChipsApprovalForAllIterator) 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 ChipsApprovalIterator added in v0.3.0

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

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

func (*ChipsApprovalIterator) Close added in v0.3.0

func (it *ChipsApprovalIterator) Close() error

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

func (*ChipsApprovalIterator) Error added in v0.3.0

func (it *ChipsApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChipsApprovalIterator) Next added in v0.3.0

func (it *ChipsApprovalIterator) 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 ChipsCaller added in v0.3.0

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

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

func NewChipsCaller added in v0.3.0

func NewChipsCaller(address common.Address, caller bind.ContractCaller) (*ChipsCaller, error)

NewChipsCaller creates a new read-only instance of Chips, bound to a specific deployed contract.

func (*ChipsCaller) BalanceOf added in v0.3.0

func (_Chips *ChipsCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

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

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

func (*ChipsCaller) GetApproved added in v0.3.0

func (_Chips *ChipsCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*ChipsCaller) IsApprovedForAll added in v0.3.0

func (_Chips *ChipsCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*ChipsCaller) Name added in v0.3.0

func (_Chips *ChipsCaller) 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 (*ChipsCaller) NodeImageAndAttributesURI added in v0.3.0

func (_Chips *ChipsCaller) NodeImageAndAttributesURI(opts *bind.CallOpts, nodeAddr common.Address) (string, error)

NodeImageAndAttributesURI is a free data retrieval call binding the contract method 0x5661c163.

Solidity: function nodeImageAndAttributesURI(address nodeAddr) view returns(string)

func (*ChipsCaller) OwnerOf added in v0.3.0

func (_Chips *ChipsCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*ChipsCaller) StakingContract added in v0.3.0

func (_Chips *ChipsCaller) StakingContract(opts *bind.CallOpts) (common.Address, error)

StakingContract is a free data retrieval call binding the contract method 0xee99205c.

Solidity: function stakingContract() view returns(address)

func (*ChipsCaller) SupportsInterface added in v0.3.0

func (_Chips *ChipsCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ChipsCaller) Symbol added in v0.3.0

func (_Chips *ChipsCaller) 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 (*ChipsCaller) TokenURI added in v0.3.0

func (_Chips *ChipsCaller) TokenURI(opts *bind.CallOpts, id *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 id) view returns(string)

func (*ChipsCaller) TotalSupply added in v0.3.0

func (_Chips *ChipsCaller) 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)

type ChipsCallerRaw added in v0.3.0

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

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

func (*ChipsCallerRaw) Call added in v0.3.0

func (_Chips *ChipsCallerRaw) 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 ChipsCallerSession added in v0.3.0

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

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

func (*ChipsCallerSession) BalanceOf added in v0.3.0

func (_Chips *ChipsCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*ChipsCallerSession) GetApproved added in v0.3.0

func (_Chips *ChipsCallerSession) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*ChipsCallerSession) IsApprovedForAll added in v0.3.0

func (_Chips *ChipsCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*ChipsCallerSession) Name added in v0.3.0

func (_Chips *ChipsCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ChipsCallerSession) NodeImageAndAttributesURI added in v0.3.0

func (_Chips *ChipsCallerSession) NodeImageAndAttributesURI(nodeAddr common.Address) (string, error)

NodeImageAndAttributesURI is a free data retrieval call binding the contract method 0x5661c163.

Solidity: function nodeImageAndAttributesURI(address nodeAddr) view returns(string)

func (*ChipsCallerSession) OwnerOf added in v0.3.0

func (_Chips *ChipsCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*ChipsCallerSession) StakingContract added in v0.3.0

func (_Chips *ChipsCallerSession) StakingContract() (common.Address, error)

StakingContract is a free data retrieval call binding the contract method 0xee99205c.

Solidity: function stakingContract() view returns(address)

func (*ChipsCallerSession) SupportsInterface added in v0.3.0

func (_Chips *ChipsCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ChipsCallerSession) Symbol added in v0.3.0

func (_Chips *ChipsCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ChipsCallerSession) TokenURI added in v0.3.0

func (_Chips *ChipsCallerSession) TokenURI(id *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 id) view returns(string)

func (*ChipsCallerSession) TotalSupply added in v0.3.0

func (_Chips *ChipsCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ChipsFilterer added in v0.3.0

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

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

func NewChipsFilterer added in v0.3.0

func NewChipsFilterer(address common.Address, filterer bind.ContractFilterer) (*ChipsFilterer, error)

NewChipsFilterer creates a new log filterer instance of Chips, bound to a specific deployed contract.

func (*ChipsFilterer) FilterApproval added in v0.3.0

func (_Chips *ChipsFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ChipsApprovalIterator, error)

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

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*ChipsFilterer) FilterApprovalForAll added in v0.3.0

func (_Chips *ChipsFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*ChipsApprovalForAllIterator, error)

FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*ChipsFilterer) FilterInitialized added in v0.3.0

func (_Chips *ChipsFilterer) FilterInitialized(opts *bind.FilterOpts) (*ChipsInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*ChipsFilterer) FilterTransfer added in v0.3.0

func (_Chips *ChipsFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*ChipsTransferIterator, error)

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

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

func (*ChipsFilterer) ParseApproval added in v0.3.0

func (_Chips *ChipsFilterer) ParseApproval(log types.Log) (*ChipsApproval, error)

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

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*ChipsFilterer) ParseApprovalForAll added in v0.3.0

func (_Chips *ChipsFilterer) ParseApprovalForAll(log types.Log) (*ChipsApprovalForAll, error)

ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*ChipsFilterer) ParseInitialized added in v0.3.0

func (_Chips *ChipsFilterer) ParseInitialized(log types.Log) (*ChipsInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*ChipsFilterer) ParseTransfer added in v0.3.0

func (_Chips *ChipsFilterer) ParseTransfer(log types.Log) (*ChipsTransfer, error)

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

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

func (*ChipsFilterer) WatchApproval added in v0.3.0

func (_Chips *ChipsFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ChipsApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error)

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

Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)

func (*ChipsFilterer) WatchApprovalForAll added in v0.3.0

func (_Chips *ChipsFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ChipsApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error)

WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.

Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)

func (*ChipsFilterer) WatchInitialized added in v0.3.0

func (_Chips *ChipsFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ChipsInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*ChipsFilterer) WatchTransfer added in v0.3.0

func (_Chips *ChipsFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ChipsTransfer, from []common.Address, to []common.Address, tokenId []*big.Int) (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 indexed tokenId)

type ChipsInitialized added in v0.3.0

type ChipsInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

ChipsInitialized represents a Initialized event raised by the Chips contract.

type ChipsInitializedIterator added in v0.3.0

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

ChipsInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Chips contract.

func (*ChipsInitializedIterator) Close added in v0.3.0

func (it *ChipsInitializedIterator) Close() error

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

func (*ChipsInitializedIterator) Error added in v0.3.0

func (it *ChipsInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChipsInitializedIterator) Next added in v0.3.0

func (it *ChipsInitializedIterator) 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 ChipsRaw added in v0.3.0

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

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

func (*ChipsRaw) Call added in v0.3.0

func (_Chips *ChipsRaw) 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 (*ChipsRaw) Transact added in v0.3.0

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

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

func (*ChipsRaw) Transfer added in v0.3.0

func (_Chips *ChipsRaw) 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 ChipsSession added in v0.3.0

type ChipsSession struct {
	Contract     *Chips            // 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
}

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

func (*ChipsSession) Approve added in v0.3.0

func (_Chips *ChipsSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address to, uint256 tokenId) returns()

func (*ChipsSession) BalanceOf added in v0.3.0

func (_Chips *ChipsSession) BalanceOf(owner common.Address) (*big.Int, error)

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

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

func (*ChipsSession) Burn added in v0.3.0

func (_Chips *ChipsSession) Burn(tokenId *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 tokenId) returns()

func (*ChipsSession) GetApproved added in v0.3.0

func (_Chips *ChipsSession) GetApproved(tokenId *big.Int) (common.Address, error)

GetApproved is a free data retrieval call binding the contract method 0x081812fc.

Solidity: function getApproved(uint256 tokenId) view returns(address)

func (*ChipsSession) Initialize added in v0.3.0

func (_Chips *ChipsSession) Initialize(name_ string, symbol_ string, staking_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x077f224a.

Solidity: function initialize(string name_, string symbol_, address staking_) returns()

func (*ChipsSession) IsApprovedForAll added in v0.3.0

func (_Chips *ChipsSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)

IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.

Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)

func (*ChipsSession) Mint added in v0.3.0

func (_Chips *ChipsSession) Mint(account common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address account) returns(uint256 tokenId)

func (*ChipsSession) MintBatch added in v0.3.0

func (_Chips *ChipsSession) MintBatch(to common.Address, batchSize *big.Int) (*types.Transaction, error)

MintBatch is a paid mutator transaction binding the contract method 0x248b71fc.

Solidity: function mintBatch(address to, uint256 batchSize) returns(uint256 startTokenId, uint256 endTokenId)

func (*ChipsSession) Name added in v0.3.0

func (_Chips *ChipsSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ChipsSession) NodeImageAndAttributesURI added in v0.3.0

func (_Chips *ChipsSession) NodeImageAndAttributesURI(nodeAddr common.Address) (string, error)

NodeImageAndAttributesURI is a free data retrieval call binding the contract method 0x5661c163.

Solidity: function nodeImageAndAttributesURI(address nodeAddr) view returns(string)

func (*ChipsSession) OwnerOf added in v0.3.0

func (_Chips *ChipsSession) OwnerOf(tokenId *big.Int) (common.Address, error)

OwnerOf is a free data retrieval call binding the contract method 0x6352211e.

Solidity: function ownerOf(uint256 tokenId) view returns(address)

func (*ChipsSession) SafeTransferFrom added in v0.3.0

func (_Chips *ChipsSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*ChipsSession) SafeTransferFrom0 added in v0.3.0

func (_Chips *ChipsSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*ChipsSession) SetApprovalForAll added in v0.3.0

func (_Chips *ChipsSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*ChipsSession) StakingContract added in v0.3.0

func (_Chips *ChipsSession) StakingContract() (common.Address, error)

StakingContract is a free data retrieval call binding the contract method 0xee99205c.

Solidity: function stakingContract() view returns(address)

func (*ChipsSession) SupportsInterface added in v0.3.0

func (_Chips *ChipsSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*ChipsSession) Symbol added in v0.3.0

func (_Chips *ChipsSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ChipsSession) TokenURI added in v0.3.0

func (_Chips *ChipsSession) TokenURI(id *big.Int) (string, error)

TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.

Solidity: function tokenURI(uint256 id) view returns(string)

func (*ChipsSession) TotalSupply added in v0.3.0

func (_Chips *ChipsSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*ChipsSession) TransferFrom added in v0.3.0

func (_Chips *ChipsSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

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

type ChipsTransactor added in v0.3.0

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

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

func NewChipsTransactor added in v0.3.0

func NewChipsTransactor(address common.Address, transactor bind.ContractTransactor) (*ChipsTransactor, error)

NewChipsTransactor creates a new write-only instance of Chips, bound to a specific deployed contract.

func (*ChipsTransactor) Approve added in v0.3.0

func (_Chips *ChipsTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address to, uint256 tokenId) returns()

func (*ChipsTransactor) Burn added in v0.3.0

func (_Chips *ChipsTransactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 tokenId) returns()

func (*ChipsTransactor) Initialize added in v0.3.0

func (_Chips *ChipsTransactor) Initialize(opts *bind.TransactOpts, name_ string, symbol_ string, staking_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x077f224a.

Solidity: function initialize(string name_, string symbol_, address staking_) returns()

func (*ChipsTransactor) Mint added in v0.3.0

func (_Chips *ChipsTransactor) Mint(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address account) returns(uint256 tokenId)

func (*ChipsTransactor) MintBatch added in v0.3.0

func (_Chips *ChipsTransactor) MintBatch(opts *bind.TransactOpts, to common.Address, batchSize *big.Int) (*types.Transaction, error)

MintBatch is a paid mutator transaction binding the contract method 0x248b71fc.

Solidity: function mintBatch(address to, uint256 batchSize) returns(uint256 startTokenId, uint256 endTokenId)

func (*ChipsTransactor) SafeTransferFrom added in v0.3.0

func (_Chips *ChipsTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*ChipsTransactor) SafeTransferFrom0 added in v0.3.0

func (_Chips *ChipsTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*ChipsTransactor) SetApprovalForAll added in v0.3.0

func (_Chips *ChipsTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*ChipsTransactor) TransferFrom added in v0.3.0

func (_Chips *ChipsTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

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

type ChipsTransactorRaw added in v0.3.0

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

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

func (*ChipsTransactorRaw) Transact added in v0.3.0

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

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

func (*ChipsTransactorRaw) Transfer added in v0.3.0

func (_Chips *ChipsTransactorRaw) 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 ChipsTransactorSession added in v0.3.0

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

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

func (*ChipsTransactorSession) Approve added in v0.3.0

func (_Chips *ChipsTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

Solidity: function approve(address to, uint256 tokenId) returns()

func (*ChipsTransactorSession) Burn added in v0.3.0

func (_Chips *ChipsTransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0x42966c68.

Solidity: function burn(uint256 tokenId) returns()

func (*ChipsTransactorSession) Initialize added in v0.3.0

func (_Chips *ChipsTransactorSession) Initialize(name_ string, symbol_ string, staking_ common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x077f224a.

Solidity: function initialize(string name_, string symbol_, address staking_) returns()

func (*ChipsTransactorSession) Mint added in v0.3.0

func (_Chips *ChipsTransactorSession) Mint(account common.Address) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x6a627842.

Solidity: function mint(address account) returns(uint256 tokenId)

func (*ChipsTransactorSession) MintBatch added in v0.3.0

func (_Chips *ChipsTransactorSession) MintBatch(to common.Address, batchSize *big.Int) (*types.Transaction, error)

MintBatch is a paid mutator transaction binding the contract method 0x248b71fc.

Solidity: function mintBatch(address to, uint256 batchSize) returns(uint256 startTokenId, uint256 endTokenId)

func (*ChipsTransactorSession) SafeTransferFrom added in v0.3.0

func (_Chips *ChipsTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()

func (*ChipsTransactorSession) SafeTransferFrom0 added in v0.3.0

func (_Chips *ChipsTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)

SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.

Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()

func (*ChipsTransactorSession) SetApprovalForAll added in v0.3.0

func (_Chips *ChipsTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)

SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.

Solidity: function setApprovalForAll(address operator, bool approved) returns()

func (*ChipsTransactorSession) TransferFrom added in v0.3.0

func (_Chips *ChipsTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)

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

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

type ChipsTransfer added in v0.3.0

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

ChipsTransfer represents a Transfer event raised by the Chips contract.

type ChipsTransferIterator added in v0.3.0

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

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

func (*ChipsTransferIterator) Close added in v0.3.0

func (it *ChipsTransferIterator) Close() error

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

func (*ChipsTransferIterator) Error added in v0.3.0

func (it *ChipsTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ChipsTransferIterator) Next added in v0.3.0

func (it *ChipsTransferIterator) 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 DataTypesNode added in v0.3.0

type DataTypesNode struct {
	NodeId              *big.Int
	Account             common.Address
	TaxRateBasisPoints  uint64
	PublicGood          bool
	Alpha               bool
	Name                string
	Description         string
	OperationPoolTokens *big.Int
	StakingPoolTokens   *big.Int
	TotalShares         *big.Int
	SlashedTokens       *big.Int
}

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

type DataTypesUnstakeRequest added in v0.3.0

type DataTypesUnstakeRequest struct {
	Owner         common.Address
	NodeAddr      common.Address
	Timestamp     *big.Int
	UnstakeAmount *big.Int
}

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

type DataTypesWithdrawalRequest added in v0.3.0

type DataTypesWithdrawalRequest struct {
	Owner     common.Address
	Timestamp *big.Int
	Amount    *big.Int
}

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

type Settlement added in v0.3.0

type Settlement struct {
	SettlementCaller     // Read-only binding to the contract
	SettlementTransactor // Write-only binding to the contract
	SettlementFilterer   // Log filterer for contract events
}

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

func NewSettlement added in v0.3.0

func NewSettlement(address common.Address, backend bind.ContractBackend) (*Settlement, error)

NewSettlement creates a new instance of Settlement, bound to a specific deployed contract.

type SettlementCaller added in v0.3.0

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

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

func NewSettlementCaller added in v0.3.0

func NewSettlementCaller(address common.Address, caller bind.ContractCaller) (*SettlementCaller, error)

NewSettlementCaller creates a new read-only instance of Settlement, bound to a specific deployed contract.

func (*SettlementCaller) CurrentEpoch added in v0.3.0

func (_Settlement *SettlementCaller) CurrentEpoch(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function currentEpoch() view returns(uint256)

func (*SettlementCaller) DEFAULTADMINROLE added in v0.3.0

func (_Settlement *SettlementCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*SettlementCaller) EPOCHDURATION added in v0.3.0

func (_Settlement *SettlementCaller) EPOCHDURATION(opts *bind.CallOpts) (*big.Int, error)

EPOCHDURATION is a free data retrieval call binding the contract method 0xa70b9f0c.

Solidity: function EPOCH_DURATION() view returns(uint256)

func (*SettlementCaller) GetBonusInfo added in v0.3.0

func (_Settlement *SettlementCaller) GetBonusInfo(opts *bind.CallOpts) (*big.Int, *big.Int, error)

GetBonusInfo is a free data retrieval call binding the contract method 0xfc5567d0.

Solidity: function getBonusInfo() view returns(uint256, uint256)

func (*SettlementCaller) GetRoleAdmin added in v0.3.0

func (_Settlement *SettlementCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*SettlementCaller) GetRoleMember added in v0.3.0

func (_Settlement *SettlementCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*SettlementCaller) GetRoleMemberCount added in v0.3.0

func (_Settlement *SettlementCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*SettlementCaller) HasRole added in v0.3.0

func (_Settlement *SettlementCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*SettlementCaller) ORACLEROLE added in v0.3.0

func (_Settlement *SettlementCaller) ORACLEROLE(opts *bind.CallOpts) ([32]byte, error)

ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*SettlementCaller) StakingContract added in v0.3.0

func (_Settlement *SettlementCaller) StakingContract(opts *bind.CallOpts) (common.Address, error)

StakingContract is a free data retrieval call binding the contract method 0xee99205c.

Solidity: function stakingContract() view returns(address)

func (*SettlementCaller) SupportsInterface added in v0.3.0

func (_Settlement *SettlementCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*SettlementCaller) TOTALREWARDSPERYEAR added in v0.3.0

func (_Settlement *SettlementCaller) TOTALREWARDSPERYEAR(opts *bind.CallOpts) (*big.Int, error)

TOTALREWARDSPERYEAR is a free data retrieval call binding the contract method 0xd2adf460.

Solidity: function TOTAL_REWARDS_PER_YEAR() view returns(uint256)

type SettlementCallerRaw added in v0.3.0

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

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

func (*SettlementCallerRaw) Call added in v0.3.0

func (_Settlement *SettlementCallerRaw) 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 SettlementCallerSession added in v0.3.0

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

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

func (*SettlementCallerSession) CurrentEpoch added in v0.3.0

func (_Settlement *SettlementCallerSession) CurrentEpoch() (*big.Int, error)

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

Solidity: function currentEpoch() view returns(uint256)

func (*SettlementCallerSession) DEFAULTADMINROLE added in v0.3.0

func (_Settlement *SettlementCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*SettlementCallerSession) EPOCHDURATION added in v0.3.0

func (_Settlement *SettlementCallerSession) EPOCHDURATION() (*big.Int, error)

EPOCHDURATION is a free data retrieval call binding the contract method 0xa70b9f0c.

Solidity: function EPOCH_DURATION() view returns(uint256)

func (*SettlementCallerSession) GetBonusInfo added in v0.3.0

func (_Settlement *SettlementCallerSession) GetBonusInfo() (*big.Int, *big.Int, error)

GetBonusInfo is a free data retrieval call binding the contract method 0xfc5567d0.

Solidity: function getBonusInfo() view returns(uint256, uint256)

func (*SettlementCallerSession) GetRoleAdmin added in v0.3.0

func (_Settlement *SettlementCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*SettlementCallerSession) GetRoleMember added in v0.3.0

func (_Settlement *SettlementCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*SettlementCallerSession) GetRoleMemberCount added in v0.3.0

func (_Settlement *SettlementCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*SettlementCallerSession) HasRole added in v0.3.0

func (_Settlement *SettlementCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*SettlementCallerSession) ORACLEROLE added in v0.3.0

func (_Settlement *SettlementCallerSession) ORACLEROLE() ([32]byte, error)

ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*SettlementCallerSession) StakingContract added in v0.3.0

func (_Settlement *SettlementCallerSession) StakingContract() (common.Address, error)

StakingContract is a free data retrieval call binding the contract method 0xee99205c.

Solidity: function stakingContract() view returns(address)

func (*SettlementCallerSession) SupportsInterface added in v0.3.0

func (_Settlement *SettlementCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*SettlementCallerSession) TOTALREWARDSPERYEAR added in v0.3.0

func (_Settlement *SettlementCallerSession) TOTALREWARDSPERYEAR() (*big.Int, error)

TOTALREWARDSPERYEAR is a free data retrieval call binding the contract method 0xd2adf460.

Solidity: function TOTAL_REWARDS_PER_YEAR() view returns(uint256)

type SettlementFilterer added in v0.3.0

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

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

func NewSettlementFilterer added in v0.3.0

func NewSettlementFilterer(address common.Address, filterer bind.ContractFilterer) (*SettlementFilterer, error)

NewSettlementFilterer creates a new log filterer instance of Settlement, bound to a specific deployed contract.

func (*SettlementFilterer) FilterInitialized added in v0.3.0

func (_Settlement *SettlementFilterer) FilterInitialized(opts *bind.FilterOpts) (*SettlementInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*SettlementFilterer) FilterRoleAdminChanged added in v0.3.0

func (_Settlement *SettlementFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*SettlementRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*SettlementFilterer) FilterRoleGranted added in v0.3.0

func (_Settlement *SettlementFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SettlementRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*SettlementFilterer) FilterRoleRevoked added in v0.3.0

func (_Settlement *SettlementFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SettlementRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*SettlementFilterer) ParseInitialized added in v0.3.0

func (_Settlement *SettlementFilterer) ParseInitialized(log types.Log) (*SettlementInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*SettlementFilterer) ParseRoleAdminChanged added in v0.3.0

func (_Settlement *SettlementFilterer) ParseRoleAdminChanged(log types.Log) (*SettlementRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*SettlementFilterer) ParseRoleGranted added in v0.3.0

func (_Settlement *SettlementFilterer) ParseRoleGranted(log types.Log) (*SettlementRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*SettlementFilterer) ParseRoleRevoked added in v0.3.0

func (_Settlement *SettlementFilterer) ParseRoleRevoked(log types.Log) (*SettlementRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*SettlementFilterer) WatchInitialized added in v0.3.0

func (_Settlement *SettlementFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SettlementInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*SettlementFilterer) WatchRoleAdminChanged added in v0.3.0

func (_Settlement *SettlementFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *SettlementRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*SettlementFilterer) WatchRoleGranted added in v0.3.0

func (_Settlement *SettlementFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *SettlementRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*SettlementFilterer) WatchRoleRevoked added in v0.3.0

func (_Settlement *SettlementFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *SettlementRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

type SettlementInitialized added in v0.3.0

type SettlementInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

SettlementInitialized represents a Initialized event raised by the Settlement contract.

type SettlementInitializedIterator added in v0.3.0

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

SettlementInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Settlement contract.

func (*SettlementInitializedIterator) Close added in v0.3.0

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

func (*SettlementInitializedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SettlementInitializedIterator) Next added in v0.3.0

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 SettlementRaw added in v0.3.0

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

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

func (*SettlementRaw) Call added in v0.3.0

func (_Settlement *SettlementRaw) 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 (*SettlementRaw) Transact added in v0.3.0

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

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

func (*SettlementRaw) Transfer added in v0.3.0

func (_Settlement *SettlementRaw) 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 SettlementRoleAdminChanged added in v0.3.0

type SettlementRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

SettlementRoleAdminChanged represents a RoleAdminChanged event raised by the Settlement contract.

type SettlementRoleAdminChangedIterator added in v0.3.0

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

SettlementRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Settlement contract.

func (*SettlementRoleAdminChangedIterator) Close added in v0.3.0

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

func (*SettlementRoleAdminChangedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SettlementRoleAdminChangedIterator) Next added in v0.3.0

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 SettlementRoleGranted added in v0.3.0

type SettlementRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

SettlementRoleGranted represents a RoleGranted event raised by the Settlement contract.

type SettlementRoleGrantedIterator added in v0.3.0

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

SettlementRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Settlement contract.

func (*SettlementRoleGrantedIterator) Close added in v0.3.0

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

func (*SettlementRoleGrantedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SettlementRoleGrantedIterator) Next added in v0.3.0

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 SettlementRoleRevoked added in v0.3.0

type SettlementRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

SettlementRoleRevoked represents a RoleRevoked event raised by the Settlement contract.

type SettlementRoleRevokedIterator added in v0.3.0

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

SettlementRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Settlement contract.

func (*SettlementRoleRevokedIterator) Close added in v0.3.0

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

func (*SettlementRoleRevokedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*SettlementRoleRevokedIterator) Next added in v0.3.0

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 SettlementSession added in v0.3.0

type SettlementSession struct {
	Contract     *Settlement       // 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
}

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

func (*SettlementSession) CurrentEpoch added in v0.3.0

func (_Settlement *SettlementSession) CurrentEpoch() (*big.Int, error)

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

Solidity: function currentEpoch() view returns(uint256)

func (*SettlementSession) DEFAULTADMINROLE added in v0.3.0

func (_Settlement *SettlementSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*SettlementSession) DistributeRewards added in v0.3.0

func (_Settlement *SettlementSession) DistributeRewards(epoch *big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, isFinal bool) (*types.Transaction, error)

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

Solidity: function distributeRewards(uint256 epoch, address[] nodeAddrs, uint256[] operationRewards, bool isFinal) returns()

func (*SettlementSession) EPOCHDURATION added in v0.3.0

func (_Settlement *SettlementSession) EPOCHDURATION() (*big.Int, error)

EPOCHDURATION is a free data retrieval call binding the contract method 0xa70b9f0c.

Solidity: function EPOCH_DURATION() view returns(uint256)

func (*SettlementSession) GetBonusInfo added in v0.3.0

func (_Settlement *SettlementSession) GetBonusInfo() (*big.Int, *big.Int, error)

GetBonusInfo is a free data retrieval call binding the contract method 0xfc5567d0.

Solidity: function getBonusInfo() view returns(uint256, uint256)

func (*SettlementSession) GetRoleAdmin added in v0.3.0

func (_Settlement *SettlementSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*SettlementSession) GetRoleMember added in v0.3.0

func (_Settlement *SettlementSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*SettlementSession) GetRoleMemberCount added in v0.3.0

func (_Settlement *SettlementSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*SettlementSession) GrantRole added in v0.3.0

func (_Settlement *SettlementSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*SettlementSession) HasRole added in v0.3.0

func (_Settlement *SettlementSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*SettlementSession) Initialize added in v0.3.0

func (_Settlement *SettlementSession) Initialize(staking common.Address, oracleAccount common.Address, startTime *big.Int, operationRewardsPercent *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xeb990c59.

Solidity: function initialize(address staking, address oracleAccount, uint256 startTime, uint256 operationRewardsPercent) returns()

func (*SettlementSession) ORACLEROLE added in v0.3.0

func (_Settlement *SettlementSession) ORACLEROLE() ([32]byte, error)

ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*SettlementSession) RenounceRole added in v0.3.0

func (_Settlement *SettlementSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*SettlementSession) RevokeRole added in v0.3.0

func (_Settlement *SettlementSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*SettlementSession) SetTaxRateBasisPoints4PublicPool added in v0.3.0

func (_Settlement *SettlementSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)

SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.

Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()

func (*SettlementSession) SlashNodes added in v0.3.0

func (_Settlement *SettlementSession) SlashNodes(nodeAddrs []common.Address) (*types.Transaction, error)

SlashNodes is a paid mutator transaction binding the contract method 0xa2f641c3.

Solidity: function slashNodes(address[] nodeAddrs) returns()

func (*SettlementSession) StakingContract added in v0.3.0

func (_Settlement *SettlementSession) StakingContract() (common.Address, error)

StakingContract is a free data retrieval call binding the contract method 0xee99205c.

Solidity: function stakingContract() view returns(address)

func (*SettlementSession) SupportsInterface added in v0.3.0

func (_Settlement *SettlementSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*SettlementSession) TOTALREWARDSPERYEAR added in v0.3.0

func (_Settlement *SettlementSession) TOTALREWARDSPERYEAR() (*big.Int, error)

TOTALREWARDSPERYEAR is a free data retrieval call binding the contract method 0xd2adf460.

Solidity: function TOTAL_REWARDS_PER_YEAR() view returns(uint256)

func (*SettlementSession) UpdateRewardsRatio added in v0.3.0

func (_Settlement *SettlementSession) UpdateRewardsRatio(operationRewardsPercent *big.Int) (*types.Transaction, error)

UpdateRewardsRatio is a paid mutator transaction binding the contract method 0xc8afeea5.

Solidity: function updateRewardsRatio(uint256 operationRewardsPercent) returns()

type SettlementTransactor added in v0.3.0

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

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

func NewSettlementTransactor added in v0.3.0

func NewSettlementTransactor(address common.Address, transactor bind.ContractTransactor) (*SettlementTransactor, error)

NewSettlementTransactor creates a new write-only instance of Settlement, bound to a specific deployed contract.

func (*SettlementTransactor) DistributeRewards added in v0.3.0

func (_Settlement *SettlementTransactor) DistributeRewards(opts *bind.TransactOpts, epoch *big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, isFinal bool) (*types.Transaction, error)

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

Solidity: function distributeRewards(uint256 epoch, address[] nodeAddrs, uint256[] operationRewards, bool isFinal) returns()

func (*SettlementTransactor) GrantRole added in v0.3.0

func (_Settlement *SettlementTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*SettlementTransactor) Initialize added in v0.3.0

func (_Settlement *SettlementTransactor) Initialize(opts *bind.TransactOpts, staking common.Address, oracleAccount common.Address, startTime *big.Int, operationRewardsPercent *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xeb990c59.

Solidity: function initialize(address staking, address oracleAccount, uint256 startTime, uint256 operationRewardsPercent) returns()

func (*SettlementTransactor) RenounceRole added in v0.3.0

func (_Settlement *SettlementTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*SettlementTransactor) RevokeRole added in v0.3.0

func (_Settlement *SettlementTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*SettlementTransactor) SetTaxRateBasisPoints4PublicPool added in v0.3.0

func (_Settlement *SettlementTransactor) SetTaxRateBasisPoints4PublicPool(opts *bind.TransactOpts, taxRateBasisPoints uint64) (*types.Transaction, error)

SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.

Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()

func (*SettlementTransactor) SlashNodes added in v0.3.0

func (_Settlement *SettlementTransactor) SlashNodes(opts *bind.TransactOpts, nodeAddrs []common.Address) (*types.Transaction, error)

SlashNodes is a paid mutator transaction binding the contract method 0xa2f641c3.

Solidity: function slashNodes(address[] nodeAddrs) returns()

func (*SettlementTransactor) UpdateRewardsRatio added in v0.3.0

func (_Settlement *SettlementTransactor) UpdateRewardsRatio(opts *bind.TransactOpts, operationRewardsPercent *big.Int) (*types.Transaction, error)

UpdateRewardsRatio is a paid mutator transaction binding the contract method 0xc8afeea5.

Solidity: function updateRewardsRatio(uint256 operationRewardsPercent) returns()

type SettlementTransactorRaw added in v0.3.0

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

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

func (*SettlementTransactorRaw) Transact added in v0.3.0

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

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

func (*SettlementTransactorRaw) Transfer added in v0.3.0

func (_Settlement *SettlementTransactorRaw) 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 SettlementTransactorSession added in v0.3.0

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

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

func (*SettlementTransactorSession) DistributeRewards added in v0.3.0

func (_Settlement *SettlementTransactorSession) DistributeRewards(epoch *big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, isFinal bool) (*types.Transaction, error)

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

Solidity: function distributeRewards(uint256 epoch, address[] nodeAddrs, uint256[] operationRewards, bool isFinal) returns()

func (*SettlementTransactorSession) GrantRole added in v0.3.0

func (_Settlement *SettlementTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*SettlementTransactorSession) Initialize added in v0.3.0

func (_Settlement *SettlementTransactorSession) Initialize(staking common.Address, oracleAccount common.Address, startTime *big.Int, operationRewardsPercent *big.Int) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xeb990c59.

Solidity: function initialize(address staking, address oracleAccount, uint256 startTime, uint256 operationRewardsPercent) returns()

func (*SettlementTransactorSession) RenounceRole added in v0.3.0

func (_Settlement *SettlementTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*SettlementTransactorSession) RevokeRole added in v0.3.0

func (_Settlement *SettlementTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*SettlementTransactorSession) SetTaxRateBasisPoints4PublicPool added in v0.3.0

func (_Settlement *SettlementTransactorSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)

SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.

Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()

func (*SettlementTransactorSession) SlashNodes added in v0.3.0

func (_Settlement *SettlementTransactorSession) SlashNodes(nodeAddrs []common.Address) (*types.Transaction, error)

SlashNodes is a paid mutator transaction binding the contract method 0xa2f641c3.

Solidity: function slashNodes(address[] nodeAddrs) returns()

func (*SettlementTransactorSession) UpdateRewardsRatio added in v0.3.0

func (_Settlement *SettlementTransactorSession) UpdateRewardsRatio(operationRewardsPercent *big.Int) (*types.Transaction, error)

UpdateRewardsRatio is a paid mutator transaction binding the contract method 0xc8afeea5.

Solidity: function updateRewardsRatio(uint256 operationRewardsPercent) returns()

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 StakingVSL added in v0.3.0

type StakingVSL struct {
	StakingVSLCaller     // Read-only binding to the contract
	StakingVSLTransactor // Write-only binding to the contract
	StakingVSLFilterer   // Log filterer for contract events
}

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

func NewStakingVSL added in v0.3.0

func NewStakingVSL(address common.Address, backend bind.ContractBackend) (*StakingVSL, error)

NewStakingVSL creates a new instance of StakingVSL, bound to a specific deployed contract.

type StakingVSLCaller added in v0.3.0

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

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

func NewStakingVSLCaller added in v0.3.0

func NewStakingVSLCaller(address common.Address, caller bind.ContractCaller) (*StakingVSLCaller, error)

NewStakingVSLCaller creates a new read-only instance of StakingVSL, bound to a specific deployed contract.

func (*StakingVSLCaller) ChipsContract added in v0.3.0

func (_StakingVSL *StakingVSLCaller) ChipsContract(opts *bind.CallOpts) (common.Address, error)

ChipsContract is a free data retrieval call binding the contract method 0xd13b19a3.

Solidity: function chipsContract() view returns(address)

func (*StakingVSLCaller) DEFAULTADMINROLE added in v0.3.0

func (_StakingVSL *StakingVSLCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*StakingVSLCaller) DEPOSITUNBONDINGPERIOD added in v0.3.0

func (_StakingVSL *StakingVSLCaller) DEPOSITUNBONDINGPERIOD(opts *bind.CallOpts) (*big.Int, error)

DEPOSITUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x6bdc11d5.

Solidity: function DEPOSIT_UNBONDING_PERIOD() view returns(uint256)

func (*StakingVSLCaller) GetChipsInfo added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetChipsInfo(opts *bind.CallOpts, tokenId *big.Int) (struct {
	NodeAddr common.Address
	Tokens   *big.Int
}, error)

GetChipsInfo is a free data retrieval call binding the contract method 0x90d3f47c.

Solidity: function getChipsInfo(uint256 tokenId) view returns(address nodeAddr, uint256 tokens)

func (*StakingVSLCaller) GetNode added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetNode(opts *bind.CallOpts, nodeAddr common.Address) (DataTypesNode, error)

GetNode is a free data retrieval call binding the contract method 0x9d209048.

Solidity: function getNode(address nodeAddr) view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256))

func (*StakingVSLCaller) GetNodeAvatar added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetNodeAvatar(opts *bind.CallOpts, nodeAddr common.Address) (string, error)

GetNodeAvatar is a free data retrieval call binding the contract method 0x1474deaa.

Solidity: function getNodeAvatar(address nodeAddr) view returns(string)

func (*StakingVSLCaller) GetNodeCount added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetNodeCount(opts *bind.CallOpts) (*big.Int, error)

GetNodeCount is a free data retrieval call binding the contract method 0x39bf397e.

Solidity: function getNodeCount() view returns(uint256)

func (*StakingVSLCaller) GetNodes added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetNodes(opts *bind.CallOpts, nodeAddrs []common.Address) ([]DataTypesNode, error)

GetNodes is a free data retrieval call binding the contract method 0x38c96b14.

Solidity: function getNodes(address[] nodeAddrs) view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256)[] nodes)

func (*StakingVSLCaller) GetNodesWithPagination added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetNodesWithPagination(opts *bind.CallOpts, offset *big.Int, limit *big.Int) ([]DataTypesNode, error)

GetNodesWithPagination is a free data retrieval call binding the contract method 0xd995415b.

Solidity: function getNodesWithPagination(uint256 offset, uint256 limit) view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256)[] nodes)

func (*StakingVSLCaller) GetPendingUnstake added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetPendingUnstake(opts *bind.CallOpts, requestId *big.Int) (DataTypesUnstakeRequest, error)

GetPendingUnstake is a free data retrieval call binding the contract method 0xadfd065f.

Solidity: function getPendingUnstake(uint256 requestId) view returns((address,address,uint256,uint256))

func (*StakingVSLCaller) GetPendingWithdrawal added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetPendingWithdrawal(opts *bind.CallOpts, requestId *big.Int) (DataTypesWithdrawalRequest, error)

GetPendingWithdrawal is a free data retrieval call binding the contract method 0x38a3c878.

Solidity: function getPendingWithdrawal(uint256 requestId) view returns((address,uint40,uint256))

func (*StakingVSLCaller) GetPoolInfo added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetPoolInfo(opts *bind.CallOpts) (struct {
	TotalOperationPoolTokens *big.Int
	TotalStakingPoolTokens   *big.Int
}, error)

GetPoolInfo is a free data retrieval call binding the contract method 0x60246c88.

Solidity: function getPoolInfo() view returns(uint256 totalOperationPoolTokens, uint256 totalStakingPoolTokens)

func (*StakingVSLCaller) GetPublicPool added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetPublicPool(opts *bind.CallOpts) (DataTypesNode, error)

GetPublicPool is a free data retrieval call binding the contract method 0xc84c42a3.

Solidity: function getPublicPool() view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256))

func (*StakingVSLCaller) GetRoleAdmin added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*StakingVSLCaller) GetRoleMember added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*StakingVSLCaller) GetRoleMemberCount added in v0.3.0

func (_StakingVSL *StakingVSLCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*StakingVSLCaller) HasRole added in v0.3.0

func (_StakingVSL *StakingVSLCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*StakingVSLCaller) IsAlphaPhase added in v0.3.0

func (_StakingVSL *StakingVSLCaller) IsAlphaPhase(opts *bind.CallOpts) (bool, error)

IsAlphaPhase is a free data retrieval call binding the contract method 0x69ff71f6.

Solidity: function isAlphaPhase() view returns(bool)

func (*StakingVSLCaller) IsSettlementPhase added in v0.3.0

func (_StakingVSL *StakingVSLCaller) IsSettlementPhase(opts *bind.CallOpts) (bool, error)

IsSettlementPhase is a free data retrieval call binding the contract method 0x2e75fd59.

Solidity: function isSettlementPhase() view returns(bool)

func (*StakingVSLCaller) MINDEPOSIT added in v0.3.0

func (_StakingVSL *StakingVSLCaller) MINDEPOSIT(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function MIN_DEPOSIT() view returns(uint256)

func (*StakingVSLCaller) MINTAXRATEBASISPOINTS added in v0.3.0

func (_StakingVSL *StakingVSLCaller) MINTAXRATEBASISPOINTS(opts *bind.CallOpts) (*big.Int, error)

MINTAXRATEBASISPOINTS is a free data retrieval call binding the contract method 0x2fe3a2a0.

Solidity: function MIN_TAX_RATE_BASIS_POINTS() view returns(uint256)

func (*StakingVSLCaller) MinTokensToStake added in v0.3.0

func (_StakingVSL *StakingVSLCaller) MinTokensToStake(opts *bind.CallOpts, nodeAddr common.Address) (*big.Int, error)

MinTokensToStake is a free data retrieval call binding the contract method 0x14936b13.

Solidity: function minTokensToStake(address nodeAddr) view returns(uint256)

func (*StakingVSLCaller) NODESLASHRATEBASISPOINTS added in v0.3.0

func (_StakingVSL *StakingVSLCaller) NODESLASHRATEBASISPOINTS(opts *bind.CallOpts) (*big.Int, error)

NODESLASHRATEBASISPOINTS is a free data retrieval call binding the contract method 0x3daf051f.

Solidity: function NODE_SLASH_RATE_BASIS_POINTS() view returns(uint256)

func (*StakingVSLCaller) ORACLEROLE added in v0.3.0

func (_StakingVSL *StakingVSLCaller) ORACLEROLE(opts *bind.CallOpts) ([32]byte, error)

ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*StakingVSLCaller) PAUSEROLE added in v0.3.0

func (_StakingVSL *StakingVSLCaller) PAUSEROLE(opts *bind.CallOpts) ([32]byte, error)

PAUSEROLE is a free data retrieval call binding the contract method 0x389ed267.

Solidity: function PAUSE_ROLE() view returns(bytes32)

func (*StakingVSLCaller) Paused added in v0.3.0

func (_StakingVSL *StakingVSLCaller) Paused(opts *bind.CallOpts) (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*StakingVSLCaller) SHARESPERCHIP added in v0.3.0

func (_StakingVSL *StakingVSLCaller) SHARESPERCHIP(opts *bind.CallOpts) (*big.Int, error)

SHARESPERCHIP is a free data retrieval call binding the contract method 0x6b05f6dc.

Solidity: function SHARES_PER_CHIP() view returns(uint256)

func (*StakingVSLCaller) STAKERATIO added in v0.3.0

func (_StakingVSL *StakingVSLCaller) STAKERATIO(opts *bind.CallOpts) (*big.Int, error)

STAKERATIO is a free data retrieval call binding the contract method 0x736fcdf6.

Solidity: function STAKE_RATIO() view returns(uint256)

func (*StakingVSLCaller) STAKEUNBONDINGPERIOD added in v0.3.0

func (_StakingVSL *StakingVSLCaller) STAKEUNBONDINGPERIOD(opts *bind.CallOpts) (*big.Int, error)

STAKEUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x2606a44a.

Solidity: function STAKE_UNBONDING_PERIOD() view returns(uint256)

func (*StakingVSLCaller) SupportsInterface added in v0.3.0

func (_StakingVSL *StakingVSLCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*StakingVSLCaller) TREASURY added in v0.3.0

func (_StakingVSL *StakingVSLCaller) TREASURY(opts *bind.CallOpts) (common.Address, error)

TREASURY is a free data retrieval call binding the contract method 0x2d2c5565.

Solidity: function TREASURY() view returns(address)

func (*StakingVSLCaller) USERSLASHRATEBASISPOINTS added in v0.3.0

func (_StakingVSL *StakingVSLCaller) USERSLASHRATEBASISPOINTS(opts *bind.CallOpts) (*big.Int, error)

USERSLASHRATEBASISPOINTS is a free data retrieval call binding the contract method 0xb47d343c.

Solidity: function USER_SLASH_RATE_BASIS_POINTS() view returns(uint256)

type StakingVSLCallerRaw added in v0.3.0

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

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

func (*StakingVSLCallerRaw) Call added in v0.3.0

func (_StakingVSL *StakingVSLCallerRaw) 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 StakingVSLCallerSession added in v0.3.0

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

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

func (*StakingVSLCallerSession) ChipsContract added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) ChipsContract() (common.Address, error)

ChipsContract is a free data retrieval call binding the contract method 0xd13b19a3.

Solidity: function chipsContract() view returns(address)

func (*StakingVSLCallerSession) DEFAULTADMINROLE added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*StakingVSLCallerSession) DEPOSITUNBONDINGPERIOD added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) DEPOSITUNBONDINGPERIOD() (*big.Int, error)

DEPOSITUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x6bdc11d5.

Solidity: function DEPOSIT_UNBONDING_PERIOD() view returns(uint256)

func (*StakingVSLCallerSession) GetChipsInfo added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetChipsInfo(tokenId *big.Int) (struct {
	NodeAddr common.Address
	Tokens   *big.Int
}, error)

GetChipsInfo is a free data retrieval call binding the contract method 0x90d3f47c.

Solidity: function getChipsInfo(uint256 tokenId) view returns(address nodeAddr, uint256 tokens)

func (*StakingVSLCallerSession) GetNode added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetNode(nodeAddr common.Address) (DataTypesNode, error)

GetNode is a free data retrieval call binding the contract method 0x9d209048.

Solidity: function getNode(address nodeAddr) view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256))

func (*StakingVSLCallerSession) GetNodeAvatar added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetNodeAvatar(nodeAddr common.Address) (string, error)

GetNodeAvatar is a free data retrieval call binding the contract method 0x1474deaa.

Solidity: function getNodeAvatar(address nodeAddr) view returns(string)

func (*StakingVSLCallerSession) GetNodeCount added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetNodeCount() (*big.Int, error)

GetNodeCount is a free data retrieval call binding the contract method 0x39bf397e.

Solidity: function getNodeCount() view returns(uint256)

func (*StakingVSLCallerSession) GetNodes added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetNodes(nodeAddrs []common.Address) ([]DataTypesNode, error)

GetNodes is a free data retrieval call binding the contract method 0x38c96b14.

Solidity: function getNodes(address[] nodeAddrs) view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256)[] nodes)

func (*StakingVSLCallerSession) GetNodesWithPagination added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetNodesWithPagination(offset *big.Int, limit *big.Int) ([]DataTypesNode, error)

GetNodesWithPagination is a free data retrieval call binding the contract method 0xd995415b.

Solidity: function getNodesWithPagination(uint256 offset, uint256 limit) view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256)[] nodes)

func (*StakingVSLCallerSession) GetPendingUnstake added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetPendingUnstake(requestId *big.Int) (DataTypesUnstakeRequest, error)

GetPendingUnstake is a free data retrieval call binding the contract method 0xadfd065f.

Solidity: function getPendingUnstake(uint256 requestId) view returns((address,address,uint256,uint256))

func (*StakingVSLCallerSession) GetPendingWithdrawal added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetPendingWithdrawal(requestId *big.Int) (DataTypesWithdrawalRequest, error)

GetPendingWithdrawal is a free data retrieval call binding the contract method 0x38a3c878.

Solidity: function getPendingWithdrawal(uint256 requestId) view returns((address,uint40,uint256))

func (*StakingVSLCallerSession) GetPoolInfo added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetPoolInfo() (struct {
	TotalOperationPoolTokens *big.Int
	TotalStakingPoolTokens   *big.Int
}, error)

GetPoolInfo is a free data retrieval call binding the contract method 0x60246c88.

Solidity: function getPoolInfo() view returns(uint256 totalOperationPoolTokens, uint256 totalStakingPoolTokens)

func (*StakingVSLCallerSession) GetPublicPool added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetPublicPool() (DataTypesNode, error)

GetPublicPool is a free data retrieval call binding the contract method 0xc84c42a3.

Solidity: function getPublicPool() view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256))

func (*StakingVSLCallerSession) GetRoleAdmin added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*StakingVSLCallerSession) GetRoleMember added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*StakingVSLCallerSession) GetRoleMemberCount added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*StakingVSLCallerSession) HasRole added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*StakingVSLCallerSession) IsAlphaPhase added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) IsAlphaPhase() (bool, error)

IsAlphaPhase is a free data retrieval call binding the contract method 0x69ff71f6.

Solidity: function isAlphaPhase() view returns(bool)

func (*StakingVSLCallerSession) IsSettlementPhase added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) IsSettlementPhase() (bool, error)

IsSettlementPhase is a free data retrieval call binding the contract method 0x2e75fd59.

Solidity: function isSettlementPhase() view returns(bool)

func (*StakingVSLCallerSession) MINDEPOSIT added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) MINDEPOSIT() (*big.Int, error)

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

Solidity: function MIN_DEPOSIT() view returns(uint256)

func (*StakingVSLCallerSession) MINTAXRATEBASISPOINTS added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) MINTAXRATEBASISPOINTS() (*big.Int, error)

MINTAXRATEBASISPOINTS is a free data retrieval call binding the contract method 0x2fe3a2a0.

Solidity: function MIN_TAX_RATE_BASIS_POINTS() view returns(uint256)

func (*StakingVSLCallerSession) MinTokensToStake added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) MinTokensToStake(nodeAddr common.Address) (*big.Int, error)

MinTokensToStake is a free data retrieval call binding the contract method 0x14936b13.

Solidity: function minTokensToStake(address nodeAddr) view returns(uint256)

func (*StakingVSLCallerSession) NODESLASHRATEBASISPOINTS added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) NODESLASHRATEBASISPOINTS() (*big.Int, error)

NODESLASHRATEBASISPOINTS is a free data retrieval call binding the contract method 0x3daf051f.

Solidity: function NODE_SLASH_RATE_BASIS_POINTS() view returns(uint256)

func (*StakingVSLCallerSession) ORACLEROLE added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) ORACLEROLE() ([32]byte, error)

ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*StakingVSLCallerSession) PAUSEROLE added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) PAUSEROLE() ([32]byte, error)

PAUSEROLE is a free data retrieval call binding the contract method 0x389ed267.

Solidity: function PAUSE_ROLE() view returns(bytes32)

func (*StakingVSLCallerSession) Paused added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*StakingVSLCallerSession) SHARESPERCHIP added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) SHARESPERCHIP() (*big.Int, error)

SHARESPERCHIP is a free data retrieval call binding the contract method 0x6b05f6dc.

Solidity: function SHARES_PER_CHIP() view returns(uint256)

func (*StakingVSLCallerSession) STAKERATIO added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) STAKERATIO() (*big.Int, error)

STAKERATIO is a free data retrieval call binding the contract method 0x736fcdf6.

Solidity: function STAKE_RATIO() view returns(uint256)

func (*StakingVSLCallerSession) STAKEUNBONDINGPERIOD added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) STAKEUNBONDINGPERIOD() (*big.Int, error)

STAKEUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x2606a44a.

Solidity: function STAKE_UNBONDING_PERIOD() view returns(uint256)

func (*StakingVSLCallerSession) SupportsInterface added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*StakingVSLCallerSession) TREASURY added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) TREASURY() (common.Address, error)

TREASURY is a free data retrieval call binding the contract method 0x2d2c5565.

Solidity: function TREASURY() view returns(address)

func (*StakingVSLCallerSession) USERSLASHRATEBASISPOINTS added in v0.3.0

func (_StakingVSL *StakingVSLCallerSession) USERSLASHRATEBASISPOINTS() (*big.Int, error)

USERSLASHRATEBASISPOINTS is a free data retrieval call binding the contract method 0xb47d343c.

Solidity: function USER_SLASH_RATE_BASIS_POINTS() view returns(uint256)

type StakingVSLDeposited added in v0.3.0

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

StakingVSLDeposited represents a Deposited event raised by the StakingVSL contract.

type StakingVSLDepositedIterator added in v0.3.0

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

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

func (*StakingVSLDepositedIterator) Close added in v0.3.0

func (it *StakingVSLDepositedIterator) Close() error

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

func (*StakingVSLDepositedIterator) Error added in v0.3.0

func (it *StakingVSLDepositedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLDepositedIterator) Next added in v0.3.0

func (it *StakingVSLDepositedIterator) 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 StakingVSLFilterer added in v0.3.0

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

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

func NewStakingVSLFilterer added in v0.3.0

func NewStakingVSLFilterer(address common.Address, filterer bind.ContractFilterer) (*StakingVSLFilterer, error)

NewStakingVSLFilterer creates a new log filterer instance of StakingVSL, bound to a specific deployed contract.

func (*StakingVSLFilterer) FilterDeposited added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterDeposited(opts *bind.FilterOpts, nodeAddr []common.Address, amount []*big.Int) (*StakingVSLDepositedIterator, error)

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

Solidity: event Deposited(address indexed nodeAddr, uint256 indexed amount)

func (*StakingVSLFilterer) FilterInitialized added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterInitialized(opts *bind.FilterOpts) (*StakingVSLInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*StakingVSLFilterer) FilterNodeCreated added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterNodeCreated(opts *bind.FilterOpts, nodeId []*big.Int, nodeAddr []common.Address) (*StakingVSLNodeCreatedIterator, error)

FilterNodeCreated is a free log retrieval operation binding the contract event 0x37570f68d94fd46cd4009b3823da2b2bc1a9a7e38f824f311ede9e876816e321.

Solidity: event NodeCreated(uint256 indexed nodeId, address indexed nodeAddr, string name, string description, uint64 taxRateBasisPoints, bool publicGood, bool alpha)

func (*StakingVSLFilterer) FilterNodeSlashed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterNodeSlashed(opts *bind.FilterOpts, nodeAddr []common.Address, slashedOperationPool []*big.Int, slashedStakingPool []*big.Int) (*StakingVSLNodeSlashedIterator, error)

FilterNodeSlashed is a free log retrieval operation binding the contract event 0xa8d720d0a0a2e7c96bf9eb87433901ebb6331356c8f3283b2568de34478703cc.

Solidity: event NodeSlashed(address indexed nodeAddr, uint256 indexed slashedOperationPool, uint256 indexed slashedStakingPool)

func (*StakingVSLFilterer) FilterNodeTaxRateBasisPointsSet added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterNodeTaxRateBasisPointsSet(opts *bind.FilterOpts, nodeAddr []common.Address, taxRateBasisPoints []uint64) (*StakingVSLNodeTaxRateBasisPointsSetIterator, error)

FilterNodeTaxRateBasisPointsSet is a free log retrieval operation binding the contract event 0xb8e5551053b871a40f7c7382e5bd3af5a62dd737d059d3838cf3aa7c325bd479.

Solidity: event NodeTaxRateBasisPointsSet(address indexed nodeAddr, uint64 indexed taxRateBasisPoints)

func (*StakingVSLFilterer) FilterNodeUpdated2PublicGood added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterNodeUpdated2PublicGood(opts *bind.FilterOpts, nodeAddr []common.Address) (*StakingVSLNodeUpdated2PublicGoodIterator, error)

FilterNodeUpdated2PublicGood is a free log retrieval operation binding the contract event 0x86538b79bef9c52dbe4e888742cfbd70114655c47ef30ede4997791fe79a9376.

Solidity: event NodeUpdated2PublicGood(address indexed nodeAddr)

func (*StakingVSLFilterer) FilterPaused added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterPaused(opts *bind.FilterOpts) (*StakingVSLPausedIterator, error)

FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*StakingVSLFilterer) FilterPublicGoodRewardDistributed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterPublicGoodRewardDistributed(opts *bind.FilterOpts, epoch []*big.Int) (*StakingVSLPublicGoodRewardDistributedIterator, error)

FilterPublicGoodRewardDistributed is a free log retrieval operation binding the contract event 0xab7d25a2f6206ef56c88807f2474ddcd97e1a6323cb25149cde3a607fed6f2d7.

Solidity: event PublicGoodRewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, uint256 publicPoolRewards, uint256 publicPoolTax)

func (*StakingVSLFilterer) FilterPublicPoolTaxRateBasisPointsSet added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterPublicPoolTaxRateBasisPointsSet(opts *bind.FilterOpts, taxRateBasisPoints []uint64) (*StakingVSLPublicPoolTaxRateBasisPointsSetIterator, error)

FilterPublicPoolTaxRateBasisPointsSet is a free log retrieval operation binding the contract event 0x948cf2302b029d76db2ac06e4ef2625e6c687335de349317468f47942a44e8b0.

Solidity: event PublicPoolTaxRateBasisPointsSet(uint64 indexed taxRateBasisPoints)

func (*StakingVSLFilterer) FilterRewardDistributed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterRewardDistributed(opts *bind.FilterOpts, epoch []*big.Int) (*StakingVSLRewardDistributedIterator, error)

FilterRewardDistributed is a free log retrieval operation binding the contract event 0x255edf64a597e0852bdcb216fc8c3e79febaf9a041e1f6e546215fbadc96c338.

Solidity: event RewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256[] taxAmounts)

func (*StakingVSLFilterer) FilterRoleAdminChanged added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*StakingVSLRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*StakingVSLFilterer) FilterRoleGranted added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*StakingVSLRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakingVSLFilterer) FilterRoleRevoked added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*StakingVSLRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakingVSLFilterer) FilterStaked added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterStaked(opts *bind.FilterOpts, user []common.Address, nodeAddr []common.Address, amount []*big.Int) (*StakingVSLStakedIterator, error)

FilterStaked is a free log retrieval operation binding the contract event 0xad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69.

Solidity: event Staked(address indexed user, address indexed nodeAddr, uint256 indexed amount, uint256 startTokenId, uint256 endTokenId)

func (*StakingVSLFilterer) FilterUnpaused added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterUnpaused(opts *bind.FilterOpts) (*StakingVSLUnpausedIterator, error)

FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*StakingVSLFilterer) FilterUnstakeClaimed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterUnstakeClaimed(opts *bind.FilterOpts, requestId []*big.Int, nodeAddr []common.Address, user []common.Address) (*StakingVSLUnstakeClaimedIterator, error)

FilterUnstakeClaimed is a free log retrieval operation binding the contract event 0x2769ece66eadb650afd8c08c7a8772e39381dddd7230f9e039669e631044d47c.

Solidity: event UnstakeClaimed(uint256 indexed requestId, address indexed nodeAddr, address indexed user, uint256 unstakeAmount)

func (*StakingVSLFilterer) FilterUnstakeRequested added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterUnstakeRequested(opts *bind.FilterOpts, user []common.Address, nodeAddr []common.Address, requestId []*big.Int) (*StakingVSLUnstakeRequestedIterator, error)

FilterUnstakeRequested is a free log retrieval operation binding the contract event 0x2808f92d5a0fada467cbe4e766f62f323e78271a7471058a87ef63a9e3e4c5c5.

Solidity: event UnstakeRequested(address indexed user, address indexed nodeAddr, uint256 indexed requestId, uint256 unstakeAmount, uint256[] chipsIds)

func (*StakingVSLFilterer) FilterWithdrawRequested added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterWithdrawRequested(opts *bind.FilterOpts, nodeAddr []common.Address, amount []*big.Int, requestId []*big.Int) (*StakingVSLWithdrawRequestedIterator, error)

FilterWithdrawRequested is a free log retrieval operation binding the contract event 0xd72eb5d043f24a0168ae744d5c44f9596fd673a26bf74d9646bff4b844882d14.

Solidity: event WithdrawRequested(address indexed nodeAddr, uint256 indexed amount, uint256 indexed requestId)

func (*StakingVSLFilterer) FilterWithdrawalClaimed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) FilterWithdrawalClaimed(opts *bind.FilterOpts, requestId []*big.Int) (*StakingVSLWithdrawalClaimedIterator, error)

FilterWithdrawalClaimed is a free log retrieval operation binding the contract event 0x8772d6f79a1845a0c0e90ef18d99f91242bbc0ba98c9ca780feaad42b81f02ba.

Solidity: event WithdrawalClaimed(uint256 indexed requestId)

func (*StakingVSLFilterer) ParseDeposited added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseDeposited(log types.Log) (*StakingVSLDeposited, error)

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

Solidity: event Deposited(address indexed nodeAddr, uint256 indexed amount)

func (*StakingVSLFilterer) ParseInitialized added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseInitialized(log types.Log) (*StakingVSLInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*StakingVSLFilterer) ParseNodeCreated added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseNodeCreated(log types.Log) (*StakingVSLNodeCreated, error)

ParseNodeCreated is a log parse operation binding the contract event 0x37570f68d94fd46cd4009b3823da2b2bc1a9a7e38f824f311ede9e876816e321.

Solidity: event NodeCreated(uint256 indexed nodeId, address indexed nodeAddr, string name, string description, uint64 taxRateBasisPoints, bool publicGood, bool alpha)

func (*StakingVSLFilterer) ParseNodeSlashed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseNodeSlashed(log types.Log) (*StakingVSLNodeSlashed, error)

ParseNodeSlashed is a log parse operation binding the contract event 0xa8d720d0a0a2e7c96bf9eb87433901ebb6331356c8f3283b2568de34478703cc.

Solidity: event NodeSlashed(address indexed nodeAddr, uint256 indexed slashedOperationPool, uint256 indexed slashedStakingPool)

func (*StakingVSLFilterer) ParseNodeTaxRateBasisPointsSet added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseNodeTaxRateBasisPointsSet(log types.Log) (*StakingVSLNodeTaxRateBasisPointsSet, error)

ParseNodeTaxRateBasisPointsSet is a log parse operation binding the contract event 0xb8e5551053b871a40f7c7382e5bd3af5a62dd737d059d3838cf3aa7c325bd479.

Solidity: event NodeTaxRateBasisPointsSet(address indexed nodeAddr, uint64 indexed taxRateBasisPoints)

func (*StakingVSLFilterer) ParseNodeUpdated2PublicGood added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseNodeUpdated2PublicGood(log types.Log) (*StakingVSLNodeUpdated2PublicGood, error)

ParseNodeUpdated2PublicGood is a log parse operation binding the contract event 0x86538b79bef9c52dbe4e888742cfbd70114655c47ef30ede4997791fe79a9376.

Solidity: event NodeUpdated2PublicGood(address indexed nodeAddr)

func (*StakingVSLFilterer) ParsePaused added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParsePaused(log types.Log) (*StakingVSLPaused, error)

ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*StakingVSLFilterer) ParsePublicGoodRewardDistributed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParsePublicGoodRewardDistributed(log types.Log) (*StakingVSLPublicGoodRewardDistributed, error)

ParsePublicGoodRewardDistributed is a log parse operation binding the contract event 0xab7d25a2f6206ef56c88807f2474ddcd97e1a6323cb25149cde3a607fed6f2d7.

Solidity: event PublicGoodRewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, uint256 publicPoolRewards, uint256 publicPoolTax)

func (*StakingVSLFilterer) ParsePublicPoolTaxRateBasisPointsSet added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParsePublicPoolTaxRateBasisPointsSet(log types.Log) (*StakingVSLPublicPoolTaxRateBasisPointsSet, error)

ParsePublicPoolTaxRateBasisPointsSet is a log parse operation binding the contract event 0x948cf2302b029d76db2ac06e4ef2625e6c687335de349317468f47942a44e8b0.

Solidity: event PublicPoolTaxRateBasisPointsSet(uint64 indexed taxRateBasisPoints)

func (*StakingVSLFilterer) ParseRewardDistributed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseRewardDistributed(log types.Log) (*StakingVSLRewardDistributed, error)

ParseRewardDistributed is a log parse operation binding the contract event 0x255edf64a597e0852bdcb216fc8c3e79febaf9a041e1f6e546215fbadc96c338.

Solidity: event RewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256[] taxAmounts)

func (*StakingVSLFilterer) ParseRoleAdminChanged added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseRoleAdminChanged(log types.Log) (*StakingVSLRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*StakingVSLFilterer) ParseRoleGranted added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseRoleGranted(log types.Log) (*StakingVSLRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakingVSLFilterer) ParseRoleRevoked added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseRoleRevoked(log types.Log) (*StakingVSLRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakingVSLFilterer) ParseStaked added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseStaked(log types.Log) (*StakingVSLStaked, error)

ParseStaked is a log parse operation binding the contract event 0xad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69.

Solidity: event Staked(address indexed user, address indexed nodeAddr, uint256 indexed amount, uint256 startTokenId, uint256 endTokenId)

func (*StakingVSLFilterer) ParseUnpaused added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseUnpaused(log types.Log) (*StakingVSLUnpaused, error)

ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*StakingVSLFilterer) ParseUnstakeClaimed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseUnstakeClaimed(log types.Log) (*StakingVSLUnstakeClaimed, error)

ParseUnstakeClaimed is a log parse operation binding the contract event 0x2769ece66eadb650afd8c08c7a8772e39381dddd7230f9e039669e631044d47c.

Solidity: event UnstakeClaimed(uint256 indexed requestId, address indexed nodeAddr, address indexed user, uint256 unstakeAmount)

func (*StakingVSLFilterer) ParseUnstakeRequested added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseUnstakeRequested(log types.Log) (*StakingVSLUnstakeRequested, error)

ParseUnstakeRequested is a log parse operation binding the contract event 0x2808f92d5a0fada467cbe4e766f62f323e78271a7471058a87ef63a9e3e4c5c5.

Solidity: event UnstakeRequested(address indexed user, address indexed nodeAddr, uint256 indexed requestId, uint256 unstakeAmount, uint256[] chipsIds)

func (*StakingVSLFilterer) ParseWithdrawRequested added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseWithdrawRequested(log types.Log) (*StakingVSLWithdrawRequested, error)

ParseWithdrawRequested is a log parse operation binding the contract event 0xd72eb5d043f24a0168ae744d5c44f9596fd673a26bf74d9646bff4b844882d14.

Solidity: event WithdrawRequested(address indexed nodeAddr, uint256 indexed amount, uint256 indexed requestId)

func (*StakingVSLFilterer) ParseWithdrawalClaimed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) ParseWithdrawalClaimed(log types.Log) (*StakingVSLWithdrawalClaimed, error)

ParseWithdrawalClaimed is a log parse operation binding the contract event 0x8772d6f79a1845a0c0e90ef18d99f91242bbc0ba98c9ca780feaad42b81f02ba.

Solidity: event WithdrawalClaimed(uint256 indexed requestId)

func (*StakingVSLFilterer) WatchDeposited added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchDeposited(opts *bind.WatchOpts, sink chan<- *StakingVSLDeposited, nodeAddr []common.Address, amount []*big.Int) (event.Subscription, error)

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

Solidity: event Deposited(address indexed nodeAddr, uint256 indexed amount)

func (*StakingVSLFilterer) WatchInitialized added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *StakingVSLInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2.

Solidity: event Initialized(uint64 version)

func (*StakingVSLFilterer) WatchNodeCreated added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchNodeCreated(opts *bind.WatchOpts, sink chan<- *StakingVSLNodeCreated, nodeId []*big.Int, nodeAddr []common.Address) (event.Subscription, error)

WatchNodeCreated is a free log subscription operation binding the contract event 0x37570f68d94fd46cd4009b3823da2b2bc1a9a7e38f824f311ede9e876816e321.

Solidity: event NodeCreated(uint256 indexed nodeId, address indexed nodeAddr, string name, string description, uint64 taxRateBasisPoints, bool publicGood, bool alpha)

func (*StakingVSLFilterer) WatchNodeSlashed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchNodeSlashed(opts *bind.WatchOpts, sink chan<- *StakingVSLNodeSlashed, nodeAddr []common.Address, slashedOperationPool []*big.Int, slashedStakingPool []*big.Int) (event.Subscription, error)

WatchNodeSlashed is a free log subscription operation binding the contract event 0xa8d720d0a0a2e7c96bf9eb87433901ebb6331356c8f3283b2568de34478703cc.

Solidity: event NodeSlashed(address indexed nodeAddr, uint256 indexed slashedOperationPool, uint256 indexed slashedStakingPool)

func (*StakingVSLFilterer) WatchNodeTaxRateBasisPointsSet added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchNodeTaxRateBasisPointsSet(opts *bind.WatchOpts, sink chan<- *StakingVSLNodeTaxRateBasisPointsSet, nodeAddr []common.Address, taxRateBasisPoints []uint64) (event.Subscription, error)

WatchNodeTaxRateBasisPointsSet is a free log subscription operation binding the contract event 0xb8e5551053b871a40f7c7382e5bd3af5a62dd737d059d3838cf3aa7c325bd479.

Solidity: event NodeTaxRateBasisPointsSet(address indexed nodeAddr, uint64 indexed taxRateBasisPoints)

func (*StakingVSLFilterer) WatchNodeUpdated2PublicGood added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchNodeUpdated2PublicGood(opts *bind.WatchOpts, sink chan<- *StakingVSLNodeUpdated2PublicGood, nodeAddr []common.Address) (event.Subscription, error)

WatchNodeUpdated2PublicGood is a free log subscription operation binding the contract event 0x86538b79bef9c52dbe4e888742cfbd70114655c47ef30ede4997791fe79a9376.

Solidity: event NodeUpdated2PublicGood(address indexed nodeAddr)

func (*StakingVSLFilterer) WatchPaused added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *StakingVSLPaused) (event.Subscription, error)

WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.

Solidity: event Paused(address account)

func (*StakingVSLFilterer) WatchPublicGoodRewardDistributed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchPublicGoodRewardDistributed(opts *bind.WatchOpts, sink chan<- *StakingVSLPublicGoodRewardDistributed, epoch []*big.Int) (event.Subscription, error)

WatchPublicGoodRewardDistributed is a free log subscription operation binding the contract event 0xab7d25a2f6206ef56c88807f2474ddcd97e1a6323cb25149cde3a607fed6f2d7.

Solidity: event PublicGoodRewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, uint256 publicPoolRewards, uint256 publicPoolTax)

func (*StakingVSLFilterer) WatchPublicPoolTaxRateBasisPointsSet added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchPublicPoolTaxRateBasisPointsSet(opts *bind.WatchOpts, sink chan<- *StakingVSLPublicPoolTaxRateBasisPointsSet, taxRateBasisPoints []uint64) (event.Subscription, error)

WatchPublicPoolTaxRateBasisPointsSet is a free log subscription operation binding the contract event 0x948cf2302b029d76db2ac06e4ef2625e6c687335de349317468f47942a44e8b0.

Solidity: event PublicPoolTaxRateBasisPointsSet(uint64 indexed taxRateBasisPoints)

func (*StakingVSLFilterer) WatchRewardDistributed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchRewardDistributed(opts *bind.WatchOpts, sink chan<- *StakingVSLRewardDistributed, epoch []*big.Int) (event.Subscription, error)

WatchRewardDistributed is a free log subscription operation binding the contract event 0x255edf64a597e0852bdcb216fc8c3e79febaf9a041e1f6e546215fbadc96c338.

Solidity: event RewardDistributed(uint256 indexed epoch, uint256 startTimestamp, uint256 endTimestamp, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256[] taxAmounts)

func (*StakingVSLFilterer) WatchRoleAdminChanged added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *StakingVSLRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*StakingVSLFilterer) WatchRoleGranted added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *StakingVSLRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakingVSLFilterer) WatchRoleRevoked added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *StakingVSLRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*StakingVSLFilterer) WatchStaked added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchStaked(opts *bind.WatchOpts, sink chan<- *StakingVSLStaked, user []common.Address, nodeAddr []common.Address, amount []*big.Int) (event.Subscription, error)

WatchStaked is a free log subscription operation binding the contract event 0xad3fa07f4195b47e64892eb944ecbfc253384053c119852bb2bcae484c2fcb69.

Solidity: event Staked(address indexed user, address indexed nodeAddr, uint256 indexed amount, uint256 startTokenId, uint256 endTokenId)

func (*StakingVSLFilterer) WatchUnpaused added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *StakingVSLUnpaused) (event.Subscription, error)

WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.

Solidity: event Unpaused(address account)

func (*StakingVSLFilterer) WatchUnstakeClaimed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchUnstakeClaimed(opts *bind.WatchOpts, sink chan<- *StakingVSLUnstakeClaimed, requestId []*big.Int, nodeAddr []common.Address, user []common.Address) (event.Subscription, error)

WatchUnstakeClaimed is a free log subscription operation binding the contract event 0x2769ece66eadb650afd8c08c7a8772e39381dddd7230f9e039669e631044d47c.

Solidity: event UnstakeClaimed(uint256 indexed requestId, address indexed nodeAddr, address indexed user, uint256 unstakeAmount)

func (*StakingVSLFilterer) WatchUnstakeRequested added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchUnstakeRequested(opts *bind.WatchOpts, sink chan<- *StakingVSLUnstakeRequested, user []common.Address, nodeAddr []common.Address, requestId []*big.Int) (event.Subscription, error)

WatchUnstakeRequested is a free log subscription operation binding the contract event 0x2808f92d5a0fada467cbe4e766f62f323e78271a7471058a87ef63a9e3e4c5c5.

Solidity: event UnstakeRequested(address indexed user, address indexed nodeAddr, uint256 indexed requestId, uint256 unstakeAmount, uint256[] chipsIds)

func (*StakingVSLFilterer) WatchWithdrawRequested added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchWithdrawRequested(opts *bind.WatchOpts, sink chan<- *StakingVSLWithdrawRequested, nodeAddr []common.Address, amount []*big.Int, requestId []*big.Int) (event.Subscription, error)

WatchWithdrawRequested is a free log subscription operation binding the contract event 0xd72eb5d043f24a0168ae744d5c44f9596fd673a26bf74d9646bff4b844882d14.

Solidity: event WithdrawRequested(address indexed nodeAddr, uint256 indexed amount, uint256 indexed requestId)

func (*StakingVSLFilterer) WatchWithdrawalClaimed added in v0.3.0

func (_StakingVSL *StakingVSLFilterer) WatchWithdrawalClaimed(opts *bind.WatchOpts, sink chan<- *StakingVSLWithdrawalClaimed, requestId []*big.Int) (event.Subscription, error)

WatchWithdrawalClaimed is a free log subscription operation binding the contract event 0x8772d6f79a1845a0c0e90ef18d99f91242bbc0ba98c9ca780feaad42b81f02ba.

Solidity: event WithdrawalClaimed(uint256 indexed requestId)

type StakingVSLInitialized added in v0.3.0

type StakingVSLInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

StakingVSLInitialized represents a Initialized event raised by the StakingVSL contract.

type StakingVSLInitializedIterator added in v0.3.0

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

StakingVSLInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the StakingVSL contract.

func (*StakingVSLInitializedIterator) Close added in v0.3.0

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

func (*StakingVSLInitializedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLInitializedIterator) Next added in v0.3.0

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 StakingVSLNodeCreated added in v0.3.0

type StakingVSLNodeCreated struct {
	NodeId             *big.Int
	NodeAddr           common.Address
	Name               string
	Description        string
	TaxRateBasisPoints uint64
	PublicGood         bool
	Alpha              bool
	Raw                types.Log // Blockchain specific contextual infos
}

StakingVSLNodeCreated represents a NodeCreated event raised by the StakingVSL contract.

type StakingVSLNodeCreatedIterator added in v0.3.0

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

StakingVSLNodeCreatedIterator is returned from FilterNodeCreated and is used to iterate over the raw logs and unpacked data for NodeCreated events raised by the StakingVSL contract.

func (*StakingVSLNodeCreatedIterator) Close added in v0.3.0

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

func (*StakingVSLNodeCreatedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLNodeCreatedIterator) Next added in v0.3.0

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 StakingVSLNodeSlashed added in v0.3.0

type StakingVSLNodeSlashed struct {
	NodeAddr             common.Address
	SlashedOperationPool *big.Int
	SlashedStakingPool   *big.Int
	Raw                  types.Log // Blockchain specific contextual infos
}

StakingVSLNodeSlashed represents a NodeSlashed event raised by the StakingVSL contract.

type StakingVSLNodeSlashedIterator added in v0.3.0

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

StakingVSLNodeSlashedIterator is returned from FilterNodeSlashed and is used to iterate over the raw logs and unpacked data for NodeSlashed events raised by the StakingVSL contract.

func (*StakingVSLNodeSlashedIterator) Close added in v0.3.0

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

func (*StakingVSLNodeSlashedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLNodeSlashedIterator) Next added in v0.3.0

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 StakingVSLNodeTaxRateBasisPointsSet added in v0.3.0

type StakingVSLNodeTaxRateBasisPointsSet struct {
	NodeAddr           common.Address
	TaxRateBasisPoints uint64
	Raw                types.Log // Blockchain specific contextual infos
}

StakingVSLNodeTaxRateBasisPointsSet represents a NodeTaxRateBasisPointsSet event raised by the StakingVSL contract.

type StakingVSLNodeTaxRateBasisPointsSetIterator added in v0.3.0

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

StakingVSLNodeTaxRateBasisPointsSetIterator is returned from FilterNodeTaxRateBasisPointsSet and is used to iterate over the raw logs and unpacked data for NodeTaxRateBasisPointsSet events raised by the StakingVSL contract.

func (*StakingVSLNodeTaxRateBasisPointsSetIterator) Close added in v0.3.0

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

func (*StakingVSLNodeTaxRateBasisPointsSetIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLNodeTaxRateBasisPointsSetIterator) Next added in v0.3.0

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 StakingVSLNodeUpdated2PublicGood added in v0.3.0

type StakingVSLNodeUpdated2PublicGood struct {
	NodeAddr common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

StakingVSLNodeUpdated2PublicGood represents a NodeUpdated2PublicGood event raised by the StakingVSL contract.

type StakingVSLNodeUpdated2PublicGoodIterator added in v0.3.0

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

StakingVSLNodeUpdated2PublicGoodIterator is returned from FilterNodeUpdated2PublicGood and is used to iterate over the raw logs and unpacked data for NodeUpdated2PublicGood events raised by the StakingVSL contract.

func (*StakingVSLNodeUpdated2PublicGoodIterator) Close added in v0.3.0

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

func (*StakingVSLNodeUpdated2PublicGoodIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLNodeUpdated2PublicGoodIterator) Next added in v0.3.0

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 StakingVSLPaused added in v0.3.0

type StakingVSLPaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

StakingVSLPaused represents a Paused event raised by the StakingVSL contract.

type StakingVSLPausedIterator added in v0.3.0

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

StakingVSLPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the StakingVSL contract.

func (*StakingVSLPausedIterator) Close added in v0.3.0

func (it *StakingVSLPausedIterator) Close() error

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

func (*StakingVSLPausedIterator) Error added in v0.3.0

func (it *StakingVSLPausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLPausedIterator) Next added in v0.3.0

func (it *StakingVSLPausedIterator) 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 StakingVSLPublicGoodRewardDistributed added in v0.3.0

type StakingVSLPublicGoodRewardDistributed struct {
	Epoch             *big.Int
	StartTimestamp    *big.Int
	EndTimestamp      *big.Int
	PublicPoolRewards *big.Int
	PublicPoolTax     *big.Int
	Raw               types.Log // Blockchain specific contextual infos
}

StakingVSLPublicGoodRewardDistributed represents a PublicGoodRewardDistributed event raised by the StakingVSL contract.

type StakingVSLPublicGoodRewardDistributedIterator added in v0.3.0

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

StakingVSLPublicGoodRewardDistributedIterator is returned from FilterPublicGoodRewardDistributed and is used to iterate over the raw logs and unpacked data for PublicGoodRewardDistributed events raised by the StakingVSL contract.

func (*StakingVSLPublicGoodRewardDistributedIterator) Close added in v0.3.0

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

func (*StakingVSLPublicGoodRewardDistributedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLPublicGoodRewardDistributedIterator) Next added in v0.3.0

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 StakingVSLPublicPoolTaxRateBasisPointsSet added in v0.3.0

type StakingVSLPublicPoolTaxRateBasisPointsSet struct {
	TaxRateBasisPoints uint64
	Raw                types.Log // Blockchain specific contextual infos
}

StakingVSLPublicPoolTaxRateBasisPointsSet represents a PublicPoolTaxRateBasisPointsSet event raised by the StakingVSL contract.

type StakingVSLPublicPoolTaxRateBasisPointsSetIterator added in v0.3.0

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

StakingVSLPublicPoolTaxRateBasisPointsSetIterator is returned from FilterPublicPoolTaxRateBasisPointsSet and is used to iterate over the raw logs and unpacked data for PublicPoolTaxRateBasisPointsSet events raised by the StakingVSL contract.

func (*StakingVSLPublicPoolTaxRateBasisPointsSetIterator) Close added in v0.3.0

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

func (*StakingVSLPublicPoolTaxRateBasisPointsSetIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLPublicPoolTaxRateBasisPointsSetIterator) Next added in v0.3.0

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 StakingVSLRaw added in v0.3.0

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

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

func (*StakingVSLRaw) Call added in v0.3.0

func (_StakingVSL *StakingVSLRaw) 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 (*StakingVSLRaw) Transact added in v0.3.0

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

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

func (*StakingVSLRaw) Transfer added in v0.3.0

func (_StakingVSL *StakingVSLRaw) 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 StakingVSLRewardDistributed added in v0.3.0

type StakingVSLRewardDistributed struct {
	Epoch            *big.Int
	StartTimestamp   *big.Int
	EndTimestamp     *big.Int
	NodeAddrs        []common.Address
	OperationRewards []*big.Int
	StakingRewards   []*big.Int
	TaxAmounts       []*big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

StakingVSLRewardDistributed represents a RewardDistributed event raised by the StakingVSL contract.

type StakingVSLRewardDistributedIterator added in v0.3.0

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

StakingVSLRewardDistributedIterator is returned from FilterRewardDistributed and is used to iterate over the raw logs and unpacked data for RewardDistributed events raised by the StakingVSL contract.

func (*StakingVSLRewardDistributedIterator) Close added in v0.3.0

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

func (*StakingVSLRewardDistributedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLRewardDistributedIterator) Next added in v0.3.0

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 StakingVSLRoleAdminChanged added in v0.3.0

type StakingVSLRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

StakingVSLRoleAdminChanged represents a RoleAdminChanged event raised by the StakingVSL contract.

type StakingVSLRoleAdminChangedIterator added in v0.3.0

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

StakingVSLRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the StakingVSL contract.

func (*StakingVSLRoleAdminChangedIterator) Close added in v0.3.0

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

func (*StakingVSLRoleAdminChangedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLRoleAdminChangedIterator) Next added in v0.3.0

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 StakingVSLRoleGranted added in v0.3.0

type StakingVSLRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

StakingVSLRoleGranted represents a RoleGranted event raised by the StakingVSL contract.

type StakingVSLRoleGrantedIterator added in v0.3.0

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

StakingVSLRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the StakingVSL contract.

func (*StakingVSLRoleGrantedIterator) Close added in v0.3.0

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

func (*StakingVSLRoleGrantedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLRoleGrantedIterator) Next added in v0.3.0

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 StakingVSLRoleRevoked added in v0.3.0

type StakingVSLRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

StakingVSLRoleRevoked represents a RoleRevoked event raised by the StakingVSL contract.

type StakingVSLRoleRevokedIterator added in v0.3.0

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

StakingVSLRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the StakingVSL contract.

func (*StakingVSLRoleRevokedIterator) Close added in v0.3.0

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

func (*StakingVSLRoleRevokedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLRoleRevokedIterator) Next added in v0.3.0

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 StakingVSLSession added in v0.3.0

type StakingVSLSession struct {
	Contract     *StakingVSL       // 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
}

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

func (*StakingVSLSession) ChipsContract added in v0.3.0

func (_StakingVSL *StakingVSLSession) ChipsContract() (common.Address, error)

ChipsContract is a free data retrieval call binding the contract method 0xd13b19a3.

Solidity: function chipsContract() view returns(address)

func (*StakingVSLSession) ClaimUnstake added in v0.3.0

func (_StakingVSL *StakingVSLSession) ClaimUnstake(requestIds []*big.Int) (*types.Transaction, error)

ClaimUnstake is a paid mutator transaction binding the contract method 0x04a4fb10.

Solidity: function claimUnstake(uint256[] requestIds) returns()

func (*StakingVSLSession) ClaimWithdrawal added in v0.3.0

func (_StakingVSL *StakingVSLSession) ClaimWithdrawal(requestIds []*big.Int) (*types.Transaction, error)

ClaimWithdrawal is a paid mutator transaction binding the contract method 0x3c256b98.

Solidity: function claimWithdrawal(uint256[] requestIds) returns()

func (*StakingVSLSession) CreateNode added in v0.3.0

func (_StakingVSL *StakingVSLSession) CreateNode(name string, description string, taxRateBasisPoints uint64, publicGood bool) (*types.Transaction, error)

CreateNode is a paid mutator transaction binding the contract method 0x96531623.

Solidity: function createNode(string name, string description, uint64 taxRateBasisPoints, bool publicGood) payable returns()

func (*StakingVSLSession) DEFAULTADMINROLE added in v0.3.0

func (_StakingVSL *StakingVSLSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*StakingVSLSession) DEPOSITUNBONDINGPERIOD added in v0.3.0

func (_StakingVSL *StakingVSLSession) DEPOSITUNBONDINGPERIOD() (*big.Int, error)

DEPOSITUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x6bdc11d5.

Solidity: function DEPOSIT_UNBONDING_PERIOD() view returns(uint256)

func (*StakingVSLSession) Deposit added in v0.3.0

func (_StakingVSL *StakingVSLSession) Deposit() (*types.Transaction, error)

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

Solidity: function deposit() payable returns()

func (*StakingVSLSession) DisableAlphaPhase added in v0.3.0

func (_StakingVSL *StakingVSLSession) DisableAlphaPhase() (*types.Transaction, error)

DisableAlphaPhase is a paid mutator transaction binding the contract method 0x81001e60.

Solidity: function disableAlphaPhase() returns()

func (*StakingVSLSession) DistributeRewards added in v0.3.0

func (_StakingVSL *StakingVSLSession) DistributeRewards(epochInfo [3]*big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, stakingRewards []*big.Int, publicPoolRewards *big.Int) (*types.Transaction, error)

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

Solidity: function distributeRewards(uint256[3] epochInfo, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256 publicPoolRewards) payable returns()

func (*StakingVSLSession) GetChipsInfo added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetChipsInfo(tokenId *big.Int) (struct {
	NodeAddr common.Address
	Tokens   *big.Int
}, error)

GetChipsInfo is a free data retrieval call binding the contract method 0x90d3f47c.

Solidity: function getChipsInfo(uint256 tokenId) view returns(address nodeAddr, uint256 tokens)

func (*StakingVSLSession) GetNode added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetNode(nodeAddr common.Address) (DataTypesNode, error)

GetNode is a free data retrieval call binding the contract method 0x9d209048.

Solidity: function getNode(address nodeAddr) view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256))

func (*StakingVSLSession) GetNodeAvatar added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetNodeAvatar(nodeAddr common.Address) (string, error)

GetNodeAvatar is a free data retrieval call binding the contract method 0x1474deaa.

Solidity: function getNodeAvatar(address nodeAddr) view returns(string)

func (*StakingVSLSession) GetNodeCount added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetNodeCount() (*big.Int, error)

GetNodeCount is a free data retrieval call binding the contract method 0x39bf397e.

Solidity: function getNodeCount() view returns(uint256)

func (*StakingVSLSession) GetNodes added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetNodes(nodeAddrs []common.Address) ([]DataTypesNode, error)

GetNodes is a free data retrieval call binding the contract method 0x38c96b14.

Solidity: function getNodes(address[] nodeAddrs) view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256)[] nodes)

func (*StakingVSLSession) GetNodesWithPagination added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetNodesWithPagination(offset *big.Int, limit *big.Int) ([]DataTypesNode, error)

GetNodesWithPagination is a free data retrieval call binding the contract method 0xd995415b.

Solidity: function getNodesWithPagination(uint256 offset, uint256 limit) view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256)[] nodes)

func (*StakingVSLSession) GetPendingUnstake added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetPendingUnstake(requestId *big.Int) (DataTypesUnstakeRequest, error)

GetPendingUnstake is a free data retrieval call binding the contract method 0xadfd065f.

Solidity: function getPendingUnstake(uint256 requestId) view returns((address,address,uint256,uint256))

func (*StakingVSLSession) GetPendingWithdrawal added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetPendingWithdrawal(requestId *big.Int) (DataTypesWithdrawalRequest, error)

GetPendingWithdrawal is a free data retrieval call binding the contract method 0x38a3c878.

Solidity: function getPendingWithdrawal(uint256 requestId) view returns((address,uint40,uint256))

func (*StakingVSLSession) GetPoolInfo added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetPoolInfo() (struct {
	TotalOperationPoolTokens *big.Int
	TotalStakingPoolTokens   *big.Int
}, error)

GetPoolInfo is a free data retrieval call binding the contract method 0x60246c88.

Solidity: function getPoolInfo() view returns(uint256 totalOperationPoolTokens, uint256 totalStakingPoolTokens)

func (*StakingVSLSession) GetPublicPool added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetPublicPool() (DataTypesNode, error)

GetPublicPool is a free data retrieval call binding the contract method 0xc84c42a3.

Solidity: function getPublicPool() view returns((uint256,address,uint64,bool,bool,string,string,uint256,uint256,uint256,uint256))

func (*StakingVSLSession) GetRoleAdmin added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*StakingVSLSession) GetRoleMember added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)

GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.

Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)

func (*StakingVSLSession) GetRoleMemberCount added in v0.3.0

func (_StakingVSL *StakingVSLSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)

GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.

Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)

func (*StakingVSLSession) GrantRole added in v0.3.0

func (_StakingVSL *StakingVSLSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*StakingVSLSession) HasRole added in v0.3.0

func (_StakingVSL *StakingVSLSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*StakingVSLSession) Initialize added in v0.3.0

func (_StakingVSL *StakingVSLSession) Initialize(chips common.Address, pauseAccount common.Address, oracleAccount common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc0c53b8b.

Solidity: function initialize(address chips, address pauseAccount, address oracleAccount) returns()

func (*StakingVSLSession) IsAlphaPhase added in v0.3.0

func (_StakingVSL *StakingVSLSession) IsAlphaPhase() (bool, error)

IsAlphaPhase is a free data retrieval call binding the contract method 0x69ff71f6.

Solidity: function isAlphaPhase() view returns(bool)

func (*StakingVSLSession) IsSettlementPhase added in v0.3.0

func (_StakingVSL *StakingVSLSession) IsSettlementPhase() (bool, error)

IsSettlementPhase is a free data retrieval call binding the contract method 0x2e75fd59.

Solidity: function isSettlementPhase() view returns(bool)

func (*StakingVSLSession) MINDEPOSIT added in v0.3.0

func (_StakingVSL *StakingVSLSession) MINDEPOSIT() (*big.Int, error)

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

Solidity: function MIN_DEPOSIT() view returns(uint256)

func (*StakingVSLSession) MINTAXRATEBASISPOINTS added in v0.3.0

func (_StakingVSL *StakingVSLSession) MINTAXRATEBASISPOINTS() (*big.Int, error)

MINTAXRATEBASISPOINTS is a free data retrieval call binding the contract method 0x2fe3a2a0.

Solidity: function MIN_TAX_RATE_BASIS_POINTS() view returns(uint256)

func (*StakingVSLSession) MinTokensToStake added in v0.3.0

func (_StakingVSL *StakingVSLSession) MinTokensToStake(nodeAddr common.Address) (*big.Int, error)

MinTokensToStake is a free data retrieval call binding the contract method 0x14936b13.

Solidity: function minTokensToStake(address nodeAddr) view returns(uint256)

func (*StakingVSLSession) NODESLASHRATEBASISPOINTS added in v0.3.0

func (_StakingVSL *StakingVSLSession) NODESLASHRATEBASISPOINTS() (*big.Int, error)

NODESLASHRATEBASISPOINTS is a free data retrieval call binding the contract method 0x3daf051f.

Solidity: function NODE_SLASH_RATE_BASIS_POINTS() view returns(uint256)

func (*StakingVSLSession) ORACLEROLE added in v0.3.0

func (_StakingVSL *StakingVSLSession) ORACLEROLE() ([32]byte, error)

ORACLEROLE is a free data retrieval call binding the contract method 0x07e2cea5.

Solidity: function ORACLE_ROLE() view returns(bytes32)

func (*StakingVSLSession) PAUSEROLE added in v0.3.0

func (_StakingVSL *StakingVSLSession) PAUSEROLE() ([32]byte, error)

PAUSEROLE is a free data retrieval call binding the contract method 0x389ed267.

Solidity: function PAUSE_ROLE() view returns(bytes32)

func (*StakingVSLSession) Pause added in v0.3.0

func (_StakingVSL *StakingVSLSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*StakingVSLSession) Paused added in v0.3.0

func (_StakingVSL *StakingVSLSession) Paused() (bool, error)

Paused is a free data retrieval call binding the contract method 0x5c975abb.

Solidity: function paused() view returns(bool)

func (*StakingVSLSession) RenounceRole added in v0.3.0

func (_StakingVSL *StakingVSLSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*StakingVSLSession) RequestUnstake added in v0.3.0

func (_StakingVSL *StakingVSLSession) RequestUnstake(nodeAddr common.Address, chipsIds []*big.Int) (*types.Transaction, error)

RequestUnstake is a paid mutator transaction binding the contract method 0xbcdd4190.

Solidity: function requestUnstake(address nodeAddr, uint256[] chipsIds) returns(uint256 requestId)

func (*StakingVSLSession) RequestWithdrawal added in v0.3.0

func (_StakingVSL *StakingVSLSession) RequestWithdrawal(amount *big.Int) (*types.Transaction, error)

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

Solidity: function requestWithdrawal(uint256 amount) returns(uint256 requestId)

func (*StakingVSLSession) RevokeRole added in v0.3.0

func (_StakingVSL *StakingVSLSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*StakingVSLSession) SHARESPERCHIP added in v0.3.0

func (_StakingVSL *StakingVSLSession) SHARESPERCHIP() (*big.Int, error)

SHARESPERCHIP is a free data retrieval call binding the contract method 0x6b05f6dc.

Solidity: function SHARES_PER_CHIP() view returns(uint256)

func (*StakingVSLSession) STAKERATIO added in v0.3.0

func (_StakingVSL *StakingVSLSession) STAKERATIO() (*big.Int, error)

STAKERATIO is a free data retrieval call binding the contract method 0x736fcdf6.

Solidity: function STAKE_RATIO() view returns(uint256)

func (*StakingVSLSession) STAKEUNBONDINGPERIOD added in v0.3.0

func (_StakingVSL *StakingVSLSession) STAKEUNBONDINGPERIOD() (*big.Int, error)

STAKEUNBONDINGPERIOD is a free data retrieval call binding the contract method 0x2606a44a.

Solidity: function STAKE_UNBONDING_PERIOD() view returns(uint256)

func (*StakingVSLSession) SetSettlementPhase added in v0.3.0

func (_StakingVSL *StakingVSLSession) SetSettlementPhase(enabled bool) (*types.Transaction, error)

SetSettlementPhase is a paid mutator transaction binding the contract method 0x4e7a1286.

Solidity: function setSettlementPhase(bool enabled) returns()

func (*StakingVSLSession) SetTaxRateBasisPoints4Node added in v0.3.0

func (_StakingVSL *StakingVSLSession) SetTaxRateBasisPoints4Node(taxRateBasisPoints uint64) (*types.Transaction, error)

SetTaxRateBasisPoints4Node is a paid mutator transaction binding the contract method 0xc7057c1f.

Solidity: function setTaxRateBasisPoints4Node(uint64 taxRateBasisPoints) returns()

func (*StakingVSLSession) SetTaxRateBasisPoints4PublicPool added in v0.3.0

func (_StakingVSL *StakingVSLSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)

SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.

Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()

func (*StakingVSLSession) SlashNodes added in v0.3.0

func (_StakingVSL *StakingVSLSession) SlashNodes(nodeAddrs []common.Address) (*types.Transaction, error)

SlashNodes is a paid mutator transaction binding the contract method 0xa2f641c3.

Solidity: function slashNodes(address[] nodeAddrs) returns()

func (*StakingVSLSession) Stake added in v0.3.0

func (_StakingVSL *StakingVSLSession) Stake(nodeAddr common.Address) (*types.Transaction, error)

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

Solidity: function stake(address nodeAddr) payable returns(uint256 startTokenId, uint256 endTokenId)

func (*StakingVSLSession) StakeToPublicPool added in v0.3.0

func (_StakingVSL *StakingVSLSession) StakeToPublicPool(nodeAddr common.Address) (*types.Transaction, error)

StakeToPublicPool is a paid mutator transaction binding the contract method 0x379f8100.

Solidity: function stakeToPublicPool(address nodeAddr) payable returns(uint256 startTokenId, uint256 endTokenId)

func (*StakingVSLSession) SupportsInterface added in v0.3.0

func (_StakingVSL *StakingVSLSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*StakingVSLSession) TREASURY added in v0.3.0

func (_StakingVSL *StakingVSLSession) TREASURY() (common.Address, error)

TREASURY is a free data retrieval call binding the contract method 0x2d2c5565.

Solidity: function TREASURY() view returns(address)

func (*StakingVSLSession) USERSLASHRATEBASISPOINTS added in v0.3.0

func (_StakingVSL *StakingVSLSession) USERSLASHRATEBASISPOINTS() (*big.Int, error)

USERSLASHRATEBASISPOINTS is a free data retrieval call binding the contract method 0xb47d343c.

Solidity: function USER_SLASH_RATE_BASIS_POINTS() view returns(uint256)

func (*StakingVSLSession) Unpause added in v0.3.0

func (_StakingVSL *StakingVSLSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*StakingVSLSession) UpdateToPublicGood added in v0.3.0

func (_StakingVSL *StakingVSLSession) UpdateToPublicGood() (*types.Transaction, error)

UpdateToPublicGood is a paid mutator transaction binding the contract method 0xc9af094c.

Solidity: function updateToPublicGood() returns()

func (*StakingVSLSession) Withdraw2Treasury added in v0.3.0

func (_StakingVSL *StakingVSLSession) Withdraw2Treasury() (*types.Transaction, error)

Withdraw2Treasury is a paid mutator transaction binding the contract method 0x4a7dfc90.

Solidity: function withdraw2Treasury() returns()

type StakingVSLStaked added in v0.3.0

type StakingVSLStaked struct {
	User         common.Address
	NodeAddr     common.Address
	Amount       *big.Int
	StartTokenId *big.Int
	EndTokenId   *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

StakingVSLStaked represents a Staked event raised by the StakingVSL contract.

type StakingVSLStakedIterator added in v0.3.0

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

StakingVSLStakedIterator is returned from FilterStaked and is used to iterate over the raw logs and unpacked data for Staked events raised by the StakingVSL contract.

func (*StakingVSLStakedIterator) Close added in v0.3.0

func (it *StakingVSLStakedIterator) Close() error

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

func (*StakingVSLStakedIterator) Error added in v0.3.0

func (it *StakingVSLStakedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLStakedIterator) Next added in v0.3.0

func (it *StakingVSLStakedIterator) 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 StakingVSLTransactor added in v0.3.0

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

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

func NewStakingVSLTransactor added in v0.3.0

func NewStakingVSLTransactor(address common.Address, transactor bind.ContractTransactor) (*StakingVSLTransactor, error)

NewStakingVSLTransactor creates a new write-only instance of StakingVSL, bound to a specific deployed contract.

func (*StakingVSLTransactor) ClaimUnstake added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) ClaimUnstake(opts *bind.TransactOpts, requestIds []*big.Int) (*types.Transaction, error)

ClaimUnstake is a paid mutator transaction binding the contract method 0x04a4fb10.

Solidity: function claimUnstake(uint256[] requestIds) returns()

func (*StakingVSLTransactor) ClaimWithdrawal added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) ClaimWithdrawal(opts *bind.TransactOpts, requestIds []*big.Int) (*types.Transaction, error)

ClaimWithdrawal is a paid mutator transaction binding the contract method 0x3c256b98.

Solidity: function claimWithdrawal(uint256[] requestIds) returns()

func (*StakingVSLTransactor) CreateNode added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) CreateNode(opts *bind.TransactOpts, name string, description string, taxRateBasisPoints uint64, publicGood bool) (*types.Transaction, error)

CreateNode is a paid mutator transaction binding the contract method 0x96531623.

Solidity: function createNode(string name, string description, uint64 taxRateBasisPoints, bool publicGood) payable returns()

func (*StakingVSLTransactor) Deposit added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) Deposit(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function deposit() payable returns()

func (*StakingVSLTransactor) DisableAlphaPhase added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) DisableAlphaPhase(opts *bind.TransactOpts) (*types.Transaction, error)

DisableAlphaPhase is a paid mutator transaction binding the contract method 0x81001e60.

Solidity: function disableAlphaPhase() returns()

func (*StakingVSLTransactor) DistributeRewards added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) DistributeRewards(opts *bind.TransactOpts, epochInfo [3]*big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, stakingRewards []*big.Int, publicPoolRewards *big.Int) (*types.Transaction, error)

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

Solidity: function distributeRewards(uint256[3] epochInfo, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256 publicPoolRewards) payable returns()

func (*StakingVSLTransactor) GrantRole added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*StakingVSLTransactor) Initialize added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) Initialize(opts *bind.TransactOpts, chips common.Address, pauseAccount common.Address, oracleAccount common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc0c53b8b.

Solidity: function initialize(address chips, address pauseAccount, address oracleAccount) returns()

func (*StakingVSLTransactor) Pause added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*StakingVSLTransactor) RenounceRole added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*StakingVSLTransactor) RequestUnstake added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) RequestUnstake(opts *bind.TransactOpts, nodeAddr common.Address, chipsIds []*big.Int) (*types.Transaction, error)

RequestUnstake is a paid mutator transaction binding the contract method 0xbcdd4190.

Solidity: function requestUnstake(address nodeAddr, uint256[] chipsIds) returns(uint256 requestId)

func (*StakingVSLTransactor) RequestWithdrawal added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) RequestWithdrawal(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error)

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

Solidity: function requestWithdrawal(uint256 amount) returns(uint256 requestId)

func (*StakingVSLTransactor) RevokeRole added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*StakingVSLTransactor) SetSettlementPhase added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) SetSettlementPhase(opts *bind.TransactOpts, enabled bool) (*types.Transaction, error)

SetSettlementPhase is a paid mutator transaction binding the contract method 0x4e7a1286.

Solidity: function setSettlementPhase(bool enabled) returns()

func (*StakingVSLTransactor) SetTaxRateBasisPoints4Node added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) SetTaxRateBasisPoints4Node(opts *bind.TransactOpts, taxRateBasisPoints uint64) (*types.Transaction, error)

SetTaxRateBasisPoints4Node is a paid mutator transaction binding the contract method 0xc7057c1f.

Solidity: function setTaxRateBasisPoints4Node(uint64 taxRateBasisPoints) returns()

func (*StakingVSLTransactor) SetTaxRateBasisPoints4PublicPool added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) SetTaxRateBasisPoints4PublicPool(opts *bind.TransactOpts, taxRateBasisPoints uint64) (*types.Transaction, error)

SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.

Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()

func (*StakingVSLTransactor) SlashNodes added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) SlashNodes(opts *bind.TransactOpts, nodeAddrs []common.Address) (*types.Transaction, error)

SlashNodes is a paid mutator transaction binding the contract method 0xa2f641c3.

Solidity: function slashNodes(address[] nodeAddrs) returns()

func (*StakingVSLTransactor) Stake added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) Stake(opts *bind.TransactOpts, nodeAddr common.Address) (*types.Transaction, error)

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

Solidity: function stake(address nodeAddr) payable returns(uint256 startTokenId, uint256 endTokenId)

func (*StakingVSLTransactor) StakeToPublicPool added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) StakeToPublicPool(opts *bind.TransactOpts, nodeAddr common.Address) (*types.Transaction, error)

StakeToPublicPool is a paid mutator transaction binding the contract method 0x379f8100.

Solidity: function stakeToPublicPool(address nodeAddr) payable returns(uint256 startTokenId, uint256 endTokenId)

func (*StakingVSLTransactor) Unpause added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*StakingVSLTransactor) UpdateToPublicGood added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) UpdateToPublicGood(opts *bind.TransactOpts) (*types.Transaction, error)

UpdateToPublicGood is a paid mutator transaction binding the contract method 0xc9af094c.

Solidity: function updateToPublicGood() returns()

func (*StakingVSLTransactor) Withdraw2Treasury added in v0.3.0

func (_StakingVSL *StakingVSLTransactor) Withdraw2Treasury(opts *bind.TransactOpts) (*types.Transaction, error)

Withdraw2Treasury is a paid mutator transaction binding the contract method 0x4a7dfc90.

Solidity: function withdraw2Treasury() returns()

type StakingVSLTransactorRaw added in v0.3.0

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

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

func (*StakingVSLTransactorRaw) Transact added in v0.3.0

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

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

func (*StakingVSLTransactorRaw) Transfer added in v0.3.0

func (_StakingVSL *StakingVSLTransactorRaw) 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 StakingVSLTransactorSession added in v0.3.0

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

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

func (*StakingVSLTransactorSession) ClaimUnstake added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) ClaimUnstake(requestIds []*big.Int) (*types.Transaction, error)

ClaimUnstake is a paid mutator transaction binding the contract method 0x04a4fb10.

Solidity: function claimUnstake(uint256[] requestIds) returns()

func (*StakingVSLTransactorSession) ClaimWithdrawal added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) ClaimWithdrawal(requestIds []*big.Int) (*types.Transaction, error)

ClaimWithdrawal is a paid mutator transaction binding the contract method 0x3c256b98.

Solidity: function claimWithdrawal(uint256[] requestIds) returns()

func (*StakingVSLTransactorSession) CreateNode added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) CreateNode(name string, description string, taxRateBasisPoints uint64, publicGood bool) (*types.Transaction, error)

CreateNode is a paid mutator transaction binding the contract method 0x96531623.

Solidity: function createNode(string name, string description, uint64 taxRateBasisPoints, bool publicGood) payable returns()

func (*StakingVSLTransactorSession) Deposit added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) Deposit() (*types.Transaction, error)

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

Solidity: function deposit() payable returns()

func (*StakingVSLTransactorSession) DisableAlphaPhase added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) DisableAlphaPhase() (*types.Transaction, error)

DisableAlphaPhase is a paid mutator transaction binding the contract method 0x81001e60.

Solidity: function disableAlphaPhase() returns()

func (*StakingVSLTransactorSession) DistributeRewards added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) DistributeRewards(epochInfo [3]*big.Int, nodeAddrs []common.Address, operationRewards []*big.Int, stakingRewards []*big.Int, publicPoolRewards *big.Int) (*types.Transaction, error)

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

Solidity: function distributeRewards(uint256[3] epochInfo, address[] nodeAddrs, uint256[] operationRewards, uint256[] stakingRewards, uint256 publicPoolRewards) payable returns()

func (*StakingVSLTransactorSession) GrantRole added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*StakingVSLTransactorSession) Initialize added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) Initialize(chips common.Address, pauseAccount common.Address, oracleAccount common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc0c53b8b.

Solidity: function initialize(address chips, address pauseAccount, address oracleAccount) returns()

func (*StakingVSLTransactorSession) Pause added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) Pause() (*types.Transaction, error)

Pause is a paid mutator transaction binding the contract method 0x8456cb59.

Solidity: function pause() returns()

func (*StakingVSLTransactorSession) RenounceRole added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*StakingVSLTransactorSession) RequestUnstake added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) RequestUnstake(nodeAddr common.Address, chipsIds []*big.Int) (*types.Transaction, error)

RequestUnstake is a paid mutator transaction binding the contract method 0xbcdd4190.

Solidity: function requestUnstake(address nodeAddr, uint256[] chipsIds) returns(uint256 requestId)

func (*StakingVSLTransactorSession) RequestWithdrawal added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) RequestWithdrawal(amount *big.Int) (*types.Transaction, error)

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

Solidity: function requestWithdrawal(uint256 amount) returns(uint256 requestId)

func (*StakingVSLTransactorSession) RevokeRole added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*StakingVSLTransactorSession) SetSettlementPhase added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) SetSettlementPhase(enabled bool) (*types.Transaction, error)

SetSettlementPhase is a paid mutator transaction binding the contract method 0x4e7a1286.

Solidity: function setSettlementPhase(bool enabled) returns()

func (*StakingVSLTransactorSession) SetTaxRateBasisPoints4Node added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) SetTaxRateBasisPoints4Node(taxRateBasisPoints uint64) (*types.Transaction, error)

SetTaxRateBasisPoints4Node is a paid mutator transaction binding the contract method 0xc7057c1f.

Solidity: function setTaxRateBasisPoints4Node(uint64 taxRateBasisPoints) returns()

func (*StakingVSLTransactorSession) SetTaxRateBasisPoints4PublicPool added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) SetTaxRateBasisPoints4PublicPool(taxRateBasisPoints uint64) (*types.Transaction, error)

SetTaxRateBasisPoints4PublicPool is a paid mutator transaction binding the contract method 0xe3fb8dca.

Solidity: function setTaxRateBasisPoints4PublicPool(uint64 taxRateBasisPoints) returns()

func (*StakingVSLTransactorSession) SlashNodes added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) SlashNodes(nodeAddrs []common.Address) (*types.Transaction, error)

SlashNodes is a paid mutator transaction binding the contract method 0xa2f641c3.

Solidity: function slashNodes(address[] nodeAddrs) returns()

func (*StakingVSLTransactorSession) Stake added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) Stake(nodeAddr common.Address) (*types.Transaction, error)

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

Solidity: function stake(address nodeAddr) payable returns(uint256 startTokenId, uint256 endTokenId)

func (*StakingVSLTransactorSession) StakeToPublicPool added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) StakeToPublicPool(nodeAddr common.Address) (*types.Transaction, error)

StakeToPublicPool is a paid mutator transaction binding the contract method 0x379f8100.

Solidity: function stakeToPublicPool(address nodeAddr) payable returns(uint256 startTokenId, uint256 endTokenId)

func (*StakingVSLTransactorSession) Unpause added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) Unpause() (*types.Transaction, error)

Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.

Solidity: function unpause() returns()

func (*StakingVSLTransactorSession) UpdateToPublicGood added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) UpdateToPublicGood() (*types.Transaction, error)

UpdateToPublicGood is a paid mutator transaction binding the contract method 0xc9af094c.

Solidity: function updateToPublicGood() returns()

func (*StakingVSLTransactorSession) Withdraw2Treasury added in v0.3.0

func (_StakingVSL *StakingVSLTransactorSession) Withdraw2Treasury() (*types.Transaction, error)

Withdraw2Treasury is a paid mutator transaction binding the contract method 0x4a7dfc90.

Solidity: function withdraw2Treasury() returns()

type StakingVSLUnpaused added in v0.3.0

type StakingVSLUnpaused struct {
	Account common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

StakingVSLUnpaused represents a Unpaused event raised by the StakingVSL contract.

type StakingVSLUnpausedIterator added in v0.3.0

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

StakingVSLUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the StakingVSL contract.

func (*StakingVSLUnpausedIterator) Close added in v0.3.0

func (it *StakingVSLUnpausedIterator) Close() error

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

func (*StakingVSLUnpausedIterator) Error added in v0.3.0

func (it *StakingVSLUnpausedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLUnpausedIterator) Next added in v0.3.0

func (it *StakingVSLUnpausedIterator) 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 StakingVSLUnstakeClaimed added in v0.3.0

type StakingVSLUnstakeClaimed struct {
	RequestId     *big.Int
	NodeAddr      common.Address
	User          common.Address
	UnstakeAmount *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

StakingVSLUnstakeClaimed represents a UnstakeClaimed event raised by the StakingVSL contract.

type StakingVSLUnstakeClaimedIterator added in v0.3.0

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

StakingVSLUnstakeClaimedIterator is returned from FilterUnstakeClaimed and is used to iterate over the raw logs and unpacked data for UnstakeClaimed events raised by the StakingVSL contract.

func (*StakingVSLUnstakeClaimedIterator) Close added in v0.3.0

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

func (*StakingVSLUnstakeClaimedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLUnstakeClaimedIterator) Next added in v0.3.0

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 StakingVSLUnstakeRequested added in v0.3.0

type StakingVSLUnstakeRequested struct {
	User          common.Address
	NodeAddr      common.Address
	RequestId     *big.Int
	UnstakeAmount *big.Int
	ChipsIds      []*big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

StakingVSLUnstakeRequested represents a UnstakeRequested event raised by the StakingVSL contract.

type StakingVSLUnstakeRequestedIterator added in v0.3.0

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

StakingVSLUnstakeRequestedIterator is returned from FilterUnstakeRequested and is used to iterate over the raw logs and unpacked data for UnstakeRequested events raised by the StakingVSL contract.

func (*StakingVSLUnstakeRequestedIterator) Close added in v0.3.0

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

func (*StakingVSLUnstakeRequestedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLUnstakeRequestedIterator) Next added in v0.3.0

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 StakingVSLWithdrawRequested added in v0.3.0

type StakingVSLWithdrawRequested struct {
	NodeAddr  common.Address
	Amount    *big.Int
	RequestId *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StakingVSLWithdrawRequested represents a WithdrawRequested event raised by the StakingVSL contract.

type StakingVSLWithdrawRequestedIterator added in v0.3.0

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

StakingVSLWithdrawRequestedIterator is returned from FilterWithdrawRequested and is used to iterate over the raw logs and unpacked data for WithdrawRequested events raised by the StakingVSL contract.

func (*StakingVSLWithdrawRequestedIterator) Close added in v0.3.0

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

func (*StakingVSLWithdrawRequestedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLWithdrawRequestedIterator) Next added in v0.3.0

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 StakingVSLWithdrawalClaimed added in v0.3.0

type StakingVSLWithdrawalClaimed struct {
	RequestId *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

StakingVSLWithdrawalClaimed represents a WithdrawalClaimed event raised by the StakingVSL contract.

type StakingVSLWithdrawalClaimedIterator added in v0.3.0

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

StakingVSLWithdrawalClaimedIterator is returned from FilterWithdrawalClaimed and is used to iterate over the raw logs and unpacked data for WithdrawalClaimed events raised by the StakingVSL contract.

func (*StakingVSLWithdrawalClaimedIterator) Close added in v0.3.0

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

func (*StakingVSLWithdrawalClaimedIterator) Error added in v0.3.0

Error returns any retrieval or parsing error occurred during filtering.

func (*StakingVSLWithdrawalClaimedIterator) Next added in v0.3.0

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