Documentation ¶
Index ¶
- Variables
- type Guard
- type GuardCaller
- func (_Guard *GuardCaller) BlackList(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_Guard *GuardCaller) GetSaltStatus(opts *bind.CallOpts, addr common.Address) (*big.Int, bool, error)
- func (_Guard *GuardCaller) GetSaltStatuses(opts *bind.CallOpts, addrs []common.Address) ([]*big.Int, []bool, error)
- func (_Guard *GuardCaller) GetUDMStatus(opts *bind.CallOpts) (bool, error)
- func (_Guard *GuardCaller) SaltList(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- type GuardCallerRaw
- type GuardCallerSession
- func (_Guard *GuardCallerSession) BlackList(arg0 common.Address) (bool, error)
- func (_Guard *GuardCallerSession) GetSaltStatus(addr common.Address) (*big.Int, bool, error)
- func (_Guard *GuardCallerSession) GetSaltStatuses(addrs []common.Address) ([]*big.Int, []bool, error)
- func (_Guard *GuardCallerSession) GetUDMStatus() (bool, error)
- func (_Guard *GuardCallerSession) SaltList(arg0 common.Address) (*big.Int, error)
- type GuardFilterer
- type GuardRaw
- func (_Guard *GuardRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Guard *GuardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Guard *GuardRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type GuardSession
- func (_Guard *GuardSession) BanUser(addr common.Address) (*types.Transaction, error)
- func (_Guard *GuardSession) BanUsers(addrs []common.Address) (*types.Transaction, error)
- func (_Guard *GuardSession) BlackList(arg0 common.Address) (bool, error)
- func (_Guard *GuardSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error)
- func (_Guard *GuardSession) ChangeUDMStatus() (*types.Transaction, error)
- func (_Guard *GuardSession) GetSaltStatus(addr common.Address) (*big.Int, bool, error)
- func (_Guard *GuardSession) GetSaltStatuses(addrs []common.Address) ([]*big.Int, []bool, error)
- func (_Guard *GuardSession) GetUDMStatus() (bool, error)
- func (_Guard *GuardSession) RecoverUser(addr common.Address) (*types.Transaction, error)
- func (_Guard *GuardSession) RecoverUsers(addrs []common.Address) (*types.Transaction, error)
- func (_Guard *GuardSession) SaltList(arg0 common.Address) (*big.Int, error)
- func (_Guard *GuardSession) UpdateSalt(user common.Address, salt *big.Int) (*types.Transaction, error)
- func (_Guard *GuardSession) UpdateSalts(users []common.Address, salts []*big.Int) (*types.Transaction, error)
- type GuardTransactor
- func (_Guard *GuardTransactor) BanUser(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactor) BanUsers(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactor) ChangeOwner(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactor) ChangeUDMStatus(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_Guard *GuardTransactor) RecoverUser(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactor) RecoverUsers(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactor) UpdateSalt(opts *bind.TransactOpts, user common.Address, salt *big.Int) (*types.Transaction, error)
- func (_Guard *GuardTransactor) UpdateSalts(opts *bind.TransactOpts, users []common.Address, salts []*big.Int) (*types.Transaction, error)
- type GuardTransactorRaw
- type GuardTransactorSession
- func (_Guard *GuardTransactorSession) BanUser(addr common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactorSession) BanUsers(addrs []common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactorSession) ChangeUDMStatus() (*types.Transaction, error)
- func (_Guard *GuardTransactorSession) RecoverUser(addr common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactorSession) RecoverUsers(addrs []common.Address) (*types.Transaction, error)
- func (_Guard *GuardTransactorSession) UpdateSalt(user common.Address, salt *big.Int) (*types.Transaction, error)
- func (_Guard *GuardTransactorSession) UpdateSalts(users []common.Address, salts []*big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var GuardABI = GuardMetaData.ABI
GuardABI is the input ABI used to generate the binding from. Deprecated: Use GuardMetaData.ABI instead.
var GuardMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"_banUser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"_getSaltStatus\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"_recoverUser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"salt\",\"type\":\"uint256\"}],\"name\":\"_updateSalt\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addrs\",\"type\":\"address[]\"}],\"name\":\"banUsers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"blackList\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"changeOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"changeUDMStatus\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addrs\",\"type\":\"address[]\"}],\"name\":\"getSaltStatuses\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"bool[]\",\"name\":\"\",\"type\":\"bool[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getUDMStatus\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"addrs\",\"type\":\"address[]\"}],\"name\":\"recoverUsers\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"saltList\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"users\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"salts\",\"type\":\"uint256[]\"}],\"name\":\"updateSalts\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
GuardMetaData contains all meta data concerning the Guard contract.
Functions ¶
This section is empty.
Types ¶
type Guard ¶
type Guard struct { GuardCaller // Read-only binding to the contract GuardTransactor // Write-only binding to the contract GuardFilterer // Log filterer for contract events }
Guard is an auto generated Go binding around an Ethereum contract.
type GuardCaller ¶
type GuardCaller struct {
// contains filtered or unexported fields
}
GuardCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewGuardCaller ¶
func NewGuardCaller(address common.Address, caller bind.ContractCaller) (*GuardCaller, error)
NewGuardCaller creates a new read-only instance of Guard, bound to a specific deployed contract.
func (*GuardCaller) BlackList ¶
BlackList is a free data retrieval call binding the contract method 0x4838d165.
Solidity: function blackList(address ) view returns(bool)
func (*GuardCaller) GetSaltStatus ¶
func (_Guard *GuardCaller) GetSaltStatus(opts *bind.CallOpts, addr common.Address) (*big.Int, bool, error)
GetSaltStatus is a free data retrieval call binding the contract method 0x27481b38.
Solidity: function _getSaltStatus(address addr) view returns(uint256, bool)
func (*GuardCaller) GetSaltStatuses ¶
func (_Guard *GuardCaller) GetSaltStatuses(opts *bind.CallOpts, addrs []common.Address) ([]*big.Int, []bool, error)
GetSaltStatuses is a free data retrieval call binding the contract method 0xb1422015.
Solidity: function getSaltStatuses(address[] addrs) view returns(uint256[], bool[])
func (*GuardCaller) GetUDMStatus ¶
func (_Guard *GuardCaller) GetUDMStatus(opts *bind.CallOpts) (bool, error)
GetUDMStatus is a free data retrieval call binding the contract method 0x21e1bec5.
Solidity: function getUDMStatus() view returns(bool)
type GuardCallerRaw ¶
type GuardCallerRaw struct {
Contract *GuardCaller // Generic read-only contract binding to access the raw methods on
}
GuardCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*GuardCallerRaw) Call ¶
func (_Guard *GuardCallerRaw) 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 GuardCallerSession ¶
type GuardCallerSession struct { Contract *GuardCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
GuardCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*GuardCallerSession) BlackList ¶
func (_Guard *GuardCallerSession) BlackList(arg0 common.Address) (bool, error)
BlackList is a free data retrieval call binding the contract method 0x4838d165.
Solidity: function blackList(address ) view returns(bool)
func (*GuardCallerSession) GetSaltStatus ¶
GetSaltStatus is a free data retrieval call binding the contract method 0x27481b38.
Solidity: function _getSaltStatus(address addr) view returns(uint256, bool)
func (*GuardCallerSession) GetSaltStatuses ¶
func (_Guard *GuardCallerSession) GetSaltStatuses(addrs []common.Address) ([]*big.Int, []bool, error)
GetSaltStatuses is a free data retrieval call binding the contract method 0xb1422015.
Solidity: function getSaltStatuses(address[] addrs) view returns(uint256[], bool[])
func (*GuardCallerSession) GetUDMStatus ¶
func (_Guard *GuardCallerSession) GetUDMStatus() (bool, error)
GetUDMStatus is a free data retrieval call binding the contract method 0x21e1bec5.
Solidity: function getUDMStatus() view returns(bool)
type GuardFilterer ¶
type GuardFilterer struct {
// contains filtered or unexported fields
}
GuardFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewGuardFilterer ¶
func NewGuardFilterer(address common.Address, filterer bind.ContractFilterer) (*GuardFilterer, error)
NewGuardFilterer creates a new log filterer instance of Guard, bound to a specific deployed contract.
type GuardRaw ¶
type GuardRaw struct {
Contract *Guard // Generic contract binding to access the raw methods on
}
GuardRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*GuardRaw) Call ¶
func (_Guard *GuardRaw) 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 (*GuardRaw) Transact ¶
func (_Guard *GuardRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GuardRaw) Transfer ¶
func (_Guard *GuardRaw) 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 GuardSession ¶
type GuardSession struct { Contract *Guard // 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 }
GuardSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*GuardSession) BanUser ¶
func (_Guard *GuardSession) BanUser(addr common.Address) (*types.Transaction, error)
BanUser is a paid mutator transaction binding the contract method 0x23a60272.
Solidity: function _banUser(address addr) returns()
func (*GuardSession) BanUsers ¶
func (_Guard *GuardSession) BanUsers(addrs []common.Address) (*types.Transaction, error)
BanUsers is a paid mutator transaction binding the contract method 0xb188c6ec.
Solidity: function banUsers(address[] addrs) returns()
func (*GuardSession) BlackList ¶
func (_Guard *GuardSession) BlackList(arg0 common.Address) (bool, error)
BlackList is a free data retrieval call binding the contract method 0x4838d165.
Solidity: function blackList(address ) view returns(bool)
func (*GuardSession) ChangeOwner ¶
func (_Guard *GuardSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error)
ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.
Solidity: function changeOwner(address _newOwner) returns()
func (*GuardSession) ChangeUDMStatus ¶
func (_Guard *GuardSession) ChangeUDMStatus() (*types.Transaction, error)
ChangeUDMStatus is a paid mutator transaction binding the contract method 0x5c20ece5.
Solidity: function changeUDMStatus() returns()
func (*GuardSession) GetSaltStatus ¶
GetSaltStatus is a free data retrieval call binding the contract method 0x27481b38.
Solidity: function _getSaltStatus(address addr) view returns(uint256, bool)
func (*GuardSession) GetSaltStatuses ¶
GetSaltStatuses is a free data retrieval call binding the contract method 0xb1422015.
Solidity: function getSaltStatuses(address[] addrs) view returns(uint256[], bool[])
func (*GuardSession) GetUDMStatus ¶
func (_Guard *GuardSession) GetUDMStatus() (bool, error)
GetUDMStatus is a free data retrieval call binding the contract method 0x21e1bec5.
Solidity: function getUDMStatus() view returns(bool)
func (*GuardSession) RecoverUser ¶
func (_Guard *GuardSession) RecoverUser(addr common.Address) (*types.Transaction, error)
RecoverUser is a paid mutator transaction binding the contract method 0x6527c19c.
Solidity: function _recoverUser(address addr) returns()
func (*GuardSession) RecoverUsers ¶
func (_Guard *GuardSession) RecoverUsers(addrs []common.Address) (*types.Transaction, error)
RecoverUsers is a paid mutator transaction binding the contract method 0x8584f4b4.
Solidity: function recoverUsers(address[] addrs) returns()
func (*GuardSession) SaltList ¶
SaltList is a free data retrieval call binding the contract method 0xb6a61b0e.
Solidity: function saltList(address ) view returns(uint256)
func (*GuardSession) UpdateSalt ¶
func (_Guard *GuardSession) UpdateSalt(user common.Address, salt *big.Int) (*types.Transaction, error)
UpdateSalt is a paid mutator transaction binding the contract method 0x9c961ed1.
Solidity: function _updateSalt(address user, uint256 salt) returns()
func (*GuardSession) UpdateSalts ¶
func (_Guard *GuardSession) UpdateSalts(users []common.Address, salts []*big.Int) (*types.Transaction, error)
UpdateSalts is a paid mutator transaction binding the contract method 0xf8574768.
Solidity: function updateSalts(address[] users, uint256[] salts) returns()
type GuardTransactor ¶
type GuardTransactor struct {
// contains filtered or unexported fields
}
GuardTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewGuardTransactor ¶
func NewGuardTransactor(address common.Address, transactor bind.ContractTransactor) (*GuardTransactor, error)
NewGuardTransactor creates a new write-only instance of Guard, bound to a specific deployed contract.
func (*GuardTransactor) BanUser ¶
func (_Guard *GuardTransactor) BanUser(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)
BanUser is a paid mutator transaction binding the contract method 0x23a60272.
Solidity: function _banUser(address addr) returns()
func (*GuardTransactor) BanUsers ¶
func (_Guard *GuardTransactor) BanUsers(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
BanUsers is a paid mutator transaction binding the contract method 0xb188c6ec.
Solidity: function banUsers(address[] addrs) returns()
func (*GuardTransactor) ChangeOwner ¶
func (_Guard *GuardTransactor) ChangeOwner(opts *bind.TransactOpts, _newOwner common.Address) (*types.Transaction, error)
ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.
Solidity: function changeOwner(address _newOwner) returns()
func (*GuardTransactor) ChangeUDMStatus ¶
func (_Guard *GuardTransactor) ChangeUDMStatus(opts *bind.TransactOpts) (*types.Transaction, error)
ChangeUDMStatus is a paid mutator transaction binding the contract method 0x5c20ece5.
Solidity: function changeUDMStatus() returns()
func (*GuardTransactor) RecoverUser ¶
func (_Guard *GuardTransactor) RecoverUser(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)
RecoverUser is a paid mutator transaction binding the contract method 0x6527c19c.
Solidity: function _recoverUser(address addr) returns()
func (*GuardTransactor) RecoverUsers ¶
func (_Guard *GuardTransactor) RecoverUsers(opts *bind.TransactOpts, addrs []common.Address) (*types.Transaction, error)
RecoverUsers is a paid mutator transaction binding the contract method 0x8584f4b4.
Solidity: function recoverUsers(address[] addrs) returns()
func (*GuardTransactor) UpdateSalt ¶
func (_Guard *GuardTransactor) UpdateSalt(opts *bind.TransactOpts, user common.Address, salt *big.Int) (*types.Transaction, error)
UpdateSalt is a paid mutator transaction binding the contract method 0x9c961ed1.
Solidity: function _updateSalt(address user, uint256 salt) returns()
func (*GuardTransactor) UpdateSalts ¶
func (_Guard *GuardTransactor) UpdateSalts(opts *bind.TransactOpts, users []common.Address, salts []*big.Int) (*types.Transaction, error)
UpdateSalts is a paid mutator transaction binding the contract method 0xf8574768.
Solidity: function updateSalts(address[] users, uint256[] salts) returns()
type GuardTransactorRaw ¶
type GuardTransactorRaw struct {
Contract *GuardTransactor // Generic write-only contract binding to access the raw methods on
}
GuardTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*GuardTransactorRaw) Transact ¶
func (_Guard *GuardTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GuardTransactorRaw) Transfer ¶
func (_Guard *GuardTransactorRaw) 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 GuardTransactorSession ¶
type GuardTransactorSession struct { Contract *GuardTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
GuardTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*GuardTransactorSession) BanUser ¶
func (_Guard *GuardTransactorSession) BanUser(addr common.Address) (*types.Transaction, error)
BanUser is a paid mutator transaction binding the contract method 0x23a60272.
Solidity: function _banUser(address addr) returns()
func (*GuardTransactorSession) BanUsers ¶
func (_Guard *GuardTransactorSession) BanUsers(addrs []common.Address) (*types.Transaction, error)
BanUsers is a paid mutator transaction binding the contract method 0xb188c6ec.
Solidity: function banUsers(address[] addrs) returns()
func (*GuardTransactorSession) ChangeOwner ¶
func (_Guard *GuardTransactorSession) ChangeOwner(_newOwner common.Address) (*types.Transaction, error)
ChangeOwner is a paid mutator transaction binding the contract method 0xa6f9dae1.
Solidity: function changeOwner(address _newOwner) returns()
func (*GuardTransactorSession) ChangeUDMStatus ¶
func (_Guard *GuardTransactorSession) ChangeUDMStatus() (*types.Transaction, error)
ChangeUDMStatus is a paid mutator transaction binding the contract method 0x5c20ece5.
Solidity: function changeUDMStatus() returns()
func (*GuardTransactorSession) RecoverUser ¶
func (_Guard *GuardTransactorSession) RecoverUser(addr common.Address) (*types.Transaction, error)
RecoverUser is a paid mutator transaction binding the contract method 0x6527c19c.
Solidity: function _recoverUser(address addr) returns()
func (*GuardTransactorSession) RecoverUsers ¶
func (_Guard *GuardTransactorSession) RecoverUsers(addrs []common.Address) (*types.Transaction, error)
RecoverUsers is a paid mutator transaction binding the contract method 0x8584f4b4.
Solidity: function recoverUsers(address[] addrs) returns()
func (*GuardTransactorSession) UpdateSalt ¶
func (_Guard *GuardTransactorSession) UpdateSalt(user common.Address, salt *big.Int) (*types.Transaction, error)
UpdateSalt is a paid mutator transaction binding the contract method 0x9c961ed1.
Solidity: function _updateSalt(address user, uint256 salt) returns()
func (*GuardTransactorSession) UpdateSalts ¶
func (_Guard *GuardTransactorSession) UpdateSalts(users []common.Address, salts []*big.Int) (*types.Transaction, error)
UpdateSalts is a paid mutator transaction binding the contract method 0xf8574768.
Solidity: function updateSalts(address[] users, uint256[] salts) returns()