Hashing2

package
v0.0.0-...-5f9d5ca Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Hashing2ABI = Hashing2MetaData.ABI

Hashing2ABI is the input ABI used to generate the binding from. Deprecated: Use Hashing2MetaData.ABI instead.

View Source
var Hashing2MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"version\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"stateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"messagePasserStorageRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"latestBlockhash\",\"type\":\"bytes32\"}],\"internalType\":\"structTypes.OutputRootProof\",\"name\":\"_outputRootProof\",\"type\":\"tuple\"}],\"name\":\"hashOutputRootProof\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"version\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"stateRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"messagePasserStorageRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"latestBlockhash\",\"type\":\"bytes32\"}],\"internalType\":\"structTypes.OutputRootProof\",\"name\":\"_outputRootProof\",\"type\":\"tuple\"}],\"name\":\"hashOutputRootProof2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"gasLimit\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"internalType\":\"structTypes.WithdrawalTransaction\",\"name\":\"_tx\",\"type\":\"tuple\"}],\"name\":\"hashWithdrawal\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"latestBlockhash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"messagePasserStorageRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"outputRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"stateRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

Hashing2MetaData contains all meta data concerning the Hashing2 contract.

Functions

This section is empty.

Types

type Hashing2

type Hashing2 struct {
	Hashing2Caller     // Read-only binding to the contract
	Hashing2Transactor // Write-only binding to the contract
	Hashing2Filterer   // Log filterer for contract events
}

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

func NewHashing2

func NewHashing2(address common.Address, backend bind.ContractBackend) (*Hashing2, error)

NewHashing2 creates a new instance of Hashing2, bound to a specific deployed contract.

type Hashing2Caller

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

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

func NewHashing2Caller

func NewHashing2Caller(address common.Address, caller bind.ContractCaller) (*Hashing2Caller, error)

NewHashing2Caller creates a new read-only instance of Hashing2, bound to a specific deployed contract.

func (*Hashing2Caller) HashOutputRootProof

func (_Hashing2 *Hashing2Caller) HashOutputRootProof(opts *bind.CallOpts, _outputRootProof TypesOutputRootProof) ([32]byte, error)

HashOutputRootProof is a free data retrieval call binding the contract method 0x24d2bbb0.

Solidity: function hashOutputRootProof((bytes32,bytes32,bytes32,bytes32) _outputRootProof) pure returns(bytes32)

func (*Hashing2Caller) HashWithdrawal

func (_Hashing2 *Hashing2Caller) HashWithdrawal(opts *bind.CallOpts, _tx TypesWithdrawalTransaction) ([32]byte, error)

HashWithdrawal is a free data retrieval call binding the contract method 0x7d4395ac.

Solidity: function hashWithdrawal((uint256,address,address,uint256,uint256,bytes) _tx) pure returns(bytes32)

func (*Hashing2Caller) LatestBlockhash

func (_Hashing2 *Hashing2Caller) LatestBlockhash(opts *bind.CallOpts) ([32]byte, error)

LatestBlockhash is a free data retrieval call binding the contract method 0xeda743d3.

Solidity: function latestBlockhash() view returns(bytes32)

func (*Hashing2Caller) MessagePasserStorageRoot

func (_Hashing2 *Hashing2Caller) MessagePasserStorageRoot(opts *bind.CallOpts) ([32]byte, error)

MessagePasserStorageRoot is a free data retrieval call binding the contract method 0x109ddb75.

Solidity: function messagePasserStorageRoot() view returns(bytes32)

func (*Hashing2Caller) OutputRoot

func (_Hashing2 *Hashing2Caller) OutputRoot(opts *bind.CallOpts) ([32]byte, error)

OutputRoot is a free data retrieval call binding the contract method 0xa78deacf.

Solidity: function outputRoot() view returns(bytes32)

func (*Hashing2Caller) StateRoot

func (_Hashing2 *Hashing2Caller) StateRoot(opts *bind.CallOpts) ([32]byte, error)

StateRoot is a free data retrieval call binding the contract method 0x9588eca2.

Solidity: function stateRoot() view returns(bytes32)

func (*Hashing2Caller) Version

func (_Hashing2 *Hashing2Caller) Version(opts *bind.CallOpts) ([32]byte, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(bytes32)

type Hashing2CallerRaw

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

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

func (*Hashing2CallerRaw) Call

func (_Hashing2 *Hashing2CallerRaw) 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 Hashing2CallerSession

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

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

func (*Hashing2CallerSession) HashOutputRootProof

func (_Hashing2 *Hashing2CallerSession) HashOutputRootProof(_outputRootProof TypesOutputRootProof) ([32]byte, error)

HashOutputRootProof is a free data retrieval call binding the contract method 0x24d2bbb0.

Solidity: function hashOutputRootProof((bytes32,bytes32,bytes32,bytes32) _outputRootProof) pure returns(bytes32)

func (*Hashing2CallerSession) HashWithdrawal

func (_Hashing2 *Hashing2CallerSession) HashWithdrawal(_tx TypesWithdrawalTransaction) ([32]byte, error)

HashWithdrawal is a free data retrieval call binding the contract method 0x7d4395ac.

Solidity: function hashWithdrawal((uint256,address,address,uint256,uint256,bytes) _tx) pure returns(bytes32)

func (*Hashing2CallerSession) LatestBlockhash

func (_Hashing2 *Hashing2CallerSession) LatestBlockhash() ([32]byte, error)

LatestBlockhash is a free data retrieval call binding the contract method 0xeda743d3.

Solidity: function latestBlockhash() view returns(bytes32)

func (*Hashing2CallerSession) MessagePasserStorageRoot

func (_Hashing2 *Hashing2CallerSession) MessagePasserStorageRoot() ([32]byte, error)

MessagePasserStorageRoot is a free data retrieval call binding the contract method 0x109ddb75.

Solidity: function messagePasserStorageRoot() view returns(bytes32)

func (*Hashing2CallerSession) OutputRoot

func (_Hashing2 *Hashing2CallerSession) OutputRoot() ([32]byte, error)

OutputRoot is a free data retrieval call binding the contract method 0xa78deacf.

Solidity: function outputRoot() view returns(bytes32)

func (*Hashing2CallerSession) StateRoot

func (_Hashing2 *Hashing2CallerSession) StateRoot() ([32]byte, error)

StateRoot is a free data retrieval call binding the contract method 0x9588eca2.

Solidity: function stateRoot() view returns(bytes32)

func (*Hashing2CallerSession) Version

func (_Hashing2 *Hashing2CallerSession) Version() ([32]byte, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(bytes32)

type Hashing2Filterer

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

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

func NewHashing2Filterer

func NewHashing2Filterer(address common.Address, filterer bind.ContractFilterer) (*Hashing2Filterer, error)

NewHashing2Filterer creates a new log filterer instance of Hashing2, bound to a specific deployed contract.

type Hashing2Raw

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

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

func (*Hashing2Raw) Call

func (_Hashing2 *Hashing2Raw) 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 (*Hashing2Raw) Transact

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

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

func (*Hashing2Raw) Transfer

func (_Hashing2 *Hashing2Raw) 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 Hashing2Session

type Hashing2Session struct {
	Contract     *Hashing2         // 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
}

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

func (*Hashing2Session) HashOutputRootProof

func (_Hashing2 *Hashing2Session) HashOutputRootProof(_outputRootProof TypesOutputRootProof) ([32]byte, error)

HashOutputRootProof is a free data retrieval call binding the contract method 0x24d2bbb0.

Solidity: function hashOutputRootProof((bytes32,bytes32,bytes32,bytes32) _outputRootProof) pure returns(bytes32)

func (*Hashing2Session) HashOutputRootProof2

func (_Hashing2 *Hashing2Session) HashOutputRootProof2(_outputRootProof TypesOutputRootProof) (*types.Transaction, error)

HashOutputRootProof2 is a paid mutator transaction binding the contract method 0x441d7303.

Solidity: function hashOutputRootProof2((bytes32,bytes32,bytes32,bytes32) _outputRootProof) returns()

func (*Hashing2Session) HashWithdrawal

func (_Hashing2 *Hashing2Session) HashWithdrawal(_tx TypesWithdrawalTransaction) ([32]byte, error)

HashWithdrawal is a free data retrieval call binding the contract method 0x7d4395ac.

Solidity: function hashWithdrawal((uint256,address,address,uint256,uint256,bytes) _tx) pure returns(bytes32)

func (*Hashing2Session) LatestBlockhash

func (_Hashing2 *Hashing2Session) LatestBlockhash() ([32]byte, error)

LatestBlockhash is a free data retrieval call binding the contract method 0xeda743d3.

Solidity: function latestBlockhash() view returns(bytes32)

func (*Hashing2Session) MessagePasserStorageRoot

func (_Hashing2 *Hashing2Session) MessagePasserStorageRoot() ([32]byte, error)

MessagePasserStorageRoot is a free data retrieval call binding the contract method 0x109ddb75.

Solidity: function messagePasserStorageRoot() view returns(bytes32)

func (*Hashing2Session) OutputRoot

func (_Hashing2 *Hashing2Session) OutputRoot() ([32]byte, error)

OutputRoot is a free data retrieval call binding the contract method 0xa78deacf.

Solidity: function outputRoot() view returns(bytes32)

func (*Hashing2Session) StateRoot

func (_Hashing2 *Hashing2Session) StateRoot() ([32]byte, error)

StateRoot is a free data retrieval call binding the contract method 0x9588eca2.

Solidity: function stateRoot() view returns(bytes32)

func (*Hashing2Session) Version

func (_Hashing2 *Hashing2Session) Version() ([32]byte, error)

Version is a free data retrieval call binding the contract method 0x54fd4d50.

Solidity: function version() view returns(bytes32)

type Hashing2Transactor

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

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

func NewHashing2Transactor

func NewHashing2Transactor(address common.Address, transactor bind.ContractTransactor) (*Hashing2Transactor, error)

NewHashing2Transactor creates a new write-only instance of Hashing2, bound to a specific deployed contract.

func (*Hashing2Transactor) HashOutputRootProof2

func (_Hashing2 *Hashing2Transactor) HashOutputRootProof2(opts *bind.TransactOpts, _outputRootProof TypesOutputRootProof) (*types.Transaction, error)

HashOutputRootProof2 is a paid mutator transaction binding the contract method 0x441d7303.

Solidity: function hashOutputRootProof2((bytes32,bytes32,bytes32,bytes32) _outputRootProof) returns()

type Hashing2TransactorRaw

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

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

func (*Hashing2TransactorRaw) Transact

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

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

func (*Hashing2TransactorRaw) Transfer

func (_Hashing2 *Hashing2TransactorRaw) 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 Hashing2TransactorSession

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

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

func (*Hashing2TransactorSession) HashOutputRootProof2

func (_Hashing2 *Hashing2TransactorSession) HashOutputRootProof2(_outputRootProof TypesOutputRootProof) (*types.Transaction, error)

HashOutputRootProof2 is a paid mutator transaction binding the contract method 0x441d7303.

Solidity: function hashOutputRootProof2((bytes32,bytes32,bytes32,bytes32) _outputRootProof) returns()

type TypesOutputRootProof

type TypesOutputRootProof struct {
	Version                  [32]byte
	StateRoot                [32]byte
	MessagePasserStorageRoot [32]byte
	LatestBlockhash          [32]byte
}

TypesOutputRootProof is an auto generated low-level Go binding around an user-defined struct.

type TypesWithdrawalTransaction

type TypesWithdrawalTransaction struct {
	Nonce    *big.Int
	Sender   common.Address
	Target   common.Address
	Value    *big.Int
	GasLimit *big.Int
	Data     []byte
}

TypesWithdrawalTransaction is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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