contracts

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package contracts provides a set of abstractions and utilities for interacting with Ethereum smart contracts, specifically the ones that are required for type-safe blockchain interaction in this SDK.

The package includes metadata, ABIs, and various entities for these contracts, allowing users to conveniently work with Ethereum contracts associated with guardian roles, KYC records, and related events. It encapsulates the complexity of contract interactions and facilitates the integration of Ethereum smart contract functionality into Go applications.

Index

Constants

This section is empty.

Variables

View Source
var GuardianRegistryABI = GuardianRegistryMetaData.ABI

GuardianRegistryABI is the input ABI used to generate the binding from. Deprecated: Use GuardianRegistryMetaData.ABI instead.

View Source
var GuardianRegistryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"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\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guardian\",\"type\":\"address\"},{\"internalType\":\"uint256[2]\",\"name\":\"pubKey\",\"type\":\"uint256[2]\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"name\":\"grantGuardianRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"guardians\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"whitelisted\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guardian\",\"type\":\"address\"}],\"name\":\"isWhitelisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"pubKeyToAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceGuardianRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"guardian\",\"type\":\"address\"}],\"name\":\"revokeGuardianRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"setNewOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

GuardianRegistryMetaData contains all meta data concerning the GuardianRegistry contract.

View Source
var ZkCertificateRegistryABI = ZkCertificateRegistryMetaData.ABI

ZkCertificateRegistryABI is the input ABI used to generate the binding from. Deprecated: Use ZkCertificateRegistryMetaData.ABI instead.

View Source
var ZkCertificateRegistryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"GuardianRegistry_\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"_description\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"zkCertificateLeafHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"Guardian\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"zkCertificateAddition\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"zkCertificateLeafHash\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"Guardian\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"zkCertificateRevocation\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ZERO_VALUE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"ZkCertificateToGuardian\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_GuardianRegistry\",\"outputs\":[{\"internalType\":\"contractGuardianRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"leafIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"zkCertificateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"addZkCertificate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"description\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_left\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"_right\",\"type\":\"bytes32\"}],\"name\":\"hashLeftRight\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"merkleRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextLeafIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"leafIndex\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"zkCertificateHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"merkleProof\",\"type\":\"bytes32[]\"}],\"name\":\"revokeZkCertificate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"zeros\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ZkCertificateRegistryMetaData contains all meta data concerning the ZkCertificateRegistry contract.

Functions

This section is empty.

Types

type GuardianRegistry

type GuardianRegistry struct {
	GuardianRegistryCaller     // Read-only binding to the contract
	GuardianRegistryTransactor // Write-only binding to the contract
	GuardianRegistryFilterer   // Log filterer for contract events
}

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

func NewGuardianRegistry

func NewGuardianRegistry(address common.Address, backend bind.ContractBackend) (*GuardianRegistry, error)

NewGuardianRegistry creates a new instance of GuardianRegistry, bound to a specific deployed contract.

type GuardianRegistryCaller

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

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

func NewGuardianRegistryCaller

func NewGuardianRegistryCaller(address common.Address, caller bind.ContractCaller) (*GuardianRegistryCaller, error)

NewGuardianRegistryCaller creates a new read-only instance of GuardianRegistry, bound to a specific deployed contract.

func (*GuardianRegistryCaller) Guardians

func (_GuardianRegistry *GuardianRegistryCaller) Guardians(opts *bind.CallOpts, arg0 common.Address) (struct {
	Whitelisted bool
	Name        string
}, error)

Guardians is a free data retrieval call binding the contract method 0x0633b14a.

Solidity: function guardians(address ) view returns(bool whitelisted, string name)

func (*GuardianRegistryCaller) IsWhitelisted

func (_GuardianRegistry *GuardianRegistryCaller) IsWhitelisted(opts *bind.CallOpts, guardian common.Address) (bool, error)

IsWhitelisted is a free data retrieval call binding the contract method 0x3af32abf.

Solidity: function isWhitelisted(address guardian) view returns(bool)

func (*GuardianRegistryCaller) NewOwner

func (_GuardianRegistry *GuardianRegistryCaller) NewOwner(opts *bind.CallOpts) (common.Address, error)

NewOwner is a free data retrieval call binding the contract method 0xd4ee1d90.

Solidity: function newOwner() view returns(address)

func (*GuardianRegistryCaller) Owner

func (_GuardianRegistry *GuardianRegistryCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*GuardianRegistryCaller) PubKeyToAddress

func (_GuardianRegistry *GuardianRegistryCaller) PubKeyToAddress(opts *bind.CallOpts, arg0 *big.Int, arg1 *big.Int) (common.Address, error)

PubKeyToAddress is a free data retrieval call binding the contract method 0x7b9bff31.

Solidity: function pubKeyToAddress(uint256 , uint256 ) view returns(address)

type GuardianRegistryCallerRaw

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

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

func (*GuardianRegistryCallerRaw) Call

func (_GuardianRegistry *GuardianRegistryCallerRaw) 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 GuardianRegistryCallerSession

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

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

func (*GuardianRegistryCallerSession) Guardians

func (_GuardianRegistry *GuardianRegistryCallerSession) Guardians(arg0 common.Address) (struct {
	Whitelisted bool
	Name        string
}, error)

Guardians is a free data retrieval call binding the contract method 0x0633b14a.

Solidity: function guardians(address ) view returns(bool whitelisted, string name)

func (*GuardianRegistryCallerSession) IsWhitelisted

func (_GuardianRegistry *GuardianRegistryCallerSession) IsWhitelisted(guardian common.Address) (bool, error)

IsWhitelisted is a free data retrieval call binding the contract method 0x3af32abf.

Solidity: function isWhitelisted(address guardian) view returns(bool)

func (*GuardianRegistryCallerSession) NewOwner

func (_GuardianRegistry *GuardianRegistryCallerSession) NewOwner() (common.Address, error)

NewOwner is a free data retrieval call binding the contract method 0xd4ee1d90.

Solidity: function newOwner() view returns(address)

func (*GuardianRegistryCallerSession) Owner

func (_GuardianRegistry *GuardianRegistryCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*GuardianRegistryCallerSession) PubKeyToAddress

func (_GuardianRegistry *GuardianRegistryCallerSession) PubKeyToAddress(arg0 *big.Int, arg1 *big.Int) (common.Address, error)

PubKeyToAddress is a free data retrieval call binding the contract method 0x7b9bff31.

Solidity: function pubKeyToAddress(uint256 , uint256 ) view returns(address)

type GuardianRegistryFilterer

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

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

func NewGuardianRegistryFilterer

func NewGuardianRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*GuardianRegistryFilterer, error)

NewGuardianRegistryFilterer creates a new log filterer instance of GuardianRegistry, bound to a specific deployed contract.

func (*GuardianRegistryFilterer) FilterOwnershipTransferred

func (_GuardianRegistry *GuardianRegistryFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*GuardianRegistryOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*GuardianRegistryFilterer) ParseOwnershipTransferred

func (_GuardianRegistry *GuardianRegistryFilterer) ParseOwnershipTransferred(log types.Log) (*GuardianRegistryOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*GuardianRegistryFilterer) WatchOwnershipTransferred

func (_GuardianRegistry *GuardianRegistryFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *GuardianRegistryOwnershipTransferred, 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)

type GuardianRegistryOwnershipTransferred

type GuardianRegistryOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

GuardianRegistryOwnershipTransferred represents a OwnershipTransferred event raised by the GuardianRegistry contract.

type GuardianRegistryOwnershipTransferredIterator

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

GuardianRegistryOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the GuardianRegistry contract.

func (*GuardianRegistryOwnershipTransferredIterator) Close

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

func (*GuardianRegistryOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*GuardianRegistryOwnershipTransferredIterator) 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 GuardianRegistryRaw

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

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

func (*GuardianRegistryRaw) Call

func (_GuardianRegistry *GuardianRegistryRaw) 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 (*GuardianRegistryRaw) Transact

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

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

func (*GuardianRegistryRaw) Transfer

func (_GuardianRegistry *GuardianRegistryRaw) 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 GuardianRegistrySession

type GuardianRegistrySession struct {
	Contract     *GuardianRegistry // 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
}

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

func (*GuardianRegistrySession) GrantGuardianRole

func (_GuardianRegistry *GuardianRegistrySession) GrantGuardianRole(guardian common.Address, pubKey [2]*big.Int, name string) (*types.Transaction, error)

GrantGuardianRole is a paid mutator transaction binding the contract method 0x06b7e1e8.

Solidity: function grantGuardianRole(address guardian, uint256[2] pubKey, string name) returns()

func (*GuardianRegistrySession) Guardians

func (_GuardianRegistry *GuardianRegistrySession) Guardians(arg0 common.Address) (struct {
	Whitelisted bool
	Name        string
}, error)

Guardians is a free data retrieval call binding the contract method 0x0633b14a.

Solidity: function guardians(address ) view returns(bool whitelisted, string name)

func (*GuardianRegistrySession) IsWhitelisted

func (_GuardianRegistry *GuardianRegistrySession) IsWhitelisted(guardian common.Address) (bool, error)

IsWhitelisted is a free data retrieval call binding the contract method 0x3af32abf.

Solidity: function isWhitelisted(address guardian) view returns(bool)

func (*GuardianRegistrySession) NewOwner

func (_GuardianRegistry *GuardianRegistrySession) NewOwner() (common.Address, error)

NewOwner is a free data retrieval call binding the contract method 0xd4ee1d90.

Solidity: function newOwner() view returns(address)

func (*GuardianRegistrySession) Owner

func (_GuardianRegistry *GuardianRegistrySession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*GuardianRegistrySession) PubKeyToAddress

func (_GuardianRegistry *GuardianRegistrySession) PubKeyToAddress(arg0 *big.Int, arg1 *big.Int) (common.Address, error)

PubKeyToAddress is a free data retrieval call binding the contract method 0x7b9bff31.

Solidity: function pubKeyToAddress(uint256 , uint256 ) view returns(address)

func (*GuardianRegistrySession) RenounceGuardianRole

func (_GuardianRegistry *GuardianRegistrySession) RenounceGuardianRole() (*types.Transaction, error)

RenounceGuardianRole is a paid mutator transaction binding the contract method 0x34d03190.

Solidity: function renounceGuardianRole() returns()

func (*GuardianRegistrySession) RenounceOwnership

func (_GuardianRegistry *GuardianRegistrySession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*GuardianRegistrySession) RevokeGuardianRole

func (_GuardianRegistry *GuardianRegistrySession) RevokeGuardianRole(guardian common.Address) (*types.Transaction, error)

RevokeGuardianRole is a paid mutator transaction binding the contract method 0x4b4b5389.

Solidity: function revokeGuardianRole(address guardian) returns()

func (*GuardianRegistrySession) SetNewOwner

func (_GuardianRegistry *GuardianRegistrySession) SetNewOwner(_newOwner common.Address) (*types.Transaction, error)

SetNewOwner is a paid mutator transaction binding the contract method 0xf5a1f5b4.

Solidity: function setNewOwner(address _newOwner) returns()

func (*GuardianRegistrySession) TransferOwnership

func (_GuardianRegistry *GuardianRegistrySession) TransferOwnership() (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0x880ad0af.

Solidity: function transferOwnership() returns()

type GuardianRegistryTransactor

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

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

func NewGuardianRegistryTransactor

func NewGuardianRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*GuardianRegistryTransactor, error)

NewGuardianRegistryTransactor creates a new write-only instance of GuardianRegistry, bound to a specific deployed contract.

func (*GuardianRegistryTransactor) GrantGuardianRole

func (_GuardianRegistry *GuardianRegistryTransactor) GrantGuardianRole(opts *bind.TransactOpts, guardian common.Address, pubKey [2]*big.Int, name string) (*types.Transaction, error)

GrantGuardianRole is a paid mutator transaction binding the contract method 0x06b7e1e8.

Solidity: function grantGuardianRole(address guardian, uint256[2] pubKey, string name) returns()

func (*GuardianRegistryTransactor) RenounceGuardianRole

func (_GuardianRegistry *GuardianRegistryTransactor) RenounceGuardianRole(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceGuardianRole is a paid mutator transaction binding the contract method 0x34d03190.

Solidity: function renounceGuardianRole() returns()

func (*GuardianRegistryTransactor) RenounceOwnership

func (_GuardianRegistry *GuardianRegistryTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*GuardianRegistryTransactor) RevokeGuardianRole

func (_GuardianRegistry *GuardianRegistryTransactor) RevokeGuardianRole(opts *bind.TransactOpts, guardian common.Address) (*types.Transaction, error)

RevokeGuardianRole is a paid mutator transaction binding the contract method 0x4b4b5389.

Solidity: function revokeGuardianRole(address guardian) returns()

func (*GuardianRegistryTransactor) SetNewOwner

func (_GuardianRegistry *GuardianRegistryTransactor) SetNewOwner(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)

SetNewOwner is a paid mutator transaction binding the contract method 0xf5a1f5b4.

Solidity: function setNewOwner(address _newOwner) returns()

func (*GuardianRegistryTransactor) TransferOwnership

func (_GuardianRegistry *GuardianRegistryTransactor) TransferOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0x880ad0af.

Solidity: function transferOwnership() returns()

type GuardianRegistryTransactorRaw

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

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

func (*GuardianRegistryTransactorRaw) Transact

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

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

func (*GuardianRegistryTransactorRaw) Transfer

func (_GuardianRegistry *GuardianRegistryTransactorRaw) 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 GuardianRegistryTransactorSession

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

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

func (*GuardianRegistryTransactorSession) GrantGuardianRole

func (_GuardianRegistry *GuardianRegistryTransactorSession) GrantGuardianRole(guardian common.Address, pubKey [2]*big.Int, name string) (*types.Transaction, error)

GrantGuardianRole is a paid mutator transaction binding the contract method 0x06b7e1e8.

Solidity: function grantGuardianRole(address guardian, uint256[2] pubKey, string name) returns()

func (*GuardianRegistryTransactorSession) RenounceGuardianRole

func (_GuardianRegistry *GuardianRegistryTransactorSession) RenounceGuardianRole() (*types.Transaction, error)

RenounceGuardianRole is a paid mutator transaction binding the contract method 0x34d03190.

Solidity: function renounceGuardianRole() returns()

func (*GuardianRegistryTransactorSession) RenounceOwnership

func (_GuardianRegistry *GuardianRegistryTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*GuardianRegistryTransactorSession) RevokeGuardianRole

func (_GuardianRegistry *GuardianRegistryTransactorSession) RevokeGuardianRole(guardian common.Address) (*types.Transaction, error)

RevokeGuardianRole is a paid mutator transaction binding the contract method 0x4b4b5389.

Solidity: function revokeGuardianRole(address guardian) returns()

func (*GuardianRegistryTransactorSession) SetNewOwner

func (_GuardianRegistry *GuardianRegistryTransactorSession) SetNewOwner(_newOwner common.Address) (*types.Transaction, error)

SetNewOwner is a paid mutator transaction binding the contract method 0xf5a1f5b4.

Solidity: function setNewOwner(address _newOwner) returns()

func (*GuardianRegistryTransactorSession) TransferOwnership

func (_GuardianRegistry *GuardianRegistryTransactorSession) TransferOwnership() (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0x880ad0af.

Solidity: function transferOwnership() returns()

type ZkCertificateRegistry added in v1.1.0

type ZkCertificateRegistry struct {
	ZkCertificateRegistryCaller     // Read-only binding to the contract
	ZkCertificateRegistryTransactor // Write-only binding to the contract
	ZkCertificateRegistryFilterer   // Log filterer for contract events
}

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

func NewZkCertificateRegistry added in v1.1.0

func NewZkCertificateRegistry(address common.Address, backend bind.ContractBackend) (*ZkCertificateRegistry, error)

NewZkCertificateRegistry creates a new instance of ZkCertificateRegistry, bound to a specific deployed contract.

type ZkCertificateRegistryCaller added in v1.1.0

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

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

func NewZkCertificateRegistryCaller added in v1.1.0

func NewZkCertificateRegistryCaller(address common.Address, caller bind.ContractCaller) (*ZkCertificateRegistryCaller, error)

NewZkCertificateRegistryCaller creates a new read-only instance of ZkCertificateRegistry, bound to a specific deployed contract.

func (*ZkCertificateRegistryCaller) Description added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCaller) Description(opts *bind.CallOpts) (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*ZkCertificateRegistryCaller) GuardianRegistry added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCaller) GuardianRegistry(opts *bind.CallOpts) (common.Address, error)

GuardianRegistry is a free data retrieval call binding the contract method 0x0a1a9950.

Solidity: function _GuardianRegistry() view returns(address)

func (*ZkCertificateRegistryCaller) HashLeftRight added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCaller) HashLeftRight(opts *bind.CallOpts, _left [32]byte, _right [32]byte) ([32]byte, error)

HashLeftRight is a free data retrieval call binding the contract method 0x38bf282e.

Solidity: function hashLeftRight(bytes32 _left, bytes32 _right) pure returns(bytes32)

func (*ZkCertificateRegistryCaller) MerkleRoot added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCaller) MerkleRoot(opts *bind.CallOpts) ([32]byte, error)

MerkleRoot is a free data retrieval call binding the contract method 0x2eb4a7ab.

Solidity: function merkleRoot() view returns(bytes32)

func (*ZkCertificateRegistryCaller) NextLeafIndex added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCaller) NextLeafIndex(opts *bind.CallOpts) (*big.Int, error)

NextLeafIndex is a free data retrieval call binding the contract method 0x0be4f422.

Solidity: function nextLeafIndex() view returns(uint256)

func (*ZkCertificateRegistryCaller) ZEROVALUE added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCaller) ZEROVALUE(opts *bind.CallOpts) ([32]byte, error)

ZEROVALUE is a free data retrieval call binding the contract method 0xec732959.

Solidity: function ZERO_VALUE() view returns(bytes32)

func (*ZkCertificateRegistryCaller) Zeros added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCaller) Zeros(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

Zeros is a free data retrieval call binding the contract method 0xe8295588.

Solidity: function zeros(uint256 ) view returns(bytes32)

func (*ZkCertificateRegistryCaller) ZkCertificateToGuardian added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCaller) ZkCertificateToGuardian(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

ZkCertificateToGuardian is a free data retrieval call binding the contract method 0xe09c8a15.

Solidity: function ZkCertificateToGuardian(bytes32 ) view returns(address)

type ZkCertificateRegistryCallerRaw added in v1.1.0

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

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

func (*ZkCertificateRegistryCallerRaw) Call added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCallerRaw) 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 ZkCertificateRegistryCallerSession added in v1.1.0

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

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

func (*ZkCertificateRegistryCallerSession) Description added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCallerSession) Description() (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*ZkCertificateRegistryCallerSession) GuardianRegistry added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCallerSession) GuardianRegistry() (common.Address, error)

GuardianRegistry is a free data retrieval call binding the contract method 0x0a1a9950.

Solidity: function _GuardianRegistry() view returns(address)

func (*ZkCertificateRegistryCallerSession) HashLeftRight added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCallerSession) HashLeftRight(_left [32]byte, _right [32]byte) ([32]byte, error)

HashLeftRight is a free data retrieval call binding the contract method 0x38bf282e.

Solidity: function hashLeftRight(bytes32 _left, bytes32 _right) pure returns(bytes32)

func (*ZkCertificateRegistryCallerSession) MerkleRoot added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCallerSession) MerkleRoot() ([32]byte, error)

MerkleRoot is a free data retrieval call binding the contract method 0x2eb4a7ab.

Solidity: function merkleRoot() view returns(bytes32)

func (*ZkCertificateRegistryCallerSession) NextLeafIndex added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCallerSession) NextLeafIndex() (*big.Int, error)

NextLeafIndex is a free data retrieval call binding the contract method 0x0be4f422.

Solidity: function nextLeafIndex() view returns(uint256)

func (*ZkCertificateRegistryCallerSession) ZEROVALUE added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCallerSession) ZEROVALUE() ([32]byte, error)

ZEROVALUE is a free data retrieval call binding the contract method 0xec732959.

Solidity: function ZERO_VALUE() view returns(bytes32)

func (*ZkCertificateRegistryCallerSession) Zeros added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCallerSession) Zeros(arg0 *big.Int) ([32]byte, error)

Zeros is a free data retrieval call binding the contract method 0xe8295588.

Solidity: function zeros(uint256 ) view returns(bytes32)

func (*ZkCertificateRegistryCallerSession) ZkCertificateToGuardian added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryCallerSession) ZkCertificateToGuardian(arg0 [32]byte) (common.Address, error)

ZkCertificateToGuardian is a free data retrieval call binding the contract method 0xe09c8a15.

Solidity: function ZkCertificateToGuardian(bytes32 ) view returns(address)

type ZkCertificateRegistryFilterer added in v1.1.0

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

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

func NewZkCertificateRegistryFilterer added in v1.1.0

func NewZkCertificateRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*ZkCertificateRegistryFilterer, error)

NewZkCertificateRegistryFilterer creates a new log filterer instance of ZkCertificateRegistry, bound to a specific deployed contract.

func (*ZkCertificateRegistryFilterer) FilterInitialized added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryFilterer) FilterInitialized(opts *bind.FilterOpts) (*ZkCertificateRegistryInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ZkCertificateRegistryFilterer) FilterZkCertificateAddition added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryFilterer) FilterZkCertificateAddition(opts *bind.FilterOpts, zkCertificateLeafHash [][32]byte, Guardian []common.Address) (*ZkCertificateRegistryZkCertificateAdditionIterator, error)

FilterZkCertificateAddition is a free log retrieval operation binding the contract event 0xd8ed161990bf70dd13139e68384461b9fffbd1d3433c3bd56a9ccd22e0118cb6.

Solidity: event zkCertificateAddition(bytes32 indexed zkCertificateLeafHash, address indexed Guardian, uint256 index)

func (*ZkCertificateRegistryFilterer) FilterZkCertificateRevocation added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryFilterer) FilterZkCertificateRevocation(opts *bind.FilterOpts, zkCertificateLeafHash [][32]byte, Guardian []common.Address) (*ZkCertificateRegistryZkCertificateRevocationIterator, error)

FilterZkCertificateRevocation is a free log retrieval operation binding the contract event 0x2d6db1db44b3ed99e9b90701d664345ef76dd37336779182d6251abf294840a6.

Solidity: event zkCertificateRevocation(bytes32 indexed zkCertificateLeafHash, address indexed Guardian, uint256 index)

func (*ZkCertificateRegistryFilterer) ParseInitialized added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryFilterer) ParseInitialized(log types.Log) (*ZkCertificateRegistryInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ZkCertificateRegistryFilterer) ParseZkCertificateAddition added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryFilterer) ParseZkCertificateAddition(log types.Log) (*ZkCertificateRegistryZkCertificateAddition, error)

ParseZkCertificateAddition is a log parse operation binding the contract event 0xd8ed161990bf70dd13139e68384461b9fffbd1d3433c3bd56a9ccd22e0118cb6.

Solidity: event zkCertificateAddition(bytes32 indexed zkCertificateLeafHash, address indexed Guardian, uint256 index)

func (*ZkCertificateRegistryFilterer) ParseZkCertificateRevocation added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryFilterer) ParseZkCertificateRevocation(log types.Log) (*ZkCertificateRegistryZkCertificateRevocation, error)

ParseZkCertificateRevocation is a log parse operation binding the contract event 0x2d6db1db44b3ed99e9b90701d664345ef76dd37336779182d6251abf294840a6.

Solidity: event zkCertificateRevocation(bytes32 indexed zkCertificateLeafHash, address indexed Guardian, uint256 index)

func (*ZkCertificateRegistryFilterer) WatchInitialized added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ZkCertificateRegistryInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*ZkCertificateRegistryFilterer) WatchZkCertificateAddition added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryFilterer) WatchZkCertificateAddition(opts *bind.WatchOpts, sink chan<- *ZkCertificateRegistryZkCertificateAddition, zkCertificateLeafHash [][32]byte, Guardian []common.Address) (event.Subscription, error)

WatchZkCertificateAddition is a free log subscription operation binding the contract event 0xd8ed161990bf70dd13139e68384461b9fffbd1d3433c3bd56a9ccd22e0118cb6.

Solidity: event zkCertificateAddition(bytes32 indexed zkCertificateLeafHash, address indexed Guardian, uint256 index)

func (*ZkCertificateRegistryFilterer) WatchZkCertificateRevocation added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryFilterer) WatchZkCertificateRevocation(opts *bind.WatchOpts, sink chan<- *ZkCertificateRegistryZkCertificateRevocation, zkCertificateLeafHash [][32]byte, Guardian []common.Address) (event.Subscription, error)

WatchZkCertificateRevocation is a free log subscription operation binding the contract event 0x2d6db1db44b3ed99e9b90701d664345ef76dd37336779182d6251abf294840a6.

Solidity: event zkCertificateRevocation(bytes32 indexed zkCertificateLeafHash, address indexed Guardian, uint256 index)

type ZkCertificateRegistryInitialized added in v1.1.0

type ZkCertificateRegistryInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

ZkCertificateRegistryInitialized represents a Initialized event raised by the ZkCertificateRegistry contract.

type ZkCertificateRegistryInitializedIterator added in v1.1.0

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

ZkCertificateRegistryInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the ZkCertificateRegistry contract.

func (*ZkCertificateRegistryInitializedIterator) Close added in v1.1.0

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

func (*ZkCertificateRegistryInitializedIterator) Error added in v1.1.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ZkCertificateRegistryInitializedIterator) Next added in v1.1.0

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 ZkCertificateRegistryRaw added in v1.1.0

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

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

func (*ZkCertificateRegistryRaw) Call added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryRaw) 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 (*ZkCertificateRegistryRaw) Transact added in v1.1.0

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

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

func (*ZkCertificateRegistryRaw) Transfer added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryRaw) 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 ZkCertificateRegistrySession added in v1.1.0

type ZkCertificateRegistrySession struct {
	Contract     *ZkCertificateRegistry // 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
}

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

func (*ZkCertificateRegistrySession) AddZkCertificate added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) AddZkCertificate(leafIndex *big.Int, zkCertificateHash [32]byte, merkleProof [][32]byte) (*types.Transaction, error)

AddZkCertificate is a paid mutator transaction binding the contract method 0x89a64453.

Solidity: function addZkCertificate(uint256 leafIndex, bytes32 zkCertificateHash, bytes32[] merkleProof) returns()

func (*ZkCertificateRegistrySession) Description added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) Description() (string, error)

Description is a free data retrieval call binding the contract method 0x7284e416.

Solidity: function description() view returns(string)

func (*ZkCertificateRegistrySession) GuardianRegistry added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) GuardianRegistry() (common.Address, error)

GuardianRegistry is a free data retrieval call binding the contract method 0x0a1a9950.

Solidity: function _GuardianRegistry() view returns(address)

func (*ZkCertificateRegistrySession) HashLeftRight added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) HashLeftRight(_left [32]byte, _right [32]byte) ([32]byte, error)

HashLeftRight is a free data retrieval call binding the contract method 0x38bf282e.

Solidity: function hashLeftRight(bytes32 _left, bytes32 _right) pure returns(bytes32)

func (*ZkCertificateRegistrySession) MerkleRoot added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) MerkleRoot() ([32]byte, error)

MerkleRoot is a free data retrieval call binding the contract method 0x2eb4a7ab.

Solidity: function merkleRoot() view returns(bytes32)

func (*ZkCertificateRegistrySession) NextLeafIndex added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) NextLeafIndex() (*big.Int, error)

NextLeafIndex is a free data retrieval call binding the contract method 0x0be4f422.

Solidity: function nextLeafIndex() view returns(uint256)

func (*ZkCertificateRegistrySession) RevokeZkCertificate added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) RevokeZkCertificate(leafIndex *big.Int, zkCertificateHash [32]byte, merkleProof [][32]byte) (*types.Transaction, error)

RevokeZkCertificate is a paid mutator transaction binding the contract method 0xa2873348.

Solidity: function revokeZkCertificate(uint256 leafIndex, bytes32 zkCertificateHash, bytes32[] merkleProof) returns()

func (*ZkCertificateRegistrySession) ZEROVALUE added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) ZEROVALUE() ([32]byte, error)

ZEROVALUE is a free data retrieval call binding the contract method 0xec732959.

Solidity: function ZERO_VALUE() view returns(bytes32)

func (*ZkCertificateRegistrySession) Zeros added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) Zeros(arg0 *big.Int) ([32]byte, error)

Zeros is a free data retrieval call binding the contract method 0xe8295588.

Solidity: function zeros(uint256 ) view returns(bytes32)

func (*ZkCertificateRegistrySession) ZkCertificateToGuardian added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistrySession) ZkCertificateToGuardian(arg0 [32]byte) (common.Address, error)

ZkCertificateToGuardian is a free data retrieval call binding the contract method 0xe09c8a15.

Solidity: function ZkCertificateToGuardian(bytes32 ) view returns(address)

type ZkCertificateRegistryTransactor added in v1.1.0

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

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

func NewZkCertificateRegistryTransactor added in v1.1.0

func NewZkCertificateRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*ZkCertificateRegistryTransactor, error)

NewZkCertificateRegistryTransactor creates a new write-only instance of ZkCertificateRegistry, bound to a specific deployed contract.

func (*ZkCertificateRegistryTransactor) AddZkCertificate added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryTransactor) AddZkCertificate(opts *bind.TransactOpts, leafIndex *big.Int, zkCertificateHash [32]byte, merkleProof [][32]byte) (*types.Transaction, error)

AddZkCertificate is a paid mutator transaction binding the contract method 0x89a64453.

Solidity: function addZkCertificate(uint256 leafIndex, bytes32 zkCertificateHash, bytes32[] merkleProof) returns()

func (*ZkCertificateRegistryTransactor) RevokeZkCertificate added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryTransactor) RevokeZkCertificate(opts *bind.TransactOpts, leafIndex *big.Int, zkCertificateHash [32]byte, merkleProof [][32]byte) (*types.Transaction, error)

RevokeZkCertificate is a paid mutator transaction binding the contract method 0xa2873348.

Solidity: function revokeZkCertificate(uint256 leafIndex, bytes32 zkCertificateHash, bytes32[] merkleProof) returns()

type ZkCertificateRegistryTransactorRaw added in v1.1.0

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

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

func (*ZkCertificateRegistryTransactorRaw) Transact added in v1.1.0

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

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

func (*ZkCertificateRegistryTransactorRaw) Transfer added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryTransactorRaw) 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 ZkCertificateRegistryTransactorSession added in v1.1.0

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

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

func (*ZkCertificateRegistryTransactorSession) AddZkCertificate added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryTransactorSession) AddZkCertificate(leafIndex *big.Int, zkCertificateHash [32]byte, merkleProof [][32]byte) (*types.Transaction, error)

AddZkCertificate is a paid mutator transaction binding the contract method 0x89a64453.

Solidity: function addZkCertificate(uint256 leafIndex, bytes32 zkCertificateHash, bytes32[] merkleProof) returns()

func (*ZkCertificateRegistryTransactorSession) RevokeZkCertificate added in v1.1.0

func (_ZkCertificateRegistry *ZkCertificateRegistryTransactorSession) RevokeZkCertificate(leafIndex *big.Int, zkCertificateHash [32]byte, merkleProof [][32]byte) (*types.Transaction, error)

RevokeZkCertificate is a paid mutator transaction binding the contract method 0xa2873348.

Solidity: function revokeZkCertificate(uint256 leafIndex, bytes32 zkCertificateHash, bytes32[] merkleProof) returns()

type ZkCertificateRegistryZkCertificateAddition added in v1.1.0

type ZkCertificateRegistryZkCertificateAddition struct {
	ZkCertificateLeafHash [32]byte
	Guardian              common.Address
	Index                 *big.Int
	Raw                   types.Log // Blockchain specific contextual infos
}

ZkCertificateRegistryZkCertificateAddition represents a ZkCertificateAddition event raised by the ZkCertificateRegistry contract.

type ZkCertificateRegistryZkCertificateAdditionIterator added in v1.1.0

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

ZkCertificateRegistryZkCertificateAdditionIterator is returned from FilterZkCertificateAddition and is used to iterate over the raw logs and unpacked data for ZkCertificateAddition events raised by the ZkCertificateRegistry contract.

func (*ZkCertificateRegistryZkCertificateAdditionIterator) Close added in v1.1.0

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

func (*ZkCertificateRegistryZkCertificateAdditionIterator) Error added in v1.1.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ZkCertificateRegistryZkCertificateAdditionIterator) Next added in v1.1.0

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 ZkCertificateRegistryZkCertificateRevocation added in v1.1.0

type ZkCertificateRegistryZkCertificateRevocation struct {
	ZkCertificateLeafHash [32]byte
	Guardian              common.Address
	Index                 *big.Int
	Raw                   types.Log // Blockchain specific contextual infos
}

ZkCertificateRegistryZkCertificateRevocation represents a ZkCertificateRevocation event raised by the ZkCertificateRegistry contract.

type ZkCertificateRegistryZkCertificateRevocationIterator added in v1.1.0

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

ZkCertificateRegistryZkCertificateRevocationIterator is returned from FilterZkCertificateRevocation and is used to iterate over the raw logs and unpacked data for ZkCertificateRevocation events raised by the ZkCertificateRegistry contract.

func (*ZkCertificateRegistryZkCertificateRevocationIterator) Close added in v1.1.0

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

func (*ZkCertificateRegistryZkCertificateRevocationIterator) Error added in v1.1.0

Error returns any retrieval or parsing error occurred during filtering.

func (*ZkCertificateRegistryZkCertificateRevocationIterator) Next added in v1.1.0

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