hermez

package
v1.6.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const HermezABI = "" /* 17580-byte string literal not displayed */

HermezABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hermez

type Hermez struct {
	HermezCaller     // Read-only binding to the contract
	HermezTransactor // Write-only binding to the contract
	HermezFilterer   // Log filterer for contract events
}

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

func NewHermez

func NewHermez(address common.Address, backend bind.ContractBackend) (*Hermez, error)

NewHermez creates a new instance of Hermez, bound to a specific deployed contract.

type HermezAddToken

type HermezAddToken struct {
	TokenAddress common.Address
	TokenID      uint32
	Raw          types.Log // Blockchain specific contextual infos
}

HermezAddToken represents a AddToken event raised by the Hermez contract.

type HermezAddTokenIterator

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

HermezAddTokenIterator is returned from FilterAddToken and is used to iterate over the raw logs and unpacked data for AddToken events raised by the Hermez contract.

func (*HermezAddTokenIterator) Close

func (it *HermezAddTokenIterator) Close() error

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

func (*HermezAddTokenIterator) Error

func (it *HermezAddTokenIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezAddTokenIterator) Next

func (it *HermezAddTokenIterator) 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 HermezCaller

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

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

func NewHermezCaller

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

NewHermezCaller creates a new read-only instance of Hermez, bound to a specific deployed contract.

func (*HermezCaller) ABSOLUTEMAXL1L2BATCHTIMEOUT

func (_Hermez *HermezCaller) ABSOLUTEMAXL1L2BATCHTIMEOUT(opts *bind.CallOpts) (uint8, error)

ABSOLUTEMAXL1L2BATCHTIMEOUT is a free data retrieval call binding the contract method 0x95a09f2a.

Solidity: function ABSOLUTE_MAX_L1L2BATCHTIMEOUT() view returns(uint8)

func (*HermezCaller) ACCOUNTCREATIONHASH added in v1.1.0

func (_Hermez *HermezCaller) ACCOUNTCREATIONHASH(opts *bind.CallOpts) ([32]byte, error)

ACCOUNTCREATIONHASH is a free data retrieval call binding the contract method 0x1300aff0.

Solidity: function ACCOUNT_CREATION_HASH() view returns(bytes32)

func (*HermezCaller) AUTHORISETYPEHASH added in v1.1.0

func (_Hermez *HermezCaller) AUTHORISETYPEHASH(opts *bind.CallOpts) ([32]byte, error)

AUTHORISETYPEHASH is a free data retrieval call binding the contract method 0xe62f6b92.

Solidity: function AUTHORISE_TYPEHASH() view returns(bytes32)

func (*HermezCaller) Buckets

func (_Hermez *HermezCaller) Buckets(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

Buckets is a free data retrieval call binding the contract method 0x061d0964.

Solidity: function buckets(int256 ) view returns(uint256)

func (*HermezCaller) DOMAINSEPARATOR added in v1.1.0

func (_Hermez *HermezCaller) DOMAINSEPARATOR(opts *bind.CallOpts) ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32 domainSeparator)

func (*HermezCaller) EIP712DOMAINHASH added in v1.1.0

func (_Hermez *HermezCaller) EIP712DOMAINHASH(opts *bind.CallOpts) ([32]byte, error)

EIP712DOMAINHASH is a free data retrieval call binding the contract method 0xc473af33.

Solidity: function EIP712DOMAIN_HASH() view returns(bytes32)

func (*HermezCaller) ExitNullifierMap

func (_Hermez *HermezCaller) ExitNullifierMap(opts *bind.CallOpts, arg0 uint32, arg1 *big.Int) (bool, error)

ExitNullifierMap is a free data retrieval call binding the contract method 0xf84f92ee.

Solidity: function exitNullifierMap(uint32 , uint48 ) view returns(bool)

func (*HermezCaller) ExitRootsMap

func (_Hermez *HermezCaller) ExitRootsMap(opts *bind.CallOpts, arg0 uint32) (*big.Int, error)

ExitRootsMap is a free data retrieval call binding the contract method 0x3ee641ea.

Solidity: function exitRootsMap(uint32 ) view returns(uint256)

func (*HermezCaller) FeeAddToken

func (_Hermez *HermezCaller) FeeAddToken(opts *bind.CallOpts) (*big.Int, error)

FeeAddToken is a free data retrieval call binding the contract method 0xbded9bb8.

Solidity: function feeAddToken() view returns(uint256)

func (*HermezCaller) ForgeL1L2BatchTimeout

func (_Hermez *HermezCaller) ForgeL1L2BatchTimeout(opts *bind.CallOpts) (uint8, error)

ForgeL1L2BatchTimeout is a free data retrieval call binding the contract method 0xa3275838.

Solidity: function forgeL1L2BatchTimeout() view returns(uint8)

func (*HermezCaller) GetChainId added in v1.1.0

func (_Hermez *HermezCaller) GetChainId(opts *bind.CallOpts) (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() pure returns(uint256 chainId)

func (*HermezCaller) HERMEZNETWORKHASH added in v1.1.0

func (_Hermez *HermezCaller) HERMEZNETWORKHASH(opts *bind.CallOpts) ([32]byte, error)

HERMEZNETWORKHASH is a free data retrieval call binding the contract method 0xf1f2fcab.

Solidity: function HERMEZ_NETWORK_HASH() view returns(bytes32)

func (*HermezCaller) HermezAuctionContract

func (_Hermez *HermezCaller) HermezAuctionContract(opts *bind.CallOpts) (common.Address, error)

HermezAuctionContract is a free data retrieval call binding the contract method 0x2bd83626.

Solidity: function hermezAuctionContract() view returns(address)

func (*HermezCaller) HermezGovernanceAddress

func (_Hermez *HermezCaller) HermezGovernanceAddress(opts *bind.CallOpts) (common.Address, error)

HermezGovernanceAddress is a free data retrieval call binding the contract method 0x013f7852.

Solidity: function hermezGovernanceAddress() view returns(address)

func (*HermezCaller) InstantWithdrawalViewer

func (_Hermez *HermezCaller) InstantWithdrawalViewer(opts *bind.CallOpts, tokenAddress common.Address, amount *big.Int) (bool, error)

InstantWithdrawalViewer is a free data retrieval call binding the contract method 0x375110aa.

Solidity: function instantWithdrawalViewer(address tokenAddress, uint192 amount) view returns(bool)

func (*HermezCaller) L1L2TxsDataHashMap

func (_Hermez *HermezCaller) L1L2TxsDataHashMap(opts *bind.CallOpts, arg0 uint32) ([32]byte, error)

L1L2TxsDataHashMap is a free data retrieval call binding the contract method 0xce5ec65a.

Solidity: function l1L2TxsDataHashMap(uint32 ) view returns(bytes32)

func (*HermezCaller) LastForgedBatch

func (_Hermez *HermezCaller) LastForgedBatch(opts *bind.CallOpts) (uint32, error)

LastForgedBatch is a free data retrieval call binding the contract method 0x44e0b2ce.

Solidity: function lastForgedBatch() view returns(uint32)

func (*HermezCaller) LastIdx

func (_Hermez *HermezCaller) LastIdx(opts *bind.CallOpts) (*big.Int, error)

LastIdx is a free data retrieval call binding the contract method 0xd486645c.

Solidity: function lastIdx() view returns(uint48)

func (*HermezCaller) LastL1L2Batch

func (_Hermez *HermezCaller) LastL1L2Batch(opts *bind.CallOpts) (uint64, error)

LastL1L2Batch is a free data retrieval call binding the contract method 0x84ef9ed4.

Solidity: function lastL1L2Batch() view returns(uint64)

func (*HermezCaller) MapL1TxQueue

func (_Hermez *HermezCaller) MapL1TxQueue(opts *bind.CallOpts, arg0 uint32) ([]byte, error)

MapL1TxQueue is a free data retrieval call binding the contract method 0xdc3e718e.

Solidity: function mapL1TxQueue(uint32 ) view returns(bytes)

func (*HermezCaller) NAMEHASH added in v1.1.0

func (_Hermez *HermezCaller) NAMEHASH(opts *bind.CallOpts) ([32]byte, error)

NAMEHASH is a free data retrieval call binding the contract method 0x04622c2e.

Solidity: function NAME_HASH() view returns(bytes32)

func (*HermezCaller) NBuckets added in v1.1.0

func (_Hermez *HermezCaller) NBuckets(opts *bind.CallOpts) (*big.Int, error)

NBuckets is a free data retrieval call binding the contract method 0x07feef6e.

Solidity: function nBuckets() view returns(uint256)

func (*HermezCaller) NextL1FillingQueue

func (_Hermez *HermezCaller) NextL1FillingQueue(opts *bind.CallOpts) (uint32, error)

NextL1FillingQueue is a free data retrieval call binding the contract method 0x0ee8e52b.

Solidity: function nextL1FillingQueue() view returns(uint32)

func (*HermezCaller) NextL1ToForgeQueue

func (_Hermez *HermezCaller) NextL1ToForgeQueue(opts *bind.CallOpts) (uint32, error)

NextL1ToForgeQueue is a free data retrieval call binding the contract method 0xd0f32e67.

Solidity: function nextL1ToForgeQueue() view returns(uint32)

func (*HermezCaller) PackBucket added in v1.1.0

func (_Hermez *HermezCaller) PackBucket(opts *bind.CallOpts, ceilUSD *big.Int, blockStamp *big.Int, withdrawals *big.Int, rateBlocks *big.Int, rateWithdrawals *big.Int, maxWithdrawals *big.Int) (*big.Int, error)

PackBucket is a free data retrieval call binding the contract method 0xccd226a7.

Solidity: function packBucket(uint256 ceilUSD, uint256 blockStamp, uint256 withdrawals, uint256 rateBlocks, uint256 rateWithdrawals, uint256 maxWithdrawals) pure returns(uint256 ret)

func (*HermezCaller) RegisterTokensCount

func (_Hermez *HermezCaller) RegisterTokensCount(opts *bind.CallOpts) (*big.Int, error)

RegisterTokensCount is a free data retrieval call binding the contract method 0x9f34e9a3.

Solidity: function registerTokensCount() view returns(uint256)

func (*HermezCaller) RollupVerifiers

func (_Hermez *HermezCaller) RollupVerifiers(opts *bind.CallOpts, arg0 *big.Int) (struct {
	VerifierInterface common.Address
	MaxTx             *big.Int
	NLevels           *big.Int
}, error)

RollupVerifiers is a free data retrieval call binding the contract method 0x38330200.

Solidity: function rollupVerifiers(uint256 ) view returns(address verifierInterface, uint256 maxTx, uint256 nLevels)

func (*HermezCaller) RollupVerifiersLength

func (_Hermez *HermezCaller) RollupVerifiersLength(opts *bind.CallOpts) (*big.Int, error)

RollupVerifiersLength is a free data retrieval call binding the contract method 0x7ba3a5e0.

Solidity: function rollupVerifiersLength() view returns(uint256)

func (*HermezCaller) StateRootMap

func (_Hermez *HermezCaller) StateRootMap(opts *bind.CallOpts, arg0 uint32) (*big.Int, error)

StateRootMap is a free data retrieval call binding the contract method 0x9e00d7ea.

Solidity: function stateRootMap(uint32 ) view returns(uint256)

func (*HermezCaller) TokenExchange

func (_Hermez *HermezCaller) TokenExchange(opts *bind.CallOpts, arg0 common.Address) (uint64, error)

TokenExchange is a free data retrieval call binding the contract method 0x0dd94b96.

Solidity: function tokenExchange(address ) view returns(uint64)

func (*HermezCaller) TokenHEZ

func (_Hermez *HermezCaller) TokenHEZ(opts *bind.CallOpts) (common.Address, error)

TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.

Solidity: function tokenHEZ() view returns(address)

func (*HermezCaller) TokenList

func (_Hermez *HermezCaller) TokenList(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

TokenList is a free data retrieval call binding the contract method 0x9ead7222.

Solidity: function tokenList(uint256 ) view returns(address)

func (*HermezCaller) TokenMap

func (_Hermez *HermezCaller) TokenMap(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

TokenMap is a free data retrieval call binding the contract method 0x004aca6e.

Solidity: function tokenMap(address ) view returns(uint256)

func (*HermezCaller) UnpackBucket added in v1.1.0

func (_Hermez *HermezCaller) UnpackBucket(opts *bind.CallOpts, bucket *big.Int) (struct {
	CeilUSD         *big.Int
	BlockStamp      *big.Int
	Withdrawals     *big.Int
	RateBlocks      *big.Int
	RateWithdrawals *big.Int
	MaxWithdrawals  *big.Int
}, error)

UnpackBucket is a free data retrieval call binding the contract method 0x3f267155.

Solidity: function unpackBucket(uint256 bucket) pure returns(uint256 ceilUSD, uint256 blockStamp, uint256 withdrawals, uint256 rateBlocks, uint256 rateWithdrawals, uint256 maxWithdrawals)

func (*HermezCaller) VERSIONHASH added in v1.1.0

func (_Hermez *HermezCaller) VERSIONHASH(opts *bind.CallOpts) ([32]byte, error)

VERSIONHASH is a free data retrieval call binding the contract method 0x9e4e7318.

Solidity: function VERSION_HASH() view returns(bytes32)

func (*HermezCaller) WithdrawDelayerContract

func (_Hermez *HermezCaller) WithdrawDelayerContract(opts *bind.CallOpts) (common.Address, error)

WithdrawDelayerContract is a free data retrieval call binding the contract method 0x1b0a8223.

Solidity: function withdrawDelayerContract() view returns(address)

func (*HermezCaller) WithdrawVerifier

func (_Hermez *HermezCaller) WithdrawVerifier(opts *bind.CallOpts) (common.Address, error)

WithdrawVerifier is a free data retrieval call binding the contract method 0x864eb164.

Solidity: function withdrawVerifier() view returns(address)

func (*HermezCaller) WithdrawalDelay

func (_Hermez *HermezCaller) WithdrawalDelay(opts *bind.CallOpts) (uint64, error)

WithdrawalDelay is a free data retrieval call binding the contract method 0xa7ab6961.

Solidity: function withdrawalDelay() view returns(uint64)

type HermezCallerRaw

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

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

func (*HermezCallerRaw) Call

func (_Hermez *HermezCallerRaw) 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 HermezCallerSession

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

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

func (*HermezCallerSession) ABSOLUTEMAXL1L2BATCHTIMEOUT

func (_Hermez *HermezCallerSession) ABSOLUTEMAXL1L2BATCHTIMEOUT() (uint8, error)

ABSOLUTEMAXL1L2BATCHTIMEOUT is a free data retrieval call binding the contract method 0x95a09f2a.

Solidity: function ABSOLUTE_MAX_L1L2BATCHTIMEOUT() view returns(uint8)

func (*HermezCallerSession) ACCOUNTCREATIONHASH added in v1.1.0

func (_Hermez *HermezCallerSession) ACCOUNTCREATIONHASH() ([32]byte, error)

ACCOUNTCREATIONHASH is a free data retrieval call binding the contract method 0x1300aff0.

Solidity: function ACCOUNT_CREATION_HASH() view returns(bytes32)

func (*HermezCallerSession) AUTHORISETYPEHASH added in v1.1.0

func (_Hermez *HermezCallerSession) AUTHORISETYPEHASH() ([32]byte, error)

AUTHORISETYPEHASH is a free data retrieval call binding the contract method 0xe62f6b92.

Solidity: function AUTHORISE_TYPEHASH() view returns(bytes32)

func (*HermezCallerSession) Buckets

func (_Hermez *HermezCallerSession) Buckets(arg0 *big.Int) (*big.Int, error)

Buckets is a free data retrieval call binding the contract method 0x061d0964.

Solidity: function buckets(int256 ) view returns(uint256)

func (*HermezCallerSession) DOMAINSEPARATOR added in v1.1.0

func (_Hermez *HermezCallerSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32 domainSeparator)

func (*HermezCallerSession) EIP712DOMAINHASH added in v1.1.0

func (_Hermez *HermezCallerSession) EIP712DOMAINHASH() ([32]byte, error)

EIP712DOMAINHASH is a free data retrieval call binding the contract method 0xc473af33.

Solidity: function EIP712DOMAIN_HASH() view returns(bytes32)

func (*HermezCallerSession) ExitNullifierMap

func (_Hermez *HermezCallerSession) ExitNullifierMap(arg0 uint32, arg1 *big.Int) (bool, error)

ExitNullifierMap is a free data retrieval call binding the contract method 0xf84f92ee.

Solidity: function exitNullifierMap(uint32 , uint48 ) view returns(bool)

func (*HermezCallerSession) ExitRootsMap

func (_Hermez *HermezCallerSession) ExitRootsMap(arg0 uint32) (*big.Int, error)

ExitRootsMap is a free data retrieval call binding the contract method 0x3ee641ea.

Solidity: function exitRootsMap(uint32 ) view returns(uint256)

func (*HermezCallerSession) FeeAddToken

func (_Hermez *HermezCallerSession) FeeAddToken() (*big.Int, error)

FeeAddToken is a free data retrieval call binding the contract method 0xbded9bb8.

Solidity: function feeAddToken() view returns(uint256)

func (*HermezCallerSession) ForgeL1L2BatchTimeout

func (_Hermez *HermezCallerSession) ForgeL1L2BatchTimeout() (uint8, error)

ForgeL1L2BatchTimeout is a free data retrieval call binding the contract method 0xa3275838.

Solidity: function forgeL1L2BatchTimeout() view returns(uint8)

func (*HermezCallerSession) GetChainId added in v1.1.0

func (_Hermez *HermezCallerSession) GetChainId() (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() pure returns(uint256 chainId)

func (*HermezCallerSession) HERMEZNETWORKHASH added in v1.1.0

func (_Hermez *HermezCallerSession) HERMEZNETWORKHASH() ([32]byte, error)

HERMEZNETWORKHASH is a free data retrieval call binding the contract method 0xf1f2fcab.

Solidity: function HERMEZ_NETWORK_HASH() view returns(bytes32)

func (*HermezCallerSession) HermezAuctionContract

func (_Hermez *HermezCallerSession) HermezAuctionContract() (common.Address, error)

HermezAuctionContract is a free data retrieval call binding the contract method 0x2bd83626.

Solidity: function hermezAuctionContract() view returns(address)

func (*HermezCallerSession) HermezGovernanceAddress

func (_Hermez *HermezCallerSession) HermezGovernanceAddress() (common.Address, error)

HermezGovernanceAddress is a free data retrieval call binding the contract method 0x013f7852.

Solidity: function hermezGovernanceAddress() view returns(address)

func (*HermezCallerSession) InstantWithdrawalViewer

func (_Hermez *HermezCallerSession) InstantWithdrawalViewer(tokenAddress common.Address, amount *big.Int) (bool, error)

InstantWithdrawalViewer is a free data retrieval call binding the contract method 0x375110aa.

Solidity: function instantWithdrawalViewer(address tokenAddress, uint192 amount) view returns(bool)

func (*HermezCallerSession) L1L2TxsDataHashMap

func (_Hermez *HermezCallerSession) L1L2TxsDataHashMap(arg0 uint32) ([32]byte, error)

L1L2TxsDataHashMap is a free data retrieval call binding the contract method 0xce5ec65a.

Solidity: function l1L2TxsDataHashMap(uint32 ) view returns(bytes32)

func (*HermezCallerSession) LastForgedBatch

func (_Hermez *HermezCallerSession) LastForgedBatch() (uint32, error)

LastForgedBatch is a free data retrieval call binding the contract method 0x44e0b2ce.

Solidity: function lastForgedBatch() view returns(uint32)

func (*HermezCallerSession) LastIdx

func (_Hermez *HermezCallerSession) LastIdx() (*big.Int, error)

LastIdx is a free data retrieval call binding the contract method 0xd486645c.

Solidity: function lastIdx() view returns(uint48)

func (*HermezCallerSession) LastL1L2Batch

func (_Hermez *HermezCallerSession) LastL1L2Batch() (uint64, error)

LastL1L2Batch is a free data retrieval call binding the contract method 0x84ef9ed4.

Solidity: function lastL1L2Batch() view returns(uint64)

func (*HermezCallerSession) MapL1TxQueue

func (_Hermez *HermezCallerSession) MapL1TxQueue(arg0 uint32) ([]byte, error)

MapL1TxQueue is a free data retrieval call binding the contract method 0xdc3e718e.

Solidity: function mapL1TxQueue(uint32 ) view returns(bytes)

func (*HermezCallerSession) NAMEHASH added in v1.1.0

func (_Hermez *HermezCallerSession) NAMEHASH() ([32]byte, error)

NAMEHASH is a free data retrieval call binding the contract method 0x04622c2e.

Solidity: function NAME_HASH() view returns(bytes32)

func (*HermezCallerSession) NBuckets added in v1.1.0

func (_Hermez *HermezCallerSession) NBuckets() (*big.Int, error)

NBuckets is a free data retrieval call binding the contract method 0x07feef6e.

Solidity: function nBuckets() view returns(uint256)

func (*HermezCallerSession) NextL1FillingQueue

func (_Hermez *HermezCallerSession) NextL1FillingQueue() (uint32, error)

NextL1FillingQueue is a free data retrieval call binding the contract method 0x0ee8e52b.

Solidity: function nextL1FillingQueue() view returns(uint32)

func (*HermezCallerSession) NextL1ToForgeQueue

func (_Hermez *HermezCallerSession) NextL1ToForgeQueue() (uint32, error)

NextL1ToForgeQueue is a free data retrieval call binding the contract method 0xd0f32e67.

Solidity: function nextL1ToForgeQueue() view returns(uint32)

func (*HermezCallerSession) PackBucket added in v1.1.0

func (_Hermez *HermezCallerSession) PackBucket(ceilUSD *big.Int, blockStamp *big.Int, withdrawals *big.Int, rateBlocks *big.Int, rateWithdrawals *big.Int, maxWithdrawals *big.Int) (*big.Int, error)

PackBucket is a free data retrieval call binding the contract method 0xccd226a7.

Solidity: function packBucket(uint256 ceilUSD, uint256 blockStamp, uint256 withdrawals, uint256 rateBlocks, uint256 rateWithdrawals, uint256 maxWithdrawals) pure returns(uint256 ret)

func (*HermezCallerSession) RegisterTokensCount

func (_Hermez *HermezCallerSession) RegisterTokensCount() (*big.Int, error)

RegisterTokensCount is a free data retrieval call binding the contract method 0x9f34e9a3.

Solidity: function registerTokensCount() view returns(uint256)

func (*HermezCallerSession) RollupVerifiers

func (_Hermez *HermezCallerSession) RollupVerifiers(arg0 *big.Int) (struct {
	VerifierInterface common.Address
	MaxTx             *big.Int
	NLevels           *big.Int
}, error)

RollupVerifiers is a free data retrieval call binding the contract method 0x38330200.

Solidity: function rollupVerifiers(uint256 ) view returns(address verifierInterface, uint256 maxTx, uint256 nLevels)

func (*HermezCallerSession) RollupVerifiersLength

func (_Hermez *HermezCallerSession) RollupVerifiersLength() (*big.Int, error)

RollupVerifiersLength is a free data retrieval call binding the contract method 0x7ba3a5e0.

Solidity: function rollupVerifiersLength() view returns(uint256)

func (*HermezCallerSession) StateRootMap

func (_Hermez *HermezCallerSession) StateRootMap(arg0 uint32) (*big.Int, error)

StateRootMap is a free data retrieval call binding the contract method 0x9e00d7ea.

Solidity: function stateRootMap(uint32 ) view returns(uint256)

func (*HermezCallerSession) TokenExchange

func (_Hermez *HermezCallerSession) TokenExchange(arg0 common.Address) (uint64, error)

TokenExchange is a free data retrieval call binding the contract method 0x0dd94b96.

Solidity: function tokenExchange(address ) view returns(uint64)

func (*HermezCallerSession) TokenHEZ

func (_Hermez *HermezCallerSession) TokenHEZ() (common.Address, error)

TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.

Solidity: function tokenHEZ() view returns(address)

func (*HermezCallerSession) TokenList

func (_Hermez *HermezCallerSession) TokenList(arg0 *big.Int) (common.Address, error)

TokenList is a free data retrieval call binding the contract method 0x9ead7222.

Solidity: function tokenList(uint256 ) view returns(address)

func (*HermezCallerSession) TokenMap

func (_Hermez *HermezCallerSession) TokenMap(arg0 common.Address) (*big.Int, error)

TokenMap is a free data retrieval call binding the contract method 0x004aca6e.

Solidity: function tokenMap(address ) view returns(uint256)

func (*HermezCallerSession) UnpackBucket added in v1.1.0

func (_Hermez *HermezCallerSession) UnpackBucket(bucket *big.Int) (struct {
	CeilUSD         *big.Int
	BlockStamp      *big.Int
	Withdrawals     *big.Int
	RateBlocks      *big.Int
	RateWithdrawals *big.Int
	MaxWithdrawals  *big.Int
}, error)

UnpackBucket is a free data retrieval call binding the contract method 0x3f267155.

Solidity: function unpackBucket(uint256 bucket) pure returns(uint256 ceilUSD, uint256 blockStamp, uint256 withdrawals, uint256 rateBlocks, uint256 rateWithdrawals, uint256 maxWithdrawals)

func (*HermezCallerSession) VERSIONHASH added in v1.1.0

func (_Hermez *HermezCallerSession) VERSIONHASH() ([32]byte, error)

VERSIONHASH is a free data retrieval call binding the contract method 0x9e4e7318.

Solidity: function VERSION_HASH() view returns(bytes32)

func (*HermezCallerSession) WithdrawDelayerContract

func (_Hermez *HermezCallerSession) WithdrawDelayerContract() (common.Address, error)

WithdrawDelayerContract is a free data retrieval call binding the contract method 0x1b0a8223.

Solidity: function withdrawDelayerContract() view returns(address)

func (*HermezCallerSession) WithdrawVerifier

func (_Hermez *HermezCallerSession) WithdrawVerifier() (common.Address, error)

WithdrawVerifier is a free data retrieval call binding the contract method 0x864eb164.

Solidity: function withdrawVerifier() view returns(address)

func (*HermezCallerSession) WithdrawalDelay

func (_Hermez *HermezCallerSession) WithdrawalDelay() (uint64, error)

WithdrawalDelay is a free data retrieval call binding the contract method 0xa7ab6961.

Solidity: function withdrawalDelay() view returns(uint64)

type HermezFilterer

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

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

func NewHermezFilterer

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

NewHermezFilterer creates a new log filterer instance of Hermez, bound to a specific deployed contract.

func (*HermezFilterer) FilterAddToken

func (_Hermez *HermezFilterer) FilterAddToken(opts *bind.FilterOpts, tokenAddress []common.Address) (*HermezAddTokenIterator, error)

FilterAddToken is a free log retrieval operation binding the contract event 0xcb73d161edb7cd4fb1d92fedfd2555384fd997fd44ab507656f8c81e15747dde.

Solidity: event AddToken(address indexed tokenAddress, uint32 tokenID)

func (*HermezFilterer) FilterForgeBatch

func (_Hermez *HermezFilterer) FilterForgeBatch(opts *bind.FilterOpts, batchNum []uint32) (*HermezForgeBatchIterator, error)

FilterForgeBatch is a free log retrieval operation binding the contract event 0xe00040c8a3b0bf905636c26924e90520eafc5003324138236fddee2d34588618.

Solidity: event ForgeBatch(uint32 indexed batchNum, uint16 l1UserTxsLen)

func (*HermezFilterer) FilterHermezV2 added in v1.5.0

func (_Hermez *HermezFilterer) FilterHermezV2(opts *bind.FilterOpts) (*HermezHermezV2Iterator, error)

FilterHermezV2 is a free log retrieval operation binding the contract event 0xd5303fa2e7ece2a0fe77fbba1df5bb224b461198dd7bfd7fe0071f964c86c673.

Solidity: event hermezV2()

func (*HermezFilterer) FilterInitializeHermezEvent

func (_Hermez *HermezFilterer) FilterInitializeHermezEvent(opts *bind.FilterOpts) (*HermezInitializeHermezEventIterator, error)

FilterInitializeHermezEvent is a free log retrieval operation binding the contract event 0xc5272ad4c8d9f2e9af2f9555c11ead049be22b6e45c16975adc82371b7cd1040.

Solidity: event InitializeHermezEvent(uint8 forgeL1L2BatchTimeout, uint256 feeAddToken, uint64 withdrawalDelay)

func (*HermezFilterer) FilterL1UserTxEvent

func (_Hermez *HermezFilterer) FilterL1UserTxEvent(opts *bind.FilterOpts, queueIndex []uint32, position []uint8) (*HermezL1UserTxEventIterator, error)

FilterL1UserTxEvent is a free log retrieval operation binding the contract event 0xdd5c7c5ea02d3c5d1621513faa6de53d474ee6f111eda6352a63e3dfe8c40119.

Solidity: event L1UserTxEvent(uint32 indexed queueIndex, uint8 indexed position, bytes l1UserTx)

func (*HermezFilterer) FilterSafeMode

func (_Hermez *HermezFilterer) FilterSafeMode(opts *bind.FilterOpts) (*HermezSafeModeIterator, error)

FilterSafeMode is a free log retrieval operation binding the contract event 0x0410e6ef2bd89ecf5b2dc2f62157f9863e09e89cb7c7f1abb7d4ec43a6019d1e.

Solidity: event SafeMode()

func (*HermezFilterer) FilterUpdateBucketWithdraw

func (_Hermez *HermezFilterer) FilterUpdateBucketWithdraw(opts *bind.FilterOpts, numBucket []uint8, blockStamp []*big.Int) (*HermezUpdateBucketWithdrawIterator, error)

FilterUpdateBucketWithdraw is a free log retrieval operation binding the contract event 0xa35fe9a9e21cdbbc4774aa8a56e7b97ea9c06afc09ffb06af593d26951e350aa.

Solidity: event UpdateBucketWithdraw(uint8 indexed numBucket, uint256 indexed blockStamp, uint256 withdrawals)

func (*HermezFilterer) FilterUpdateBucketsParameters

func (_Hermez *HermezFilterer) FilterUpdateBucketsParameters(opts *bind.FilterOpts) (*HermezUpdateBucketsParametersIterator, error)

FilterUpdateBucketsParameters is a free log retrieval operation binding the contract event 0xd4904145d7eae889c5493798579680417459783db0fa67398bea50e56859075f.

Solidity: event UpdateBucketsParameters(uint256[] arrayBuckets)

func (*HermezFilterer) FilterUpdateFeeAddToken

func (_Hermez *HermezFilterer) FilterUpdateFeeAddToken(opts *bind.FilterOpts) (*HermezUpdateFeeAddTokenIterator, error)

FilterUpdateFeeAddToken is a free log retrieval operation binding the contract event 0xd1c873cd16013f0dc5f37992c0d12794389698512895ec036a568e393b46e3c1.

Solidity: event UpdateFeeAddToken(uint256 newFeeAddToken)

func (*HermezFilterer) FilterUpdateForgeL1L2BatchTimeout

func (_Hermez *HermezFilterer) FilterUpdateForgeL1L2BatchTimeout(opts *bind.FilterOpts) (*HermezUpdateForgeL1L2BatchTimeoutIterator, error)

FilterUpdateForgeL1L2BatchTimeout is a free log retrieval operation binding the contract event 0xff6221781ac525b04585dbb55cd2ebd2a92c828ca3e42b23813a1137ac974431.

Solidity: event UpdateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout)

func (*HermezFilterer) FilterUpdateTokenExchange

func (_Hermez *HermezFilterer) FilterUpdateTokenExchange(opts *bind.FilterOpts) (*HermezUpdateTokenExchangeIterator, error)

FilterUpdateTokenExchange is a free log retrieval operation binding the contract event 0x10ff643ebeca3e33002e61b76fa85e7e10091e30afa39295f91af9838b3033b3.

Solidity: event UpdateTokenExchange(address[] addressArray, uint64[] valueArray)

func (*HermezFilterer) FilterUpdateWithdrawalDelay

func (_Hermez *HermezFilterer) FilterUpdateWithdrawalDelay(opts *bind.FilterOpts) (*HermezUpdateWithdrawalDelayIterator, error)

FilterUpdateWithdrawalDelay is a free log retrieval operation binding the contract event 0x9db302c4547a21fb20a3a794e5f63ee87eb6e4afc3325ebdadba2d1fb4a90737.

Solidity: event UpdateWithdrawalDelay(uint64 newWithdrawalDelay)

func (*HermezFilterer) FilterWithdrawEvent

func (_Hermez *HermezFilterer) FilterWithdrawEvent(opts *bind.FilterOpts, idx []*big.Int, numExitRoot []uint32, instantWithdraw []bool) (*HermezWithdrawEventIterator, error)

FilterWithdrawEvent is a free log retrieval operation binding the contract event 0x69177d798b38e27bcc4e0338307e4f1490e12d1006729d0e6e9cc82a8732f415.

Solidity: event WithdrawEvent(uint48 indexed idx, uint32 indexed numExitRoot, bool indexed instantWithdraw)

func (*HermezFilterer) ParseAddToken

func (_Hermez *HermezFilterer) ParseAddToken(log types.Log) (*HermezAddToken, error)

ParseAddToken is a log parse operation binding the contract event 0xcb73d161edb7cd4fb1d92fedfd2555384fd997fd44ab507656f8c81e15747dde.

Solidity: event AddToken(address indexed tokenAddress, uint32 tokenID)

func (*HermezFilterer) ParseForgeBatch

func (_Hermez *HermezFilterer) ParseForgeBatch(log types.Log) (*HermezForgeBatch, error)

ParseForgeBatch is a log parse operation binding the contract event 0xe00040c8a3b0bf905636c26924e90520eafc5003324138236fddee2d34588618.

Solidity: event ForgeBatch(uint32 indexed batchNum, uint16 l1UserTxsLen)

func (*HermezFilterer) ParseHermezV2 added in v1.5.0

func (_Hermez *HermezFilterer) ParseHermezV2(log types.Log) (*HermezHermezV2, error)

ParseHermezV2 is a log parse operation binding the contract event 0xd5303fa2e7ece2a0fe77fbba1df5bb224b461198dd7bfd7fe0071f964c86c673.

Solidity: event hermezV2()

func (*HermezFilterer) ParseInitializeHermezEvent

func (_Hermez *HermezFilterer) ParseInitializeHermezEvent(log types.Log) (*HermezInitializeHermezEvent, error)

ParseInitializeHermezEvent is a log parse operation binding the contract event 0xc5272ad4c8d9f2e9af2f9555c11ead049be22b6e45c16975adc82371b7cd1040.

Solidity: event InitializeHermezEvent(uint8 forgeL1L2BatchTimeout, uint256 feeAddToken, uint64 withdrawalDelay)

func (*HermezFilterer) ParseL1UserTxEvent

func (_Hermez *HermezFilterer) ParseL1UserTxEvent(log types.Log) (*HermezL1UserTxEvent, error)

ParseL1UserTxEvent is a log parse operation binding the contract event 0xdd5c7c5ea02d3c5d1621513faa6de53d474ee6f111eda6352a63e3dfe8c40119.

Solidity: event L1UserTxEvent(uint32 indexed queueIndex, uint8 indexed position, bytes l1UserTx)

func (*HermezFilterer) ParseSafeMode

func (_Hermez *HermezFilterer) ParseSafeMode(log types.Log) (*HermezSafeMode, error)

ParseSafeMode is a log parse operation binding the contract event 0x0410e6ef2bd89ecf5b2dc2f62157f9863e09e89cb7c7f1abb7d4ec43a6019d1e.

Solidity: event SafeMode()

func (*HermezFilterer) ParseUpdateBucketWithdraw

func (_Hermez *HermezFilterer) ParseUpdateBucketWithdraw(log types.Log) (*HermezUpdateBucketWithdraw, error)

ParseUpdateBucketWithdraw is a log parse operation binding the contract event 0xa35fe9a9e21cdbbc4774aa8a56e7b97ea9c06afc09ffb06af593d26951e350aa.

Solidity: event UpdateBucketWithdraw(uint8 indexed numBucket, uint256 indexed blockStamp, uint256 withdrawals)

func (*HermezFilterer) ParseUpdateBucketsParameters

func (_Hermez *HermezFilterer) ParseUpdateBucketsParameters(log types.Log) (*HermezUpdateBucketsParameters, error)

ParseUpdateBucketsParameters is a log parse operation binding the contract event 0xd4904145d7eae889c5493798579680417459783db0fa67398bea50e56859075f.

Solidity: event UpdateBucketsParameters(uint256[] arrayBuckets)

func (*HermezFilterer) ParseUpdateFeeAddToken

func (_Hermez *HermezFilterer) ParseUpdateFeeAddToken(log types.Log) (*HermezUpdateFeeAddToken, error)

ParseUpdateFeeAddToken is a log parse operation binding the contract event 0xd1c873cd16013f0dc5f37992c0d12794389698512895ec036a568e393b46e3c1.

Solidity: event UpdateFeeAddToken(uint256 newFeeAddToken)

func (*HermezFilterer) ParseUpdateForgeL1L2BatchTimeout

func (_Hermez *HermezFilterer) ParseUpdateForgeL1L2BatchTimeout(log types.Log) (*HermezUpdateForgeL1L2BatchTimeout, error)

ParseUpdateForgeL1L2BatchTimeout is a log parse operation binding the contract event 0xff6221781ac525b04585dbb55cd2ebd2a92c828ca3e42b23813a1137ac974431.

Solidity: event UpdateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout)

func (*HermezFilterer) ParseUpdateTokenExchange

func (_Hermez *HermezFilterer) ParseUpdateTokenExchange(log types.Log) (*HermezUpdateTokenExchange, error)

ParseUpdateTokenExchange is a log parse operation binding the contract event 0x10ff643ebeca3e33002e61b76fa85e7e10091e30afa39295f91af9838b3033b3.

Solidity: event UpdateTokenExchange(address[] addressArray, uint64[] valueArray)

func (*HermezFilterer) ParseUpdateWithdrawalDelay

func (_Hermez *HermezFilterer) ParseUpdateWithdrawalDelay(log types.Log) (*HermezUpdateWithdrawalDelay, error)

ParseUpdateWithdrawalDelay is a log parse operation binding the contract event 0x9db302c4547a21fb20a3a794e5f63ee87eb6e4afc3325ebdadba2d1fb4a90737.

Solidity: event UpdateWithdrawalDelay(uint64 newWithdrawalDelay)

func (*HermezFilterer) ParseWithdrawEvent

func (_Hermez *HermezFilterer) ParseWithdrawEvent(log types.Log) (*HermezWithdrawEvent, error)

ParseWithdrawEvent is a log parse operation binding the contract event 0x69177d798b38e27bcc4e0338307e4f1490e12d1006729d0e6e9cc82a8732f415.

Solidity: event WithdrawEvent(uint48 indexed idx, uint32 indexed numExitRoot, bool indexed instantWithdraw)

func (*HermezFilterer) WatchAddToken

func (_Hermez *HermezFilterer) WatchAddToken(opts *bind.WatchOpts, sink chan<- *HermezAddToken, tokenAddress []common.Address) (event.Subscription, error)

WatchAddToken is a free log subscription operation binding the contract event 0xcb73d161edb7cd4fb1d92fedfd2555384fd997fd44ab507656f8c81e15747dde.

Solidity: event AddToken(address indexed tokenAddress, uint32 tokenID)

func (*HermezFilterer) WatchForgeBatch

func (_Hermez *HermezFilterer) WatchForgeBatch(opts *bind.WatchOpts, sink chan<- *HermezForgeBatch, batchNum []uint32) (event.Subscription, error)

WatchForgeBatch is a free log subscription operation binding the contract event 0xe00040c8a3b0bf905636c26924e90520eafc5003324138236fddee2d34588618.

Solidity: event ForgeBatch(uint32 indexed batchNum, uint16 l1UserTxsLen)

func (*HermezFilterer) WatchHermezV2 added in v1.5.0

func (_Hermez *HermezFilterer) WatchHermezV2(opts *bind.WatchOpts, sink chan<- *HermezHermezV2) (event.Subscription, error)

WatchHermezV2 is a free log subscription operation binding the contract event 0xd5303fa2e7ece2a0fe77fbba1df5bb224b461198dd7bfd7fe0071f964c86c673.

Solidity: event hermezV2()

func (*HermezFilterer) WatchInitializeHermezEvent

func (_Hermez *HermezFilterer) WatchInitializeHermezEvent(opts *bind.WatchOpts, sink chan<- *HermezInitializeHermezEvent) (event.Subscription, error)

WatchInitializeHermezEvent is a free log subscription operation binding the contract event 0xc5272ad4c8d9f2e9af2f9555c11ead049be22b6e45c16975adc82371b7cd1040.

Solidity: event InitializeHermezEvent(uint8 forgeL1L2BatchTimeout, uint256 feeAddToken, uint64 withdrawalDelay)

func (*HermezFilterer) WatchL1UserTxEvent

func (_Hermez *HermezFilterer) WatchL1UserTxEvent(opts *bind.WatchOpts, sink chan<- *HermezL1UserTxEvent, queueIndex []uint32, position []uint8) (event.Subscription, error)

WatchL1UserTxEvent is a free log subscription operation binding the contract event 0xdd5c7c5ea02d3c5d1621513faa6de53d474ee6f111eda6352a63e3dfe8c40119.

Solidity: event L1UserTxEvent(uint32 indexed queueIndex, uint8 indexed position, bytes l1UserTx)

func (*HermezFilterer) WatchSafeMode

func (_Hermez *HermezFilterer) WatchSafeMode(opts *bind.WatchOpts, sink chan<- *HermezSafeMode) (event.Subscription, error)

WatchSafeMode is a free log subscription operation binding the contract event 0x0410e6ef2bd89ecf5b2dc2f62157f9863e09e89cb7c7f1abb7d4ec43a6019d1e.

Solidity: event SafeMode()

func (*HermezFilterer) WatchUpdateBucketWithdraw

func (_Hermez *HermezFilterer) WatchUpdateBucketWithdraw(opts *bind.WatchOpts, sink chan<- *HermezUpdateBucketWithdraw, numBucket []uint8, blockStamp []*big.Int) (event.Subscription, error)

WatchUpdateBucketWithdraw is a free log subscription operation binding the contract event 0xa35fe9a9e21cdbbc4774aa8a56e7b97ea9c06afc09ffb06af593d26951e350aa.

Solidity: event UpdateBucketWithdraw(uint8 indexed numBucket, uint256 indexed blockStamp, uint256 withdrawals)

func (*HermezFilterer) WatchUpdateBucketsParameters

func (_Hermez *HermezFilterer) WatchUpdateBucketsParameters(opts *bind.WatchOpts, sink chan<- *HermezUpdateBucketsParameters) (event.Subscription, error)

WatchUpdateBucketsParameters is a free log subscription operation binding the contract event 0xd4904145d7eae889c5493798579680417459783db0fa67398bea50e56859075f.

Solidity: event UpdateBucketsParameters(uint256[] arrayBuckets)

func (*HermezFilterer) WatchUpdateFeeAddToken

func (_Hermez *HermezFilterer) WatchUpdateFeeAddToken(opts *bind.WatchOpts, sink chan<- *HermezUpdateFeeAddToken) (event.Subscription, error)

WatchUpdateFeeAddToken is a free log subscription operation binding the contract event 0xd1c873cd16013f0dc5f37992c0d12794389698512895ec036a568e393b46e3c1.

Solidity: event UpdateFeeAddToken(uint256 newFeeAddToken)

func (*HermezFilterer) WatchUpdateForgeL1L2BatchTimeout

func (_Hermez *HermezFilterer) WatchUpdateForgeL1L2BatchTimeout(opts *bind.WatchOpts, sink chan<- *HermezUpdateForgeL1L2BatchTimeout) (event.Subscription, error)

WatchUpdateForgeL1L2BatchTimeout is a free log subscription operation binding the contract event 0xff6221781ac525b04585dbb55cd2ebd2a92c828ca3e42b23813a1137ac974431.

Solidity: event UpdateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout)

func (*HermezFilterer) WatchUpdateTokenExchange

func (_Hermez *HermezFilterer) WatchUpdateTokenExchange(opts *bind.WatchOpts, sink chan<- *HermezUpdateTokenExchange) (event.Subscription, error)

WatchUpdateTokenExchange is a free log subscription operation binding the contract event 0x10ff643ebeca3e33002e61b76fa85e7e10091e30afa39295f91af9838b3033b3.

Solidity: event UpdateTokenExchange(address[] addressArray, uint64[] valueArray)

func (*HermezFilterer) WatchUpdateWithdrawalDelay

func (_Hermez *HermezFilterer) WatchUpdateWithdrawalDelay(opts *bind.WatchOpts, sink chan<- *HermezUpdateWithdrawalDelay) (event.Subscription, error)

WatchUpdateWithdrawalDelay is a free log subscription operation binding the contract event 0x9db302c4547a21fb20a3a794e5f63ee87eb6e4afc3325ebdadba2d1fb4a90737.

Solidity: event UpdateWithdrawalDelay(uint64 newWithdrawalDelay)

func (*HermezFilterer) WatchWithdrawEvent

func (_Hermez *HermezFilterer) WatchWithdrawEvent(opts *bind.WatchOpts, sink chan<- *HermezWithdrawEvent, idx []*big.Int, numExitRoot []uint32, instantWithdraw []bool) (event.Subscription, error)

WatchWithdrawEvent is a free log subscription operation binding the contract event 0x69177d798b38e27bcc4e0338307e4f1490e12d1006729d0e6e9cc82a8732f415.

Solidity: event WithdrawEvent(uint48 indexed idx, uint32 indexed numExitRoot, bool indexed instantWithdraw)

type HermezForgeBatch

type HermezForgeBatch struct {
	BatchNum     uint32
	L1UserTxsLen uint16
	Raw          types.Log // Blockchain specific contextual infos
}

HermezForgeBatch represents a ForgeBatch event raised by the Hermez contract.

type HermezForgeBatchIterator

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

HermezForgeBatchIterator is returned from FilterForgeBatch and is used to iterate over the raw logs and unpacked data for ForgeBatch events raised by the Hermez contract.

func (*HermezForgeBatchIterator) Close

func (it *HermezForgeBatchIterator) Close() error

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

func (*HermezForgeBatchIterator) Error

func (it *HermezForgeBatchIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezForgeBatchIterator) Next

func (it *HermezForgeBatchIterator) 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 HermezHermezV2 added in v1.5.0

type HermezHermezV2 struct {
	Raw types.Log // Blockchain specific contextual infos
}

HermezHermezV2 represents a HermezV2 event raised by the Hermez contract.

type HermezHermezV2Iterator added in v1.5.0

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

HermezHermezV2Iterator is returned from FilterHermezV2 and is used to iterate over the raw logs and unpacked data for HermezV2 events raised by the Hermez contract.

func (*HermezHermezV2Iterator) Close added in v1.5.0

func (it *HermezHermezV2Iterator) Close() error

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

func (*HermezHermezV2Iterator) Error added in v1.5.0

func (it *HermezHermezV2Iterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezHermezV2Iterator) Next added in v1.5.0

func (it *HermezHermezV2Iterator) 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 HermezInitializeHermezEvent

type HermezInitializeHermezEvent struct {
	ForgeL1L2BatchTimeout uint8
	FeeAddToken           *big.Int
	WithdrawalDelay       uint64
	Raw                   types.Log // Blockchain specific contextual infos
}

HermezInitializeHermezEvent represents a InitializeHermezEvent event raised by the Hermez contract.

type HermezInitializeHermezEventIterator

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

HermezInitializeHermezEventIterator is returned from FilterInitializeHermezEvent and is used to iterate over the raw logs and unpacked data for InitializeHermezEvent events raised by the Hermez contract.

func (*HermezInitializeHermezEventIterator) Close

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

func (*HermezInitializeHermezEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezInitializeHermezEventIterator) Next

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

type HermezL1UserTxEvent

type HermezL1UserTxEvent struct {
	QueueIndex uint32
	Position   uint8
	L1UserTx   []byte
	Raw        types.Log // Blockchain specific contextual infos
}

HermezL1UserTxEvent represents a L1UserTxEvent event raised by the Hermez contract.

type HermezL1UserTxEventIterator

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

HermezL1UserTxEventIterator is returned from FilterL1UserTxEvent and is used to iterate over the raw logs and unpacked data for L1UserTxEvent events raised by the Hermez contract.

func (*HermezL1UserTxEventIterator) Close

func (it *HermezL1UserTxEventIterator) Close() error

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

func (*HermezL1UserTxEventIterator) Error

func (it *HermezL1UserTxEventIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezL1UserTxEventIterator) Next

func (it *HermezL1UserTxEventIterator) 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 HermezRaw

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

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

func (*HermezRaw) Call

func (_Hermez *HermezRaw) 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 (*HermezRaw) Transact

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

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

func (*HermezRaw) Transfer

func (_Hermez *HermezRaw) 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 HermezSafeMode

type HermezSafeMode struct {
	Raw types.Log // Blockchain specific contextual infos
}

HermezSafeMode represents a SafeMode event raised by the Hermez contract.

type HermezSafeModeIterator

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

HermezSafeModeIterator is returned from FilterSafeMode and is used to iterate over the raw logs and unpacked data for SafeMode events raised by the Hermez contract.

func (*HermezSafeModeIterator) Close

func (it *HermezSafeModeIterator) Close() error

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

func (*HermezSafeModeIterator) Error

func (it *HermezSafeModeIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezSafeModeIterator) Next

func (it *HermezSafeModeIterator) 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 HermezSession

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

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

func (*HermezSession) ABSOLUTEMAXL1L2BATCHTIMEOUT

func (_Hermez *HermezSession) ABSOLUTEMAXL1L2BATCHTIMEOUT() (uint8, error)

ABSOLUTEMAXL1L2BATCHTIMEOUT is a free data retrieval call binding the contract method 0x95a09f2a.

Solidity: function ABSOLUTE_MAX_L1L2BATCHTIMEOUT() view returns(uint8)

func (*HermezSession) ACCOUNTCREATIONHASH added in v1.1.0

func (_Hermez *HermezSession) ACCOUNTCREATIONHASH() ([32]byte, error)

ACCOUNTCREATIONHASH is a free data retrieval call binding the contract method 0x1300aff0.

Solidity: function ACCOUNT_CREATION_HASH() view returns(bytes32)

func (*HermezSession) AUTHORISETYPEHASH added in v1.1.0

func (_Hermez *HermezSession) AUTHORISETYPEHASH() ([32]byte, error)

AUTHORISETYPEHASH is a free data retrieval call binding the contract method 0xe62f6b92.

Solidity: function AUTHORISE_TYPEHASH() view returns(bytes32)

func (*HermezSession) AddL1Transaction

func (_Hermez *HermezSession) AddL1Transaction(babyPubKey *big.Int, fromIdx *big.Int, loadAmountF *big.Int, amountF *big.Int, tokenID uint32, toIdx *big.Int, permit []byte) (*types.Transaction, error)

AddL1Transaction is a paid mutator transaction binding the contract method 0xc7273053.

Solidity: function addL1Transaction(uint256 babyPubKey, uint48 fromIdx, uint40 loadAmountF, uint40 amountF, uint32 tokenID, uint48 toIdx, bytes permit) payable returns()

func (*HermezSession) AddToken

func (_Hermez *HermezSession) AddToken(tokenAddress common.Address, permit []byte) (*types.Transaction, error)

AddToken is a paid mutator transaction binding the contract method 0x70c2f1c0.

Solidity: function addToken(address tokenAddress, bytes permit) returns()

func (*HermezSession) Buckets

func (_Hermez *HermezSession) Buckets(arg0 *big.Int) (*big.Int, error)

Buckets is a free data retrieval call binding the contract method 0x061d0964.

Solidity: function buckets(int256 ) view returns(uint256)

func (*HermezSession) DOMAINSEPARATOR added in v1.1.0

func (_Hermez *HermezSession) DOMAINSEPARATOR() ([32]byte, error)

DOMAINSEPARATOR is a free data retrieval call binding the contract method 0x3644e515.

Solidity: function DOMAIN_SEPARATOR() view returns(bytes32 domainSeparator)

func (*HermezSession) EIP712DOMAINHASH added in v1.1.0

func (_Hermez *HermezSession) EIP712DOMAINHASH() ([32]byte, error)

EIP712DOMAINHASH is a free data retrieval call binding the contract method 0xc473af33.

Solidity: function EIP712DOMAIN_HASH() view returns(bytes32)

func (*HermezSession) ExitNullifierMap

func (_Hermez *HermezSession) ExitNullifierMap(arg0 uint32, arg1 *big.Int) (bool, error)

ExitNullifierMap is a free data retrieval call binding the contract method 0xf84f92ee.

Solidity: function exitNullifierMap(uint32 , uint48 ) view returns(bool)

func (*HermezSession) ExitRootsMap

func (_Hermez *HermezSession) ExitRootsMap(arg0 uint32) (*big.Int, error)

ExitRootsMap is a free data retrieval call binding the contract method 0x3ee641ea.

Solidity: function exitRootsMap(uint32 ) view returns(uint256)

func (*HermezSession) FeeAddToken

func (_Hermez *HermezSession) FeeAddToken() (*big.Int, error)

FeeAddToken is a free data retrieval call binding the contract method 0xbded9bb8.

Solidity: function feeAddToken() view returns(uint256)

func (*HermezSession) ForgeBatch

func (_Hermez *HermezSession) ForgeBatch(newLastIdx *big.Int, newStRoot *big.Int, newExitRoot *big.Int, encodedL1CoordinatorTx []byte, l1L2TxsData []byte, feeIdxCoordinator []byte, verifierIdx uint8, l1Batch bool, proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int) (*types.Transaction, error)

ForgeBatch is a paid mutator transaction binding the contract method 0x6e7e1365.

Solidity: function forgeBatch(uint48 newLastIdx, uint256 newStRoot, uint256 newExitRoot, bytes encodedL1CoordinatorTx, bytes l1L2TxsData, bytes feeIdxCoordinator, uint8 verifierIdx, bool l1Batch, uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC) returns()

func (*HermezSession) ForgeL1L2BatchTimeout

func (_Hermez *HermezSession) ForgeL1L2BatchTimeout() (uint8, error)

ForgeL1L2BatchTimeout is a free data retrieval call binding the contract method 0xa3275838.

Solidity: function forgeL1L2BatchTimeout() view returns(uint8)

func (*HermezSession) GetChainId added in v1.1.0

func (_Hermez *HermezSession) GetChainId() (*big.Int, error)

GetChainId is a free data retrieval call binding the contract method 0x3408e470.

Solidity: function getChainId() pure returns(uint256 chainId)

func (*HermezSession) HERMEZNETWORKHASH added in v1.1.0

func (_Hermez *HermezSession) HERMEZNETWORKHASH() ([32]byte, error)

HERMEZNETWORKHASH is a free data retrieval call binding the contract method 0xf1f2fcab.

Solidity: function HERMEZ_NETWORK_HASH() view returns(bytes32)

func (*HermezSession) HermezAuctionContract

func (_Hermez *HermezSession) HermezAuctionContract() (common.Address, error)

HermezAuctionContract is a free data retrieval call binding the contract method 0x2bd83626.

Solidity: function hermezAuctionContract() view returns(address)

func (*HermezSession) HermezGovernanceAddress

func (_Hermez *HermezSession) HermezGovernanceAddress() (common.Address, error)

HermezGovernanceAddress is a free data retrieval call binding the contract method 0x013f7852.

Solidity: function hermezGovernanceAddress() view returns(address)

func (*HermezSession) InitializeHermez

func (_Hermez *HermezSession) InitializeHermez(_verifiers []common.Address, _verifiersParams []*big.Int, _withdrawVerifier common.Address, _hermezAuctionContract common.Address, _tokenHEZ common.Address, _forgeL1L2BatchTimeout uint8, _feeAddToken *big.Int, _poseidon2Elements common.Address, _poseidon3Elements common.Address, _poseidon4Elements common.Address, _hermezGovernanceAddress common.Address, _withdrawalDelay uint64, _withdrawDelayerContract common.Address) (*types.Transaction, error)

InitializeHermez is a paid mutator transaction binding the contract method 0x599897e3.

Solidity: function initializeHermez(address[] _verifiers, uint256[] _verifiersParams, address _withdrawVerifier, address _hermezAuctionContract, address _tokenHEZ, uint8 _forgeL1L2BatchTimeout, uint256 _feeAddToken, address _poseidon2Elements, address _poseidon3Elements, address _poseidon4Elements, address _hermezGovernanceAddress, uint64 _withdrawalDelay, address _withdrawDelayerContract) returns()

func (*HermezSession) InstantWithdrawalViewer

func (_Hermez *HermezSession) InstantWithdrawalViewer(tokenAddress common.Address, amount *big.Int) (bool, error)

InstantWithdrawalViewer is a free data retrieval call binding the contract method 0x375110aa.

Solidity: function instantWithdrawalViewer(address tokenAddress, uint192 amount) view returns(bool)

func (*HermezSession) L1L2TxsDataHashMap

func (_Hermez *HermezSession) L1L2TxsDataHashMap(arg0 uint32) ([32]byte, error)

L1L2TxsDataHashMap is a free data retrieval call binding the contract method 0xce5ec65a.

Solidity: function l1L2TxsDataHashMap(uint32 ) view returns(bytes32)

func (*HermezSession) LastForgedBatch

func (_Hermez *HermezSession) LastForgedBatch() (uint32, error)

LastForgedBatch is a free data retrieval call binding the contract method 0x44e0b2ce.

Solidity: function lastForgedBatch() view returns(uint32)

func (*HermezSession) LastIdx

func (_Hermez *HermezSession) LastIdx() (*big.Int, error)

LastIdx is a free data retrieval call binding the contract method 0xd486645c.

Solidity: function lastIdx() view returns(uint48)

func (*HermezSession) LastL1L2Batch

func (_Hermez *HermezSession) LastL1L2Batch() (uint64, error)

LastL1L2Batch is a free data retrieval call binding the contract method 0x84ef9ed4.

Solidity: function lastL1L2Batch() view returns(uint64)

func (*HermezSession) MapL1TxQueue

func (_Hermez *HermezSession) MapL1TxQueue(arg0 uint32) ([]byte, error)

MapL1TxQueue is a free data retrieval call binding the contract method 0xdc3e718e.

Solidity: function mapL1TxQueue(uint32 ) view returns(bytes)

func (*HermezSession) NAMEHASH added in v1.1.0

func (_Hermez *HermezSession) NAMEHASH() ([32]byte, error)

NAMEHASH is a free data retrieval call binding the contract method 0x04622c2e.

Solidity: function NAME_HASH() view returns(bytes32)

func (*HermezSession) NBuckets added in v1.1.0

func (_Hermez *HermezSession) NBuckets() (*big.Int, error)

NBuckets is a free data retrieval call binding the contract method 0x07feef6e.

Solidity: function nBuckets() view returns(uint256)

func (*HermezSession) NextL1FillingQueue

func (_Hermez *HermezSession) NextL1FillingQueue() (uint32, error)

NextL1FillingQueue is a free data retrieval call binding the contract method 0x0ee8e52b.

Solidity: function nextL1FillingQueue() view returns(uint32)

func (*HermezSession) NextL1ToForgeQueue

func (_Hermez *HermezSession) NextL1ToForgeQueue() (uint32, error)

NextL1ToForgeQueue is a free data retrieval call binding the contract method 0xd0f32e67.

Solidity: function nextL1ToForgeQueue() view returns(uint32)

func (*HermezSession) PackBucket added in v1.1.0

func (_Hermez *HermezSession) PackBucket(ceilUSD *big.Int, blockStamp *big.Int, withdrawals *big.Int, rateBlocks *big.Int, rateWithdrawals *big.Int, maxWithdrawals *big.Int) (*big.Int, error)

PackBucket is a free data retrieval call binding the contract method 0xccd226a7.

Solidity: function packBucket(uint256 ceilUSD, uint256 blockStamp, uint256 withdrawals, uint256 rateBlocks, uint256 rateWithdrawals, uint256 maxWithdrawals) pure returns(uint256 ret)

func (*HermezSession) RegisterTokensCount

func (_Hermez *HermezSession) RegisterTokensCount() (*big.Int, error)

RegisterTokensCount is a free data retrieval call binding the contract method 0x9f34e9a3.

Solidity: function registerTokensCount() view returns(uint256)

func (*HermezSession) RollupVerifiers

func (_Hermez *HermezSession) RollupVerifiers(arg0 *big.Int) (struct {
	VerifierInterface common.Address
	MaxTx             *big.Int
	NLevels           *big.Int
}, error)

RollupVerifiers is a free data retrieval call binding the contract method 0x38330200.

Solidity: function rollupVerifiers(uint256 ) view returns(address verifierInterface, uint256 maxTx, uint256 nLevels)

func (*HermezSession) RollupVerifiersLength

func (_Hermez *HermezSession) RollupVerifiersLength() (*big.Int, error)

RollupVerifiersLength is a free data retrieval call binding the contract method 0x7ba3a5e0.

Solidity: function rollupVerifiersLength() view returns(uint256)

func (*HermezSession) SafeMode

func (_Hermez *HermezSession) SafeMode() (*types.Transaction, error)

SafeMode is a paid mutator transaction binding the contract method 0xabe3219c.

Solidity: function safeMode() returns()

func (*HermezSession) StateRootMap

func (_Hermez *HermezSession) StateRootMap(arg0 uint32) (*big.Int, error)

StateRootMap is a free data retrieval call binding the contract method 0x9e00d7ea.

Solidity: function stateRootMap(uint32 ) view returns(uint256)

func (*HermezSession) TokenExchange

func (_Hermez *HermezSession) TokenExchange(arg0 common.Address) (uint64, error)

TokenExchange is a free data retrieval call binding the contract method 0x0dd94b96.

Solidity: function tokenExchange(address ) view returns(uint64)

func (*HermezSession) TokenHEZ

func (_Hermez *HermezSession) TokenHEZ() (common.Address, error)

TokenHEZ is a free data retrieval call binding the contract method 0x79a135e3.

Solidity: function tokenHEZ() view returns(address)

func (*HermezSession) TokenList

func (_Hermez *HermezSession) TokenList(arg0 *big.Int) (common.Address, error)

TokenList is a free data retrieval call binding the contract method 0x9ead7222.

Solidity: function tokenList(uint256 ) view returns(address)

func (*HermezSession) TokenMap

func (_Hermez *HermezSession) TokenMap(arg0 common.Address) (*big.Int, error)

TokenMap is a free data retrieval call binding the contract method 0x004aca6e.

Solidity: function tokenMap(address ) view returns(uint256)

func (*HermezSession) UnpackBucket added in v1.1.0

func (_Hermez *HermezSession) UnpackBucket(bucket *big.Int) (struct {
	CeilUSD         *big.Int
	BlockStamp      *big.Int
	Withdrawals     *big.Int
	RateBlocks      *big.Int
	RateWithdrawals *big.Int
	MaxWithdrawals  *big.Int
}, error)

UnpackBucket is a free data retrieval call binding the contract method 0x3f267155.

Solidity: function unpackBucket(uint256 bucket) pure returns(uint256 ceilUSD, uint256 blockStamp, uint256 withdrawals, uint256 rateBlocks, uint256 rateWithdrawals, uint256 maxWithdrawals)

func (*HermezSession) UpdateBucketsParameters

func (_Hermez *HermezSession) UpdateBucketsParameters(newBuckets []*big.Int) (*types.Transaction, error)

UpdateBucketsParameters is a paid mutator transaction binding the contract method 0xac300ec9.

Solidity: function updateBucketsParameters(uint256[] newBuckets) returns()

func (*HermezSession) UpdateFeeAddToken

func (_Hermez *HermezSession) UpdateFeeAddToken(newFeeAddToken *big.Int) (*types.Transaction, error)

UpdateFeeAddToken is a paid mutator transaction binding the contract method 0x314e5eda.

Solidity: function updateFeeAddToken(uint256 newFeeAddToken) returns()

func (*HermezSession) UpdateForgeL1L2BatchTimeout

func (_Hermez *HermezSession) UpdateForgeL1L2BatchTimeout(newForgeL1L2BatchTimeout uint8) (*types.Transaction, error)

UpdateForgeL1L2BatchTimeout is a paid mutator transaction binding the contract method 0xcbd7b5fb.

Solidity: function updateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout) returns()

func (*HermezSession) UpdateTokenExchange

func (_Hermez *HermezSession) UpdateTokenExchange(addressArray []common.Address, valueArray []uint64) (*types.Transaction, error)

UpdateTokenExchange is a paid mutator transaction binding the contract method 0x1a748c2d.

Solidity: function updateTokenExchange(address[] addressArray, uint64[] valueArray) returns()

func (*HermezSession) UpdateVerifiers added in v1.5.0

func (_Hermez *HermezSession) UpdateVerifiers() (*types.Transaction, error)

UpdateVerifiers is a paid mutator transaction binding the contract method 0x960207c0.

Solidity: function updateVerifiers() returns()

func (*HermezSession) UpdateWithdrawalDelay

func (_Hermez *HermezSession) UpdateWithdrawalDelay(newWithdrawalDelay uint64) (*types.Transaction, error)

UpdateWithdrawalDelay is a paid mutator transaction binding the contract method 0xef4a5c4a.

Solidity: function updateWithdrawalDelay(uint64 newWithdrawalDelay) returns()

func (*HermezSession) VERSIONHASH added in v1.1.0

func (_Hermez *HermezSession) VERSIONHASH() ([32]byte, error)

VERSIONHASH is a free data retrieval call binding the contract method 0x9e4e7318.

Solidity: function VERSION_HASH() view returns(bytes32)

func (*HermezSession) WithdrawCircuit

func (_Hermez *HermezSession) WithdrawCircuit(proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int, tokenID uint32, amount *big.Int, numExitRoot uint32, idx *big.Int, instantWithdraw bool) (*types.Transaction, error)

WithdrawCircuit is a paid mutator transaction binding the contract method 0x9ce2ad42.

Solidity: function withdrawCircuit(uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC, uint32 tokenID, uint192 amount, uint32 numExitRoot, uint48 idx, bool instantWithdraw) returns()

func (*HermezSession) WithdrawDelayerContract

func (_Hermez *HermezSession) WithdrawDelayerContract() (common.Address, error)

WithdrawDelayerContract is a free data retrieval call binding the contract method 0x1b0a8223.

Solidity: function withdrawDelayerContract() view returns(address)

func (*HermezSession) WithdrawMerkleProof

func (_Hermez *HermezSession) WithdrawMerkleProof(tokenID uint32, amount *big.Int, babyPubKey *big.Int, numExitRoot uint32, siblings []*big.Int, idx *big.Int, instantWithdraw bool) (*types.Transaction, error)

WithdrawMerkleProof is a paid mutator transaction binding the contract method 0xd9d4ca44.

Solidity: function withdrawMerkleProof(uint32 tokenID, uint192 amount, uint256 babyPubKey, uint32 numExitRoot, uint256[] siblings, uint48 idx, bool instantWithdraw) returns()

func (*HermezSession) WithdrawVerifier

func (_Hermez *HermezSession) WithdrawVerifier() (common.Address, error)

WithdrawVerifier is a free data retrieval call binding the contract method 0x864eb164.

Solidity: function withdrawVerifier() view returns(address)

func (*HermezSession) WithdrawalDelay

func (_Hermez *HermezSession) WithdrawalDelay() (uint64, error)

WithdrawalDelay is a free data retrieval call binding the contract method 0xa7ab6961.

Solidity: function withdrawalDelay() view returns(uint64)

type HermezTransactor

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

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

func NewHermezTransactor

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

NewHermezTransactor creates a new write-only instance of Hermez, bound to a specific deployed contract.

func (*HermezTransactor) AddL1Transaction

func (_Hermez *HermezTransactor) AddL1Transaction(opts *bind.TransactOpts, babyPubKey *big.Int, fromIdx *big.Int, loadAmountF *big.Int, amountF *big.Int, tokenID uint32, toIdx *big.Int, permit []byte) (*types.Transaction, error)

AddL1Transaction is a paid mutator transaction binding the contract method 0xc7273053.

Solidity: function addL1Transaction(uint256 babyPubKey, uint48 fromIdx, uint40 loadAmountF, uint40 amountF, uint32 tokenID, uint48 toIdx, bytes permit) payable returns()

func (*HermezTransactor) AddToken

func (_Hermez *HermezTransactor) AddToken(opts *bind.TransactOpts, tokenAddress common.Address, permit []byte) (*types.Transaction, error)

AddToken is a paid mutator transaction binding the contract method 0x70c2f1c0.

Solidity: function addToken(address tokenAddress, bytes permit) returns()

func (*HermezTransactor) ForgeBatch

func (_Hermez *HermezTransactor) ForgeBatch(opts *bind.TransactOpts, newLastIdx *big.Int, newStRoot *big.Int, newExitRoot *big.Int, encodedL1CoordinatorTx []byte, l1L2TxsData []byte, feeIdxCoordinator []byte, verifierIdx uint8, l1Batch bool, proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int) (*types.Transaction, error)

ForgeBatch is a paid mutator transaction binding the contract method 0x6e7e1365.

Solidity: function forgeBatch(uint48 newLastIdx, uint256 newStRoot, uint256 newExitRoot, bytes encodedL1CoordinatorTx, bytes l1L2TxsData, bytes feeIdxCoordinator, uint8 verifierIdx, bool l1Batch, uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC) returns()

func (*HermezTransactor) InitializeHermez

func (_Hermez *HermezTransactor) InitializeHermez(opts *bind.TransactOpts, _verifiers []common.Address, _verifiersParams []*big.Int, _withdrawVerifier common.Address, _hermezAuctionContract common.Address, _tokenHEZ common.Address, _forgeL1L2BatchTimeout uint8, _feeAddToken *big.Int, _poseidon2Elements common.Address, _poseidon3Elements common.Address, _poseidon4Elements common.Address, _hermezGovernanceAddress common.Address, _withdrawalDelay uint64, _withdrawDelayerContract common.Address) (*types.Transaction, error)

InitializeHermez is a paid mutator transaction binding the contract method 0x599897e3.

Solidity: function initializeHermez(address[] _verifiers, uint256[] _verifiersParams, address _withdrawVerifier, address _hermezAuctionContract, address _tokenHEZ, uint8 _forgeL1L2BatchTimeout, uint256 _feeAddToken, address _poseidon2Elements, address _poseidon3Elements, address _poseidon4Elements, address _hermezGovernanceAddress, uint64 _withdrawalDelay, address _withdrawDelayerContract) returns()

func (*HermezTransactor) SafeMode

func (_Hermez *HermezTransactor) SafeMode(opts *bind.TransactOpts) (*types.Transaction, error)

SafeMode is a paid mutator transaction binding the contract method 0xabe3219c.

Solidity: function safeMode() returns()

func (*HermezTransactor) UpdateBucketsParameters

func (_Hermez *HermezTransactor) UpdateBucketsParameters(opts *bind.TransactOpts, newBuckets []*big.Int) (*types.Transaction, error)

UpdateBucketsParameters is a paid mutator transaction binding the contract method 0xac300ec9.

Solidity: function updateBucketsParameters(uint256[] newBuckets) returns()

func (*HermezTransactor) UpdateFeeAddToken

func (_Hermez *HermezTransactor) UpdateFeeAddToken(opts *bind.TransactOpts, newFeeAddToken *big.Int) (*types.Transaction, error)

UpdateFeeAddToken is a paid mutator transaction binding the contract method 0x314e5eda.

Solidity: function updateFeeAddToken(uint256 newFeeAddToken) returns()

func (*HermezTransactor) UpdateForgeL1L2BatchTimeout

func (_Hermez *HermezTransactor) UpdateForgeL1L2BatchTimeout(opts *bind.TransactOpts, newForgeL1L2BatchTimeout uint8) (*types.Transaction, error)

UpdateForgeL1L2BatchTimeout is a paid mutator transaction binding the contract method 0xcbd7b5fb.

Solidity: function updateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout) returns()

func (*HermezTransactor) UpdateTokenExchange

func (_Hermez *HermezTransactor) UpdateTokenExchange(opts *bind.TransactOpts, addressArray []common.Address, valueArray []uint64) (*types.Transaction, error)

UpdateTokenExchange is a paid mutator transaction binding the contract method 0x1a748c2d.

Solidity: function updateTokenExchange(address[] addressArray, uint64[] valueArray) returns()

func (*HermezTransactor) UpdateVerifiers added in v1.5.0

func (_Hermez *HermezTransactor) UpdateVerifiers(opts *bind.TransactOpts) (*types.Transaction, error)

UpdateVerifiers is a paid mutator transaction binding the contract method 0x960207c0.

Solidity: function updateVerifiers() returns()

func (*HermezTransactor) UpdateWithdrawalDelay

func (_Hermez *HermezTransactor) UpdateWithdrawalDelay(opts *bind.TransactOpts, newWithdrawalDelay uint64) (*types.Transaction, error)

UpdateWithdrawalDelay is a paid mutator transaction binding the contract method 0xef4a5c4a.

Solidity: function updateWithdrawalDelay(uint64 newWithdrawalDelay) returns()

func (*HermezTransactor) WithdrawCircuit

func (_Hermez *HermezTransactor) WithdrawCircuit(opts *bind.TransactOpts, proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int, tokenID uint32, amount *big.Int, numExitRoot uint32, idx *big.Int, instantWithdraw bool) (*types.Transaction, error)

WithdrawCircuit is a paid mutator transaction binding the contract method 0x9ce2ad42.

Solidity: function withdrawCircuit(uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC, uint32 tokenID, uint192 amount, uint32 numExitRoot, uint48 idx, bool instantWithdraw) returns()

func (*HermezTransactor) WithdrawMerkleProof

func (_Hermez *HermezTransactor) WithdrawMerkleProof(opts *bind.TransactOpts, tokenID uint32, amount *big.Int, babyPubKey *big.Int, numExitRoot uint32, siblings []*big.Int, idx *big.Int, instantWithdraw bool) (*types.Transaction, error)

WithdrawMerkleProof is a paid mutator transaction binding the contract method 0xd9d4ca44.

Solidity: function withdrawMerkleProof(uint32 tokenID, uint192 amount, uint256 babyPubKey, uint32 numExitRoot, uint256[] siblings, uint48 idx, bool instantWithdraw) returns()

type HermezTransactorRaw

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

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

func (*HermezTransactorRaw) Transact

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

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

func (*HermezTransactorRaw) Transfer

func (_Hermez *HermezTransactorRaw) 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 HermezTransactorSession

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

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

func (*HermezTransactorSession) AddL1Transaction

func (_Hermez *HermezTransactorSession) AddL1Transaction(babyPubKey *big.Int, fromIdx *big.Int, loadAmountF *big.Int, amountF *big.Int, tokenID uint32, toIdx *big.Int, permit []byte) (*types.Transaction, error)

AddL1Transaction is a paid mutator transaction binding the contract method 0xc7273053.

Solidity: function addL1Transaction(uint256 babyPubKey, uint48 fromIdx, uint40 loadAmountF, uint40 amountF, uint32 tokenID, uint48 toIdx, bytes permit) payable returns()

func (*HermezTransactorSession) AddToken

func (_Hermez *HermezTransactorSession) AddToken(tokenAddress common.Address, permit []byte) (*types.Transaction, error)

AddToken is a paid mutator transaction binding the contract method 0x70c2f1c0.

Solidity: function addToken(address tokenAddress, bytes permit) returns()

func (*HermezTransactorSession) ForgeBatch

func (_Hermez *HermezTransactorSession) ForgeBatch(newLastIdx *big.Int, newStRoot *big.Int, newExitRoot *big.Int, encodedL1CoordinatorTx []byte, l1L2TxsData []byte, feeIdxCoordinator []byte, verifierIdx uint8, l1Batch bool, proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int) (*types.Transaction, error)

ForgeBatch is a paid mutator transaction binding the contract method 0x6e7e1365.

Solidity: function forgeBatch(uint48 newLastIdx, uint256 newStRoot, uint256 newExitRoot, bytes encodedL1CoordinatorTx, bytes l1L2TxsData, bytes feeIdxCoordinator, uint8 verifierIdx, bool l1Batch, uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC) returns()

func (*HermezTransactorSession) InitializeHermez

func (_Hermez *HermezTransactorSession) InitializeHermez(_verifiers []common.Address, _verifiersParams []*big.Int, _withdrawVerifier common.Address, _hermezAuctionContract common.Address, _tokenHEZ common.Address, _forgeL1L2BatchTimeout uint8, _feeAddToken *big.Int, _poseidon2Elements common.Address, _poseidon3Elements common.Address, _poseidon4Elements common.Address, _hermezGovernanceAddress common.Address, _withdrawalDelay uint64, _withdrawDelayerContract common.Address) (*types.Transaction, error)

InitializeHermez is a paid mutator transaction binding the contract method 0x599897e3.

Solidity: function initializeHermez(address[] _verifiers, uint256[] _verifiersParams, address _withdrawVerifier, address _hermezAuctionContract, address _tokenHEZ, uint8 _forgeL1L2BatchTimeout, uint256 _feeAddToken, address _poseidon2Elements, address _poseidon3Elements, address _poseidon4Elements, address _hermezGovernanceAddress, uint64 _withdrawalDelay, address _withdrawDelayerContract) returns()

func (*HermezTransactorSession) SafeMode

func (_Hermez *HermezTransactorSession) SafeMode() (*types.Transaction, error)

SafeMode is a paid mutator transaction binding the contract method 0xabe3219c.

Solidity: function safeMode() returns()

func (*HermezTransactorSession) UpdateBucketsParameters

func (_Hermez *HermezTransactorSession) UpdateBucketsParameters(newBuckets []*big.Int) (*types.Transaction, error)

UpdateBucketsParameters is a paid mutator transaction binding the contract method 0xac300ec9.

Solidity: function updateBucketsParameters(uint256[] newBuckets) returns()

func (*HermezTransactorSession) UpdateFeeAddToken

func (_Hermez *HermezTransactorSession) UpdateFeeAddToken(newFeeAddToken *big.Int) (*types.Transaction, error)

UpdateFeeAddToken is a paid mutator transaction binding the contract method 0x314e5eda.

Solidity: function updateFeeAddToken(uint256 newFeeAddToken) returns()

func (*HermezTransactorSession) UpdateForgeL1L2BatchTimeout

func (_Hermez *HermezTransactorSession) UpdateForgeL1L2BatchTimeout(newForgeL1L2BatchTimeout uint8) (*types.Transaction, error)

UpdateForgeL1L2BatchTimeout is a paid mutator transaction binding the contract method 0xcbd7b5fb.

Solidity: function updateForgeL1L2BatchTimeout(uint8 newForgeL1L2BatchTimeout) returns()

func (*HermezTransactorSession) UpdateTokenExchange

func (_Hermez *HermezTransactorSession) UpdateTokenExchange(addressArray []common.Address, valueArray []uint64) (*types.Transaction, error)

UpdateTokenExchange is a paid mutator transaction binding the contract method 0x1a748c2d.

Solidity: function updateTokenExchange(address[] addressArray, uint64[] valueArray) returns()

func (*HermezTransactorSession) UpdateVerifiers added in v1.5.0

func (_Hermez *HermezTransactorSession) UpdateVerifiers() (*types.Transaction, error)

UpdateVerifiers is a paid mutator transaction binding the contract method 0x960207c0.

Solidity: function updateVerifiers() returns()

func (*HermezTransactorSession) UpdateWithdrawalDelay

func (_Hermez *HermezTransactorSession) UpdateWithdrawalDelay(newWithdrawalDelay uint64) (*types.Transaction, error)

UpdateWithdrawalDelay is a paid mutator transaction binding the contract method 0xef4a5c4a.

Solidity: function updateWithdrawalDelay(uint64 newWithdrawalDelay) returns()

func (*HermezTransactorSession) WithdrawCircuit

func (_Hermez *HermezTransactorSession) WithdrawCircuit(proofA [2]*big.Int, proofB [2][2]*big.Int, proofC [2]*big.Int, tokenID uint32, amount *big.Int, numExitRoot uint32, idx *big.Int, instantWithdraw bool) (*types.Transaction, error)

WithdrawCircuit is a paid mutator transaction binding the contract method 0x9ce2ad42.

Solidity: function withdrawCircuit(uint256[2] proofA, uint256[2][2] proofB, uint256[2] proofC, uint32 tokenID, uint192 amount, uint32 numExitRoot, uint48 idx, bool instantWithdraw) returns()

func (*HermezTransactorSession) WithdrawMerkleProof

func (_Hermez *HermezTransactorSession) WithdrawMerkleProof(tokenID uint32, amount *big.Int, babyPubKey *big.Int, numExitRoot uint32, siblings []*big.Int, idx *big.Int, instantWithdraw bool) (*types.Transaction, error)

WithdrawMerkleProof is a paid mutator transaction binding the contract method 0xd9d4ca44.

Solidity: function withdrawMerkleProof(uint32 tokenID, uint192 amount, uint256 babyPubKey, uint32 numExitRoot, uint256[] siblings, uint48 idx, bool instantWithdraw) returns()

type HermezUpdateBucketWithdraw

type HermezUpdateBucketWithdraw struct {
	NumBucket   uint8
	BlockStamp  *big.Int
	Withdrawals *big.Int
	Raw         types.Log // Blockchain specific contextual infos
}

HermezUpdateBucketWithdraw represents a UpdateBucketWithdraw event raised by the Hermez contract.

type HermezUpdateBucketWithdrawIterator

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

HermezUpdateBucketWithdrawIterator is returned from FilterUpdateBucketWithdraw and is used to iterate over the raw logs and unpacked data for UpdateBucketWithdraw events raised by the Hermez contract.

func (*HermezUpdateBucketWithdrawIterator) Close

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

func (*HermezUpdateBucketWithdrawIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezUpdateBucketWithdrawIterator) Next

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

type HermezUpdateBucketsParameters

type HermezUpdateBucketsParameters struct {
	ArrayBuckets []*big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

HermezUpdateBucketsParameters represents a UpdateBucketsParameters event raised by the Hermez contract.

type HermezUpdateBucketsParametersIterator

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

HermezUpdateBucketsParametersIterator is returned from FilterUpdateBucketsParameters and is used to iterate over the raw logs and unpacked data for UpdateBucketsParameters events raised by the Hermez contract.

func (*HermezUpdateBucketsParametersIterator) Close

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

func (*HermezUpdateBucketsParametersIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezUpdateBucketsParametersIterator) Next

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

type HermezUpdateFeeAddToken

type HermezUpdateFeeAddToken struct {
	NewFeeAddToken *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

HermezUpdateFeeAddToken represents a UpdateFeeAddToken event raised by the Hermez contract.

type HermezUpdateFeeAddTokenIterator

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

HermezUpdateFeeAddTokenIterator is returned from FilterUpdateFeeAddToken and is used to iterate over the raw logs and unpacked data for UpdateFeeAddToken events raised by the Hermez contract.

func (*HermezUpdateFeeAddTokenIterator) Close

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

func (*HermezUpdateFeeAddTokenIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezUpdateFeeAddTokenIterator) Next

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

type HermezUpdateForgeL1L2BatchTimeout

type HermezUpdateForgeL1L2BatchTimeout struct {
	NewForgeL1L2BatchTimeout uint8
	Raw                      types.Log // Blockchain specific contextual infos
}

HermezUpdateForgeL1L2BatchTimeout represents a UpdateForgeL1L2BatchTimeout event raised by the Hermez contract.

type HermezUpdateForgeL1L2BatchTimeoutIterator

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

HermezUpdateForgeL1L2BatchTimeoutIterator is returned from FilterUpdateForgeL1L2BatchTimeout and is used to iterate over the raw logs and unpacked data for UpdateForgeL1L2BatchTimeout events raised by the Hermez contract.

func (*HermezUpdateForgeL1L2BatchTimeoutIterator) Close

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

func (*HermezUpdateForgeL1L2BatchTimeoutIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezUpdateForgeL1L2BatchTimeoutIterator) Next

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

type HermezUpdateTokenExchange

type HermezUpdateTokenExchange struct {
	AddressArray []common.Address
	ValueArray   []uint64
	Raw          types.Log // Blockchain specific contextual infos
}

HermezUpdateTokenExchange represents a UpdateTokenExchange event raised by the Hermez contract.

type HermezUpdateTokenExchangeIterator

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

HermezUpdateTokenExchangeIterator is returned from FilterUpdateTokenExchange and is used to iterate over the raw logs and unpacked data for UpdateTokenExchange events raised by the Hermez contract.

func (*HermezUpdateTokenExchangeIterator) Close

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

func (*HermezUpdateTokenExchangeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezUpdateTokenExchangeIterator) Next

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

type HermezUpdateWithdrawalDelay

type HermezUpdateWithdrawalDelay struct {
	NewWithdrawalDelay uint64
	Raw                types.Log // Blockchain specific contextual infos
}

HermezUpdateWithdrawalDelay represents a UpdateWithdrawalDelay event raised by the Hermez contract.

type HermezUpdateWithdrawalDelayIterator

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

HermezUpdateWithdrawalDelayIterator is returned from FilterUpdateWithdrawalDelay and is used to iterate over the raw logs and unpacked data for UpdateWithdrawalDelay events raised by the Hermez contract.

func (*HermezUpdateWithdrawalDelayIterator) Close

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

func (*HermezUpdateWithdrawalDelayIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezUpdateWithdrawalDelayIterator) Next

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

type HermezWithdrawEvent

type HermezWithdrawEvent struct {
	Idx             *big.Int
	NumExitRoot     uint32
	InstantWithdraw bool
	Raw             types.Log // Blockchain specific contextual infos
}

HermezWithdrawEvent represents a WithdrawEvent event raised by the Hermez contract.

type HermezWithdrawEventIterator

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

HermezWithdrawEventIterator is returned from FilterWithdrawEvent and is used to iterate over the raw logs and unpacked data for WithdrawEvent events raised by the Hermez contract.

func (*HermezWithdrawEventIterator) Close

func (it *HermezWithdrawEventIterator) Close() error

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

func (*HermezWithdrawEventIterator) Error

func (it *HermezWithdrawEventIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*HermezWithdrawEventIterator) Next

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

Jump to

Keyboard shortcuts

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