2023-08-30 22:00:14 +00:00
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package contracts
import (
"errors"
"math/big"
"strings"
ethereum "github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
var (
_ = errors . New
_ = big . NewInt
_ = strings . NewReader
_ = ethereum . NotFound
_ = bind . Bind
_ = common . Big1
_ = types . BloomLookup
_ = event . NewSubscription
_ = abi . ConvertType
)
// RLNRegistryMetaData contains all meta data concerning the RLNRegistry contract.
var RLNRegistryMetaData = & bind . MetaData {
ABI : "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_poseidonHasher\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"IncompatibleStorage\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"IncompatibleStorageIndex\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoStorageContractAvailable\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"storageAddress\",\"type\":\"address\"}],\"name\":\"StorageAlreadyExists\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint16\",\"name\":\"index\",\"type\":\"uint16\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"storageAddress\",\"type\":\"address\"}],\"name\":\"NewStorageContract\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"forceProgress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nextStorageIndex\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poseidonHasher\",\"outputs\":[{\"internalType\":\"contractIPoseidonHasher\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"storageIndex\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"commitment\",\"type\":\"uint256\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[]\",\"name\":\"commitments\",\"type\":\"uint256[]\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"storageIndex\",\"type\":\"uint16\"},{\"internalType\":\"uint256[]\",\"name\":\"commitments\",\"type\":\"uint256[]\"}],\"name\":\"register\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"storageAddress\",\"type\":\"address\"}],\"name\":\"registerStorage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"name\":\"storages\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"usingStorageIndex\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]" ,
2023-09-04 20:23:49 +00:00
Bin : " 0x60a06040526000600260006101000a81548161ffff021916908361ffff1602179055503480156200002f57600080fd5b5060405162002f6838038062002f688339818101604052810190620000559190620001e6565b6200007562000069620000b060201b60201c565b620000b860201b60201c565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505062000218565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001ae8262000181565b9050919050565b620001c081620001a1565b8114620001cc57600080fd5b50565b600081519050620001e081620001b5565b92915050565b600060208284031215620001ff57620001fe6200017c565b5b60006200020f84828501620001cf565b91505092915050565b608051612d2662000242600039600081816103e2015281816104120152610ad80152612d266000f3fe60806040523480156200001157600080fd5b5060043610620000e25760003560e01c8063ab02492a1162000099578063ef653d5e116200006f578063ef653d5e14620001d1578063f184ef4c14620001f1578063f2fde38b1462000213578063f5542147146200023357620000e2565b8063ab02492a1462000183578063cf61637414620001a3578063d44fda1f14620001c557620000e2565b806326e0fc1f14620000e7578063331b6ab3146200010757806342f542e21462000129578063715018a614620001355780637a34289d14620001415780638da5cb5b1462000161575b600080fd5b620001056004803603810190620000ff919062001045565b62000269565b005b62000111620003e0565b60405162000120919062001117565b60405180910390f35b6200013362000404565b005b6200013f6200048b565b005b6200015f6004803603810190620001599190620011a2565b620004a3565b005b6200016b6200075f565b6040516200017a91906200121c565b60405180910390f35b620001a160048036038101906200019b919062001239565b62000788565b005b620001ad6200088b565b604051620001bc9190620012b4565b60405180910390f35b620001cf6200089f565b005b620001ef6004803603810190620001e9919062001302565b62000a09565b005b620001fb62000c9e565b6040516200020a9190620012b4565b60405180910390f35b6200023160048036038101906200022b919062001302565b62000cb2565b005b6200025160048036038101906200024b919062001334565b62000d3c565b6040516200026091906200121c565b60405180910390f35b600060149054906101000a900461ffff1661ffff168261ffff1610620002bb576040517fd23276a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000600167ffffffffffffffff811115620002db57620002da62001366565b5b6040519080825280602002602001820160405280156200030a5781602001602082028036833780820191505090505b509050818160008151811062000325576200032462001395565b5b602002602001018181525050600160008461ffff1661ffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637a34289d826040518263ffffffff1660e01b8152600401620003a7919062001492565b600060405180830381600087803b158015620003c257600080fd5b505af1158015620003d7573d6000803e3d6000fd5b50505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6200040e62000d6f565b60007f0000000000000000000000000000000000000000000000000000000000000000600060149054906101000a900461ffff16604051620004509062000fb3565b6200045d929190620014b6565b604051809103906000f0801580156200047a573d6000803e3d6000fd5b509050620004888162000df4565b50565b6200049562000d6f565b620004a1600062000ee7565b565b600060149054906101000a900461ffff1661ffff16600260009054906101000a900461ffff1661ffff161062000505576040517fd23276a200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b6001156200075b5760016000600260009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637a34289d83836040518363ffffffff1660e01b8152600401620005969291906200155a565b600060405180830381600087803b158015620005b157600080fd5b505af192505050
2023-08-30 22:00:14 +00:00
}
// RLNRegistryABI is the input ABI used to generate the binding from.
// Deprecated: Use RLNRegistryMetaData.ABI instead.
var RLNRegistryABI = RLNRegistryMetaData . ABI
// RLNRegistryBin is the compiled bytecode used for deploying new contracts.
// Deprecated: Use RLNRegistryMetaData.Bin instead.
var RLNRegistryBin = RLNRegistryMetaData . Bin
// DeployRLNRegistry deploys a new Ethereum contract, binding an instance of RLNRegistry to it.
func DeployRLNRegistry ( auth * bind . TransactOpts , backend bind . ContractBackend , _poseidonHasher common . Address ) ( common . Address , * types . Transaction , * RLNRegistry , error ) {
parsed , err := RLNRegistryMetaData . GetAbi ( )
if err != nil {
return common . Address { } , nil , nil , err
}
if parsed == nil {
return common . Address { } , nil , nil , errors . New ( "GetABI returned nil" )
}
address , tx , contract , err := bind . DeployContract ( auth , * parsed , common . FromHex ( RLNRegistryBin ) , backend , _poseidonHasher )
if err != nil {
return common . Address { } , nil , nil , err
}
return address , tx , & RLNRegistry { RLNRegistryCaller : RLNRegistryCaller { contract : contract } , RLNRegistryTransactor : RLNRegistryTransactor { contract : contract } , RLNRegistryFilterer : RLNRegistryFilterer { contract : contract } } , nil
}
// RLNRegistry is an auto generated Go binding around an Ethereum contract.
type RLNRegistry struct {
RLNRegistryCaller // Read-only binding to the contract
RLNRegistryTransactor // Write-only binding to the contract
RLNRegistryFilterer // Log filterer for contract events
}
// RLNRegistryCaller is an auto generated read-only Go binding around an Ethereum contract.
type RLNRegistryCaller struct {
contract * bind . BoundContract // Generic contract wrapper for the low level calls
}
// RLNRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract.
type RLNRegistryTransactor struct {
contract * bind . BoundContract // Generic contract wrapper for the low level calls
}
// RLNRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
type RLNRegistryFilterer struct {
contract * bind . BoundContract // Generic contract wrapper for the low level calls
}
// RLNRegistrySession is an auto generated Go binding around an Ethereum contract,
// with pre-set call and transact options.
type RLNRegistrySession struct {
Contract * RLNRegistry // 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
}
// RLNRegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract,
// with pre-set call options.
type RLNRegistryCallerSession struct {
Contract * RLNRegistryCaller // Generic contract caller binding to set the session for
CallOpts bind . CallOpts // Call options to use throughout this session
}
// RLNRegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
// with pre-set transact options.
type RLNRegistryTransactorSession struct {
Contract * RLNRegistryTransactor // Generic contract transactor binding to set the session for
TransactOpts bind . TransactOpts // Transaction auth options to use throughout this session
}
// RLNRegistryRaw is an auto generated low-level Go binding around an Ethereum contract.
type RLNRegistryRaw struct {
Contract * RLNRegistry // Generic contract binding to access the raw methods on
}
// RLNRegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
type RLNRegistryCallerRaw struct {
Contract * RLNRegistryCaller // Generic read-only contract binding to access the raw methods on
}
// RLNRegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
type RLNRegistryTransactorRaw struct {
Contract * RLNRegistryTransactor // Generic write-only contract binding to access the raw methods on
}
// NewRLNRegistry creates a new instance of RLNRegistry, bound to a specific deployed contract.
func NewRLNRegistry ( address common . Address , backend bind . ContractBackend ) ( * RLNRegistry , error ) {
contract , err := bindRLNRegistry ( address , backend , backend , backend )
if err != nil {
return nil , err
}
return & RLNRegistry { RLNRegistryCaller : RLNRegistryCaller { contract : contract } , RLNRegistryTransactor : RLNRegistryTransactor { contract : contract } , RLNRegistryFilterer : RLNRegistryFilterer { contract : contract } } , nil
}
// NewRLNRegistryCaller creates a new read-only instance of RLNRegistry, bound to a specific deployed contract.
func NewRLNRegistryCaller ( address common . Address , caller bind . ContractCaller ) ( * RLNRegistryCaller , error ) {
contract , err := bindRLNRegistry ( address , caller , nil , nil )
if err != nil {
return nil , err
}
return & RLNRegistryCaller { contract : contract } , nil
}
// NewRLNRegistryTransactor creates a new write-only instance of RLNRegistry, bound to a specific deployed contract.
func NewRLNRegistryTransactor ( address common . Address , transactor bind . ContractTransactor ) ( * RLNRegistryTransactor , error ) {
contract , err := bindRLNRegistry ( address , nil , transactor , nil )
if err != nil {
return nil , err
}
return & RLNRegistryTransactor { contract : contract } , nil
}
// NewRLNRegistryFilterer creates a new log filterer instance of RLNRegistry, bound to a specific deployed contract.
func NewRLNRegistryFilterer ( address common . Address , filterer bind . ContractFilterer ) ( * RLNRegistryFilterer , error ) {
contract , err := bindRLNRegistry ( address , nil , nil , filterer )
if err != nil {
return nil , err
}
return & RLNRegistryFilterer { contract : contract } , nil
}
// bindRLNRegistry binds a generic wrapper to an already deployed contract.
func bindRLNRegistry ( address common . Address , caller bind . ContractCaller , transactor bind . ContractTransactor , filterer bind . ContractFilterer ) ( * bind . BoundContract , error ) {
parsed , err := RLNRegistryMetaData . GetAbi ( )
if err != nil {
return nil , err
}
return bind . NewBoundContract ( address , * parsed , caller , transactor , filterer ) , nil
}
// 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 ( _RLNRegistry * RLNRegistryRaw ) Call ( opts * bind . CallOpts , result * [ ] interface { } , method string , params ... interface { } ) error {
return _RLNRegistry . Contract . RLNRegistryCaller . contract . Call ( opts , result , method , params ... )
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func ( _RLNRegistry * RLNRegistryRaw ) Transfer ( opts * bind . TransactOpts ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . RLNRegistryTransactor . contract . Transfer ( opts )
}
// Transact invokes the (paid) contract method with params as input values.
func ( _RLNRegistry * RLNRegistryRaw ) Transact ( opts * bind . TransactOpts , method string , params ... interface { } ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . RLNRegistryTransactor . contract . Transact ( opts , method , params ... )
}
// 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 ( _RLNRegistry * RLNRegistryCallerRaw ) Call ( opts * bind . CallOpts , result * [ ] interface { } , method string , params ... interface { } ) error {
return _RLNRegistry . Contract . contract . Call ( opts , result , method , params ... )
}
// Transfer initiates a plain transaction to move funds to the contract, calling
// its default method if one is available.
func ( _RLNRegistry * RLNRegistryTransactorRaw ) Transfer ( opts * bind . TransactOpts ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . contract . Transfer ( opts )
}
// Transact invokes the (paid) contract method with params as input values.
func ( _RLNRegistry * RLNRegistryTransactorRaw ) Transact ( opts * bind . TransactOpts , method string , params ... interface { } ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . contract . Transact ( opts , method , params ... )
}
// NextStorageIndex is a free data retrieval call binding the contract method 0xf184ef4c.
//
// Solidity: function nextStorageIndex() view returns(uint16)
func ( _RLNRegistry * RLNRegistryCaller ) NextStorageIndex ( opts * bind . CallOpts ) ( uint16 , error ) {
var out [ ] interface { }
err := _RLNRegistry . contract . Call ( opts , & out , "nextStorageIndex" )
if err != nil {
return * new ( uint16 ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( uint16 ) ) . ( * uint16 )
return out0 , err
}
// NextStorageIndex is a free data retrieval call binding the contract method 0xf184ef4c.
//
// Solidity: function nextStorageIndex() view returns(uint16)
func ( _RLNRegistry * RLNRegistrySession ) NextStorageIndex ( ) ( uint16 , error ) {
return _RLNRegistry . Contract . NextStorageIndex ( & _RLNRegistry . CallOpts )
}
// NextStorageIndex is a free data retrieval call binding the contract method 0xf184ef4c.
//
// Solidity: function nextStorageIndex() view returns(uint16)
func ( _RLNRegistry * RLNRegistryCallerSession ) NextStorageIndex ( ) ( uint16 , error ) {
return _RLNRegistry . Contract . NextStorageIndex ( & _RLNRegistry . CallOpts )
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func ( _RLNRegistry * RLNRegistryCaller ) Owner ( opts * bind . CallOpts ) ( common . Address , error ) {
var out [ ] interface { }
err := _RLNRegistry . contract . Call ( opts , & out , "owner" )
if err != nil {
return * new ( common . Address ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( common . Address ) ) . ( * common . Address )
return out0 , err
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func ( _RLNRegistry * RLNRegistrySession ) Owner ( ) ( common . Address , error ) {
return _RLNRegistry . Contract . Owner ( & _RLNRegistry . CallOpts )
}
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
//
// Solidity: function owner() view returns(address)
func ( _RLNRegistry * RLNRegistryCallerSession ) Owner ( ) ( common . Address , error ) {
return _RLNRegistry . Contract . Owner ( & _RLNRegistry . CallOpts )
}
// PoseidonHasher is a free data retrieval call binding the contract method 0x331b6ab3.
//
// Solidity: function poseidonHasher() view returns(address)
func ( _RLNRegistry * RLNRegistryCaller ) PoseidonHasher ( opts * bind . CallOpts ) ( common . Address , error ) {
var out [ ] interface { }
err := _RLNRegistry . contract . Call ( opts , & out , "poseidonHasher" )
if err != nil {
return * new ( common . Address ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( common . Address ) ) . ( * common . Address )
return out0 , err
}
// PoseidonHasher is a free data retrieval call binding the contract method 0x331b6ab3.
//
// Solidity: function poseidonHasher() view returns(address)
func ( _RLNRegistry * RLNRegistrySession ) PoseidonHasher ( ) ( common . Address , error ) {
return _RLNRegistry . Contract . PoseidonHasher ( & _RLNRegistry . CallOpts )
}
// PoseidonHasher is a free data retrieval call binding the contract method 0x331b6ab3.
//
// Solidity: function poseidonHasher() view returns(address)
func ( _RLNRegistry * RLNRegistryCallerSession ) PoseidonHasher ( ) ( common . Address , error ) {
return _RLNRegistry . Contract . PoseidonHasher ( & _RLNRegistry . CallOpts )
}
// Storages is a free data retrieval call binding the contract method 0xf5542147.
//
// Solidity: function storages(uint16 ) view returns(address)
func ( _RLNRegistry * RLNRegistryCaller ) Storages ( opts * bind . CallOpts , arg0 uint16 ) ( common . Address , error ) {
var out [ ] interface { }
err := _RLNRegistry . contract . Call ( opts , & out , "storages" , arg0 )
if err != nil {
return * new ( common . Address ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( common . Address ) ) . ( * common . Address )
return out0 , err
}
// Storages is a free data retrieval call binding the contract method 0xf5542147.
//
// Solidity: function storages(uint16 ) view returns(address)
func ( _RLNRegistry * RLNRegistrySession ) Storages ( arg0 uint16 ) ( common . Address , error ) {
return _RLNRegistry . Contract . Storages ( & _RLNRegistry . CallOpts , arg0 )
}
// Storages is a free data retrieval call binding the contract method 0xf5542147.
//
// Solidity: function storages(uint16 ) view returns(address)
func ( _RLNRegistry * RLNRegistryCallerSession ) Storages ( arg0 uint16 ) ( common . Address , error ) {
return _RLNRegistry . Contract . Storages ( & _RLNRegistry . CallOpts , arg0 )
}
// UsingStorageIndex is a free data retrieval call binding the contract method 0xcf616374.
//
// Solidity: function usingStorageIndex() view returns(uint16)
func ( _RLNRegistry * RLNRegistryCaller ) UsingStorageIndex ( opts * bind . CallOpts ) ( uint16 , error ) {
var out [ ] interface { }
err := _RLNRegistry . contract . Call ( opts , & out , "usingStorageIndex" )
if err != nil {
return * new ( uint16 ) , err
}
out0 := * abi . ConvertType ( out [ 0 ] , new ( uint16 ) ) . ( * uint16 )
return out0 , err
}
// UsingStorageIndex is a free data retrieval call binding the contract method 0xcf616374.
//
// Solidity: function usingStorageIndex() view returns(uint16)
func ( _RLNRegistry * RLNRegistrySession ) UsingStorageIndex ( ) ( uint16 , error ) {
return _RLNRegistry . Contract . UsingStorageIndex ( & _RLNRegistry . CallOpts )
}
// UsingStorageIndex is a free data retrieval call binding the contract method 0xcf616374.
//
// Solidity: function usingStorageIndex() view returns(uint16)
func ( _RLNRegistry * RLNRegistryCallerSession ) UsingStorageIndex ( ) ( uint16 , error ) {
return _RLNRegistry . Contract . UsingStorageIndex ( & _RLNRegistry . CallOpts )
}
// ForceProgress is a paid mutator transaction binding the contract method 0xd44fda1f.
//
// Solidity: function forceProgress() returns()
func ( _RLNRegistry * RLNRegistryTransactor ) ForceProgress ( opts * bind . TransactOpts ) ( * types . Transaction , error ) {
return _RLNRegistry . contract . Transact ( opts , "forceProgress" )
}
// ForceProgress is a paid mutator transaction binding the contract method 0xd44fda1f.
//
// Solidity: function forceProgress() returns()
func ( _RLNRegistry * RLNRegistrySession ) ForceProgress ( ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . ForceProgress ( & _RLNRegistry . TransactOpts )
}
// ForceProgress is a paid mutator transaction binding the contract method 0xd44fda1f.
//
// Solidity: function forceProgress() returns()
func ( _RLNRegistry * RLNRegistryTransactorSession ) ForceProgress ( ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . ForceProgress ( & _RLNRegistry . TransactOpts )
}
// NewStorage is a paid mutator transaction binding the contract method 0x42f542e2.
//
// Solidity: function newStorage() returns()
func ( _RLNRegistry * RLNRegistryTransactor ) NewStorage ( opts * bind . TransactOpts ) ( * types . Transaction , error ) {
return _RLNRegistry . contract . Transact ( opts , "newStorage" )
}
// NewStorage is a paid mutator transaction binding the contract method 0x42f542e2.
//
// Solidity: function newStorage() returns()
func ( _RLNRegistry * RLNRegistrySession ) NewStorage ( ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . NewStorage ( & _RLNRegistry . TransactOpts )
}
// NewStorage is a paid mutator transaction binding the contract method 0x42f542e2.
//
// Solidity: function newStorage() returns()
func ( _RLNRegistry * RLNRegistryTransactorSession ) NewStorage ( ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . NewStorage ( & _RLNRegistry . TransactOpts )
}
// Register is a paid mutator transaction binding the contract method 0x26e0fc1f.
//
// Solidity: function register(uint16 storageIndex, uint256 commitment) returns()
func ( _RLNRegistry * RLNRegistryTransactor ) Register ( opts * bind . TransactOpts , storageIndex uint16 , commitment * big . Int ) ( * types . Transaction , error ) {
return _RLNRegistry . contract . Transact ( opts , "register" , storageIndex , commitment )
}
// Register is a paid mutator transaction binding the contract method 0x26e0fc1f.
//
// Solidity: function register(uint16 storageIndex, uint256 commitment) returns()
func ( _RLNRegistry * RLNRegistrySession ) Register ( storageIndex uint16 , commitment * big . Int ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . Register ( & _RLNRegistry . TransactOpts , storageIndex , commitment )
}
// Register is a paid mutator transaction binding the contract method 0x26e0fc1f.
//
// Solidity: function register(uint16 storageIndex, uint256 commitment) returns()
func ( _RLNRegistry * RLNRegistryTransactorSession ) Register ( storageIndex uint16 , commitment * big . Int ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . Register ( & _RLNRegistry . TransactOpts , storageIndex , commitment )
}
// Register0 is a paid mutator transaction binding the contract method 0x7a34289d.
//
// Solidity: function register(uint256[] commitments) returns()
func ( _RLNRegistry * RLNRegistryTransactor ) Register0 ( opts * bind . TransactOpts , commitments [ ] * big . Int ) ( * types . Transaction , error ) {
return _RLNRegistry . contract . Transact ( opts , "register0" , commitments )
}
// Register0 is a paid mutator transaction binding the contract method 0x7a34289d.
//
// Solidity: function register(uint256[] commitments) returns()
func ( _RLNRegistry * RLNRegistrySession ) Register0 ( commitments [ ] * big . Int ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . Register0 ( & _RLNRegistry . TransactOpts , commitments )
}
// Register0 is a paid mutator transaction binding the contract method 0x7a34289d.
//
// Solidity: function register(uint256[] commitments) returns()
func ( _RLNRegistry * RLNRegistryTransactorSession ) Register0 ( commitments [ ] * big . Int ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . Register0 ( & _RLNRegistry . TransactOpts , commitments )
}
// Register1 is a paid mutator transaction binding the contract method 0xab02492a.
//
// Solidity: function register(uint16 storageIndex, uint256[] commitments) returns()
func ( _RLNRegistry * RLNRegistryTransactor ) Register1 ( opts * bind . TransactOpts , storageIndex uint16 , commitments [ ] * big . Int ) ( * types . Transaction , error ) {
return _RLNRegistry . contract . Transact ( opts , "register1" , storageIndex , commitments )
}
// Register1 is a paid mutator transaction binding the contract method 0xab02492a.
//
// Solidity: function register(uint16 storageIndex, uint256[] commitments) returns()
func ( _RLNRegistry * RLNRegistrySession ) Register1 ( storageIndex uint16 , commitments [ ] * big . Int ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . Register1 ( & _RLNRegistry . TransactOpts , storageIndex , commitments )
}
// Register1 is a paid mutator transaction binding the contract method 0xab02492a.
//
// Solidity: function register(uint16 storageIndex, uint256[] commitments) returns()
func ( _RLNRegistry * RLNRegistryTransactorSession ) Register1 ( storageIndex uint16 , commitments [ ] * big . Int ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . Register1 ( & _RLNRegistry . TransactOpts , storageIndex , commitments )
}
// RegisterStorage is a paid mutator transaction binding the contract method 0xef653d5e.
//
// Solidity: function registerStorage(address storageAddress) returns()
func ( _RLNRegistry * RLNRegistryTransactor ) RegisterStorage ( opts * bind . TransactOpts , storageAddress common . Address ) ( * types . Transaction , error ) {
return _RLNRegistry . contract . Transact ( opts , "registerStorage" , storageAddress )
}
// RegisterStorage is a paid mutator transaction binding the contract method 0xef653d5e.
//
// Solidity: function registerStorage(address storageAddress) returns()
func ( _RLNRegistry * RLNRegistrySession ) RegisterStorage ( storageAddress common . Address ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . RegisterStorage ( & _RLNRegistry . TransactOpts , storageAddress )
}
// RegisterStorage is a paid mutator transaction binding the contract method 0xef653d5e.
//
// Solidity: function registerStorage(address storageAddress) returns()
func ( _RLNRegistry * RLNRegistryTransactorSession ) RegisterStorage ( storageAddress common . Address ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . RegisterStorage ( & _RLNRegistry . TransactOpts , storageAddress )
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func ( _RLNRegistry * RLNRegistryTransactor ) RenounceOwnership ( opts * bind . TransactOpts ) ( * types . Transaction , error ) {
return _RLNRegistry . contract . Transact ( opts , "renounceOwnership" )
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func ( _RLNRegistry * RLNRegistrySession ) RenounceOwnership ( ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . RenounceOwnership ( & _RLNRegistry . TransactOpts )
}
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
//
// Solidity: function renounceOwnership() returns()
func ( _RLNRegistry * RLNRegistryTransactorSession ) RenounceOwnership ( ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . RenounceOwnership ( & _RLNRegistry . TransactOpts )
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func ( _RLNRegistry * RLNRegistryTransactor ) TransferOwnership ( opts * bind . TransactOpts , newOwner common . Address ) ( * types . Transaction , error ) {
return _RLNRegistry . contract . Transact ( opts , "transferOwnership" , newOwner )
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func ( _RLNRegistry * RLNRegistrySession ) TransferOwnership ( newOwner common . Address ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . TransferOwnership ( & _RLNRegistry . TransactOpts , newOwner )
}
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
//
// Solidity: function transferOwnership(address newOwner) returns()
func ( _RLNRegistry * RLNRegistryTransactorSession ) TransferOwnership ( newOwner common . Address ) ( * types . Transaction , error ) {
return _RLNRegistry . Contract . TransferOwnership ( & _RLNRegistry . TransactOpts , newOwner )
}
// RLNRegistryNewStorageContractIterator is returned from FilterNewStorageContract and is used to iterate over the raw logs and unpacked data for NewStorageContract events raised by the RLNRegistry contract.
type RLNRegistryNewStorageContractIterator struct {
Event * RLNRegistryNewStorageContract // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * RLNRegistryNewStorageContractIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( RLNRegistryNewStorageContract )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( RLNRegistryNewStorageContract )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * RLNRegistryNewStorageContractIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * RLNRegistryNewStorageContractIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// RLNRegistryNewStorageContract represents a NewStorageContract event raised by the RLNRegistry contract.
type RLNRegistryNewStorageContract struct {
Index uint16
StorageAddress common . Address
Raw types . Log // Blockchain specific contextual infos
}
// FilterNewStorageContract is a free log retrieval operation binding the contract event 0xcf6a3b406170499209d0fcf152a1605c7c5a5c99c855e2bb803433fc960718eb.
//
// Solidity: event NewStorageContract(uint16 index, address storageAddress)
func ( _RLNRegistry * RLNRegistryFilterer ) FilterNewStorageContract ( opts * bind . FilterOpts ) ( * RLNRegistryNewStorageContractIterator , error ) {
logs , sub , err := _RLNRegistry . contract . FilterLogs ( opts , "NewStorageContract" )
if err != nil {
return nil , err
}
return & RLNRegistryNewStorageContractIterator { contract : _RLNRegistry . contract , event : "NewStorageContract" , logs : logs , sub : sub } , nil
}
// WatchNewStorageContract is a free log subscription operation binding the contract event 0xcf6a3b406170499209d0fcf152a1605c7c5a5c99c855e2bb803433fc960718eb.
//
// Solidity: event NewStorageContract(uint16 index, address storageAddress)
func ( _RLNRegistry * RLNRegistryFilterer ) WatchNewStorageContract ( opts * bind . WatchOpts , sink chan <- * RLNRegistryNewStorageContract ) ( event . Subscription , error ) {
logs , sub , err := _RLNRegistry . contract . WatchLogs ( opts , "NewStorageContract" )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( RLNRegistryNewStorageContract )
if err := _RLNRegistry . contract . UnpackLog ( event , "NewStorageContract" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
// ParseNewStorageContract is a log parse operation binding the contract event 0xcf6a3b406170499209d0fcf152a1605c7c5a5c99c855e2bb803433fc960718eb.
//
// Solidity: event NewStorageContract(uint16 index, address storageAddress)
func ( _RLNRegistry * RLNRegistryFilterer ) ParseNewStorageContract ( log types . Log ) ( * RLNRegistryNewStorageContract , error ) {
event := new ( RLNRegistryNewStorageContract )
if err := _RLNRegistry . contract . UnpackLog ( event , "NewStorageContract" , log ) ; err != nil {
return nil , err
}
event . Raw = log
return event , nil
}
// RLNRegistryOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the RLNRegistry contract.
type RLNRegistryOwnershipTransferredIterator struct {
Event * RLNRegistryOwnershipTransferred // Event containing the contract specifics and raw log
contract * bind . BoundContract // Generic contract to use for unpacking event data
event string // Event name to use for unpacking event data
logs chan types . Log // Log channel receiving the found contract events
sub ethereum . Subscription // Subscription for errors, completion and termination
done bool // Whether the subscription completed delivering logs
fail error // Occurred error to stop iteration
}
// 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.
func ( it * RLNRegistryOwnershipTransferredIterator ) Next ( ) bool {
// If the iterator failed, stop iterating
if it . fail != nil {
return false
}
// If the iterator completed, deliver directly whatever's available
if it . done {
select {
case log := <- it . logs :
it . Event = new ( RLNRegistryOwnershipTransferred )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
default :
return false
}
}
// Iterator still in progress, wait for either a data or an error event
select {
case log := <- it . logs :
it . Event = new ( RLNRegistryOwnershipTransferred )
if err := it . contract . UnpackLog ( it . Event , it . event , log ) ; err != nil {
it . fail = err
return false
}
it . Event . Raw = log
return true
case err := <- it . sub . Err ( ) :
it . done = true
it . fail = err
return it . Next ( )
}
}
// Error returns any retrieval or parsing error occurred during filtering.
func ( it * RLNRegistryOwnershipTransferredIterator ) Error ( ) error {
return it . fail
}
// Close terminates the iteration process, releasing any pending underlying
// resources.
func ( it * RLNRegistryOwnershipTransferredIterator ) Close ( ) error {
it . sub . Unsubscribe ( )
return nil
}
// RLNRegistryOwnershipTransferred represents a OwnershipTransferred event raised by the RLNRegistry contract.
type RLNRegistryOwnershipTransferred struct {
PreviousOwner common . Address
NewOwner common . Address
Raw types . Log // Blockchain specific contextual infos
}
// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
//
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func ( _RLNRegistry * RLNRegistryFilterer ) FilterOwnershipTransferred ( opts * bind . FilterOpts , previousOwner [ ] common . Address , newOwner [ ] common . Address ) ( * RLNRegistryOwnershipTransferredIterator , error ) {
var previousOwnerRule [ ] interface { }
for _ , previousOwnerItem := range previousOwner {
previousOwnerRule = append ( previousOwnerRule , previousOwnerItem )
}
var newOwnerRule [ ] interface { }
for _ , newOwnerItem := range newOwner {
newOwnerRule = append ( newOwnerRule , newOwnerItem )
}
logs , sub , err := _RLNRegistry . contract . FilterLogs ( opts , "OwnershipTransferred" , previousOwnerRule , newOwnerRule )
if err != nil {
return nil , err
}
return & RLNRegistryOwnershipTransferredIterator { contract : _RLNRegistry . contract , event : "OwnershipTransferred" , logs : logs , sub : sub } , nil
}
// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
//
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func ( _RLNRegistry * RLNRegistryFilterer ) WatchOwnershipTransferred ( opts * bind . WatchOpts , sink chan <- * RLNRegistryOwnershipTransferred , previousOwner [ ] common . Address , newOwner [ ] common . Address ) ( event . Subscription , error ) {
var previousOwnerRule [ ] interface { }
for _ , previousOwnerItem := range previousOwner {
previousOwnerRule = append ( previousOwnerRule , previousOwnerItem )
}
var newOwnerRule [ ] interface { }
for _ , newOwnerItem := range newOwner {
newOwnerRule = append ( newOwnerRule , newOwnerItem )
}
logs , sub , err := _RLNRegistry . contract . WatchLogs ( opts , "OwnershipTransferred" , previousOwnerRule , newOwnerRule )
if err != nil {
return nil , err
}
return event . NewSubscription ( func ( quit <- chan struct { } ) error {
defer sub . Unsubscribe ( )
for {
select {
case log := <- logs :
// New log arrived, parse the event and forward to the user
event := new ( RLNRegistryOwnershipTransferred )
if err := _RLNRegistry . contract . UnpackLog ( event , "OwnershipTransferred" , log ) ; err != nil {
return err
}
event . Raw = log
select {
case sink <- event :
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
case err := <- sub . Err ( ) :
return err
case <- quit :
return nil
}
}
} ) , nil
}
// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
//
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func ( _RLNRegistry * RLNRegistryFilterer ) ParseOwnershipTransferred ( log types . Log ) ( * RLNRegistryOwnershipTransferred , error ) {
event := new ( RLNRegistryOwnershipTransferred )
if err := _RLNRegistry . contract . UnpackLog ( event , "OwnershipTransferred" , log ) ; err != nil {
return nil , err
}
event . Raw = log
return event , nil
}