Documentation ¶
Index ¶
- Constants
- func CommitAnchor(anchorID AnchorID, documentRoot DocRoot, centrifugeID identity.CentID, ...) (<-chan *WatchCommit, error)
- func GenerateCommitHash(anchorID AnchorID, centrifugeID identity.CentID, documentRoot DocRoot) []byte
- func PreCommitAnchor(anchorID AnchorID, signingRoot DocRoot, centrifugeId identity.CentID, ...) (<-chan *WatchPreCommit, error)
- func SupportedSchemaVersion() uint
- type AnchorCommittedWatcher
- type AnchorID
- type AnchorRepository
- type AnchorRepositoryContract
- type AnchoringConfirmationTask
- func (act *AnchoringConfirmationTask) Copy() (gocelery.CeleryTask, error)
- func (act *AnchoringConfirmationTask) Init() error
- func (act *AnchoringConfirmationTask) Name() string
- func (act *AnchoringConfirmationTask) ParseKwargs(kwargs map[string]interface{}) error
- func (act *AnchoringConfirmationTask) RunTask() (interface{}, error)
- type Bootstrapper
- type CommitData
- type Config
- type DocRoot
- type EthereumAnchorRepository
- func (ethRepository *EthereumAnchorRepository) CommitAnchor(anchorID AnchorID, documentRoot DocRoot, centrifugeId identity.CentID, ...) (confirmations <-chan *WatchCommit, err error)
- func (ethRepository *EthereumAnchorRepository) GetDocumentRootOf(anchorID AnchorID) (docRoot DocRoot, err error)
- func (ethRepository *EthereumAnchorRepository) PreCommitAnchor(anchorID AnchorID, signingRoot DocRoot, centrifugeId identity.CentID, ...) (confirmations <-chan *WatchPreCommit, err error)
- type EthereumAnchorRepositoryContract
- type EthereumAnchorRepositoryContractAnchorCommitted
- type EthereumAnchorRepositoryContractAnchorCommittedIterator
- type EthereumAnchorRepositoryContractAnchorPreCommitted
- type EthereumAnchorRepositoryContractAnchorPreCommittedIterator
- type EthereumAnchorRepositoryContractCaller
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) Commits(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) GetAnchorById(opts *bind.CallOpts, _anchorId *big.Int) (struct{ ... }, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) HasValidPreCommit(opts *bind.CallOpts, _anchorId *big.Int) (bool, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) PreCommits(opts *bind.CallOpts, arg0 *big.Int) (struct{ ... }, error)
- type EthereumAnchorRepositoryContractCallerRaw
- type EthereumAnchorRepositoryContractCallerSession
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) Commits(arg0 *big.Int) ([32]byte, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) GetAnchorById(_anchorId *big.Int) (struct{ ... }, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) HasValidPreCommit(_anchorId *big.Int) (bool, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) PreCommits(arg0 *big.Int) (struct{ ... }, error)
- type EthereumAnchorRepositoryContractFilterer
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) FilterAnchorCommitted(opts *bind.FilterOpts, from []common.Address, anchorId []*big.Int, ...) (*EthereumAnchorRepositoryContractAnchorCommittedIterator, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) FilterAnchorPreCommitted(opts *bind.FilterOpts, from []common.Address, anchorId []*big.Int) (*EthereumAnchorRepositoryContractAnchorPreCommittedIterator, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) WatchAnchorCommitted(opts *bind.WatchOpts, ...) (event.Subscription, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) WatchAnchorPreCommitted(opts *bind.WatchOpts, ...) (event.Subscription, error)
- type EthereumAnchorRepositoryContractRaw
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type EthereumAnchorRepositoryContractSession
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) Commit(_anchorId *big.Int, _documentRoot [32]byte, _centrifugeId *big.Int, ...) (*types.Transaction, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) Commits(arg0 *big.Int) ([32]byte, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) GetAnchorById(_anchorId *big.Int) (struct{ ... }, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) HasValidPreCommit(_anchorId *big.Int) (bool, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) PreCommit(_anchorId *big.Int, _signingRoot [32]byte, _centrifugeId *big.Int, ...) (*types.Transaction, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) PreCommits(arg0 *big.Int) (struct{ ... }, error)
- type EthereumAnchorRepositoryContractTransactor
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactor) Commit(opts *bind.TransactOpts, _anchorId *big.Int, _documentRoot [32]byte, ...) (*types.Transaction, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactor) PreCommit(opts *bind.TransactOpts, _anchorId *big.Int, _signingRoot [32]byte, ...) (*types.Transaction, error)
- type EthereumAnchorRepositoryContractTransactorRaw
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type EthereumAnchorRepositoryContractTransactorSession
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorSession) Commit(_anchorId *big.Int, _documentRoot [32]byte, _centrifugeId *big.Int, ...) (*types.Transaction, error)
- func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorSession) PreCommit(_anchorId *big.Int, _signingRoot [32]byte, _centrifugeId *big.Int, ...) (*types.Transaction, error)
- type PreCommitData
- type WatchAnchorCommitted
- type WatchAnchorPreCommitted
- type WatchCommit
- type WatchPreCommit
Constants ¶
const ( AnchorIDLength = 32 RootLength = 32 DocumentProofLength = 32 )
const ( AnchorRepositoryConfirmationTaskName string = "AnchorRepositoryConfirmationTaskName" AnchorIDParam string = "AnchorIDParam" CentrifugeIDParam string = "CentrifugeIDParam" BlockHeight string = "BlockHeight" AddressParam string = "AddressParam" )
const AnchorSchemaVersion uint = 1
Supported anchor schema version as stored on public repository
const EthereumAnchorRepositoryContractABI = "" /* 2681-byte string literal not displayed */
EthereumAnchorRepositoryContractABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
func CommitAnchor ¶
func CommitAnchor(anchorID AnchorID, documentRoot DocRoot, centrifugeID identity.CentID, documentProofs [][32]byte, signature []byte) (<-chan *WatchCommit, error)
CommitAnchor initiates the Commit call on smart contract with passed in variables and returns a channel for transaction confirmation
func GenerateCommitHash ¶
func PreCommitAnchor ¶
func PreCommitAnchor(anchorID AnchorID, signingRoot DocRoot, centrifugeId identity.CentID, signature []byte, expirationBlock *big.Int) (<-chan *WatchPreCommit, error)
PreCommitAnchor initiates the PreCommit call on the smart contract with passed in variables and returns a channel for transaction confirmation
func SupportedSchemaVersion ¶
func SupportedSchemaVersion() uint
Types ¶
type AnchorCommittedWatcher ¶
type AnchorCommittedWatcher interface { FilterAnchorCommitted( opts *bind.FilterOpts, from []common.Address, anchorId []*big.Int, centrifugeId []*big.Int) (*EthereumAnchorRepositoryContractAnchorCommittedIterator, error) }
type AnchorRepository ¶
type AnchorRepository interface { PreCommitAnchor(anchorID AnchorID, signingRoot DocRoot, centrifugeID identity.CentID, signature []byte, expirationBlock *big.Int) (<-chan *WatchPreCommit, error) CommitAnchor(anchorID AnchorID, documentRoot DocRoot, centrifugeId identity.CentID, documentProofs [][32]byte, signature []byte) (<-chan *WatchCommit, error) GetDocumentRootOf(anchorID AnchorID) (DocRoot, error) }
AnchorRepository defines a set of functions that can be implemented by any type that stores and retrieves the anchoring, and pre anchoring details
func GetAnchorRepository ¶
func GetAnchorRepository() AnchorRepository
GetAnchorRepository returns default anchor repository
type AnchorRepositoryContract ¶
type AnchorRepositoryContract interface { //transactions PreCommit(opts *bind.TransactOpts, anchorID *big.Int, signingRoot [32]byte, centrifugeId *big.Int, signature []byte, expirationBlock *big.Int) (*types.Transaction, error) Commit(opts *bind.TransactOpts, _anchorID *big.Int, _documentRoot [32]byte, _centrifugeId *big.Int, _documentProofs [][32]byte, _signature []byte) (*types.Transaction, error) Commits(opts *bind.CallOpts, anchorID *big.Int) (docRoot [32]byte, err error) }
type AnchoringConfirmationTask ¶
type AnchoringConfirmationTask struct { // task parameters From common.Address AnchorID AnchorID CentrifugeID identity.CentID BlockHeight uint64 // state EthContextInitializer func() (ctx context.Context, cancelFunc context.CancelFunc) EthContext context.Context AnchorCommittedFilterer AnchorCommittedWatcher }
AnchoringConfirmationTask is a queued task to watch ID registration events on Ethereum using EthereumAnchoryRepositoryContract. To see how it gets registered see bootstrapper.go and to see how it gets used see setUpRegistrationEventListener method
func NewAnchoringConfirmationTask ¶
func NewAnchoringConfirmationTask( anchorCommittedWatcher AnchorCommittedWatcher, ethContextInitializer func() (ctx context.Context, cancelFunc context.CancelFunc), ) *AnchoringConfirmationTask
func (*AnchoringConfirmationTask) Copy ¶
func (act *AnchoringConfirmationTask) Copy() (gocelery.CeleryTask, error)
func (*AnchoringConfirmationTask) Init ¶
func (act *AnchoringConfirmationTask) Init() error
func (*AnchoringConfirmationTask) Name ¶
func (act *AnchoringConfirmationTask) Name() string
func (*AnchoringConfirmationTask) ParseKwargs ¶
func (act *AnchoringConfirmationTask) ParseKwargs(kwargs map[string]interface{}) error
ParseKwargs - define a method to parse AnchorID, Address and RootHash
func (*AnchoringConfirmationTask) RunTask ¶
func (act *AnchoringConfirmationTask) RunTask() (interface{}, error)
RunTask calls listens to events from geth related to AnchoringConfirmationTask#AnchorID and records result.
type Bootstrapper ¶
type Bootstrapper struct { }
func (*Bootstrapper) Bootstrap ¶
func (*Bootstrapper) Bootstrap(context map[string]interface{}) error
Bootstrap initializes the AnchorRepositoryContract as well as the AnchoringConfirmationTask that depends on it. the AnchoringConfirmationTask is added to be registered on the Queue at queue.Bootstrapper
type CommitData ¶
type CommitData struct { BlockHeight uint64 AnchorID AnchorID DocumentRoot DocRoot CentrifugeID identity.CentID DocumentProofs [][DocumentProofLength]byte Signature []byte SchemaVersion uint }
func NewCommitData ¶
type DocRoot ¶
type DocRoot [RootLength]byte
func NewDocRoot ¶
func NewRandomDocRoot ¶
func NewRandomDocRoot() DocRoot
func (DocRoot) Fixed ¶
func (a DocRoot) Fixed() [RootLength]byte
type EthereumAnchorRepository ¶
type EthereumAnchorRepository struct {
// contains filtered or unexported fields
}
func NewEthereumAnchorRepository ¶
func NewEthereumAnchorRepository(config Config, anchorRepositoryContract AnchorRepositoryContract) *EthereumAnchorRepository
func (*EthereumAnchorRepository) CommitAnchor ¶
func (ethRepository *EthereumAnchorRepository) CommitAnchor(anchorID AnchorID, documentRoot DocRoot, centrifugeId identity.CentID, documentProofs [][32]byte, signature []byte) (confirmations <-chan *WatchCommit, err error)
CommitAnchor will send a commit transaction to ethereum
func (*EthereumAnchorRepository) GetDocumentRootOf ¶
func (ethRepository *EthereumAnchorRepository) GetDocumentRootOf(anchorID AnchorID) (docRoot DocRoot, err error)
Commits takes an anchorID and returns the corresponding documentRoot from the chain
func (*EthereumAnchorRepository) PreCommitAnchor ¶
func (ethRepository *EthereumAnchorRepository) PreCommitAnchor(anchorID AnchorID, signingRoot DocRoot, centrifugeId identity.CentID, signature []byte, expirationBlock *big.Int) (confirmations <-chan *WatchPreCommit, err error)
PreCommitAnchor will call the transaction PreCommit on the smart contract
type EthereumAnchorRepositoryContract ¶
type EthereumAnchorRepositoryContract struct { EthereumAnchorRepositoryContractCaller // Read-only binding to the contract EthereumAnchorRepositoryContractTransactor // Write-only binding to the contract EthereumAnchorRepositoryContractFilterer // Log filterer for contract events }
EthereumAnchorRepositoryContract is an auto generated Go binding around an Ethereum contract.
func NewEthereumAnchorRepositoryContract ¶
func NewEthereumAnchorRepositoryContract(address common.Address, backend bind.ContractBackend) (*EthereumAnchorRepositoryContract, error)
NewEthereumAnchorRepositoryContract creates a new instance of EthereumAnchorRepositoryContract, bound to a specific deployed contract.
type EthereumAnchorRepositoryContractAnchorCommitted ¶
type EthereumAnchorRepositoryContractAnchorCommitted struct { From common.Address AnchorId *big.Int CentrifugeId *big.Int DocumentRoot [32]byte BlockHeight uint32 Raw types.Log // Blockchain specific contextual infos }
EthereumAnchorRepositoryContractAnchorCommitted represents a AnchorCommitted event raised by the EthereumAnchorRepositoryContract contract.
type EthereumAnchorRepositoryContractAnchorCommittedIterator ¶
type EthereumAnchorRepositoryContractAnchorCommittedIterator struct { Event *EthereumAnchorRepositoryContractAnchorCommitted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EthereumAnchorRepositoryContractAnchorCommittedIterator is returned from FilterAnchorCommitted and is used to iterate over the raw logs and unpacked data for AnchorCommitted events raised by the EthereumAnchorRepositoryContract contract.
func (*EthereumAnchorRepositoryContractAnchorCommittedIterator) Close ¶
func (it *EthereumAnchorRepositoryContractAnchorCommittedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EthereumAnchorRepositoryContractAnchorCommittedIterator) Error ¶
func (it *EthereumAnchorRepositoryContractAnchorCommittedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EthereumAnchorRepositoryContractAnchorCommittedIterator) Next ¶
func (it *EthereumAnchorRepositoryContractAnchorCommittedIterator) 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 EthereumAnchorRepositoryContractAnchorPreCommitted ¶
type EthereumAnchorRepositoryContractAnchorPreCommitted struct { From common.Address AnchorId *big.Int BlockHeight uint32 Raw types.Log // Blockchain specific contextual infos }
EthereumAnchorRepositoryContractAnchorPreCommitted represents a AnchorPreCommitted event raised by the EthereumAnchorRepositoryContract contract.
type EthereumAnchorRepositoryContractAnchorPreCommittedIterator ¶
type EthereumAnchorRepositoryContractAnchorPreCommittedIterator struct { Event *EthereumAnchorRepositoryContractAnchorPreCommitted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
EthereumAnchorRepositoryContractAnchorPreCommittedIterator is returned from FilterAnchorPreCommitted and is used to iterate over the raw logs and unpacked data for AnchorPreCommitted events raised by the EthereumAnchorRepositoryContract contract.
func (*EthereumAnchorRepositoryContractAnchorPreCommittedIterator) Close ¶
func (it *EthereumAnchorRepositoryContractAnchorPreCommittedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*EthereumAnchorRepositoryContractAnchorPreCommittedIterator) Error ¶
func (it *EthereumAnchorRepositoryContractAnchorPreCommittedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*EthereumAnchorRepositoryContractAnchorPreCommittedIterator) Next ¶
func (it *EthereumAnchorRepositoryContractAnchorPreCommittedIterator) 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 EthereumAnchorRepositoryContractCaller ¶
type EthereumAnchorRepositoryContractCaller struct {
// contains filtered or unexported fields
}
EthereumAnchorRepositoryContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewEthereumAnchorRepositoryContractCaller ¶
func NewEthereumAnchorRepositoryContractCaller(address common.Address, caller bind.ContractCaller) (*EthereumAnchorRepositoryContractCaller, error)
NewEthereumAnchorRepositoryContractCaller creates a new read-only instance of EthereumAnchorRepositoryContract, bound to a specific deployed contract.
func (*EthereumAnchorRepositoryContractCaller) Commits ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) Commits(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
Commits is a free data retrieval call binding the contract method 0xc7c4a615.
Solidity: function commits( uint256) constant returns(bytes32)
func (*EthereumAnchorRepositoryContractCaller) GetAnchorById ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) GetAnchorById(opts *bind.CallOpts, _anchorId *big.Int) (struct { AnchorId *big.Int DocumentRoot [32]byte CentrifugeId *big.Int }, error)
GetAnchorById is a free data retrieval call binding the contract method 0x32bf361b.
Solidity: function getAnchorById(_anchorId uint256) constant returns(anchorId uint256, documentRoot bytes32, centrifugeId uint48)
func (*EthereumAnchorRepositoryContractCaller) HasValidPreCommit ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) HasValidPreCommit(opts *bind.CallOpts, _anchorId *big.Int) (bool, error)
HasValidPreCommit is a free data retrieval call binding the contract method 0xb5c7d034.
Solidity: function hasValidPreCommit(_anchorId uint256) constant returns(bool)
func (*EthereumAnchorRepositoryContractCaller) PreCommits ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) PreCommits(opts *bind.CallOpts, arg0 *big.Int) (struct { SigningRoot [32]byte CentrifugeId *big.Int ExpirationBlock uint32 }, error)
PreCommits is a free data retrieval call binding the contract method 0xd04cc3da.
Solidity: function preCommits( uint256) constant returns(signingRoot bytes32, centrifugeId uint48, expirationBlock uint32)
type EthereumAnchorRepositoryContractCallerRaw ¶
type EthereumAnchorRepositoryContractCallerRaw struct {
Contract *EthereumAnchorRepositoryContractCaller // Generic read-only contract binding to access the raw methods on
}
EthereumAnchorRepositoryContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*EthereumAnchorRepositoryContractCallerRaw) Call ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerRaw) 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 EthereumAnchorRepositoryContractCallerSession ¶
type EthereumAnchorRepositoryContractCallerSession struct { Contract *EthereumAnchorRepositoryContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
EthereumAnchorRepositoryContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*EthereumAnchorRepositoryContractCallerSession) Commits ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) Commits(arg0 *big.Int) ([32]byte, error)
Commits is a free data retrieval call binding the contract method 0xc7c4a615.
Solidity: function commits( uint256) constant returns(bytes32)
func (*EthereumAnchorRepositoryContractCallerSession) GetAnchorById ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) GetAnchorById(_anchorId *big.Int) (struct { AnchorId *big.Int DocumentRoot [32]byte CentrifugeId *big.Int }, error)
GetAnchorById is a free data retrieval call binding the contract method 0x32bf361b.
Solidity: function getAnchorById(_anchorId uint256) constant returns(anchorId uint256, documentRoot bytes32, centrifugeId uint48)
func (*EthereumAnchorRepositoryContractCallerSession) HasValidPreCommit ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) HasValidPreCommit(_anchorId *big.Int) (bool, error)
HasValidPreCommit is a free data retrieval call binding the contract method 0xb5c7d034.
Solidity: function hasValidPreCommit(_anchorId uint256) constant returns(bool)
func (*EthereumAnchorRepositoryContractCallerSession) PreCommits ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) PreCommits(arg0 *big.Int) (struct { SigningRoot [32]byte CentrifugeId *big.Int ExpirationBlock uint32 }, error)
PreCommits is a free data retrieval call binding the contract method 0xd04cc3da.
Solidity: function preCommits( uint256) constant returns(signingRoot bytes32, centrifugeId uint48, expirationBlock uint32)
type EthereumAnchorRepositoryContractFilterer ¶
type EthereumAnchorRepositoryContractFilterer struct {
// contains filtered or unexported fields
}
EthereumAnchorRepositoryContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewEthereumAnchorRepositoryContractFilterer ¶
func NewEthereumAnchorRepositoryContractFilterer(address common.Address, filterer bind.ContractFilterer) (*EthereumAnchorRepositoryContractFilterer, error)
NewEthereumAnchorRepositoryContractFilterer creates a new log filterer instance of EthereumAnchorRepositoryContract, bound to a specific deployed contract.
func (*EthereumAnchorRepositoryContractFilterer) FilterAnchorCommitted ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) FilterAnchorCommitted(opts *bind.FilterOpts, from []common.Address, anchorId []*big.Int, centrifugeId []*big.Int) (*EthereumAnchorRepositoryContractAnchorCommittedIterator, error)
FilterAnchorCommitted is a free log retrieval operation binding the contract event 0x307682cd6852f8e18285627aa89f76c08e16e4978ab1c80dedbc5e1d43ddba66.
Solidity: e AnchorCommitted(from indexed address, anchorId indexed uint256, centrifugeId indexed uint48, documentRoot bytes32, blockHeight uint32)
func (*EthereumAnchorRepositoryContractFilterer) FilterAnchorPreCommitted ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) FilterAnchorPreCommitted(opts *bind.FilterOpts, from []common.Address, anchorId []*big.Int) (*EthereumAnchorRepositoryContractAnchorPreCommittedIterator, error)
FilterAnchorPreCommitted is a free log retrieval operation binding the contract event 0xaa2928be4e330731bc1f0289edebfc72ccb9979ffc703a3de4edd8ea760462da.
Solidity: e AnchorPreCommitted(from indexed address, anchorId indexed uint256, blockHeight uint32)
func (*EthereumAnchorRepositoryContractFilterer) WatchAnchorCommitted ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) WatchAnchorCommitted(opts *bind.WatchOpts, sink chan<- *EthereumAnchorRepositoryContractAnchorCommitted, from []common.Address, anchorId []*big.Int, centrifugeId []*big.Int) (event.Subscription, error)
WatchAnchorCommitted is a free log subscription operation binding the contract event 0x307682cd6852f8e18285627aa89f76c08e16e4978ab1c80dedbc5e1d43ddba66.
Solidity: e AnchorCommitted(from indexed address, anchorId indexed uint256, centrifugeId indexed uint48, documentRoot bytes32, blockHeight uint32)
func (*EthereumAnchorRepositoryContractFilterer) WatchAnchorPreCommitted ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) WatchAnchorPreCommitted(opts *bind.WatchOpts, sink chan<- *EthereumAnchorRepositoryContractAnchorPreCommitted, from []common.Address, anchorId []*big.Int) (event.Subscription, error)
WatchAnchorPreCommitted is a free log subscription operation binding the contract event 0xaa2928be4e330731bc1f0289edebfc72ccb9979ffc703a3de4edd8ea760462da.
Solidity: e AnchorPreCommitted(from indexed address, anchorId indexed uint256, blockHeight uint32)
type EthereumAnchorRepositoryContractRaw ¶
type EthereumAnchorRepositoryContractRaw struct {
Contract *EthereumAnchorRepositoryContract // Generic contract binding to access the raw methods on
}
EthereumAnchorRepositoryContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*EthereumAnchorRepositoryContractRaw) Call ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractRaw) 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 (*EthereumAnchorRepositoryContractRaw) Transact ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EthereumAnchorRepositoryContractRaw) Transfer ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractRaw) 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 EthereumAnchorRepositoryContractSession ¶
type EthereumAnchorRepositoryContractSession struct { Contract *EthereumAnchorRepositoryContract // 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 }
EthereumAnchorRepositoryContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*EthereumAnchorRepositoryContractSession) Commit ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) Commit(_anchorId *big.Int, _documentRoot [32]byte, _centrifugeId *big.Int, _documentProofs [][32]byte, _signature []byte) (*types.Transaction, error)
Commit is a paid mutator transaction binding the contract method 0xad90a76b.
Solidity: function commit(_anchorId uint256, _documentRoot bytes32, _centrifugeId uint48, _documentProofs bytes32[], _signature bytes) returns()
func (*EthereumAnchorRepositoryContractSession) Commits ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) Commits(arg0 *big.Int) ([32]byte, error)
Commits is a free data retrieval call binding the contract method 0xc7c4a615.
Solidity: function commits( uint256) constant returns(bytes32)
func (*EthereumAnchorRepositoryContractSession) GetAnchorById ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) GetAnchorById(_anchorId *big.Int) (struct { AnchorId *big.Int DocumentRoot [32]byte CentrifugeId *big.Int }, error)
GetAnchorById is a free data retrieval call binding the contract method 0x32bf361b.
Solidity: function getAnchorById(_anchorId uint256) constant returns(anchorId uint256, documentRoot bytes32, centrifugeId uint48)
func (*EthereumAnchorRepositoryContractSession) HasValidPreCommit ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) HasValidPreCommit(_anchorId *big.Int) (bool, error)
HasValidPreCommit is a free data retrieval call binding the contract method 0xb5c7d034.
Solidity: function hasValidPreCommit(_anchorId uint256) constant returns(bool)
func (*EthereumAnchorRepositoryContractSession) PreCommit ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) PreCommit(_anchorId *big.Int, _signingRoot [32]byte, _centrifugeId *big.Int, _signature []byte, _expirationBlock *big.Int) (*types.Transaction, error)
PreCommit is a paid mutator transaction binding the contract method 0xf098d34c.
Solidity: function preCommit(_anchorId uint256, _signingRoot bytes32, _centrifugeId uint48, _signature bytes, _expirationBlock uint256) returns()
func (*EthereumAnchorRepositoryContractSession) PreCommits ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) PreCommits(arg0 *big.Int) (struct { SigningRoot [32]byte CentrifugeId *big.Int ExpirationBlock uint32 }, error)
PreCommits is a free data retrieval call binding the contract method 0xd04cc3da.
Solidity: function preCommits( uint256) constant returns(signingRoot bytes32, centrifugeId uint48, expirationBlock uint32)
type EthereumAnchorRepositoryContractTransactor ¶
type EthereumAnchorRepositoryContractTransactor struct {
// contains filtered or unexported fields
}
EthereumAnchorRepositoryContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewEthereumAnchorRepositoryContractTransactor ¶
func NewEthereumAnchorRepositoryContractTransactor(address common.Address, transactor bind.ContractTransactor) (*EthereumAnchorRepositoryContractTransactor, error)
NewEthereumAnchorRepositoryContractTransactor creates a new write-only instance of EthereumAnchorRepositoryContract, bound to a specific deployed contract.
func (*EthereumAnchorRepositoryContractTransactor) Commit ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactor) Commit(opts *bind.TransactOpts, _anchorId *big.Int, _documentRoot [32]byte, _centrifugeId *big.Int, _documentProofs [][32]byte, _signature []byte) (*types.Transaction, error)
Commit is a paid mutator transaction binding the contract method 0xad90a76b.
Solidity: function commit(_anchorId uint256, _documentRoot bytes32, _centrifugeId uint48, _documentProofs bytes32[], _signature bytes) returns()
func (*EthereumAnchorRepositoryContractTransactor) PreCommit ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactor) PreCommit(opts *bind.TransactOpts, _anchorId *big.Int, _signingRoot [32]byte, _centrifugeId *big.Int, _signature []byte, _expirationBlock *big.Int) (*types.Transaction, error)
PreCommit is a paid mutator transaction binding the contract method 0xf098d34c.
Solidity: function preCommit(_anchorId uint256, _signingRoot bytes32, _centrifugeId uint48, _signature bytes, _expirationBlock uint256) returns()
type EthereumAnchorRepositoryContractTransactorRaw ¶
type EthereumAnchorRepositoryContractTransactorRaw struct {
Contract *EthereumAnchorRepositoryContractTransactor // Generic write-only contract binding to access the raw methods on
}
EthereumAnchorRepositoryContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*EthereumAnchorRepositoryContractTransactorRaw) Transact ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*EthereumAnchorRepositoryContractTransactorRaw) Transfer ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorRaw) 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 EthereumAnchorRepositoryContractTransactorSession ¶
type EthereumAnchorRepositoryContractTransactorSession struct { Contract *EthereumAnchorRepositoryContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
EthereumAnchorRepositoryContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*EthereumAnchorRepositoryContractTransactorSession) Commit ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorSession) Commit(_anchorId *big.Int, _documentRoot [32]byte, _centrifugeId *big.Int, _documentProofs [][32]byte, _signature []byte) (*types.Transaction, error)
Commit is a paid mutator transaction binding the contract method 0xad90a76b.
Solidity: function commit(_anchorId uint256, _documentRoot bytes32, _centrifugeId uint48, _documentProofs bytes32[], _signature bytes) returns()
func (*EthereumAnchorRepositoryContractTransactorSession) PreCommit ¶
func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorSession) PreCommit(_anchorId *big.Int, _signingRoot [32]byte, _centrifugeId *big.Int, _signature []byte, _expirationBlock *big.Int) (*types.Transaction, error)
PreCommit is a paid mutator transaction binding the contract method 0xf098d34c.
Solidity: function preCommit(_anchorId uint256, _signingRoot bytes32, _centrifugeId uint48, _signature bytes, _expirationBlock uint256) returns()
type PreCommitData ¶
type PreCommitData struct { AnchorID AnchorID SigningRoot DocRoot CentrifugeID identity.CentID Signature []byte ExpirationBlock *big.Int SchemaVersion uint }
func NewPreCommitData ¶
type WatchAnchorCommitted ¶
type WatchAnchorPreCommitted ¶
type WatchAnchorPreCommitted interface { //event name: AnchorPreCommitted WatchAnchorPreCommitted(opts *bind.WatchOpts, sink chan<- *EthereumAnchorRepositoryContractAnchorPreCommitted, from []common.Address, anchorID []*big.Int) (event.Subscription, error) }
type WatchCommit ¶
type WatchCommit struct { CommitData *CommitData Error error }
type WatchPreCommit ¶
type WatchPreCommit struct { PreCommit *PreCommitData Error error }