accessStore

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessStoreABI = AccessStoreMetaData.ABI

AccessStoreABI is the input ABI used to generate the binding from. Deprecated: Use AccessStoreMetaData.ABI instead.

View Source
var AccessStoreMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"allowedChange\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"accessID\",\"type\":\"bytes32\"}],\"name\":\"getAccess\",\"outputs\":[{\"components\":[{\"internalType\":\"enumIAccessStore.AccessKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"idHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"idEncr\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"keyEncr\",\"type\":\"bytes\"},{\"internalType\":\"enumIAccessStore.AccessLevel\",\"name\":\"level\",\"type\":\"uint8\"}],\"internalType\":\"structIAccessStore.Access[]\",\"name\":\"\",\"type\":\"tuple[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"accessID\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"accessIdHash\",\"type\":\"bytes32\"}],\"name\":\"getAccessByIdHash\",\"outputs\":[{\"components\":[{\"internalType\":\"enumIAccessStore.AccessKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"idHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"idEncr\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"keyEncr\",\"type\":\"bytes\"},{\"internalType\":\"enumIAccessStore.AccessLevel\",\"name\":\"level\",\"type\":\"uint8\"}],\"internalType\":\"structIAccessStore.Access\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"accessID\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"enumIAccessStore.AccessKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"idHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"idEncr\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"keyEncr\",\"type\":\"bytes\"},{\"internalType\":\"enumIAccessStore.AccessLevel\",\"name\":\"level\",\"type\":\"uint8\"}],\"internalType\":\"structIAccessStore.Access\",\"name\":\"a\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"setAccess\",\"outputs\":[{\"internalType\":\"enumIAccessStore.AccessAction\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowed\",\"type\":\"bool\"}],\"name\":\"setAllowed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_users\",\"type\":\"address\"}],\"name\":\"setUsersContractAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"userIDHash\",\"type\":\"bytes32\"},{\"internalType\":\"enumIAccessStore.AccessKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"idHash\",\"type\":\"bytes32\"}],\"name\":\"userAccess\",\"outputs\":[{\"components\":[{\"internalType\":\"enumIAccessStore.AccessKind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"idHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"idEncr\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"keyEncr\",\"type\":\"bytes\"},{\"internalType\":\"enumIAccessStore.AccessLevel\",\"name\":\"level\",\"type\":\"uint8\"}],\"internalType\":\"structIAccessStore.Access\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"users\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

AccessStoreMetaData contains all meta data concerning the AccessStore contract.

Functions

This section is empty.

Types

type AccessStore

type AccessStore struct {
	AccessStoreCaller     // Read-only binding to the contract
	AccessStoreTransactor // Write-only binding to the contract
	AccessStoreFilterer   // Log filterer for contract events
}

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

func NewAccessStore

func NewAccessStore(address common.Address, backend bind.ContractBackend) (*AccessStore, error)

NewAccessStore creates a new instance of AccessStore, bound to a specific deployed contract.

type AccessStoreCaller

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

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

func NewAccessStoreCaller

func NewAccessStoreCaller(address common.Address, caller bind.ContractCaller) (*AccessStoreCaller, error)

NewAccessStoreCaller creates a new read-only instance of AccessStore, bound to a specific deployed contract.

func (*AccessStoreCaller) AllowedChange

func (_AccessStore *AccessStoreCaller) AllowedChange(opts *bind.CallOpts, arg0 common.Address) (bool, error)

AllowedChange is a free data retrieval call binding the contract method 0xe9b5b29a.

Solidity: function allowedChange(address ) view returns(bool)

func (*AccessStoreCaller) GetAccess

func (_AccessStore *AccessStoreCaller) GetAccess(opts *bind.CallOpts, accessID [32]byte) ([]IAccessStoreAccess, error)

GetAccess is a free data retrieval call binding the contract method 0x3347fcbe.

Solidity: function getAccess(bytes32 accessID) view returns((uint8,bytes32,bytes,bytes,uint8)[])

func (*AccessStoreCaller) GetAccessByIdHash

func (_AccessStore *AccessStoreCaller) GetAccessByIdHash(opts *bind.CallOpts, accessID [32]byte, accessIdHash [32]byte) (IAccessStoreAccess, error)

GetAccessByIdHash is a free data retrieval call binding the contract method 0x9ae2da76.

Solidity: function getAccessByIdHash(bytes32 accessID, bytes32 accessIdHash) view returns((uint8,bytes32,bytes,bytes,uint8))

func (*AccessStoreCaller) UserAccess

func (_AccessStore *AccessStoreCaller) UserAccess(opts *bind.CallOpts, userIDHash [32]byte, kind uint8, idHash [32]byte) (IAccessStoreAccess, error)

UserAccess is a free data retrieval call binding the contract method 0xa93f7898.

Solidity: function userAccess(bytes32 userIDHash, uint8 kind, bytes32 idHash) view returns((uint8,bytes32,bytes,bytes,uint8))

func (*AccessStoreCaller) Users

func (_AccessStore *AccessStoreCaller) Users(opts *bind.CallOpts) (common.Address, error)

Users is a free data retrieval call binding the contract method 0xf2020275.

Solidity: function users() view returns(address)

type AccessStoreCallerRaw

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

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

func (*AccessStoreCallerRaw) Call

func (_AccessStore *AccessStoreCallerRaw) 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 AccessStoreCallerSession

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

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

func (*AccessStoreCallerSession) AllowedChange

func (_AccessStore *AccessStoreCallerSession) AllowedChange(arg0 common.Address) (bool, error)

AllowedChange is a free data retrieval call binding the contract method 0xe9b5b29a.

Solidity: function allowedChange(address ) view returns(bool)

func (*AccessStoreCallerSession) GetAccess

func (_AccessStore *AccessStoreCallerSession) GetAccess(accessID [32]byte) ([]IAccessStoreAccess, error)

GetAccess is a free data retrieval call binding the contract method 0x3347fcbe.

Solidity: function getAccess(bytes32 accessID) view returns((uint8,bytes32,bytes,bytes,uint8)[])

func (*AccessStoreCallerSession) GetAccessByIdHash

func (_AccessStore *AccessStoreCallerSession) GetAccessByIdHash(accessID [32]byte, accessIdHash [32]byte) (IAccessStoreAccess, error)

GetAccessByIdHash is a free data retrieval call binding the contract method 0x9ae2da76.

Solidity: function getAccessByIdHash(bytes32 accessID, bytes32 accessIdHash) view returns((uint8,bytes32,bytes,bytes,uint8))

func (*AccessStoreCallerSession) UserAccess

func (_AccessStore *AccessStoreCallerSession) UserAccess(userIDHash [32]byte, kind uint8, idHash [32]byte) (IAccessStoreAccess, error)

UserAccess is a free data retrieval call binding the contract method 0xa93f7898.

Solidity: function userAccess(bytes32 userIDHash, uint8 kind, bytes32 idHash) view returns((uint8,bytes32,bytes,bytes,uint8))

func (*AccessStoreCallerSession) Users

func (_AccessStore *AccessStoreCallerSession) Users() (common.Address, error)

Users is a free data retrieval call binding the contract method 0xf2020275.

Solidity: function users() view returns(address)

type AccessStoreFilterer

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

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

func NewAccessStoreFilterer

func NewAccessStoreFilterer(address common.Address, filterer bind.ContractFilterer) (*AccessStoreFilterer, error)

NewAccessStoreFilterer creates a new log filterer instance of AccessStore, bound to a specific deployed contract.

type AccessStoreRaw

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

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

func (*AccessStoreRaw) Call

func (_AccessStore *AccessStoreRaw) 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 (*AccessStoreRaw) Transact

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

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

func (*AccessStoreRaw) Transfer

func (_AccessStore *AccessStoreRaw) 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 AccessStoreSession

type AccessStoreSession struct {
	Contract     *AccessStore      // 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
}

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

func (*AccessStoreSession) AllowedChange

func (_AccessStore *AccessStoreSession) AllowedChange(arg0 common.Address) (bool, error)

AllowedChange is a free data retrieval call binding the contract method 0xe9b5b29a.

Solidity: function allowedChange(address ) view returns(bool)

func (*AccessStoreSession) GetAccess

func (_AccessStore *AccessStoreSession) GetAccess(accessID [32]byte) ([]IAccessStoreAccess, error)

GetAccess is a free data retrieval call binding the contract method 0x3347fcbe.

Solidity: function getAccess(bytes32 accessID) view returns((uint8,bytes32,bytes,bytes,uint8)[])

func (*AccessStoreSession) GetAccessByIdHash

func (_AccessStore *AccessStoreSession) GetAccessByIdHash(accessID [32]byte, accessIdHash [32]byte) (IAccessStoreAccess, error)

GetAccessByIdHash is a free data retrieval call binding the contract method 0x9ae2da76.

Solidity: function getAccessByIdHash(bytes32 accessID, bytes32 accessIdHash) view returns((uint8,bytes32,bytes,bytes,uint8))

func (*AccessStoreSession) SetAccess

func (_AccessStore *AccessStoreSession) SetAccess(accessID [32]byte, a IAccessStoreAccess, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error)

SetAccess is a paid mutator transaction binding the contract method 0x04847979.

Solidity: function setAccess(bytes32 accessID, (uint8,bytes32,bytes,bytes,uint8) a, address signer, uint256 deadline, bytes signature) returns(uint8)

func (*AccessStoreSession) SetAllowed

func (_AccessStore *AccessStoreSession) SetAllowed(addr common.Address, allowed bool) (*types.Transaction, error)

SetAllowed is a paid mutator transaction binding the contract method 0x4697f05d.

Solidity: function setAllowed(address addr, bool allowed) returns()

func (*AccessStoreSession) SetUsersContractAddress

func (_AccessStore *AccessStoreSession) SetUsersContractAddress(_users common.Address) (*types.Transaction, error)

SetUsersContractAddress is a paid mutator transaction binding the contract method 0xdbfadfe2.

Solidity: function setUsersContractAddress(address _users) returns()

func (*AccessStoreSession) TransferOwnership

func (_AccessStore *AccessStoreSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*AccessStoreSession) UserAccess

func (_AccessStore *AccessStoreSession) UserAccess(userIDHash [32]byte, kind uint8, idHash [32]byte) (IAccessStoreAccess, error)

UserAccess is a free data retrieval call binding the contract method 0xa93f7898.

Solidity: function userAccess(bytes32 userIDHash, uint8 kind, bytes32 idHash) view returns((uint8,bytes32,bytes,bytes,uint8))

func (*AccessStoreSession) Users

func (_AccessStore *AccessStoreSession) Users() (common.Address, error)

Users is a free data retrieval call binding the contract method 0xf2020275.

Solidity: function users() view returns(address)

type AccessStoreTransactor

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

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

func NewAccessStoreTransactor

func NewAccessStoreTransactor(address common.Address, transactor bind.ContractTransactor) (*AccessStoreTransactor, error)

NewAccessStoreTransactor creates a new write-only instance of AccessStore, bound to a specific deployed contract.

func (*AccessStoreTransactor) SetAccess

func (_AccessStore *AccessStoreTransactor) SetAccess(opts *bind.TransactOpts, accessID [32]byte, a IAccessStoreAccess, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error)

SetAccess is a paid mutator transaction binding the contract method 0x04847979.

Solidity: function setAccess(bytes32 accessID, (uint8,bytes32,bytes,bytes,uint8) a, address signer, uint256 deadline, bytes signature) returns(uint8)

func (*AccessStoreTransactor) SetAllowed

func (_AccessStore *AccessStoreTransactor) SetAllowed(opts *bind.TransactOpts, addr common.Address, allowed bool) (*types.Transaction, error)

SetAllowed is a paid mutator transaction binding the contract method 0x4697f05d.

Solidity: function setAllowed(address addr, bool allowed) returns()

func (*AccessStoreTransactor) SetUsersContractAddress

func (_AccessStore *AccessStoreTransactor) SetUsersContractAddress(opts *bind.TransactOpts, _users common.Address) (*types.Transaction, error)

SetUsersContractAddress is a paid mutator transaction binding the contract method 0xdbfadfe2.

Solidity: function setUsersContractAddress(address _users) returns()

func (*AccessStoreTransactor) TransferOwnership

func (_AccessStore *AccessStoreTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type AccessStoreTransactorRaw

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

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

func (*AccessStoreTransactorRaw) Transact

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

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

func (*AccessStoreTransactorRaw) Transfer

func (_AccessStore *AccessStoreTransactorRaw) 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 AccessStoreTransactorSession

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

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

func (*AccessStoreTransactorSession) SetAccess

func (_AccessStore *AccessStoreTransactorSession) SetAccess(accessID [32]byte, a IAccessStoreAccess, signer common.Address, deadline *big.Int, signature []byte) (*types.Transaction, error)

SetAccess is a paid mutator transaction binding the contract method 0x04847979.

Solidity: function setAccess(bytes32 accessID, (uint8,bytes32,bytes,bytes,uint8) a, address signer, uint256 deadline, bytes signature) returns(uint8)

func (*AccessStoreTransactorSession) SetAllowed

func (_AccessStore *AccessStoreTransactorSession) SetAllowed(addr common.Address, allowed bool) (*types.Transaction, error)

SetAllowed is a paid mutator transaction binding the contract method 0x4697f05d.

Solidity: function setAllowed(address addr, bool allowed) returns()

func (*AccessStoreTransactorSession) SetUsersContractAddress

func (_AccessStore *AccessStoreTransactorSession) SetUsersContractAddress(_users common.Address) (*types.Transaction, error)

SetUsersContractAddress is a paid mutator transaction binding the contract method 0xdbfadfe2.

Solidity: function setUsersContractAddress(address _users) returns()

func (*AccessStoreTransactorSession) TransferOwnership

func (_AccessStore *AccessStoreTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

type IAccessStoreAccess

type IAccessStoreAccess struct {
	Kind    uint8
	IdHash  [32]byte
	IdEncr  []byte
	KeyEncr []byte
	Level   uint8
}

IAccessStoreAccess is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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