store

package
v0.0.0-...-3a21ec0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RepositoryABI = "" /* 781-byte string literal not displayed */

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

View Source
const RepositoryBin = `` /* 1560-byte string literal not displayed */

RepositoryBin is the compiled bytecode used for deploying new contracts.

View Source
const StoreABI = "" /* 1275-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	RepositoryCaller     // Read-only binding to the contract
	RepositoryTransactor // Write-only binding to the contract
	RepositoryFilterer   // Log filterer for contract events
}

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

func DeployRepository

func DeployRepository(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Repository, error)

DeployRepository deploys a new Ethereum contract, binding an instance of Repository to it.

func NewRepository

func NewRepository(address common.Address, backend bind.ContractBackend) (*Repository, error)

NewRepository creates a new instance of Repository, bound to a specific deployed contract.

type RepositoryCaller

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

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

func NewRepositoryCaller

func NewRepositoryCaller(address common.Address, caller bind.ContractCaller) (*RepositoryCaller, error)

NewRepositoryCaller creates a new read-only instance of Repository, bound to a specific deployed contract.

func (*RepositoryCaller) Credentials

func (_Repository *RepositoryCaller) Credentials(opts *bind.CallOpts, arg0 [32]byte) ([32]byte, error)

Credentials is a free data retrieval call binding the contract method 0x299d0348.

Solidity: function credentials( bytes32) constant returns(bytes32)

type RepositoryCallerRaw

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

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

func (*RepositoryCallerRaw) Call

func (_Repository *RepositoryCallerRaw) 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 RepositoryCallerSession

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

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

func (*RepositoryCallerSession) Credentials

func (_Repository *RepositoryCallerSession) Credentials(arg0 [32]byte) ([32]byte, error)

Credentials is a free data retrieval call binding the contract method 0x299d0348.

Solidity: function credentials( bytes32) constant returns(bytes32)

type RepositoryFilterer

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

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

func NewRepositoryFilterer

func NewRepositoryFilterer(address common.Address, filterer bind.ContractFilterer) (*RepositoryFilterer, error)

NewRepositoryFilterer creates a new log filterer instance of Repository, bound to a specific deployed contract.

func (*RepositoryFilterer) FilterSaved

func (_Repository *RepositoryFilterer) FilterSaved(opts *bind.FilterOpts, id [][32]byte) (*RepositorySavedIterator, error)

FilterSaved is a free log retrieval operation binding the contract event 0x44a27dbdd2a8591b2851f8c8f004aa50d1081d9b41af8c7522d9d7ea57e9f68f.

Solidity: e Saved(id indexed bytes32, by address, hash bytes32)

func (*RepositoryFilterer) WatchSaved

func (_Repository *RepositoryFilterer) WatchSaved(opts *bind.WatchOpts, sink chan<- *RepositorySaved, id [][32]byte) (event.Subscription, error)

WatchSaved is a free log subscription operation binding the contract event 0x44a27dbdd2a8591b2851f8c8f004aa50d1081d9b41af8c7522d9d7ea57e9f68f.

Solidity: e Saved(id indexed bytes32, by address, hash bytes32)

type RepositoryRaw

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

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

func (*RepositoryRaw) Call

func (_Repository *RepositoryRaw) 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 (*RepositoryRaw) Transact

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

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

func (*RepositoryRaw) Transfer

func (_Repository *RepositoryRaw) 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 RepositorySaved

type RepositorySaved struct {
	Id   [32]byte
	By   common.Address
	Hash [32]byte
	Raw  types.Log // Blockchain specific contextual infos
}

RepositorySaved represents a Saved event raised by the Repository contract.

type RepositorySavedIterator

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

RepositorySavedIterator is returned from FilterSaved and is used to iterate over the raw logs and unpacked data for Saved events raised by the Repository contract.

func (*RepositorySavedIterator) Close

func (it *RepositorySavedIterator) Close() error

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

func (*RepositorySavedIterator) Error

func (it *RepositorySavedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RepositorySavedIterator) Next

func (it *RepositorySavedIterator) 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 RepositorySession

type RepositorySession struct {
	Contract     *Repository       // 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
}

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

func (*RepositorySession) Credentials

func (_Repository *RepositorySession) Credentials(arg0 [32]byte) ([32]byte, error)

Credentials is a free data retrieval call binding the contract method 0x299d0348.

Solidity: function credentials( bytes32) constant returns(bytes32)

func (*RepositorySession) Register

func (_Repository *RepositorySession) Register(id [32]byte, hash [32]byte) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0x2f926732.

Solidity: function register(id bytes32, hash bytes32) returns()

type RepositoryTransactor

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

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

func NewRepositoryTransactor

func NewRepositoryTransactor(address common.Address, transactor bind.ContractTransactor) (*RepositoryTransactor, error)

NewRepositoryTransactor creates a new write-only instance of Repository, bound to a specific deployed contract.

func (*RepositoryTransactor) Register

func (_Repository *RepositoryTransactor) Register(opts *bind.TransactOpts, id [32]byte, hash [32]byte) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0x2f926732.

Solidity: function register(id bytes32, hash bytes32) returns()

type RepositoryTransactorRaw

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

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

func (*RepositoryTransactorRaw) Transact

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

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

func (*RepositoryTransactorRaw) Transfer

func (_Repository *RepositoryTransactorRaw) 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 RepositoryTransactorSession

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

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

func (*RepositoryTransactorSession) Register

func (_Repository *RepositoryTransactorSession) Register(id [32]byte, hash [32]byte) (*types.Transaction, error)

Register is a paid mutator transaction binding the contract method 0x2f926732.

Solidity: function register(id bytes32, hash bytes32) returns()

type Store

type Store struct {
	StoreCaller     // Read-only binding to the contract
	StoreTransactor // Write-only binding to the contract
	StoreFilterer   // Log filterer for contract events
}

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

func NewStore

func NewStore(address common.Address, backend bind.ContractBackend) (*Store, error)

NewStore creates a new instance of Store, bound to a specific deployed contract.

type StoreCaller

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

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

func NewStoreCaller

func NewStoreCaller(address common.Address, caller bind.ContractCaller) (*StoreCaller, error)

NewStoreCaller creates a new read-only instance of Store, bound to a specific deployed contract.

func (*StoreCaller) Verifications

func (_Store *StoreCaller) Verifications(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (struct {
	Iat *big.Int
	Exp *big.Int
}, error)

Verifications is a free data retrieval call binding the contract method 0x95f5114c.

Solidity: function verifications( bytes32, address) constant returns(iat uint256, exp uint256)

type StoreCallerRaw

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

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

func (*StoreCallerRaw) Call

func (_Store *StoreCallerRaw) 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 StoreCallerSession

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

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

func (*StoreCallerSession) Verifications

func (_Store *StoreCallerSession) Verifications(arg0 [32]byte, arg1 common.Address) (struct {
	Iat *big.Int
	Exp *big.Int
}, error)

Verifications is a free data retrieval call binding the contract method 0x95f5114c.

Solidity: function verifications( bytes32, address) constant returns(iat uint256, exp uint256)

type StoreFilterer

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

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

func NewStoreFilterer

func NewStoreFilterer(address common.Address, filterer bind.ContractFilterer) (*StoreFilterer, error)

NewStoreFilterer creates a new log filterer instance of Store, bound to a specific deployed contract.

func (*StoreFilterer) FilterRevoked

func (_Store *StoreFilterer) FilterRevoked(opts *bind.FilterOpts, hash [][32]byte) (*StoreRevokedIterator, error)

FilterRevoked is a free log retrieval operation binding the contract event 0xbad7982cc5cd1310cfc1c83b1e7e9bc771332036ea180c362910e4068fc5ecf6.

Solidity: e Revoked(hash indexed bytes32, by address, date uint256)

func (*StoreFilterer) FilterVerified

func (_Store *StoreFilterer) FilterVerified(opts *bind.FilterOpts, hash [][32]byte) (*StoreVerifiedIterator, error)

FilterVerified is a free log retrieval operation binding the contract event 0xef081e4d12d9d2377ab4c9af5421f0ce40d78d2031cb2cccd1c23eb0a3c6ecce.

Solidity: e Verified(hash indexed bytes32, by address, date uint256, expDate uint256)

func (*StoreFilterer) WatchRevoked

func (_Store *StoreFilterer) WatchRevoked(opts *bind.WatchOpts, sink chan<- *StoreRevoked, hash [][32]byte) (event.Subscription, error)

WatchRevoked is a free log subscription operation binding the contract event 0xbad7982cc5cd1310cfc1c83b1e7e9bc771332036ea180c362910e4068fc5ecf6.

Solidity: e Revoked(hash indexed bytes32, by address, date uint256)

func (*StoreFilterer) WatchVerified

func (_Store *StoreFilterer) WatchVerified(opts *bind.WatchOpts, sink chan<- *StoreVerified, hash [][32]byte) (event.Subscription, error)

WatchVerified is a free log subscription operation binding the contract event 0xef081e4d12d9d2377ab4c9af5421f0ce40d78d2031cb2cccd1c23eb0a3c6ecce.

Solidity: e Verified(hash indexed bytes32, by address, date uint256, expDate uint256)

type StoreRaw

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

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

func (*StoreRaw) Call

func (_Store *StoreRaw) 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 (*StoreRaw) Transact

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

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

func (*StoreRaw) Transfer

func (_Store *StoreRaw) 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 StoreRevoked

type StoreRevoked struct {
	Hash [32]byte
	By   common.Address
	Date *big.Int
	Raw  types.Log // Blockchain specific contextual infos
}

StoreRevoked represents a Revoked event raised by the Store contract.

type StoreRevokedIterator

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

StoreRevokedIterator is returned from FilterRevoked and is used to iterate over the raw logs and unpacked data for Revoked events raised by the Store contract.

func (*StoreRevokedIterator) Close

func (it *StoreRevokedIterator) Close() error

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

func (*StoreRevokedIterator) Error

func (it *StoreRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StoreRevokedIterator) Next

func (it *StoreRevokedIterator) 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 StoreSession

type StoreSession struct {
	Contract     *Store            // 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
}

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

func (*StoreSession) Revoke

func (_Store *StoreSession) Revoke(hash [32]byte) (*types.Transaction, error)

Revoke is a paid mutator transaction binding the contract method 0xb75c7dc6.

Solidity: function revoke(hash bytes32) returns()

func (*StoreSession) Verifications

func (_Store *StoreSession) Verifications(arg0 [32]byte, arg1 common.Address) (struct {
	Iat *big.Int
	Exp *big.Int
}, error)

Verifications is a free data retrieval call binding the contract method 0x95f5114c.

Solidity: function verifications( bytes32, address) constant returns(iat uint256, exp uint256)

func (*StoreSession) Verify

func (_Store *StoreSession) Verify(hash [32]byte, validDays *big.Int) (*types.Transaction, error)

Verify is a paid mutator transaction binding the contract method 0x382262fc.

Solidity: function verify(hash bytes32, validDays uint256) returns()

type StoreTransactor

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

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

func NewStoreTransactor

func NewStoreTransactor(address common.Address, transactor bind.ContractTransactor) (*StoreTransactor, error)

NewStoreTransactor creates a new write-only instance of Store, bound to a specific deployed contract.

func (*StoreTransactor) Revoke

func (_Store *StoreTransactor) Revoke(opts *bind.TransactOpts, hash [32]byte) (*types.Transaction, error)

Revoke is a paid mutator transaction binding the contract method 0xb75c7dc6.

Solidity: function revoke(hash bytes32) returns()

func (*StoreTransactor) Verify

func (_Store *StoreTransactor) Verify(opts *bind.TransactOpts, hash [32]byte, validDays *big.Int) (*types.Transaction, error)

Verify is a paid mutator transaction binding the contract method 0x382262fc.

Solidity: function verify(hash bytes32, validDays uint256) returns()

type StoreTransactorRaw

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

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

func (*StoreTransactorRaw) Transact

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

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

func (*StoreTransactorRaw) Transfer

func (_Store *StoreTransactorRaw) 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 StoreTransactorSession

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

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

func (*StoreTransactorSession) Revoke

func (_Store *StoreTransactorSession) Revoke(hash [32]byte) (*types.Transaction, error)

Revoke is a paid mutator transaction binding the contract method 0xb75c7dc6.

Solidity: function revoke(hash bytes32) returns()

func (*StoreTransactorSession) Verify

func (_Store *StoreTransactorSession) Verify(hash [32]byte, validDays *big.Int) (*types.Transaction, error)

Verify is a paid mutator transaction binding the contract method 0x382262fc.

Solidity: function verify(hash bytes32, validDays uint256) returns()

type StoreVerified

type StoreVerified struct {
	Hash    [32]byte
	By      common.Address
	Date    *big.Int
	ExpDate *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

StoreVerified represents a Verified event raised by the Store contract.

type StoreVerifiedIterator

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

StoreVerifiedIterator is returned from FilterVerified and is used to iterate over the raw logs and unpacked data for Verified events raised by the Store contract.

func (*StoreVerifiedIterator) Close

func (it *StoreVerifiedIterator) Close() error

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

func (*StoreVerifiedIterator) Error

func (it *StoreVerifiedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*StoreVerifiedIterator) Next

func (it *StoreVerifiedIterator) 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.

Jump to

Keyboard shortcuts

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