Documentation ¶
Index ¶
- Variables
- type Pool
- type Session
- type SessionRouter
- type SessionRouterCaller
- func (_SessionRouter *SessionRouterCaller) ActiveSessionsCount(opts *bind.CallOpts) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) GetActiveSessionsByProvider(opts *bind.CallOpts, provider common.Address) ([]Session, error)
- func (_SessionRouter *SessionRouterCaller) GetActiveSessionsByUser(opts *bind.CallOpts, user common.Address) ([]Session, error)
- func (_SessionRouter *SessionRouterCaller) GetComputeBalance(opts *bind.CallOpts, timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) GetProviderClaimableBalance(opts *bind.CallOpts, sessionId [32]byte) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) GetSession(opts *bind.CallOpts, sessionId [32]byte) (Session, error)
- func (_SessionRouter *SessionRouterCaller) GetSessionsByModel(opts *bind.CallOpts, modelId [32]byte, offset *big.Int, limit uint8) ([]Session, error)
- func (_SessionRouter *SessionRouterCaller) GetSessionsByProvider(opts *bind.CallOpts, provider common.Address, offset *big.Int, limit uint8) ([]Session, error)
- func (_SessionRouter *SessionRouterCaller) GetSessionsByUser(opts *bind.CallOpts, user common.Address, offset *big.Int, limit uint8) ([]Session, error)
- func (_SessionRouter *SessionRouterCaller) GetTodaysBudget(opts *bind.CallOpts, timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) IsValidReceipt(opts *bind.CallOpts, signer common.Address, receipt []byte, signature []byte) (bool, error)
- func (_SessionRouter *SessionRouterCaller) MAXSESSIONDURATION(opts *bind.CallOpts) (uint32, error)
- func (_SessionRouter *SessionRouterCaller) MINSESSIONDURATION(opts *bind.CallOpts) (uint32, error)
- func (_SessionRouter *SessionRouterCaller) SIGNATURETTL(opts *bind.CallOpts) (uint32, error)
- func (_SessionRouter *SessionRouterCaller) SessionsCount(opts *bind.CallOpts) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) StakeToStipend(opts *bind.CallOpts, sessionStake *big.Int, timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) StartOfTheDay(opts *bind.CallOpts, timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) StipendToStake(opts *bind.CallOpts, stipend *big.Int, timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) WhenComputeBalanceIsLessThan(opts *bind.CallOpts, targetReward *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) WhenStipendLessThanDailyPrice(opts *bind.CallOpts, sessionStake *big.Int, pricePerSecond *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCaller) WithdrawableUserStake(opts *bind.CallOpts, userAddr common.Address) (struct{ ... }, error)
- type SessionRouterCallerRaw
- type SessionRouterCallerSession
- func (_SessionRouter *SessionRouterCallerSession) ActiveSessionsCount() (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) GetActiveSessionsByProvider(provider common.Address) ([]Session, error)
- func (_SessionRouter *SessionRouterCallerSession) GetActiveSessionsByUser(user common.Address) ([]Session, error)
- func (_SessionRouter *SessionRouterCallerSession) GetComputeBalance(timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) GetProviderClaimableBalance(sessionId [32]byte) (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) GetSession(sessionId [32]byte) (Session, error)
- func (_SessionRouter *SessionRouterCallerSession) GetSessionsByModel(modelId [32]byte, offset *big.Int, limit uint8) ([]Session, error)
- func (_SessionRouter *SessionRouterCallerSession) GetSessionsByProvider(provider common.Address, offset *big.Int, limit uint8) ([]Session, error)
- func (_SessionRouter *SessionRouterCallerSession) GetSessionsByUser(user common.Address, offset *big.Int, limit uint8) ([]Session, error)
- func (_SessionRouter *SessionRouterCallerSession) GetTodaysBudget(timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) IsValidReceipt(signer common.Address, receipt []byte, signature []byte) (bool, error)
- func (_SessionRouter *SessionRouterCallerSession) MAXSESSIONDURATION() (uint32, error)
- func (_SessionRouter *SessionRouterCallerSession) MINSESSIONDURATION() (uint32, error)
- func (_SessionRouter *SessionRouterCallerSession) SIGNATURETTL() (uint32, error)
- func (_SessionRouter *SessionRouterCallerSession) SessionsCount() (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) StakeToStipend(sessionStake *big.Int, timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) StartOfTheDay(timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) StipendToStake(stipend *big.Int, timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) WhenComputeBalanceIsLessThan(targetReward *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) WhenStipendLessThanDailyPrice(sessionStake *big.Int, pricePerSecond *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterCallerSession) WithdrawableUserStake(userAddr common.Address) (struct{ ... }, error)
- type SessionRouterFilterer
- func (_SessionRouter *SessionRouterFilterer) FilterSessionClosed(opts *bind.FilterOpts, userAddress []common.Address, sessionId [][32]byte, ...) (*SessionRouterSessionClosedIterator, error)
- func (_SessionRouter *SessionRouterFilterer) FilterSessionOpened(opts *bind.FilterOpts, userAddress []common.Address, sessionId [][32]byte, ...) (*SessionRouterSessionOpenedIterator, error)
- func (_SessionRouter *SessionRouterFilterer) ParseSessionClosed(log types.Log) (*SessionRouterSessionClosed, error)
- func (_SessionRouter *SessionRouterFilterer) ParseSessionOpened(log types.Log) (*SessionRouterSessionOpened, error)
- func (_SessionRouter *SessionRouterFilterer) WatchSessionClosed(opts *bind.WatchOpts, sink chan<- *SessionRouterSessionClosed, ...) (event.Subscription, error)
- func (_SessionRouter *SessionRouterFilterer) WatchSessionOpened(opts *bind.WatchOpts, sink chan<- *SessionRouterSessionOpened, ...) (event.Subscription, error)
- type SessionRouterRaw
- func (_SessionRouter *SessionRouterRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_SessionRouter *SessionRouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SessionRouterSession
- func (_SessionRouter *SessionRouterSession) ActiveSessionsCount() (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) ClaimProviderBalance(sessionId [32]byte, amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterSession) CloseSession(receiptEncoded []byte, signature []byte) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterSession) DeleteHistory(sessionId [32]byte) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterSession) GetActiveSessionsByProvider(provider common.Address) ([]Session, error)
- func (_SessionRouter *SessionRouterSession) GetActiveSessionsByUser(user common.Address) ([]Session, error)
- func (_SessionRouter *SessionRouterSession) GetComputeBalance(timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) GetProviderClaimableBalance(sessionId [32]byte) (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) GetSession(sessionId [32]byte) (Session, error)
- func (_SessionRouter *SessionRouterSession) GetSessionsByModel(modelId [32]byte, offset *big.Int, limit uint8) ([]Session, error)
- func (_SessionRouter *SessionRouterSession) GetSessionsByProvider(provider common.Address, offset *big.Int, limit uint8) ([]Session, error)
- func (_SessionRouter *SessionRouterSession) GetSessionsByUser(user common.Address, offset *big.Int, limit uint8) ([]Session, error)
- func (_SessionRouter *SessionRouterSession) GetTodaysBudget(timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) IsValidReceipt(signer common.Address, receipt []byte, signature []byte) (bool, error)
- func (_SessionRouter *SessionRouterSession) MAXSESSIONDURATION() (uint32, error)
- func (_SessionRouter *SessionRouterSession) MINSESSIONDURATION() (uint32, error)
- func (_SessionRouter *SessionRouterSession) OpenSession(_stake *big.Int, providerApproval []byte, signature []byte) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterSession) SIGNATURETTL() (uint32, error)
- func (_SessionRouter *SessionRouterSession) SessionsCount() (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) SetPoolConfig(pool Pool) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterSession) StakeToStipend(sessionStake *big.Int, timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) StartOfTheDay(timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) StipendToStake(stipend *big.Int, timestamp *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) WhenComputeBalanceIsLessThan(targetReward *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) WhenStipendLessThanDailyPrice(sessionStake *big.Int, pricePerSecond *big.Int) (*big.Int, error)
- func (_SessionRouter *SessionRouterSession) WithdrawUserStake(amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterSession) WithdrawableUserStake(userAddr common.Address) (struct{ ... }, error)
- type SessionRouterSessionClosed
- type SessionRouterSessionClosedIterator
- type SessionRouterSessionOpened
- type SessionRouterSessionOpenedIterator
- type SessionRouterTransactor
- func (_SessionRouter *SessionRouterTransactor) ClaimProviderBalance(opts *bind.TransactOpts, sessionId [32]byte, amountToWithdraw *big.Int, ...) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactor) CloseSession(opts *bind.TransactOpts, receiptEncoded []byte, signature []byte) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactor) DeleteHistory(opts *bind.TransactOpts, sessionId [32]byte) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactor) OpenSession(opts *bind.TransactOpts, _stake *big.Int, providerApproval []byte, ...) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactor) SetPoolConfig(opts *bind.TransactOpts, pool Pool) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactor) WithdrawUserStake(opts *bind.TransactOpts, amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
- type SessionRouterTransactorRaw
- type SessionRouterTransactorSession
- func (_SessionRouter *SessionRouterTransactorSession) ClaimProviderBalance(sessionId [32]byte, amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactorSession) CloseSession(receiptEncoded []byte, signature []byte) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactorSession) DeleteHistory(sessionId [32]byte) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactorSession) OpenSession(_stake *big.Int, providerApproval []byte, signature []byte) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactorSession) SetPoolConfig(pool Pool) (*types.Transaction, error)
- func (_SessionRouter *SessionRouterTransactorSession) WithdrawUserStake(amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var SessionRouterABI = SessionRouterMetaData.ABI
SessionRouterABI is the input ABI used to generate the binding from. Deprecated: Use SessionRouterMetaData.ABI instead.
var SessionRouterMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"BidNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"CannotDecodeAbi\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DuplicateApproval\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"KeyExists\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"KeyNotFound\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_contractOwner\",\"type\":\"address\"}],\"name\":\"NotContractOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughWithdrawableBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotSenderOrOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotUserOrProvider\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ProviderSignatureMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionAlreadyClosed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SessionTooShort\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SignatureExpired\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"userAddress\",\"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\":\"userAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"sessionId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"providerId\",\"type\":\"address\"}],\"name\":\"SessionOpened\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MAX_SESSION_DURATION\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_SESSION_DURATION\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"SIGNATURE_TTL\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activeSessionsCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"sessionId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"amountToWithdraw\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"claimProviderBalance\",\"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\":\"bytes32\",\"name\":\"sessionId\",\"type\":\"bytes32\"}],\"name\":\"deleteHistory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"}],\"name\":\"getActiveSessionsByProvider\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bidID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"closeoutReceipt\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"closeoutType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"providerWithdrawnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"openedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endsAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closedAt\",\"type\":\"uint256\"}],\"internalType\":\"structSession[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getActiveSessionsByUser\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bidID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"closeoutReceipt\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"closeoutType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"providerWithdrawnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"openedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endsAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closedAt\",\"type\":\"uint256\"}],\"internalType\":\"structSession[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"getComputeBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"sessionId\",\"type\":\"bytes32\"}],\"name\":\"getProviderClaimableBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"sessionId\",\"type\":\"bytes32\"}],\"name\":\"getSession\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bidID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"closeoutReceipt\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"closeoutType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"providerWithdrawnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"openedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endsAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closedAt\",\"type\":\"uint256\"}],\"internalType\":\"structSession\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"modelId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"limit\",\"type\":\"uint8\"}],\"name\":\"getSessionsByModel\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bidID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"closeoutReceipt\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"closeoutType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"providerWithdrawnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"openedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endsAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closedAt\",\"type\":\"uint256\"}],\"internalType\":\"structSession[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"limit\",\"type\":\"uint8\"}],\"name\":\"getSessionsByProvider\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bidID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"closeoutReceipt\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"closeoutType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"providerWithdrawnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"openedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endsAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closedAt\",\"type\":\"uint256\"}],\"internalType\":\"structSession[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"offset\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"limit\",\"type\":\"uint8\"}],\"name\":\"getSessionsByUser\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"id\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"provider\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"modelAgentId\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"bidID\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"stake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"closeoutReceipt\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"closeoutType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"providerWithdrawnAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"openedAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"endsAt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"closedAt\",\"type\":\"uint256\"}],\"internalType\":\"structSession[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"getTodaysBudget\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"receipt\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"isValidReceipt\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_stake\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"providerApproval\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"openSession\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"sessionId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sessionsCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"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\":\"structPool\",\"name\":\"pool\",\"type\":\"tuple\"}],\"name\":\"setPoolConfig\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"sessionStake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"stakeToStipend\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"startOfTheDay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"stipend\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"stipendToStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"targetReward\",\"type\":\"uint256\"}],\"name\":\"whenComputeBalanceIsLessThan\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"sessionStake\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"pricePerSecond\",\"type\":\"uint256\"}],\"name\":\"whenStipendLessThanDailyPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amountToWithdraw\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdrawUserStake\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"userAddr\",\"type\":\"address\"}],\"name\":\"withdrawableUserStake\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"avail\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"hold\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
SessionRouterMetaData contains all meta data concerning the SessionRouter contract.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct { InitialReward *big.Int RewardDecrease *big.Int PayoutStart *big.Int DecreaseInterval *big.Int }
Pool is an auto generated low-level Go binding around an user-defined struct.
type Session ¶
type Session struct { Id [32]byte User common.Address Provider common.Address ModelAgentId [32]byte BidID [32]byte Stake *big.Int PricePerSecond *big.Int CloseoutReceipt []byte CloseoutType *big.Int ProviderWithdrawnAmount *big.Int OpenedAt *big.Int EndsAt *big.Int ClosedAt *big.Int }
Session 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) ActiveSessionsCount ¶
func (_SessionRouter *SessionRouterCaller) ActiveSessionsCount(opts *bind.CallOpts) (*big.Int, error)
ActiveSessionsCount is a free data retrieval call binding the contract method 0x782ea85c.
Solidity: function activeSessionsCount() view returns(uint256)
func (*SessionRouterCaller) GetActiveSessionsByProvider ¶
func (_SessionRouter *SessionRouterCaller) GetActiveSessionsByProvider(opts *bind.CallOpts, provider common.Address) ([]Session, error)
GetActiveSessionsByProvider is a free data retrieval call binding the contract method 0xcba645ab.
Solidity: function getActiveSessionsByProvider(address provider) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterCaller) GetActiveSessionsByUser ¶
func (_SessionRouter *SessionRouterCaller) GetActiveSessionsByUser(opts *bind.CallOpts, user common.Address) ([]Session, error)
GetActiveSessionsByUser is a free data retrieval call binding the contract method 0xb3da8c38.
Solidity: function getActiveSessionsByUser(address user) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
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 0x76738e9e.
Solidity: function getComputeBalance(uint256 timestamp) view returns(uint256)
func (*SessionRouterCaller) GetProviderClaimableBalance ¶
func (_SessionRouter *SessionRouterCaller) GetProviderClaimableBalance(opts *bind.CallOpts, sessionId [32]byte) (*big.Int, error)
GetProviderClaimableBalance is a free data retrieval call binding the contract method 0xa8ca6323.
Solidity: function getProviderClaimableBalance(bytes32 sessionId) view returns(uint256)
func (*SessionRouterCaller) GetSession ¶
func (_SessionRouter *SessionRouterCaller) GetSession(opts *bind.CallOpts, sessionId [32]byte) (Session, error)
GetSession is a free data retrieval call binding the contract method 0x39b240bd.
Solidity: function getSession(bytes32 sessionId) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256))
func (*SessionRouterCaller) GetSessionsByModel ¶
func (_SessionRouter *SessionRouterCaller) GetSessionsByModel(opts *bind.CallOpts, modelId [32]byte, offset *big.Int, limit uint8) ([]Session, error)
GetSessionsByModel is a free data retrieval call binding the contract method 0x67a057f6.
Solidity: function getSessionsByModel(bytes32 modelId, uint256 offset, uint8 limit) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterCaller) GetSessionsByProvider ¶
func (_SessionRouter *SessionRouterCaller) GetSessionsByProvider(opts *bind.CallOpts, provider common.Address, offset *big.Int, limit uint8) ([]Session, error)
GetSessionsByProvider is a free data retrieval call binding the contract method 0x8ea1ac0e.
Solidity: function getSessionsByProvider(address provider, uint256 offset, uint8 limit) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterCaller) GetSessionsByUser ¶
func (_SessionRouter *SessionRouterCaller) GetSessionsByUser(opts *bind.CallOpts, user common.Address, offset *big.Int, limit uint8) ([]Session, error)
GetSessionsByUser is a free data retrieval call binding the contract method 0xb954275b.
Solidity: function getSessionsByUser(address user, uint256 offset, uint8 limit) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
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 0x351ffeb0.
Solidity: function getTodaysBudget(uint256 timestamp) view returns(uint256)
func (*SessionRouterCaller) IsValidReceipt ¶
func (_SessionRouter *SessionRouterCaller) IsValidReceipt(opts *bind.CallOpts, signer common.Address, receipt []byte, signature []byte) (bool, error)
IsValidReceipt is a free data retrieval call binding the contract method 0x626dd729.
Solidity: function isValidReceipt(address signer, bytes receipt, bytes signature) pure returns(bool)
func (*SessionRouterCaller) MAXSESSIONDURATION ¶
func (_SessionRouter *SessionRouterCaller) MAXSESSIONDURATION(opts *bind.CallOpts) (uint32, error)
MAXSESSIONDURATION is a free data retrieval call binding the contract method 0xcd8cd4ad.
Solidity: function MAX_SESSION_DURATION() view returns(uint32)
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) 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) SessionsCount ¶
SessionsCount is a free data retrieval call binding the contract method 0x312f6307.
Solidity: function sessionsCount() view returns(uint256)
func (*SessionRouterCaller) StakeToStipend ¶
func (_SessionRouter *SessionRouterCaller) StakeToStipend(opts *bind.CallOpts, sessionStake *big.Int, timestamp *big.Int) (*big.Int, error)
StakeToStipend is a free data retrieval call binding the contract method 0x0a23b21f.
Solidity: function stakeToStipend(uint256 sessionStake, uint256 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 0xeedd0a72.
Solidity: function startOfTheDay(uint256 timestamp) pure returns(uint256)
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 0xac3c19ce.
Solidity: function stipendToStake(uint256 stipend, uint256 timestamp) view returns(uint256)
func (*SessionRouterCaller) WhenComputeBalanceIsLessThan ¶
func (_SessionRouter *SessionRouterCaller) WhenComputeBalanceIsLessThan(opts *bind.CallOpts, targetReward *big.Int) (*big.Int, error)
WhenComputeBalanceIsLessThan is a free data retrieval call binding the contract method 0xfa64e1db.
Solidity: function whenComputeBalanceIsLessThan(uint256 targetReward) view returns(uint256)
func (*SessionRouterCaller) WhenStipendLessThanDailyPrice ¶
func (_SessionRouter *SessionRouterCaller) WhenStipendLessThanDailyPrice(opts *bind.CallOpts, sessionStake *big.Int, pricePerSecond *big.Int) (*big.Int, error)
WhenStipendLessThanDailyPrice is a free data retrieval call binding the contract method 0xf13619da.
Solidity: function whenStipendLessThanDailyPrice(uint256 sessionStake, uint256 pricePerSecond) view returns(uint256)
func (*SessionRouterCaller) WithdrawableUserStake ¶
func (_SessionRouter *SessionRouterCaller) WithdrawableUserStake(opts *bind.CallOpts, userAddr common.Address) (struct { Avail *big.Int Hold *big.Int }, error)
WithdrawableUserStake is a free data retrieval call binding the contract method 0x536f1f82.
Solidity: function withdrawableUserStake(address userAddr) view returns(uint256 avail, uint256 hold)
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) ActiveSessionsCount ¶
func (_SessionRouter *SessionRouterCallerSession) ActiveSessionsCount() (*big.Int, error)
ActiveSessionsCount is a free data retrieval call binding the contract method 0x782ea85c.
Solidity: function activeSessionsCount() view returns(uint256)
func (*SessionRouterCallerSession) GetActiveSessionsByProvider ¶
func (_SessionRouter *SessionRouterCallerSession) GetActiveSessionsByProvider(provider common.Address) ([]Session, error)
GetActiveSessionsByProvider is a free data retrieval call binding the contract method 0xcba645ab.
Solidity: function getActiveSessionsByProvider(address provider) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterCallerSession) GetActiveSessionsByUser ¶
func (_SessionRouter *SessionRouterCallerSession) GetActiveSessionsByUser(user common.Address) ([]Session, error)
GetActiveSessionsByUser is a free data retrieval call binding the contract method 0xb3da8c38.
Solidity: function getActiveSessionsByUser(address user) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterCallerSession) GetComputeBalance ¶
func (_SessionRouter *SessionRouterCallerSession) GetComputeBalance(timestamp *big.Int) (*big.Int, error)
GetComputeBalance is a free data retrieval call binding the contract method 0x76738e9e.
Solidity: function getComputeBalance(uint256 timestamp) view returns(uint256)
func (*SessionRouterCallerSession) GetProviderClaimableBalance ¶
func (_SessionRouter *SessionRouterCallerSession) GetProviderClaimableBalance(sessionId [32]byte) (*big.Int, error)
GetProviderClaimableBalance is a free data retrieval call binding the contract method 0xa8ca6323.
Solidity: function getProviderClaimableBalance(bytes32 sessionId) view returns(uint256)
func (*SessionRouterCallerSession) GetSession ¶
func (_SessionRouter *SessionRouterCallerSession) GetSession(sessionId [32]byte) (Session, error)
GetSession is a free data retrieval call binding the contract method 0x39b240bd.
Solidity: function getSession(bytes32 sessionId) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256))
func (*SessionRouterCallerSession) GetSessionsByModel ¶
func (_SessionRouter *SessionRouterCallerSession) GetSessionsByModel(modelId [32]byte, offset *big.Int, limit uint8) ([]Session, error)
GetSessionsByModel is a free data retrieval call binding the contract method 0x67a057f6.
Solidity: function getSessionsByModel(bytes32 modelId, uint256 offset, uint8 limit) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterCallerSession) GetSessionsByProvider ¶
func (_SessionRouter *SessionRouterCallerSession) GetSessionsByProvider(provider common.Address, offset *big.Int, limit uint8) ([]Session, error)
GetSessionsByProvider is a free data retrieval call binding the contract method 0x8ea1ac0e.
Solidity: function getSessionsByProvider(address provider, uint256 offset, uint8 limit) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterCallerSession) GetSessionsByUser ¶
func (_SessionRouter *SessionRouterCallerSession) GetSessionsByUser(user common.Address, offset *big.Int, limit uint8) ([]Session, error)
GetSessionsByUser is a free data retrieval call binding the contract method 0xb954275b.
Solidity: function getSessionsByUser(address user, uint256 offset, uint8 limit) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterCallerSession) GetTodaysBudget ¶
func (_SessionRouter *SessionRouterCallerSession) GetTodaysBudget(timestamp *big.Int) (*big.Int, error)
GetTodaysBudget is a free data retrieval call binding the contract method 0x351ffeb0.
Solidity: function getTodaysBudget(uint256 timestamp) view returns(uint256)
func (*SessionRouterCallerSession) IsValidReceipt ¶
func (_SessionRouter *SessionRouterCallerSession) IsValidReceipt(signer common.Address, receipt []byte, signature []byte) (bool, error)
IsValidReceipt is a free data retrieval call binding the contract method 0x626dd729.
Solidity: function isValidReceipt(address signer, bytes receipt, bytes signature) pure returns(bool)
func (*SessionRouterCallerSession) MAXSESSIONDURATION ¶
func (_SessionRouter *SessionRouterCallerSession) MAXSESSIONDURATION() (uint32, error)
MAXSESSIONDURATION is a free data retrieval call binding the contract method 0xcd8cd4ad.
Solidity: function MAX_SESSION_DURATION() view returns(uint32)
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) 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) SessionsCount ¶
func (_SessionRouter *SessionRouterCallerSession) SessionsCount() (*big.Int, error)
SessionsCount is a free data retrieval call binding the contract method 0x312f6307.
Solidity: function sessionsCount() view returns(uint256)
func (*SessionRouterCallerSession) StakeToStipend ¶
func (_SessionRouter *SessionRouterCallerSession) StakeToStipend(sessionStake *big.Int, timestamp *big.Int) (*big.Int, error)
StakeToStipend is a free data retrieval call binding the contract method 0x0a23b21f.
Solidity: function stakeToStipend(uint256 sessionStake, uint256 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 0xeedd0a72.
Solidity: function startOfTheDay(uint256 timestamp) pure returns(uint256)
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 0xac3c19ce.
Solidity: function stipendToStake(uint256 stipend, uint256 timestamp) view returns(uint256)
func (*SessionRouterCallerSession) WhenComputeBalanceIsLessThan ¶
func (_SessionRouter *SessionRouterCallerSession) WhenComputeBalanceIsLessThan(targetReward *big.Int) (*big.Int, error)
WhenComputeBalanceIsLessThan is a free data retrieval call binding the contract method 0xfa64e1db.
Solidity: function whenComputeBalanceIsLessThan(uint256 targetReward) view returns(uint256)
func (*SessionRouterCallerSession) WhenStipendLessThanDailyPrice ¶
func (_SessionRouter *SessionRouterCallerSession) WhenStipendLessThanDailyPrice(sessionStake *big.Int, pricePerSecond *big.Int) (*big.Int, error)
WhenStipendLessThanDailyPrice is a free data retrieval call binding the contract method 0xf13619da.
Solidity: function whenStipendLessThanDailyPrice(uint256 sessionStake, uint256 pricePerSecond) view returns(uint256)
func (*SessionRouterCallerSession) WithdrawableUserStake ¶
func (_SessionRouter *SessionRouterCallerSession) WithdrawableUserStake(userAddr common.Address) (struct { Avail *big.Int Hold *big.Int }, error)
WithdrawableUserStake is a free data retrieval call binding the contract method 0x536f1f82.
Solidity: function withdrawableUserStake(address userAddr) view returns(uint256 avail, uint256 hold)
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) FilterSessionClosed ¶
func (_SessionRouter *SessionRouterFilterer) FilterSessionClosed(opts *bind.FilterOpts, userAddress []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 userAddress, bytes32 indexed sessionId, address indexed providerId)
func (*SessionRouterFilterer) FilterSessionOpened ¶
func (_SessionRouter *SessionRouterFilterer) FilterSessionOpened(opts *bind.FilterOpts, userAddress []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 userAddress, bytes32 indexed sessionId, address indexed providerId)
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 userAddress, 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 userAddress, bytes32 indexed sessionId, address indexed providerId)
func (*SessionRouterFilterer) WatchSessionClosed ¶
func (_SessionRouter *SessionRouterFilterer) WatchSessionClosed(opts *bind.WatchOpts, sink chan<- *SessionRouterSessionClosed, userAddress []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 userAddress, bytes32 indexed sessionId, address indexed providerId)
func (*SessionRouterFilterer) WatchSessionOpened ¶
func (_SessionRouter *SessionRouterFilterer) WatchSessionOpened(opts *bind.WatchOpts, sink chan<- *SessionRouterSessionOpened, userAddress []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 userAddress, bytes32 indexed sessionId, address indexed providerId)
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) ActiveSessionsCount ¶
func (_SessionRouter *SessionRouterSession) ActiveSessionsCount() (*big.Int, error)
ActiveSessionsCount is a free data retrieval call binding the contract method 0x782ea85c.
Solidity: function activeSessionsCount() view returns(uint256)
func (*SessionRouterSession) ClaimProviderBalance ¶
func (_SessionRouter *SessionRouterSession) ClaimProviderBalance(sessionId [32]byte, amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
ClaimProviderBalance is a paid mutator transaction binding the contract method 0xbab3de02.
Solidity: function claimProviderBalance(bytes32 sessionId, uint256 amountToWithdraw, address to) 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) DeleteHistory ¶
func (_SessionRouter *SessionRouterSession) DeleteHistory(sessionId [32]byte) (*types.Transaction, error)
DeleteHistory is a paid mutator transaction binding the contract method 0xf074ca6b.
Solidity: function deleteHistory(bytes32 sessionId) returns()
func (*SessionRouterSession) GetActiveSessionsByProvider ¶
func (_SessionRouter *SessionRouterSession) GetActiveSessionsByProvider(provider common.Address) ([]Session, error)
GetActiveSessionsByProvider is a free data retrieval call binding the contract method 0xcba645ab.
Solidity: function getActiveSessionsByProvider(address provider) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterSession) GetActiveSessionsByUser ¶
func (_SessionRouter *SessionRouterSession) GetActiveSessionsByUser(user common.Address) ([]Session, error)
GetActiveSessionsByUser is a free data retrieval call binding the contract method 0xb3da8c38.
Solidity: function getActiveSessionsByUser(address user) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterSession) GetComputeBalance ¶
GetComputeBalance is a free data retrieval call binding the contract method 0x76738e9e.
Solidity: function getComputeBalance(uint256 timestamp) view returns(uint256)
func (*SessionRouterSession) GetProviderClaimableBalance ¶
func (_SessionRouter *SessionRouterSession) GetProviderClaimableBalance(sessionId [32]byte) (*big.Int, error)
GetProviderClaimableBalance is a free data retrieval call binding the contract method 0xa8ca6323.
Solidity: function getProviderClaimableBalance(bytes32 sessionId) view returns(uint256)
func (*SessionRouterSession) GetSession ¶
func (_SessionRouter *SessionRouterSession) GetSession(sessionId [32]byte) (Session, error)
GetSession is a free data retrieval call binding the contract method 0x39b240bd.
Solidity: function getSession(bytes32 sessionId) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256))
func (*SessionRouterSession) GetSessionsByModel ¶
func (_SessionRouter *SessionRouterSession) GetSessionsByModel(modelId [32]byte, offset *big.Int, limit uint8) ([]Session, error)
GetSessionsByModel is a free data retrieval call binding the contract method 0x67a057f6.
Solidity: function getSessionsByModel(bytes32 modelId, uint256 offset, uint8 limit) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterSession) GetSessionsByProvider ¶
func (_SessionRouter *SessionRouterSession) GetSessionsByProvider(provider common.Address, offset *big.Int, limit uint8) ([]Session, error)
GetSessionsByProvider is a free data retrieval call binding the contract method 0x8ea1ac0e.
Solidity: function getSessionsByProvider(address provider, uint256 offset, uint8 limit) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterSession) GetSessionsByUser ¶
func (_SessionRouter *SessionRouterSession) GetSessionsByUser(user common.Address, offset *big.Int, limit uint8) ([]Session, error)
GetSessionsByUser is a free data retrieval call binding the contract method 0xb954275b.
Solidity: function getSessionsByUser(address user, uint256 offset, uint8 limit) view returns((bytes32,address,address,bytes32,bytes32,uint256,uint256,bytes,uint256,uint256,uint256,uint256,uint256)[])
func (*SessionRouterSession) GetTodaysBudget ¶
GetTodaysBudget is a free data retrieval call binding the contract method 0x351ffeb0.
Solidity: function getTodaysBudget(uint256 timestamp) view returns(uint256)
func (*SessionRouterSession) IsValidReceipt ¶
func (_SessionRouter *SessionRouterSession) IsValidReceipt(signer common.Address, receipt []byte, signature []byte) (bool, error)
IsValidReceipt is a free data retrieval call binding the contract method 0x626dd729.
Solidity: function isValidReceipt(address signer, bytes receipt, bytes signature) pure returns(bool)
func (*SessionRouterSession) MAXSESSIONDURATION ¶
func (_SessionRouter *SessionRouterSession) MAXSESSIONDURATION() (uint32, error)
MAXSESSIONDURATION is a free data retrieval call binding the contract method 0xcd8cd4ad.
Solidity: function MAX_SESSION_DURATION() view returns(uint32)
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(_stake *big.Int, providerApproval []byte, signature []byte) (*types.Transaction, error)
OpenSession is a paid mutator transaction binding the contract method 0x1f71815e.
Solidity: function openSession(uint256 _stake, bytes providerApproval, bytes signature) returns(bytes32 sessionId)
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) SessionsCount ¶
func (_SessionRouter *SessionRouterSession) SessionsCount() (*big.Int, error)
SessionsCount is a free data retrieval call binding the contract method 0x312f6307.
Solidity: function sessionsCount() view returns(uint256)
func (*SessionRouterSession) SetPoolConfig ¶
func (_SessionRouter *SessionRouterSession) SetPoolConfig(pool Pool) (*types.Transaction, error)
SetPoolConfig is a paid mutator transaction binding the contract method 0x8b1af52a.
Solidity: function setPoolConfig((uint256,uint256,uint128,uint128) pool) returns()
func (*SessionRouterSession) StakeToStipend ¶
func (_SessionRouter *SessionRouterSession) StakeToStipend(sessionStake *big.Int, timestamp *big.Int) (*big.Int, error)
StakeToStipend is a free data retrieval call binding the contract method 0x0a23b21f.
Solidity: function stakeToStipend(uint256 sessionStake, uint256 timestamp) view returns(uint256)
func (*SessionRouterSession) StartOfTheDay ¶
StartOfTheDay is a free data retrieval call binding the contract method 0xeedd0a72.
Solidity: function startOfTheDay(uint256 timestamp) pure returns(uint256)
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 0xac3c19ce.
Solidity: function stipendToStake(uint256 stipend, uint256 timestamp) view returns(uint256)
func (*SessionRouterSession) WhenComputeBalanceIsLessThan ¶
func (_SessionRouter *SessionRouterSession) WhenComputeBalanceIsLessThan(targetReward *big.Int) (*big.Int, error)
WhenComputeBalanceIsLessThan is a free data retrieval call binding the contract method 0xfa64e1db.
Solidity: function whenComputeBalanceIsLessThan(uint256 targetReward) view returns(uint256)
func (*SessionRouterSession) WhenStipendLessThanDailyPrice ¶
func (_SessionRouter *SessionRouterSession) WhenStipendLessThanDailyPrice(sessionStake *big.Int, pricePerSecond *big.Int) (*big.Int, error)
WhenStipendLessThanDailyPrice is a free data retrieval call binding the contract method 0xf13619da.
Solidity: function whenStipendLessThanDailyPrice(uint256 sessionStake, uint256 pricePerSecond) view returns(uint256)
func (*SessionRouterSession) WithdrawUserStake ¶
func (_SessionRouter *SessionRouterSession) WithdrawUserStake(amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
WithdrawUserStake is a paid mutator transaction binding the contract method 0xcd308cb1.
Solidity: function withdrawUserStake(uint256 amountToWithdraw, address to) returns()
func (*SessionRouterSession) WithdrawableUserStake ¶
func (_SessionRouter *SessionRouterSession) WithdrawableUserStake(userAddr common.Address) (struct { Avail *big.Int Hold *big.Int }, error)
WithdrawableUserStake is a free data retrieval call binding the contract method 0x536f1f82.
Solidity: function withdrawableUserStake(address userAddr) view returns(uint256 avail, uint256 hold)
type SessionRouterSessionClosed ¶
type SessionRouterSessionClosed struct { UserAddress 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 ¶
func (it *SessionRouterSessionClosedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SessionRouterSessionClosedIterator) Error ¶
func (it *SessionRouterSessionClosedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SessionRouterSessionClosedIterator) Next ¶
func (it *SessionRouterSessionClosedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type SessionRouterSessionOpened ¶
type SessionRouterSessionOpened struct { UserAddress 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 ¶
func (it *SessionRouterSessionOpenedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SessionRouterSessionOpenedIterator) Error ¶
func (it *SessionRouterSessionOpenedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SessionRouterSessionOpenedIterator) Next ¶
func (it *SessionRouterSessionOpenedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type 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) ClaimProviderBalance ¶
func (_SessionRouter *SessionRouterTransactor) ClaimProviderBalance(opts *bind.TransactOpts, sessionId [32]byte, amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
ClaimProviderBalance is a paid mutator transaction binding the contract method 0xbab3de02.
Solidity: function claimProviderBalance(bytes32 sessionId, uint256 amountToWithdraw, address to) 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) DeleteHistory ¶
func (_SessionRouter *SessionRouterTransactor) DeleteHistory(opts *bind.TransactOpts, sessionId [32]byte) (*types.Transaction, error)
DeleteHistory is a paid mutator transaction binding the contract method 0xf074ca6b.
Solidity: function deleteHistory(bytes32 sessionId) returns()
func (*SessionRouterTransactor) OpenSession ¶
func (_SessionRouter *SessionRouterTransactor) OpenSession(opts *bind.TransactOpts, _stake *big.Int, providerApproval []byte, signature []byte) (*types.Transaction, error)
OpenSession is a paid mutator transaction binding the contract method 0x1f71815e.
Solidity: function openSession(uint256 _stake, bytes providerApproval, bytes signature) returns(bytes32 sessionId)
func (*SessionRouterTransactor) SetPoolConfig ¶
func (_SessionRouter *SessionRouterTransactor) SetPoolConfig(opts *bind.TransactOpts, pool Pool) (*types.Transaction, error)
SetPoolConfig is a paid mutator transaction binding the contract method 0x8b1af52a.
Solidity: function setPoolConfig((uint256,uint256,uint128,uint128) pool) returns()
func (*SessionRouterTransactor) WithdrawUserStake ¶
func (_SessionRouter *SessionRouterTransactor) WithdrawUserStake(opts *bind.TransactOpts, amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
WithdrawUserStake is a paid mutator transaction binding the contract method 0xcd308cb1.
Solidity: function withdrawUserStake(uint256 amountToWithdraw, address to) 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) ClaimProviderBalance ¶
func (_SessionRouter *SessionRouterTransactorSession) ClaimProviderBalance(sessionId [32]byte, amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
ClaimProviderBalance is a paid mutator transaction binding the contract method 0xbab3de02.
Solidity: function claimProviderBalance(bytes32 sessionId, uint256 amountToWithdraw, address to) 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) DeleteHistory ¶
func (_SessionRouter *SessionRouterTransactorSession) DeleteHistory(sessionId [32]byte) (*types.Transaction, error)
DeleteHistory is a paid mutator transaction binding the contract method 0xf074ca6b.
Solidity: function deleteHistory(bytes32 sessionId) returns()
func (*SessionRouterTransactorSession) OpenSession ¶
func (_SessionRouter *SessionRouterTransactorSession) OpenSession(_stake *big.Int, providerApproval []byte, signature []byte) (*types.Transaction, error)
OpenSession is a paid mutator transaction binding the contract method 0x1f71815e.
Solidity: function openSession(uint256 _stake, bytes providerApproval, bytes signature) returns(bytes32 sessionId)
func (*SessionRouterTransactorSession) SetPoolConfig ¶
func (_SessionRouter *SessionRouterTransactorSession) SetPoolConfig(pool Pool) (*types.Transaction, error)
SetPoolConfig is a paid mutator transaction binding the contract method 0x8b1af52a.
Solidity: function setPoolConfig((uint256,uint256,uint128,uint128) pool) returns()
func (*SessionRouterTransactorSession) WithdrawUserStake ¶
func (_SessionRouter *SessionRouterTransactorSession) WithdrawUserStake(amountToWithdraw *big.Int, to common.Address) (*types.Transaction, error)
WithdrawUserStake is a paid mutator transaction binding the contract method 0xcd308cb1.
Solidity: function withdrawUserStake(uint256 amountToWithdraw, address to) returns()