blockchain

package
v0.0.0-...-42c6bbb Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: GPL-2.0, GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const IpfsRootABI = "" /* 1464-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type IpfsRoot

type IpfsRoot struct {
	IpfsRootCaller     // Read-only binding to the contract
	IpfsRootTransactor // Write-only binding to the contract
	IpfsRootFilterer   // Log filterer for contract events
}

IpfsRoot is an auto generated Go binding around an Ethereum contract.

func NewIpfsRoot

func NewIpfsRoot(address common.Address, backend bind.ContractBackend) (*IpfsRoot, error)

NewIpfsRoot creates a new instance of IpfsRoot, bound to a specific deployed contract.

type IpfsRootCaller

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

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

func NewIpfsRootCaller

func NewIpfsRootCaller(address common.Address, caller bind.ContractCaller) (*IpfsRootCaller, error)

NewIpfsRootCaller creates a new read-only instance of IpfsRoot, bound to a specific deployed contract.

func (*IpfsRootCaller) CheckTimeStamp

func (_IpfsRoot *IpfsRootCaller) CheckTimeStamp(opts *bind.CallOpts, timeStamp *big.Int) (bool, error)

CheckTimeStamp is a free data retrieval call binding the contract method 0xa89e7246.

Solidity: function checkTimeStamp(uint256 timeStamp) constant returns(bool isIndeed)

func (*IpfsRootCaller) GetRoot

func (_IpfsRoot *IpfsRootCaller) GetRoot(opts *bind.CallOpts, timeStamp *big.Int) (struct {
	RootHash [32]byte
	Index    *big.Int
}, error)

GetRoot is a free data retrieval call binding the contract method 0x9b24b3b0.

Solidity: function getRoot(uint256 timeStamp) constant returns(bytes32 rootHash, uint256 index)

func (*IpfsRootCaller) GetRootAtIndex

func (_IpfsRoot *IpfsRootCaller) GetRootAtIndex(opts *bind.CallOpts, index *big.Int) (*big.Int, error)

GetRootAtIndex is a free data retrieval call binding the contract method 0x6b5f0373.

Solidity: function getRootAtIndex(uint256 index) constant returns(uint256 timeStamp)

func (*IpfsRootCaller) GetRootCount

func (_IpfsRoot *IpfsRootCaller) GetRootCount(opts *bind.CallOpts) (*big.Int, error)

GetRootCount is a free data retrieval call binding the contract method 0xfa12779c.

Solidity: function getRootCount() constant returns(uint256 count)

type IpfsRootCallerRaw

type IpfsRootCallerRaw struct {
	Contract *IpfsRootCaller // Generic read-only contract binding to access the raw methods on
}

IpfsRootCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*IpfsRootCallerRaw) Call

func (_IpfsRoot *IpfsRootCallerRaw) 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 IpfsRootCallerSession

type IpfsRootCallerSession struct {
	Contract *IpfsRootCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts   // Call options to use throughout this session
}

IpfsRootCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*IpfsRootCallerSession) CheckTimeStamp

func (_IpfsRoot *IpfsRootCallerSession) CheckTimeStamp(timeStamp *big.Int) (bool, error)

CheckTimeStamp is a free data retrieval call binding the contract method 0xa89e7246.

Solidity: function checkTimeStamp(uint256 timeStamp) constant returns(bool isIndeed)

func (*IpfsRootCallerSession) GetRoot

func (_IpfsRoot *IpfsRootCallerSession) GetRoot(timeStamp *big.Int) (struct {
	RootHash [32]byte
	Index    *big.Int
}, error)

GetRoot is a free data retrieval call binding the contract method 0x9b24b3b0.

Solidity: function getRoot(uint256 timeStamp) constant returns(bytes32 rootHash, uint256 index)

func (*IpfsRootCallerSession) GetRootAtIndex

func (_IpfsRoot *IpfsRootCallerSession) GetRootAtIndex(index *big.Int) (*big.Int, error)

GetRootAtIndex is a free data retrieval call binding the contract method 0x6b5f0373.

Solidity: function getRootAtIndex(uint256 index) constant returns(uint256 timeStamp)

func (*IpfsRootCallerSession) GetRootCount

func (_IpfsRoot *IpfsRootCallerSession) GetRootCount() (*big.Int, error)

GetRootCount is a free data retrieval call binding the contract method 0xfa12779c.

Solidity: function getRootCount() constant returns(uint256 count)

type IpfsRootFilterer

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

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

func NewIpfsRootFilterer

func NewIpfsRootFilterer(address common.Address, filterer bind.ContractFilterer) (*IpfsRootFilterer, error)

NewIpfsRootFilterer creates a new log filterer instance of IpfsRoot, bound to a specific deployed contract.

func (*IpfsRootFilterer) FilterLogNewRoot

func (_IpfsRoot *IpfsRootFilterer) FilterLogNewRoot(opts *bind.FilterOpts, timeStamp []*big.Int) (*IpfsRootLogNewRootIterator, error)

FilterLogNewRoot is a free log retrieval operation binding the contract event 0xb843516edf882622b5cf95b5485456d18fb888581f9a154cfe021aeed228ee86.

Solidity: event LogNewRoot(uint256 indexed timeStamp, uint256 index, bytes32 rootHash)

func (*IpfsRootFilterer) ParseLogNewRoot

func (_IpfsRoot *IpfsRootFilterer) ParseLogNewRoot(log types.Log) (*IpfsRootLogNewRoot, error)

ParseLogNewRoot is a log parse operation binding the contract event 0xb843516edf882622b5cf95b5485456d18fb888581f9a154cfe021aeed228ee86.

Solidity: event LogNewRoot(uint256 indexed timeStamp, uint256 index, bytes32 rootHash)

func (*IpfsRootFilterer) WatchLogNewRoot

func (_IpfsRoot *IpfsRootFilterer) WatchLogNewRoot(opts *bind.WatchOpts, sink chan<- *IpfsRootLogNewRoot, timeStamp []*big.Int) (event.Subscription, error)

WatchLogNewRoot is a free log subscription operation binding the contract event 0xb843516edf882622b5cf95b5485456d18fb888581f9a154cfe021aeed228ee86.

Solidity: event LogNewRoot(uint256 indexed timeStamp, uint256 index, bytes32 rootHash)

type IpfsRootLogNewRoot

type IpfsRootLogNewRoot struct {
	TimeStamp *big.Int
	Index     *big.Int
	RootHash  [32]byte
	Raw       types.Log // Blockchain specific contextual infos
}

IpfsRootLogNewRoot represents a LogNewRoot event raised by the IpfsRoot contract.

type IpfsRootLogNewRootIterator

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

IpfsRootLogNewRootIterator is returned from FilterLogNewRoot and is used to iterate over the raw logs and unpacked data for LogNewRoot events raised by the IpfsRoot contract.

func (*IpfsRootLogNewRootIterator) Close

func (it *IpfsRootLogNewRootIterator) Close() error

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

func (*IpfsRootLogNewRootIterator) Error

func (it *IpfsRootLogNewRootIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*IpfsRootLogNewRootIterator) Next

func (it *IpfsRootLogNewRootIterator) 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 IpfsRootRaw

type IpfsRootRaw struct {
	Contract *IpfsRoot // Generic contract binding to access the raw methods on
}

IpfsRootRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*IpfsRootRaw) Call

func (_IpfsRoot *IpfsRootRaw) 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 (*IpfsRootRaw) Transact

func (_IpfsRoot *IpfsRootRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IpfsRootRaw) Transfer

func (_IpfsRoot *IpfsRootRaw) 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 IpfsRootSession

type IpfsRootSession struct {
	Contract     *IpfsRoot         // 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
}

IpfsRootSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*IpfsRootSession) CheckTimeStamp

func (_IpfsRoot *IpfsRootSession) CheckTimeStamp(timeStamp *big.Int) (bool, error)

CheckTimeStamp is a free data retrieval call binding the contract method 0xa89e7246.

Solidity: function checkTimeStamp(uint256 timeStamp) constant returns(bool isIndeed)

func (*IpfsRootSession) GetRoot

func (_IpfsRoot *IpfsRootSession) GetRoot(timeStamp *big.Int) (struct {
	RootHash [32]byte
	Index    *big.Int
}, error)

GetRoot is a free data retrieval call binding the contract method 0x9b24b3b0.

Solidity: function getRoot(uint256 timeStamp) constant returns(bytes32 rootHash, uint256 index)

func (*IpfsRootSession) GetRootAtIndex

func (_IpfsRoot *IpfsRootSession) GetRootAtIndex(index *big.Int) (*big.Int, error)

GetRootAtIndex is a free data retrieval call binding the contract method 0x6b5f0373.

Solidity: function getRootAtIndex(uint256 index) constant returns(uint256 timeStamp)

func (*IpfsRootSession) GetRootCount

func (_IpfsRoot *IpfsRootSession) GetRootCount() (*big.Int, error)

GetRootCount is a free data retrieval call binding the contract method 0xfa12779c.

Solidity: function getRootCount() constant returns(uint256 count)

func (*IpfsRootSession) InsertRoot

func (_IpfsRoot *IpfsRootSession) InsertRoot(timeStamp *big.Int, rootHash [32]byte) (*types.Transaction, error)

InsertRoot is a paid mutator transaction binding the contract method 0xf3f15c29.

Solidity: function insertRoot(uint256 timeStamp, bytes32 rootHash) returns(uint256 index)

type IpfsRootTransactor

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

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

func NewIpfsRootTransactor

func NewIpfsRootTransactor(address common.Address, transactor bind.ContractTransactor) (*IpfsRootTransactor, error)

NewIpfsRootTransactor creates a new write-only instance of IpfsRoot, bound to a specific deployed contract.

func (*IpfsRootTransactor) InsertRoot

func (_IpfsRoot *IpfsRootTransactor) InsertRoot(opts *bind.TransactOpts, timeStamp *big.Int, rootHash [32]byte) (*types.Transaction, error)

InsertRoot is a paid mutator transaction binding the contract method 0xf3f15c29.

Solidity: function insertRoot(uint256 timeStamp, bytes32 rootHash) returns(uint256 index)

type IpfsRootTransactorRaw

type IpfsRootTransactorRaw struct {
	Contract *IpfsRootTransactor // Generic write-only contract binding to access the raw methods on
}

IpfsRootTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*IpfsRootTransactorRaw) Transact

func (_IpfsRoot *IpfsRootTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IpfsRootTransactorRaw) Transfer

func (_IpfsRoot *IpfsRootTransactorRaw) 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 IpfsRootTransactorSession

type IpfsRootTransactorSession struct {
	Contract     *IpfsRootTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
}

IpfsRootTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*IpfsRootTransactorSession) InsertRoot

func (_IpfsRoot *IpfsRootTransactorSession) InsertRoot(timeStamp *big.Int, rootHash [32]byte) (*types.Transaction, error)

InsertRoot is a paid mutator transaction binding the contract method 0xf3f15c29.

Solidity: function insertRoot(uint256 timeStamp, bytes32 rootHash) returns(uint256 index)

Jump to

Keyboard shortcuts

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