Documentation
¶
Index ¶
- Variables
- type CacheProto
- type CacheProtoCaller
- func (_CacheProto *CacheProtoCaller) CacheReward(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoCaller) GetAllMREnclaveList(opts *bind.CallOpts) ([]string, error)
- func (_CacheProto *CacheProtoCaller) GetAllMRSignerList(opts *bind.CallOpts) ([]string, error)
- func (_CacheProto *CacheProtoCaller) GetAllUpdateBlockNumber(opts *bind.CallOpts) ([]*big.Int, error)
- func (_CacheProto *CacheProtoCaller) GetCurrencyTerm(opts *bind.CallOpts) (*big.Int, error)
- func (_CacheProto *CacheProtoCaller) GetMessageHash(opts *bind.CallOpts, _account common.Address, _tokenId *big.Int) ([32]byte, error)
- func (_CacheProto *CacheProtoCaller) IsTokenOwner(opts *bind.CallOpts, acc common.Address, tokenId *big.Int) (bool, error)
- func (_CacheProto *CacheProtoCaller) MREnclaveList(opts *bind.CallOpts, arg0 *big.Int) (string, error)
- func (_CacheProto *CacheProtoCaller) MRSignerList(opts *bind.CallOpts, arg0 *big.Int) (string, error)
- func (_CacheProto *CacheProtoCaller) Node(opts *bind.CallOpts, arg0 common.Address) (struct{ ... }, error)
- func (_CacheProto *CacheProtoCaller) OpenRecover(opts *bind.CallOpts, _msgHash [32]byte, _signature []byte) (common.Address, error)
- func (_CacheProto *CacheProtoCaller) Order(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (_CacheProto *CacheProtoCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_CacheProto *CacheProtoCaller) RecoverSigner(opts *bind.CallOpts, _msgHash [32]byte, _signature []byte) (common.Address, error)
- func (_CacheProto *CacheProtoCaller) RewardRecord(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoCaller) TeeNodes(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
- func (_CacheProto *CacheProtoCaller) TermTotalTraffic(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_CacheProto *CacheProtoCaller) ToEthSignedMessageHash(opts *bind.CallOpts, hash [32]byte) ([32]byte, error)
- func (_CacheProto *CacheProtoCaller) TokenBonded(opts *bind.CallOpts, arg0 *big.Int) (bool, error)
- func (_CacheProto *CacheProtoCaller) TrafficNum(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoCaller) UnitPrice(opts *bind.CallOpts) (*big.Int, error)
- func (_CacheProto *CacheProtoCaller) UpdateBlockNumber(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_CacheProto *CacheProtoCaller) UserTrafficMap(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoCaller) Verify(opts *bind.CallOpts, _msgHash [32]byte, _signature []byte, ...) (bool, error)
- type CacheProtoCallerRaw
- type CacheProtoCallerSession
- func (_CacheProto *CacheProtoCallerSession) CacheReward(arg0 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoCallerSession) GetAllMREnclaveList() ([]string, error)
- func (_CacheProto *CacheProtoCallerSession) GetAllMRSignerList() ([]string, error)
- func (_CacheProto *CacheProtoCallerSession) GetAllUpdateBlockNumber() ([]*big.Int, error)
- func (_CacheProto *CacheProtoCallerSession) GetCurrencyTerm() (*big.Int, error)
- func (_CacheProto *CacheProtoCallerSession) GetMessageHash(_account common.Address, _tokenId *big.Int) ([32]byte, error)
- func (_CacheProto *CacheProtoCallerSession) IsTokenOwner(acc common.Address, tokenId *big.Int) (bool, error)
- func (_CacheProto *CacheProtoCallerSession) MREnclaveList(arg0 *big.Int) (string, error)
- func (_CacheProto *CacheProtoCallerSession) MRSignerList(arg0 *big.Int) (string, error)
- func (_CacheProto *CacheProtoCallerSession) Node(arg0 common.Address) (struct{ ... }, error)
- func (_CacheProto *CacheProtoCallerSession) OpenRecover(_msgHash [32]byte, _signature []byte) (common.Address, error)
- func (_CacheProto *CacheProtoCallerSession) Order(arg0 [32]byte) (struct{ ... }, error)
- func (_CacheProto *CacheProtoCallerSession) Owner() (common.Address, error)
- func (_CacheProto *CacheProtoCallerSession) RecoverSigner(_msgHash [32]byte, _signature []byte) (common.Address, error)
- func (_CacheProto *CacheProtoCallerSession) RewardRecord(arg0 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoCallerSession) TeeNodes(arg0 *big.Int) (common.Address, error)
- func (_CacheProto *CacheProtoCallerSession) TermTotalTraffic(arg0 *big.Int) (*big.Int, error)
- func (_CacheProto *CacheProtoCallerSession) ToEthSignedMessageHash(hash [32]byte) ([32]byte, error)
- func (_CacheProto *CacheProtoCallerSession) TokenBonded(arg0 *big.Int) (bool, error)
- func (_CacheProto *CacheProtoCallerSession) TrafficNum(arg0 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoCallerSession) UnitPrice() (*big.Int, error)
- func (_CacheProto *CacheProtoCallerSession) UpdateBlockNumber(arg0 *big.Int) (*big.Int, error)
- func (_CacheProto *CacheProtoCallerSession) UserTrafficMap(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoCallerSession) Verify(_msgHash [32]byte, _signature []byte, _signer common.Address) (bool, error)
- type CacheProtoClaim
- type CacheProtoClaimIterator
- type CacheProtoExit
- type CacheProtoExitIterator
- type CacheProtoFilterer
- func (_CacheProto *CacheProtoFilterer) FilterClaim(opts *bind.FilterOpts, nodeAcc []common.Address) (*CacheProtoClaimIterator, error)
- func (_CacheProto *CacheProtoFilterer) FilterExit(opts *bind.FilterOpts, nodeAcc []common.Address) (*CacheProtoExitIterator, error)
- func (_CacheProto *CacheProtoFilterer) FilterOrderPayment(opts *bind.FilterOpts, teeAcc []common.Address) (*CacheProtoOrderPaymentIterator, error)
- func (_CacheProto *CacheProtoFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*CacheProtoOwnershipTransferredIterator, error)
- func (_CacheProto *CacheProtoFilterer) FilterStaking(opts *bind.FilterOpts, nodeAcc []common.Address, tokenId []*big.Int) (*CacheProtoStakingIterator, error)
- func (_CacheProto *CacheProtoFilterer) FilterTrafficForwarding(opts *bind.FilterOpts, nodeAcc []common.Address) (*CacheProtoTrafficForwardingIterator, error)
- func (_CacheProto *CacheProtoFilterer) ParseClaim(log types.Log) (*CacheProtoClaim, error)
- func (_CacheProto *CacheProtoFilterer) ParseExit(log types.Log) (*CacheProtoExit, error)
- func (_CacheProto *CacheProtoFilterer) ParseOrderPayment(log types.Log) (*CacheProtoOrderPayment, error)
- func (_CacheProto *CacheProtoFilterer) ParseOwnershipTransferred(log types.Log) (*CacheProtoOwnershipTransferred, error)
- func (_CacheProto *CacheProtoFilterer) ParseStaking(log types.Log) (*CacheProtoStaking, error)
- func (_CacheProto *CacheProtoFilterer) ParseTrafficForwarding(log types.Log) (*CacheProtoTrafficForwarding, error)
- func (_CacheProto *CacheProtoFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *CacheProtoClaim, nodeAcc []common.Address) (event.Subscription, error)
- func (_CacheProto *CacheProtoFilterer) WatchExit(opts *bind.WatchOpts, sink chan<- *CacheProtoExit, nodeAcc []common.Address) (event.Subscription, error)
- func (_CacheProto *CacheProtoFilterer) WatchOrderPayment(opts *bind.WatchOpts, sink chan<- *CacheProtoOrderPayment, ...) (event.Subscription, error)
- func (_CacheProto *CacheProtoFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CacheProtoOwnershipTransferred, ...) (event.Subscription, error)
- func (_CacheProto *CacheProtoFilterer) WatchStaking(opts *bind.WatchOpts, sink chan<- *CacheProtoStaking, nodeAcc []common.Address, ...) (event.Subscription, error)
- func (_CacheProto *CacheProtoFilterer) WatchTrafficForwarding(opts *bind.WatchOpts, sink chan<- *CacheProtoTrafficForwarding, ...) (event.Subscription, error)
- type CacheProtoOrderPayment
- type CacheProtoOrderPaymentIterator
- type CacheProtoOwnershipTransferred
- type CacheProtoOwnershipTransferredIterator
- type CacheProtoRaw
- func (_CacheProto *CacheProtoRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_CacheProto *CacheProtoRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_CacheProto *CacheProtoRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type CacheProtoSession
- func (_CacheProto *CacheProtoSession) AddMREnclave(value string) (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) AddMRSigner(value string) (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) CacheOrderPayment(_teeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) CacheReward(arg0 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoSession) Claim() (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) Exit() (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) GetAllMREnclaveList() ([]string, error)
- func (_CacheProto *CacheProtoSession) GetAllMRSignerList() ([]string, error)
- func (_CacheProto *CacheProtoSession) GetAllUpdateBlockNumber() ([]*big.Int, error)
- func (_CacheProto *CacheProtoSession) GetCurrencyTerm() (*big.Int, error)
- func (_CacheProto *CacheProtoSession) GetMessageHash(_account common.Address, _tokenId *big.Int) ([32]byte, error)
- func (_CacheProto *CacheProtoSession) IsTokenOwner(acc common.Address, tokenId *big.Int) (bool, error)
- func (_CacheProto *CacheProtoSession) MREnclaveList(arg0 *big.Int) (string, error)
- func (_CacheProto *CacheProtoSession) MRSignerList(arg0 *big.Int) (string, error)
- func (_CacheProto *CacheProtoSession) Node(arg0 common.Address) (struct{ ... }, error)
- func (_CacheProto *CacheProtoSession) OpenRecover(_msgHash [32]byte, _signature []byte) (common.Address, error)
- func (_CacheProto *CacheProtoSession) Order(arg0 [32]byte) (struct{ ... }, error)
- func (_CacheProto *CacheProtoSession) Owner() (common.Address, error)
- func (_CacheProto *CacheProtoSession) RecoverSigner(_msgHash [32]byte, _signature []byte) (common.Address, error)
- func (_CacheProto *CacheProtoSession) RenounceOwnership() (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) RewardRecord(arg0 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoSession) Staking(nodeAcc common.Address, tokenAcc common.Address, tokenId *big.Int, ...) (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) TeeNodes(arg0 *big.Int) (common.Address, error)
- func (_CacheProto *CacheProtoSession) TermTotalTraffic(arg0 *big.Int) (*big.Int, error)
- func (_CacheProto *CacheProtoSession) ToEthSignedMessageHash(hash [32]byte) ([32]byte, error)
- func (_CacheProto *CacheProtoSession) TokenBonded(arg0 *big.Int) (bool, error)
- func (_CacheProto *CacheProtoSession) TrafficForwarding(user common.Address, _nodeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) TrafficNum(arg0 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) UnitPrice() (*big.Int, error)
- func (_CacheProto *CacheProtoSession) UpdateBlockNumber(arg0 *big.Int) (*big.Int, error)
- func (_CacheProto *CacheProtoSession) UpdateUnitPrice(_price *big.Int) (*types.Transaction, error)
- func (_CacheProto *CacheProtoSession) UserTrafficMap(arg0 common.Address, arg1 common.Address) (*big.Int, error)
- func (_CacheProto *CacheProtoSession) Verify(_msgHash [32]byte, _signature []byte, _signer common.Address) (bool, error)
- type CacheProtoStaking
- type CacheProtoStakingIterator
- type CacheProtoTrafficForwarding
- type CacheProtoTrafficForwardingIterator
- type CacheProtoTransactor
- func (_CacheProto *CacheProtoTransactor) AddMREnclave(opts *bind.TransactOpts, value string) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactor) AddMRSigner(opts *bind.TransactOpts, value string) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactor) CacheOrderPayment(opts *bind.TransactOpts, _teeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactor) Claim(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactor) Exit(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactor) Staking(opts *bind.TransactOpts, nodeAcc common.Address, tokenAcc common.Address, ...) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactor) TrafficForwarding(opts *bind.TransactOpts, user common.Address, _nodeAcc common.Address, ...) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactor) UpdateUnitPrice(opts *bind.TransactOpts, _price *big.Int) (*types.Transaction, error)
- type CacheProtoTransactorRaw
- type CacheProtoTransactorSession
- func (_CacheProto *CacheProtoTransactorSession) AddMREnclave(value string) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactorSession) AddMRSigner(value string) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactorSession) CacheOrderPayment(_teeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactorSession) Claim() (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactorSession) Exit() (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactorSession) Staking(nodeAcc common.Address, tokenAcc common.Address, tokenId *big.Int, ...) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactorSession) TrafficForwarding(user common.Address, _nodeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_CacheProto *CacheProtoTransactorSession) UpdateUnitPrice(_price *big.Int) (*types.Transaction, error)
- type Token
- type TokenApproval
- type TokenApprovalForAll
- type TokenApprovalForAllIterator
- type TokenApprovalIterator
- type TokenCaller
- func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_Token *TokenCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
- func (_Token *TokenCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)
- func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)
- func (_Token *TokenCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
- func (_Token *TokenCaller) ReleaseTime(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_Token *TokenCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_Token *TokenCaller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error)
- type TokenCallerRaw
- type TokenCallerSession
- func (_Token *TokenCallerSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_Token *TokenCallerSession) GetApproved(tokenId *big.Int) (common.Address, error)
- func (_Token *TokenCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
- func (_Token *TokenCallerSession) Name() (string, error)
- func (_Token *TokenCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error)
- func (_Token *TokenCallerSession) ReleaseTime(arg0 *big.Int) (*big.Int, error)
- func (_Token *TokenCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Token *TokenCallerSession) Symbol() (string, error)
- func (_Token *TokenCallerSession) TokenURI(tokenId *big.Int) (string, error)
- type TokenFilterer
- func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, ...) (*TokenApprovalIterator, error)
- func (_Token *TokenFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*TokenApprovalForAllIterator, error)
- func (_Token *TokenFilterer) FilterMintToken(opts *bind.FilterOpts, owner []common.Address, tokenId []*big.Int) (*TokenMintTokenIterator, error)
- func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, ...) (*TokenTransferIterator, error)
- func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)
- func (_Token *TokenFilterer) ParseApprovalForAll(log types.Log) (*TokenApprovalForAll, error)
- func (_Token *TokenFilterer) ParseMintToken(log types.Log) (*TokenMintToken, error)
- func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)
- func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, owner []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *TokenApprovalForAll, owner []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchMintToken(opts *bind.WatchOpts, sink chan<- *TokenMintToken, owner []common.Address, ...) (event.Subscription, error)
- func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, from []common.Address, ...) (event.Subscription, error)
- type TokenMintToken
- type TokenMintTokenIterator
- type TokenRaw
- func (_Token *TokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokenSession
- func (_Token *TokenSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_Token *TokenSession) GetApproved(tokenId *big.Int) (common.Address, error)
- func (_Token *TokenSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
- func (_Token *TokenSession) MintToken(to common.Address) (*types.Transaction, error)
- func (_Token *TokenSession) Name() (string, error)
- func (_Token *TokenSession) OwnerOf(tokenId *big.Int) (common.Address, error)
- func (_Token *TokenSession) ReleaseTime(arg0 *big.Int) (*big.Int, error)
- func (_Token *TokenSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
- func (_Token *TokenSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_Token *TokenSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Token *TokenSession) Symbol() (string, error)
- func (_Token *TokenSession) TokenURI(tokenId *big.Int) (string, error)
- func (_Token *TokenSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Token *TokenSession) Withdraw() (*types.Transaction, error)
- type TokenTransactor
- func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactor) MintToken(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Token *TokenTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Token *TokenTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)
- func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, ...) (*types.Transaction, error)
- func (_Token *TokenTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokenTransactorRaw
- type TokenTransactorSession
- func (_Token *TokenTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) MintToken(to common.Address) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
- func (_Token *TokenTransactorSession) Withdraw() (*types.Transaction, error)
- type TokenTransfer
- type TokenTransferIterator
Constants ¶
This section is empty.
Variables ¶
var CacheProtoABI = CacheProtoMetaData.ABI
CacheProtoABI is the input ABI used to generate the binding from. Deprecated: Use CacheProtoMetaData.ABI instead.
var CacheProtoMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"peerid\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"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\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAcc\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"Claim\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAcc\",\"type\":\"address\"}],\"name\":\"Exit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"teeAcc\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"traffic\",\"type\":\"uint256\"}],\"name\":\"OrderPayment\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAcc\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Staking\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"nodeAcc\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"traffic\",\"type\":\"uint256\"}],\"name\":\"TrafficForwarding\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"CacheReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"MREnclaveList\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"MRSignerList\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"Node\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"created\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"collerate\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"endpoint\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"teeEth\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"teeCess\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"Order\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"creater\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"node\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"term\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"RewardRecord\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"TeeNodes\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"TermTotalTraffic\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"TokenBonded\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"TrafficNum\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"UnitPrice\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"UpdateBlockNumber\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"UserTrafficMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"}],\"name\":\"addMREnclave\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"value\",\"type\":\"string\"}],\"name\":\"addMRSigner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_teeAcc\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_traffic\",\"type\":\"uint256\"}],\"name\":\"cacheOrderPayment\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"exit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllMREnclaveList\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllMRSignerList\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAllUpdateBlockNumber\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCurrencyTerm\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_tokenId\",\"type\":\"uint256\"}],\"name\":\"getMessageHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"acc\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"isTokenOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_msgHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"openRecover\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_msgHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"}],\"name\":\"recoverSigner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"nodeAcc\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAcc\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_endpoint\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_teeEth\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_teeCess\",\"type\":\"bytes\"}],\"name\":\"staking\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"toEthSignedMessageHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_nodeAcc\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_traffic\",\"type\":\"uint256\"}],\"name\":\"trafficForwarding\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_price\",\"type\":\"uint256\"}],\"name\":\"updateUnitPrice\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_msgHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"_signer\",\"type\":\"address\"}],\"name\":\"verify\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
}
CacheProtoMetaData contains all meta data concerning the CacheProto contract.
var TokenABI = TokenMetaData.ABI
TokenABI is the input ABI used to generate the binding from. Deprecated: Use TokenMetaData.ABI instead.
var TokenMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721IncorrectOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721InsufficientApproval\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOperator\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"ERC721InvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC721InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC721InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ERC721NonexistentToken\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"MintToken\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"mintToken\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"releaseTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
TokenMetaData contains all meta data concerning the Token contract.
Functions ¶
This section is empty.
Types ¶
type CacheProto ¶
type CacheProto struct { CacheProtoCaller // Read-only binding to the contract CacheProtoTransactor // Write-only binding to the contract CacheProtoFilterer // Log filterer for contract events }
CacheProto is an auto generated Go binding around an Ethereum contract.
func NewCacheProto ¶
func NewCacheProto(address common.Address, backend bind.ContractBackend) (*CacheProto, error)
NewCacheProto creates a new instance of CacheProto, bound to a specific deployed contract.
type CacheProtoCaller ¶
type CacheProtoCaller struct {
// contains filtered or unexported fields
}
CacheProtoCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCacheProtoCaller ¶
func NewCacheProtoCaller(address common.Address, caller bind.ContractCaller) (*CacheProtoCaller, error)
NewCacheProtoCaller creates a new read-only instance of CacheProto, bound to a specific deployed contract.
func (*CacheProtoCaller) CacheReward ¶
func (_CacheProto *CacheProtoCaller) CacheReward(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
CacheReward is a free data retrieval call binding the contract method 0x8b166d64.
Solidity: function CacheReward(address ) view returns(uint256)
func (*CacheProtoCaller) GetAllMREnclaveList ¶
func (_CacheProto *CacheProtoCaller) GetAllMREnclaveList(opts *bind.CallOpts) ([]string, error)
GetAllMREnclaveList is a free data retrieval call binding the contract method 0xb85eb0da.
Solidity: function getAllMREnclaveList() view returns(string[])
func (*CacheProtoCaller) GetAllMRSignerList ¶
func (_CacheProto *CacheProtoCaller) GetAllMRSignerList(opts *bind.CallOpts) ([]string, error)
GetAllMRSignerList is a free data retrieval call binding the contract method 0xc799bcf6.
Solidity: function getAllMRSignerList() view returns(string[])
func (*CacheProtoCaller) GetAllUpdateBlockNumber ¶
func (_CacheProto *CacheProtoCaller) GetAllUpdateBlockNumber(opts *bind.CallOpts) ([]*big.Int, error)
GetAllUpdateBlockNumber is a free data retrieval call binding the contract method 0x71b01df8.
Solidity: function getAllUpdateBlockNumber() view returns(uint256[])
func (*CacheProtoCaller) GetCurrencyTerm ¶
GetCurrencyTerm is a free data retrieval call binding the contract method 0x6f0173b7.
Solidity: function getCurrencyTerm() view returns(uint256)
func (*CacheProtoCaller) GetMessageHash ¶
func (_CacheProto *CacheProtoCaller) GetMessageHash(opts *bind.CallOpts, _account common.Address, _tokenId *big.Int) ([32]byte, error)
GetMessageHash is a free data retrieval call binding the contract method 0x512c91df.
Solidity: function getMessageHash(address _account, uint256 _tokenId) pure returns(bytes32)
func (*CacheProtoCaller) IsTokenOwner ¶
func (_CacheProto *CacheProtoCaller) IsTokenOwner(opts *bind.CallOpts, acc common.Address, tokenId *big.Int) (bool, error)
IsTokenOwner is a free data retrieval call binding the contract method 0x98f7ceab.
Solidity: function isTokenOwner(address acc, uint256 tokenId) view returns(bool)
func (*CacheProtoCaller) MREnclaveList ¶
func (_CacheProto *CacheProtoCaller) MREnclaveList(opts *bind.CallOpts, arg0 *big.Int) (string, error)
MREnclaveList is a free data retrieval call binding the contract method 0x494d845a.
Solidity: function MREnclaveList(uint256 ) view returns(string)
func (*CacheProtoCaller) MRSignerList ¶
func (_CacheProto *CacheProtoCaller) MRSignerList(opts *bind.CallOpts, arg0 *big.Int) (string, error)
MRSignerList is a free data retrieval call binding the contract method 0x12580d98.
Solidity: function MRSignerList(uint256 ) view returns(string)
func (*CacheProtoCaller) Node ¶
func (_CacheProto *CacheProtoCaller) Node(opts *bind.CallOpts, arg0 common.Address) (struct { Created bool Collerate *big.Int TokenId *big.Int Endpoint string TeeEth common.Address TeeCess []byte }, error)
Node is a free data retrieval call binding the contract method 0x6d19c92a.
Solidity: function Node(address ) view returns(bool created, uint256 collerate, uint256 tokenId, string endpoint, address teeEth, bytes teeCess)
func (*CacheProtoCaller) OpenRecover ¶
func (_CacheProto *CacheProtoCaller) OpenRecover(opts *bind.CallOpts, _msgHash [32]byte, _signature []byte) (common.Address, error)
OpenRecover is a free data retrieval call binding the contract method 0xb6a525cb.
Solidity: function openRecover(bytes32 _msgHash, bytes _signature) view returns(address)
func (*CacheProtoCaller) Order ¶
func (_CacheProto *CacheProtoCaller) Order(opts *bind.CallOpts, arg0 [32]byte) (struct { Value *big.Int Creater common.Address Node common.Address Term *big.Int }, error)
Order is a free data retrieval call binding the contract method 0x564f4c8b.
Solidity: function Order(bytes32 ) view returns(uint256 value, address creater, address node, uint256 term)
func (*CacheProtoCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*CacheProtoCaller) RecoverSigner ¶
func (_CacheProto *CacheProtoCaller) RecoverSigner(opts *bind.CallOpts, _msgHash [32]byte, _signature []byte) (common.Address, error)
RecoverSigner is a free data retrieval call binding the contract method 0x97aba7f9.
Solidity: function recoverSigner(bytes32 _msgHash, bytes _signature) pure returns(address)
func (*CacheProtoCaller) RewardRecord ¶
func (_CacheProto *CacheProtoCaller) RewardRecord(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
RewardRecord is a free data retrieval call binding the contract method 0xeeca2ab6.
Solidity: function RewardRecord(address ) view returns(uint256)
func (*CacheProtoCaller) TeeNodes ¶
func (_CacheProto *CacheProtoCaller) TeeNodes(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)
TeeNodes is a free data retrieval call binding the contract method 0x581837df.
Solidity: function TeeNodes(uint256 ) view returns(address)
func (*CacheProtoCaller) TermTotalTraffic ¶
func (_CacheProto *CacheProtoCaller) TermTotalTraffic(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
TermTotalTraffic is a free data retrieval call binding the contract method 0xb44665fc.
Solidity: function TermTotalTraffic(uint256 ) view returns(uint256)
func (*CacheProtoCaller) ToEthSignedMessageHash ¶
func (_CacheProto *CacheProtoCaller) ToEthSignedMessageHash(opts *bind.CallOpts, hash [32]byte) ([32]byte, error)
ToEthSignedMessageHash is a free data retrieval call binding the contract method 0x918a15cf.
Solidity: function toEthSignedMessageHash(bytes32 hash) pure returns(bytes32)
func (*CacheProtoCaller) TokenBonded ¶
TokenBonded is a free data retrieval call binding the contract method 0x7094d904.
Solidity: function TokenBonded(uint256 ) view returns(bool)
func (*CacheProtoCaller) TrafficNum ¶
func (_CacheProto *CacheProtoCaller) TrafficNum(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
TrafficNum is a free data retrieval call binding the contract method 0x88631905.
Solidity: function TrafficNum(address ) view returns(uint256)
func (*CacheProtoCaller) UnitPrice ¶
UnitPrice is a free data retrieval call binding the contract method 0xd6a55939.
Solidity: function UnitPrice() view returns(uint256)
func (*CacheProtoCaller) UpdateBlockNumber ¶
func (_CacheProto *CacheProtoCaller) UpdateBlockNumber(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
UpdateBlockNumber is a free data retrieval call binding the contract method 0xabb88dce.
Solidity: function UpdateBlockNumber(uint256 ) view returns(uint256)
func (*CacheProtoCaller) UserTrafficMap ¶
func (_CacheProto *CacheProtoCaller) UserTrafficMap(opts *bind.CallOpts, arg0 common.Address, arg1 common.Address) (*big.Int, error)
UserTrafficMap is a free data retrieval call binding the contract method 0x804778fa.
Solidity: function UserTrafficMap(address , address ) view returns(uint256)
func (*CacheProtoCaller) Verify ¶
func (_CacheProto *CacheProtoCaller) Verify(opts *bind.CallOpts, _msgHash [32]byte, _signature []byte, _signer common.Address) (bool, error)
Verify is a free data retrieval call binding the contract method 0x823ac373.
Solidity: function verify(bytes32 _msgHash, bytes _signature, address _signer) pure returns(bool)
type CacheProtoCallerRaw ¶
type CacheProtoCallerRaw struct {
Contract *CacheProtoCaller // Generic read-only contract binding to access the raw methods on
}
CacheProtoCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*CacheProtoCallerRaw) Call ¶
func (_CacheProto *CacheProtoCallerRaw) 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 CacheProtoCallerSession ¶
type CacheProtoCallerSession struct { Contract *CacheProtoCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
CacheProtoCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*CacheProtoCallerSession) CacheReward ¶
CacheReward is a free data retrieval call binding the contract method 0x8b166d64.
Solidity: function CacheReward(address ) view returns(uint256)
func (*CacheProtoCallerSession) GetAllMREnclaveList ¶
func (_CacheProto *CacheProtoCallerSession) GetAllMREnclaveList() ([]string, error)
GetAllMREnclaveList is a free data retrieval call binding the contract method 0xb85eb0da.
Solidity: function getAllMREnclaveList() view returns(string[])
func (*CacheProtoCallerSession) GetAllMRSignerList ¶
func (_CacheProto *CacheProtoCallerSession) GetAllMRSignerList() ([]string, error)
GetAllMRSignerList is a free data retrieval call binding the contract method 0xc799bcf6.
Solidity: function getAllMRSignerList() view returns(string[])
func (*CacheProtoCallerSession) GetAllUpdateBlockNumber ¶
func (_CacheProto *CacheProtoCallerSession) GetAllUpdateBlockNumber() ([]*big.Int, error)
GetAllUpdateBlockNumber is a free data retrieval call binding the contract method 0x71b01df8.
Solidity: function getAllUpdateBlockNumber() view returns(uint256[])
func (*CacheProtoCallerSession) GetCurrencyTerm ¶
func (_CacheProto *CacheProtoCallerSession) GetCurrencyTerm() (*big.Int, error)
GetCurrencyTerm is a free data retrieval call binding the contract method 0x6f0173b7.
Solidity: function getCurrencyTerm() view returns(uint256)
func (*CacheProtoCallerSession) GetMessageHash ¶
func (_CacheProto *CacheProtoCallerSession) GetMessageHash(_account common.Address, _tokenId *big.Int) ([32]byte, error)
GetMessageHash is a free data retrieval call binding the contract method 0x512c91df.
Solidity: function getMessageHash(address _account, uint256 _tokenId) pure returns(bytes32)
func (*CacheProtoCallerSession) IsTokenOwner ¶
func (_CacheProto *CacheProtoCallerSession) IsTokenOwner(acc common.Address, tokenId *big.Int) (bool, error)
IsTokenOwner is a free data retrieval call binding the contract method 0x98f7ceab.
Solidity: function isTokenOwner(address acc, uint256 tokenId) view returns(bool)
func (*CacheProtoCallerSession) MREnclaveList ¶
func (_CacheProto *CacheProtoCallerSession) MREnclaveList(arg0 *big.Int) (string, error)
MREnclaveList is a free data retrieval call binding the contract method 0x494d845a.
Solidity: function MREnclaveList(uint256 ) view returns(string)
func (*CacheProtoCallerSession) MRSignerList ¶
func (_CacheProto *CacheProtoCallerSession) MRSignerList(arg0 *big.Int) (string, error)
MRSignerList is a free data retrieval call binding the contract method 0x12580d98.
Solidity: function MRSignerList(uint256 ) view returns(string)
func (*CacheProtoCallerSession) Node ¶
func (_CacheProto *CacheProtoCallerSession) Node(arg0 common.Address) (struct { Created bool Collerate *big.Int TokenId *big.Int Endpoint string TeeEth common.Address TeeCess []byte }, error)
Node is a free data retrieval call binding the contract method 0x6d19c92a.
Solidity: function Node(address ) view returns(bool created, uint256 collerate, uint256 tokenId, string endpoint, address teeEth, bytes teeCess)
func (*CacheProtoCallerSession) OpenRecover ¶
func (_CacheProto *CacheProtoCallerSession) OpenRecover(_msgHash [32]byte, _signature []byte) (common.Address, error)
OpenRecover is a free data retrieval call binding the contract method 0xb6a525cb.
Solidity: function openRecover(bytes32 _msgHash, bytes _signature) view returns(address)
func (*CacheProtoCallerSession) Order ¶
func (_CacheProto *CacheProtoCallerSession) Order(arg0 [32]byte) (struct { Value *big.Int Creater common.Address Node common.Address Term *big.Int }, error)
Order is a free data retrieval call binding the contract method 0x564f4c8b.
Solidity: function Order(bytes32 ) view returns(uint256 value, address creater, address node, uint256 term)
func (*CacheProtoCallerSession) Owner ¶
func (_CacheProto *CacheProtoCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*CacheProtoCallerSession) RecoverSigner ¶
func (_CacheProto *CacheProtoCallerSession) RecoverSigner(_msgHash [32]byte, _signature []byte) (common.Address, error)
RecoverSigner is a free data retrieval call binding the contract method 0x97aba7f9.
Solidity: function recoverSigner(bytes32 _msgHash, bytes _signature) pure returns(address)
func (*CacheProtoCallerSession) RewardRecord ¶
RewardRecord is a free data retrieval call binding the contract method 0xeeca2ab6.
Solidity: function RewardRecord(address ) view returns(uint256)
func (*CacheProtoCallerSession) TeeNodes ¶
TeeNodes is a free data retrieval call binding the contract method 0x581837df.
Solidity: function TeeNodes(uint256 ) view returns(address)
func (*CacheProtoCallerSession) TermTotalTraffic ¶
TermTotalTraffic is a free data retrieval call binding the contract method 0xb44665fc.
Solidity: function TermTotalTraffic(uint256 ) view returns(uint256)
func (*CacheProtoCallerSession) ToEthSignedMessageHash ¶
func (_CacheProto *CacheProtoCallerSession) ToEthSignedMessageHash(hash [32]byte) ([32]byte, error)
ToEthSignedMessageHash is a free data retrieval call binding the contract method 0x918a15cf.
Solidity: function toEthSignedMessageHash(bytes32 hash) pure returns(bytes32)
func (*CacheProtoCallerSession) TokenBonded ¶
func (_CacheProto *CacheProtoCallerSession) TokenBonded(arg0 *big.Int) (bool, error)
TokenBonded is a free data retrieval call binding the contract method 0x7094d904.
Solidity: function TokenBonded(uint256 ) view returns(bool)
func (*CacheProtoCallerSession) TrafficNum ¶
TrafficNum is a free data retrieval call binding the contract method 0x88631905.
Solidity: function TrafficNum(address ) view returns(uint256)
func (*CacheProtoCallerSession) UnitPrice ¶
func (_CacheProto *CacheProtoCallerSession) UnitPrice() (*big.Int, error)
UnitPrice is a free data retrieval call binding the contract method 0xd6a55939.
Solidity: function UnitPrice() view returns(uint256)
func (*CacheProtoCallerSession) UpdateBlockNumber ¶
UpdateBlockNumber is a free data retrieval call binding the contract method 0xabb88dce.
Solidity: function UpdateBlockNumber(uint256 ) view returns(uint256)
func (*CacheProtoCallerSession) UserTrafficMap ¶
func (_CacheProto *CacheProtoCallerSession) UserTrafficMap(arg0 common.Address, arg1 common.Address) (*big.Int, error)
UserTrafficMap is a free data retrieval call binding the contract method 0x804778fa.
Solidity: function UserTrafficMap(address , address ) view returns(uint256)
func (*CacheProtoCallerSession) Verify ¶
func (_CacheProto *CacheProtoCallerSession) Verify(_msgHash [32]byte, _signature []byte, _signer common.Address) (bool, error)
Verify is a free data retrieval call binding the contract method 0x823ac373.
Solidity: function verify(bytes32 _msgHash, bytes _signature, address _signer) pure returns(bool)
type CacheProtoClaim ¶
type CacheProtoClaim struct { NodeAcc common.Address Reward *big.Int Raw types.Log // Blockchain specific contextual infos }
CacheProtoClaim represents a Claim event raised by the CacheProto contract.
type CacheProtoClaimIterator ¶
type CacheProtoClaimIterator struct { Event *CacheProtoClaim // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CacheProtoClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the CacheProto contract.
func (*CacheProtoClaimIterator) Close ¶
func (it *CacheProtoClaimIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CacheProtoClaimIterator) Error ¶
func (it *CacheProtoClaimIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CacheProtoClaimIterator) Next ¶
func (it *CacheProtoClaimIterator) 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 CacheProtoExit ¶
type CacheProtoExit struct { NodeAcc common.Address Raw types.Log // Blockchain specific contextual infos }
CacheProtoExit represents a Exit event raised by the CacheProto contract.
type CacheProtoExitIterator ¶
type CacheProtoExitIterator struct { Event *CacheProtoExit // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CacheProtoExitIterator is returned from FilterExit and is used to iterate over the raw logs and unpacked data for Exit events raised by the CacheProto contract.
func (*CacheProtoExitIterator) Close ¶
func (it *CacheProtoExitIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CacheProtoExitIterator) Error ¶
func (it *CacheProtoExitIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CacheProtoExitIterator) Next ¶
func (it *CacheProtoExitIterator) 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 CacheProtoFilterer ¶
type CacheProtoFilterer struct {
// contains filtered or unexported fields
}
CacheProtoFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCacheProtoFilterer ¶
func NewCacheProtoFilterer(address common.Address, filterer bind.ContractFilterer) (*CacheProtoFilterer, error)
NewCacheProtoFilterer creates a new log filterer instance of CacheProto, bound to a specific deployed contract.
func (*CacheProtoFilterer) FilterClaim ¶
func (_CacheProto *CacheProtoFilterer) FilterClaim(opts *bind.FilterOpts, nodeAcc []common.Address) (*CacheProtoClaimIterator, error)
FilterClaim is a free log retrieval operation binding the contract event 0x47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4.
Solidity: event Claim(address indexed nodeAcc, uint256 reward)
func (*CacheProtoFilterer) FilterExit ¶
func (_CacheProto *CacheProtoFilterer) FilterExit(opts *bind.FilterOpts, nodeAcc []common.Address) (*CacheProtoExitIterator, error)
FilterExit is a free log retrieval operation binding the contract event 0x7c79e6e24ed041d1072d54523b53956f01b91b835f0490856370594d9d14470e.
Solidity: event Exit(address indexed nodeAcc)
func (*CacheProtoFilterer) FilterOrderPayment ¶
func (_CacheProto *CacheProtoFilterer) FilterOrderPayment(opts *bind.FilterOpts, teeAcc []common.Address) (*CacheProtoOrderPaymentIterator, error)
FilterOrderPayment is a free log retrieval operation binding the contract event 0xaaa9d50df3d6b8efecfb6e09c3536b0dd0a960bb6bfdad76a85fb6e7811eea9f.
Solidity: event OrderPayment(address indexed teeAcc, uint256 traffic)
func (*CacheProtoFilterer) FilterOwnershipTransferred ¶
func (_CacheProto *CacheProtoFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CacheProtoOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*CacheProtoFilterer) FilterStaking ¶
func (_CacheProto *CacheProtoFilterer) FilterStaking(opts *bind.FilterOpts, nodeAcc []common.Address, tokenId []*big.Int) (*CacheProtoStakingIterator, error)
FilterStaking is a free log retrieval operation binding the contract event 0xb831f69f1cebc12b23cd864ce5bfea2669d01956050a0147d71d418074559c21.
Solidity: event Staking(address indexed nodeAcc, uint256 indexed tokenId)
func (*CacheProtoFilterer) FilterTrafficForwarding ¶
func (_CacheProto *CacheProtoFilterer) FilterTrafficForwarding(opts *bind.FilterOpts, nodeAcc []common.Address) (*CacheProtoTrafficForwardingIterator, error)
FilterTrafficForwarding is a free log retrieval operation binding the contract event 0x4f491f995276ce28befd7703c52a267ef1b9c6e35d688422e9c594aa9bb8728e.
Solidity: event TrafficForwarding(address indexed nodeAcc, uint256 traffic)
func (*CacheProtoFilterer) ParseClaim ¶
func (_CacheProto *CacheProtoFilterer) ParseClaim(log types.Log) (*CacheProtoClaim, error)
ParseClaim is a log parse operation binding the contract event 0x47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4.
Solidity: event Claim(address indexed nodeAcc, uint256 reward)
func (*CacheProtoFilterer) ParseExit ¶
func (_CacheProto *CacheProtoFilterer) ParseExit(log types.Log) (*CacheProtoExit, error)
ParseExit is a log parse operation binding the contract event 0x7c79e6e24ed041d1072d54523b53956f01b91b835f0490856370594d9d14470e.
Solidity: event Exit(address indexed nodeAcc)
func (*CacheProtoFilterer) ParseOrderPayment ¶
func (_CacheProto *CacheProtoFilterer) ParseOrderPayment(log types.Log) (*CacheProtoOrderPayment, error)
ParseOrderPayment is a log parse operation binding the contract event 0xaaa9d50df3d6b8efecfb6e09c3536b0dd0a960bb6bfdad76a85fb6e7811eea9f.
Solidity: event OrderPayment(address indexed teeAcc, uint256 traffic)
func (*CacheProtoFilterer) ParseOwnershipTransferred ¶
func (_CacheProto *CacheProtoFilterer) ParseOwnershipTransferred(log types.Log) (*CacheProtoOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*CacheProtoFilterer) ParseStaking ¶
func (_CacheProto *CacheProtoFilterer) ParseStaking(log types.Log) (*CacheProtoStaking, error)
ParseStaking is a log parse operation binding the contract event 0xb831f69f1cebc12b23cd864ce5bfea2669d01956050a0147d71d418074559c21.
Solidity: event Staking(address indexed nodeAcc, uint256 indexed tokenId)
func (*CacheProtoFilterer) ParseTrafficForwarding ¶
func (_CacheProto *CacheProtoFilterer) ParseTrafficForwarding(log types.Log) (*CacheProtoTrafficForwarding, error)
ParseTrafficForwarding is a log parse operation binding the contract event 0x4f491f995276ce28befd7703c52a267ef1b9c6e35d688422e9c594aa9bb8728e.
Solidity: event TrafficForwarding(address indexed nodeAcc, uint256 traffic)
func (*CacheProtoFilterer) WatchClaim ¶
func (_CacheProto *CacheProtoFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *CacheProtoClaim, nodeAcc []common.Address) (event.Subscription, error)
WatchClaim is a free log subscription operation binding the contract event 0x47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4.
Solidity: event Claim(address indexed nodeAcc, uint256 reward)
func (*CacheProtoFilterer) WatchExit ¶
func (_CacheProto *CacheProtoFilterer) WatchExit(opts *bind.WatchOpts, sink chan<- *CacheProtoExit, nodeAcc []common.Address) (event.Subscription, error)
WatchExit is a free log subscription operation binding the contract event 0x7c79e6e24ed041d1072d54523b53956f01b91b835f0490856370594d9d14470e.
Solidity: event Exit(address indexed nodeAcc)
func (*CacheProtoFilterer) WatchOrderPayment ¶
func (_CacheProto *CacheProtoFilterer) WatchOrderPayment(opts *bind.WatchOpts, sink chan<- *CacheProtoOrderPayment, teeAcc []common.Address) (event.Subscription, error)
WatchOrderPayment is a free log subscription operation binding the contract event 0xaaa9d50df3d6b8efecfb6e09c3536b0dd0a960bb6bfdad76a85fb6e7811eea9f.
Solidity: event OrderPayment(address indexed teeAcc, uint256 traffic)
func (*CacheProtoFilterer) WatchOwnershipTransferred ¶
func (_CacheProto *CacheProtoFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CacheProtoOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*CacheProtoFilterer) WatchStaking ¶
func (_CacheProto *CacheProtoFilterer) WatchStaking(opts *bind.WatchOpts, sink chan<- *CacheProtoStaking, nodeAcc []common.Address, tokenId []*big.Int) (event.Subscription, error)
WatchStaking is a free log subscription operation binding the contract event 0xb831f69f1cebc12b23cd864ce5bfea2669d01956050a0147d71d418074559c21.
Solidity: event Staking(address indexed nodeAcc, uint256 indexed tokenId)
func (*CacheProtoFilterer) WatchTrafficForwarding ¶
func (_CacheProto *CacheProtoFilterer) WatchTrafficForwarding(opts *bind.WatchOpts, sink chan<- *CacheProtoTrafficForwarding, nodeAcc []common.Address) (event.Subscription, error)
WatchTrafficForwarding is a free log subscription operation binding the contract event 0x4f491f995276ce28befd7703c52a267ef1b9c6e35d688422e9c594aa9bb8728e.
Solidity: event TrafficForwarding(address indexed nodeAcc, uint256 traffic)
type CacheProtoOrderPayment ¶
type CacheProtoOrderPayment struct { TeeAcc common.Address Traffic *big.Int Raw types.Log // Blockchain specific contextual infos }
CacheProtoOrderPayment represents a OrderPayment event raised by the CacheProto contract.
type CacheProtoOrderPaymentIterator ¶
type CacheProtoOrderPaymentIterator struct { Event *CacheProtoOrderPayment // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CacheProtoOrderPaymentIterator is returned from FilterOrderPayment and is used to iterate over the raw logs and unpacked data for OrderPayment events raised by the CacheProto contract.
func (*CacheProtoOrderPaymentIterator) Close ¶
func (it *CacheProtoOrderPaymentIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CacheProtoOrderPaymentIterator) Error ¶
func (it *CacheProtoOrderPaymentIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CacheProtoOrderPaymentIterator) Next ¶
func (it *CacheProtoOrderPaymentIterator) 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 CacheProtoOwnershipTransferred ¶
type CacheProtoOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
CacheProtoOwnershipTransferred represents a OwnershipTransferred event raised by the CacheProto contract.
type CacheProtoOwnershipTransferredIterator ¶
type CacheProtoOwnershipTransferredIterator struct { Event *CacheProtoOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CacheProtoOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the CacheProto contract.
func (*CacheProtoOwnershipTransferredIterator) Close ¶
func (it *CacheProtoOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CacheProtoOwnershipTransferredIterator) Error ¶
func (it *CacheProtoOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CacheProtoOwnershipTransferredIterator) Next ¶
func (it *CacheProtoOwnershipTransferredIterator) 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 CacheProtoRaw ¶
type CacheProtoRaw struct {
Contract *CacheProto // Generic contract binding to access the raw methods on
}
CacheProtoRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*CacheProtoRaw) Call ¶
func (_CacheProto *CacheProtoRaw) 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 (*CacheProtoRaw) Transact ¶
func (_CacheProto *CacheProtoRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CacheProtoRaw) Transfer ¶
func (_CacheProto *CacheProtoRaw) 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 CacheProtoSession ¶
type CacheProtoSession struct { Contract *CacheProto // 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 }
CacheProtoSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*CacheProtoSession) AddMREnclave ¶
func (_CacheProto *CacheProtoSession) AddMREnclave(value string) (*types.Transaction, error)
AddMREnclave is a paid mutator transaction binding the contract method 0x36adf350.
Solidity: function addMREnclave(string value) returns()
func (*CacheProtoSession) AddMRSigner ¶
func (_CacheProto *CacheProtoSession) AddMRSigner(value string) (*types.Transaction, error)
AddMRSigner is a paid mutator transaction binding the contract method 0xfdd052d8.
Solidity: function addMRSigner(string value) returns()
func (*CacheProtoSession) CacheOrderPayment ¶
func (_CacheProto *CacheProtoSession) CacheOrderPayment(_teeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
CacheOrderPayment is a paid mutator transaction binding the contract method 0x13366a50.
Solidity: function cacheOrderPayment(address _teeAcc, uint256 _traffic) payable returns()
func (*CacheProtoSession) CacheReward ¶
CacheReward is a free data retrieval call binding the contract method 0x8b166d64.
Solidity: function CacheReward(address ) view returns(uint256)
func (*CacheProtoSession) Claim ¶
func (_CacheProto *CacheProtoSession) Claim() (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x4e71d92d.
Solidity: function claim() returns()
func (*CacheProtoSession) Exit ¶
func (_CacheProto *CacheProtoSession) Exit() (*types.Transaction, error)
Exit is a paid mutator transaction binding the contract method 0xe9fad8ee.
Solidity: function exit() returns()
func (*CacheProtoSession) GetAllMREnclaveList ¶
func (_CacheProto *CacheProtoSession) GetAllMREnclaveList() ([]string, error)
GetAllMREnclaveList is a free data retrieval call binding the contract method 0xb85eb0da.
Solidity: function getAllMREnclaveList() view returns(string[])
func (*CacheProtoSession) GetAllMRSignerList ¶
func (_CacheProto *CacheProtoSession) GetAllMRSignerList() ([]string, error)
GetAllMRSignerList is a free data retrieval call binding the contract method 0xc799bcf6.
Solidity: function getAllMRSignerList() view returns(string[])
func (*CacheProtoSession) GetAllUpdateBlockNumber ¶
func (_CacheProto *CacheProtoSession) GetAllUpdateBlockNumber() ([]*big.Int, error)
GetAllUpdateBlockNumber is a free data retrieval call binding the contract method 0x71b01df8.
Solidity: function getAllUpdateBlockNumber() view returns(uint256[])
func (*CacheProtoSession) GetCurrencyTerm ¶
func (_CacheProto *CacheProtoSession) GetCurrencyTerm() (*big.Int, error)
GetCurrencyTerm is a free data retrieval call binding the contract method 0x6f0173b7.
Solidity: function getCurrencyTerm() view returns(uint256)
func (*CacheProtoSession) GetMessageHash ¶
func (_CacheProto *CacheProtoSession) GetMessageHash(_account common.Address, _tokenId *big.Int) ([32]byte, error)
GetMessageHash is a free data retrieval call binding the contract method 0x512c91df.
Solidity: function getMessageHash(address _account, uint256 _tokenId) pure returns(bytes32)
func (*CacheProtoSession) IsTokenOwner ¶
func (_CacheProto *CacheProtoSession) IsTokenOwner(acc common.Address, tokenId *big.Int) (bool, error)
IsTokenOwner is a free data retrieval call binding the contract method 0x98f7ceab.
Solidity: function isTokenOwner(address acc, uint256 tokenId) view returns(bool)
func (*CacheProtoSession) MREnclaveList ¶
func (_CacheProto *CacheProtoSession) MREnclaveList(arg0 *big.Int) (string, error)
MREnclaveList is a free data retrieval call binding the contract method 0x494d845a.
Solidity: function MREnclaveList(uint256 ) view returns(string)
func (*CacheProtoSession) MRSignerList ¶
func (_CacheProto *CacheProtoSession) MRSignerList(arg0 *big.Int) (string, error)
MRSignerList is a free data retrieval call binding the contract method 0x12580d98.
Solidity: function MRSignerList(uint256 ) view returns(string)
func (*CacheProtoSession) Node ¶
func (_CacheProto *CacheProtoSession) Node(arg0 common.Address) (struct { Created bool Collerate *big.Int TokenId *big.Int Endpoint string TeeEth common.Address TeeCess []byte }, error)
Node is a free data retrieval call binding the contract method 0x6d19c92a.
Solidity: function Node(address ) view returns(bool created, uint256 collerate, uint256 tokenId, string endpoint, address teeEth, bytes teeCess)
func (*CacheProtoSession) OpenRecover ¶
func (_CacheProto *CacheProtoSession) OpenRecover(_msgHash [32]byte, _signature []byte) (common.Address, error)
OpenRecover is a free data retrieval call binding the contract method 0xb6a525cb.
Solidity: function openRecover(bytes32 _msgHash, bytes _signature) view returns(address)
func (*CacheProtoSession) Order ¶
func (_CacheProto *CacheProtoSession) Order(arg0 [32]byte) (struct { Value *big.Int Creater common.Address Node common.Address Term *big.Int }, error)
Order is a free data retrieval call binding the contract method 0x564f4c8b.
Solidity: function Order(bytes32 ) view returns(uint256 value, address creater, address node, uint256 term)
func (*CacheProtoSession) Owner ¶
func (_CacheProto *CacheProtoSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*CacheProtoSession) RecoverSigner ¶
func (_CacheProto *CacheProtoSession) RecoverSigner(_msgHash [32]byte, _signature []byte) (common.Address, error)
RecoverSigner is a free data retrieval call binding the contract method 0x97aba7f9.
Solidity: function recoverSigner(bytes32 _msgHash, bytes _signature) pure returns(address)
func (*CacheProtoSession) RenounceOwnership ¶
func (_CacheProto *CacheProtoSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*CacheProtoSession) RewardRecord ¶
RewardRecord is a free data retrieval call binding the contract method 0xeeca2ab6.
Solidity: function RewardRecord(address ) view returns(uint256)
func (*CacheProtoSession) Staking ¶
func (_CacheProto *CacheProtoSession) Staking(nodeAcc common.Address, tokenAcc common.Address, tokenId *big.Int, _endpoint string, _signature []byte, _teeEth common.Address, _teeCess []byte) (*types.Transaction, error)
Staking is a paid mutator transaction binding the contract method 0xce87a1fc.
Solidity: function staking(address nodeAcc, address tokenAcc, uint256 tokenId, string _endpoint, bytes _signature, address _teeEth, bytes _teeCess) payable returns()
func (*CacheProtoSession) TeeNodes ¶
TeeNodes is a free data retrieval call binding the contract method 0x581837df.
Solidity: function TeeNodes(uint256 ) view returns(address)
func (*CacheProtoSession) TermTotalTraffic ¶
TermTotalTraffic is a free data retrieval call binding the contract method 0xb44665fc.
Solidity: function TermTotalTraffic(uint256 ) view returns(uint256)
func (*CacheProtoSession) ToEthSignedMessageHash ¶
func (_CacheProto *CacheProtoSession) ToEthSignedMessageHash(hash [32]byte) ([32]byte, error)
ToEthSignedMessageHash is a free data retrieval call binding the contract method 0x918a15cf.
Solidity: function toEthSignedMessageHash(bytes32 hash) pure returns(bytes32)
func (*CacheProtoSession) TokenBonded ¶
func (_CacheProto *CacheProtoSession) TokenBonded(arg0 *big.Int) (bool, error)
TokenBonded is a free data retrieval call binding the contract method 0x7094d904.
Solidity: function TokenBonded(uint256 ) view returns(bool)
func (*CacheProtoSession) TrafficForwarding ¶
func (_CacheProto *CacheProtoSession) TrafficForwarding(user common.Address, _nodeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
TrafficForwarding is a paid mutator transaction binding the contract method 0x121f5576.
Solidity: function trafficForwarding(address user, address _nodeAcc, uint256 _traffic) returns()
func (*CacheProtoSession) TrafficNum ¶
TrafficNum is a free data retrieval call binding the contract method 0x88631905.
Solidity: function TrafficNum(address ) view returns(uint256)
func (*CacheProtoSession) TransferOwnership ¶
func (_CacheProto *CacheProtoSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*CacheProtoSession) UnitPrice ¶
func (_CacheProto *CacheProtoSession) UnitPrice() (*big.Int, error)
UnitPrice is a free data retrieval call binding the contract method 0xd6a55939.
Solidity: function UnitPrice() view returns(uint256)
func (*CacheProtoSession) UpdateBlockNumber ¶
UpdateBlockNumber is a free data retrieval call binding the contract method 0xabb88dce.
Solidity: function UpdateBlockNumber(uint256 ) view returns(uint256)
func (*CacheProtoSession) UpdateUnitPrice ¶
func (_CacheProto *CacheProtoSession) UpdateUnitPrice(_price *big.Int) (*types.Transaction, error)
UpdateUnitPrice is a paid mutator transaction binding the contract method 0xcb2432a7.
Solidity: function updateUnitPrice(uint256 _price) returns()
func (*CacheProtoSession) UserTrafficMap ¶
func (_CacheProto *CacheProtoSession) UserTrafficMap(arg0 common.Address, arg1 common.Address) (*big.Int, error)
UserTrafficMap is a free data retrieval call binding the contract method 0x804778fa.
Solidity: function UserTrafficMap(address , address ) view returns(uint256)
func (*CacheProtoSession) Verify ¶
func (_CacheProto *CacheProtoSession) Verify(_msgHash [32]byte, _signature []byte, _signer common.Address) (bool, error)
Verify is a free data retrieval call binding the contract method 0x823ac373.
Solidity: function verify(bytes32 _msgHash, bytes _signature, address _signer) pure returns(bool)
type CacheProtoStaking ¶
type CacheProtoStaking struct { NodeAcc common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
CacheProtoStaking represents a Staking event raised by the CacheProto contract.
type CacheProtoStakingIterator ¶
type CacheProtoStakingIterator struct { Event *CacheProtoStaking // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CacheProtoStakingIterator is returned from FilterStaking and is used to iterate over the raw logs and unpacked data for Staking events raised by the CacheProto contract.
func (*CacheProtoStakingIterator) Close ¶
func (it *CacheProtoStakingIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CacheProtoStakingIterator) Error ¶
func (it *CacheProtoStakingIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CacheProtoStakingIterator) Next ¶
func (it *CacheProtoStakingIterator) 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 CacheProtoTrafficForwarding ¶
type CacheProtoTrafficForwarding struct { NodeAcc common.Address Traffic *big.Int Raw types.Log // Blockchain specific contextual infos }
CacheProtoTrafficForwarding represents a TrafficForwarding event raised by the CacheProto contract.
type CacheProtoTrafficForwardingIterator ¶
type CacheProtoTrafficForwardingIterator struct { Event *CacheProtoTrafficForwarding // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CacheProtoTrafficForwardingIterator is returned from FilterTrafficForwarding and is used to iterate over the raw logs and unpacked data for TrafficForwarding events raised by the CacheProto contract.
func (*CacheProtoTrafficForwardingIterator) Close ¶
func (it *CacheProtoTrafficForwardingIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CacheProtoTrafficForwardingIterator) Error ¶
func (it *CacheProtoTrafficForwardingIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CacheProtoTrafficForwardingIterator) Next ¶
func (it *CacheProtoTrafficForwardingIterator) 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 CacheProtoTransactor ¶
type CacheProtoTransactor struct {
// contains filtered or unexported fields
}
CacheProtoTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCacheProtoTransactor ¶
func NewCacheProtoTransactor(address common.Address, transactor bind.ContractTransactor) (*CacheProtoTransactor, error)
NewCacheProtoTransactor creates a new write-only instance of CacheProto, bound to a specific deployed contract.
func (*CacheProtoTransactor) AddMREnclave ¶
func (_CacheProto *CacheProtoTransactor) AddMREnclave(opts *bind.TransactOpts, value string) (*types.Transaction, error)
AddMREnclave is a paid mutator transaction binding the contract method 0x36adf350.
Solidity: function addMREnclave(string value) returns()
func (*CacheProtoTransactor) AddMRSigner ¶
func (_CacheProto *CacheProtoTransactor) AddMRSigner(opts *bind.TransactOpts, value string) (*types.Transaction, error)
AddMRSigner is a paid mutator transaction binding the contract method 0xfdd052d8.
Solidity: function addMRSigner(string value) returns()
func (*CacheProtoTransactor) CacheOrderPayment ¶
func (_CacheProto *CacheProtoTransactor) CacheOrderPayment(opts *bind.TransactOpts, _teeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
CacheOrderPayment is a paid mutator transaction binding the contract method 0x13366a50.
Solidity: function cacheOrderPayment(address _teeAcc, uint256 _traffic) payable returns()
func (*CacheProtoTransactor) Claim ¶
func (_CacheProto *CacheProtoTransactor) Claim(opts *bind.TransactOpts) (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x4e71d92d.
Solidity: function claim() returns()
func (*CacheProtoTransactor) Exit ¶
func (_CacheProto *CacheProtoTransactor) Exit(opts *bind.TransactOpts) (*types.Transaction, error)
Exit is a paid mutator transaction binding the contract method 0xe9fad8ee.
Solidity: function exit() returns()
func (*CacheProtoTransactor) RenounceOwnership ¶
func (_CacheProto *CacheProtoTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*CacheProtoTransactor) Staking ¶
func (_CacheProto *CacheProtoTransactor) Staking(opts *bind.TransactOpts, nodeAcc common.Address, tokenAcc common.Address, tokenId *big.Int, _endpoint string, _signature []byte, _teeEth common.Address, _teeCess []byte) (*types.Transaction, error)
Staking is a paid mutator transaction binding the contract method 0xce87a1fc.
Solidity: function staking(address nodeAcc, address tokenAcc, uint256 tokenId, string _endpoint, bytes _signature, address _teeEth, bytes _teeCess) payable returns()
func (*CacheProtoTransactor) TrafficForwarding ¶
func (_CacheProto *CacheProtoTransactor) TrafficForwarding(opts *bind.TransactOpts, user common.Address, _nodeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
TrafficForwarding is a paid mutator transaction binding the contract method 0x121f5576.
Solidity: function trafficForwarding(address user, address _nodeAcc, uint256 _traffic) returns()
func (*CacheProtoTransactor) TransferOwnership ¶
func (_CacheProto *CacheProtoTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*CacheProtoTransactor) UpdateUnitPrice ¶
func (_CacheProto *CacheProtoTransactor) UpdateUnitPrice(opts *bind.TransactOpts, _price *big.Int) (*types.Transaction, error)
UpdateUnitPrice is a paid mutator transaction binding the contract method 0xcb2432a7.
Solidity: function updateUnitPrice(uint256 _price) returns()
type CacheProtoTransactorRaw ¶
type CacheProtoTransactorRaw struct {
Contract *CacheProtoTransactor // Generic write-only contract binding to access the raw methods on
}
CacheProtoTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*CacheProtoTransactorRaw) Transact ¶
func (_CacheProto *CacheProtoTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CacheProtoTransactorRaw) Transfer ¶
func (_CacheProto *CacheProtoTransactorRaw) 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 CacheProtoTransactorSession ¶
type CacheProtoTransactorSession struct { Contract *CacheProtoTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CacheProtoTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*CacheProtoTransactorSession) AddMREnclave ¶
func (_CacheProto *CacheProtoTransactorSession) AddMREnclave(value string) (*types.Transaction, error)
AddMREnclave is a paid mutator transaction binding the contract method 0x36adf350.
Solidity: function addMREnclave(string value) returns()
func (*CacheProtoTransactorSession) AddMRSigner ¶
func (_CacheProto *CacheProtoTransactorSession) AddMRSigner(value string) (*types.Transaction, error)
AddMRSigner is a paid mutator transaction binding the contract method 0xfdd052d8.
Solidity: function addMRSigner(string value) returns()
func (*CacheProtoTransactorSession) CacheOrderPayment ¶
func (_CacheProto *CacheProtoTransactorSession) CacheOrderPayment(_teeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
CacheOrderPayment is a paid mutator transaction binding the contract method 0x13366a50.
Solidity: function cacheOrderPayment(address _teeAcc, uint256 _traffic) payable returns()
func (*CacheProtoTransactorSession) Claim ¶
func (_CacheProto *CacheProtoTransactorSession) Claim() (*types.Transaction, error)
Claim is a paid mutator transaction binding the contract method 0x4e71d92d.
Solidity: function claim() returns()
func (*CacheProtoTransactorSession) Exit ¶
func (_CacheProto *CacheProtoTransactorSession) Exit() (*types.Transaction, error)
Exit is a paid mutator transaction binding the contract method 0xe9fad8ee.
Solidity: function exit() returns()
func (*CacheProtoTransactorSession) RenounceOwnership ¶
func (_CacheProto *CacheProtoTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*CacheProtoTransactorSession) Staking ¶
func (_CacheProto *CacheProtoTransactorSession) Staking(nodeAcc common.Address, tokenAcc common.Address, tokenId *big.Int, _endpoint string, _signature []byte, _teeEth common.Address, _teeCess []byte) (*types.Transaction, error)
Staking is a paid mutator transaction binding the contract method 0xce87a1fc.
Solidity: function staking(address nodeAcc, address tokenAcc, uint256 tokenId, string _endpoint, bytes _signature, address _teeEth, bytes _teeCess) payable returns()
func (*CacheProtoTransactorSession) TrafficForwarding ¶
func (_CacheProto *CacheProtoTransactorSession) TrafficForwarding(user common.Address, _nodeAcc common.Address, _traffic *big.Int) (*types.Transaction, error)
TrafficForwarding is a paid mutator transaction binding the contract method 0x121f5576.
Solidity: function trafficForwarding(address user, address _nodeAcc, uint256 _traffic) returns()
func (*CacheProtoTransactorSession) TransferOwnership ¶
func (_CacheProto *CacheProtoTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*CacheProtoTransactorSession) UpdateUnitPrice ¶
func (_CacheProto *CacheProtoTransactorSession) UpdateUnitPrice(_price *big.Int) (*types.Transaction, error)
UpdateUnitPrice is a paid mutator transaction binding the contract method 0xcb2432a7.
Solidity: function updateUnitPrice(uint256 _price) returns()
type Token ¶
type Token struct { TokenCaller // Read-only binding to the contract TokenTransactor // Write-only binding to the contract TokenFilterer // Log filterer for contract events }
Token is an auto generated Go binding around an Ethereum contract.
type TokenApproval ¶
type TokenApproval struct { Owner common.Address Approved common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenApproval represents a Approval event raised by the Token contract.
type TokenApprovalForAll ¶
type TokenApprovalForAll struct { Owner common.Address Operator common.Address Approved bool Raw types.Log // Blockchain specific contextual infos }
TokenApprovalForAll represents a ApprovalForAll event raised by the Token contract.
type TokenApprovalForAllIterator ¶
type TokenApprovalForAllIterator struct { Event *TokenApprovalForAll // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the Token contract.
func (*TokenApprovalForAllIterator) Close ¶
func (it *TokenApprovalForAllIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenApprovalForAllIterator) Error ¶
func (it *TokenApprovalForAllIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenApprovalForAllIterator) Next ¶
func (it *TokenApprovalForAllIterator) 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 TokenApprovalIterator ¶
type TokenApprovalIterator struct { Event *TokenApproval // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Token contract.
func (*TokenApprovalIterator) Close ¶
func (it *TokenApprovalIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenApprovalIterator) Error ¶
func (it *TokenApprovalIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenApprovalIterator) Next ¶
func (it *TokenApprovalIterator) 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 TokenCaller ¶
type TokenCaller struct {
// contains filtered or unexported fields
}
TokenCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokenCaller ¶
func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)
NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.
func (*TokenCaller) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*TokenCaller) GetApproved ¶
func (_Token *TokenCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error)
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*TokenCaller) IsApprovedForAll ¶
func (_Token *TokenCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*TokenCaller) Name ¶
func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*TokenCaller) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*TokenCaller) ReleaseTime ¶
ReleaseTime is a free data retrieval call binding the contract method 0x09c4bb2b.
Solidity: function releaseTime(uint256 ) view returns(uint256)
func (*TokenCaller) SupportsInterface ¶
func (_Token *TokenCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
type TokenCallerRaw ¶
type TokenCallerRaw struct {
Contract *TokenCaller // Generic read-only contract binding to access the raw methods on
}
TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokenCallerRaw) Call ¶
func (_Token *TokenCallerRaw) 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 TokenCallerSession ¶
type TokenCallerSession struct { Contract *TokenCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TokenCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*TokenCallerSession) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*TokenCallerSession) IsApprovedForAll ¶
func (_Token *TokenCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*TokenCallerSession) Name ¶
func (_Token *TokenCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*TokenCallerSession) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*TokenCallerSession) ReleaseTime ¶
ReleaseTime is a free data retrieval call binding the contract method 0x09c4bb2b.
Solidity: function releaseTime(uint256 ) view returns(uint256)
func (*TokenCallerSession) SupportsInterface ¶
func (_Token *TokenCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*TokenCallerSession) Symbol ¶
func (_Token *TokenCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
type TokenFilterer ¶
type TokenFilterer struct {
// contains filtered or unexported fields
}
TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokenFilterer ¶
func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error)
NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.
func (*TokenFilterer) FilterApproval ¶
func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*TokenApprovalIterator, error)
FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*TokenFilterer) FilterApprovalForAll ¶
func (_Token *TokenFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*TokenApprovalForAllIterator, error)
FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*TokenFilterer) FilterMintToken ¶
func (_Token *TokenFilterer) FilterMintToken(opts *bind.FilterOpts, owner []common.Address, tokenId []*big.Int) (*TokenMintTokenIterator, error)
FilterMintToken is a free log retrieval operation binding the contract event 0xdcdea898caf5576419f89caf69301592a4758349a0bd62300b58849213420a72.
Solidity: event MintToken(address indexed owner, uint256 indexed tokenId)
func (*TokenFilterer) FilterTransfer ¶
func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*TokenTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
func (*TokenFilterer) ParseApproval ¶
func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)
ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*TokenFilterer) ParseApprovalForAll ¶
func (_Token *TokenFilterer) ParseApprovalForAll(log types.Log) (*TokenApprovalForAll, error)
ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*TokenFilterer) ParseMintToken ¶
func (_Token *TokenFilterer) ParseMintToken(log types.Log) (*TokenMintToken, error)
ParseMintToken is a log parse operation binding the contract event 0xdcdea898caf5576419f89caf69301592a4758349a0bd62300b58849213420a72.
Solidity: event MintToken(address indexed owner, uint256 indexed tokenId)
func (*TokenFilterer) ParseTransfer ¶
func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)
ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
func (*TokenFilterer) WatchApproval ¶
func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error)
WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
func (*TokenFilterer) WatchApprovalForAll ¶
func (_Token *TokenFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *TokenApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error)
WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
func (*TokenFilterer) WatchMintToken ¶
func (_Token *TokenFilterer) WatchMintToken(opts *bind.WatchOpts, sink chan<- *TokenMintToken, owner []common.Address, tokenId []*big.Int) (event.Subscription, error)
WatchMintToken is a free log subscription operation binding the contract event 0xdcdea898caf5576419f89caf69301592a4758349a0bd62300b58849213420a72.
Solidity: event MintToken(address indexed owner, uint256 indexed tokenId)
func (*TokenFilterer) WatchTransfer ¶
func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
type TokenMintToken ¶
type TokenMintToken struct { Owner common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenMintToken represents a MintToken event raised by the Token contract.
type TokenMintTokenIterator ¶
type TokenMintTokenIterator struct { Event *TokenMintToken // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenMintTokenIterator is returned from FilterMintToken and is used to iterate over the raw logs and unpacked data for MintToken events raised by the Token contract.
func (*TokenMintTokenIterator) Close ¶
func (it *TokenMintTokenIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenMintTokenIterator) Error ¶
func (it *TokenMintTokenIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenMintTokenIterator) Next ¶
func (it *TokenMintTokenIterator) 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 TokenRaw ¶
type TokenRaw struct {
Contract *Token // Generic contract binding to access the raw methods on
}
TokenRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokenRaw) Call ¶
func (_Token *TokenRaw) 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 (*TokenRaw) Transact ¶
func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenRaw) Transfer ¶
func (_Token *TokenRaw) 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 TokenSession ¶
type TokenSession struct { Contract *Token // 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 }
TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokenSession) Approve ¶
func (_Token *TokenSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*TokenSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*TokenSession) GetApproved ¶
GetApproved is a free data retrieval call binding the contract method 0x081812fc.
Solidity: function getApproved(uint256 tokenId) view returns(address)
func (*TokenSession) IsApprovedForAll ¶
func (_Token *TokenSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error)
IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
func (*TokenSession) MintToken ¶
func (_Token *TokenSession) MintToken(to common.Address) (*types.Transaction, error)
MintToken is a paid mutator transaction binding the contract method 0x01173a74.
Solidity: function mintToken(address to) payable returns()
func (*TokenSession) Name ¶
func (_Token *TokenSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*TokenSession) OwnerOf ¶
OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
Solidity: function ownerOf(uint256 tokenId) view returns(address)
func (*TokenSession) ReleaseTime ¶
ReleaseTime is a free data retrieval call binding the contract method 0x09c4bb2b.
Solidity: function releaseTime(uint256 ) view returns(uint256)
func (*TokenSession) SafeTransferFrom ¶
func (_Token *TokenSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*TokenSession) SafeTransferFrom0 ¶
func (_Token *TokenSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*TokenSession) SetApprovalForAll ¶
func (_Token *TokenSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*TokenSession) SupportsInterface ¶
func (_Token *TokenSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*TokenSession) Symbol ¶
func (_Token *TokenSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*TokenSession) TokenURI ¶
func (_Token *TokenSession) TokenURI(tokenId *big.Int) (string, error)
TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.
Solidity: function tokenURI(uint256 tokenId) view returns(string)
func (*TokenSession) TransferFrom ¶
func (_Token *TokenSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
func (*TokenSession) Withdraw ¶
func (_Token *TokenSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type TokenTransactor ¶
type TokenTransactor struct {
// contains filtered or unexported fields
}
TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokenTransactor ¶
func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error)
NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.
func (*TokenTransactor) Approve ¶
func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*TokenTransactor) MintToken ¶
func (_Token *TokenTransactor) MintToken(opts *bind.TransactOpts, to common.Address) (*types.Transaction, error)
MintToken is a paid mutator transaction binding the contract method 0x01173a74.
Solidity: function mintToken(address to) payable returns()
func (*TokenTransactor) SafeTransferFrom ¶
func (_Token *TokenTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*TokenTransactor) SafeTransferFrom0 ¶
func (_Token *TokenTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*TokenTransactor) SetApprovalForAll ¶
func (_Token *TokenTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*TokenTransactor) TransferFrom ¶
func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
func (*TokenTransactor) Withdraw ¶
func (_Token *TokenTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type TokenTransactorRaw ¶
type TokenTransactorRaw struct {
Contract *TokenTransactor // Generic write-only contract binding to access the raw methods on
}
TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokenTransactorRaw) Transact ¶
func (_Token *TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenTransactorRaw) Transfer ¶
func (_Token *TokenTransactorRaw) 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 TokenTransactorSession ¶
type TokenTransactorSession struct { Contract *TokenTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokenTransactorSession) Approve ¶
func (_Token *TokenTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error)
Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
Solidity: function approve(address to, uint256 tokenId) returns()
func (*TokenTransactorSession) MintToken ¶
func (_Token *TokenTransactorSession) MintToken(to common.Address) (*types.Transaction, error)
MintToken is a paid mutator transaction binding the contract method 0x01173a74.
Solidity: function mintToken(address to) payable returns()
func (*TokenTransactorSession) SafeTransferFrom ¶
func (_Token *TokenTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
func (*TokenTransactorSession) SafeTransferFrom0 ¶
func (_Token *TokenTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error)
SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes data) returns()
func (*TokenTransactorSession) SetApprovalForAll ¶
func (_Token *TokenTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error)
SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
Solidity: function setApprovalForAll(address operator, bool approved) returns()
func (*TokenTransactorSession) TransferFrom ¶
func (_Token *TokenTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error)
TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
func (*TokenTransactorSession) Withdraw ¶
func (_Token *TokenTransactorSession) Withdraw() (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
Solidity: function withdraw() returns()
type TokenTransfer ¶
type TokenTransfer struct { From common.Address To common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos }
TokenTransfer represents a Transfer event raised by the Token contract.
type TokenTransferIterator ¶
type TokenTransferIterator struct { Event *TokenTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Token contract.
func (*TokenTransferIterator) Close ¶
func (it *TokenTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenTransferIterator) Error ¶
func (it *TokenTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenTransferIterator) Next ¶
func (it *TokenTransferIterator) 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.