Documentation ¶
Index ¶
- Constants
- type FileStore
- type FileStoreAuthorize
- type FileStoreAuthorizeIterator
- type FileStoreCaller
- type FileStoreCallerRaw
- type FileStoreCallerSession
- type FileStoreFilterer
- func (_FileStore *FileStoreFilterer) FilterAuthorize(opts *bind.FilterOpts, object []common.Address, subject []common.Address, ...) (*FileStoreAuthorizeIterator, error)
- func (_FileStore *FileStoreFilterer) FilterTransfer(opts *bind.FilterOpts, oldOwner []common.Address, newOnwer []common.Address, ...) (*FileStoreTransferIterator, error)
- func (_FileStore *FileStoreFilterer) WatchAuthorize(opts *bind.WatchOpts, sink chan<- *FileStoreAuthorize, object []common.Address, ...) (event.Subscription, error)
- func (_FileStore *FileStoreFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *FileStoreTransfer, ...) (event.Subscription, error)
- type FileStoreRaw
- func (_FileStore *FileStoreRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_FileStore *FileStoreRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_FileStore *FileStoreRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type FileStoreSession
- func (_FileStore *FileStoreSession) GetLiscense(_fileHash string, _object common.Address) (*big.Int, error)
- func (_FileStore *FileStoreSession) License(_from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
- func (_FileStore *FileStoreSession) OwnerOf(_fileHash string) (common.Address, error)
- func (_FileStore *FileStoreSession) SetOwner(_fileHash string, _owner common.Address) (*types.Transaction, error)
- func (_FileStore *FileStoreSession) Transfer(_from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
- type FileStoreTransactor
- func (_FileStore *FileStoreTransactor) License(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- func (_FileStore *FileStoreTransactor) SetOwner(opts *bind.TransactOpts, _fileHash string, _owner common.Address) (*types.Transaction, error)
- func (_FileStore *FileStoreTransactor) Transfer(opts *bind.TransactOpts, _from common.Address, _to common.Address, ...) (*types.Transaction, error)
- type FileStoreTransactorRaw
- type FileStoreTransactorSession
- func (_FileStore *FileStoreTransactorSession) License(_from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
- func (_FileStore *FileStoreTransactorSession) SetOwner(_fileHash string, _owner common.Address) (*types.Transaction, error)
- func (_FileStore *FileStoreTransactorSession) Transfer(_from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
- type FileStoreTransfer
- type FileStoreTransferIterator
Constants ¶
const FileStoreABI = "" /* 1992-byte string literal not displayed */
FileStoreABI is the input ABI used to generate the binding from.
const FileStoreBin = `` /* 5652-byte string literal not displayed */
FileStoreBin is the compiled bytecode used for deploying new contracts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStore ¶
type FileStore struct { FileStoreCaller // Read-only binding to the contract FileStoreTransactor // Write-only binding to the contract FileStoreFilterer // Log filterer for contract events }
FileStore is an auto generated Go binding around an Ethereum contract.
func DeployFileStore ¶
func DeployFileStore(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *FileStore, error)
DeployFileStore deploys a new Ethereum contract, binding an instance of FileStore to it.
func NewFileStore ¶
NewFileStore creates a new instance of FileStore, bound to a specific deployed contract.
type FileStoreAuthorize ¶
type FileStoreAuthorize struct { Object common.Address Subject common.Address FileHash common.Hash Price *big.Int Raw types.Log // Blockchain specific contextual infos }
FileStoreAuthorize represents a Authorize event raised by the FileStore contract.
type FileStoreAuthorizeIterator ¶
type FileStoreAuthorizeIterator struct { Event *FileStoreAuthorize // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FileStoreAuthorizeIterator is returned from FilterAuthorize and is used to iterate over the raw logs and unpacked data for Authorize events raised by the FileStore contract.
func (*FileStoreAuthorizeIterator) Close ¶
func (it *FileStoreAuthorizeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FileStoreAuthorizeIterator) Error ¶
func (it *FileStoreAuthorizeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FileStoreAuthorizeIterator) Next ¶
func (it *FileStoreAuthorizeIterator) 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 FileStoreCaller ¶
type FileStoreCaller struct {
// contains filtered or unexported fields
}
FileStoreCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewFileStoreCaller ¶
func NewFileStoreCaller(address common.Address, caller bind.ContractCaller) (*FileStoreCaller, error)
NewFileStoreCaller creates a new read-only instance of FileStore, bound to a specific deployed contract.
func (*FileStoreCaller) GetLiscense ¶
func (_FileStore *FileStoreCaller) GetLiscense(opts *bind.CallOpts, _fileHash string, _object common.Address) (*big.Int, error)
GetLiscense is a free data retrieval call binding the contract method 0xb0c53e64.
Solidity: function getLiscense(_fileHash string, _object address) constant returns(uint256)
type FileStoreCallerRaw ¶
type FileStoreCallerRaw struct {
Contract *FileStoreCaller // Generic read-only contract binding to access the raw methods on
}
FileStoreCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*FileStoreCallerRaw) Call ¶
func (_FileStore *FileStoreCallerRaw) 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 FileStoreCallerSession ¶
type FileStoreCallerSession struct { Contract *FileStoreCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
FileStoreCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*FileStoreCallerSession) GetLiscense ¶
func (_FileStore *FileStoreCallerSession) GetLiscense(_fileHash string, _object common.Address) (*big.Int, error)
GetLiscense is a free data retrieval call binding the contract method 0xb0c53e64.
Solidity: function getLiscense(_fileHash string, _object address) constant returns(uint256)
type FileStoreFilterer ¶
type FileStoreFilterer struct {
// contains filtered or unexported fields
}
FileStoreFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewFileStoreFilterer ¶
func NewFileStoreFilterer(address common.Address, filterer bind.ContractFilterer) (*FileStoreFilterer, error)
NewFileStoreFilterer creates a new log filterer instance of FileStore, bound to a specific deployed contract.
func (*FileStoreFilterer) FilterAuthorize ¶
func (_FileStore *FileStoreFilterer) FilterAuthorize(opts *bind.FilterOpts, object []common.Address, subject []common.Address, fileHash []string) (*FileStoreAuthorizeIterator, error)
FilterAuthorize is a free log retrieval operation binding the contract event 0x7e56236d93d8e3f3119802125a45707c87b28d55bb62d160c689f6861d0a65d1.
Solidity: e Authorize(object indexed address, subject indexed address, fileHash indexed string, price uint256)
func (*FileStoreFilterer) FilterTransfer ¶
func (_FileStore *FileStoreFilterer) FilterTransfer(opts *bind.FilterOpts, oldOwner []common.Address, newOnwer []common.Address, fileHash []string) (*FileStoreTransferIterator, error)
FilterTransfer is a free log retrieval operation binding the contract event 0x1d30d3db8e01fa0d5626c471596f822f597e720c26a2930ef20d3387313c3d78.
Solidity: e Transfer(oldOwner indexed address, newOnwer indexed address, fileHash indexed string, price uint256)
func (*FileStoreFilterer) WatchAuthorize ¶
func (_FileStore *FileStoreFilterer) WatchAuthorize(opts *bind.WatchOpts, sink chan<- *FileStoreAuthorize, object []common.Address, subject []common.Address, fileHash []string) (event.Subscription, error)
WatchAuthorize is a free log subscription operation binding the contract event 0x7e56236d93d8e3f3119802125a45707c87b28d55bb62d160c689f6861d0a65d1.
Solidity: e Authorize(object indexed address, subject indexed address, fileHash indexed string, price uint256)
func (*FileStoreFilterer) WatchTransfer ¶
func (_FileStore *FileStoreFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *FileStoreTransfer, oldOwner []common.Address, newOnwer []common.Address, fileHash []string) (event.Subscription, error)
WatchTransfer is a free log subscription operation binding the contract event 0x1d30d3db8e01fa0d5626c471596f822f597e720c26a2930ef20d3387313c3d78.
Solidity: e Transfer(oldOwner indexed address, newOnwer indexed address, fileHash indexed string, price uint256)
type FileStoreRaw ¶
type FileStoreRaw struct {
Contract *FileStore // Generic contract binding to access the raw methods on
}
FileStoreRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*FileStoreRaw) Call ¶
func (_FileStore *FileStoreRaw) 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 (*FileStoreRaw) Transact ¶
func (_FileStore *FileStoreRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FileStoreRaw) Transfer ¶
func (_FileStore *FileStoreRaw) 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 FileStoreSession ¶
type FileStoreSession struct { Contract *FileStore // 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 }
FileStoreSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*FileStoreSession) GetLiscense ¶
func (_FileStore *FileStoreSession) GetLiscense(_fileHash string, _object common.Address) (*big.Int, error)
GetLiscense is a free data retrieval call binding the contract method 0xb0c53e64.
Solidity: function getLiscense(_fileHash string, _object address) constant returns(uint256)
func (*FileStoreSession) License ¶
func (_FileStore *FileStoreSession) License(_from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
License is a paid mutator transaction binding the contract method 0x45af7afb.
Solidity: function license(_from address, _to address, _fileHash string, _price uint256) returns()
func (*FileStoreSession) OwnerOf ¶
func (_FileStore *FileStoreSession) OwnerOf(_fileHash string) (common.Address, error)
OwnerOf is a free data retrieval call binding the contract method 0x920ffa26.
Solidity: function ownerOf(_fileHash string) constant returns(address)
func (*FileStoreSession) SetOwner ¶
func (_FileStore *FileStoreSession) SetOwner(_fileHash string, _owner common.Address) (*types.Transaction, error)
SetOwner is a paid mutator transaction binding the contract method 0x092b25e9.
Solidity: function setOwner(_fileHash string, _owner address) returns()
func (*FileStoreSession) Transfer ¶
func (_FileStore *FileStoreSession) Transfer(_from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0x2e0274a2.
Solidity: function transfer(_from address, _to address, _fileHash string, _price uint256) returns()
type FileStoreTransactor ¶
type FileStoreTransactor struct {
// contains filtered or unexported fields
}
FileStoreTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewFileStoreTransactor ¶
func NewFileStoreTransactor(address common.Address, transactor bind.ContractTransactor) (*FileStoreTransactor, error)
NewFileStoreTransactor creates a new write-only instance of FileStore, bound to a specific deployed contract.
func (*FileStoreTransactor) License ¶
func (_FileStore *FileStoreTransactor) License(opts *bind.TransactOpts, _from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
License is a paid mutator transaction binding the contract method 0x45af7afb.
Solidity: function license(_from address, _to address, _fileHash string, _price uint256) returns()
func (*FileStoreTransactor) SetOwner ¶
func (_FileStore *FileStoreTransactor) SetOwner(opts *bind.TransactOpts, _fileHash string, _owner common.Address) (*types.Transaction, error)
SetOwner is a paid mutator transaction binding the contract method 0x092b25e9.
Solidity: function setOwner(_fileHash string, _owner address) returns()
func (*FileStoreTransactor) Transfer ¶
func (_FileStore *FileStoreTransactor) Transfer(opts *bind.TransactOpts, _from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0x2e0274a2.
Solidity: function transfer(_from address, _to address, _fileHash string, _price uint256) returns()
type FileStoreTransactorRaw ¶
type FileStoreTransactorRaw struct {
Contract *FileStoreTransactor // Generic write-only contract binding to access the raw methods on
}
FileStoreTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*FileStoreTransactorRaw) Transact ¶
func (_FileStore *FileStoreTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*FileStoreTransactorRaw) Transfer ¶
func (_FileStore *FileStoreTransactorRaw) 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 FileStoreTransactorSession ¶
type FileStoreTransactorSession struct { Contract *FileStoreTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
FileStoreTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*FileStoreTransactorSession) License ¶
func (_FileStore *FileStoreTransactorSession) License(_from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
License is a paid mutator transaction binding the contract method 0x45af7afb.
Solidity: function license(_from address, _to address, _fileHash string, _price uint256) returns()
func (*FileStoreTransactorSession) SetOwner ¶
func (_FileStore *FileStoreTransactorSession) SetOwner(_fileHash string, _owner common.Address) (*types.Transaction, error)
SetOwner is a paid mutator transaction binding the contract method 0x092b25e9.
Solidity: function setOwner(_fileHash string, _owner address) returns()
func (*FileStoreTransactorSession) Transfer ¶
func (_FileStore *FileStoreTransactorSession) Transfer(_from common.Address, _to common.Address, _fileHash string, _price *big.Int) (*types.Transaction, error)
Transfer is a paid mutator transaction binding the contract method 0x2e0274a2.
Solidity: function transfer(_from address, _to address, _fileHash string, _price uint256) returns()
type FileStoreTransfer ¶
type FileStoreTransfer struct { OldOwner common.Address NewOnwer common.Address FileHash common.Hash Price *big.Int Raw types.Log // Blockchain specific contextual infos }
FileStoreTransfer represents a Transfer event raised by the FileStore contract.
type FileStoreTransferIterator ¶
type FileStoreTransferIterator struct { Event *FileStoreTransfer // Event containing the contract specifics and raw log // contains filtered or unexported fields }
FileStoreTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the FileStore contract.
func (*FileStoreTransferIterator) Close ¶
func (it *FileStoreTransferIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*FileStoreTransferIterator) Error ¶
func (it *FileStoreTransferIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*FileStoreTransferIterator) Next ¶
func (it *FileStoreTransferIterator) 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.