fileStore

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: GPL-3.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const FileStoreABI = "" /* 2559-byte string literal not displayed */

FileStoreABI is the input ABI used to generate the binding from.

View Source
const FileStoreBin = `` /* 7556-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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

func NewFileStore(address common.Address, backend bind.ContractBackend) (*FileStore, error)

NewFileStore creates a new instance of FileStore, bound to a specific deployed contract.

type FileStoreAuthorize added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

func (it *FileStoreAuthorizeIterator) Close() error

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

func (*FileStoreAuthorizeIterator) Error added in v0.0.3

func (it *FileStoreAuthorizeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FileStoreAuthorizeIterator) Next added in v0.0.3

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 added in v0.0.3

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

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

func NewFileStoreCaller added in v0.0.3

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 added in v0.0.3

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)

func (*FileStoreCaller) OwnerOf added in v0.0.3

func (_FileStore *FileStoreCaller) OwnerOf(opts *bind.CallOpts, _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)

type FileStoreCallerRaw added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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)

func (*FileStoreCallerSession) OwnerOf added in v0.0.3

func (_FileStore *FileStoreCallerSession) 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)

type FileStoreFilterer added in v0.0.3

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

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

func NewFileStoreFilterer added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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) FilterTransferWithUser added in v0.0.3

func (_FileStore *FileStoreFilterer) FilterTransferWithUser(opts *bind.FilterOpts, oldOwner []string, newOnwer []string, fileHash []string) (*FileStoreTransferWithUserIterator, error)

FilterTransferWithUser is a free log retrieval operation binding the contract event 0xd222fddaa4094b6475768fb6806b3e0c6d7addaa2472a94afd20b7d0b0155862.

Solidity: e TransferWithUser(oldOwner indexed string, newOnwer indexed string, fileHash indexed string, price uint256)

func (*FileStoreFilterer) WatchAuthorize added in v0.0.3

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 added in v0.0.3

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)

func (*FileStoreFilterer) WatchTransferWithUser added in v0.0.3

func (_FileStore *FileStoreFilterer) WatchTransferWithUser(opts *bind.WatchOpts, sink chan<- *FileStoreTransferWithUser, oldOwner []string, newOnwer []string, fileHash []string) (event.Subscription, error)

WatchTransferWithUser is a free log subscription operation binding the contract event 0xd222fddaa4094b6475768fb6806b3e0c6d7addaa2472a94afd20b7d0b0155862.

Solidity: e TransferWithUser(oldOwner indexed string, newOnwer indexed string, fileHash indexed string, price uint256)

type FileStoreRaw added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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) SetOwnerWithUser added in v0.0.3

func (_FileStore *FileStoreSession) SetOwnerWithUser(_fileHash string, _user string) (*types.Transaction, error)

SetOwnerWithUser is a paid mutator transaction binding the contract method 0x185de65e.

Solidity: function setOwnerWithUser(_fileHash string, _user string) returns()

func (*FileStoreSession) Transfer added in v0.0.3

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 added in v0.0.3

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

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

func NewFileStoreTransactor added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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) SetOwnerWithUser added in v0.0.3

func (_FileStore *FileStoreTransactor) SetOwnerWithUser(opts *bind.TransactOpts, _fileHash string, _user string) (*types.Transaction, error)

SetOwnerWithUser is a paid mutator transaction binding the contract method 0x185de65e.

Solidity: function setOwnerWithUser(_fileHash string, _user string) returns()

func (*FileStoreTransactor) Transfer added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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) SetOwnerWithUser added in v0.0.3

func (_FileStore *FileStoreTransactorSession) SetOwnerWithUser(_fileHash string, _user string) (*types.Transaction, error)

SetOwnerWithUser is a paid mutator transaction binding the contract method 0x185de65e.

Solidity: function setOwnerWithUser(_fileHash string, _user string) returns()

func (*FileStoreTransactorSession) Transfer added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

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 added in v0.0.3

func (it *FileStoreTransferIterator) Close() error

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

func (*FileStoreTransferIterator) Error added in v0.0.3

func (it *FileStoreTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FileStoreTransferIterator) Next added in v0.0.3

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.

type FileStoreTransferWithUser added in v0.0.3

type FileStoreTransferWithUser struct {
	OldOwner common.Hash
	NewOnwer common.Hash
	FileHash common.Hash
	Price    *big.Int
	Raw      types.Log // Blockchain specific contextual infos
}

FileStoreTransferWithUser represents a TransferWithUser event raised by the FileStore contract.

type FileStoreTransferWithUserIterator added in v0.0.3

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

FileStoreTransferWithUserIterator is returned from FilterTransferWithUser and is used to iterate over the raw logs and unpacked data for TransferWithUser events raised by the FileStore contract.

func (*FileStoreTransferWithUserIterator) Close added in v0.0.3

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

func (*FileStoreTransferWithUserIterator) Error added in v0.0.3

Error returns any retrieval or parsing error occurred during filtering.

func (*FileStoreTransferWithUserIterator) Next added in v0.0.3

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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