Documentation ¶
Index ¶
- Constants
- Variables
- type IPoseidonHasher
- type IPoseidonHasherCaller
- type IPoseidonHasherCallerRaw
- type IPoseidonHasherCallerSession
- type IPoseidonHasherFilterer
- type IPoseidonHasherRaw
- func (_IPoseidonHasher *IPoseidonHasherRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IPoseidonHasher *IPoseidonHasherRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IPoseidonHasher *IPoseidonHasherRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IPoseidonHasherSession
- type IPoseidonHasherTransactor
- type IPoseidonHasherTransactorRaw
- type IPoseidonHasherTransactorSession
- type PoseidonHasher
- type PoseidonHasherCaller
- type PoseidonHasherCallerRaw
- type PoseidonHasherCallerSession
- type PoseidonHasherFilterer
- type PoseidonHasherRaw
- func (_PoseidonHasher *PoseidonHasherRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_PoseidonHasher *PoseidonHasherRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_PoseidonHasher *PoseidonHasherRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type PoseidonHasherSession
- type PoseidonHasherTransactor
- type PoseidonHasherTransactorRaw
- type PoseidonHasherTransactorSession
- type RLN
- type RLNCaller
- func (_RLN *RLNCaller) DEPTH(opts *bind.CallOpts) (*big.Int, error)
- func (_RLN *RLNCaller) MEMBERSHIPDEPOSIT(opts *bind.CallOpts) (*big.Int, error)
- func (_RLN *RLNCaller) Members(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)
- func (_RLN *RLNCaller) PoseidonHasher(opts *bind.CallOpts) (common.Address, error)
- func (_RLN *RLNCaller) PubkeyIndex(opts *bind.CallOpts) (*big.Int, error)
- func (_RLN *RLNCaller) SETSIZE(opts *bind.CallOpts) (*big.Int, error)
- type RLNCallerRaw
- type RLNCallerSession
- func (_RLN *RLNCallerSession) DEPTH() (*big.Int, error)
- func (_RLN *RLNCallerSession) MEMBERSHIPDEPOSIT() (*big.Int, error)
- func (_RLN *RLNCallerSession) Members(arg0 *big.Int) (*big.Int, error)
- func (_RLN *RLNCallerSession) PoseidonHasher() (common.Address, error)
- func (_RLN *RLNCallerSession) PubkeyIndex() (*big.Int, error)
- func (_RLN *RLNCallerSession) SETSIZE() (*big.Int, error)
- type RLNFilterer
- func (_RLN *RLNFilterer) FilterMemberRegistered(opts *bind.FilterOpts) (*RLNMemberRegisteredIterator, error)
- func (_RLN *RLNFilterer) FilterMemberWithdrawn(opts *bind.FilterOpts) (*RLNMemberWithdrawnIterator, error)
- func (_RLN *RLNFilterer) ParseMemberRegistered(log types.Log) (*RLNMemberRegistered, error)
- func (_RLN *RLNFilterer) ParseMemberWithdrawn(log types.Log) (*RLNMemberWithdrawn, error)
- func (_RLN *RLNFilterer) WatchMemberRegistered(opts *bind.WatchOpts, sink chan<- *RLNMemberRegistered) (event.Subscription, error)
- func (_RLN *RLNFilterer) WatchMemberWithdrawn(opts *bind.WatchOpts, sink chan<- *RLNMemberWithdrawn) (event.Subscription, error)
- type RLNMemberRegistered
- type RLNMemberRegisteredIterator
- type RLNMemberWithdrawn
- type RLNMemberWithdrawnIterator
- type RLNRaw
- type RLNSession
- func (_RLN *RLNSession) DEPTH() (*big.Int, error)
- func (_RLN *RLNSession) MEMBERSHIPDEPOSIT() (*big.Int, error)
- func (_RLN *RLNSession) Members(arg0 *big.Int) (*big.Int, error)
- func (_RLN *RLNSession) PoseidonHasher() (common.Address, error)
- func (_RLN *RLNSession) PubkeyIndex() (*big.Int, error)
- func (_RLN *RLNSession) Register(pubkey *big.Int) (*types.Transaction, error)
- func (_RLN *RLNSession) RegisterBatch(pubkeys []*big.Int) (*types.Transaction, error)
- func (_RLN *RLNSession) SETSIZE() (*big.Int, error)
- func (_RLN *RLNSession) Withdraw(secret *big.Int, _pubkeyIndex *big.Int, receiver common.Address) (*types.Transaction, error)
- func (_RLN *RLNSession) WithdrawBatch(secrets []*big.Int, pubkeyIndexes []*big.Int, receivers []common.Address) (*types.Transaction, error)
- type RLNTransactor
- func (_RLN *RLNTransactor) Register(opts *bind.TransactOpts, pubkey *big.Int) (*types.Transaction, error)
- func (_RLN *RLNTransactor) RegisterBatch(opts *bind.TransactOpts, pubkeys []*big.Int) (*types.Transaction, error)
- func (_RLN *RLNTransactor) Withdraw(opts *bind.TransactOpts, secret *big.Int, _pubkeyIndex *big.Int, ...) (*types.Transaction, error)
- func (_RLN *RLNTransactor) WithdrawBatch(opts *bind.TransactOpts, secrets []*big.Int, pubkeyIndexes []*big.Int, ...) (*types.Transaction, error)
- type RLNTransactorRaw
- type RLNTransactorSession
- func (_RLN *RLNTransactorSession) Register(pubkey *big.Int) (*types.Transaction, error)
- func (_RLN *RLNTransactorSession) RegisterBatch(pubkeys []*big.Int) (*types.Transaction, error)
- func (_RLN *RLNTransactorSession) Withdraw(secret *big.Int, _pubkeyIndex *big.Int, receiver common.Address) (*types.Transaction, error)
- func (_RLN *RLNTransactorSession) WithdrawBatch(secrets []*big.Int, pubkeyIndexes []*big.Int, receivers []common.Address) (*types.Transaction, error)
Constants ¶
const IPoseidonHasherABI = "" /* 417-byte string literal not displayed */
IPoseidonHasherABI is the input ABI used to generate the binding from.
const PoseidonHasherABI = "" /* 417-byte string literal not displayed */
PoseidonHasherABI is the input ABI used to generate the binding from.
const RLNABI = "" /* 3012-byte string literal not displayed */
RLNABI is the input ABI used to generate the binding from.
Variables ¶
var IPoseidonHasherFuncSigs = map[string]string{
"561558fe": "hash(uint256[2])",
"2c159a1a": "identity()",
}
IPoseidonHasherFuncSigs maps the 4-byte function signature to its string representation.
var PoseidonHasherBin = "" /* 17094-byte string literal not displayed */
PoseidonHasherBin is the compiled bytecode used for deploying new contracts.
var PoseidonHasherFuncSigs = map[string]string{
"561558fe": "hash(uint256[2])",
"2c159a1a": "identity()",
}
PoseidonHasherFuncSigs maps the 4-byte function signature to its string representation.
var RLNBin = "" /* 6304-byte string literal not displayed */
RLNBin is the compiled bytecode used for deploying new contracts.
var RLNFuncSigs = map[string]string{
"98366e35": "DEPTH()",
"f220b9ec": "MEMBERSHIP_DEPOSIT()",
"d0383d68": "SET_SIZE()",
"5daf08ca": "members(uint256)",
"331b6ab3": "poseidonHasher()",
"61579a93": "pubkeyIndex()",
"f207564e": "register(uint256)",
"69e4863f": "registerBatch(uint256[])",
"0ad58d2f": "withdraw(uint256,uint256,address)",
"a9d85eba": "withdrawBatch(uint256[],uint256[],address[])",
}
RLNFuncSigs maps the 4-byte function signature to its string representation.
Functions ¶
This section is empty.
Types ¶
type IPoseidonHasher ¶
type IPoseidonHasher struct { IPoseidonHasherCaller // Read-only binding to the contract IPoseidonHasherTransactor // Write-only binding to the contract IPoseidonHasherFilterer // Log filterer for contract events }
IPoseidonHasher is an auto generated Go binding around an Ethereum contract.
func NewIPoseidonHasher ¶
func NewIPoseidonHasher(address common.Address, backend bind.ContractBackend) (*IPoseidonHasher, error)
NewIPoseidonHasher creates a new instance of IPoseidonHasher, bound to a specific deployed contract.
type IPoseidonHasherCaller ¶
type IPoseidonHasherCaller struct {
// contains filtered or unexported fields
}
IPoseidonHasherCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIPoseidonHasherCaller ¶
func NewIPoseidonHasherCaller(address common.Address, caller bind.ContractCaller) (*IPoseidonHasherCaller, error)
NewIPoseidonHasherCaller creates a new read-only instance of IPoseidonHasher, bound to a specific deployed contract.
type IPoseidonHasherCallerRaw ¶
type IPoseidonHasherCallerRaw struct {
Contract *IPoseidonHasherCaller // Generic read-only contract binding to access the raw methods on
}
IPoseidonHasherCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IPoseidonHasherCallerRaw) Call ¶
func (_IPoseidonHasher *IPoseidonHasherCallerRaw) 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 IPoseidonHasherCallerSession ¶
type IPoseidonHasherCallerSession struct { Contract *IPoseidonHasherCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IPoseidonHasherCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type IPoseidonHasherFilterer ¶
type IPoseidonHasherFilterer struct {
// contains filtered or unexported fields
}
IPoseidonHasherFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIPoseidonHasherFilterer ¶
func NewIPoseidonHasherFilterer(address common.Address, filterer bind.ContractFilterer) (*IPoseidonHasherFilterer, error)
NewIPoseidonHasherFilterer creates a new log filterer instance of IPoseidonHasher, bound to a specific deployed contract.
type IPoseidonHasherRaw ¶
type IPoseidonHasherRaw struct {
Contract *IPoseidonHasher // Generic contract binding to access the raw methods on
}
IPoseidonHasherRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IPoseidonHasherRaw) Call ¶
func (_IPoseidonHasher *IPoseidonHasherRaw) 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 (*IPoseidonHasherRaw) Transact ¶
func (_IPoseidonHasher *IPoseidonHasherRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IPoseidonHasherRaw) Transfer ¶
func (_IPoseidonHasher *IPoseidonHasherRaw) 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 IPoseidonHasherSession ¶
type IPoseidonHasherSession struct { Contract *IPoseidonHasher // 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 }
IPoseidonHasherSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
type IPoseidonHasherTransactor ¶
type IPoseidonHasherTransactor struct {
// contains filtered or unexported fields
}
IPoseidonHasherTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIPoseidonHasherTransactor ¶
func NewIPoseidonHasherTransactor(address common.Address, transactor bind.ContractTransactor) (*IPoseidonHasherTransactor, error)
NewIPoseidonHasherTransactor creates a new write-only instance of IPoseidonHasher, bound to a specific deployed contract.
type IPoseidonHasherTransactorRaw ¶
type IPoseidonHasherTransactorRaw struct {
Contract *IPoseidonHasherTransactor // Generic write-only contract binding to access the raw methods on
}
IPoseidonHasherTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IPoseidonHasherTransactorRaw) Transact ¶
func (_IPoseidonHasher *IPoseidonHasherTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IPoseidonHasherTransactorRaw) Transfer ¶
func (_IPoseidonHasher *IPoseidonHasherTransactorRaw) 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 IPoseidonHasherTransactorSession ¶
type IPoseidonHasherTransactorSession struct { Contract *IPoseidonHasherTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IPoseidonHasherTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type PoseidonHasher ¶
type PoseidonHasher struct { PoseidonHasherCaller // Read-only binding to the contract PoseidonHasherTransactor // Write-only binding to the contract PoseidonHasherFilterer // Log filterer for contract events }
PoseidonHasher is an auto generated Go binding around an Ethereum contract.
func DeployPoseidonHasher ¶
func DeployPoseidonHasher(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *PoseidonHasher, error)
DeployPoseidonHasher deploys a new Ethereum contract, binding an instance of PoseidonHasher to it.
func NewPoseidonHasher ¶
func NewPoseidonHasher(address common.Address, backend bind.ContractBackend) (*PoseidonHasher, error)
NewPoseidonHasher creates a new instance of PoseidonHasher, bound to a specific deployed contract.
type PoseidonHasherCaller ¶
type PoseidonHasherCaller struct {
// contains filtered or unexported fields
}
PoseidonHasherCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPoseidonHasherCaller ¶
func NewPoseidonHasherCaller(address common.Address, caller bind.ContractCaller) (*PoseidonHasherCaller, error)
NewPoseidonHasherCaller creates a new read-only instance of PoseidonHasher, bound to a specific deployed contract.
type PoseidonHasherCallerRaw ¶
type PoseidonHasherCallerRaw struct {
Contract *PoseidonHasherCaller // Generic read-only contract binding to access the raw methods on
}
PoseidonHasherCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*PoseidonHasherCallerRaw) Call ¶
func (_PoseidonHasher *PoseidonHasherCallerRaw) 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 PoseidonHasherCallerSession ¶
type PoseidonHasherCallerSession struct { Contract *PoseidonHasherCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
PoseidonHasherCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type PoseidonHasherFilterer ¶
type PoseidonHasherFilterer struct {
// contains filtered or unexported fields
}
PoseidonHasherFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPoseidonHasherFilterer ¶
func NewPoseidonHasherFilterer(address common.Address, filterer bind.ContractFilterer) (*PoseidonHasherFilterer, error)
NewPoseidonHasherFilterer creates a new log filterer instance of PoseidonHasher, bound to a specific deployed contract.
type PoseidonHasherRaw ¶
type PoseidonHasherRaw struct {
Contract *PoseidonHasher // Generic contract binding to access the raw methods on
}
PoseidonHasherRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*PoseidonHasherRaw) Call ¶
func (_PoseidonHasher *PoseidonHasherRaw) 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 (*PoseidonHasherRaw) Transact ¶
func (_PoseidonHasher *PoseidonHasherRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PoseidonHasherRaw) Transfer ¶
func (_PoseidonHasher *PoseidonHasherRaw) 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 PoseidonHasherSession ¶
type PoseidonHasherSession struct { Contract *PoseidonHasher // 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 }
PoseidonHasherSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
type PoseidonHasherTransactor ¶
type PoseidonHasherTransactor struct {
// contains filtered or unexported fields
}
PoseidonHasherTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPoseidonHasherTransactor ¶
func NewPoseidonHasherTransactor(address common.Address, transactor bind.ContractTransactor) (*PoseidonHasherTransactor, error)
NewPoseidonHasherTransactor creates a new write-only instance of PoseidonHasher, bound to a specific deployed contract.
type PoseidonHasherTransactorRaw ¶
type PoseidonHasherTransactorRaw struct {
Contract *PoseidonHasherTransactor // Generic write-only contract binding to access the raw methods on
}
PoseidonHasherTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*PoseidonHasherTransactorRaw) Transact ¶
func (_PoseidonHasher *PoseidonHasherTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*PoseidonHasherTransactorRaw) Transfer ¶
func (_PoseidonHasher *PoseidonHasherTransactorRaw) 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 PoseidonHasherTransactorSession ¶
type PoseidonHasherTransactorSession struct { Contract *PoseidonHasherTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
PoseidonHasherTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type RLN ¶
type RLN struct { RLNCaller // Read-only binding to the contract RLNTransactor // Write-only binding to the contract RLNFilterer // Log filterer for contract events }
RLN is an auto generated Go binding around an Ethereum contract.
type RLNCaller ¶
type RLNCaller struct {
// contains filtered or unexported fields
}
RLNCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewRLNCaller ¶
NewRLNCaller creates a new read-only instance of RLN, bound to a specific deployed contract.
func (*RLNCaller) DEPTH ¶
DEPTH is a free data retrieval call binding the contract method 0x98366e35.
Solidity: function DEPTH() view returns(uint256)
func (*RLNCaller) MEMBERSHIPDEPOSIT ¶
MEMBERSHIPDEPOSIT is a free data retrieval call binding the contract method 0xf220b9ec.
Solidity: function MEMBERSHIP_DEPOSIT() view returns(uint256)
func (*RLNCaller) Members ¶
Members is a free data retrieval call binding the contract method 0x5daf08ca.
Solidity: function members(uint256 ) view returns(uint256)
func (*RLNCaller) PoseidonHasher ¶
PoseidonHasher is a free data retrieval call binding the contract method 0x331b6ab3.
Solidity: function poseidonHasher() view returns(address)
func (*RLNCaller) PubkeyIndex ¶
PubkeyIndex is a free data retrieval call binding the contract method 0x61579a93.
Solidity: function pubkeyIndex() view returns(uint256)
type RLNCallerRaw ¶
type RLNCallerRaw struct {
Contract *RLNCaller // Generic read-only contract binding to access the raw methods on
}
RLNCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*RLNCallerRaw) Call ¶
func (_RLN *RLNCallerRaw) 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 RLNCallerSession ¶
type RLNCallerSession struct { Contract *RLNCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
RLNCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*RLNCallerSession) DEPTH ¶
func (_RLN *RLNCallerSession) DEPTH() (*big.Int, error)
DEPTH is a free data retrieval call binding the contract method 0x98366e35.
Solidity: function DEPTH() view returns(uint256)
func (*RLNCallerSession) MEMBERSHIPDEPOSIT ¶
func (_RLN *RLNCallerSession) MEMBERSHIPDEPOSIT() (*big.Int, error)
MEMBERSHIPDEPOSIT is a free data retrieval call binding the contract method 0xf220b9ec.
Solidity: function MEMBERSHIP_DEPOSIT() view returns(uint256)
func (*RLNCallerSession) Members ¶
Members is a free data retrieval call binding the contract method 0x5daf08ca.
Solidity: function members(uint256 ) view returns(uint256)
func (*RLNCallerSession) PoseidonHasher ¶
func (_RLN *RLNCallerSession) PoseidonHasher() (common.Address, error)
PoseidonHasher is a free data retrieval call binding the contract method 0x331b6ab3.
Solidity: function poseidonHasher() view returns(address)
func (*RLNCallerSession) PubkeyIndex ¶
func (_RLN *RLNCallerSession) PubkeyIndex() (*big.Int, error)
PubkeyIndex is a free data retrieval call binding the contract method 0x61579a93.
Solidity: function pubkeyIndex() view returns(uint256)
type RLNFilterer ¶
type RLNFilterer struct {
// contains filtered or unexported fields
}
RLNFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewRLNFilterer ¶
func NewRLNFilterer(address common.Address, filterer bind.ContractFilterer) (*RLNFilterer, error)
NewRLNFilterer creates a new log filterer instance of RLN, bound to a specific deployed contract.
func (*RLNFilterer) FilterMemberRegistered ¶
func (_RLN *RLNFilterer) FilterMemberRegistered(opts *bind.FilterOpts) (*RLNMemberRegisteredIterator, error)
FilterMemberRegistered is a free log retrieval operation binding the contract event 0x5a92c2530f207992057b9c3e544108ffce3beda4a63719f316967c49bf6159d2.
Solidity: event MemberRegistered(uint256 pubkey, uint256 index)
func (*RLNFilterer) FilterMemberWithdrawn ¶
func (_RLN *RLNFilterer) FilterMemberWithdrawn(opts *bind.FilterOpts) (*RLNMemberWithdrawnIterator, error)
FilterMemberWithdrawn is a free log retrieval operation binding the contract event 0x62ec3a516d22a993ce5cb4e7593e878c74f4d799dde522a88dc27a994fd5a943.
Solidity: event MemberWithdrawn(uint256 pubkey, uint256 index)
func (*RLNFilterer) ParseMemberRegistered ¶
func (_RLN *RLNFilterer) ParseMemberRegistered(log types.Log) (*RLNMemberRegistered, error)
ParseMemberRegistered is a log parse operation binding the contract event 0x5a92c2530f207992057b9c3e544108ffce3beda4a63719f316967c49bf6159d2.
Solidity: event MemberRegistered(uint256 pubkey, uint256 index)
func (*RLNFilterer) ParseMemberWithdrawn ¶
func (_RLN *RLNFilterer) ParseMemberWithdrawn(log types.Log) (*RLNMemberWithdrawn, error)
ParseMemberWithdrawn is a log parse operation binding the contract event 0x62ec3a516d22a993ce5cb4e7593e878c74f4d799dde522a88dc27a994fd5a943.
Solidity: event MemberWithdrawn(uint256 pubkey, uint256 index)
func (*RLNFilterer) WatchMemberRegistered ¶
func (_RLN *RLNFilterer) WatchMemberRegistered(opts *bind.WatchOpts, sink chan<- *RLNMemberRegistered) (event.Subscription, error)
WatchMemberRegistered is a free log subscription operation binding the contract event 0x5a92c2530f207992057b9c3e544108ffce3beda4a63719f316967c49bf6159d2.
Solidity: event MemberRegistered(uint256 pubkey, uint256 index)
func (*RLNFilterer) WatchMemberWithdrawn ¶
func (_RLN *RLNFilterer) WatchMemberWithdrawn(opts *bind.WatchOpts, sink chan<- *RLNMemberWithdrawn) (event.Subscription, error)
WatchMemberWithdrawn is a free log subscription operation binding the contract event 0x62ec3a516d22a993ce5cb4e7593e878c74f4d799dde522a88dc27a994fd5a943.
Solidity: event MemberWithdrawn(uint256 pubkey, uint256 index)
type RLNMemberRegistered ¶
type RLNMemberRegistered struct { Pubkey *big.Int Index *big.Int Raw types.Log // Blockchain specific contextual infos }
RLNMemberRegistered represents a MemberRegistered event raised by the RLN contract.
type RLNMemberRegisteredIterator ¶
type RLNMemberRegisteredIterator struct { Event *RLNMemberRegistered // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RLNMemberRegisteredIterator is returned from FilterMemberRegistered and is used to iterate over the raw logs and unpacked data for MemberRegistered events raised by the RLN contract.
func (*RLNMemberRegisteredIterator) Close ¶
func (it *RLNMemberRegisteredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RLNMemberRegisteredIterator) Error ¶
func (it *RLNMemberRegisteredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RLNMemberRegisteredIterator) Next ¶
func (it *RLNMemberRegisteredIterator) 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 RLNMemberWithdrawn ¶
type RLNMemberWithdrawn struct { Pubkey *big.Int Index *big.Int Raw types.Log // Blockchain specific contextual infos }
RLNMemberWithdrawn represents a MemberWithdrawn event raised by the RLN contract.
type RLNMemberWithdrawnIterator ¶
type RLNMemberWithdrawnIterator struct { Event *RLNMemberWithdrawn // Event containing the contract specifics and raw log // contains filtered or unexported fields }
RLNMemberWithdrawnIterator is returned from FilterMemberWithdrawn and is used to iterate over the raw logs and unpacked data for MemberWithdrawn events raised by the RLN contract.
func (*RLNMemberWithdrawnIterator) Close ¶
func (it *RLNMemberWithdrawnIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*RLNMemberWithdrawnIterator) Error ¶
func (it *RLNMemberWithdrawnIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*RLNMemberWithdrawnIterator) Next ¶
func (it *RLNMemberWithdrawnIterator) 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 RLNRaw ¶
type RLNRaw struct {
Contract *RLN // Generic contract binding to access the raw methods on
}
RLNRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*RLNRaw) Call ¶
func (_RLN *RLNRaw) 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 (*RLNRaw) Transact ¶
func (_RLN *RLNRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RLNRaw) Transfer ¶
func (_RLN *RLNRaw) 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 RLNSession ¶
type RLNSession struct { Contract *RLN // 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 }
RLNSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*RLNSession) DEPTH ¶
func (_RLN *RLNSession) DEPTH() (*big.Int, error)
DEPTH is a free data retrieval call binding the contract method 0x98366e35.
Solidity: function DEPTH() view returns(uint256)
func (*RLNSession) MEMBERSHIPDEPOSIT ¶
func (_RLN *RLNSession) MEMBERSHIPDEPOSIT() (*big.Int, error)
MEMBERSHIPDEPOSIT is a free data retrieval call binding the contract method 0xf220b9ec.
Solidity: function MEMBERSHIP_DEPOSIT() view returns(uint256)
func (*RLNSession) Members ¶
Members is a free data retrieval call binding the contract method 0x5daf08ca.
Solidity: function members(uint256 ) view returns(uint256)
func (*RLNSession) PoseidonHasher ¶
func (_RLN *RLNSession) PoseidonHasher() (common.Address, error)
PoseidonHasher is a free data retrieval call binding the contract method 0x331b6ab3.
Solidity: function poseidonHasher() view returns(address)
func (*RLNSession) PubkeyIndex ¶
func (_RLN *RLNSession) PubkeyIndex() (*big.Int, error)
PubkeyIndex is a free data retrieval call binding the contract method 0x61579a93.
Solidity: function pubkeyIndex() view returns(uint256)
func (*RLNSession) Register ¶
func (_RLN *RLNSession) Register(pubkey *big.Int) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0xf207564e.
Solidity: function register(uint256 pubkey) payable returns()
func (*RLNSession) RegisterBatch ¶
func (_RLN *RLNSession) RegisterBatch(pubkeys []*big.Int) (*types.Transaction, error)
RegisterBatch is a paid mutator transaction binding the contract method 0x69e4863f.
Solidity: function registerBatch(uint256[] pubkeys) payable returns()
func (*RLNSession) SETSIZE ¶
func (_RLN *RLNSession) SETSIZE() (*big.Int, error)
SETSIZE is a free data retrieval call binding the contract method 0xd0383d68.
Solidity: function SET_SIZE() view returns(uint256)
func (*RLNSession) Withdraw ¶
func (_RLN *RLNSession) Withdraw(secret *big.Int, _pubkeyIndex *big.Int, receiver common.Address) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x0ad58d2f.
Solidity: function withdraw(uint256 secret, uint256 _pubkeyIndex, address receiver) returns()
func (*RLNSession) WithdrawBatch ¶
func (_RLN *RLNSession) WithdrawBatch(secrets []*big.Int, pubkeyIndexes []*big.Int, receivers []common.Address) (*types.Transaction, error)
WithdrawBatch is a paid mutator transaction binding the contract method 0xa9d85eba.
Solidity: function withdrawBatch(uint256[] secrets, uint256[] pubkeyIndexes, address[] receivers) returns()
type RLNTransactor ¶
type RLNTransactor struct {
// contains filtered or unexported fields
}
RLNTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewRLNTransactor ¶
func NewRLNTransactor(address common.Address, transactor bind.ContractTransactor) (*RLNTransactor, error)
NewRLNTransactor creates a new write-only instance of RLN, bound to a specific deployed contract.
func (*RLNTransactor) Register ¶
func (_RLN *RLNTransactor) Register(opts *bind.TransactOpts, pubkey *big.Int) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0xf207564e.
Solidity: function register(uint256 pubkey) payable returns()
func (*RLNTransactor) RegisterBatch ¶
func (_RLN *RLNTransactor) RegisterBatch(opts *bind.TransactOpts, pubkeys []*big.Int) (*types.Transaction, error)
RegisterBatch is a paid mutator transaction binding the contract method 0x69e4863f.
Solidity: function registerBatch(uint256[] pubkeys) payable returns()
func (*RLNTransactor) Withdraw ¶
func (_RLN *RLNTransactor) Withdraw(opts *bind.TransactOpts, secret *big.Int, _pubkeyIndex *big.Int, receiver common.Address) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x0ad58d2f.
Solidity: function withdraw(uint256 secret, uint256 _pubkeyIndex, address receiver) returns()
func (*RLNTransactor) WithdrawBatch ¶
func (_RLN *RLNTransactor) WithdrawBatch(opts *bind.TransactOpts, secrets []*big.Int, pubkeyIndexes []*big.Int, receivers []common.Address) (*types.Transaction, error)
WithdrawBatch is a paid mutator transaction binding the contract method 0xa9d85eba.
Solidity: function withdrawBatch(uint256[] secrets, uint256[] pubkeyIndexes, address[] receivers) returns()
type RLNTransactorRaw ¶
type RLNTransactorRaw struct {
Contract *RLNTransactor // Generic write-only contract binding to access the raw methods on
}
RLNTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*RLNTransactorRaw) Transact ¶
func (_RLN *RLNTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*RLNTransactorRaw) Transfer ¶
func (_RLN *RLNTransactorRaw) 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 RLNTransactorSession ¶
type RLNTransactorSession struct { Contract *RLNTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
RLNTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*RLNTransactorSession) Register ¶
func (_RLN *RLNTransactorSession) Register(pubkey *big.Int) (*types.Transaction, error)
Register is a paid mutator transaction binding the contract method 0xf207564e.
Solidity: function register(uint256 pubkey) payable returns()
func (*RLNTransactorSession) RegisterBatch ¶
func (_RLN *RLNTransactorSession) RegisterBatch(pubkeys []*big.Int) (*types.Transaction, error)
RegisterBatch is a paid mutator transaction binding the contract method 0x69e4863f.
Solidity: function registerBatch(uint256[] pubkeys) payable returns()
func (*RLNTransactorSession) Withdraw ¶
func (_RLN *RLNTransactorSession) Withdraw(secret *big.Int, _pubkeyIndex *big.Int, receiver common.Address) (*types.Transaction, error)
Withdraw is a paid mutator transaction binding the contract method 0x0ad58d2f.
Solidity: function withdraw(uint256 secret, uint256 _pubkeyIndex, address receiver) returns()
func (*RLNTransactorSession) WithdrawBatch ¶
func (_RLN *RLNTransactorSession) WithdrawBatch(secrets []*big.Int, pubkeyIndexes []*big.Int, receivers []common.Address) (*types.Transaction, error)
WithdrawBatch is a paid mutator transaction binding the contract method 0xa9d85eba.
Solidity: function withdrawBatch(uint256[] secrets, uint256[] pubkeyIndexes, address[] receivers) returns()