Documentation ¶
Index ¶
- Variables
- type StorjPin
- type StorjPinCaller
- type StorjPinCallerRaw
- type StorjPinCallerSession
- type StorjPinFilterer
- func (_StorjPin *StorjPinFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*StorjPinOwnershipTransferredIterator, error)
- func (_StorjPin *StorjPinFilterer) FilterPinned(opts *bind.FilterOpts, owner []common.Address) (*StorjPinPinnedIterator, error)
- func (_StorjPin *StorjPinFilterer) ParseOwnershipTransferred(log types.Log) (*StorjPinOwnershipTransferred, error)
- func (_StorjPin *StorjPinFilterer) ParsePinned(log types.Log) (*StorjPinPinned, error)
- func (_StorjPin *StorjPinFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *StorjPinOwnershipTransferred, ...) (event.Subscription, error)
- func (_StorjPin *StorjPinFilterer) WatchPinned(opts *bind.WatchOpts, sink chan<- *StorjPinPinned, owner []common.Address) (event.Subscription, error)
- type StorjPinOwnershipTransferred
- type StorjPinOwnershipTransferredIterator
- type StorjPinPinned
- type StorjPinPinnedIterator
- type StorjPinRaw
- func (_StorjPin *StorjPinRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_StorjPin *StorjPinRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_StorjPin *StorjPinRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type StorjPinSession
- func (_StorjPin *StorjPinSession) Owner() (common.Address, error)
- func (_StorjPin *StorjPinSession) Pin(ipfsHash string, tokenAmount *big.Int, parse bool) (*types.Transaction, error)
- func (_StorjPin *StorjPinSession) RenounceOwnership() (*types.Transaction, error)
- func (_StorjPin *StorjPinSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_StorjPin *StorjPinSession) Withdraw(target common.Address) (*types.Transaction, error)
- type StorjPinTransactor
- func (_StorjPin *StorjPinTransactor) Pin(opts *bind.TransactOpts, ipfsHash string, tokenAmount *big.Int, parse bool) (*types.Transaction, error)
- func (_StorjPin *StorjPinTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_StorjPin *StorjPinTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_StorjPin *StorjPinTransactor) Withdraw(opts *bind.TransactOpts, target common.Address) (*types.Transaction, error)
- type StorjPinTransactorRaw
- type StorjPinTransactorSession
- func (_StorjPin *StorjPinTransactorSession) Pin(ipfsHash string, tokenAmount *big.Int, parse bool) (*types.Transaction, error)
- func (_StorjPin *StorjPinTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_StorjPin *StorjPinTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_StorjPin *StorjPinTransactorSession) Withdraw(target common.Address) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var StorjPinABI = StorjPinMetaData.ABI
StorjPinABI is the input ABI used to generate the binding from. Deprecated: Use StorjPinMetaData.ABI instead.
var StorjPinMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_tokenAddress\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"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\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"hash\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"parse\",\"type\":\"bool\"}],\"name\":\"Pinned\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"ipfsHash\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"tokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"parse\",\"type\":\"bool\"}],\"name\":\"pin\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
StorjPinMetaData contains all meta data concerning the StorjPin contract.
Functions ¶
This section is empty.
Types ¶
type StorjPin ¶
type StorjPin struct { StorjPinCaller // Read-only binding to the contract StorjPinTransactor // Write-only binding to the contract StorjPinFilterer // Log filterer for contract events }
StorjPin is an auto generated Go binding around an Ethereum contract.
func NewStorjPin ¶
NewStorjPin creates a new instance of StorjPin, bound to a specific deployed contract.
type StorjPinCaller ¶
type StorjPinCaller struct {
// contains filtered or unexported fields
}
StorjPinCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewStorjPinCaller ¶
func NewStorjPinCaller(address common.Address, caller bind.ContractCaller) (*StorjPinCaller, error)
NewStorjPinCaller creates a new read-only instance of StorjPin, bound to a specific deployed contract.
type StorjPinCallerRaw ¶
type StorjPinCallerRaw struct {
Contract *StorjPinCaller // Generic read-only contract binding to access the raw methods on
}
StorjPinCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*StorjPinCallerRaw) Call ¶
func (_StorjPin *StorjPinCallerRaw) 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 StorjPinCallerSession ¶
type StorjPinCallerSession struct { Contract *StorjPinCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
StorjPinCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type StorjPinFilterer ¶
type StorjPinFilterer struct {
// contains filtered or unexported fields
}
StorjPinFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewStorjPinFilterer ¶
func NewStorjPinFilterer(address common.Address, filterer bind.ContractFilterer) (*StorjPinFilterer, error)
NewStorjPinFilterer creates a new log filterer instance of StorjPin, bound to a specific deployed contract.
func (*StorjPinFilterer) FilterOwnershipTransferred ¶
func (_StorjPin *StorjPinFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*StorjPinOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*StorjPinFilterer) FilterPinned ¶
func (_StorjPin *StorjPinFilterer) FilterPinned(opts *bind.FilterOpts, owner []common.Address) (*StorjPinPinnedIterator, error)
FilterPinned is a free log retrieval operation binding the contract event 0x8ddc817a12aa59f9ca11b2f6d77f8e9bfedc970fe043fde2530971d66753dbd5.
Solidity: event Pinned(address indexed owner, uint256 amount, string hash, bool parse)
func (*StorjPinFilterer) ParseOwnershipTransferred ¶
func (_StorjPin *StorjPinFilterer) ParseOwnershipTransferred(log types.Log) (*StorjPinOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*StorjPinFilterer) ParsePinned ¶
func (_StorjPin *StorjPinFilterer) ParsePinned(log types.Log) (*StorjPinPinned, error)
ParsePinned is a log parse operation binding the contract event 0x8ddc817a12aa59f9ca11b2f6d77f8e9bfedc970fe043fde2530971d66753dbd5.
Solidity: event Pinned(address indexed owner, uint256 amount, string hash, bool parse)
func (*StorjPinFilterer) WatchOwnershipTransferred ¶
func (_StorjPin *StorjPinFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *StorjPinOwnershipTransferred, 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 (*StorjPinFilterer) WatchPinned ¶
func (_StorjPin *StorjPinFilterer) WatchPinned(opts *bind.WatchOpts, sink chan<- *StorjPinPinned, owner []common.Address) (event.Subscription, error)
WatchPinned is a free log subscription operation binding the contract event 0x8ddc817a12aa59f9ca11b2f6d77f8e9bfedc970fe043fde2530971d66753dbd5.
Solidity: event Pinned(address indexed owner, uint256 amount, string hash, bool parse)
type StorjPinOwnershipTransferred ¶
type StorjPinOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
StorjPinOwnershipTransferred represents a OwnershipTransferred event raised by the StorjPin contract.
type StorjPinOwnershipTransferredIterator ¶
type StorjPinOwnershipTransferredIterator struct { Event *StorjPinOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StorjPinOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the StorjPin contract.
func (*StorjPinOwnershipTransferredIterator) Close ¶
func (it *StorjPinOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StorjPinOwnershipTransferredIterator) Error ¶
func (it *StorjPinOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StorjPinOwnershipTransferredIterator) Next ¶
func (it *StorjPinOwnershipTransferredIterator) 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 StorjPinPinned ¶
type StorjPinPinned struct { Owner common.Address Amount *big.Int Hash string Parse bool Raw types.Log // Blockchain specific contextual infos }
StorjPinPinned represents a Pinned event raised by the StorjPin contract.
type StorjPinPinnedIterator ¶
type StorjPinPinnedIterator struct { Event *StorjPinPinned // Event containing the contract specifics and raw log // contains filtered or unexported fields }
StorjPinPinnedIterator is returned from FilterPinned and is used to iterate over the raw logs and unpacked data for Pinned events raised by the StorjPin contract.
func (*StorjPinPinnedIterator) Close ¶
func (it *StorjPinPinnedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*StorjPinPinnedIterator) Error ¶
func (it *StorjPinPinnedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*StorjPinPinnedIterator) Next ¶
func (it *StorjPinPinnedIterator) 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 StorjPinRaw ¶
type StorjPinRaw struct {
Contract *StorjPin // Generic contract binding to access the raw methods on
}
StorjPinRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*StorjPinRaw) Call ¶
func (_StorjPin *StorjPinRaw) 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 (*StorjPinRaw) Transact ¶
func (_StorjPin *StorjPinRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StorjPinRaw) Transfer ¶
func (_StorjPin *StorjPinRaw) 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 StorjPinSession ¶
type StorjPinSession struct { Contract *StorjPin // 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 }
StorjPinSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*StorjPinSession) Owner ¶
func (_StorjPin *StorjPinSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*StorjPinSession) Pin ¶
func (_StorjPin *StorjPinSession) Pin(ipfsHash string, tokenAmount *big.Int, parse bool) (*types.Transaction, error)
Pin is a paid mutator transaction binding the contract method 0xdec07c35.
Solidity: function pin(string ipfsHash, uint256 tokenAmount, bool parse) returns()
func (*StorjPinSession) RenounceOwnership ¶
func (_StorjPin *StorjPinSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*StorjPinSession) TransferOwnership ¶
func (_StorjPin *StorjPinSession) 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 (*StorjPinSession) Withdraw ¶
func (_StorjPin *StorjPinSession) Withdraw(target common.Address) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x51cff8d9.
Solidity: function withdraw(address target) returns()
type StorjPinTransactor ¶
type StorjPinTransactor struct {
// contains filtered or unexported fields
}
StorjPinTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewStorjPinTransactor ¶
func NewStorjPinTransactor(address common.Address, transactor bind.ContractTransactor) (*StorjPinTransactor, error)
NewStorjPinTransactor creates a new write-only instance of StorjPin, bound to a specific deployed contract.
func (*StorjPinTransactor) Pin ¶
func (_StorjPin *StorjPinTransactor) Pin(opts *bind.TransactOpts, ipfsHash string, tokenAmount *big.Int, parse bool) (*types.Transaction, error)
Pin is a paid mutator transaction binding the contract method 0xdec07c35.
Solidity: function pin(string ipfsHash, uint256 tokenAmount, bool parse) returns()
func (*StorjPinTransactor) RenounceOwnership ¶
func (_StorjPin *StorjPinTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*StorjPinTransactor) TransferOwnership ¶
func (_StorjPin *StorjPinTransactor) 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 (*StorjPinTransactor) Withdraw ¶
func (_StorjPin *StorjPinTransactor) Withdraw(opts *bind.TransactOpts, target common.Address) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x51cff8d9.
Solidity: function withdraw(address target) returns()
type StorjPinTransactorRaw ¶
type StorjPinTransactorRaw struct {
Contract *StorjPinTransactor // Generic write-only contract binding to access the raw methods on
}
StorjPinTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*StorjPinTransactorRaw) Transact ¶
func (_StorjPin *StorjPinTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*StorjPinTransactorRaw) Transfer ¶
func (_StorjPin *StorjPinTransactorRaw) 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 StorjPinTransactorSession ¶
type StorjPinTransactorSession struct { Contract *StorjPinTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
StorjPinTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*StorjPinTransactorSession) Pin ¶
func (_StorjPin *StorjPinTransactorSession) Pin(ipfsHash string, tokenAmount *big.Int, parse bool) (*types.Transaction, error)
Pin is a paid mutator transaction binding the contract method 0xdec07c35.
Solidity: function pin(string ipfsHash, uint256 tokenAmount, bool parse) returns()
func (*StorjPinTransactorSession) RenounceOwnership ¶
func (_StorjPin *StorjPinTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*StorjPinTransactorSession) TransferOwnership ¶
func (_StorjPin *StorjPinTransactorSession) 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 (*StorjPinTransactorSession) Withdraw ¶
func (_StorjPin *StorjPinTransactorSession) Withdraw(target common.Address) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x51cff8d9.
Solidity: function withdraw(address target) returns()