sessionrouter

package
v0.0.0-...-2515fb6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionRouterABI = SessionRouterMetaData.ABI

SessionRouterABI is the input ABI used to generate the binding from. Deprecated: Use SessionRouterMetaData.ABI instead.

View Source
var SessionRouterMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"delegatee\",\"type\":\"address\"}],\"name\":\"InsufficientRightsForOperation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account_\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionAlreadyClosed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionApprovedForAnotherUser\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionBidNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionDuplicateApproval\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionMaxDurationTooShort\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionNotEndedOrNotExist\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionPoolIndexOutOfBounds\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionProviderNothingToClaimInThisPeriod\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionProviderSignatureMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionStakeTooLow\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionTooShort\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionUserAmountToWithdrawIsZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SesssionApproveExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SesssionApprovedForAnotherChainId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SesssionReceiptExpired\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SesssionReceiptForAnotherChainId\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"storageSlot\",\"type\":\"bytes32\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"sessionId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"providerId\",\"type\":\"address\"}],\"name\":\"SessionClosed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"sessionId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"providerId\",\"type\":\"address\"}],\"name\":\"SessionOpened\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"}],\"name\":\"UserWithdrawn\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BIDS_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"COMPUTE_POOL_INDEX\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_RULES_MARKETPLACE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_RULES_MODEL\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_RULES_PROVIDER\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_RULES_SESSION\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DELEGATION_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DIAMOND_OWNABLE_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_SESSION_DURATION\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PROVIDERS_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SESSIONS_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNATURE_TTL\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"STATS_STORAGE_SLOT\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"fundingAccount_\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"maxSessionDuration_\",\"type\":\"uint128\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"initialReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDecrease\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"payoutStart\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"decreaseInterval\",\"type\":\"uint128\"}],\"internalType\":\"structISessionStorage.Pool[]\",\"name\":\"pools_\",\"type\":\"tuple[]\"}],\"name\":\"__SessionRouter_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"sessionId_\",\"type\":\"bytes32\"}],\"name\":\"claimForProvider\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"receiptEncoded_\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature_\",\"type\":\"bytes\"}],\"name\":\"closeSession\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getActiveProviders\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"bidId_\",\"type\":\"bytes32\"}],\"name\":\"getBid\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"deletedAt\",\"type\":\"uint128\"}],\"internalType\":\"structIBidStorage.Bid\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"timestamp_\",\"type\":\"uint128\"}],\"name\":\"getComputeBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getFundingAccount\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"}],\"name\":\"getIsProviderActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"approval_\",\"type\":\"bytes\"}],\"name\":\"getIsProviderApprovalUsed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getMaxSessionDuration\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getModelActiveBids\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getModelBids\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getModelSessions\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"}],\"name\":\"getModelStats\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"int64\",\"name\":\"mean\",\"type\":\"int64\"},{\"internalType\":\"int64\",\"name\":\"sqSum\",\"type\":\"int64\"}],\"internalType\":\"structLibSD.SD\",\"name\":\"tpsScaled1000\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int64\",\"name\":\"mean\",\"type\":\"int64\"},{\"internalType\":\"int64\",\"name\":\"sqSum\",\"type\":\"int64\"}],\"internalType\":\"structLibSD.SD\",\"name\":\"ttftMs\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int64\",\"name\":\"mean\",\"type\":\"int64\"},{\"internalType\":\"int64\",\"name\":\"sqSum\",\"type\":\"int64\"}],\"internalType\":\"structLibSD.SD\",\"name\":\"totalDuration\",\"type\":\"tuple\"},{\"internalType\":\"uint32\",\"name\":\"count\",\"type\":\"uint32\"}],\"internalType\":\"structIStatsStorage.ModelStats\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index_\",\"type\":\"uint256\"}],\"name\":\"getPool\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"initialReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDecrease\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"payoutStart\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"decreaseInterval\",\"type\":\"uint128\"}],\"internalType\":\"structISessionStorage.Pool\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getPools\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"initialReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDecrease\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"payoutStart\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"decreaseInterval\",\"type\":\"uint128\"}],\"internalType\":\"structISessionStorage.Pool[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"}],\"name\":\"getProvider\",\"outputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"endpoint\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"createdAt\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"limitPeriodEnd\",\"type\":\"uint128\"},{\"internalType\":\"uint256\",\"name\":\"limitPeriodEarned\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isDeleted\",\"type\":\"bool\"}],\"internalType\":\"structIProviderStorage.Provider\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getProviderActiveBids\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getProviderBids\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProviderMinimumStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId_\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"}],\"name\":\"getProviderModelStats\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"int64\",\"name\":\"mean\",\"type\":\"int64\"},{\"internalType\":\"int64\",\"name\":\"sqSum\",\"type\":\"int64\"}],\"internalType\":\"structLibSD.SD\",\"name\":\"tpsScaled1000\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"int64\",\"name\":\"mean\",\"type\":\"int64\"},{\"internalType\":\"int64\",\"name\":\"sqSum\",\"type\":\"int64\"}],\"internalType\":\"structLibSD.SD\",\"name\":\"ttftMs\",\"type\":\"tuple\"},{\"internalType\":\"uint32\",\"name\":\"totalDuration\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"successCount\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"totalCount\",\"type\":\"uint32\"}],\"internalType\":\"structIStatsStorage.ProviderModelStats\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getProviderSessions\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProvidersTotalClaimed\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRegistry\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"sessionId_\",\"type\":\"bytes32\"}],\"name\":\"getSession\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"bidId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"closeoutReceipt\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"closeoutType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"providerWithdrawnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"openedAt\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"endsAt\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"closedAt\",\"type\":\"uint128\"},{\"internalType\":\"bool\",\"name\":\"isActive\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isDirectPaymentFromUser\",\"type\":\"bool\"}],\"internalType\":\"structISessionStorage.Session\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond_\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"openedAt_\",\"type\":\"uint128\"}],\"name\":\"getSessionEnd\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"bidId_\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"sessionNonce_\",\"type\":\"uint256\"}],\"name\":\"getSessionId\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"timestamp_\",\"type\":\"uint128\"}],\"name\":\"getTodaysBudget\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider_\",\"type\":\"address\"}],\"name\":\"getTotalSessions\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"limit_\",\"type\":\"uint256\"}],\"name\":\"getUserSessions\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user_\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"iterations_\",\"type\":\"uint8\"}],\"name\":\"getUserStakesOnHold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"available_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"hold_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"bidId_\",\"type\":\"bytes32\"}],\"name\":\"isBidActive\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"delegatee_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"delegator_\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"rights_\",\"type\":\"bytes32\"}],\"name\":\"isRightsDelegated\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"isDirectPaymentFromUser_\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"approvalEncoded_\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature_\",\"type\":\"bytes\"}],\"name\":\"openSession\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"maxSessionDuration_\",\"type\":\"uint128\"}],\"name\":\"setMaxSessionDuration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index_\",\"type\":\"uint256\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"initialReward\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"rewardDecrease\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"payoutStart\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"decreaseInterval\",\"type\":\"uint128\"}],\"internalType\":\"structISessionStorage.Pool\",\"name\":\"pool_\",\"type\":\"tuple\"}],\"name\":\"setPoolConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount_\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"timestamp_\",\"type\":\"uint128\"}],\"name\":\"stakeToStipend\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"timestamp_\",\"type\":\"uint128\"}],\"name\":\"startOfTheDay\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"stipend_\",\"type\":\"uint256\"},{\"internalType\":\"uint128\",\"name\":\"timestamp_\",\"type\":\"uint128\"}],\"name\":\"stipendToStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"timestamp_\",\"type\":\"uint128\"}],\"name\":\"totalMORSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user_\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"iterations_\",\"type\":\"uint8\"}],\"name\":\"withdrawUserStakes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

SessionRouterMetaData contains all meta data concerning the SessionRouter contract.

Functions

This section is empty.

Types

type IBidStorageBid

type IBidStorageBid struct {
	Provider       common.Address
	ModelId        [32]byte
	PricePerSecond *big.Int
	Nonce          *big.Int
	CreatedAt      *big.Int
	DeletedAt      *big.Int
}

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

type IProviderStorageProvider

type IProviderStorageProvider struct {
	Endpoint          string
	Stake             *big.Int
	CreatedAt         *big.Int
	LimitPeriodEnd    *big.Int
	LimitPeriodEarned *big.Int
	IsDeleted         bool
}

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

type ISessionStoragePool

type ISessionStoragePool struct {
	InitialReward    *big.Int
	RewardDecrease   *big.Int
	PayoutStart      *big.Int
	DecreaseInterval *big.Int
}

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

type ISessionStorageSession

type ISessionStorageSession struct {
	User                    common.Address
	BidId                   [32]byte
	Stake                   *big.Int
	CloseoutReceipt         []byte
	CloseoutType            *big.Int
	ProviderWithdrawnAmount *big.Int
	OpenedAt                *big.Int
	EndsAt                  *big.Int
	ClosedAt                *big.Int
	IsActive                bool
	IsDirectPaymentFromUser bool
}

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

type IStatsStorageModelStats

type IStatsStorageModelStats struct {
	TpsScaled1000 LibSDSD
	TtftMs        LibSDSD
	TotalDuration LibSDSD
	Count         uint32
}

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

type IStatsStorageProviderModelStats

type IStatsStorageProviderModelStats struct {
	TpsScaled1000 LibSDSD
	TtftMs        LibSDSD
	TotalDuration uint32
	SuccessCount  uint32
	TotalCount    uint32
}

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

type LibSDSD

type LibSDSD struct {
	Mean  int64
	SqSum int64
}

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

type SessionRouter

type SessionRouter struct {
	SessionRouterCaller     // Read-only binding to the contract
	SessionRouterTransactor // Write-only binding to the contract
	SessionRouterFilterer   // Log filterer for contract events
}

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

func NewSessionRouter

func NewSessionRouter(address common.Address, backend bind.ContractBackend) (*SessionRouter, error)

NewSessionRouter creates a new instance of SessionRouter, bound to a specific deployed contract.

type SessionRouterCaller

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

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

func NewSessionRouterCaller

func NewSessionRouterCaller(address common.Address, caller bind.ContractCaller) (*SessionRouterCaller, error)

NewSessionRouterCaller creates a new read-only instance of SessionRouter, bound to a specific deployed contract.

func (*SessionRouterCaller) BIDSSTORAGESLOT

func (_SessionRouter *SessionRouterCaller) BIDSSTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

BIDSSTORAGESLOT is a free data retrieval call binding the contract method 0x266ccff0.

Solidity: function BIDS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCaller) COMPUTEPOOLINDEX

func (_SessionRouter *SessionRouterCaller) COMPUTEPOOLINDEX(opts *bind.CallOpts) (*big.Int, error)

COMPUTEPOOLINDEX is a free data retrieval call binding the contract method 0xc56d09a0.

Solidity: function COMPUTE_POOL_INDEX() view returns(uint256)

func (*SessionRouterCaller) DELEGATIONRULESMARKETPLACE

func (_SessionRouter *SessionRouterCaller) DELEGATIONRULESMARKETPLACE(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONRULESMARKETPLACE is a free data retrieval call binding the contract method 0xad34a150.

Solidity: function DELEGATION_RULES_MARKETPLACE() view returns(bytes32)

func (*SessionRouterCaller) DELEGATIONRULESMODEL

func (_SessionRouter *SessionRouterCaller) DELEGATIONRULESMODEL(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONRULESMODEL is a free data retrieval call binding the contract method 0x86878047.

Solidity: function DELEGATION_RULES_MODEL() view returns(bytes32)

func (*SessionRouterCaller) DELEGATIONRULESPROVIDER

func (_SessionRouter *SessionRouterCaller) DELEGATIONRULESPROVIDER(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONRULESPROVIDER is a free data retrieval call binding the contract method 0x58aeef93.

Solidity: function DELEGATION_RULES_PROVIDER() view returns(bytes32)

func (*SessionRouterCaller) DELEGATIONRULESSESSION

func (_SessionRouter *SessionRouterCaller) DELEGATIONRULESSESSION(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONRULESSESSION is a free data retrieval call binding the contract method 0xd1b43638.

Solidity: function DELEGATION_RULES_SESSION() view returns(bytes32)

func (*SessionRouterCaller) DELEGATIONSTORAGESLOT

func (_SessionRouter *SessionRouterCaller) DELEGATIONSTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

DELEGATIONSTORAGESLOT is a free data retrieval call binding the contract method 0xdd9b48cb.

Solidity: function DELEGATION_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCaller) DIAMONDOWNABLESTORAGESLOT

func (_SessionRouter *SessionRouterCaller) DIAMONDOWNABLESTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

DIAMONDOWNABLESTORAGESLOT is a free data retrieval call binding the contract method 0x4ac3371e.

Solidity: function DIAMOND_OWNABLE_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCaller) GetActiveProviders

func (_SessionRouter *SessionRouterCaller) GetActiveProviders(opts *bind.CallOpts, offset_ *big.Int, limit_ *big.Int) ([]common.Address, *big.Int, error)

GetActiveProviders is a free data retrieval call binding the contract method 0xd5472642.

Solidity: function getActiveProviders(uint256 offset_, uint256 limit_) view returns(address[], uint256)

func (*SessionRouterCaller) GetBid

func (_SessionRouter *SessionRouterCaller) GetBid(opts *bind.CallOpts, bidId_ [32]byte) (IBidStorageBid, error)

GetBid is a free data retrieval call binding the contract method 0x91704e1e.

Solidity: function getBid(bytes32 bidId_) view returns((address,bytes32,uint256,uint256,uint128,uint128))

func (*SessionRouterCaller) GetComputeBalance

func (_SessionRouter *SessionRouterCaller) GetComputeBalance(opts *bind.CallOpts, timestamp_ *big.Int) (*big.Int, error)

GetComputeBalance is a free data retrieval call binding the contract method 0x61ce471a.

Solidity: function getComputeBalance(uint128 timestamp_) view returns(uint256)

func (*SessionRouterCaller) GetFundingAccount

func (_SessionRouter *SessionRouterCaller) GetFundingAccount(opts *bind.CallOpts) (common.Address, error)

GetFundingAccount is a free data retrieval call binding the contract method 0x775c3727.

Solidity: function getFundingAccount() view returns(address)

func (*SessionRouterCaller) GetIsProviderActive

func (_SessionRouter *SessionRouterCaller) GetIsProviderActive(opts *bind.CallOpts, provider_ common.Address) (bool, error)

GetIsProviderActive is a free data retrieval call binding the contract method 0x63ef175d.

Solidity: function getIsProviderActive(address provider_) view returns(bool)

func (*SessionRouterCaller) GetIsProviderApprovalUsed

func (_SessionRouter *SessionRouterCaller) GetIsProviderApprovalUsed(opts *bind.CallOpts, approval_ []byte) (bool, error)

GetIsProviderApprovalUsed is a free data retrieval call binding the contract method 0xdb1cf1e2.

Solidity: function getIsProviderApprovalUsed(bytes approval_) view returns(bool)

func (*SessionRouterCaller) GetMaxSessionDuration

func (_SessionRouter *SessionRouterCaller) GetMaxSessionDuration(opts *bind.CallOpts) (*big.Int, error)

GetMaxSessionDuration is a free data retrieval call binding the contract method 0xa9756858.

Solidity: function getMaxSessionDuration() view returns(uint128)

func (*SessionRouterCaller) GetModelActiveBids

func (_SessionRouter *SessionRouterCaller) GetModelActiveBids(opts *bind.CallOpts, modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelActiveBids is a free data retrieval call binding the contract method 0x8a683b6e.

Solidity: function getModelActiveBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCaller) GetModelBids

func (_SessionRouter *SessionRouterCaller) GetModelBids(opts *bind.CallOpts, modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelBids is a free data retrieval call binding the contract method 0xfade17b1.

Solidity: function getModelBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCaller) GetModelSessions

func (_SessionRouter *SessionRouterCaller) GetModelSessions(opts *bind.CallOpts, modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelSessions is a free data retrieval call binding the contract method 0x1d78a872.

Solidity: function getModelSessions(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCaller) GetModelStats

func (_SessionRouter *SessionRouterCaller) GetModelStats(opts *bind.CallOpts, modelId_ [32]byte) (IStatsStorageModelStats, error)

GetModelStats is a free data retrieval call binding the contract method 0xce535723.

Solidity: function getModelStats(bytes32 modelId_) view returns(((int64,int64),(int64,int64),(int64,int64),uint32))

func (*SessionRouterCaller) GetPool

func (_SessionRouter *SessionRouterCaller) GetPool(opts *bind.CallOpts, index_ *big.Int) (ISessionStoragePool, error)

GetPool is a free data retrieval call binding the contract method 0x068bcd8d.

Solidity: function getPool(uint256 index_) view returns((uint256,uint256,uint128,uint128))

func (*SessionRouterCaller) GetPools

func (_SessionRouter *SessionRouterCaller) GetPools(opts *bind.CallOpts) ([]ISessionStoragePool, error)

GetPools is a free data retrieval call binding the contract method 0x673a2a1f.

Solidity: function getPools() view returns((uint256,uint256,uint128,uint128)[])

func (*SessionRouterCaller) GetProvider

func (_SessionRouter *SessionRouterCaller) GetProvider(opts *bind.CallOpts, provider_ common.Address) (IProviderStorageProvider, error)

GetProvider is a free data retrieval call binding the contract method 0x55f21eb7.

Solidity: function getProvider(address provider_) view returns((string,uint256,uint128,uint128,uint256,bool))

func (*SessionRouterCaller) GetProviderActiveBids

func (_SessionRouter *SessionRouterCaller) GetProviderActiveBids(opts *bind.CallOpts, provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderActiveBids is a free data retrieval call binding the contract method 0xaf5b77ca.

Solidity: function getProviderActiveBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCaller) GetProviderBids

func (_SessionRouter *SessionRouterCaller) GetProviderBids(opts *bind.CallOpts, provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderBids is a free data retrieval call binding the contract method 0x59d435c4.

Solidity: function getProviderBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCaller) GetProviderMinimumStake

func (_SessionRouter *SessionRouterCaller) GetProviderMinimumStake(opts *bind.CallOpts) (*big.Int, error)

GetProviderMinimumStake is a free data retrieval call binding the contract method 0x53c029f6.

Solidity: function getProviderMinimumStake() view returns(uint256)

func (*SessionRouterCaller) GetProviderModelStats

func (_SessionRouter *SessionRouterCaller) GetProviderModelStats(opts *bind.CallOpts, modelId_ [32]byte, provider_ common.Address) (IStatsStorageProviderModelStats, error)

GetProviderModelStats is a free data retrieval call binding the contract method 0x1b26c116.

Solidity: function getProviderModelStats(bytes32 modelId_, address provider_) view returns(((int64,int64),(int64,int64),uint32,uint32,uint32))

func (*SessionRouterCaller) GetProviderSessions

func (_SessionRouter *SessionRouterCaller) GetProviderSessions(opts *bind.CallOpts, provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderSessions is a free data retrieval call binding the contract method 0x87bced7d.

Solidity: function getProviderSessions(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCaller) GetProvidersTotalClaimed

func (_SessionRouter *SessionRouterCaller) GetProvidersTotalClaimed(opts *bind.CallOpts) (*big.Int, error)

GetProvidersTotalClaimed is a free data retrieval call binding the contract method 0xbdfbbada.

Solidity: function getProvidersTotalClaimed() view returns(uint256)

func (*SessionRouterCaller) GetRegistry

func (_SessionRouter *SessionRouterCaller) GetRegistry(opts *bind.CallOpts) (common.Address, error)

GetRegistry is a free data retrieval call binding the contract method 0x5ab1bd53.

Solidity: function getRegistry() view returns(address)

func (*SessionRouterCaller) GetSession

func (_SessionRouter *SessionRouterCaller) GetSession(opts *bind.CallOpts, sessionId_ [32]byte) (ISessionStorageSession, error)

GetSession is a free data retrieval call binding the contract method 0x39b240bd.

Solidity: function getSession(bytes32 sessionId_) view returns((address,bytes32,uint256,bytes,uint256,uint256,uint128,uint128,uint128,bool,bool))

func (*SessionRouterCaller) GetSessionEnd

func (_SessionRouter *SessionRouterCaller) GetSessionEnd(opts *bind.CallOpts, amount_ *big.Int, pricePerSecond_ *big.Int, openedAt_ *big.Int) (*big.Int, error)

GetSessionEnd is a free data retrieval call binding the contract method 0xb823dc8f.

Solidity: function getSessionEnd(uint256 amount_, uint256 pricePerSecond_, uint128 openedAt_) view returns(uint128)

func (*SessionRouterCaller) GetSessionId

func (_SessionRouter *SessionRouterCaller) GetSessionId(opts *bind.CallOpts, user_ common.Address, provider_ common.Address, bidId_ [32]byte, sessionNonce_ *big.Int) ([32]byte, error)

GetSessionId is a free data retrieval call binding the contract method 0x4d689ffd.

Solidity: function getSessionId(address user_, address provider_, bytes32 bidId_, uint256 sessionNonce_) pure returns(bytes32)

func (*SessionRouterCaller) GetTodaysBudget

func (_SessionRouter *SessionRouterCaller) GetTodaysBudget(opts *bind.CallOpts, timestamp_ *big.Int) (*big.Int, error)

GetTodaysBudget is a free data retrieval call binding the contract method 0x40005965.

Solidity: function getTodaysBudget(uint128 timestamp_) view returns(uint256)

func (*SessionRouterCaller) GetToken

func (_SessionRouter *SessionRouterCaller) GetToken(opts *bind.CallOpts) (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x21df0da7.

Solidity: function getToken() view returns(address)

func (*SessionRouterCaller) GetTotalSessions

func (_SessionRouter *SessionRouterCaller) GetTotalSessions(opts *bind.CallOpts, provider_ common.Address) (*big.Int, error)

GetTotalSessions is a free data retrieval call binding the contract method 0x76400935.

Solidity: function getTotalSessions(address provider_) view returns(uint256)

func (*SessionRouterCaller) GetUserSessions

func (_SessionRouter *SessionRouterCaller) GetUserSessions(opts *bind.CallOpts, user_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetUserSessions is a free data retrieval call binding the contract method 0xeb7764bb.

Solidity: function getUserSessions(address user_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCaller) GetUserStakesOnHold

func (_SessionRouter *SessionRouterCaller) GetUserStakesOnHold(opts *bind.CallOpts, user_ common.Address, iterations_ uint8) (struct {
	Available *big.Int
	Hold      *big.Int
}, error)

GetUserStakesOnHold is a free data retrieval call binding the contract method 0x967885df.

Solidity: function getUserStakesOnHold(address user_, uint8 iterations_) view returns(uint256 available_, uint256 hold_)

func (*SessionRouterCaller) IsBidActive

func (_SessionRouter *SessionRouterCaller) IsBidActive(opts *bind.CallOpts, bidId_ [32]byte) (bool, error)

IsBidActive is a free data retrieval call binding the contract method 0x1345df58.

Solidity: function isBidActive(bytes32 bidId_) view returns(bool)

func (*SessionRouterCaller) IsRightsDelegated

func (_SessionRouter *SessionRouterCaller) IsRightsDelegated(opts *bind.CallOpts, delegatee_ common.Address, delegator_ common.Address, rights_ [32]byte) (bool, error)

IsRightsDelegated is a free data retrieval call binding the contract method 0x54126b8f.

Solidity: function isRightsDelegated(address delegatee_, address delegator_, bytes32 rights_) view returns(bool)

func (*SessionRouterCaller) MINSESSIONDURATION

func (_SessionRouter *SessionRouterCaller) MINSESSIONDURATION(opts *bind.CallOpts) (uint32, error)

MINSESSIONDURATION is a free data retrieval call binding the contract method 0x7d980286.

Solidity: function MIN_SESSION_DURATION() view returns(uint32)

func (*SessionRouterCaller) Owner

func (_SessionRouter *SessionRouterCaller) 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 (*SessionRouterCaller) PROVIDERSSTORAGESLOT

func (_SessionRouter *SessionRouterCaller) PROVIDERSSTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

PROVIDERSSTORAGESLOT is a free data retrieval call binding the contract method 0xc51830f6.

Solidity: function PROVIDERS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCaller) SESSIONSSTORAGESLOT

func (_SessionRouter *SessionRouterCaller) SESSIONSSTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

SESSIONSSTORAGESLOT is a free data retrieval call binding the contract method 0xb392636e.

Solidity: function SESSIONS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCaller) SIGNATURETTL

func (_SessionRouter *SessionRouterCaller) SIGNATURETTL(opts *bind.CallOpts) (uint32, error)

SIGNATURETTL is a free data retrieval call binding the contract method 0xe7d791d0.

Solidity: function SIGNATURE_TTL() view returns(uint32)

func (*SessionRouterCaller) STATSSTORAGESLOT

func (_SessionRouter *SessionRouterCaller) STATSSTORAGESLOT(opts *bind.CallOpts) ([32]byte, error)

STATSSTORAGESLOT is a free data retrieval call binding the contract method 0x87040789.

Solidity: function STATS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCaller) StakeToStipend

func (_SessionRouter *SessionRouterCaller) StakeToStipend(opts *bind.CallOpts, amount_ *big.Int, timestamp_ *big.Int) (*big.Int, error)

StakeToStipend is a free data retrieval call binding the contract method 0xb3cb0d0f.

Solidity: function stakeToStipend(uint256 amount_, uint128 timestamp_) view returns(uint256)

func (*SessionRouterCaller) StartOfTheDay

func (_SessionRouter *SessionRouterCaller) StartOfTheDay(opts *bind.CallOpts, timestamp_ *big.Int) (*big.Int, error)

StartOfTheDay is a free data retrieval call binding the contract method 0xba26588c.

Solidity: function startOfTheDay(uint128 timestamp_) pure returns(uint128)

func (*SessionRouterCaller) StipendToStake

func (_SessionRouter *SessionRouterCaller) StipendToStake(opts *bind.CallOpts, stipend_ *big.Int, timestamp_ *big.Int) (*big.Int, error)

StipendToStake is a free data retrieval call binding the contract method 0xca40d45f.

Solidity: function stipendToStake(uint256 stipend_, uint128 timestamp_) view returns(uint256)

func (*SessionRouterCaller) TotalMORSupply

func (_SessionRouter *SessionRouterCaller) TotalMORSupply(opts *bind.CallOpts, timestamp_ *big.Int) (*big.Int, error)

TotalMORSupply is a free data retrieval call binding the contract method 0x6d0cfe5a.

Solidity: function totalMORSupply(uint128 timestamp_) view returns(uint256)

type SessionRouterCallerRaw

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

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

func (*SessionRouterCallerRaw) Call

func (_SessionRouter *SessionRouterCallerRaw) 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 SessionRouterCallerSession

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

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

func (*SessionRouterCallerSession) BIDSSTORAGESLOT

func (_SessionRouter *SessionRouterCallerSession) BIDSSTORAGESLOT() ([32]byte, error)

BIDSSTORAGESLOT is a free data retrieval call binding the contract method 0x266ccff0.

Solidity: function BIDS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCallerSession) COMPUTEPOOLINDEX

func (_SessionRouter *SessionRouterCallerSession) COMPUTEPOOLINDEX() (*big.Int, error)

COMPUTEPOOLINDEX is a free data retrieval call binding the contract method 0xc56d09a0.

Solidity: function COMPUTE_POOL_INDEX() view returns(uint256)

func (*SessionRouterCallerSession) DELEGATIONRULESMARKETPLACE

func (_SessionRouter *SessionRouterCallerSession) DELEGATIONRULESMARKETPLACE() ([32]byte, error)

DELEGATIONRULESMARKETPLACE is a free data retrieval call binding the contract method 0xad34a150.

Solidity: function DELEGATION_RULES_MARKETPLACE() view returns(bytes32)

func (*SessionRouterCallerSession) DELEGATIONRULESMODEL

func (_SessionRouter *SessionRouterCallerSession) DELEGATIONRULESMODEL() ([32]byte, error)

DELEGATIONRULESMODEL is a free data retrieval call binding the contract method 0x86878047.

Solidity: function DELEGATION_RULES_MODEL() view returns(bytes32)

func (*SessionRouterCallerSession) DELEGATIONRULESPROVIDER

func (_SessionRouter *SessionRouterCallerSession) DELEGATIONRULESPROVIDER() ([32]byte, error)

DELEGATIONRULESPROVIDER is a free data retrieval call binding the contract method 0x58aeef93.

Solidity: function DELEGATION_RULES_PROVIDER() view returns(bytes32)

func (*SessionRouterCallerSession) DELEGATIONRULESSESSION

func (_SessionRouter *SessionRouterCallerSession) DELEGATIONRULESSESSION() ([32]byte, error)

DELEGATIONRULESSESSION is a free data retrieval call binding the contract method 0xd1b43638.

Solidity: function DELEGATION_RULES_SESSION() view returns(bytes32)

func (*SessionRouterCallerSession) DELEGATIONSTORAGESLOT

func (_SessionRouter *SessionRouterCallerSession) DELEGATIONSTORAGESLOT() ([32]byte, error)

DELEGATIONSTORAGESLOT is a free data retrieval call binding the contract method 0xdd9b48cb.

Solidity: function DELEGATION_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCallerSession) DIAMONDOWNABLESTORAGESLOT

func (_SessionRouter *SessionRouterCallerSession) DIAMONDOWNABLESTORAGESLOT() ([32]byte, error)

DIAMONDOWNABLESTORAGESLOT is a free data retrieval call binding the contract method 0x4ac3371e.

Solidity: function DIAMOND_OWNABLE_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCallerSession) GetActiveProviders

func (_SessionRouter *SessionRouterCallerSession) GetActiveProviders(offset_ *big.Int, limit_ *big.Int) ([]common.Address, *big.Int, error)

GetActiveProviders is a free data retrieval call binding the contract method 0xd5472642.

Solidity: function getActiveProviders(uint256 offset_, uint256 limit_) view returns(address[], uint256)

func (*SessionRouterCallerSession) GetBid

func (_SessionRouter *SessionRouterCallerSession) GetBid(bidId_ [32]byte) (IBidStorageBid, error)

GetBid is a free data retrieval call binding the contract method 0x91704e1e.

Solidity: function getBid(bytes32 bidId_) view returns((address,bytes32,uint256,uint256,uint128,uint128))

func (*SessionRouterCallerSession) GetComputeBalance

func (_SessionRouter *SessionRouterCallerSession) GetComputeBalance(timestamp_ *big.Int) (*big.Int, error)

GetComputeBalance is a free data retrieval call binding the contract method 0x61ce471a.

Solidity: function getComputeBalance(uint128 timestamp_) view returns(uint256)

func (*SessionRouterCallerSession) GetFundingAccount

func (_SessionRouter *SessionRouterCallerSession) GetFundingAccount() (common.Address, error)

GetFundingAccount is a free data retrieval call binding the contract method 0x775c3727.

Solidity: function getFundingAccount() view returns(address)

func (*SessionRouterCallerSession) GetIsProviderActive

func (_SessionRouter *SessionRouterCallerSession) GetIsProviderActive(provider_ common.Address) (bool, error)

GetIsProviderActive is a free data retrieval call binding the contract method 0x63ef175d.

Solidity: function getIsProviderActive(address provider_) view returns(bool)

func (*SessionRouterCallerSession) GetIsProviderApprovalUsed

func (_SessionRouter *SessionRouterCallerSession) GetIsProviderApprovalUsed(approval_ []byte) (bool, error)

GetIsProviderApprovalUsed is a free data retrieval call binding the contract method 0xdb1cf1e2.

Solidity: function getIsProviderApprovalUsed(bytes approval_) view returns(bool)

func (*SessionRouterCallerSession) GetMaxSessionDuration

func (_SessionRouter *SessionRouterCallerSession) GetMaxSessionDuration() (*big.Int, error)

GetMaxSessionDuration is a free data retrieval call binding the contract method 0xa9756858.

Solidity: function getMaxSessionDuration() view returns(uint128)

func (*SessionRouterCallerSession) GetModelActiveBids

func (_SessionRouter *SessionRouterCallerSession) GetModelActiveBids(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelActiveBids is a free data retrieval call binding the contract method 0x8a683b6e.

Solidity: function getModelActiveBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCallerSession) GetModelBids

func (_SessionRouter *SessionRouterCallerSession) GetModelBids(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelBids is a free data retrieval call binding the contract method 0xfade17b1.

Solidity: function getModelBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCallerSession) GetModelSessions

func (_SessionRouter *SessionRouterCallerSession) GetModelSessions(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelSessions is a free data retrieval call binding the contract method 0x1d78a872.

Solidity: function getModelSessions(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCallerSession) GetModelStats

func (_SessionRouter *SessionRouterCallerSession) GetModelStats(modelId_ [32]byte) (IStatsStorageModelStats, error)

GetModelStats is a free data retrieval call binding the contract method 0xce535723.

Solidity: function getModelStats(bytes32 modelId_) view returns(((int64,int64),(int64,int64),(int64,int64),uint32))

func (*SessionRouterCallerSession) GetPool

func (_SessionRouter *SessionRouterCallerSession) GetPool(index_ *big.Int) (ISessionStoragePool, error)

GetPool is a free data retrieval call binding the contract method 0x068bcd8d.

Solidity: function getPool(uint256 index_) view returns((uint256,uint256,uint128,uint128))

func (*SessionRouterCallerSession) GetPools

func (_SessionRouter *SessionRouterCallerSession) GetPools() ([]ISessionStoragePool, error)

GetPools is a free data retrieval call binding the contract method 0x673a2a1f.

Solidity: function getPools() view returns((uint256,uint256,uint128,uint128)[])

func (*SessionRouterCallerSession) GetProvider

func (_SessionRouter *SessionRouterCallerSession) GetProvider(provider_ common.Address) (IProviderStorageProvider, error)

GetProvider is a free data retrieval call binding the contract method 0x55f21eb7.

Solidity: function getProvider(address provider_) view returns((string,uint256,uint128,uint128,uint256,bool))

func (*SessionRouterCallerSession) GetProviderActiveBids

func (_SessionRouter *SessionRouterCallerSession) GetProviderActiveBids(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderActiveBids is a free data retrieval call binding the contract method 0xaf5b77ca.

Solidity: function getProviderActiveBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCallerSession) GetProviderBids

func (_SessionRouter *SessionRouterCallerSession) GetProviderBids(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderBids is a free data retrieval call binding the contract method 0x59d435c4.

Solidity: function getProviderBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCallerSession) GetProviderMinimumStake

func (_SessionRouter *SessionRouterCallerSession) GetProviderMinimumStake() (*big.Int, error)

GetProviderMinimumStake is a free data retrieval call binding the contract method 0x53c029f6.

Solidity: function getProviderMinimumStake() view returns(uint256)

func (*SessionRouterCallerSession) GetProviderModelStats

func (_SessionRouter *SessionRouterCallerSession) GetProviderModelStats(modelId_ [32]byte, provider_ common.Address) (IStatsStorageProviderModelStats, error)

GetProviderModelStats is a free data retrieval call binding the contract method 0x1b26c116.

Solidity: function getProviderModelStats(bytes32 modelId_, address provider_) view returns(((int64,int64),(int64,int64),uint32,uint32,uint32))

func (*SessionRouterCallerSession) GetProviderSessions

func (_SessionRouter *SessionRouterCallerSession) GetProviderSessions(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderSessions is a free data retrieval call binding the contract method 0x87bced7d.

Solidity: function getProviderSessions(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCallerSession) GetProvidersTotalClaimed

func (_SessionRouter *SessionRouterCallerSession) GetProvidersTotalClaimed() (*big.Int, error)

GetProvidersTotalClaimed is a free data retrieval call binding the contract method 0xbdfbbada.

Solidity: function getProvidersTotalClaimed() view returns(uint256)

func (*SessionRouterCallerSession) GetRegistry

func (_SessionRouter *SessionRouterCallerSession) GetRegistry() (common.Address, error)

GetRegistry is a free data retrieval call binding the contract method 0x5ab1bd53.

Solidity: function getRegistry() view returns(address)

func (*SessionRouterCallerSession) GetSession

func (_SessionRouter *SessionRouterCallerSession) GetSession(sessionId_ [32]byte) (ISessionStorageSession, error)

GetSession is a free data retrieval call binding the contract method 0x39b240bd.

Solidity: function getSession(bytes32 sessionId_) view returns((address,bytes32,uint256,bytes,uint256,uint256,uint128,uint128,uint128,bool,bool))

func (*SessionRouterCallerSession) GetSessionEnd

func (_SessionRouter *SessionRouterCallerSession) GetSessionEnd(amount_ *big.Int, pricePerSecond_ *big.Int, openedAt_ *big.Int) (*big.Int, error)

GetSessionEnd is a free data retrieval call binding the contract method 0xb823dc8f.

Solidity: function getSessionEnd(uint256 amount_, uint256 pricePerSecond_, uint128 openedAt_) view returns(uint128)

func (*SessionRouterCallerSession) GetSessionId

func (_SessionRouter *SessionRouterCallerSession) GetSessionId(user_ common.Address, provider_ common.Address, bidId_ [32]byte, sessionNonce_ *big.Int) ([32]byte, error)

GetSessionId is a free data retrieval call binding the contract method 0x4d689ffd.

Solidity: function getSessionId(address user_, address provider_, bytes32 bidId_, uint256 sessionNonce_) pure returns(bytes32)

func (*SessionRouterCallerSession) GetTodaysBudget

func (_SessionRouter *SessionRouterCallerSession) GetTodaysBudget(timestamp_ *big.Int) (*big.Int, error)

GetTodaysBudget is a free data retrieval call binding the contract method 0x40005965.

Solidity: function getTodaysBudget(uint128 timestamp_) view returns(uint256)

func (*SessionRouterCallerSession) GetToken

func (_SessionRouter *SessionRouterCallerSession) GetToken() (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x21df0da7.

Solidity: function getToken() view returns(address)

func (*SessionRouterCallerSession) GetTotalSessions

func (_SessionRouter *SessionRouterCallerSession) GetTotalSessions(provider_ common.Address) (*big.Int, error)

GetTotalSessions is a free data retrieval call binding the contract method 0x76400935.

Solidity: function getTotalSessions(address provider_) view returns(uint256)

func (*SessionRouterCallerSession) GetUserSessions

func (_SessionRouter *SessionRouterCallerSession) GetUserSessions(user_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetUserSessions is a free data retrieval call binding the contract method 0xeb7764bb.

Solidity: function getUserSessions(address user_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterCallerSession) GetUserStakesOnHold

func (_SessionRouter *SessionRouterCallerSession) GetUserStakesOnHold(user_ common.Address, iterations_ uint8) (struct {
	Available *big.Int
	Hold      *big.Int
}, error)

GetUserStakesOnHold is a free data retrieval call binding the contract method 0x967885df.

Solidity: function getUserStakesOnHold(address user_, uint8 iterations_) view returns(uint256 available_, uint256 hold_)

func (*SessionRouterCallerSession) IsBidActive

func (_SessionRouter *SessionRouterCallerSession) IsBidActive(bidId_ [32]byte) (bool, error)

IsBidActive is a free data retrieval call binding the contract method 0x1345df58.

Solidity: function isBidActive(bytes32 bidId_) view returns(bool)

func (*SessionRouterCallerSession) IsRightsDelegated

func (_SessionRouter *SessionRouterCallerSession) IsRightsDelegated(delegatee_ common.Address, delegator_ common.Address, rights_ [32]byte) (bool, error)

IsRightsDelegated is a free data retrieval call binding the contract method 0x54126b8f.

Solidity: function isRightsDelegated(address delegatee_, address delegator_, bytes32 rights_) view returns(bool)

func (*SessionRouterCallerSession) MINSESSIONDURATION

func (_SessionRouter *SessionRouterCallerSession) MINSESSIONDURATION() (uint32, error)

MINSESSIONDURATION is a free data retrieval call binding the contract method 0x7d980286.

Solidity: function MIN_SESSION_DURATION() view returns(uint32)

func (*SessionRouterCallerSession) Owner

func (_SessionRouter *SessionRouterCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SessionRouterCallerSession) PROVIDERSSTORAGESLOT

func (_SessionRouter *SessionRouterCallerSession) PROVIDERSSTORAGESLOT() ([32]byte, error)

PROVIDERSSTORAGESLOT is a free data retrieval call binding the contract method 0xc51830f6.

Solidity: function PROVIDERS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCallerSession) SESSIONSSTORAGESLOT

func (_SessionRouter *SessionRouterCallerSession) SESSIONSSTORAGESLOT() ([32]byte, error)

SESSIONSSTORAGESLOT is a free data retrieval call binding the contract method 0xb392636e.

Solidity: function SESSIONS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCallerSession) SIGNATURETTL

func (_SessionRouter *SessionRouterCallerSession) SIGNATURETTL() (uint32, error)

SIGNATURETTL is a free data retrieval call binding the contract method 0xe7d791d0.

Solidity: function SIGNATURE_TTL() view returns(uint32)

func (*SessionRouterCallerSession) STATSSTORAGESLOT

func (_SessionRouter *SessionRouterCallerSession) STATSSTORAGESLOT() ([32]byte, error)

STATSSTORAGESLOT is a free data retrieval call binding the contract method 0x87040789.

Solidity: function STATS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterCallerSession) StakeToStipend

func (_SessionRouter *SessionRouterCallerSession) StakeToStipend(amount_ *big.Int, timestamp_ *big.Int) (*big.Int, error)

StakeToStipend is a free data retrieval call binding the contract method 0xb3cb0d0f.

Solidity: function stakeToStipend(uint256 amount_, uint128 timestamp_) view returns(uint256)

func (*SessionRouterCallerSession) StartOfTheDay

func (_SessionRouter *SessionRouterCallerSession) StartOfTheDay(timestamp_ *big.Int) (*big.Int, error)

StartOfTheDay is a free data retrieval call binding the contract method 0xba26588c.

Solidity: function startOfTheDay(uint128 timestamp_) pure returns(uint128)

func (*SessionRouterCallerSession) StipendToStake

func (_SessionRouter *SessionRouterCallerSession) StipendToStake(stipend_ *big.Int, timestamp_ *big.Int) (*big.Int, error)

StipendToStake is a free data retrieval call binding the contract method 0xca40d45f.

Solidity: function stipendToStake(uint256 stipend_, uint128 timestamp_) view returns(uint256)

func (*SessionRouterCallerSession) TotalMORSupply

func (_SessionRouter *SessionRouterCallerSession) TotalMORSupply(timestamp_ *big.Int) (*big.Int, error)

TotalMORSupply is a free data retrieval call binding the contract method 0x6d0cfe5a.

Solidity: function totalMORSupply(uint128 timestamp_) view returns(uint256)

type SessionRouterFilterer

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

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

func NewSessionRouterFilterer

func NewSessionRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*SessionRouterFilterer, error)

NewSessionRouterFilterer creates a new log filterer instance of SessionRouter, bound to a specific deployed contract.

func (*SessionRouterFilterer) FilterInitialized

func (_SessionRouter *SessionRouterFilterer) FilterInitialized(opts *bind.FilterOpts) (*SessionRouterInitializedIterator, error)

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

Solidity: event Initialized(bytes32 storageSlot)

func (*SessionRouterFilterer) FilterSessionClosed

func (_SessionRouter *SessionRouterFilterer) FilterSessionClosed(opts *bind.FilterOpts, user []common.Address, sessionId [][32]byte, providerId []common.Address) (*SessionRouterSessionClosedIterator, error)

FilterSessionClosed is a free log retrieval operation binding the contract event 0x337fbb0a41a596db800dc836595a57815f967185e3596615c646f2455ac3914a.

Solidity: event SessionClosed(address indexed user, bytes32 indexed sessionId, address indexed providerId)

func (*SessionRouterFilterer) FilterSessionOpened

func (_SessionRouter *SessionRouterFilterer) FilterSessionOpened(opts *bind.FilterOpts, user []common.Address, sessionId [][32]byte, providerId []common.Address) (*SessionRouterSessionOpenedIterator, error)

FilterSessionOpened is a free log retrieval operation binding the contract event 0x2bd7c890baf595977d256a6e784512c873ac58ba612b4895dbb7f784bfbf4839.

Solidity: event SessionOpened(address indexed user, bytes32 indexed sessionId, address indexed providerId)

func (*SessionRouterFilterer) FilterUserWithdrawn

func (_SessionRouter *SessionRouterFilterer) FilterUserWithdrawn(opts *bind.FilterOpts, user []common.Address) (*SessionRouterUserWithdrawnIterator, error)

FilterUserWithdrawn is a free log retrieval operation binding the contract event 0xe6b386172074b393dc04ed6cb1a352475ffad5dd8cebc76231a3b683141ea6fb.

Solidity: event UserWithdrawn(address indexed user, uint256 amount_)

func (*SessionRouterFilterer) ParseInitialized

func (_SessionRouter *SessionRouterFilterer) ParseInitialized(log types.Log) (*SessionRouterInitialized, error)

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

Solidity: event Initialized(bytes32 storageSlot)

func (*SessionRouterFilterer) ParseSessionClosed

func (_SessionRouter *SessionRouterFilterer) ParseSessionClosed(log types.Log) (*SessionRouterSessionClosed, error)

ParseSessionClosed is a log parse operation binding the contract event 0x337fbb0a41a596db800dc836595a57815f967185e3596615c646f2455ac3914a.

Solidity: event SessionClosed(address indexed user, bytes32 indexed sessionId, address indexed providerId)

func (*SessionRouterFilterer) ParseSessionOpened

func (_SessionRouter *SessionRouterFilterer) ParseSessionOpened(log types.Log) (*SessionRouterSessionOpened, error)

ParseSessionOpened is a log parse operation binding the contract event 0x2bd7c890baf595977d256a6e784512c873ac58ba612b4895dbb7f784bfbf4839.

Solidity: event SessionOpened(address indexed user, bytes32 indexed sessionId, address indexed providerId)

func (*SessionRouterFilterer) ParseUserWithdrawn

func (_SessionRouter *SessionRouterFilterer) ParseUserWithdrawn(log types.Log) (*SessionRouterUserWithdrawn, error)

ParseUserWithdrawn is a log parse operation binding the contract event 0xe6b386172074b393dc04ed6cb1a352475ffad5dd8cebc76231a3b683141ea6fb.

Solidity: event UserWithdrawn(address indexed user, uint256 amount_)

func (*SessionRouterFilterer) WatchInitialized

func (_SessionRouter *SessionRouterFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *SessionRouterInitialized) (event.Subscription, error)

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

Solidity: event Initialized(bytes32 storageSlot)

func (*SessionRouterFilterer) WatchSessionClosed

func (_SessionRouter *SessionRouterFilterer) WatchSessionClosed(opts *bind.WatchOpts, sink chan<- *SessionRouterSessionClosed, user []common.Address, sessionId [][32]byte, providerId []common.Address) (event.Subscription, error)

WatchSessionClosed is a free log subscription operation binding the contract event 0x337fbb0a41a596db800dc836595a57815f967185e3596615c646f2455ac3914a.

Solidity: event SessionClosed(address indexed user, bytes32 indexed sessionId, address indexed providerId)

func (*SessionRouterFilterer) WatchSessionOpened

func (_SessionRouter *SessionRouterFilterer) WatchSessionOpened(opts *bind.WatchOpts, sink chan<- *SessionRouterSessionOpened, user []common.Address, sessionId [][32]byte, providerId []common.Address) (event.Subscription, error)

WatchSessionOpened is a free log subscription operation binding the contract event 0x2bd7c890baf595977d256a6e784512c873ac58ba612b4895dbb7f784bfbf4839.

Solidity: event SessionOpened(address indexed user, bytes32 indexed sessionId, address indexed providerId)

func (*SessionRouterFilterer) WatchUserWithdrawn

func (_SessionRouter *SessionRouterFilterer) WatchUserWithdrawn(opts *bind.WatchOpts, sink chan<- *SessionRouterUserWithdrawn, user []common.Address) (event.Subscription, error)

WatchUserWithdrawn is a free log subscription operation binding the contract event 0xe6b386172074b393dc04ed6cb1a352475ffad5dd8cebc76231a3b683141ea6fb.

Solidity: event UserWithdrawn(address indexed user, uint256 amount_)

type SessionRouterInitialized

type SessionRouterInitialized struct {
	StorageSlot [32]byte
	Raw         types.Log // Blockchain specific contextual infos
}

SessionRouterInitialized represents a Initialized event raised by the SessionRouter contract.

type SessionRouterInitializedIterator

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

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

func (*SessionRouterInitializedIterator) Close

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

func (*SessionRouterInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SessionRouterInitializedIterator) 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 SessionRouterRaw

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

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

func (*SessionRouterRaw) Call

func (_SessionRouter *SessionRouterRaw) 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 (*SessionRouterRaw) Transact

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

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

func (*SessionRouterRaw) Transfer

func (_SessionRouter *SessionRouterRaw) 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 SessionRouterSession

type SessionRouterSession struct {
	Contract     *SessionRouter    // 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
}

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

func (*SessionRouterSession) BIDSSTORAGESLOT

func (_SessionRouter *SessionRouterSession) BIDSSTORAGESLOT() ([32]byte, error)

BIDSSTORAGESLOT is a free data retrieval call binding the contract method 0x266ccff0.

Solidity: function BIDS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterSession) COMPUTEPOOLINDEX

func (_SessionRouter *SessionRouterSession) COMPUTEPOOLINDEX() (*big.Int, error)

COMPUTEPOOLINDEX is a free data retrieval call binding the contract method 0xc56d09a0.

Solidity: function COMPUTE_POOL_INDEX() view returns(uint256)

func (*SessionRouterSession) ClaimForProvider

func (_SessionRouter *SessionRouterSession) ClaimForProvider(sessionId_ [32]byte) (*types.Transaction, error)

ClaimForProvider is a paid mutator transaction binding the contract method 0xf2e96e8e.

Solidity: function claimForProvider(bytes32 sessionId_) returns()

func (*SessionRouterSession) CloseSession

func (_SessionRouter *SessionRouterSession) CloseSession(receiptEncoded_ []byte, signature_ []byte) (*types.Transaction, error)

CloseSession is a paid mutator transaction binding the contract method 0x42f77a31.

Solidity: function closeSession(bytes receiptEncoded_, bytes signature_) returns()

func (*SessionRouterSession) DELEGATIONRULESMARKETPLACE

func (_SessionRouter *SessionRouterSession) DELEGATIONRULESMARKETPLACE() ([32]byte, error)

DELEGATIONRULESMARKETPLACE is a free data retrieval call binding the contract method 0xad34a150.

Solidity: function DELEGATION_RULES_MARKETPLACE() view returns(bytes32)

func (*SessionRouterSession) DELEGATIONRULESMODEL

func (_SessionRouter *SessionRouterSession) DELEGATIONRULESMODEL() ([32]byte, error)

DELEGATIONRULESMODEL is a free data retrieval call binding the contract method 0x86878047.

Solidity: function DELEGATION_RULES_MODEL() view returns(bytes32)

func (*SessionRouterSession) DELEGATIONRULESPROVIDER

func (_SessionRouter *SessionRouterSession) DELEGATIONRULESPROVIDER() ([32]byte, error)

DELEGATIONRULESPROVIDER is a free data retrieval call binding the contract method 0x58aeef93.

Solidity: function DELEGATION_RULES_PROVIDER() view returns(bytes32)

func (*SessionRouterSession) DELEGATIONRULESSESSION

func (_SessionRouter *SessionRouterSession) DELEGATIONRULESSESSION() ([32]byte, error)

DELEGATIONRULESSESSION is a free data retrieval call binding the contract method 0xd1b43638.

Solidity: function DELEGATION_RULES_SESSION() view returns(bytes32)

func (*SessionRouterSession) DELEGATIONSTORAGESLOT

func (_SessionRouter *SessionRouterSession) DELEGATIONSTORAGESLOT() ([32]byte, error)

DELEGATIONSTORAGESLOT is a free data retrieval call binding the contract method 0xdd9b48cb.

Solidity: function DELEGATION_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterSession) DIAMONDOWNABLESTORAGESLOT

func (_SessionRouter *SessionRouterSession) DIAMONDOWNABLESTORAGESLOT() ([32]byte, error)

DIAMONDOWNABLESTORAGESLOT is a free data retrieval call binding the contract method 0x4ac3371e.

Solidity: function DIAMOND_OWNABLE_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterSession) GetActiveProviders

func (_SessionRouter *SessionRouterSession) GetActiveProviders(offset_ *big.Int, limit_ *big.Int) ([]common.Address, *big.Int, error)

GetActiveProviders is a free data retrieval call binding the contract method 0xd5472642.

Solidity: function getActiveProviders(uint256 offset_, uint256 limit_) view returns(address[], uint256)

func (*SessionRouterSession) GetBid

func (_SessionRouter *SessionRouterSession) GetBid(bidId_ [32]byte) (IBidStorageBid, error)

GetBid is a free data retrieval call binding the contract method 0x91704e1e.

Solidity: function getBid(bytes32 bidId_) view returns((address,bytes32,uint256,uint256,uint128,uint128))

func (*SessionRouterSession) GetComputeBalance

func (_SessionRouter *SessionRouterSession) GetComputeBalance(timestamp_ *big.Int) (*big.Int, error)

GetComputeBalance is a free data retrieval call binding the contract method 0x61ce471a.

Solidity: function getComputeBalance(uint128 timestamp_) view returns(uint256)

func (*SessionRouterSession) GetFundingAccount

func (_SessionRouter *SessionRouterSession) GetFundingAccount() (common.Address, error)

GetFundingAccount is a free data retrieval call binding the contract method 0x775c3727.

Solidity: function getFundingAccount() view returns(address)

func (*SessionRouterSession) GetIsProviderActive

func (_SessionRouter *SessionRouterSession) GetIsProviderActive(provider_ common.Address) (bool, error)

GetIsProviderActive is a free data retrieval call binding the contract method 0x63ef175d.

Solidity: function getIsProviderActive(address provider_) view returns(bool)

func (*SessionRouterSession) GetIsProviderApprovalUsed

func (_SessionRouter *SessionRouterSession) GetIsProviderApprovalUsed(approval_ []byte) (bool, error)

GetIsProviderApprovalUsed is a free data retrieval call binding the contract method 0xdb1cf1e2.

Solidity: function getIsProviderApprovalUsed(bytes approval_) view returns(bool)

func (*SessionRouterSession) GetMaxSessionDuration

func (_SessionRouter *SessionRouterSession) GetMaxSessionDuration() (*big.Int, error)

GetMaxSessionDuration is a free data retrieval call binding the contract method 0xa9756858.

Solidity: function getMaxSessionDuration() view returns(uint128)

func (*SessionRouterSession) GetModelActiveBids

func (_SessionRouter *SessionRouterSession) GetModelActiveBids(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelActiveBids is a free data retrieval call binding the contract method 0x8a683b6e.

Solidity: function getModelActiveBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterSession) GetModelBids

func (_SessionRouter *SessionRouterSession) GetModelBids(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelBids is a free data retrieval call binding the contract method 0xfade17b1.

Solidity: function getModelBids(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterSession) GetModelSessions

func (_SessionRouter *SessionRouterSession) GetModelSessions(modelId_ [32]byte, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetModelSessions is a free data retrieval call binding the contract method 0x1d78a872.

Solidity: function getModelSessions(bytes32 modelId_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterSession) GetModelStats

func (_SessionRouter *SessionRouterSession) GetModelStats(modelId_ [32]byte) (IStatsStorageModelStats, error)

GetModelStats is a free data retrieval call binding the contract method 0xce535723.

Solidity: function getModelStats(bytes32 modelId_) view returns(((int64,int64),(int64,int64),(int64,int64),uint32))

func (*SessionRouterSession) GetPool

func (_SessionRouter *SessionRouterSession) GetPool(index_ *big.Int) (ISessionStoragePool, error)

GetPool is a free data retrieval call binding the contract method 0x068bcd8d.

Solidity: function getPool(uint256 index_) view returns((uint256,uint256,uint128,uint128))

func (*SessionRouterSession) GetPools

func (_SessionRouter *SessionRouterSession) GetPools() ([]ISessionStoragePool, error)

GetPools is a free data retrieval call binding the contract method 0x673a2a1f.

Solidity: function getPools() view returns((uint256,uint256,uint128,uint128)[])

func (*SessionRouterSession) GetProvider

func (_SessionRouter *SessionRouterSession) GetProvider(provider_ common.Address) (IProviderStorageProvider, error)

GetProvider is a free data retrieval call binding the contract method 0x55f21eb7.

Solidity: function getProvider(address provider_) view returns((string,uint256,uint128,uint128,uint256,bool))

func (*SessionRouterSession) GetProviderActiveBids

func (_SessionRouter *SessionRouterSession) GetProviderActiveBids(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderActiveBids is a free data retrieval call binding the contract method 0xaf5b77ca.

Solidity: function getProviderActiveBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterSession) GetProviderBids

func (_SessionRouter *SessionRouterSession) GetProviderBids(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderBids is a free data retrieval call binding the contract method 0x59d435c4.

Solidity: function getProviderBids(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterSession) GetProviderMinimumStake

func (_SessionRouter *SessionRouterSession) GetProviderMinimumStake() (*big.Int, error)

GetProviderMinimumStake is a free data retrieval call binding the contract method 0x53c029f6.

Solidity: function getProviderMinimumStake() view returns(uint256)

func (*SessionRouterSession) GetProviderModelStats

func (_SessionRouter *SessionRouterSession) GetProviderModelStats(modelId_ [32]byte, provider_ common.Address) (IStatsStorageProviderModelStats, error)

GetProviderModelStats is a free data retrieval call binding the contract method 0x1b26c116.

Solidity: function getProviderModelStats(bytes32 modelId_, address provider_) view returns(((int64,int64),(int64,int64),uint32,uint32,uint32))

func (*SessionRouterSession) GetProviderSessions

func (_SessionRouter *SessionRouterSession) GetProviderSessions(provider_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetProviderSessions is a free data retrieval call binding the contract method 0x87bced7d.

Solidity: function getProviderSessions(address provider_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterSession) GetProvidersTotalClaimed

func (_SessionRouter *SessionRouterSession) GetProvidersTotalClaimed() (*big.Int, error)

GetProvidersTotalClaimed is a free data retrieval call binding the contract method 0xbdfbbada.

Solidity: function getProvidersTotalClaimed() view returns(uint256)

func (*SessionRouterSession) GetRegistry

func (_SessionRouter *SessionRouterSession) GetRegistry() (common.Address, error)

GetRegistry is a free data retrieval call binding the contract method 0x5ab1bd53.

Solidity: function getRegistry() view returns(address)

func (*SessionRouterSession) GetSession

func (_SessionRouter *SessionRouterSession) GetSession(sessionId_ [32]byte) (ISessionStorageSession, error)

GetSession is a free data retrieval call binding the contract method 0x39b240bd.

Solidity: function getSession(bytes32 sessionId_) view returns((address,bytes32,uint256,bytes,uint256,uint256,uint128,uint128,uint128,bool,bool))

func (*SessionRouterSession) GetSessionEnd

func (_SessionRouter *SessionRouterSession) GetSessionEnd(amount_ *big.Int, pricePerSecond_ *big.Int, openedAt_ *big.Int) (*big.Int, error)

GetSessionEnd is a free data retrieval call binding the contract method 0xb823dc8f.

Solidity: function getSessionEnd(uint256 amount_, uint256 pricePerSecond_, uint128 openedAt_) view returns(uint128)

func (*SessionRouterSession) GetSessionId

func (_SessionRouter *SessionRouterSession) GetSessionId(user_ common.Address, provider_ common.Address, bidId_ [32]byte, sessionNonce_ *big.Int) ([32]byte, error)

GetSessionId is a free data retrieval call binding the contract method 0x4d689ffd.

Solidity: function getSessionId(address user_, address provider_, bytes32 bidId_, uint256 sessionNonce_) pure returns(bytes32)

func (*SessionRouterSession) GetTodaysBudget

func (_SessionRouter *SessionRouterSession) GetTodaysBudget(timestamp_ *big.Int) (*big.Int, error)

GetTodaysBudget is a free data retrieval call binding the contract method 0x40005965.

Solidity: function getTodaysBudget(uint128 timestamp_) view returns(uint256)

func (*SessionRouterSession) GetToken

func (_SessionRouter *SessionRouterSession) GetToken() (common.Address, error)

GetToken is a free data retrieval call binding the contract method 0x21df0da7.

Solidity: function getToken() view returns(address)

func (*SessionRouterSession) GetTotalSessions

func (_SessionRouter *SessionRouterSession) GetTotalSessions(provider_ common.Address) (*big.Int, error)

GetTotalSessions is a free data retrieval call binding the contract method 0x76400935.

Solidity: function getTotalSessions(address provider_) view returns(uint256)

func (*SessionRouterSession) GetUserSessions

func (_SessionRouter *SessionRouterSession) GetUserSessions(user_ common.Address, offset_ *big.Int, limit_ *big.Int) ([][32]byte, *big.Int, error)

GetUserSessions is a free data retrieval call binding the contract method 0xeb7764bb.

Solidity: function getUserSessions(address user_, uint256 offset_, uint256 limit_) view returns(bytes32[], uint256)

func (*SessionRouterSession) GetUserStakesOnHold

func (_SessionRouter *SessionRouterSession) GetUserStakesOnHold(user_ common.Address, iterations_ uint8) (struct {
	Available *big.Int
	Hold      *big.Int
}, error)

GetUserStakesOnHold is a free data retrieval call binding the contract method 0x967885df.

Solidity: function getUserStakesOnHold(address user_, uint8 iterations_) view returns(uint256 available_, uint256 hold_)

func (*SessionRouterSession) IsBidActive

func (_SessionRouter *SessionRouterSession) IsBidActive(bidId_ [32]byte) (bool, error)

IsBidActive is a free data retrieval call binding the contract method 0x1345df58.

Solidity: function isBidActive(bytes32 bidId_) view returns(bool)

func (*SessionRouterSession) IsRightsDelegated

func (_SessionRouter *SessionRouterSession) IsRightsDelegated(delegatee_ common.Address, delegator_ common.Address, rights_ [32]byte) (bool, error)

IsRightsDelegated is a free data retrieval call binding the contract method 0x54126b8f.

Solidity: function isRightsDelegated(address delegatee_, address delegator_, bytes32 rights_) view returns(bool)

func (*SessionRouterSession) MINSESSIONDURATION

func (_SessionRouter *SessionRouterSession) MINSESSIONDURATION() (uint32, error)

MINSESSIONDURATION is a free data retrieval call binding the contract method 0x7d980286.

Solidity: function MIN_SESSION_DURATION() view returns(uint32)

func (*SessionRouterSession) OpenSession

func (_SessionRouter *SessionRouterSession) OpenSession(user_ common.Address, amount_ *big.Int, isDirectPaymentFromUser_ bool, approvalEncoded_ []byte, signature_ []byte) (*types.Transaction, error)

OpenSession is a paid mutator transaction binding the contract method 0xa85a1782.

Solidity: function openSession(address user_, uint256 amount_, bool isDirectPaymentFromUser_, bytes approvalEncoded_, bytes signature_) returns(bytes32)

func (*SessionRouterSession) Owner

func (_SessionRouter *SessionRouterSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*SessionRouterSession) PROVIDERSSTORAGESLOT

func (_SessionRouter *SessionRouterSession) PROVIDERSSTORAGESLOT() ([32]byte, error)

PROVIDERSSTORAGESLOT is a free data retrieval call binding the contract method 0xc51830f6.

Solidity: function PROVIDERS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterSession) SESSIONSSTORAGESLOT

func (_SessionRouter *SessionRouterSession) SESSIONSSTORAGESLOT() ([32]byte, error)

SESSIONSSTORAGESLOT is a free data retrieval call binding the contract method 0xb392636e.

Solidity: function SESSIONS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterSession) SIGNATURETTL

func (_SessionRouter *SessionRouterSession) SIGNATURETTL() (uint32, error)

SIGNATURETTL is a free data retrieval call binding the contract method 0xe7d791d0.

Solidity: function SIGNATURE_TTL() view returns(uint32)

func (*SessionRouterSession) STATSSTORAGESLOT

func (_SessionRouter *SessionRouterSession) STATSSTORAGESLOT() ([32]byte, error)

STATSSTORAGESLOT is a free data retrieval call binding the contract method 0x87040789.

Solidity: function STATS_STORAGE_SLOT() view returns(bytes32)

func (*SessionRouterSession) SessionRouterInit

func (_SessionRouter *SessionRouterSession) SessionRouterInit(fundingAccount_ common.Address, maxSessionDuration_ *big.Int, pools_ []ISessionStoragePool) (*types.Transaction, error)

SessionRouterInit is a paid mutator transaction binding the contract method 0xf8ba944b.

Solidity: function __SessionRouter_init(address fundingAccount_, uint128 maxSessionDuration_, (uint256,uint256,uint128,uint128)[] pools_) returns()

func (*SessionRouterSession) SetMaxSessionDuration

func (_SessionRouter *SessionRouterSession) SetMaxSessionDuration(maxSessionDuration_ *big.Int) (*types.Transaction, error)

SetMaxSessionDuration is a paid mutator transaction binding the contract method 0xe8664577.

Solidity: function setMaxSessionDuration(uint128 maxSessionDuration_) returns()

func (*SessionRouterSession) SetPoolConfig

func (_SessionRouter *SessionRouterSession) SetPoolConfig(index_ *big.Int, pool_ ISessionStoragePool) (*types.Transaction, error)

SetPoolConfig is a paid mutator transaction binding the contract method 0xd7178753.

Solidity: function setPoolConfig(uint256 index_, (uint256,uint256,uint128,uint128) pool_) returns()

func (*SessionRouterSession) StakeToStipend

func (_SessionRouter *SessionRouterSession) StakeToStipend(amount_ *big.Int, timestamp_ *big.Int) (*big.Int, error)

StakeToStipend is a free data retrieval call binding the contract method 0xb3cb0d0f.

Solidity: function stakeToStipend(uint256 amount_, uint128 timestamp_) view returns(uint256)

func (*SessionRouterSession) StartOfTheDay

func (_SessionRouter *SessionRouterSession) StartOfTheDay(timestamp_ *big.Int) (*big.Int, error)

StartOfTheDay is a free data retrieval call binding the contract method 0xba26588c.

Solidity: function startOfTheDay(uint128 timestamp_) pure returns(uint128)

func (*SessionRouterSession) StipendToStake

func (_SessionRouter *SessionRouterSession) StipendToStake(stipend_ *big.Int, timestamp_ *big.Int) (*big.Int, error)

StipendToStake is a free data retrieval call binding the contract method 0xca40d45f.

Solidity: function stipendToStake(uint256 stipend_, uint128 timestamp_) view returns(uint256)

func (*SessionRouterSession) TotalMORSupply

func (_SessionRouter *SessionRouterSession) TotalMORSupply(timestamp_ *big.Int) (*big.Int, error)

TotalMORSupply is a free data retrieval call binding the contract method 0x6d0cfe5a.

Solidity: function totalMORSupply(uint128 timestamp_) view returns(uint256)

func (*SessionRouterSession) WithdrawUserStakes

func (_SessionRouter *SessionRouterSession) WithdrawUserStakes(user_ common.Address, iterations_ uint8) (*types.Transaction, error)

WithdrawUserStakes is a paid mutator transaction binding the contract method 0xa98a7c6b.

Solidity: function withdrawUserStakes(address user_, uint8 iterations_) returns()

type SessionRouterSessionClosed

type SessionRouterSessionClosed struct {
	User       common.Address
	SessionId  [32]byte
	ProviderId common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

SessionRouterSessionClosed represents a SessionClosed event raised by the SessionRouter contract.

type SessionRouterSessionClosedIterator

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

SessionRouterSessionClosedIterator is returned from FilterSessionClosed and is used to iterate over the raw logs and unpacked data for SessionClosed events raised by the SessionRouter contract.

func (*SessionRouterSessionClosedIterator) Close

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

func (*SessionRouterSessionClosedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SessionRouterSessionClosedIterator) 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 SessionRouterSessionOpened

type SessionRouterSessionOpened struct {
	User       common.Address
	SessionId  [32]byte
	ProviderId common.Address
	Raw        types.Log // Blockchain specific contextual infos
}

SessionRouterSessionOpened represents a SessionOpened event raised by the SessionRouter contract.

type SessionRouterSessionOpenedIterator

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

SessionRouterSessionOpenedIterator is returned from FilterSessionOpened and is used to iterate over the raw logs and unpacked data for SessionOpened events raised by the SessionRouter contract.

func (*SessionRouterSessionOpenedIterator) Close

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

func (*SessionRouterSessionOpenedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SessionRouterSessionOpenedIterator) 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 SessionRouterTransactor

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

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

func NewSessionRouterTransactor

func NewSessionRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*SessionRouterTransactor, error)

NewSessionRouterTransactor creates a new write-only instance of SessionRouter, bound to a specific deployed contract.

func (*SessionRouterTransactor) ClaimForProvider

func (_SessionRouter *SessionRouterTransactor) ClaimForProvider(opts *bind.TransactOpts, sessionId_ [32]byte) (*types.Transaction, error)

ClaimForProvider is a paid mutator transaction binding the contract method 0xf2e96e8e.

Solidity: function claimForProvider(bytes32 sessionId_) returns()

func (*SessionRouterTransactor) CloseSession

func (_SessionRouter *SessionRouterTransactor) CloseSession(opts *bind.TransactOpts, receiptEncoded_ []byte, signature_ []byte) (*types.Transaction, error)

CloseSession is a paid mutator transaction binding the contract method 0x42f77a31.

Solidity: function closeSession(bytes receiptEncoded_, bytes signature_) returns()

func (*SessionRouterTransactor) OpenSession

func (_SessionRouter *SessionRouterTransactor) OpenSession(opts *bind.TransactOpts, user_ common.Address, amount_ *big.Int, isDirectPaymentFromUser_ bool, approvalEncoded_ []byte, signature_ []byte) (*types.Transaction, error)

OpenSession is a paid mutator transaction binding the contract method 0xa85a1782.

Solidity: function openSession(address user_, uint256 amount_, bool isDirectPaymentFromUser_, bytes approvalEncoded_, bytes signature_) returns(bytes32)

func (*SessionRouterTransactor) SessionRouterInit

func (_SessionRouter *SessionRouterTransactor) SessionRouterInit(opts *bind.TransactOpts, fundingAccount_ common.Address, maxSessionDuration_ *big.Int, pools_ []ISessionStoragePool) (*types.Transaction, error)

SessionRouterInit is a paid mutator transaction binding the contract method 0xf8ba944b.

Solidity: function __SessionRouter_init(address fundingAccount_, uint128 maxSessionDuration_, (uint256,uint256,uint128,uint128)[] pools_) returns()

func (*SessionRouterTransactor) SetMaxSessionDuration

func (_SessionRouter *SessionRouterTransactor) SetMaxSessionDuration(opts *bind.TransactOpts, maxSessionDuration_ *big.Int) (*types.Transaction, error)

SetMaxSessionDuration is a paid mutator transaction binding the contract method 0xe8664577.

Solidity: function setMaxSessionDuration(uint128 maxSessionDuration_) returns()

func (*SessionRouterTransactor) SetPoolConfig

func (_SessionRouter *SessionRouterTransactor) SetPoolConfig(opts *bind.TransactOpts, index_ *big.Int, pool_ ISessionStoragePool) (*types.Transaction, error)

SetPoolConfig is a paid mutator transaction binding the contract method 0xd7178753.

Solidity: function setPoolConfig(uint256 index_, (uint256,uint256,uint128,uint128) pool_) returns()

func (*SessionRouterTransactor) WithdrawUserStakes

func (_SessionRouter *SessionRouterTransactor) WithdrawUserStakes(opts *bind.TransactOpts, user_ common.Address, iterations_ uint8) (*types.Transaction, error)

WithdrawUserStakes is a paid mutator transaction binding the contract method 0xa98a7c6b.

Solidity: function withdrawUserStakes(address user_, uint8 iterations_) returns()

type SessionRouterTransactorRaw

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

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

func (*SessionRouterTransactorRaw) Transact

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

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

func (*SessionRouterTransactorRaw) Transfer

func (_SessionRouter *SessionRouterTransactorRaw) 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 SessionRouterTransactorSession

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

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

func (*SessionRouterTransactorSession) ClaimForProvider

func (_SessionRouter *SessionRouterTransactorSession) ClaimForProvider(sessionId_ [32]byte) (*types.Transaction, error)

ClaimForProvider is a paid mutator transaction binding the contract method 0xf2e96e8e.

Solidity: function claimForProvider(bytes32 sessionId_) returns()

func (*SessionRouterTransactorSession) CloseSession

func (_SessionRouter *SessionRouterTransactorSession) CloseSession(receiptEncoded_ []byte, signature_ []byte) (*types.Transaction, error)

CloseSession is a paid mutator transaction binding the contract method 0x42f77a31.

Solidity: function closeSession(bytes receiptEncoded_, bytes signature_) returns()

func (*SessionRouterTransactorSession) OpenSession

func (_SessionRouter *SessionRouterTransactorSession) OpenSession(user_ common.Address, amount_ *big.Int, isDirectPaymentFromUser_ bool, approvalEncoded_ []byte, signature_ []byte) (*types.Transaction, error)

OpenSession is a paid mutator transaction binding the contract method 0xa85a1782.

Solidity: function openSession(address user_, uint256 amount_, bool isDirectPaymentFromUser_, bytes approvalEncoded_, bytes signature_) returns(bytes32)

func (*SessionRouterTransactorSession) SessionRouterInit

func (_SessionRouter *SessionRouterTransactorSession) SessionRouterInit(fundingAccount_ common.Address, maxSessionDuration_ *big.Int, pools_ []ISessionStoragePool) (*types.Transaction, error)

SessionRouterInit is a paid mutator transaction binding the contract method 0xf8ba944b.

Solidity: function __SessionRouter_init(address fundingAccount_, uint128 maxSessionDuration_, (uint256,uint256,uint128,uint128)[] pools_) returns()

func (*SessionRouterTransactorSession) SetMaxSessionDuration

func (_SessionRouter *SessionRouterTransactorSession) SetMaxSessionDuration(maxSessionDuration_ *big.Int) (*types.Transaction, error)

SetMaxSessionDuration is a paid mutator transaction binding the contract method 0xe8664577.

Solidity: function setMaxSessionDuration(uint128 maxSessionDuration_) returns()

func (*SessionRouterTransactorSession) SetPoolConfig

func (_SessionRouter *SessionRouterTransactorSession) SetPoolConfig(index_ *big.Int, pool_ ISessionStoragePool) (*types.Transaction, error)

SetPoolConfig is a paid mutator transaction binding the contract method 0xd7178753.

Solidity: function setPoolConfig(uint256 index_, (uint256,uint256,uint128,uint128) pool_) returns()

func (*SessionRouterTransactorSession) WithdrawUserStakes

func (_SessionRouter *SessionRouterTransactorSession) WithdrawUserStakes(user_ common.Address, iterations_ uint8) (*types.Transaction, error)

WithdrawUserStakes is a paid mutator transaction binding the contract method 0xa98a7c6b.

Solidity: function withdrawUserStakes(address user_, uint8 iterations_) returns()

type SessionRouterUserWithdrawn

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

SessionRouterUserWithdrawn represents a UserWithdrawn event raised by the SessionRouter contract.

type SessionRouterUserWithdrawnIterator

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

SessionRouterUserWithdrawnIterator is returned from FilterUserWithdrawn and is used to iterate over the raw logs and unpacked data for UserWithdrawn events raised by the SessionRouter contract.

func (*SessionRouterUserWithdrawnIterator) Close

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

func (*SessionRouterUserWithdrawnIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SessionRouterUserWithdrawnIterator) 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.

Jump to

Keyboard shortcuts

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