notarydapp

package module
v0.0.0-...-572c352 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

README

notary-dapp

Playing around with Solidity to create a simple notary application

Documentation

Index

Constants

View Source
const NotarydappABI = "" /* 1363-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Notarydapp

type Notarydapp struct {
	NotarydappCaller     // Read-only binding to the contract
	NotarydappTransactor // Write-only binding to the contract
	NotarydappFilterer   // Log filterer for contract events
}

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

func NewNotarydapp

func NewNotarydapp(address common.Address, backend bind.ContractBackend) (*Notarydapp, error)

NewNotarydapp creates a new instance of Notarydapp, bound to a specific deployed contract.

type NotarydappCaller

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

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

func NewNotarydappCaller

func NewNotarydappCaller(address common.Address, caller bind.ContractCaller) (*NotarydappCaller, error)

NewNotarydappCaller creates a new read-only instance of Notarydapp, bound to a specific deployed contract.

func (*NotarydappCaller) GetDocumentByHash

func (_Notarydapp *NotarydappCaller) GetDocumentByHash(opts *bind.CallOpts, hash [32]byte) (*big.Int, string, error)

GetDocumentByHash is a free data retrieval call binding the contract method 0x07fb5bc2.

Solidity: function getDocumentByHash(bytes32 hash) constant returns(uint256, string)

func (*NotarydappCaller) GetDocumentHashesByOwner

func (_Notarydapp *NotarydappCaller) GetDocumentHashesByOwner(opts *bind.CallOpts, owner string) ([][32]byte, error)

GetDocumentHashesByOwner is a free data retrieval call binding the contract method 0xd6cc7ac8.

Solidity: function getDocumentHashesByOwner(string owner) constant returns(bytes32[])

type NotarydappCallerRaw

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

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

func (*NotarydappCallerRaw) Call

func (_Notarydapp *NotarydappCallerRaw) 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 NotarydappCallerSession

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

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

func (*NotarydappCallerSession) GetDocumentByHash

func (_Notarydapp *NotarydappCallerSession) GetDocumentByHash(hash [32]byte) (*big.Int, string, error)

GetDocumentByHash is a free data retrieval call binding the contract method 0x07fb5bc2.

Solidity: function getDocumentByHash(bytes32 hash) constant returns(uint256, string)

func (*NotarydappCallerSession) GetDocumentHashesByOwner

func (_Notarydapp *NotarydappCallerSession) GetDocumentHashesByOwner(owner string) ([][32]byte, error)

GetDocumentHashesByOwner is a free data retrieval call binding the contract method 0xd6cc7ac8.

Solidity: function getDocumentHashesByOwner(string owner) constant returns(bytes32[])

type NotarydappDocumentRegistration

type NotarydappDocumentRegistration struct {
	Timestamp *big.Int
	Hash      [32]byte
	Owner     common.Hash
	Raw       types.Log // Blockchain specific contextual infos
}

NotarydappDocumentRegistration represents a DocumentRegistration event raised by the Notarydapp contract.

type NotarydappDocumentRegistrationIterator

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

NotarydappDocumentRegistrationIterator is returned from FilterDocumentRegistration and is used to iterate over the raw logs and unpacked data for DocumentRegistration events raised by the Notarydapp contract.

func (*NotarydappDocumentRegistrationIterator) Close

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

func (*NotarydappDocumentRegistrationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*NotarydappDocumentRegistrationIterator) Next

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 NotarydappFilterer

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

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

func NewNotarydappFilterer

func NewNotarydappFilterer(address common.Address, filterer bind.ContractFilterer) (*NotarydappFilterer, error)

NewNotarydappFilterer creates a new log filterer instance of Notarydapp, bound to a specific deployed contract.

func (*NotarydappFilterer) FilterDocumentRegistration

func (_Notarydapp *NotarydappFilterer) FilterDocumentRegistration(opts *bind.FilterOpts, hash [][32]byte, owner []string) (*NotarydappDocumentRegistrationIterator, error)

FilterDocumentRegistration is a free log retrieval operation binding the contract event 0x428a0ed1845add1d9faf13ee0d41150a1bfec9d43f5bca366aedc863c0aa6acc.

Solidity: event DocumentRegistration(uint256 timestamp, bytes32 indexed hash, string indexed owner)

func (*NotarydappFilterer) ParseDocumentRegistration

func (_Notarydapp *NotarydappFilterer) ParseDocumentRegistration(log types.Log) (*NotarydappDocumentRegistration, error)

ParseDocumentRegistration is a log parse operation binding the contract event 0x428a0ed1845add1d9faf13ee0d41150a1bfec9d43f5bca366aedc863c0aa6acc.

Solidity: event DocumentRegistration(uint256 timestamp, bytes32 indexed hash, string indexed owner)

func (*NotarydappFilterer) WatchDocumentRegistration

func (_Notarydapp *NotarydappFilterer) WatchDocumentRegistration(opts *bind.WatchOpts, sink chan<- *NotarydappDocumentRegistration, hash [][32]byte, owner []string) (event.Subscription, error)

WatchDocumentRegistration is a free log subscription operation binding the contract event 0x428a0ed1845add1d9faf13ee0d41150a1bfec9d43f5bca366aedc863c0aa6acc.

Solidity: event DocumentRegistration(uint256 timestamp, bytes32 indexed hash, string indexed owner)

type NotarydappRaw

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

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

func (*NotarydappRaw) Call

func (_Notarydapp *NotarydappRaw) 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 (*NotarydappRaw) Transact

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

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

func (*NotarydappRaw) Transfer

func (_Notarydapp *NotarydappRaw) 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 NotarydappSession

type NotarydappSession struct {
	Contract     *Notarydapp       // 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
}

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

func (*NotarydappSession) GetDocumentByHash

func (_Notarydapp *NotarydappSession) GetDocumentByHash(hash [32]byte) (*big.Int, string, error)

GetDocumentByHash is a free data retrieval call binding the contract method 0x07fb5bc2.

Solidity: function getDocumentByHash(bytes32 hash) constant returns(uint256, string)

func (*NotarydappSession) GetDocumentHashesByOwner

func (_Notarydapp *NotarydappSession) GetDocumentHashesByOwner(owner string) ([][32]byte, error)

GetDocumentHashesByOwner is a free data retrieval call binding the contract method 0xd6cc7ac8.

Solidity: function getDocumentHashesByOwner(string owner) constant returns(bytes32[])

func (*NotarydappSession) RegisterDocument

func (_Notarydapp *NotarydappSession) RegisterDocument(documentHash [32]byte, documentOwner string) (*types.Transaction, error)

RegisterDocument is a paid mutator transaction binding the contract method 0xfa17185a.

Solidity: function registerDocument(bytes32 documentHash, string documentOwner) returns(bool)

type NotarydappTransactor

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

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

func NewNotarydappTransactor

func NewNotarydappTransactor(address common.Address, transactor bind.ContractTransactor) (*NotarydappTransactor, error)

NewNotarydappTransactor creates a new write-only instance of Notarydapp, bound to a specific deployed contract.

func (*NotarydappTransactor) RegisterDocument

func (_Notarydapp *NotarydappTransactor) RegisterDocument(opts *bind.TransactOpts, documentHash [32]byte, documentOwner string) (*types.Transaction, error)

RegisterDocument is a paid mutator transaction binding the contract method 0xfa17185a.

Solidity: function registerDocument(bytes32 documentHash, string documentOwner) returns(bool)

type NotarydappTransactorRaw

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

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

func (*NotarydappTransactorRaw) Transact

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

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

func (*NotarydappTransactorRaw) Transfer

func (_Notarydapp *NotarydappTransactorRaw) 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 NotarydappTransactorSession

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

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

func (*NotarydappTransactorSession) RegisterDocument

func (_Notarydapp *NotarydappTransactorSession) RegisterDocument(documentHash [32]byte, documentOwner string) (*types.Transaction, error)

RegisterDocument is a paid mutator transaction binding the contract method 0xfa17185a.

Solidity: function registerDocument(bytes32 documentHash, string documentOwner) returns(bool)

Jump to

Keyboard shortcuts

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