alastriaContracts

package
v0.0.0-...-b2c4e65 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlastriaContractsABI = AlastriaContractsMetaData.ABI

AlastriaContractsABI is the input ABI used to generate the binding from. Deprecated: Use AlastriaContractsMetaData.ABI instead.

View Source
var AlastriaContractsMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"issuerCredentialHash\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"enumAlastriaCredentialRegistry.Status\",\"name\":\"status\",\"type\":\"uint8\"}],\"name\":\"IssuerCredentialRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"subjectCredentialHash\",\"type\":\"bytes32\"}],\"name\":\"SubjectCredentialDeleted\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"issuerCredentialList\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"previousPublishedVersion\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"subjectCredentialList\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"subjectCredentialRegistry\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"exists\",\"type\":\"bool\"},{\"internalType\":\"enumAlastriaCredentialRegistry.Status\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"string\",\"name\":\"URI\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"int256\",\"name\":\"\",\"type\":\"int256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"_previousPublishedVersion\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subjectCredentialHash\",\"type\":\"bytes32\"},{\"internalType\":\"string\",\"name\":\"URI\",\"type\":\"string\"}],\"name\":\"addSubjectCredential\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"issuerCredentialHash\",\"type\":\"bytes32\"}],\"name\":\"addIssuerCredential\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"subjectCredentialHash\",\"type\":\"bytes32\"}],\"name\":\"deleteSubjectCredential\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"subject\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"subjectCredentialHash\",\"type\":\"bytes32\"}],\"name\":\"getSubjectCredentialStatus\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"exists\",\"type\":\"bool\"},{\"internalType\":\"enumAlastriaCredentialRegistry.Status\",\"name\":\"status\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"subject\",\"type\":\"address\"}],\"name\":\"getSubjectCredentialList\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes32[]\",\"name\":\"\",\"type\":\"bytes32[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"issuerCredentialHash\",\"type\":\"bytes32\"},{\"internalType\":\"enumAlastriaCredentialRegistry.Status\",\"name\":\"status\",\"type\":\"uint8\"}],\"name\":\"updateCredentialStatus\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"issuerCredentialHash\",\"type\":\"bytes32\"}],\"name\":\"getIssuerCredentialStatus\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"exists\",\"type\":\"bool\"},{\"internalType\":\"enumAlastriaCredentialRegistry.Status\",\"name\":\"status\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"enumAlastriaCredentialRegistry.Status\",\"name\":\"subjectStatus\",\"type\":\"uint8\"},{\"internalType\":\"enumAlastriaCredentialRegistry.Status\",\"name\":\"issuerStatus\",\"type\":\"uint8\"}],\"name\":\"getCredentialStatus\",\"outputs\":[{\"internalType\":\"enumAlastriaCredentialRegistry.Status\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"}]",
}

AlastriaContractsMetaData contains all meta data concerning the AlastriaContracts contract.

Functions

This section is empty.

Types

type AlastriaContracts

type AlastriaContracts struct {
	AlastriaContractsCaller     // Read-only binding to the contract
	AlastriaContractsTransactor // Write-only binding to the contract
	AlastriaContractsFilterer   // Log filterer for contract events
}

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

func NewAlastriaContracts

func NewAlastriaContracts(address common.Address, backend bind.ContractBackend) (*AlastriaContracts, error)

NewAlastriaContracts creates a new instance of AlastriaContracts, bound to a specific deployed contract.

type AlastriaContractsCaller

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

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

func NewAlastriaContractsCaller

func NewAlastriaContractsCaller(address common.Address, caller bind.ContractCaller) (*AlastriaContractsCaller, error)

NewAlastriaContractsCaller creates a new read-only instance of AlastriaContracts, bound to a specific deployed contract.

func (*AlastriaContractsCaller) GetCredentialStatus

func (_AlastriaContracts *AlastriaContractsCaller) GetCredentialStatus(opts *bind.CallOpts, subjectStatus uint8, issuerStatus uint8) (uint8, error)

GetCredentialStatus is a free data retrieval call binding the contract method 0x5faf7d94.

Solidity: function getCredentialStatus(uint8 subjectStatus, uint8 issuerStatus) pure returns(uint8)

func (*AlastriaContractsCaller) GetIssuerCredentialStatus

func (_AlastriaContracts *AlastriaContractsCaller) GetIssuerCredentialStatus(opts *bind.CallOpts, issuer common.Address, issuerCredentialHash [32]byte) (struct {
	Exists bool
	Status uint8
}, error)

GetIssuerCredentialStatus is a free data retrieval call binding the contract method 0xaeda232a.

Solidity: function getIssuerCredentialStatus(address issuer, bytes32 issuerCredentialHash) view returns(bool exists, uint8 status)

func (*AlastriaContractsCaller) GetSubjectCredentialList

func (_AlastriaContracts *AlastriaContractsCaller) GetSubjectCredentialList(opts *bind.CallOpts, subject common.Address) (*big.Int, [][32]byte, error)

GetSubjectCredentialList is a free data retrieval call binding the contract method 0x4510b1cb.

Solidity: function getSubjectCredentialList(address subject) view returns(uint256, bytes32[])

func (*AlastriaContractsCaller) GetSubjectCredentialStatus

func (_AlastriaContracts *AlastriaContractsCaller) GetSubjectCredentialStatus(opts *bind.CallOpts, subject common.Address, subjectCredentialHash [32]byte) (struct {
	Exists bool
	Status uint8
}, error)

GetSubjectCredentialStatus is a free data retrieval call binding the contract method 0x55d64732.

Solidity: function getSubjectCredentialStatus(address subject, bytes32 subjectCredentialHash) view returns(bool exists, uint8 status)

func (*AlastriaContractsCaller) IssuerCredentialList

func (_AlastriaContracts *AlastriaContractsCaller) IssuerCredentialList(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) ([32]byte, error)

IssuerCredentialList is a free data retrieval call binding the contract method 0x41e61ff8.

Solidity: function issuerCredentialList(address , uint256 ) view returns(bytes32)

func (*AlastriaContractsCaller) PreviousPublishedVersion

func (_AlastriaContracts *AlastriaContractsCaller) PreviousPublishedVersion(opts *bind.CallOpts) (common.Address, error)

PreviousPublishedVersion is a free data retrieval call binding the contract method 0x6104464f.

Solidity: function previousPublishedVersion() view returns(address)

func (*AlastriaContractsCaller) SubjectCredentialList

func (_AlastriaContracts *AlastriaContractsCaller) SubjectCredentialList(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) ([32]byte, error)

SubjectCredentialList is a free data retrieval call binding the contract method 0xc43f6b36.

Solidity: function subjectCredentialList(address , uint256 ) view returns(bytes32)

func (*AlastriaContractsCaller) SubjectCredentialRegistry

func (_AlastriaContracts *AlastriaContractsCaller) SubjectCredentialRegistry(opts *bind.CallOpts, arg0 common.Address, arg1 [32]byte) (struct {
	Exists bool
	Status uint8
	URI    string
}, error)

SubjectCredentialRegistry is a free data retrieval call binding the contract method 0x6792223d.

Solidity: function subjectCredentialRegistry(address , bytes32 ) view returns(bool exists, uint8 status, string URI)

func (*AlastriaContractsCaller) Version

func (_AlastriaContracts *AlastriaContractsCaller) Version(opts *bind.CallOpts) (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(int256)

type AlastriaContractsCallerRaw

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

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

func (*AlastriaContractsCallerRaw) Call

func (_AlastriaContracts *AlastriaContractsCallerRaw) 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 AlastriaContractsCallerSession

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

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

func (*AlastriaContractsCallerSession) GetCredentialStatus

func (_AlastriaContracts *AlastriaContractsCallerSession) GetCredentialStatus(subjectStatus uint8, issuerStatus uint8) (uint8, error)

GetCredentialStatus is a free data retrieval call binding the contract method 0x5faf7d94.

Solidity: function getCredentialStatus(uint8 subjectStatus, uint8 issuerStatus) pure returns(uint8)

func (*AlastriaContractsCallerSession) GetIssuerCredentialStatus

func (_AlastriaContracts *AlastriaContractsCallerSession) GetIssuerCredentialStatus(issuer common.Address, issuerCredentialHash [32]byte) (struct {
	Exists bool
	Status uint8
}, error)

GetIssuerCredentialStatus is a free data retrieval call binding the contract method 0xaeda232a.

Solidity: function getIssuerCredentialStatus(address issuer, bytes32 issuerCredentialHash) view returns(bool exists, uint8 status)

func (*AlastriaContractsCallerSession) GetSubjectCredentialList

func (_AlastriaContracts *AlastriaContractsCallerSession) GetSubjectCredentialList(subject common.Address) (*big.Int, [][32]byte, error)

GetSubjectCredentialList is a free data retrieval call binding the contract method 0x4510b1cb.

Solidity: function getSubjectCredentialList(address subject) view returns(uint256, bytes32[])

func (*AlastriaContractsCallerSession) GetSubjectCredentialStatus

func (_AlastriaContracts *AlastriaContractsCallerSession) GetSubjectCredentialStatus(subject common.Address, subjectCredentialHash [32]byte) (struct {
	Exists bool
	Status uint8
}, error)

GetSubjectCredentialStatus is a free data retrieval call binding the contract method 0x55d64732.

Solidity: function getSubjectCredentialStatus(address subject, bytes32 subjectCredentialHash) view returns(bool exists, uint8 status)

func (*AlastriaContractsCallerSession) IssuerCredentialList

func (_AlastriaContracts *AlastriaContractsCallerSession) IssuerCredentialList(arg0 common.Address, arg1 *big.Int) ([32]byte, error)

IssuerCredentialList is a free data retrieval call binding the contract method 0x41e61ff8.

Solidity: function issuerCredentialList(address , uint256 ) view returns(bytes32)

func (*AlastriaContractsCallerSession) PreviousPublishedVersion

func (_AlastriaContracts *AlastriaContractsCallerSession) PreviousPublishedVersion() (common.Address, error)

PreviousPublishedVersion is a free data retrieval call binding the contract method 0x6104464f.

Solidity: function previousPublishedVersion() view returns(address)

func (*AlastriaContractsCallerSession) SubjectCredentialList

func (_AlastriaContracts *AlastriaContractsCallerSession) SubjectCredentialList(arg0 common.Address, arg1 *big.Int) ([32]byte, error)

SubjectCredentialList is a free data retrieval call binding the contract method 0xc43f6b36.

Solidity: function subjectCredentialList(address , uint256 ) view returns(bytes32)

func (*AlastriaContractsCallerSession) SubjectCredentialRegistry

func (_AlastriaContracts *AlastriaContractsCallerSession) SubjectCredentialRegistry(arg0 common.Address, arg1 [32]byte) (struct {
	Exists bool
	Status uint8
	URI    string
}, error)

SubjectCredentialRegistry is a free data retrieval call binding the contract method 0x6792223d.

Solidity: function subjectCredentialRegistry(address , bytes32 ) view returns(bool exists, uint8 status, string URI)

func (*AlastriaContractsCallerSession) Version

func (_AlastriaContracts *AlastriaContractsCallerSession) Version() (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(int256)

type AlastriaContractsFilterer

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

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

func NewAlastriaContractsFilterer

func NewAlastriaContractsFilterer(address common.Address, filterer bind.ContractFilterer) (*AlastriaContractsFilterer, error)

NewAlastriaContractsFilterer creates a new log filterer instance of AlastriaContracts, bound to a specific deployed contract.

func (*AlastriaContractsFilterer) FilterIssuerCredentialRevoked

func (_AlastriaContracts *AlastriaContractsFilterer) FilterIssuerCredentialRevoked(opts *bind.FilterOpts) (*AlastriaContractsIssuerCredentialRevokedIterator, error)

FilterIssuerCredentialRevoked is a free log retrieval operation binding the contract event 0x0bc6eed115cb12ced57d22ce88a4be72a3b052cf01e5a1947a1f901f8ff26b1a.

Solidity: event IssuerCredentialRevoked(bytes32 issuerCredentialHash, uint8 status)

func (*AlastriaContractsFilterer) FilterSubjectCredentialDeleted

func (_AlastriaContracts *AlastriaContractsFilterer) FilterSubjectCredentialDeleted(opts *bind.FilterOpts) (*AlastriaContractsSubjectCredentialDeletedIterator, error)

FilterSubjectCredentialDeleted is a free log retrieval operation binding the contract event 0xc83f14fb22d6787113e4b492b1b27daac6284e516a3c61d454359fd426d04c29.

Solidity: event SubjectCredentialDeleted(bytes32 subjectCredentialHash)

func (*AlastriaContractsFilterer) ParseIssuerCredentialRevoked

func (_AlastriaContracts *AlastriaContractsFilterer) ParseIssuerCredentialRevoked(log types.Log) (*AlastriaContractsIssuerCredentialRevoked, error)

ParseIssuerCredentialRevoked is a log parse operation binding the contract event 0x0bc6eed115cb12ced57d22ce88a4be72a3b052cf01e5a1947a1f901f8ff26b1a.

Solidity: event IssuerCredentialRevoked(bytes32 issuerCredentialHash, uint8 status)

func (*AlastriaContractsFilterer) ParseSubjectCredentialDeleted

func (_AlastriaContracts *AlastriaContractsFilterer) ParseSubjectCredentialDeleted(log types.Log) (*AlastriaContractsSubjectCredentialDeleted, error)

ParseSubjectCredentialDeleted is a log parse operation binding the contract event 0xc83f14fb22d6787113e4b492b1b27daac6284e516a3c61d454359fd426d04c29.

Solidity: event SubjectCredentialDeleted(bytes32 subjectCredentialHash)

func (*AlastriaContractsFilterer) WatchIssuerCredentialRevoked

func (_AlastriaContracts *AlastriaContractsFilterer) WatchIssuerCredentialRevoked(opts *bind.WatchOpts, sink chan<- *AlastriaContractsIssuerCredentialRevoked) (event.Subscription, error)

WatchIssuerCredentialRevoked is a free log subscription operation binding the contract event 0x0bc6eed115cb12ced57d22ce88a4be72a3b052cf01e5a1947a1f901f8ff26b1a.

Solidity: event IssuerCredentialRevoked(bytes32 issuerCredentialHash, uint8 status)

func (*AlastriaContractsFilterer) WatchSubjectCredentialDeleted

func (_AlastriaContracts *AlastriaContractsFilterer) WatchSubjectCredentialDeleted(opts *bind.WatchOpts, sink chan<- *AlastriaContractsSubjectCredentialDeleted) (event.Subscription, error)

WatchSubjectCredentialDeleted is a free log subscription operation binding the contract event 0xc83f14fb22d6787113e4b492b1b27daac6284e516a3c61d454359fd426d04c29.

Solidity: event SubjectCredentialDeleted(bytes32 subjectCredentialHash)

type AlastriaContractsIssuerCredentialRevoked

type AlastriaContractsIssuerCredentialRevoked struct {
	IssuerCredentialHash [32]byte
	Status               uint8
	Raw                  types.Log // Blockchain specific contextual infos
}

AlastriaContractsIssuerCredentialRevoked represents a IssuerCredentialRevoked event raised by the AlastriaContracts contract.

type AlastriaContractsIssuerCredentialRevokedIterator

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

AlastriaContractsIssuerCredentialRevokedIterator is returned from FilterIssuerCredentialRevoked and is used to iterate over the raw logs and unpacked data for IssuerCredentialRevoked events raised by the AlastriaContracts contract.

func (*AlastriaContractsIssuerCredentialRevokedIterator) Close

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

func (*AlastriaContractsIssuerCredentialRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AlastriaContractsIssuerCredentialRevokedIterator) 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 AlastriaContractsRaw

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

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

func (*AlastriaContractsRaw) Call

func (_AlastriaContracts *AlastriaContractsRaw) 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 (*AlastriaContractsRaw) Transact

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

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

func (*AlastriaContractsRaw) Transfer

func (_AlastriaContracts *AlastriaContractsRaw) 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 AlastriaContractsSession

type AlastriaContractsSession struct {
	Contract     *AlastriaContracts // 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
}

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

func (*AlastriaContractsSession) AddIssuerCredential

func (_AlastriaContracts *AlastriaContractsSession) AddIssuerCredential(issuerCredentialHash [32]byte) (*types.Transaction, error)

AddIssuerCredential is a paid mutator transaction binding the contract method 0xdc11e39b.

Solidity: function addIssuerCredential(bytes32 issuerCredentialHash) returns()

func (*AlastriaContractsSession) AddSubjectCredential

func (_AlastriaContracts *AlastriaContractsSession) AddSubjectCredential(subjectCredentialHash [32]byte, URI string) (*types.Transaction, error)

AddSubjectCredential is a paid mutator transaction binding the contract method 0xe04ce02c.

Solidity: function addSubjectCredential(bytes32 subjectCredentialHash, string URI) returns()

func (*AlastriaContractsSession) DeleteSubjectCredential

func (_AlastriaContracts *AlastriaContractsSession) DeleteSubjectCredential(subjectCredentialHash [32]byte) (*types.Transaction, error)

DeleteSubjectCredential is a paid mutator transaction binding the contract method 0xdff9a1a9.

Solidity: function deleteSubjectCredential(bytes32 subjectCredentialHash) returns()

func (*AlastriaContractsSession) GetCredentialStatus

func (_AlastriaContracts *AlastriaContractsSession) GetCredentialStatus(subjectStatus uint8, issuerStatus uint8) (uint8, error)

GetCredentialStatus is a free data retrieval call binding the contract method 0x5faf7d94.

Solidity: function getCredentialStatus(uint8 subjectStatus, uint8 issuerStatus) pure returns(uint8)

func (*AlastriaContractsSession) GetIssuerCredentialStatus

func (_AlastriaContracts *AlastriaContractsSession) GetIssuerCredentialStatus(issuer common.Address, issuerCredentialHash [32]byte) (struct {
	Exists bool
	Status uint8
}, error)

GetIssuerCredentialStatus is a free data retrieval call binding the contract method 0xaeda232a.

Solidity: function getIssuerCredentialStatus(address issuer, bytes32 issuerCredentialHash) view returns(bool exists, uint8 status)

func (*AlastriaContractsSession) GetSubjectCredentialList

func (_AlastriaContracts *AlastriaContractsSession) GetSubjectCredentialList(subject common.Address) (*big.Int, [][32]byte, error)

GetSubjectCredentialList is a free data retrieval call binding the contract method 0x4510b1cb.

Solidity: function getSubjectCredentialList(address subject) view returns(uint256, bytes32[])

func (*AlastriaContractsSession) GetSubjectCredentialStatus

func (_AlastriaContracts *AlastriaContractsSession) GetSubjectCredentialStatus(subject common.Address, subjectCredentialHash [32]byte) (struct {
	Exists bool
	Status uint8
}, error)

GetSubjectCredentialStatus is a free data retrieval call binding the contract method 0x55d64732.

Solidity: function getSubjectCredentialStatus(address subject, bytes32 subjectCredentialHash) view returns(bool exists, uint8 status)

func (*AlastriaContractsSession) Initialize

func (_AlastriaContracts *AlastriaContractsSession) Initialize(_previousPublishedVersion common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _previousPublishedVersion) returns()

func (*AlastriaContractsSession) IssuerCredentialList

func (_AlastriaContracts *AlastriaContractsSession) IssuerCredentialList(arg0 common.Address, arg1 *big.Int) ([32]byte, error)

IssuerCredentialList is a free data retrieval call binding the contract method 0x41e61ff8.

Solidity: function issuerCredentialList(address , uint256 ) view returns(bytes32)

func (*AlastriaContractsSession) PreviousPublishedVersion

func (_AlastriaContracts *AlastriaContractsSession) PreviousPublishedVersion() (common.Address, error)

PreviousPublishedVersion is a free data retrieval call binding the contract method 0x6104464f.

Solidity: function previousPublishedVersion() view returns(address)

func (*AlastriaContractsSession) SubjectCredentialList

func (_AlastriaContracts *AlastriaContractsSession) SubjectCredentialList(arg0 common.Address, arg1 *big.Int) ([32]byte, error)

SubjectCredentialList is a free data retrieval call binding the contract method 0xc43f6b36.

Solidity: function subjectCredentialList(address , uint256 ) view returns(bytes32)

func (*AlastriaContractsSession) SubjectCredentialRegistry

func (_AlastriaContracts *AlastriaContractsSession) SubjectCredentialRegistry(arg0 common.Address, arg1 [32]byte) (struct {
	Exists bool
	Status uint8
	URI    string
}, error)

SubjectCredentialRegistry is a free data retrieval call binding the contract method 0x6792223d.

Solidity: function subjectCredentialRegistry(address , bytes32 ) view returns(bool exists, uint8 status, string URI)

func (*AlastriaContractsSession) UpdateCredentialStatus

func (_AlastriaContracts *AlastriaContractsSession) UpdateCredentialStatus(issuerCredentialHash [32]byte, status uint8) (*types.Transaction, error)

UpdateCredentialStatus is a paid mutator transaction binding the contract method 0xdd517e10.

Solidity: function updateCredentialStatus(bytes32 issuerCredentialHash, uint8 status) returns()

func (*AlastriaContractsSession) Version

func (_AlastriaContracts *AlastriaContractsSession) Version() (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(int256)

type AlastriaContractsSubjectCredentialDeleted

type AlastriaContractsSubjectCredentialDeleted struct {
	SubjectCredentialHash [32]byte
	Raw                   types.Log // Blockchain specific contextual infos
}

AlastriaContractsSubjectCredentialDeleted represents a SubjectCredentialDeleted event raised by the AlastriaContracts contract.

type AlastriaContractsSubjectCredentialDeletedIterator

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

AlastriaContractsSubjectCredentialDeletedIterator is returned from FilterSubjectCredentialDeleted and is used to iterate over the raw logs and unpacked data for SubjectCredentialDeleted events raised by the AlastriaContracts contract.

func (*AlastriaContractsSubjectCredentialDeletedIterator) Close

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

func (*AlastriaContractsSubjectCredentialDeletedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*AlastriaContractsSubjectCredentialDeletedIterator) 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 AlastriaContractsTransactor

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

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

func NewAlastriaContractsTransactor

func NewAlastriaContractsTransactor(address common.Address, transactor bind.ContractTransactor) (*AlastriaContractsTransactor, error)

NewAlastriaContractsTransactor creates a new write-only instance of AlastriaContracts, bound to a specific deployed contract.

func (*AlastriaContractsTransactor) AddIssuerCredential

func (_AlastriaContracts *AlastriaContractsTransactor) AddIssuerCredential(opts *bind.TransactOpts, issuerCredentialHash [32]byte) (*types.Transaction, error)

AddIssuerCredential is a paid mutator transaction binding the contract method 0xdc11e39b.

Solidity: function addIssuerCredential(bytes32 issuerCredentialHash) returns()

func (*AlastriaContractsTransactor) AddSubjectCredential

func (_AlastriaContracts *AlastriaContractsTransactor) AddSubjectCredential(opts *bind.TransactOpts, subjectCredentialHash [32]byte, URI string) (*types.Transaction, error)

AddSubjectCredential is a paid mutator transaction binding the contract method 0xe04ce02c.

Solidity: function addSubjectCredential(bytes32 subjectCredentialHash, string URI) returns()

func (*AlastriaContractsTransactor) DeleteSubjectCredential

func (_AlastriaContracts *AlastriaContractsTransactor) DeleteSubjectCredential(opts *bind.TransactOpts, subjectCredentialHash [32]byte) (*types.Transaction, error)

DeleteSubjectCredential is a paid mutator transaction binding the contract method 0xdff9a1a9.

Solidity: function deleteSubjectCredential(bytes32 subjectCredentialHash) returns()

func (*AlastriaContractsTransactor) Initialize

func (_AlastriaContracts *AlastriaContractsTransactor) Initialize(opts *bind.TransactOpts, _previousPublishedVersion common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _previousPublishedVersion) returns()

func (*AlastriaContractsTransactor) UpdateCredentialStatus

func (_AlastriaContracts *AlastriaContractsTransactor) UpdateCredentialStatus(opts *bind.TransactOpts, issuerCredentialHash [32]byte, status uint8) (*types.Transaction, error)

UpdateCredentialStatus is a paid mutator transaction binding the contract method 0xdd517e10.

Solidity: function updateCredentialStatus(bytes32 issuerCredentialHash, uint8 status) returns()

type AlastriaContractsTransactorRaw

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

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

func (*AlastriaContractsTransactorRaw) Transact

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

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

func (*AlastriaContractsTransactorRaw) Transfer

func (_AlastriaContracts *AlastriaContractsTransactorRaw) 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 AlastriaContractsTransactorSession

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

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

func (*AlastriaContractsTransactorSession) AddIssuerCredential

func (_AlastriaContracts *AlastriaContractsTransactorSession) AddIssuerCredential(issuerCredentialHash [32]byte) (*types.Transaction, error)

AddIssuerCredential is a paid mutator transaction binding the contract method 0xdc11e39b.

Solidity: function addIssuerCredential(bytes32 issuerCredentialHash) returns()

func (*AlastriaContractsTransactorSession) AddSubjectCredential

func (_AlastriaContracts *AlastriaContractsTransactorSession) AddSubjectCredential(subjectCredentialHash [32]byte, URI string) (*types.Transaction, error)

AddSubjectCredential is a paid mutator transaction binding the contract method 0xe04ce02c.

Solidity: function addSubjectCredential(bytes32 subjectCredentialHash, string URI) returns()

func (*AlastriaContractsTransactorSession) DeleteSubjectCredential

func (_AlastriaContracts *AlastriaContractsTransactorSession) DeleteSubjectCredential(subjectCredentialHash [32]byte) (*types.Transaction, error)

DeleteSubjectCredential is a paid mutator transaction binding the contract method 0xdff9a1a9.

Solidity: function deleteSubjectCredential(bytes32 subjectCredentialHash) returns()

func (*AlastriaContractsTransactorSession) Initialize

func (_AlastriaContracts *AlastriaContractsTransactorSession) Initialize(_previousPublishedVersion common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.

Solidity: function initialize(address _previousPublishedVersion) returns()

func (*AlastriaContractsTransactorSession) UpdateCredentialStatus

func (_AlastriaContracts *AlastriaContractsTransactorSession) UpdateCredentialStatus(issuerCredentialHash [32]byte, status uint8) (*types.Transaction, error)

UpdateCredentialStatus is a paid mutator transaction binding the contract method 0xdd517e10.

Solidity: function updateCredentialStatus(bytes32 issuerCredentialHash, uint8 status) returns()

Jump to

Keyboard shortcuts

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