network

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 NetworkContractABI = NetworkContractMetaData.ABI

NetworkContractABI is the input ABI used to generate the binding from. Deprecated: Use NetworkContractMetaData.ABI instead.

View Source
var NetworkContractMetaData = &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\":false,\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"PriceUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MESSAGE_PRICE_MANAGER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"blockTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"cycleMessagePrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getChainInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"startTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"startBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentBlock\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentEpoch\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentCycle\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"structChainInfo\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentCycle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrentMessagePrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_block\",\"type\":\"uint256\"}],\"name\":\"getCurrentYear\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getCycle\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"blockNumber\",\"type\":\"uint256\"}],\"name\":\"getEpoch\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"}],\"name\":\"getMessagePrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStartBlock\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getStartTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_blockTime\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_startBlock\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"locked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"priceHistory\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"from\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"to\",\"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\":[{\"internalType\":\"uint256\",\"name\":\"cycle\",\"type\":\"uint256\"}],\"name\":\"searchPriceHistory\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"}],\"name\":\"setMessagePrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_blockNum\",\"type\":\"uint256\"}],\"name\":\"setStartBlock\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"startBlock\",\"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\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

NetworkContractMetaData contains all meta data concerning the NetworkContract contract.

Functions

This section is empty.

Types

type ChainInfo

type ChainInfo struct {
	StartTime    *big.Int
	StartBlock   *big.Int
	CurrentBlock *big.Int
	CurrentEpoch *big.Int
	CurrentCycle *big.Int
	ChainId      *big.Int
}

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

type NetworkContract

type NetworkContract struct {
	NetworkContractCaller     // Read-only binding to the contract
	NetworkContractTransactor // Write-only binding to the contract
	NetworkContractFilterer   // Log filterer for contract events
}

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

func NewNetworkContract

func NewNetworkContract(address common.Address, backend bind.ContractBackend) (*NetworkContract, error)

NewNetworkContract creates a new instance of NetworkContract, bound to a specific deployed contract.

type NetworkContractCaller

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

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

func NewNetworkContractCaller

func NewNetworkContractCaller(address common.Address, caller bind.ContractCaller) (*NetworkContractCaller, error)

NewNetworkContractCaller creates a new read-only instance of NetworkContract, bound to a specific deployed contract.

func (*NetworkContractCaller) BlockTime

func (_NetworkContract *NetworkContractCaller) BlockTime(opts *bind.CallOpts) (*big.Int, error)

BlockTime is a free data retrieval call binding the contract method 0x48b15166.

Solidity: function blockTime() view returns(uint256)

func (*NetworkContractCaller) CycleMessagePrice

func (_NetworkContract *NetworkContractCaller) CycleMessagePrice(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

CycleMessagePrice is a free data retrieval call binding the contract method 0x28240181.

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

func (*NetworkContractCaller) DEFAULTADMINROLE

func (_NetworkContract *NetworkContractCaller) 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 (*NetworkContractCaller) GetChainInfo

func (_NetworkContract *NetworkContractCaller) GetChainInfo(opts *bind.CallOpts) (ChainInfo, error)

GetChainInfo is a free data retrieval call binding the contract method 0x21cae483.

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

func (*NetworkContractCaller) GetCurrentBlockNumber

func (_NetworkContract *NetworkContractCaller) GetCurrentBlockNumber(opts *bind.CallOpts) (*big.Int, error)

GetCurrentBlockNumber is a free data retrieval call binding the contract method 0x6fd902e1.

Solidity: function getCurrentBlockNumber() view returns(uint256)

func (*NetworkContractCaller) GetCurrentCycle

func (_NetworkContract *NetworkContractCaller) GetCurrentCycle(opts *bind.CallOpts) (*big.Int, error)

GetCurrentCycle is a free data retrieval call binding the contract method 0xbe26ed7f.

Solidity: function getCurrentCycle() view returns(uint256)

func (*NetworkContractCaller) GetCurrentEpoch

func (_NetworkContract *NetworkContractCaller) GetCurrentEpoch(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function getCurrentEpoch() view returns(uint256)

func (*NetworkContractCaller) GetCurrentMessagePrice

func (_NetworkContract *NetworkContractCaller) GetCurrentMessagePrice(opts *bind.CallOpts) (*big.Int, error)

GetCurrentMessagePrice is a free data retrieval call binding the contract method 0x6d653312.

Solidity: function getCurrentMessagePrice() view returns(uint256)

func (*NetworkContractCaller) GetCurrentYear

func (_NetworkContract *NetworkContractCaller) GetCurrentYear(opts *bind.CallOpts, _block *big.Int) (*big.Int, error)

GetCurrentYear is a free data retrieval call binding the contract method 0x318b2184.

Solidity: function getCurrentYear(uint256 _block) view returns(uint256)

func (*NetworkContractCaller) GetCycle

func (_NetworkContract *NetworkContractCaller) GetCycle(opts *bind.CallOpts, blockNumber *big.Int) (*big.Int, error)

GetCycle is a free data retrieval call binding the contract method 0x2026f638.

Solidity: function getCycle(uint256 blockNumber) view returns(uint256)

func (*NetworkContractCaller) GetEpoch

func (_NetworkContract *NetworkContractCaller) GetEpoch(opts *bind.CallOpts, blockNumber *big.Int) (*big.Int, error)

GetEpoch is a free data retrieval call binding the contract method 0xbc0bc6ba.

Solidity: function getEpoch(uint256 blockNumber) view returns(uint256)

func (*NetworkContractCaller) GetMessagePrice

func (_NetworkContract *NetworkContractCaller) GetMessagePrice(opts *bind.CallOpts, cycle *big.Int) (*big.Int, error)

GetMessagePrice is a free data retrieval call binding the contract method 0x853ceffa.

Solidity: function getMessagePrice(uint256 cycle) view returns(uint256)

func (*NetworkContractCaller) GetRoleAdmin

func (_NetworkContract *NetworkContractCaller) 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 (*NetworkContractCaller) GetStartBlock

func (_NetworkContract *NetworkContractCaller) GetStartBlock(opts *bind.CallOpts) (*big.Int, error)

GetStartBlock is a free data retrieval call binding the contract method 0xa5f18c01.

Solidity: function getStartBlock() view returns(uint256)

func (*NetworkContractCaller) GetStartTime

func (_NetworkContract *NetworkContractCaller) GetStartTime(opts *bind.CallOpts) (*big.Int, error)

GetStartTime is a free data retrieval call binding the contract method 0xc828371e.

Solidity: function getStartTime() view returns(uint256)

func (*NetworkContractCaller) HasRole

func (_NetworkContract *NetworkContractCaller) 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 (*NetworkContractCaller) Locked

func (_NetworkContract *NetworkContractCaller) 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 (*NetworkContractCaller) MESSAGEPRICEMANAGER

func (_NetworkContract *NetworkContractCaller) MESSAGEPRICEMANAGER(opts *bind.CallOpts) ([32]byte, error)

MESSAGEPRICEMANAGER is a free data retrieval call binding the contract method 0x522872b3.

Solidity: function MESSAGE_PRICE_MANAGER() view returns(bytes32)

func (*NetworkContractCaller) Owner

func (_NetworkContract *NetworkContractCaller) 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 (*NetworkContractCaller) PriceHistory

func (_NetworkContract *NetworkContractCaller) PriceHistory(opts *bind.CallOpts, arg0 *big.Int) (struct {
	Price *big.Int
	From  *big.Int
	To    *big.Int
}, error)

PriceHistory is a free data retrieval call binding the contract method 0xb27a0484.

Solidity: function priceHistory(uint256 ) view returns(uint256 price, uint256 from, uint256 to)

func (*NetworkContractCaller) SearchPriceHistory

func (_NetworkContract *NetworkContractCaller) SearchPriceHistory(opts *bind.CallOpts, cycle *big.Int) (*big.Int, error)

SearchPriceHistory is a free data retrieval call binding the contract method 0x80e0d2b4.

Solidity: function searchPriceHistory(uint256 cycle) view returns(uint256)

func (*NetworkContractCaller) StartBlock

func (_NetworkContract *NetworkContractCaller) StartBlock(opts *bind.CallOpts) (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() view returns(uint256)

func (*NetworkContractCaller) SupportsInterface

func (_NetworkContract *NetworkContractCaller) 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)

type NetworkContractCallerRaw

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

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

func (*NetworkContractCallerRaw) Call

func (_NetworkContract *NetworkContractCallerRaw) 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 NetworkContractCallerSession

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

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

func (*NetworkContractCallerSession) BlockTime

func (_NetworkContract *NetworkContractCallerSession) BlockTime() (*big.Int, error)

BlockTime is a free data retrieval call binding the contract method 0x48b15166.

Solidity: function blockTime() view returns(uint256)

func (*NetworkContractCallerSession) CycleMessagePrice

func (_NetworkContract *NetworkContractCallerSession) CycleMessagePrice(arg0 *big.Int) (*big.Int, error)

CycleMessagePrice is a free data retrieval call binding the contract method 0x28240181.

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

func (*NetworkContractCallerSession) DEFAULTADMINROLE

func (_NetworkContract *NetworkContractCallerSession) 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 (*NetworkContractCallerSession) GetChainInfo

func (_NetworkContract *NetworkContractCallerSession) GetChainInfo() (ChainInfo, error)

GetChainInfo is a free data retrieval call binding the contract method 0x21cae483.

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

func (*NetworkContractCallerSession) GetCurrentBlockNumber

func (_NetworkContract *NetworkContractCallerSession) GetCurrentBlockNumber() (*big.Int, error)

GetCurrentBlockNumber is a free data retrieval call binding the contract method 0x6fd902e1.

Solidity: function getCurrentBlockNumber() view returns(uint256)

func (*NetworkContractCallerSession) GetCurrentCycle

func (_NetworkContract *NetworkContractCallerSession) GetCurrentCycle() (*big.Int, error)

GetCurrentCycle is a free data retrieval call binding the contract method 0xbe26ed7f.

Solidity: function getCurrentCycle() view returns(uint256)

func (*NetworkContractCallerSession) GetCurrentEpoch

func (_NetworkContract *NetworkContractCallerSession) GetCurrentEpoch() (*big.Int, error)

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

Solidity: function getCurrentEpoch() view returns(uint256)

func (*NetworkContractCallerSession) GetCurrentMessagePrice

func (_NetworkContract *NetworkContractCallerSession) GetCurrentMessagePrice() (*big.Int, error)

GetCurrentMessagePrice is a free data retrieval call binding the contract method 0x6d653312.

Solidity: function getCurrentMessagePrice() view returns(uint256)

func (*NetworkContractCallerSession) GetCurrentYear

func (_NetworkContract *NetworkContractCallerSession) GetCurrentYear(_block *big.Int) (*big.Int, error)

GetCurrentYear is a free data retrieval call binding the contract method 0x318b2184.

Solidity: function getCurrentYear(uint256 _block) view returns(uint256)

func (*NetworkContractCallerSession) GetCycle

func (_NetworkContract *NetworkContractCallerSession) GetCycle(blockNumber *big.Int) (*big.Int, error)

GetCycle is a free data retrieval call binding the contract method 0x2026f638.

Solidity: function getCycle(uint256 blockNumber) view returns(uint256)

func (*NetworkContractCallerSession) GetEpoch

func (_NetworkContract *NetworkContractCallerSession) GetEpoch(blockNumber *big.Int) (*big.Int, error)

GetEpoch is a free data retrieval call binding the contract method 0xbc0bc6ba.

Solidity: function getEpoch(uint256 blockNumber) view returns(uint256)

func (*NetworkContractCallerSession) GetMessagePrice

func (_NetworkContract *NetworkContractCallerSession) GetMessagePrice(cycle *big.Int) (*big.Int, error)

GetMessagePrice is a free data retrieval call binding the contract method 0x853ceffa.

Solidity: function getMessagePrice(uint256 cycle) view returns(uint256)

func (*NetworkContractCallerSession) GetRoleAdmin

func (_NetworkContract *NetworkContractCallerSession) 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 (*NetworkContractCallerSession) GetStartBlock

func (_NetworkContract *NetworkContractCallerSession) GetStartBlock() (*big.Int, error)

GetStartBlock is a free data retrieval call binding the contract method 0xa5f18c01.

Solidity: function getStartBlock() view returns(uint256)

func (*NetworkContractCallerSession) GetStartTime

func (_NetworkContract *NetworkContractCallerSession) GetStartTime() (*big.Int, error)

GetStartTime is a free data retrieval call binding the contract method 0xc828371e.

Solidity: function getStartTime() view returns(uint256)

func (*NetworkContractCallerSession) HasRole

func (_NetworkContract *NetworkContractCallerSession) 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 (*NetworkContractCallerSession) Locked

func (_NetworkContract *NetworkContractCallerSession) Locked() (bool, error)

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

Solidity: function locked() view returns(bool)

func (*NetworkContractCallerSession) MESSAGEPRICEMANAGER

func (_NetworkContract *NetworkContractCallerSession) MESSAGEPRICEMANAGER() ([32]byte, error)

MESSAGEPRICEMANAGER is a free data retrieval call binding the contract method 0x522872b3.

Solidity: function MESSAGE_PRICE_MANAGER() view returns(bytes32)

func (*NetworkContractCallerSession) Owner

func (_NetworkContract *NetworkContractCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NetworkContractCallerSession) PriceHistory

func (_NetworkContract *NetworkContractCallerSession) PriceHistory(arg0 *big.Int) (struct {
	Price *big.Int
	From  *big.Int
	To    *big.Int
}, error)

PriceHistory is a free data retrieval call binding the contract method 0xb27a0484.

Solidity: function priceHistory(uint256 ) view returns(uint256 price, uint256 from, uint256 to)

func (*NetworkContractCallerSession) SearchPriceHistory

func (_NetworkContract *NetworkContractCallerSession) SearchPriceHistory(cycle *big.Int) (*big.Int, error)

SearchPriceHistory is a free data retrieval call binding the contract method 0x80e0d2b4.

Solidity: function searchPriceHistory(uint256 cycle) view returns(uint256)

func (*NetworkContractCallerSession) StartBlock

func (_NetworkContract *NetworkContractCallerSession) StartBlock() (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() view returns(uint256)

func (*NetworkContractCallerSession) SupportsInterface

func (_NetworkContract *NetworkContractCallerSession) 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)

type NetworkContractFilterer

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

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

func NewNetworkContractFilterer

func NewNetworkContractFilterer(address common.Address, filterer bind.ContractFilterer) (*NetworkContractFilterer, error)

NewNetworkContractFilterer creates a new log filterer instance of NetworkContract, bound to a specific deployed contract.

func (*NetworkContractFilterer) FilterInitialized

func (_NetworkContract *NetworkContractFilterer) FilterInitialized(opts *bind.FilterOpts) (*NetworkContractInitializedIterator, error)

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

Solidity: event Initialized(uint64 version)

func (*NetworkContractFilterer) FilterOwnershipTransferred

func (_NetworkContract *NetworkContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*NetworkContractOwnershipTransferredIterator, error)

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

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

func (*NetworkContractFilterer) FilterPriceUpdated

func (_NetworkContract *NetworkContractFilterer) FilterPriceUpdated(opts *bind.FilterOpts) (*NetworkContractPriceUpdatedIterator, error)

FilterPriceUpdated is a free log retrieval operation binding the contract event 0x945c1c4e99aa89f648fbfe3df471b916f719e16d960fcec0737d4d56bd696838.

Solidity: event PriceUpdated(uint256 cycle, uint256 price)

func (*NetworkContractFilterer) FilterRoleAdminChanged

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

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

func (_NetworkContract *NetworkContractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*NetworkContractRoleRevokedIterator, 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 (*NetworkContractFilterer) ParseInitialized

func (_NetworkContract *NetworkContractFilterer) ParseInitialized(log types.Log) (*NetworkContractInitialized, error)

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

Solidity: event Initialized(uint64 version)

func (*NetworkContractFilterer) ParseOwnershipTransferred

func (_NetworkContract *NetworkContractFilterer) ParseOwnershipTransferred(log types.Log) (*NetworkContractOwnershipTransferred, error)

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

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

func (*NetworkContractFilterer) ParsePriceUpdated

func (_NetworkContract *NetworkContractFilterer) ParsePriceUpdated(log types.Log) (*NetworkContractPriceUpdated, error)

ParsePriceUpdated is a log parse operation binding the contract event 0x945c1c4e99aa89f648fbfe3df471b916f719e16d960fcec0737d4d56bd696838.

Solidity: event PriceUpdated(uint256 cycle, uint256 price)

func (*NetworkContractFilterer) ParseRoleAdminChanged

func (_NetworkContract *NetworkContractFilterer) ParseRoleAdminChanged(log types.Log) (*NetworkContractRoleAdminChanged, 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 (*NetworkContractFilterer) ParseRoleGranted

func (_NetworkContract *NetworkContractFilterer) ParseRoleGranted(log types.Log) (*NetworkContractRoleGranted, 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 (*NetworkContractFilterer) ParseRoleRevoked

func (_NetworkContract *NetworkContractFilterer) ParseRoleRevoked(log types.Log) (*NetworkContractRoleRevoked, 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 (*NetworkContractFilterer) WatchInitialized

func (_NetworkContract *NetworkContractFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *NetworkContractInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint64 version)

func (*NetworkContractFilterer) WatchOwnershipTransferred

func (_NetworkContract *NetworkContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *NetworkContractOwnershipTransferred, 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 (*NetworkContractFilterer) WatchPriceUpdated

func (_NetworkContract *NetworkContractFilterer) WatchPriceUpdated(opts *bind.WatchOpts, sink chan<- *NetworkContractPriceUpdated) (event.Subscription, error)

WatchPriceUpdated is a free log subscription operation binding the contract event 0x945c1c4e99aa89f648fbfe3df471b916f719e16d960fcec0737d4d56bd696838.

Solidity: event PriceUpdated(uint256 cycle, uint256 price)

func (*NetworkContractFilterer) WatchRoleAdminChanged

func (_NetworkContract *NetworkContractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *NetworkContractRoleAdminChanged, 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 (*NetworkContractFilterer) WatchRoleGranted

func (_NetworkContract *NetworkContractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *NetworkContractRoleGranted, 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 (*NetworkContractFilterer) WatchRoleRevoked

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

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

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

type NetworkContractInitialized

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

NetworkContractInitialized represents a Initialized event raised by the NetworkContract contract.

type NetworkContractInitializedIterator

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

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

func (*NetworkContractInitializedIterator) Close

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

func (*NetworkContractInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NetworkContractInitializedIterator) 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 NetworkContractOwnershipTransferred

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

NetworkContractOwnershipTransferred represents a OwnershipTransferred event raised by the NetworkContract contract.

type NetworkContractOwnershipTransferredIterator

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

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

func (*NetworkContractOwnershipTransferredIterator) Close

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

func (*NetworkContractOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NetworkContractOwnershipTransferredIterator) 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 NetworkContractPriceUpdated

type NetworkContractPriceUpdated struct {
	Cycle *big.Int
	Price *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

NetworkContractPriceUpdated represents a PriceUpdated event raised by the NetworkContract contract.

type NetworkContractPriceUpdatedIterator

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

NetworkContractPriceUpdatedIterator is returned from FilterPriceUpdated and is used to iterate over the raw logs and unpacked data for PriceUpdated events raised by the NetworkContract contract.

func (*NetworkContractPriceUpdatedIterator) Close

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

func (*NetworkContractPriceUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NetworkContractPriceUpdatedIterator) 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 NetworkContractRaw

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

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

func (*NetworkContractRaw) Call

func (_NetworkContract *NetworkContractRaw) 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 (*NetworkContractRaw) Transact

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

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

func (*NetworkContractRaw) Transfer

func (_NetworkContract *NetworkContractRaw) 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 NetworkContractRoleAdminChanged

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

NetworkContractRoleAdminChanged represents a RoleAdminChanged event raised by the NetworkContract contract.

type NetworkContractRoleAdminChangedIterator

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

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

func (*NetworkContractRoleAdminChangedIterator) Close

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

func (*NetworkContractRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NetworkContractRoleAdminChangedIterator) 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 NetworkContractRoleGranted

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

NetworkContractRoleGranted represents a RoleGranted event raised by the NetworkContract contract.

type NetworkContractRoleGrantedIterator

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

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

func (*NetworkContractRoleGrantedIterator) Close

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

func (*NetworkContractRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NetworkContractRoleGrantedIterator) 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 NetworkContractRoleRevoked

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

NetworkContractRoleRevoked represents a RoleRevoked event raised by the NetworkContract contract.

type NetworkContractRoleRevokedIterator

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

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

func (*NetworkContractRoleRevokedIterator) Close

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

func (*NetworkContractRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NetworkContractRoleRevokedIterator) 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 NetworkContractSession

type NetworkContractSession struct {
	Contract     *NetworkContract  // 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
}

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

func (*NetworkContractSession) BlockTime

func (_NetworkContract *NetworkContractSession) BlockTime() (*big.Int, error)

BlockTime is a free data retrieval call binding the contract method 0x48b15166.

Solidity: function blockTime() view returns(uint256)

func (*NetworkContractSession) CycleMessagePrice

func (_NetworkContract *NetworkContractSession) CycleMessagePrice(arg0 *big.Int) (*big.Int, error)

CycleMessagePrice is a free data retrieval call binding the contract method 0x28240181.

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

func (*NetworkContractSession) DEFAULTADMINROLE

func (_NetworkContract *NetworkContractSession) 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 (*NetworkContractSession) GetChainInfo

func (_NetworkContract *NetworkContractSession) GetChainInfo() (ChainInfo, error)

GetChainInfo is a free data retrieval call binding the contract method 0x21cae483.

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

func (*NetworkContractSession) GetCurrentBlockNumber

func (_NetworkContract *NetworkContractSession) GetCurrentBlockNumber() (*big.Int, error)

GetCurrentBlockNumber is a free data retrieval call binding the contract method 0x6fd902e1.

Solidity: function getCurrentBlockNumber() view returns(uint256)

func (*NetworkContractSession) GetCurrentCycle

func (_NetworkContract *NetworkContractSession) GetCurrentCycle() (*big.Int, error)

GetCurrentCycle is a free data retrieval call binding the contract method 0xbe26ed7f.

Solidity: function getCurrentCycle() view returns(uint256)

func (*NetworkContractSession) GetCurrentEpoch

func (_NetworkContract *NetworkContractSession) GetCurrentEpoch() (*big.Int, error)

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

Solidity: function getCurrentEpoch() view returns(uint256)

func (*NetworkContractSession) GetCurrentMessagePrice

func (_NetworkContract *NetworkContractSession) GetCurrentMessagePrice() (*big.Int, error)

GetCurrentMessagePrice is a free data retrieval call binding the contract method 0x6d653312.

Solidity: function getCurrentMessagePrice() view returns(uint256)

func (*NetworkContractSession) GetCurrentYear

func (_NetworkContract *NetworkContractSession) GetCurrentYear(_block *big.Int) (*big.Int, error)

GetCurrentYear is a free data retrieval call binding the contract method 0x318b2184.

Solidity: function getCurrentYear(uint256 _block) view returns(uint256)

func (*NetworkContractSession) GetCycle

func (_NetworkContract *NetworkContractSession) GetCycle(blockNumber *big.Int) (*big.Int, error)

GetCycle is a free data retrieval call binding the contract method 0x2026f638.

Solidity: function getCycle(uint256 blockNumber) view returns(uint256)

func (*NetworkContractSession) GetEpoch

func (_NetworkContract *NetworkContractSession) GetEpoch(blockNumber *big.Int) (*big.Int, error)

GetEpoch is a free data retrieval call binding the contract method 0xbc0bc6ba.

Solidity: function getEpoch(uint256 blockNumber) view returns(uint256)

func (*NetworkContractSession) GetMessagePrice

func (_NetworkContract *NetworkContractSession) GetMessagePrice(cycle *big.Int) (*big.Int, error)

GetMessagePrice is a free data retrieval call binding the contract method 0x853ceffa.

Solidity: function getMessagePrice(uint256 cycle) view returns(uint256)

func (*NetworkContractSession) GetRoleAdmin

func (_NetworkContract *NetworkContractSession) 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 (*NetworkContractSession) GetStartBlock

func (_NetworkContract *NetworkContractSession) GetStartBlock() (*big.Int, error)

GetStartBlock is a free data retrieval call binding the contract method 0xa5f18c01.

Solidity: function getStartBlock() view returns(uint256)

func (*NetworkContractSession) GetStartTime

func (_NetworkContract *NetworkContractSession) GetStartTime() (*big.Int, error)

GetStartTime is a free data retrieval call binding the contract method 0xc828371e.

Solidity: function getStartTime() view returns(uint256)

func (*NetworkContractSession) GrantRole

func (_NetworkContract *NetworkContractSession) 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 (*NetworkContractSession) HasRole

func (_NetworkContract *NetworkContractSession) 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 (*NetworkContractSession) Initialize

func (_NetworkContract *NetworkContractSession) Initialize(_blockTime *big.Int, _startBlock *big.Int) (*types.Transaction, error)

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

Solidity: function initialize(uint256 _blockTime, uint256 _startBlock) returns()

func (*NetworkContractSession) Locked

func (_NetworkContract *NetworkContractSession) Locked() (bool, error)

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

Solidity: function locked() view returns(bool)

func (*NetworkContractSession) MESSAGEPRICEMANAGER

func (_NetworkContract *NetworkContractSession) MESSAGEPRICEMANAGER() ([32]byte, error)

MESSAGEPRICEMANAGER is a free data retrieval call binding the contract method 0x522872b3.

Solidity: function MESSAGE_PRICE_MANAGER() view returns(bytes32)

func (*NetworkContractSession) Owner

func (_NetworkContract *NetworkContractSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*NetworkContractSession) PriceHistory

func (_NetworkContract *NetworkContractSession) PriceHistory(arg0 *big.Int) (struct {
	Price *big.Int
	From  *big.Int
	To    *big.Int
}, error)

PriceHistory is a free data retrieval call binding the contract method 0xb27a0484.

Solidity: function priceHistory(uint256 ) view returns(uint256 price, uint256 from, uint256 to)

func (*NetworkContractSession) RenounceOwnership

func (_NetworkContract *NetworkContractSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*NetworkContractSession) RenounceRole

func (_NetworkContract *NetworkContractSession) 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 (*NetworkContractSession) RevokeRole

func (_NetworkContract *NetworkContractSession) 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 (*NetworkContractSession) SearchPriceHistory

func (_NetworkContract *NetworkContractSession) SearchPriceHistory(cycle *big.Int) (*big.Int, error)

SearchPriceHistory is a free data retrieval call binding the contract method 0x80e0d2b4.

Solidity: function searchPriceHistory(uint256 cycle) view returns(uint256)

func (*NetworkContractSession) SetMessagePrice

func (_NetworkContract *NetworkContractSession) SetMessagePrice(price *big.Int) (*types.Transaction, error)

SetMessagePrice is a paid mutator transaction binding the contract method 0x69a4b708.

Solidity: function setMessagePrice(uint256 price) returns()

func (*NetworkContractSession) SetStartBlock

func (_NetworkContract *NetworkContractSession) SetStartBlock(_blockNum *big.Int) (*types.Transaction, error)

SetStartBlock is a paid mutator transaction binding the contract method 0xf35e4a6e.

Solidity: function setStartBlock(uint256 _blockNum) returns()

func (*NetworkContractSession) StartBlock

func (_NetworkContract *NetworkContractSession) StartBlock() (*big.Int, error)

StartBlock is a free data retrieval call binding the contract method 0x48cd4cb1.

Solidity: function startBlock() view returns(uint256)

func (*NetworkContractSession) SupportsInterface

func (_NetworkContract *NetworkContractSession) 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 (*NetworkContractSession) TransferOwnership

func (_NetworkContract *NetworkContractSession) 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 (*NetworkContractSession) Withdraw

func (_NetworkContract *NetworkContractSession) Withdraw(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address token, address to, uint256 amount) returns()

type NetworkContractTransactor

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

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

func NewNetworkContractTransactor

func NewNetworkContractTransactor(address common.Address, transactor bind.ContractTransactor) (*NetworkContractTransactor, error)

NewNetworkContractTransactor creates a new write-only instance of NetworkContract, bound to a specific deployed contract.

func (*NetworkContractTransactor) GrantRole

func (_NetworkContract *NetworkContractTransactor) 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 (*NetworkContractTransactor) Initialize

func (_NetworkContract *NetworkContractTransactor) Initialize(opts *bind.TransactOpts, _blockTime *big.Int, _startBlock *big.Int) (*types.Transaction, error)

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

Solidity: function initialize(uint256 _blockTime, uint256 _startBlock) returns()

func (*NetworkContractTransactor) RenounceOwnership

func (_NetworkContract *NetworkContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*NetworkContractTransactor) RenounceRole

func (_NetworkContract *NetworkContractTransactor) 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 (*NetworkContractTransactor) RevokeRole

func (_NetworkContract *NetworkContractTransactor) 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 (*NetworkContractTransactor) SetMessagePrice

func (_NetworkContract *NetworkContractTransactor) SetMessagePrice(opts *bind.TransactOpts, price *big.Int) (*types.Transaction, error)

SetMessagePrice is a paid mutator transaction binding the contract method 0x69a4b708.

Solidity: function setMessagePrice(uint256 price) returns()

func (*NetworkContractTransactor) SetStartBlock

func (_NetworkContract *NetworkContractTransactor) SetStartBlock(opts *bind.TransactOpts, _blockNum *big.Int) (*types.Transaction, error)

SetStartBlock is a paid mutator transaction binding the contract method 0xf35e4a6e.

Solidity: function setStartBlock(uint256 _blockNum) returns()

func (*NetworkContractTransactor) TransferOwnership

func (_NetworkContract *NetworkContractTransactor) 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 (*NetworkContractTransactor) Withdraw

func (_NetworkContract *NetworkContractTransactor) Withdraw(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address token, address to, uint256 amount) returns()

type NetworkContractTransactorRaw

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

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

func (*NetworkContractTransactorRaw) Transact

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

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

func (*NetworkContractTransactorRaw) Transfer

func (_NetworkContract *NetworkContractTransactorRaw) 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 NetworkContractTransactorSession

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

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

func (*NetworkContractTransactorSession) GrantRole

func (_NetworkContract *NetworkContractTransactorSession) 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 (*NetworkContractTransactorSession) Initialize

func (_NetworkContract *NetworkContractTransactorSession) Initialize(_blockTime *big.Int, _startBlock *big.Int) (*types.Transaction, error)

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

Solidity: function initialize(uint256 _blockTime, uint256 _startBlock) returns()

func (*NetworkContractTransactorSession) RenounceOwnership

func (_NetworkContract *NetworkContractTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*NetworkContractTransactorSession) RenounceRole

func (_NetworkContract *NetworkContractTransactorSession) 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 (*NetworkContractTransactorSession) RevokeRole

func (_NetworkContract *NetworkContractTransactorSession) 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 (*NetworkContractTransactorSession) SetMessagePrice

func (_NetworkContract *NetworkContractTransactorSession) SetMessagePrice(price *big.Int) (*types.Transaction, error)

SetMessagePrice is a paid mutator transaction binding the contract method 0x69a4b708.

Solidity: function setMessagePrice(uint256 price) returns()

func (*NetworkContractTransactorSession) SetStartBlock

func (_NetworkContract *NetworkContractTransactorSession) SetStartBlock(_blockNum *big.Int) (*types.Transaction, error)

SetStartBlock is a paid mutator transaction binding the contract method 0xf35e4a6e.

Solidity: function setStartBlock(uint256 _blockNum) returns()

func (*NetworkContractTransactorSession) TransferOwnership

func (_NetworkContract *NetworkContractTransactorSession) 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 (*NetworkContractTransactorSession) Withdraw

func (_NetworkContract *NetworkContractTransactorSession) Withdraw(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

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

Solidity: function withdraw(address token, address to, uint256 amount) returns()

Jump to

Keyboard shortcuts

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