contractPauserRegistry

package
v0.0.0-...-537864d Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContractPauserRegistryABI = ContractPauserRegistryMetaData.ABI

ContractPauserRegistryABI is the input ABI used to generate the binding from. Deprecated: Use ContractPauserRegistryMetaData.ABI instead.

View Source
var ContractPauserRegistryBin = ContractPauserRegistryMetaData.Bin

ContractPauserRegistryBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ContractPauserRegistryMetaData.Bin instead.

View Source
var ContractPauserRegistryMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_pausers\",\"type\":\"address[]\"},{\"internalType\":\"address\",\"name\":\"_unpauser\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pauser\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"canPause\",\"type\":\"bool\"}],\"name\":\"PauserStatusChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"previousUnpauser\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newUnpauser\",\"type\":\"address\"}],\"name\":\"UnpauserChanged\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isPauser\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPauser\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"canPause\",\"type\":\"bool\"}],\"name\":\"setIsPauser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newUnpauser\",\"type\":\"address\"}],\"name\":\"setUnpauser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpauser\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608080604052600436101561001357600080fd5b60003560e01c90816346fbf68e1461024b575080638568520614610158578063ce548428146100795763eab66d7a1461004b57600080fd5b34610074576000366003190112610074576001546040516001600160a01b039091168152602090f35b600080fd5b3461007457602036600319011261007457610092610286565b6001546001600160a01b038116916100ab33841461029c565b6001600160a01b03169182156100fb5760407f06b4167a2528887a1e97a366eefe8549bfbf1ea3e6ac81cb2564a934d20e8892918151908152846020820152a16001600160a01b03191617600155005b60405162461bcd60e51b815260206004820152602f60248201527f50617573657252656769737472792e5f736574556e7061757365723a207a657260448201526e1bc81859191c995cdcc81a5b9c1d5d608a1b6064820152608490fd5b3461007457604036600319011261007457610171610286565b602435908115158092036100745761019460018060a01b0360015416331461029c565b6001600160a01b03169081156101f057816040917f65d3a1fd4c13f05cba164f80d03ce90fb4b5e21946bfc3ab7dbd434c2d0b91529360005260006020528260002060ff1981541660ff831617905582519182526020820152a1005b60405162461bcd60e51b815260206004820152602d60248201527f50617573657252656769737472792e5f7365745061757365723a207a65726f2060448201526c1859191c995cdcc81a5b9c1d5d609a1b6064820152608490fd5b34610074576020366003190112610074576020906001600160a01b0361026f610286565b166000526000825260ff6040600020541615158152f35b600435906001600160a01b038216820361007457565b156102a357565b60405162461bcd60e51b815260206004820152602a60248201527f6d73672e73656e646572206973206e6f74207065726d697373696f6e6564206160448201526939903ab73830bab9b2b960b11b6064820152608490fdfea264697066735822122032dca1f4b9e12a0666cb999cb7f2953dee680ee8687a6b57ae5b7555b3b8904164736f6c634300081a0033",
}

ContractPauserRegistryMetaData contains all meta data concerning the ContractPauserRegistry contract.

Functions

This section is empty.

Types

type ContractPauserRegistry

type ContractPauserRegistry struct {
	ContractPauserRegistryCaller     // Read-only binding to the contract
	ContractPauserRegistryTransactor // Write-only binding to the contract
	ContractPauserRegistryFilterer   // Log filterer for contract events
}

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

func DeployContractPauserRegistry

func DeployContractPauserRegistry(auth *bind.TransactOpts, backend bind.ContractBackend, _pausers []common.Address, _unpauser common.Address) (common.Address, *types.Transaction, *ContractPauserRegistry, error)

DeployContractPauserRegistry deploys a new Ethereum contract, binding an instance of ContractPauserRegistry to it.

func NewContractPauserRegistry

func NewContractPauserRegistry(address common.Address, backend bind.ContractBackend) (*ContractPauserRegistry, error)

NewContractPauserRegistry creates a new instance of ContractPauserRegistry, bound to a specific deployed contract.

type ContractPauserRegistryCaller

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

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

func NewContractPauserRegistryCaller

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

NewContractPauserRegistryCaller creates a new read-only instance of ContractPauserRegistry, bound to a specific deployed contract.

func (*ContractPauserRegistryCaller) IsPauser

func (_ContractPauserRegistry *ContractPauserRegistryCaller) IsPauser(opts *bind.CallOpts, arg0 common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

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

func (*ContractPauserRegistryCaller) Unpauser

func (_ContractPauserRegistry *ContractPauserRegistryCaller) Unpauser(opts *bind.CallOpts) (common.Address, error)

Unpauser is a free data retrieval call binding the contract method 0xeab66d7a.

Solidity: function unpauser() view returns(address)

type ContractPauserRegistryCallerRaw

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

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

func (*ContractPauserRegistryCallerRaw) Call

func (_ContractPauserRegistry *ContractPauserRegistryCallerRaw) 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 ContractPauserRegistryCallerSession

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

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

func (*ContractPauserRegistryCallerSession) IsPauser

func (_ContractPauserRegistry *ContractPauserRegistryCallerSession) IsPauser(arg0 common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

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

func (*ContractPauserRegistryCallerSession) Unpauser

func (_ContractPauserRegistry *ContractPauserRegistryCallerSession) Unpauser() (common.Address, error)

Unpauser is a free data retrieval call binding the contract method 0xeab66d7a.

Solidity: function unpauser() view returns(address)

type ContractPauserRegistryCalls

type ContractPauserRegistryCalls interface {
	IsPauser(opts *bind.CallOpts, arg0 common.Address) (bool, error)

	Unpauser(opts *bind.CallOpts) (common.Address, error)
}

ContractPauserRegistryCalls is an auto generated interface that defines the call methods available for an Ethereum contract.

type ContractPauserRegistryFilterer

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

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

func NewContractPauserRegistryFilterer

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

NewContractPauserRegistryFilterer creates a new log filterer instance of ContractPauserRegistry, bound to a specific deployed contract.

func (*ContractPauserRegistryFilterer) FilterPauserStatusChanged

func (_ContractPauserRegistry *ContractPauserRegistryFilterer) FilterPauserStatusChanged(opts *bind.FilterOpts) (*ContractPauserRegistryPauserStatusChangedIterator, error)

FilterPauserStatusChanged is a free log retrieval operation binding the contract event 0x65d3a1fd4c13f05cba164f80d03ce90fb4b5e21946bfc3ab7dbd434c2d0b9152.

Solidity: event PauserStatusChanged(address pauser, bool canPause)

func (*ContractPauserRegistryFilterer) FilterUnpauserChanged

func (_ContractPauserRegistry *ContractPauserRegistryFilterer) FilterUnpauserChanged(opts *bind.FilterOpts) (*ContractPauserRegistryUnpauserChangedIterator, error)

FilterUnpauserChanged is a free log retrieval operation binding the contract event 0x06b4167a2528887a1e97a366eefe8549bfbf1ea3e6ac81cb2564a934d20e8892.

Solidity: event UnpauserChanged(address previousUnpauser, address newUnpauser)

func (*ContractPauserRegistryFilterer) ParsePauserStatusChanged

func (_ContractPauserRegistry *ContractPauserRegistryFilterer) ParsePauserStatusChanged(log types.Log) (*ContractPauserRegistryPauserStatusChanged, error)

ParsePauserStatusChanged is a log parse operation binding the contract event 0x65d3a1fd4c13f05cba164f80d03ce90fb4b5e21946bfc3ab7dbd434c2d0b9152.

Solidity: event PauserStatusChanged(address pauser, bool canPause)

func (*ContractPauserRegistryFilterer) ParseUnpauserChanged

func (_ContractPauserRegistry *ContractPauserRegistryFilterer) ParseUnpauserChanged(log types.Log) (*ContractPauserRegistryUnpauserChanged, error)

ParseUnpauserChanged is a log parse operation binding the contract event 0x06b4167a2528887a1e97a366eefe8549bfbf1ea3e6ac81cb2564a934d20e8892.

Solidity: event UnpauserChanged(address previousUnpauser, address newUnpauser)

func (*ContractPauserRegistryFilterer) WatchPauserStatusChanged

func (_ContractPauserRegistry *ContractPauserRegistryFilterer) WatchPauserStatusChanged(opts *bind.WatchOpts, sink chan<- *ContractPauserRegistryPauserStatusChanged) (event.Subscription, error)

WatchPauserStatusChanged is a free log subscription operation binding the contract event 0x65d3a1fd4c13f05cba164f80d03ce90fb4b5e21946bfc3ab7dbd434c2d0b9152.

Solidity: event PauserStatusChanged(address pauser, bool canPause)

func (*ContractPauserRegistryFilterer) WatchUnpauserChanged

func (_ContractPauserRegistry *ContractPauserRegistryFilterer) WatchUnpauserChanged(opts *bind.WatchOpts, sink chan<- *ContractPauserRegistryUnpauserChanged) (event.Subscription, error)

WatchUnpauserChanged is a free log subscription operation binding the contract event 0x06b4167a2528887a1e97a366eefe8549bfbf1ea3e6ac81cb2564a934d20e8892.

Solidity: event UnpauserChanged(address previousUnpauser, address newUnpauser)

type ContractPauserRegistryFilters

type ContractPauserRegistryFilters interface {
	FilterPauserStatusChanged(opts *bind.FilterOpts) (*ContractPauserRegistryPauserStatusChangedIterator, error)
	WatchPauserStatusChanged(opts *bind.WatchOpts, sink chan<- *ContractPauserRegistryPauserStatusChanged) (event.Subscription, error)
	ParsePauserStatusChanged(log types.Log) (*ContractPauserRegistryPauserStatusChanged, error)

	FilterUnpauserChanged(opts *bind.FilterOpts) (*ContractPauserRegistryUnpauserChangedIterator, error)
	WatchUnpauserChanged(opts *bind.WatchOpts, sink chan<- *ContractPauserRegistryUnpauserChanged) (event.Subscription, error)
	ParseUnpauserChanged(log types.Log) (*ContractPauserRegistryUnpauserChanged, error)
}

ContractPauserRegistryFilterer is an auto generated interface that defines the log filtering methods available for an Ethereum contract.

type ContractPauserRegistryMethods

ContractPauserRegistryMethods is an auto generated interface around an Ethereum contract.

type ContractPauserRegistryPauserStatusChanged

type ContractPauserRegistryPauserStatusChanged struct {
	Pauser   common.Address
	CanPause bool
	Raw      types.Log // Blockchain specific contextual infos
}

ContractPauserRegistryPauserStatusChanged represents a PauserStatusChanged event raised by the ContractPauserRegistry contract.

type ContractPauserRegistryPauserStatusChangedIterator

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

ContractPauserRegistryPauserStatusChangedIterator is returned from FilterPauserStatusChanged and is used to iterate over the raw logs and unpacked data for PauserStatusChanged events raised by the ContractPauserRegistry contract.

func (*ContractPauserRegistryPauserStatusChangedIterator) Close

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

func (*ContractPauserRegistryPauserStatusChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ContractPauserRegistryPauserStatusChangedIterator) 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 ContractPauserRegistryRaw

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

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

func (*ContractPauserRegistryRaw) Call

func (_ContractPauserRegistry *ContractPauserRegistryRaw) 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 (*ContractPauserRegistryRaw) Transact

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

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

func (*ContractPauserRegistryRaw) Transfer

func (_ContractPauserRegistry *ContractPauserRegistryRaw) 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 ContractPauserRegistrySession

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

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

func (*ContractPauserRegistrySession) IsPauser

func (_ContractPauserRegistry *ContractPauserRegistrySession) IsPauser(arg0 common.Address) (bool, error)

IsPauser is a free data retrieval call binding the contract method 0x46fbf68e.

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

func (*ContractPauserRegistrySession) SetIsPauser

func (_ContractPauserRegistry *ContractPauserRegistrySession) SetIsPauser(newPauser common.Address, canPause bool) (*types.Transaction, error)

SetIsPauser is a paid mutator transaction binding the contract method 0x85685206.

Solidity: function setIsPauser(address newPauser, bool canPause) returns()

func (*ContractPauserRegistrySession) SetUnpauser

func (_ContractPauserRegistry *ContractPauserRegistrySession) SetUnpauser(newUnpauser common.Address) (*types.Transaction, error)

SetUnpauser is a paid mutator transaction binding the contract method 0xce548428.

Solidity: function setUnpauser(address newUnpauser) returns()

func (*ContractPauserRegistrySession) Unpauser

func (_ContractPauserRegistry *ContractPauserRegistrySession) Unpauser() (common.Address, error)

Unpauser is a free data retrieval call binding the contract method 0xeab66d7a.

Solidity: function unpauser() view returns(address)

type ContractPauserRegistryTransactor

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

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

func NewContractPauserRegistryTransactor

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

NewContractPauserRegistryTransactor creates a new write-only instance of ContractPauserRegistry, bound to a specific deployed contract.

func (*ContractPauserRegistryTransactor) SetIsPauser

func (_ContractPauserRegistry *ContractPauserRegistryTransactor) SetIsPauser(opts *bind.TransactOpts, newPauser common.Address, canPause bool) (*types.Transaction, error)

SetIsPauser is a paid mutator transaction binding the contract method 0x85685206.

Solidity: function setIsPauser(address newPauser, bool canPause) returns()

func (*ContractPauserRegistryTransactor) SetUnpauser

func (_ContractPauserRegistry *ContractPauserRegistryTransactor) SetUnpauser(opts *bind.TransactOpts, newUnpauser common.Address) (*types.Transaction, error)

SetUnpauser is a paid mutator transaction binding the contract method 0xce548428.

Solidity: function setUnpauser(address newUnpauser) returns()

type ContractPauserRegistryTransactorRaw

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

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

func (*ContractPauserRegistryTransactorRaw) Transact

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

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

func (*ContractPauserRegistryTransactorRaw) Transfer

func (_ContractPauserRegistry *ContractPauserRegistryTransactorRaw) 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 ContractPauserRegistryTransactorSession

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

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

func (*ContractPauserRegistryTransactorSession) SetIsPauser

func (_ContractPauserRegistry *ContractPauserRegistryTransactorSession) SetIsPauser(newPauser common.Address, canPause bool) (*types.Transaction, error)

SetIsPauser is a paid mutator transaction binding the contract method 0x85685206.

Solidity: function setIsPauser(address newPauser, bool canPause) returns()

func (*ContractPauserRegistryTransactorSession) SetUnpauser

func (_ContractPauserRegistry *ContractPauserRegistryTransactorSession) SetUnpauser(newUnpauser common.Address) (*types.Transaction, error)

SetUnpauser is a paid mutator transaction binding the contract method 0xce548428.

Solidity: function setUnpauser(address newUnpauser) returns()

type ContractPauserRegistryTransacts

type ContractPauserRegistryTransacts interface {
	SetIsPauser(opts *bind.TransactOpts, newPauser common.Address, canPause bool) (*types.Transaction, error)

	SetUnpauser(opts *bind.TransactOpts, newUnpauser common.Address) (*types.Transaction, error)
}

ContractPauserRegistryTransacts is an auto generated interface that defines the transact methods available for an Ethereum contract.

type ContractPauserRegistryUnpauserChanged

type ContractPauserRegistryUnpauserChanged struct {
	PreviousUnpauser common.Address
	NewUnpauser      common.Address
	Raw              types.Log // Blockchain specific contextual infos
}

ContractPauserRegistryUnpauserChanged represents a UnpauserChanged event raised by the ContractPauserRegistry contract.

type ContractPauserRegistryUnpauserChangedIterator

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

ContractPauserRegistryUnpauserChangedIterator is returned from FilterUnpauserChanged and is used to iterate over the raw logs and unpacked data for UnpauserChanged events raised by the ContractPauserRegistry contract.

func (*ContractPauserRegistryUnpauserChangedIterator) Close

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

func (*ContractPauserRegistryUnpauserChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

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

Jump to

Keyboard shortcuts

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