subnet

package
v1.2.14 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SubnetContractABI = SubnetContractMetaData.ABI

SubnetContractABI is the input ABI used to generate the binding from. Deprecated: Use SubnetContractMetaData.ABI instead.

View Source
var SubnetContractMetaData = &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\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"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\":\"account\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structSubnet.StakeStruct\",\"name\":\"stake\",\"type\":\"tuple\"}],\"name\":\"StakeEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"indexed\":false,\"internalType\":\"structSubnet.StakeStruct\",\"name\":\"stake\",\"type\":\"tuple\"}],\"name\":\"UnStakeEvent\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"addressInfo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"prevCycleReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"allTimeReward\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"earned\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isValidator\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"delegatedTo\",\"type\":\"bytes\"}],\"internalType\":\"structSubnet.LicenseInfo[]\",\"name\":\"info\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"claimable\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"validator\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"bytes16\",\"name\":\"subnetId\",\"type\":\"bytes16\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSubnet.RewardClaimData[]\",\"name\":\"claimData\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"x\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"y\",\"type\":\"uint256\"}],\"internalType\":\"structLibSecp256k1.Point[]\",\"name\":\"signers\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"commitment\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"totalCost\",\"type\":\"uint256\"}],\"internalType\":\"structSubnet.Claim\",\"name\":\"claim\",\"type\":\"tuple\"}],\"name\":\"claimReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_enabled\",\"type\":\"bool\"}],\"name\":\"enableWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"validator\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"bytes16\",\"name\":\"subnetId\",\"type\":\"bytes16\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSubnet.RewardClaimData[]\",\"name\":\"claimData\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"x\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"y\",\"type\":\"uint256\"}],\"internalType\":\"structLibSecp256k1.Point[]\",\"name\":\"signers\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"commitment\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"totalCost\",\"type\":\"uint256\"}],\"internalType\":\"structSubnet.Claim\",\"name\":\"claim\",\"type\":\"tuple\"}],\"name\":\"getClaimHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cycleNumLicences\",\"type\":\"uint256\"}],\"name\":\"getMinSignerCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"subnetId\",\"type\":\"bytes16\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"getSubnetAccountBalance\",\"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\":[{\"components\":[{\"internalType\":\"bytes16\",\"name\":\"subnetId\",\"type\":\"bytes16\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSubnet.RewardClaimData[]\",\"name\":\"claimData\",\"type\":\"tuple[]\"}],\"name\":\"hashRewardData\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_network\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"xTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_sentryContract\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_validatorNodeContract\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"locked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minStakable\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"network\",\"outputs\":[{\"internalType\":\"contractINetwork\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"processedClaim\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"proofProviderRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"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\":[],\"name\":\"sentryBaseReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sentryContract\",\"outputs\":[{\"internalType\":\"contractINodeContract\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"sentryCycleRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"sentryLicenseRevenue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_minStakable\",\"type\":\"uint256\"}],\"name\":\"setMinStakable\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"add\",\"type\":\"address\"}],\"name\":\"setNetworkAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_baseReward\",\"type\":\"uint256\"}],\"name\":\"setSentryBaseReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"add\",\"type\":\"address\"}],\"name\":\"setSentryNodeAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"add\",\"type\":\"address\"}],\"name\":\"setTokenAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_baseReward\",\"type\":\"uint256\"}],\"name\":\"setValidatorBaseReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"add\",\"type\":\"address\"}],\"name\":\"setValidatorNodeAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"subnetId\",\"type\":\"bytes16\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"stake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"stakeAddresses\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"subnetId\",\"type\":\"bytes16\"}],\"name\":\"subnetBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"\",\"type\":\"bytes16\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"subnetBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"\",\"type\":\"bytes16\"}],\"name\":\"subnetCredit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"\",\"type\":\"bytes16\"}],\"name\":\"subnetDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"\",\"type\":\"bytes16\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"subnetStakerBalances\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes16\",\"name\":\"subnetId\",\"type\":\"bytes16\"}],\"name\":\"unStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"unstakeOrders\",\"outputs\":[{\"internalType\":\"int32\",\"name\":\"\",\"type\":\"int32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"validatorBaseReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"validatorCycleRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"validatorNodeContract\",\"outputs\":[{\"internalType\":\"contractINodeContract\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"validatorRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"validator\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"bytes16\",\"name\":\"subnetId\",\"type\":\"bytes16\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"structSubnet.RewardClaimData[]\",\"name\":\"claimData\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"x\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"y\",\"type\":\"uint256\"}],\"internalType\":\"structLibSecp256k1.Point[]\",\"name\":\"signers\",\"type\":\"tuple[]\"},{\"internalType\":\"address\",\"name\":\"commitment\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"totalCost\",\"type\":\"uint256\"}],\"internalType\":\"structSubnet.Claim\",\"name\":\"claim\",\"type\":\"tuple\"}],\"name\":\"verifyClaim\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawableAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdrawalEnabled\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

SubnetContractMetaData contains all meta data concerning the SubnetContract contract.

Functions

This section is empty.

Types

type LibSecp256k1Point

type LibSecp256k1Point struct {
	X *big.Int
	Y *big.Int
}

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

type SubnetClaim

type SubnetClaim struct {
	Validator  []byte
	ClaimData  []SubnetRewardClaimData
	Cycle      *big.Int
	Index      *big.Int
	Signers    []LibSecp256k1Point
	Commitment common.Address
	Signature  []byte
	TotalCost  *big.Int
}

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

type SubnetContract

type SubnetContract struct {
	SubnetContractCaller     // Read-only binding to the contract
	SubnetContractTransactor // Write-only binding to the contract
	SubnetContractFilterer   // Log filterer for contract events
}

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

func NewSubnetContract

func NewSubnetContract(address common.Address, backend bind.ContractBackend) (*SubnetContract, error)

NewSubnetContract creates a new instance of SubnetContract, bound to a specific deployed contract.

type SubnetContractCaller

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

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

func NewSubnetContractCaller

func NewSubnetContractCaller(address common.Address, caller bind.ContractCaller) (*SubnetContractCaller, error)

NewSubnetContractCaller creates a new read-only instance of SubnetContract, bound to a specific deployed contract.

func (*SubnetContractCaller) AddressInfo

func (_SubnetContract *SubnetContractCaller) AddressInfo(opts *bind.CallOpts, addr common.Address) (struct {
	PrevCycleReward *big.Int
	AllTimeReward   *big.Int
	Info            []SubnetLicenseInfo
	Claimable       *big.Int
}, error)

AddressInfo is a free data retrieval call binding the contract method 0x2126fcb2.

Solidity: function addressInfo(address addr) view returns(uint256 prevCycleReward, uint256 allTimeReward, (uint256,uint256,bool,bytes)[] info, uint256 claimable)

func (*SubnetContractCaller) DEFAULTADMINROLE

func (_SubnetContract *SubnetContractCaller) 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 (*SubnetContractCaller) GetClaimHash

func (_SubnetContract *SubnetContractCaller) GetClaimHash(opts *bind.CallOpts, claim SubnetClaim) ([32]byte, error)

GetClaimHash is a free data retrieval call binding the contract method 0xf6b85a9a.

Solidity: function getClaimHash((bytes,(bytes16,uint256)[],uint256,uint256,(uint256,uint256)[],address,bytes,uint256) claim) view returns(bytes32)

func (*SubnetContractCaller) GetMinSignerCount

func (_SubnetContract *SubnetContractCaller) GetMinSignerCount(opts *bind.CallOpts, cycleNumLicences *big.Int) (*big.Int, error)

GetMinSignerCount is a free data retrieval call binding the contract method 0x9cee2fe3.

Solidity: function getMinSignerCount(uint256 cycleNumLicences) pure returns(uint256)

func (*SubnetContractCaller) GetRoleAdmin

func (_SubnetContract *SubnetContractCaller) 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 (*SubnetContractCaller) GetSubnetAccountBalance

func (_SubnetContract *SubnetContractCaller) GetSubnetAccountBalance(opts *bind.CallOpts, subnetId [16]byte, addr common.Address) (*big.Int, error)

GetSubnetAccountBalance is a free data retrieval call binding the contract method 0x09774aaf.

Solidity: function getSubnetAccountBalance(bytes16 subnetId, address addr) view returns(uint256)

func (*SubnetContractCaller) HasRole

func (_SubnetContract *SubnetContractCaller) 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 (*SubnetContractCaller) HashRewardData

func (_SubnetContract *SubnetContractCaller) HashRewardData(opts *bind.CallOpts, claimData []SubnetRewardClaimData) ([32]byte, error)

HashRewardData is a free data retrieval call binding the contract method 0x5a9a7b87.

Solidity: function hashRewardData((bytes16,uint256)[] claimData) pure returns(bytes32 hash)

func (*SubnetContractCaller) Locked

func (_SubnetContract *SubnetContractCaller) Locked(opts *bind.CallOpts) (bool, error)

Locked is a free data retrieval call binding the contract method 0xcf309012.

Solidity: function locked() view returns(bool)

func (*SubnetContractCaller) MinStakable

func (_SubnetContract *SubnetContractCaller) MinStakable(opts *bind.CallOpts) (*big.Int, error)

MinStakable is a free data retrieval call binding the contract method 0xc0d41476.

Solidity: function minStakable() view returns(uint256)

func (*SubnetContractCaller) Network

func (_SubnetContract *SubnetContractCaller) Network(opts *bind.CallOpts) (common.Address, error)

Network is a free data retrieval call binding the contract method 0x6739afca.

Solidity: function network() view returns(address)

func (*SubnetContractCaller) Owner

func (_SubnetContract *SubnetContractCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*SubnetContractCaller) ProcessedClaim

func (_SubnetContract *SubnetContractCaller) ProcessedClaim(opts *bind.CallOpts, arg0 *big.Int, arg1 []byte, arg2 *big.Int) (bool, error)

ProcessedClaim is a free data retrieval call binding the contract method 0x2ad6f7f6.

Solidity: function processedClaim(uint256 , bytes , uint256 ) view returns(bool)

func (*SubnetContractCaller) ProofProviderRewards

func (_SubnetContract *SubnetContractCaller) ProofProviderRewards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

ProofProviderRewards is a free data retrieval call binding the contract method 0x58f25d13.

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

func (*SubnetContractCaller) SentryBaseReward

func (_SubnetContract *SubnetContractCaller) SentryBaseReward(opts *bind.CallOpts) (*big.Int, error)

SentryBaseReward is a free data retrieval call binding the contract method 0x25a772a4.

Solidity: function sentryBaseReward() view returns(uint256)

func (*SubnetContractCaller) SentryContract

func (_SubnetContract *SubnetContractCaller) SentryContract(opts *bind.CallOpts) (common.Address, error)

SentryContract is a free data retrieval call binding the contract method 0xdbca5c52.

Solidity: function sentryContract() view returns(address)

func (*SubnetContractCaller) SentryCycleRewards

func (_SubnetContract *SubnetContractCaller) SentryCycleRewards(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)

SentryCycleRewards is a free data retrieval call binding the contract method 0x7773b6e9.

Solidity: function sentryCycleRewards(address , uint256 ) view returns(uint256)

func (*SubnetContractCaller) SentryLicenseRevenue

func (_SubnetContract *SubnetContractCaller) SentryLicenseRevenue(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

SentryLicenseRevenue is a free data retrieval call binding the contract method 0x37b560f3.

Solidity: function sentryLicenseRevenue(uint256 ) view returns(uint256)

func (*SubnetContractCaller) StakeAddresses

func (_SubnetContract *SubnetContractCaller) StakeAddresses(opts *bind.CallOpts, arg0 common.Address) (common.Address, error)

StakeAddresses is a free data retrieval call binding the contract method 0x6a7cce86.

Solidity: function stakeAddresses(address ) view returns(address)

func (*SubnetContractCaller) SubnetBalance

func (_SubnetContract *SubnetContractCaller) SubnetBalance(opts *bind.CallOpts, subnetId [16]byte) (*big.Int, error)

SubnetBalance is a free data retrieval call binding the contract method 0x4d1e4062.

Solidity: function subnetBalance(bytes16 subnetId) view returns(uint256)

func (*SubnetContractCaller) SubnetBalances

func (_SubnetContract *SubnetContractCaller) SubnetBalances(opts *bind.CallOpts, arg0 [16]byte, arg1 common.Address, arg2 *big.Int) (struct {
	Amount    *big.Int
	Timestamp *big.Int
}, error)

SubnetBalances is a free data retrieval call binding the contract method 0x5a50b09b.

Solidity: function subnetBalances(bytes16 , address , uint256 ) view returns(uint256 amount, uint256 timestamp)

func (*SubnetContractCaller) SubnetCredit

func (_SubnetContract *SubnetContractCaller) SubnetCredit(opts *bind.CallOpts, arg0 [16]byte) (*big.Int, error)

SubnetCredit is a free data retrieval call binding the contract method 0x8d73c2fa.

Solidity: function subnetCredit(bytes16 ) view returns(uint256)

func (*SubnetContractCaller) SubnetDebt

func (_SubnetContract *SubnetContractCaller) SubnetDebt(opts *bind.CallOpts, arg0 [16]byte) (*big.Int, error)

SubnetDebt is a free data retrieval call binding the contract method 0xe9af524e.

Solidity: function subnetDebt(bytes16 ) view returns(uint256)

func (*SubnetContractCaller) SubnetStakerBalances

func (_SubnetContract *SubnetContractCaller) SubnetStakerBalances(opts *bind.CallOpts, arg0 [16]byte, arg1 common.Address) (*big.Int, error)

SubnetStakerBalances is a free data retrieval call binding the contract method 0x78d25664.

Solidity: function subnetStakerBalances(bytes16 , address ) view returns(uint256)

func (*SubnetContractCaller) SupportsInterface

func (_SubnetContract *SubnetContractCaller) 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 (*SubnetContractCaller) UnstakeOrders

func (_SubnetContract *SubnetContractCaller) UnstakeOrders(opts *bind.CallOpts, arg0 common.Address, arg1 []byte) (int32, error)

UnstakeOrders is a free data retrieval call binding the contract method 0x9d922aca.

Solidity: function unstakeOrders(address , bytes ) view returns(int32)

func (*SubnetContractCaller) ValidatorBaseReward

func (_SubnetContract *SubnetContractCaller) ValidatorBaseReward(opts *bind.CallOpts) (*big.Int, error)

ValidatorBaseReward is a free data retrieval call binding the contract method 0x0063b8dd.

Solidity: function validatorBaseReward() view returns(uint256)

func (*SubnetContractCaller) ValidatorCycleRewards

func (_SubnetContract *SubnetContractCaller) ValidatorCycleRewards(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error)

ValidatorCycleRewards is a free data retrieval call binding the contract method 0xbf19eb0c.

Solidity: function validatorCycleRewards(address , uint256 ) view returns(uint256)

func (*SubnetContractCaller) ValidatorNodeContract

func (_SubnetContract *SubnetContractCaller) ValidatorNodeContract(opts *bind.CallOpts) (common.Address, error)

ValidatorNodeContract is a free data retrieval call binding the contract method 0x71f2053b.

Solidity: function validatorNodeContract() view returns(address)

func (*SubnetContractCaller) ValidatorRewards

func (_SubnetContract *SubnetContractCaller) ValidatorRewards(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

ValidatorRewards is a free data retrieval call binding the contract method 0xb1845c56.

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

func (*SubnetContractCaller) VerifyClaim

func (_SubnetContract *SubnetContractCaller) VerifyClaim(opts *bind.CallOpts, claim SubnetClaim) (bool, [32]byte, error)

VerifyClaim is a free data retrieval call binding the contract method 0x8b2ed4c8.

Solidity: function verifyClaim((bytes,(bytes16,uint256)[],uint256,uint256,(uint256,uint256)[],address,bytes,uint256) claim) view returns(bool, bytes32)

func (*SubnetContractCaller) WithdrawableAmount

func (_SubnetContract *SubnetContractCaller) WithdrawableAmount(opts *bind.CallOpts) (*big.Int, error)

WithdrawableAmount is a free data retrieval call binding the contract method 0x951303f5.

Solidity: function withdrawableAmount() pure returns(uint256)

func (*SubnetContractCaller) WithdrawalEnabled

func (_SubnetContract *SubnetContractCaller) WithdrawalEnabled(opts *bind.CallOpts) (bool, error)

WithdrawalEnabled is a free data retrieval call binding the contract method 0xf8ea5daf.

Solidity: function withdrawalEnabled() view returns(bool)

type SubnetContractCallerRaw

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

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

func (*SubnetContractCallerRaw) Call

func (_SubnetContract *SubnetContractCallerRaw) 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 SubnetContractCallerSession

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

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

func (*SubnetContractCallerSession) AddressInfo

func (_SubnetContract *SubnetContractCallerSession) AddressInfo(addr common.Address) (struct {
	PrevCycleReward *big.Int
	AllTimeReward   *big.Int
	Info            []SubnetLicenseInfo
	Claimable       *big.Int
}, error)

AddressInfo is a free data retrieval call binding the contract method 0x2126fcb2.

Solidity: function addressInfo(address addr) view returns(uint256 prevCycleReward, uint256 allTimeReward, (uint256,uint256,bool,bytes)[] info, uint256 claimable)

func (*SubnetContractCallerSession) DEFAULTADMINROLE

func (_SubnetContract *SubnetContractCallerSession) 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 (*SubnetContractCallerSession) GetClaimHash

func (_SubnetContract *SubnetContractCallerSession) GetClaimHash(claim SubnetClaim) ([32]byte, error)

GetClaimHash is a free data retrieval call binding the contract method 0xf6b85a9a.

Solidity: function getClaimHash((bytes,(bytes16,uint256)[],uint256,uint256,(uint256,uint256)[],address,bytes,uint256) claim) view returns(bytes32)

func (*SubnetContractCallerSession) GetMinSignerCount

func (_SubnetContract *SubnetContractCallerSession) GetMinSignerCount(cycleNumLicences *big.Int) (*big.Int, error)

GetMinSignerCount is a free data retrieval call binding the contract method 0x9cee2fe3.

Solidity: function getMinSignerCount(uint256 cycleNumLicences) pure returns(uint256)

func (*SubnetContractCallerSession) GetRoleAdmin

func (_SubnetContract *SubnetContractCallerSession) 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 (*SubnetContractCallerSession) GetSubnetAccountBalance

func (_SubnetContract *SubnetContractCallerSession) GetSubnetAccountBalance(subnetId [16]byte, addr common.Address) (*big.Int, error)

GetSubnetAccountBalance is a free data retrieval call binding the contract method 0x09774aaf.

Solidity: function getSubnetAccountBalance(bytes16 subnetId, address addr) view returns(uint256)

func (*SubnetContractCallerSession) HasRole

func (_SubnetContract *SubnetContractCallerSession) 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 (*SubnetContractCallerSession) HashRewardData

func (_SubnetContract *SubnetContractCallerSession) HashRewardData(claimData []SubnetRewardClaimData) ([32]byte, error)

HashRewardData is a free data retrieval call binding the contract method 0x5a9a7b87.

Solidity: function hashRewardData((bytes16,uint256)[] claimData) pure returns(bytes32 hash)

func (*SubnetContractCallerSession) Locked

func (_SubnetContract *SubnetContractCallerSession) Locked() (bool, error)

Locked is a free data retrieval call binding the contract method 0xcf309012.

Solidity: function locked() view returns(bool)

func (*SubnetContractCallerSession) MinStakable

func (_SubnetContract *SubnetContractCallerSession) MinStakable() (*big.Int, error)

MinStakable is a free data retrieval call binding the contract method 0xc0d41476.

Solidity: function minStakable() view returns(uint256)

func (*SubnetContractCallerSession) Network

func (_SubnetContract *SubnetContractCallerSession) Network() (common.Address, error)

Network is a free data retrieval call binding the contract method 0x6739afca.

Solidity: function network() view returns(address)

func (*SubnetContractCallerSession) Owner

func (_SubnetContract *SubnetContractCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*SubnetContractCallerSession) ProcessedClaim

func (_SubnetContract *SubnetContractCallerSession) ProcessedClaim(arg0 *big.Int, arg1 []byte, arg2 *big.Int) (bool, error)

ProcessedClaim is a free data retrieval call binding the contract method 0x2ad6f7f6.

Solidity: function processedClaim(uint256 , bytes , uint256 ) view returns(bool)

func (*SubnetContractCallerSession) ProofProviderRewards

func (_SubnetContract *SubnetContractCallerSession) ProofProviderRewards(arg0 common.Address) (*big.Int, error)

ProofProviderRewards is a free data retrieval call binding the contract method 0x58f25d13.

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

func (*SubnetContractCallerSession) SentryBaseReward

func (_SubnetContract *SubnetContractCallerSession) SentryBaseReward() (*big.Int, error)

SentryBaseReward is a free data retrieval call binding the contract method 0x25a772a4.

Solidity: function sentryBaseReward() view returns(uint256)

func (*SubnetContractCallerSession) SentryContract

func (_SubnetContract *SubnetContractCallerSession) SentryContract() (common.Address, error)

SentryContract is a free data retrieval call binding the contract method 0xdbca5c52.

Solidity: function sentryContract() view returns(address)

func (*SubnetContractCallerSession) SentryCycleRewards

func (_SubnetContract *SubnetContractCallerSession) SentryCycleRewards(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

SentryCycleRewards is a free data retrieval call binding the contract method 0x7773b6e9.

Solidity: function sentryCycleRewards(address , uint256 ) view returns(uint256)

func (*SubnetContractCallerSession) SentryLicenseRevenue

func (_SubnetContract *SubnetContractCallerSession) SentryLicenseRevenue(arg0 *big.Int) (*big.Int, error)

SentryLicenseRevenue is a free data retrieval call binding the contract method 0x37b560f3.

Solidity: function sentryLicenseRevenue(uint256 ) view returns(uint256)

func (*SubnetContractCallerSession) StakeAddresses

func (_SubnetContract *SubnetContractCallerSession) StakeAddresses(arg0 common.Address) (common.Address, error)

StakeAddresses is a free data retrieval call binding the contract method 0x6a7cce86.

Solidity: function stakeAddresses(address ) view returns(address)

func (*SubnetContractCallerSession) SubnetBalance

func (_SubnetContract *SubnetContractCallerSession) SubnetBalance(subnetId [16]byte) (*big.Int, error)

SubnetBalance is a free data retrieval call binding the contract method 0x4d1e4062.

Solidity: function subnetBalance(bytes16 subnetId) view returns(uint256)

func (*SubnetContractCallerSession) SubnetBalances

func (_SubnetContract *SubnetContractCallerSession) SubnetBalances(arg0 [16]byte, arg1 common.Address, arg2 *big.Int) (struct {
	Amount    *big.Int
	Timestamp *big.Int
}, error)

SubnetBalances is a free data retrieval call binding the contract method 0x5a50b09b.

Solidity: function subnetBalances(bytes16 , address , uint256 ) view returns(uint256 amount, uint256 timestamp)

func (*SubnetContractCallerSession) SubnetCredit

func (_SubnetContract *SubnetContractCallerSession) SubnetCredit(arg0 [16]byte) (*big.Int, error)

SubnetCredit is a free data retrieval call binding the contract method 0x8d73c2fa.

Solidity: function subnetCredit(bytes16 ) view returns(uint256)

func (*SubnetContractCallerSession) SubnetDebt

func (_SubnetContract *SubnetContractCallerSession) SubnetDebt(arg0 [16]byte) (*big.Int, error)

SubnetDebt is a free data retrieval call binding the contract method 0xe9af524e.

Solidity: function subnetDebt(bytes16 ) view returns(uint256)

func (*SubnetContractCallerSession) SubnetStakerBalances

func (_SubnetContract *SubnetContractCallerSession) SubnetStakerBalances(arg0 [16]byte, arg1 common.Address) (*big.Int, error)

SubnetStakerBalances is a free data retrieval call binding the contract method 0x78d25664.

Solidity: function subnetStakerBalances(bytes16 , address ) view returns(uint256)

func (*SubnetContractCallerSession) SupportsInterface

func (_SubnetContract *SubnetContractCallerSession) 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 (*SubnetContractCallerSession) UnstakeOrders

func (_SubnetContract *SubnetContractCallerSession) UnstakeOrders(arg0 common.Address, arg1 []byte) (int32, error)

UnstakeOrders is a free data retrieval call binding the contract method 0x9d922aca.

Solidity: function unstakeOrders(address , bytes ) view returns(int32)

func (*SubnetContractCallerSession) ValidatorBaseReward

func (_SubnetContract *SubnetContractCallerSession) ValidatorBaseReward() (*big.Int, error)

ValidatorBaseReward is a free data retrieval call binding the contract method 0x0063b8dd.

Solidity: function validatorBaseReward() view returns(uint256)

func (*SubnetContractCallerSession) ValidatorCycleRewards

func (_SubnetContract *SubnetContractCallerSession) ValidatorCycleRewards(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

ValidatorCycleRewards is a free data retrieval call binding the contract method 0xbf19eb0c.

Solidity: function validatorCycleRewards(address , uint256 ) view returns(uint256)

func (*SubnetContractCallerSession) ValidatorNodeContract

func (_SubnetContract *SubnetContractCallerSession) ValidatorNodeContract() (common.Address, error)

ValidatorNodeContract is a free data retrieval call binding the contract method 0x71f2053b.

Solidity: function validatorNodeContract() view returns(address)

func (*SubnetContractCallerSession) ValidatorRewards

func (_SubnetContract *SubnetContractCallerSession) ValidatorRewards(arg0 common.Address) (*big.Int, error)

ValidatorRewards is a free data retrieval call binding the contract method 0xb1845c56.

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

func (*SubnetContractCallerSession) VerifyClaim

func (_SubnetContract *SubnetContractCallerSession) VerifyClaim(claim SubnetClaim) (bool, [32]byte, error)

VerifyClaim is a free data retrieval call binding the contract method 0x8b2ed4c8.

Solidity: function verifyClaim((bytes,(bytes16,uint256)[],uint256,uint256,(uint256,uint256)[],address,bytes,uint256) claim) view returns(bool, bytes32)

func (*SubnetContractCallerSession) WithdrawableAmount

func (_SubnetContract *SubnetContractCallerSession) WithdrawableAmount() (*big.Int, error)

WithdrawableAmount is a free data retrieval call binding the contract method 0x951303f5.

Solidity: function withdrawableAmount() pure returns(uint256)

func (*SubnetContractCallerSession) WithdrawalEnabled

func (_SubnetContract *SubnetContractCallerSession) WithdrawalEnabled() (bool, error)

WithdrawalEnabled is a free data retrieval call binding the contract method 0xf8ea5daf.

Solidity: function withdrawalEnabled() view returns(bool)

type SubnetContractFilterer

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

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

func NewSubnetContractFilterer

func NewSubnetContractFilterer(address common.Address, filterer bind.ContractFilterer) (*SubnetContractFilterer, error)

NewSubnetContractFilterer creates a new log filterer instance of SubnetContract, bound to a specific deployed contract.

func (*SubnetContractFilterer) FilterInitialized

func (_SubnetContract *SubnetContractFilterer) FilterInitialized(opts *bind.FilterOpts) (*SubnetContractInitializedIterator, error)

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

Solidity: event Initialized(uint64 version)

func (*SubnetContractFilterer) FilterOwnershipTransferred

func (_SubnetContract *SubnetContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*SubnetContractOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*SubnetContractFilterer) FilterRoleAdminChanged

func (_SubnetContract *SubnetContractFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*SubnetContractRoleAdminChangedIterator, 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 (*SubnetContractFilterer) FilterRoleGranted

func (_SubnetContract *SubnetContractFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SubnetContractRoleGrantedIterator, 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 (*SubnetContractFilterer) FilterRoleRevoked

func (_SubnetContract *SubnetContractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*SubnetContractRoleRevokedIterator, 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 (*SubnetContractFilterer) FilterStakeEvent

func (_SubnetContract *SubnetContractFilterer) FilterStakeEvent(opts *bind.FilterOpts, account []common.Address) (*SubnetContractStakeEventIterator, error)

FilterStakeEvent is a free log retrieval operation binding the contract event 0x278a86cadccd34d129a359367ad378aae3808cfbe93b8a7f9d4fce6638cd2b87.

Solidity: event StakeEvent(address indexed account, (uint256,uint256) stake)

func (*SubnetContractFilterer) FilterUnStakeEvent

func (_SubnetContract *SubnetContractFilterer) FilterUnStakeEvent(opts *bind.FilterOpts, account []common.Address) (*SubnetContractUnStakeEventIterator, error)

FilterUnStakeEvent is a free log retrieval operation binding the contract event 0xb8075e85c8e8c717443eca24e396af055e00019ff8c88d1cf27aeb39cba8353f.

Solidity: event UnStakeEvent(address indexed account, (uint256,uint256) stake)

func (*SubnetContractFilterer) ParseInitialized

func (_SubnetContract *SubnetContractFilterer) ParseInitialized(log types.Log) (*SubnetContractInitialized, error)

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

Solidity: event Initialized(uint64 version)

func (*SubnetContractFilterer) ParseOwnershipTransferred

func (_SubnetContract *SubnetContractFilterer) ParseOwnershipTransferred(log types.Log) (*SubnetContractOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*SubnetContractFilterer) ParseRoleAdminChanged

func (_SubnetContract *SubnetContractFilterer) ParseRoleAdminChanged(log types.Log) (*SubnetContractRoleAdminChanged, 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 (*SubnetContractFilterer) ParseRoleGranted

func (_SubnetContract *SubnetContractFilterer) ParseRoleGranted(log types.Log) (*SubnetContractRoleGranted, 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 (*SubnetContractFilterer) ParseRoleRevoked

func (_SubnetContract *SubnetContractFilterer) ParseRoleRevoked(log types.Log) (*SubnetContractRoleRevoked, 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 (*SubnetContractFilterer) ParseStakeEvent

func (_SubnetContract *SubnetContractFilterer) ParseStakeEvent(log types.Log) (*SubnetContractStakeEvent, error)

ParseStakeEvent is a log parse operation binding the contract event 0x278a86cadccd34d129a359367ad378aae3808cfbe93b8a7f9d4fce6638cd2b87.

Solidity: event StakeEvent(address indexed account, (uint256,uint256) stake)

func (*SubnetContractFilterer) ParseUnStakeEvent

func (_SubnetContract *SubnetContractFilterer) ParseUnStakeEvent(log types.Log) (*SubnetContractUnStakeEvent, error)

ParseUnStakeEvent is a log parse operation binding the contract event 0xb8075e85c8e8c717443eca24e396af055e00019ff8c88d1cf27aeb39cba8353f.

Solidity: event UnStakeEvent(address indexed account, (uint256,uint256) stake)

func (*SubnetContractFilterer) WatchInitialized

func (_SubnetContract *SubnetContractFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SubnetContractInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint64 version)

func (*SubnetContractFilterer) WatchOwnershipTransferred

func (_SubnetContract *SubnetContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *SubnetContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*SubnetContractFilterer) WatchRoleAdminChanged

func (_SubnetContract *SubnetContractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *SubnetContractRoleAdminChanged, 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 (*SubnetContractFilterer) WatchRoleGranted

func (_SubnetContract *SubnetContractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *SubnetContractRoleGranted, 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 (*SubnetContractFilterer) WatchRoleRevoked

func (_SubnetContract *SubnetContractFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *SubnetContractRoleRevoked, 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 (*SubnetContractFilterer) WatchStakeEvent

func (_SubnetContract *SubnetContractFilterer) WatchStakeEvent(opts *bind.WatchOpts, sink chan<- *SubnetContractStakeEvent, account []common.Address) (event.Subscription, error)

WatchStakeEvent is a free log subscription operation binding the contract event 0x278a86cadccd34d129a359367ad378aae3808cfbe93b8a7f9d4fce6638cd2b87.

Solidity: event StakeEvent(address indexed account, (uint256,uint256) stake)

func (*SubnetContractFilterer) WatchUnStakeEvent

func (_SubnetContract *SubnetContractFilterer) WatchUnStakeEvent(opts *bind.WatchOpts, sink chan<- *SubnetContractUnStakeEvent, account []common.Address) (event.Subscription, error)

WatchUnStakeEvent is a free log subscription operation binding the contract event 0xb8075e85c8e8c717443eca24e396af055e00019ff8c88d1cf27aeb39cba8353f.

Solidity: event UnStakeEvent(address indexed account, (uint256,uint256) stake)

type SubnetContractInitialized

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

SubnetContractInitialized represents a Initialized event raised by the SubnetContract contract.

type SubnetContractInitializedIterator

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

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

func (*SubnetContractInitializedIterator) Close

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

func (*SubnetContractInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SubnetContractInitializedIterator) 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 SubnetContractOwnershipTransferred

type SubnetContractOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

SubnetContractOwnershipTransferred represents a OwnershipTransferred event raised by the SubnetContract contract.

type SubnetContractOwnershipTransferredIterator

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

SubnetContractOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the SubnetContract contract.

func (*SubnetContractOwnershipTransferredIterator) Close

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

func (*SubnetContractOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SubnetContractOwnershipTransferredIterator) 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 SubnetContractRaw

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

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

func (*SubnetContractRaw) Call

func (_SubnetContract *SubnetContractRaw) 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 (*SubnetContractRaw) Transact

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

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

func (*SubnetContractRaw) Transfer

func (_SubnetContract *SubnetContractRaw) 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 SubnetContractRoleAdminChanged

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

SubnetContractRoleAdminChanged represents a RoleAdminChanged event raised by the SubnetContract contract.

type SubnetContractRoleAdminChangedIterator

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

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

func (*SubnetContractRoleAdminChangedIterator) Close

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

func (*SubnetContractRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SubnetContractRoleAdminChangedIterator) 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 SubnetContractRoleGranted

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

SubnetContractRoleGranted represents a RoleGranted event raised by the SubnetContract contract.

type SubnetContractRoleGrantedIterator

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

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

func (*SubnetContractRoleGrantedIterator) Close

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

func (*SubnetContractRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SubnetContractRoleGrantedIterator) 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 SubnetContractRoleRevoked

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

SubnetContractRoleRevoked represents a RoleRevoked event raised by the SubnetContract contract.

type SubnetContractRoleRevokedIterator

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

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

func (*SubnetContractRoleRevokedIterator) Close

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

func (*SubnetContractRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SubnetContractRoleRevokedIterator) 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 SubnetContractSession

type SubnetContractSession struct {
	Contract     *SubnetContract   // 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
}

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

func (*SubnetContractSession) AddressInfo

func (_SubnetContract *SubnetContractSession) AddressInfo(addr common.Address) (struct {
	PrevCycleReward *big.Int
	AllTimeReward   *big.Int
	Info            []SubnetLicenseInfo
	Claimable       *big.Int
}, error)

AddressInfo is a free data retrieval call binding the contract method 0x2126fcb2.

Solidity: function addressInfo(address addr) view returns(uint256 prevCycleReward, uint256 allTimeReward, (uint256,uint256,bool,bytes)[] info, uint256 claimable)

func (*SubnetContractSession) ClaimReward

func (_SubnetContract *SubnetContractSession) ClaimReward(claim SubnetClaim) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0x25f3a9c0.

Solidity: function claimReward((bytes,(bytes16,uint256)[],uint256,uint256,(uint256,uint256)[],address,bytes,uint256) claim) returns()

func (*SubnetContractSession) DEFAULTADMINROLE

func (_SubnetContract *SubnetContractSession) 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 (*SubnetContractSession) EnableWithdrawal

func (_SubnetContract *SubnetContractSession) EnableWithdrawal(_enabled bool) (*types.Transaction, error)

EnableWithdrawal is a paid mutator transaction binding the contract method 0x5636548f.

Solidity: function enableWithdrawal(bool _enabled) returns()

func (*SubnetContractSession) GetClaimHash

func (_SubnetContract *SubnetContractSession) GetClaimHash(claim SubnetClaim) ([32]byte, error)

GetClaimHash is a free data retrieval call binding the contract method 0xf6b85a9a.

Solidity: function getClaimHash((bytes,(bytes16,uint256)[],uint256,uint256,(uint256,uint256)[],address,bytes,uint256) claim) view returns(bytes32)

func (*SubnetContractSession) GetMinSignerCount

func (_SubnetContract *SubnetContractSession) GetMinSignerCount(cycleNumLicences *big.Int) (*big.Int, error)

GetMinSignerCount is a free data retrieval call binding the contract method 0x9cee2fe3.

Solidity: function getMinSignerCount(uint256 cycleNumLicences) pure returns(uint256)

func (*SubnetContractSession) GetRoleAdmin

func (_SubnetContract *SubnetContractSession) 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 (*SubnetContractSession) GetSubnetAccountBalance

func (_SubnetContract *SubnetContractSession) GetSubnetAccountBalance(subnetId [16]byte, addr common.Address) (*big.Int, error)

GetSubnetAccountBalance is a free data retrieval call binding the contract method 0x09774aaf.

Solidity: function getSubnetAccountBalance(bytes16 subnetId, address addr) view returns(uint256)

func (*SubnetContractSession) GrantRole

func (_SubnetContract *SubnetContractSession) 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 (*SubnetContractSession) HasRole

func (_SubnetContract *SubnetContractSession) 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 (*SubnetContractSession) HashRewardData

func (_SubnetContract *SubnetContractSession) HashRewardData(claimData []SubnetRewardClaimData) ([32]byte, error)

HashRewardData is a free data retrieval call binding the contract method 0x5a9a7b87.

Solidity: function hashRewardData((bytes16,uint256)[] claimData) pure returns(bytes32 hash)

func (*SubnetContractSession) Initialize

func (_SubnetContract *SubnetContractSession) Initialize(_network common.Address, tokenAddress common.Address, xTokenAddress common.Address, _sentryContract common.Address, _validatorNodeContract common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _network, address tokenAddress, address xTokenAddress, address _sentryContract, address _validatorNodeContract) returns()

func (*SubnetContractSession) Locked

func (_SubnetContract *SubnetContractSession) Locked() (bool, error)

Locked is a free data retrieval call binding the contract method 0xcf309012.

Solidity: function locked() view returns(bool)

func (*SubnetContractSession) MinStakable

func (_SubnetContract *SubnetContractSession) MinStakable() (*big.Int, error)

MinStakable is a free data retrieval call binding the contract method 0xc0d41476.

Solidity: function minStakable() view returns(uint256)

func (*SubnetContractSession) Network

func (_SubnetContract *SubnetContractSession) Network() (common.Address, error)

Network is a free data retrieval call binding the contract method 0x6739afca.

Solidity: function network() view returns(address)

func (*SubnetContractSession) Owner

func (_SubnetContract *SubnetContractSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*SubnetContractSession) ProcessedClaim

func (_SubnetContract *SubnetContractSession) ProcessedClaim(arg0 *big.Int, arg1 []byte, arg2 *big.Int) (bool, error)

ProcessedClaim is a free data retrieval call binding the contract method 0x2ad6f7f6.

Solidity: function processedClaim(uint256 , bytes , uint256 ) view returns(bool)

func (*SubnetContractSession) ProofProviderRewards

func (_SubnetContract *SubnetContractSession) ProofProviderRewards(arg0 common.Address) (*big.Int, error)

ProofProviderRewards is a free data retrieval call binding the contract method 0x58f25d13.

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

func (*SubnetContractSession) RenounceOwnership

func (_SubnetContract *SubnetContractSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*SubnetContractSession) RenounceRole

func (_SubnetContract *SubnetContractSession) 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 (*SubnetContractSession) RevokeRole

func (_SubnetContract *SubnetContractSession) 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 (*SubnetContractSession) SentryBaseReward

func (_SubnetContract *SubnetContractSession) SentryBaseReward() (*big.Int, error)

SentryBaseReward is a free data retrieval call binding the contract method 0x25a772a4.

Solidity: function sentryBaseReward() view returns(uint256)

func (*SubnetContractSession) SentryContract

func (_SubnetContract *SubnetContractSession) SentryContract() (common.Address, error)

SentryContract is a free data retrieval call binding the contract method 0xdbca5c52.

Solidity: function sentryContract() view returns(address)

func (*SubnetContractSession) SentryCycleRewards

func (_SubnetContract *SubnetContractSession) SentryCycleRewards(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

SentryCycleRewards is a free data retrieval call binding the contract method 0x7773b6e9.

Solidity: function sentryCycleRewards(address , uint256 ) view returns(uint256)

func (*SubnetContractSession) SentryLicenseRevenue

func (_SubnetContract *SubnetContractSession) SentryLicenseRevenue(arg0 *big.Int) (*big.Int, error)

SentryLicenseRevenue is a free data retrieval call binding the contract method 0x37b560f3.

Solidity: function sentryLicenseRevenue(uint256 ) view returns(uint256)

func (*SubnetContractSession) SetMinStakable

func (_SubnetContract *SubnetContractSession) SetMinStakable(_minStakable *big.Int) (*types.Transaction, error)

SetMinStakable is a paid mutator transaction binding the contract method 0xf65ff7bd.

Solidity: function setMinStakable(uint256 _minStakable) returns()

func (*SubnetContractSession) SetNetworkAddress

func (_SubnetContract *SubnetContractSession) SetNetworkAddress(add common.Address) (*types.Transaction, error)

SetNetworkAddress is a paid mutator transaction binding the contract method 0x05f5dc95.

Solidity: function setNetworkAddress(address add) returns()

func (*SubnetContractSession) SetSentryBaseReward

func (_SubnetContract *SubnetContractSession) SetSentryBaseReward(_baseReward *big.Int) (*types.Transaction, error)

SetSentryBaseReward is a paid mutator transaction binding the contract method 0x1227d71a.

Solidity: function setSentryBaseReward(uint256 _baseReward) returns()

func (*SubnetContractSession) SetSentryNodeAddress

func (_SubnetContract *SubnetContractSession) SetSentryNodeAddress(add common.Address) (*types.Transaction, error)

SetSentryNodeAddress is a paid mutator transaction binding the contract method 0x1e7fc3ea.

Solidity: function setSentryNodeAddress(address add) returns()

func (*SubnetContractSession) SetTokenAddress

func (_SubnetContract *SubnetContractSession) SetTokenAddress(add common.Address) (*types.Transaction, error)

SetTokenAddress is a paid mutator transaction binding the contract method 0x26a4e8d2.

Solidity: function setTokenAddress(address add) returns()

func (*SubnetContractSession) SetValidatorBaseReward

func (_SubnetContract *SubnetContractSession) SetValidatorBaseReward(_baseReward *big.Int) (*types.Transaction, error)

SetValidatorBaseReward is a paid mutator transaction binding the contract method 0x8b043d02.

Solidity: function setValidatorBaseReward(uint256 _baseReward) returns()

func (*SubnetContractSession) SetValidatorNodeAddress

func (_SubnetContract *SubnetContractSession) SetValidatorNodeAddress(add common.Address) (*types.Transaction, error)

SetValidatorNodeAddress is a paid mutator transaction binding the contract method 0xb791bf39.

Solidity: function setValidatorNodeAddress(address add) returns()

func (*SubnetContractSession) Stake

func (_SubnetContract *SubnetContractSession) Stake(subnetId [16]byte, amount *big.Int) (*types.Transaction, error)

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

Solidity: function stake(bytes16 subnetId, uint256 amount) returns()

func (*SubnetContractSession) StakeAddresses

func (_SubnetContract *SubnetContractSession) StakeAddresses(arg0 common.Address) (common.Address, error)

StakeAddresses is a free data retrieval call binding the contract method 0x6a7cce86.

Solidity: function stakeAddresses(address ) view returns(address)

func (*SubnetContractSession) SubnetBalance

func (_SubnetContract *SubnetContractSession) SubnetBalance(subnetId [16]byte) (*big.Int, error)

SubnetBalance is a free data retrieval call binding the contract method 0x4d1e4062.

Solidity: function subnetBalance(bytes16 subnetId) view returns(uint256)

func (*SubnetContractSession) SubnetBalances

func (_SubnetContract *SubnetContractSession) SubnetBalances(arg0 [16]byte, arg1 common.Address, arg2 *big.Int) (struct {
	Amount    *big.Int
	Timestamp *big.Int
}, error)

SubnetBalances is a free data retrieval call binding the contract method 0x5a50b09b.

Solidity: function subnetBalances(bytes16 , address , uint256 ) view returns(uint256 amount, uint256 timestamp)

func (*SubnetContractSession) SubnetCredit

func (_SubnetContract *SubnetContractSession) SubnetCredit(arg0 [16]byte) (*big.Int, error)

SubnetCredit is a free data retrieval call binding the contract method 0x8d73c2fa.

Solidity: function subnetCredit(bytes16 ) view returns(uint256)

func (*SubnetContractSession) SubnetDebt

func (_SubnetContract *SubnetContractSession) SubnetDebt(arg0 [16]byte) (*big.Int, error)

SubnetDebt is a free data retrieval call binding the contract method 0xe9af524e.

Solidity: function subnetDebt(bytes16 ) view returns(uint256)

func (*SubnetContractSession) SubnetStakerBalances

func (_SubnetContract *SubnetContractSession) SubnetStakerBalances(arg0 [16]byte, arg1 common.Address) (*big.Int, error)

SubnetStakerBalances is a free data retrieval call binding the contract method 0x78d25664.

Solidity: function subnetStakerBalances(bytes16 , address ) view returns(uint256)

func (*SubnetContractSession) SupportsInterface

func (_SubnetContract *SubnetContractSession) 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 (*SubnetContractSession) TransferOwnership

func (_SubnetContract *SubnetContractSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*SubnetContractSession) UnStake

func (_SubnetContract *SubnetContractSession) UnStake(subnetId [16]byte) (*types.Transaction, error)

UnStake is a paid mutator transaction binding the contract method 0x7fd72127.

Solidity: function unStake(bytes16 subnetId) returns()

func (*SubnetContractSession) UnstakeOrders

func (_SubnetContract *SubnetContractSession) UnstakeOrders(arg0 common.Address, arg1 []byte) (int32, error)

UnstakeOrders is a free data retrieval call binding the contract method 0x9d922aca.

Solidity: function unstakeOrders(address , bytes ) view returns(int32)

func (*SubnetContractSession) ValidatorBaseReward

func (_SubnetContract *SubnetContractSession) ValidatorBaseReward() (*big.Int, error)

ValidatorBaseReward is a free data retrieval call binding the contract method 0x0063b8dd.

Solidity: function validatorBaseReward() view returns(uint256)

func (*SubnetContractSession) ValidatorCycleRewards

func (_SubnetContract *SubnetContractSession) ValidatorCycleRewards(arg0 common.Address, arg1 *big.Int) (*big.Int, error)

ValidatorCycleRewards is a free data retrieval call binding the contract method 0xbf19eb0c.

Solidity: function validatorCycleRewards(address , uint256 ) view returns(uint256)

func (*SubnetContractSession) ValidatorNodeContract

func (_SubnetContract *SubnetContractSession) ValidatorNodeContract() (common.Address, error)

ValidatorNodeContract is a free data retrieval call binding the contract method 0x71f2053b.

Solidity: function validatorNodeContract() view returns(address)

func (*SubnetContractSession) ValidatorRewards

func (_SubnetContract *SubnetContractSession) ValidatorRewards(arg0 common.Address) (*big.Int, error)

ValidatorRewards is a free data retrieval call binding the contract method 0xb1845c56.

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

func (*SubnetContractSession) VerifyClaim

func (_SubnetContract *SubnetContractSession) VerifyClaim(claim SubnetClaim) (bool, [32]byte, error)

VerifyClaim is a free data retrieval call binding the contract method 0x8b2ed4c8.

Solidity: function verifyClaim((bytes,(bytes16,uint256)[],uint256,uint256,(uint256,uint256)[],address,bytes,uint256) claim) view returns(bool, bytes32)

func (*SubnetContractSession) WithdrawableAmount

func (_SubnetContract *SubnetContractSession) WithdrawableAmount() (*big.Int, error)

WithdrawableAmount is a free data retrieval call binding the contract method 0x951303f5.

Solidity: function withdrawableAmount() pure returns(uint256)

func (*SubnetContractSession) WithdrawalEnabled

func (_SubnetContract *SubnetContractSession) WithdrawalEnabled() (bool, error)

WithdrawalEnabled is a free data retrieval call binding the contract method 0xf8ea5daf.

Solidity: function withdrawalEnabled() view returns(bool)

type SubnetContractStakeEvent

type SubnetContractStakeEvent struct {
	Account common.Address
	Stake   SubnetStakeStruct
	Raw     types.Log // Blockchain specific contextual infos
}

SubnetContractStakeEvent represents a StakeEvent event raised by the SubnetContract contract.

type SubnetContractStakeEventIterator

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

SubnetContractStakeEventIterator is returned from FilterStakeEvent and is used to iterate over the raw logs and unpacked data for StakeEvent events raised by the SubnetContract contract.

func (*SubnetContractStakeEventIterator) Close

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

func (*SubnetContractStakeEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SubnetContractStakeEventIterator) 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 SubnetContractTransactor

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

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

func NewSubnetContractTransactor

func NewSubnetContractTransactor(address common.Address, transactor bind.ContractTransactor) (*SubnetContractTransactor, error)

NewSubnetContractTransactor creates a new write-only instance of SubnetContract, bound to a specific deployed contract.

func (*SubnetContractTransactor) ClaimReward

func (_SubnetContract *SubnetContractTransactor) ClaimReward(opts *bind.TransactOpts, claim SubnetClaim) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0x25f3a9c0.

Solidity: function claimReward((bytes,(bytes16,uint256)[],uint256,uint256,(uint256,uint256)[],address,bytes,uint256) claim) returns()

func (*SubnetContractTransactor) EnableWithdrawal

func (_SubnetContract *SubnetContractTransactor) EnableWithdrawal(opts *bind.TransactOpts, _enabled bool) (*types.Transaction, error)

EnableWithdrawal is a paid mutator transaction binding the contract method 0x5636548f.

Solidity: function enableWithdrawal(bool _enabled) returns()

func (*SubnetContractTransactor) GrantRole

func (_SubnetContract *SubnetContractTransactor) 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 (*SubnetContractTransactor) Initialize

func (_SubnetContract *SubnetContractTransactor) Initialize(opts *bind.TransactOpts, _network common.Address, tokenAddress common.Address, xTokenAddress common.Address, _sentryContract common.Address, _validatorNodeContract common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _network, address tokenAddress, address xTokenAddress, address _sentryContract, address _validatorNodeContract) returns()

func (*SubnetContractTransactor) RenounceOwnership

func (_SubnetContract *SubnetContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*SubnetContractTransactor) RenounceRole

func (_SubnetContract *SubnetContractTransactor) 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 (*SubnetContractTransactor) RevokeRole

func (_SubnetContract *SubnetContractTransactor) 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 (*SubnetContractTransactor) SetMinStakable

func (_SubnetContract *SubnetContractTransactor) SetMinStakable(opts *bind.TransactOpts, _minStakable *big.Int) (*types.Transaction, error)

SetMinStakable is a paid mutator transaction binding the contract method 0xf65ff7bd.

Solidity: function setMinStakable(uint256 _minStakable) returns()

func (*SubnetContractTransactor) SetNetworkAddress

func (_SubnetContract *SubnetContractTransactor) SetNetworkAddress(opts *bind.TransactOpts, add common.Address) (*types.Transaction, error)

SetNetworkAddress is a paid mutator transaction binding the contract method 0x05f5dc95.

Solidity: function setNetworkAddress(address add) returns()

func (*SubnetContractTransactor) SetSentryBaseReward

func (_SubnetContract *SubnetContractTransactor) SetSentryBaseReward(opts *bind.TransactOpts, _baseReward *big.Int) (*types.Transaction, error)

SetSentryBaseReward is a paid mutator transaction binding the contract method 0x1227d71a.

Solidity: function setSentryBaseReward(uint256 _baseReward) returns()

func (*SubnetContractTransactor) SetSentryNodeAddress

func (_SubnetContract *SubnetContractTransactor) SetSentryNodeAddress(opts *bind.TransactOpts, add common.Address) (*types.Transaction, error)

SetSentryNodeAddress is a paid mutator transaction binding the contract method 0x1e7fc3ea.

Solidity: function setSentryNodeAddress(address add) returns()

func (*SubnetContractTransactor) SetTokenAddress

func (_SubnetContract *SubnetContractTransactor) SetTokenAddress(opts *bind.TransactOpts, add common.Address) (*types.Transaction, error)

SetTokenAddress is a paid mutator transaction binding the contract method 0x26a4e8d2.

Solidity: function setTokenAddress(address add) returns()

func (*SubnetContractTransactor) SetValidatorBaseReward

func (_SubnetContract *SubnetContractTransactor) SetValidatorBaseReward(opts *bind.TransactOpts, _baseReward *big.Int) (*types.Transaction, error)

SetValidatorBaseReward is a paid mutator transaction binding the contract method 0x8b043d02.

Solidity: function setValidatorBaseReward(uint256 _baseReward) returns()

func (*SubnetContractTransactor) SetValidatorNodeAddress

func (_SubnetContract *SubnetContractTransactor) SetValidatorNodeAddress(opts *bind.TransactOpts, add common.Address) (*types.Transaction, error)

SetValidatorNodeAddress is a paid mutator transaction binding the contract method 0xb791bf39.

Solidity: function setValidatorNodeAddress(address add) returns()

func (*SubnetContractTransactor) Stake

func (_SubnetContract *SubnetContractTransactor) Stake(opts *bind.TransactOpts, subnetId [16]byte, amount *big.Int) (*types.Transaction, error)

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

Solidity: function stake(bytes16 subnetId, uint256 amount) returns()

func (*SubnetContractTransactor) TransferOwnership

func (_SubnetContract *SubnetContractTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*SubnetContractTransactor) UnStake

func (_SubnetContract *SubnetContractTransactor) UnStake(opts *bind.TransactOpts, subnetId [16]byte) (*types.Transaction, error)

UnStake is a paid mutator transaction binding the contract method 0x7fd72127.

Solidity: function unStake(bytes16 subnetId) returns()

type SubnetContractTransactorRaw

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

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

func (*SubnetContractTransactorRaw) Transact

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

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

func (*SubnetContractTransactorRaw) Transfer

func (_SubnetContract *SubnetContractTransactorRaw) 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 SubnetContractTransactorSession

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

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

func (*SubnetContractTransactorSession) ClaimReward

func (_SubnetContract *SubnetContractTransactorSession) ClaimReward(claim SubnetClaim) (*types.Transaction, error)

ClaimReward is a paid mutator transaction binding the contract method 0x25f3a9c0.

Solidity: function claimReward((bytes,(bytes16,uint256)[],uint256,uint256,(uint256,uint256)[],address,bytes,uint256) claim) returns()

func (*SubnetContractTransactorSession) EnableWithdrawal

func (_SubnetContract *SubnetContractTransactorSession) EnableWithdrawal(_enabled bool) (*types.Transaction, error)

EnableWithdrawal is a paid mutator transaction binding the contract method 0x5636548f.

Solidity: function enableWithdrawal(bool _enabled) returns()

func (*SubnetContractTransactorSession) GrantRole

func (_SubnetContract *SubnetContractTransactorSession) 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 (*SubnetContractTransactorSession) Initialize

func (_SubnetContract *SubnetContractTransactorSession) Initialize(_network common.Address, tokenAddress common.Address, xTokenAddress common.Address, _sentryContract common.Address, _validatorNodeContract common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _network, address tokenAddress, address xTokenAddress, address _sentryContract, address _validatorNodeContract) returns()

func (*SubnetContractTransactorSession) RenounceOwnership

func (_SubnetContract *SubnetContractTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*SubnetContractTransactorSession) RenounceRole

func (_SubnetContract *SubnetContractTransactorSession) 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 (*SubnetContractTransactorSession) RevokeRole

func (_SubnetContract *SubnetContractTransactorSession) 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 (*SubnetContractTransactorSession) SetMinStakable

func (_SubnetContract *SubnetContractTransactorSession) SetMinStakable(_minStakable *big.Int) (*types.Transaction, error)

SetMinStakable is a paid mutator transaction binding the contract method 0xf65ff7bd.

Solidity: function setMinStakable(uint256 _minStakable) returns()

func (*SubnetContractTransactorSession) SetNetworkAddress

func (_SubnetContract *SubnetContractTransactorSession) SetNetworkAddress(add common.Address) (*types.Transaction, error)

SetNetworkAddress is a paid mutator transaction binding the contract method 0x05f5dc95.

Solidity: function setNetworkAddress(address add) returns()

func (*SubnetContractTransactorSession) SetSentryBaseReward

func (_SubnetContract *SubnetContractTransactorSession) SetSentryBaseReward(_baseReward *big.Int) (*types.Transaction, error)

SetSentryBaseReward is a paid mutator transaction binding the contract method 0x1227d71a.

Solidity: function setSentryBaseReward(uint256 _baseReward) returns()

func (*SubnetContractTransactorSession) SetSentryNodeAddress

func (_SubnetContract *SubnetContractTransactorSession) SetSentryNodeAddress(add common.Address) (*types.Transaction, error)

SetSentryNodeAddress is a paid mutator transaction binding the contract method 0x1e7fc3ea.

Solidity: function setSentryNodeAddress(address add) returns()

func (*SubnetContractTransactorSession) SetTokenAddress

func (_SubnetContract *SubnetContractTransactorSession) SetTokenAddress(add common.Address) (*types.Transaction, error)

SetTokenAddress is a paid mutator transaction binding the contract method 0x26a4e8d2.

Solidity: function setTokenAddress(address add) returns()

func (*SubnetContractTransactorSession) SetValidatorBaseReward

func (_SubnetContract *SubnetContractTransactorSession) SetValidatorBaseReward(_baseReward *big.Int) (*types.Transaction, error)

SetValidatorBaseReward is a paid mutator transaction binding the contract method 0x8b043d02.

Solidity: function setValidatorBaseReward(uint256 _baseReward) returns()

func (*SubnetContractTransactorSession) SetValidatorNodeAddress

func (_SubnetContract *SubnetContractTransactorSession) SetValidatorNodeAddress(add common.Address) (*types.Transaction, error)

SetValidatorNodeAddress is a paid mutator transaction binding the contract method 0xb791bf39.

Solidity: function setValidatorNodeAddress(address add) returns()

func (*SubnetContractTransactorSession) Stake

func (_SubnetContract *SubnetContractTransactorSession) Stake(subnetId [16]byte, amount *big.Int) (*types.Transaction, error)

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

Solidity: function stake(bytes16 subnetId, uint256 amount) returns()

func (*SubnetContractTransactorSession) TransferOwnership

func (_SubnetContract *SubnetContractTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

func (*SubnetContractTransactorSession) UnStake

func (_SubnetContract *SubnetContractTransactorSession) UnStake(subnetId [16]byte) (*types.Transaction, error)

UnStake is a paid mutator transaction binding the contract method 0x7fd72127.

Solidity: function unStake(bytes16 subnetId) returns()

type SubnetContractUnStakeEvent

type SubnetContractUnStakeEvent struct {
	Account common.Address
	Stake   SubnetStakeStruct
	Raw     types.Log // Blockchain specific contextual infos
}

SubnetContractUnStakeEvent represents a UnStakeEvent event raised by the SubnetContract contract.

type SubnetContractUnStakeEventIterator

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

SubnetContractUnStakeEventIterator is returned from FilterUnStakeEvent and is used to iterate over the raw logs and unpacked data for UnStakeEvent events raised by the SubnetContract contract.

func (*SubnetContractUnStakeEventIterator) Close

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

func (*SubnetContractUnStakeEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SubnetContractUnStakeEventIterator) 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 SubnetLicenseInfo

type SubnetLicenseInfo struct {
	Id          *big.Int
	Earned      *big.Int
	IsValidator bool
	DelegatedTo []byte
}

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

type SubnetRewardClaimData

type SubnetRewardClaimData struct {
	SubnetId [16]byte
	Amount   *big.Int
}

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

type SubnetStakeStruct

type SubnetStakeStruct struct {
	Amount    *big.Int
	Timestamp *big.Int
}

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

Jump to

Keyboard shortcuts

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