ethereum

package
v0.0.0-...-e8a84d0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContractABI = ContractMetaData.ABI

ContractABI is the input ABI used to generate the binding from. Deprecated: Use ContractMetaData.ABI instead.

View Source
var ContractBin = ContractMetaData.Bin

ContractBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ContractMetaData.Bin instead.

View Source
var ContractMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"aftr\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"before\",\"type\":\"uint256\"}],\"name\":\"IncorrectRange\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"PubAlreadyExists\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"PubDoesNotExist\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"cid\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"pub\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"CIDAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"string\",\"name\":\"pub\",\"type\":\"string\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"PubCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PUB_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"pub\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"cid\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"addCID\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"pub\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"epoch\",\"type\":\"uint256\"}],\"name\":\"cidsAtTimestamp\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"pub\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"aftr\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"before\",\"type\":\"uint256\"}],\"name\":\"cidsInRange\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"pub\",\"type\":\"string\"}],\"name\":\"createPub\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"pubsOfOwner\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x6080806040523461009d573360009081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604081205460ff161561004f575b5061127b90816100a38239f35b808052806020526040812033825260205260408120600160ff19825416179055339033907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8180a438610042565b600080fdfe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a7146100e7578063248a9ca3146100e257806326294a77146100dd5780632f2ff15d146100d857806336568abe146100d357806352b62b3e146100ce578063822ba40b146100c957806391d14854146100c4578063a217fddf146100bf578063d41bc3ae146100ba578063d547741f146100b5578063de665dbc146100b05763fd936858146100ab57600080fd5b610924565b6107f8565b6107b9565b610695565b610679565b610627565b6105ec565b6104da565b610418565b610354565b610247565b610142565b3461013d57602036600319011261013d5760043563ffffffff60e01b811680910361013d57602090637965db0b60e01b811490811561012c575b506040519015158152f35b6301ffc9a760e01b14905038610121565b600080fd5b3461013d57602036600319011261013d5760043560005260006020526020600160406000200154604051908152f35b600435906001600160a01b038216820361013d57565b602435906001600160a01b038216820361013d57565b60005b8381106101b05750506000910152565b81810151838201526020016101a0565b906020916101d98151809281855285808601910161019d565b601f01601f1916010190565b602080820190808352835180925260408301928160408460051b8301019501936000915b8483106102195750505050505090565b9091929394958480610237600193603f198682030187528a516101c0565b9801930193019194939290610209565b3461013d5760208060031936011261013d576001600160a01b03610269610171565b16600090815260028252604080822091825490610285826110f2565b9361029284519586610cae565b82855281528481209481908086015b8483106102b9578551806102b589826101e5565b0390f35b85518285928a54926102ca84610f41565b8082526001948086169081156103385750600114610300575b506102f2816001960382610cae565b8152019801920191966102a1565b8c8952838920955088905b80821061032157508101830194506102f26102e3565b86548383018601529585019587949091019061030b565b60ff19168584015250151560051b8101830194506102f26102e3565b3461013d57604036600319011261013d57600435610370610187565b6000918083528260205261038a6001604085200154610b9d565b808352602083815260408085206001600160a01b0385166000908152925290205460ff16156103b7578280f35b808352602083815260408085206001600160a01b038516600090815292529020805460ff1916600117905533916001600160a01b0316907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d8480a438808280f35b3461013d57604036600319011261013d57610431610187565b336001600160a01b0382160361044f5761044d90600435610ce4565b005b60405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608490fd5b9181601f8401121561013d5782359167ffffffffffffffff831161013d576020838186019501011161013d57565b3461013d57604036600319011261013d576104f3610171565b60243567ffffffffffffffff811161013d576105139036906004016104ac565b61051b610a25565b60405191818184376001838301908152839003602001909220546001600160a01b03929083166105cc57908161057785610558846105a296610ece565b80546001600160a01b0319166001600160a01b03909216919091179055565b61059d82826105988860018060a01b03166000526002602052604060002090565b610fcf565b6110ce565b9116907ff8debc2f1745eba86909890f2dc061624705c74329348829e04aba43c015b9a2600080a3005b6105e8604051928392635c78f6ed60e11b845260048401610f19565b0390fd5b3461013d57600036600319011261013d5760206040517fafda658ee731b8f86292e3b52a311534cd93642b12a698012439316e0c3a09958152f35b3461013d57604036600319011261013d57602060ff61066d610647610187565b6004356000526000845260406000209060018060a01b0316600052602052604060002090565b54166040519015158152f35b3461013d57600036600319011261013d57602060405160008152f35b3461013d5760408060031936011261013d5760043567ffffffffffffffff811161013d576106ca6106d09136906004016104ac565b90610ee7565b9060009060243582526020928352808220918254906106ee826110f2565b936106fb84519586610cae565b82855281528481209481908086015b84831061071e578551806102b589826101e5565b85518285928a549261072f84610f41565b80825260019480861690811561079d5750600114610765575b50610757816001960382610cae565b81520198019201919661070a565b8c8952838920955088905b8082106107865750810183019450610757610748565b865483830186015295850195879490910190610770565b60ff19168584015250151560051b810183019450610757610748565b3461013d57604036600319011261013d5761044d6004356107d8610187565b908060005260006020526107f3600160406000200154610b9d565b610ce4565b3461013d57606036600319011261013d5760043567ffffffffffffffff811161013d576108299036906004016104ac565b60243591604435908184101561090257929061084e6108488486610f00565b546111e7565b9260009161085c8394610d84565b925b81841061087657848652604051806102b588826101e5565b6108a061089b8561088c868b9a9997989a610ee7565b90600052602052604060002090565b61110a565b9381935b85518510156108e6576108da6108e0916108be8789611231565b516108c9828b611231565b526108d4818a611231565b506110e3565b946110e3565b936108a4565b979295969093506108f89194506110e3565b939095939261085e565b5060405163bc0c888560e01b8152600481018490526024810191909152604490fd5b3461013d57606036600319011261013d5767ffffffffffffffff60043581811161013d576109569036906004016104ac565b9160243590811161013d5761096f9036906004016104ac565b61097a939193610a25565b6040518284823760018184019081528190036020019020546001600160a01b0316938415610a095781816109c06109e195946109db9461059860443561088c898c610ee7565b6109ca8487610f00565b6109d481546110e3565b90556110ce565b926110ce565b907fe3f9a45ba3cdf7457d983d516788bd8a5d69a802c3bcb430d08e865b114986f0600080a4005b6040516315e6e0eb60e21b8152806105e8858760048401610f19565b3360009081527f1b025c5f7493127e9e4262519d0b051a3767d7b241de3e0684fd56f9e8235b6060205260409020547fafda658ee731b8f86292e3b52a311534cd93642b12a698012439316e0c3a09959060ff1615610a815750565b610a8a33610e4e565b610a92610d97565b916030610a9e84610dc8565b536078610aaa84610dd5565b5360415b60018111610b56576105e86048610b3e85610b3088610acd8815610e03565b6040519485937f416363657373436f6e74726f6c3a206163636f756e74200000000000000000006020860152610b0d81518092602060378901910161019d565b84017001034b99036b4b9b9b4b733903937b6329607d1b60378201520190610c44565b03601f198101835282610cae565b60405162461bcd60e51b815291829160048301610cd0565b90600f8116906010821015610b9857610b93916f181899199a1a9b1b9c1cb0b131b232b360811b901a610b898487610de5565b5360041c91610df6565b610aae565b610db2565b60008181526020818152604080832033845290915290205460ff1615610bc05750565b610bc933610e4e565b610bd1610d97565b916030610bdd84610dc8565b536078610be984610dd5565b5360415b60018111610c0c576105e86048610b3e85610b3088610acd8815610e03565b90600f8116906010821015610b9857610c3f916f181899199a1a9b1b9c1cb0b131b232b360811b901a610b898487610de5565b610bed565b90610c576020928281519485920161019d565b0190565b634e487b7160e01b600052604160045260246000fd5b6080810190811067ffffffffffffffff821117610c8d57604052565b610c5b565b6060810190811067ffffffffffffffff821117610c8d57604052565b90601f8019910116810190811067ffffffffffffffff821117610c8d57604052565b906020610ce19281815201906101c0565b90565b6000818152602081815260408083206001600160a01b038616845290915281205490919060ff16610d1457505050565b808252602082815260408084206001600160a01b038616600090815292529020805460ff1916905533926001600160a01b0316917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a4565b634e487b7160e01b600052601160045260246000fd5b9060018201809211610d9257565b610d6e565b60405190610da482610c71565b604282526060366020840137565b634e487b7160e01b600052603260045260246000fd5b805115610b985760200190565b805160011015610b985760210190565b908151811015610b98570160200190565b8015610d92576000190190565b15610e0a57565b606460405162461bcd60e51b815260206004820152602060248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152fd5b60405190610e5b82610c92565b602a825260403660208401376030610e7283610dc8565b536078610e7e83610dd5565b536029905b60018211610e9657610ce1915015610e03565b600f8116906010821015610b9857610ec8916f181899199a1a9b1b9c1cb0b131b232b360811b901a610b898486610de5565b90610e83565b6020908260405193849283378101600181520301902090565b6020908260405193849283378101600481520301902090565b6020908260405193849283378101600381520301902090565b90918060409360208452816020850152848401376000828201840152601f01601f1916010190565b90600182811c92168015610f71575b6020831014610f5b57565b634e487b7160e01b600052602260045260246000fd5b91607f1691610f50565b90601f8111610f8957505050565b600091825260208220906020601f850160051c83019410610fc5575b601f0160051c01915b828110610fba57505050565b818155600101610fae565b9092508290610fa5565b9091815468010000000000000000811015610c8d57600192838201808255821015610b985760005260209081600020019367ffffffffffffffff8311610c8d576110238361101d8754610f41565b87610f7b565b600091601f841160011461106557506110569350600091908361105a575b50508160011b916000199060031b1c19161790565b9055565b013590503880611041565b9183601f19811661107b88600052602060002090565b9483905b888383106110b4575050501061109a575b505050811b019055565b0135600019600384901b60f8161c19169055388080611090565b86860135885590960195938401938793509081019061107f565b81604051928392833781016000815203902090565b6000198114610d925760010190565b67ffffffffffffffff8111610c8d5760051b60200190565b90815491611117836110f2565b9260409161112783519586610cae565b81855260009081526020808220938291908188015b85841061114c5750505050505050565b815183869289549261115d84610f41565b8082526001948086169081156111cb5750600114611193575b50611185816001960382610cae565b81520197019301929561113c565b8b8a52838a20955089905b8082106111b45750810183019450611185611176565b86548383018601529585019588949091019061119e565b60ff19168584015250151560051b810183019450611185611176565b906111f1826110f2565b6111fe6040519182610cae565b828152809261120f601f19916110f2565b019060005b82811061122057505050565b806060602080938501015201611214565b8051821015610b985760209160051b01019056fea2646970667358221220a67108681c070b8892513194cde0d9c1950175e4854f2faf7838c4b627be29c364736f6c63430008150033",
}

ContractMetaData contains all meta data concerning the Contract contract.

Functions

This section is empty.

Types

type BasinStorage

type BasinStorage interface {
	EstimateGas(ctx context.Context,
		pub string,
		cid string,
		timestamp int64,
	) (*bind.TransactOpts, error)
	GetPendingNonce(ctx context.Context) (uint64, error)
	AddCID(ctx context.Context,
		pub string,
		cid string,
		timestamp int64,
		txOpts *bind.TransactOpts) error
}

BasinStorage is an interface that defines the methods to interact with the BasinStorage smart contract.

type Client

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

Client is the Ethereum implementation of the registry client.

func NewClient

func NewClient(
	contractBackend bind.ContractBackend,
	rpcBackend bind.DeployBackend,
	chainID uint64,
	contractAddr common.Address,
	wallet *wallet.Wallet,
) (*Client, error)

NewClient creates a new Client.

func (*Client) AddCID

func (c *Client) AddCID(ctx context.Context,
	pub string,
	cid string,
	timestamp int64,
	txOpts *bind.TransactOpts,
) error

AddCID adds the given cid to the BasinStorage smart contract for the given pub and ts.

func (*Client) EstimateGas

func (c *Client) EstimateGas(
	ctx context.Context,
	pub string,
	cid string,
	timestamp int64,
) (*bind.TransactOpts, error)

EstimateGas estimates the gas required to execute the AddCID function of the BasinStorage smart contract.

func (*Client) GetPendingNonce

func (c *Client) GetPendingNonce(ctx context.Context) (uint64, error)

GetPendingNonce returns the pending nonce of the given wallet.

type Contract

type Contract struct {
	ContractCaller     // Read-only binding to the contract
	ContractTransactor // Write-only binding to the contract
	ContractFilterer   // Log filterer for contract events
}

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

func DeployContract

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

DeployContract deploys a new Ethereum contract, binding an instance of Contract to it.

func NewContract

func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error)

NewContract creates a new instance of Contract, bound to a specific deployed contract.

type ContractCIDAdded

type ContractCIDAdded struct {
	Cid   common.Hash
	Pub   common.Hash
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

ContractCIDAdded represents a CIDAdded event raised by the Contract contract.

type ContractCIDAddedIterator

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

ContractCIDAddedIterator is returned from FilterCIDAdded and is used to iterate over the raw logs and unpacked data for CIDAdded events raised by the Contract contract.

func (*ContractCIDAddedIterator) Close

func (it *ContractCIDAddedIterator) Close() error

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

func (*ContractCIDAddedIterator) Error

func (it *ContractCIDAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractCIDAddedIterator) Next

func (it *ContractCIDAddedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ContractCaller

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

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

func NewContractCaller

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

NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.

func (*ContractCaller) CidsAtTimestamp

func (_Contract *ContractCaller) CidsAtTimestamp(opts *bind.CallOpts, pub string, epoch *big.Int) ([]string, error)

CidsAtTimestamp is a free data retrieval call binding the contract method 0xd41bc3ae.

Solidity: function cidsAtTimestamp(string pub, uint256 epoch) view returns(string[])

func (*ContractCaller) CidsInRange

func (_Contract *ContractCaller) CidsInRange(opts *bind.CallOpts, pub string, aftr *big.Int, before *big.Int) ([]string, error)

CidsInRange is a free data retrieval call binding the contract method 0xde665dbc.

Solidity: function cidsInRange(string pub, uint256 aftr, uint256 before) view returns(string[])

func (*ContractCaller) DEFAULTADMINROLE

func (_Contract *ContractCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ContractCaller) GetRoleAdmin

func (_Contract *ContractCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ContractCaller) HasRole

func (_Contract *ContractCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ContractCaller) PUBADMINROLE

func (_Contract *ContractCaller) PUBADMINROLE(opts *bind.CallOpts) ([32]byte, error)

PUBADMINROLE is a free data retrieval call binding the contract method 0x822ba40b.

Solidity: function PUB_ADMIN_ROLE() view returns(bytes32)

func (*ContractCaller) PubsOfOwner

func (_Contract *ContractCaller) PubsOfOwner(opts *bind.CallOpts, owner common.Address) ([]string, error)

PubsOfOwner is a free data retrieval call binding the contract method 0x26294a77.

Solidity: function pubsOfOwner(address owner) view returns(string[])

func (*ContractCaller) SupportsInterface

func (_Contract *ContractCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type ContractCallerRaw

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

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

func (*ContractCallerRaw) Call

func (_Contract *ContractCallerRaw) 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 ContractCallerSession

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

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

func (*ContractCallerSession) CidsAtTimestamp

func (_Contract *ContractCallerSession) CidsAtTimestamp(pub string, epoch *big.Int) ([]string, error)

CidsAtTimestamp is a free data retrieval call binding the contract method 0xd41bc3ae.

Solidity: function cidsAtTimestamp(string pub, uint256 epoch) view returns(string[])

func (*ContractCallerSession) CidsInRange

func (_Contract *ContractCallerSession) CidsInRange(pub string, aftr *big.Int, before *big.Int) ([]string, error)

CidsInRange is a free data retrieval call binding the contract method 0xde665dbc.

Solidity: function cidsInRange(string pub, uint256 aftr, uint256 before) view returns(string[])

func (*ContractCallerSession) DEFAULTADMINROLE

func (_Contract *ContractCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ContractCallerSession) GetRoleAdmin

func (_Contract *ContractCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ContractCallerSession) HasRole

func (_Contract *ContractCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ContractCallerSession) PUBADMINROLE

func (_Contract *ContractCallerSession) PUBADMINROLE() ([32]byte, error)

PUBADMINROLE is a free data retrieval call binding the contract method 0x822ba40b.

Solidity: function PUB_ADMIN_ROLE() view returns(bytes32)

func (*ContractCallerSession) PubsOfOwner

func (_Contract *ContractCallerSession) PubsOfOwner(owner common.Address) ([]string, error)

PubsOfOwner is a free data retrieval call binding the contract method 0x26294a77.

Solidity: function pubsOfOwner(address owner) view returns(string[])

func (*ContractCallerSession) SupportsInterface

func (_Contract *ContractCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type ContractFilterer

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

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

func NewContractFilterer

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

NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.

func (*ContractFilterer) FilterCIDAdded

func (_Contract *ContractFilterer) FilterCIDAdded(opts *bind.FilterOpts, cid []string, pub []string, owner []common.Address) (*ContractCIDAddedIterator, error)

FilterCIDAdded is a free log retrieval operation binding the contract event 0xe3f9a45ba3cdf7457d983d516788bd8a5d69a802c3bcb430d08e865b114986f0.

Solidity: event CIDAdded(string indexed cid, string indexed pub, address indexed owner)

func (*ContractFilterer) FilterPubCreated

func (_Contract *ContractFilterer) FilterPubCreated(opts *bind.FilterOpts, pub []string, owner []common.Address) (*ContractPubCreatedIterator, error)

FilterPubCreated is a free log retrieval operation binding the contract event 0xf8debc2f1745eba86909890f2dc061624705c74329348829e04aba43c015b9a2.

Solidity: event PubCreated(string indexed pub, address indexed owner)

func (*ContractFilterer) FilterRoleAdminChanged

func (_Contract *ContractFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*ContractRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ContractFilterer) FilterRoleGranted

func (_Contract *ContractFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ContractRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ContractFilterer) FilterRoleRevoked

func (_Contract *ContractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ContractRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*ContractFilterer) ParseCIDAdded

func (_Contract *ContractFilterer) ParseCIDAdded(log types.Log) (*ContractCIDAdded, error)

ParseCIDAdded is a log parse operation binding the contract event 0xe3f9a45ba3cdf7457d983d516788bd8a5d69a802c3bcb430d08e865b114986f0.

Solidity: event CIDAdded(string indexed cid, string indexed pub, address indexed owner)

func (*ContractFilterer) ParsePubCreated

func (_Contract *ContractFilterer) ParsePubCreated(log types.Log) (*ContractPubCreated, error)

ParsePubCreated is a log parse operation binding the contract event 0xf8debc2f1745eba86909890f2dc061624705c74329348829e04aba43c015b9a2.

Solidity: event PubCreated(string indexed pub, address indexed owner)

func (*ContractFilterer) ParseRoleAdminChanged

func (_Contract *ContractFilterer) ParseRoleAdminChanged(log types.Log) (*ContractRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ContractFilterer) ParseRoleGranted

func (_Contract *ContractFilterer) ParseRoleGranted(log types.Log) (*ContractRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ContractFilterer) ParseRoleRevoked

func (_Contract *ContractFilterer) ParseRoleRevoked(log types.Log) (*ContractRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*ContractFilterer) WatchCIDAdded

func (_Contract *ContractFilterer) WatchCIDAdded(opts *bind.WatchOpts, sink chan<- *ContractCIDAdded, cid []string, pub []string, owner []common.Address) (event.Subscription, error)

WatchCIDAdded is a free log subscription operation binding the contract event 0xe3f9a45ba3cdf7457d983d516788bd8a5d69a802c3bcb430d08e865b114986f0.

Solidity: event CIDAdded(string indexed cid, string indexed pub, address indexed owner)

func (*ContractFilterer) WatchPubCreated

func (_Contract *ContractFilterer) WatchPubCreated(opts *bind.WatchOpts, sink chan<- *ContractPubCreated, pub []string, owner []common.Address) (event.Subscription, error)

WatchPubCreated is a free log subscription operation binding the contract event 0xf8debc2f1745eba86909890f2dc061624705c74329348829e04aba43c015b9a2.

Solidity: event PubCreated(string indexed pub, address indexed owner)

func (*ContractFilterer) WatchRoleAdminChanged

func (_Contract *ContractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *ContractRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*ContractFilterer) WatchRoleGranted

func (_Contract *ContractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *ContractRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*ContractFilterer) WatchRoleRevoked

func (_Contract *ContractFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *ContractRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

type ContractPubCreated

type ContractPubCreated struct {
	Pub   common.Hash
	Owner common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

ContractPubCreated represents a PubCreated event raised by the Contract contract.

type ContractPubCreatedIterator

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

ContractPubCreatedIterator is returned from FilterPubCreated and is used to iterate over the raw logs and unpacked data for PubCreated events raised by the Contract contract.

func (*ContractPubCreatedIterator) Close

func (it *ContractPubCreatedIterator) Close() error

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

func (*ContractPubCreatedIterator) Error

func (it *ContractPubCreatedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractPubCreatedIterator) Next

func (it *ContractPubCreatedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ContractRaw

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

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

func (*ContractRaw) Call

func (_Contract *ContractRaw) 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 (*ContractRaw) Transact

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

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

func (*ContractRaw) Transfer

func (_Contract *ContractRaw) 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 ContractRoleAdminChanged

type ContractRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

ContractRoleAdminChanged represents a RoleAdminChanged event raised by the Contract contract.

type ContractRoleAdminChangedIterator

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

ContractRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Contract contract.

func (*ContractRoleAdminChangedIterator) Close

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

func (*ContractRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractRoleAdminChangedIterator) 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 ContractRoleGranted

type ContractRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ContractRoleGranted represents a RoleGranted event raised by the Contract contract.

type ContractRoleGrantedIterator

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

ContractRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Contract contract.

func (*ContractRoleGrantedIterator) Close

func (it *ContractRoleGrantedIterator) Close() error

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

func (*ContractRoleGrantedIterator) Error

func (it *ContractRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractRoleGrantedIterator) Next

func (it *ContractRoleGrantedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ContractRoleRevoked

type ContractRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

ContractRoleRevoked represents a RoleRevoked event raised by the Contract contract.

type ContractRoleRevokedIterator

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

ContractRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Contract contract.

func (*ContractRoleRevokedIterator) Close

func (it *ContractRoleRevokedIterator) Close() error

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

func (*ContractRoleRevokedIterator) Error

func (it *ContractRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractRoleRevokedIterator) Next

func (it *ContractRoleRevokedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type ContractSession

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

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

func (*ContractSession) AddCID

func (_Contract *ContractSession) AddCID(pub string, cid string, timestamp *big.Int) (*types.Transaction, error)

AddCID is a paid mutator transaction binding the contract method 0xfd936858.

Solidity: function addCID(string pub, string cid, uint256 timestamp) returns()

func (*ContractSession) CidsAtTimestamp

func (_Contract *ContractSession) CidsAtTimestamp(pub string, epoch *big.Int) ([]string, error)

CidsAtTimestamp is a free data retrieval call binding the contract method 0xd41bc3ae.

Solidity: function cidsAtTimestamp(string pub, uint256 epoch) view returns(string[])

func (*ContractSession) CidsInRange

func (_Contract *ContractSession) CidsInRange(pub string, aftr *big.Int, before *big.Int) ([]string, error)

CidsInRange is a free data retrieval call binding the contract method 0xde665dbc.

Solidity: function cidsInRange(string pub, uint256 aftr, uint256 before) view returns(string[])

func (*ContractSession) CreatePub

func (_Contract *ContractSession) CreatePub(owner common.Address, pub string) (*types.Transaction, error)

CreatePub is a paid mutator transaction binding the contract method 0x52b62b3e.

Solidity: function createPub(address owner, string pub) returns()

func (*ContractSession) DEFAULTADMINROLE

func (_Contract *ContractSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*ContractSession) GetRoleAdmin

func (_Contract *ContractSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*ContractSession) GrantRole

func (_Contract *ContractSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ContractSession) HasRole

func (_Contract *ContractSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*ContractSession) PUBADMINROLE

func (_Contract *ContractSession) PUBADMINROLE() ([32]byte, error)

PUBADMINROLE is a free data retrieval call binding the contract method 0x822ba40b.

Solidity: function PUB_ADMIN_ROLE() view returns(bytes32)

func (*ContractSession) PubsOfOwner

func (_Contract *ContractSession) PubsOfOwner(owner common.Address) ([]string, error)

PubsOfOwner is a free data retrieval call binding the contract method 0x26294a77.

Solidity: function pubsOfOwner(address owner) view returns(string[])

func (*ContractSession) RenounceRole

func (_Contract *ContractSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*ContractSession) RevokeRole

func (_Contract *ContractSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*ContractSession) SupportsInterface

func (_Contract *ContractSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type ContractTransactor

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

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

func NewContractTransactor

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

NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.

func (*ContractTransactor) AddCID

func (_Contract *ContractTransactor) AddCID(opts *bind.TransactOpts, pub string, cid string, timestamp *big.Int) (*types.Transaction, error)

AddCID is a paid mutator transaction binding the contract method 0xfd936858.

Solidity: function addCID(string pub, string cid, uint256 timestamp) returns()

func (*ContractTransactor) CreatePub

func (_Contract *ContractTransactor) CreatePub(opts *bind.TransactOpts, owner common.Address, pub string) (*types.Transaction, error)

CreatePub is a paid mutator transaction binding the contract method 0x52b62b3e.

Solidity: function createPub(address owner, string pub) returns()

func (*ContractTransactor) GrantRole

func (_Contract *ContractTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ContractTransactor) RenounceRole

func (_Contract *ContractTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*ContractTransactor) RevokeRole

func (_Contract *ContractTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

type ContractTransactorRaw

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

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

func (*ContractTransactorRaw) Transact

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

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

func (*ContractTransactorRaw) Transfer

func (_Contract *ContractTransactorRaw) 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 ContractTransactorSession

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

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

func (*ContractTransactorSession) AddCID

func (_Contract *ContractTransactorSession) AddCID(pub string, cid string, timestamp *big.Int) (*types.Transaction, error)

AddCID is a paid mutator transaction binding the contract method 0xfd936858.

Solidity: function addCID(string pub, string cid, uint256 timestamp) returns()

func (*ContractTransactorSession) CreatePub

func (_Contract *ContractTransactorSession) CreatePub(owner common.Address, pub string) (*types.Transaction, error)

CreatePub is a paid mutator transaction binding the contract method 0x52b62b3e.

Solidity: function createPub(address owner, string pub) returns()

func (*ContractTransactorSession) GrantRole

func (_Contract *ContractTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*ContractTransactorSession) RenounceRole

func (_Contract *ContractTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address account) returns()

func (*ContractTransactorSession) RevokeRole

func (_Contract *ContractTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

Jump to

Keyboard shortcuts

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