Documentation ¶
Index ¶
- Variables
- type ClaimCompressorCompressClaimCallData
- type Claimcompressor
- type ClaimcompressorCaller
- type ClaimcompressorCallerRaw
- type ClaimcompressorCallerSession
- type ClaimcompressorFilterer
- type ClaimcompressorRaw
- func (_Claimcompressor *ClaimcompressorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Claimcompressor *ClaimcompressorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Claimcompressor *ClaimcompressorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ClaimcompressorSession
- type ClaimcompressorTransactor
- type ClaimcompressorTransactorRaw
- type ClaimcompressorTransactorSession
Constants ¶
This section is empty.
Variables ¶
var ClaimcompressorABI = ClaimcompressorMetaData.ABI
ClaimcompressorABI is the input ABI used to generate the binding from. Deprecated: Use ClaimcompressorMetaData.ABI instead.
var ClaimcompressorBin = ClaimcompressorMetaData.Bin
ClaimcompressorBin is the compiled bytecode used for deploying new contracts. Deprecated: Use ClaimcompressorMetaData.Bin instead.
var ClaimcompressorMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"__bridgeAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"__networkID\",\"type\":\"uint32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"mainnetExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"rollupExitRoot\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofLocalExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofRollupExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint256\",\"name\":\"globalIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"isMessage\",\"type\":\"bool\"}],\"internalType\":\"structClaimCompressor.CompressClaimCallData[]\",\"name\":\"compressClaimCalldata\",\"type\":\"tuple[]\"}],\"name\":\"compressClaimCall\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"compressedClaimCalls\",\"type\":\"bytes\"}],\"name\":\"sendCompressedClaims\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x60c060405234801561001057600080fd5b50604051610e32380380610e3283398101604081905261002f9161004b565b6001600160a01b0390911660805263ffffffff1660a05261009a565b6000806040838503121561005e57600080fd5b82516001600160a01b038116811461007557600080fd5b602084015190925063ffffffff8116811461008f57600080fd5b809150509250929050565b60805160a051610d736100bf6000396000610442015260006104640152610d736000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c806304e5557b1461003b57806397b1410f14610064575b600080fd5b61004e610049366004610612565b610079565b60405161005b91906106b9565b60405180910390f35b61007761007236600461070a565b61043b565b005b606060008585604051602001610099929190918252602082015260400190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291905290506000805b8481101561042f5760008686838181106100e9576100e961077c565b90506020028101906100fb91906107ab565b610104906109a8565b9050600082600003610118575060206101aa565b60005b60208110156101a8578888610131600187610aa3565b8181106101405761014061077c565b905060200281019061015291906107ab565b81602081106101635761016361077c565b60200201358360000151826020811061017e5761017e61077c565b60200201511461019657610193816001610abc565b91505b806101a081610acf565b91505061011b565b505b6040805160f883901b7fff0000000000000000000000000000000000000000000000000000000000000016602082015281516001818303018152602190910190915260005b828110156102465783518290826020811061020c5761020c61077c565b6020020151604051602001610222929190610b23565b6040516020818303038152906040529150808061023e90610acf565b9150506101ef565b50602083015151600092501561030a57831580610261575084155b1561026f5760209150610305565b60005b6020811015610303578989610288600188610aa3565b8181106102975761029761077c565b90506020028101906102a991906107ab565b6104000181602081106102be576102be61077c565b6020020135846020015182602081106102d9576102d961077c565b6020020151146102f1576102ee816001610abc565b92505b806102fb81610acf565b915050610272565b505b600194505b808260405160200161031d929190610b45565b604051602081830303815290604052905060005b8281101561038a5781846020015182602081106103505761035061077c565b6020020151604051602001610366929190610b23565b6040516020818303038152906040529150808061038290610acf565b915050610331565b50600083610100015161039e5760006103a1565b60015b6040858101516060870151608088015160a089015160c08a015160e08b0151805187516103e399988c989081901c979096909590949093909291602001610b8f565b60405160208183030381529060405290508681604051602001610407929190610d0e565b604051602081830303815290604052965050505050808061042790610acf565b9150506100cd565b50909695505050505050565b63ffffffff7f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000063ccaa2d1163f5efcd798585602082610824376020828101610844376108a486905261092061090452604082015b81830181101561060757803560f81c80156104d357600181146104f15761050b565b856003538560081c6002538560101c6001538560181c60005361050b565b846003538460081c6002538460101c6001538460181c6000535b5060028101906004906001013560f81c60200280838337909101600181019161040001906020903560f81c02808383379190910190610400810190823560f81c9061041701536001820191506008826018830137600882019150606081019050600482601c830137600482019150602081019050601482600c83013760149182019160408201918390604c01376014820191506020810190506020828237602082013560e01c604082018190526024909201916060909101908083833760009181019190915290810190601f808216602003160161094401622625a05a10156105f357600080fd5b600080826000808b621e8480f150506104b1565b505050505050505050565b6000806000806060858703121561062857600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561064e57600080fd5b818701915087601f83011261066257600080fd5b81358181111561067157600080fd5b8860208260051b850101111561068657600080fd5b95989497505060200194505050565b60005b838110156106b0578181015183820152602001610698565b50506000910152565b60208152600082518060208401526106d8816040850160208701610695565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b6000806020838503121561071d57600080fd5b823567ffffffffffffffff8082111561073557600080fd5b818501915085601f83011261074957600080fd5b81358181111561075857600080fd5b86602082850101111561076a57600080fd5b60209290920196919550909350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7218336030181126107df57600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610120810167ffffffffffffffff8111828210171561083c5761083c6107e9565b60405290565b600082601f83011261085357600080fd5b60405161040080820182811067ffffffffffffffff82111715610878576108786107e9565b6040528301818582111561088b57600080fd5b845b828110156108a557803582526020918201910161088d565b509195945050505050565b803563ffffffff811681146108c457600080fd5b919050565b803573ffffffffffffffffffffffffffffffffffffffff811681146108c457600080fd5b600082601f8301126108fe57600080fd5b813567ffffffffffffffff80821115610919576109196107e9565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561095f5761095f6107e9565b8160405283815286602085880101111561097857600080fd5b836020870160208301376000602085830101528094505050505092915050565b803580151581146108c457600080fd5b60006108e082360312156109bb57600080fd5b6109c3610818565b6109cd3684610842565b81526109dd366104008501610842565b602082015261080083013560408201526109fa61082084016108b0565b6060820152610a0c61084084016108c9565b6080820152610a1e61086084016108c9565b60a082015261088083013560c08201526108a083013567ffffffffffffffff811115610a4957600080fd5b610a55368286016108ed565b60e083015250610a686108c08401610998565b61010082015292915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610ab657610ab6610a74565b92915050565b80820180821115610ab657610ab6610a74565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610b0057610b00610a74565b5060010190565b60008151610b19818560208601610695565b9290920192915050565b60008351610b35818460208801610695565b9190910191825250602001919050565b60008351610b57818460208801610695565b60f89390931b7fff00000000000000000000000000000000000000000000000000000000000000169190920190815260010192915050565b7fff000000000000000000000000000000000000000000000000000000000000008b60f81b16815260008a51610bcc816001850160208f01610695565b7fff000000000000000000000000000000000000000000000000000000000000008b60f81b16600182850101527fffffffffffffffff0000000000000000000000000000000000000000000000008a60c01b16600282850101527fffffffff000000000000000000000000000000000000000000000000000000008960e01b16600a82850101527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008860601b16600e8285010152610cb36022828501018860601b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169052565b8560368285010152610cee6056828501018660e01b7fffffffff00000000000000000000000000000000000000000000000000000000169052565b610cfd605a8285010185610b07565b9d9c50505050505050505050505050565b60008351610d20818460208801610695565b835190830190610d34818360208801610695565b0194935050505056fea2646970667358221220e74200a7552d2d0675be7ff074d7e50af8ab3019b6a596bc14e43e8b37a830c764736f6c63430008140033",
}
ClaimcompressorMetaData contains all meta data concerning the Claimcompressor contract.
Functions ¶
This section is empty.
Types ¶
type ClaimCompressorCompressClaimCallData ¶
type ClaimCompressorCompressClaimCallData struct { SmtProofLocalExitRoot [32][32]byte SmtProofRollupExitRoot [32][32]byte GlobalIndex *big.Int OriginNetwork uint32 OriginAddress common.Address DestinationAddress common.Address Amount *big.Int Metadata []byte IsMessage bool }
ClaimCompressorCompressClaimCallData is an auto generated low-level Go binding around an user-defined struct.
type Claimcompressor ¶
type Claimcompressor struct { ClaimcompressorCaller // Read-only binding to the contract ClaimcompressorTransactor // Write-only binding to the contract ClaimcompressorFilterer // Log filterer for contract events }
Claimcompressor is an auto generated Go binding around an Ethereum contract.
func DeployClaimcompressor ¶
func DeployClaimcompressor(auth *bind.TransactOpts, backend bind.ContractBackend, __bridgeAddress common.Address, __networkID uint32) (common.Address, *types.Transaction, *Claimcompressor, error)
DeployClaimcompressor deploys a new Ethereum contract, binding an instance of Claimcompressor to it.
func NewClaimcompressor ¶
func NewClaimcompressor(address common.Address, backend bind.ContractBackend) (*Claimcompressor, error)
NewClaimcompressor creates a new instance of Claimcompressor, bound to a specific deployed contract.
type ClaimcompressorCaller ¶
type ClaimcompressorCaller struct {
// contains filtered or unexported fields
}
ClaimcompressorCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewClaimcompressorCaller ¶
func NewClaimcompressorCaller(address common.Address, caller bind.ContractCaller) (*ClaimcompressorCaller, error)
NewClaimcompressorCaller creates a new read-only instance of Claimcompressor, bound to a specific deployed contract.
func (*ClaimcompressorCaller) CompressClaimCall ¶
func (_Claimcompressor *ClaimcompressorCaller) CompressClaimCall(opts *bind.CallOpts, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, compressClaimCalldata []ClaimCompressorCompressClaimCallData) ([]byte, error)
CompressClaimCall is a free data retrieval call binding the contract method 0x04e5557b.
Solidity: function compressClaimCall(bytes32 mainnetExitRoot, bytes32 rollupExitRoot, (bytes32[32],bytes32[32],uint256,uint32,address,address,uint256,bytes,bool)[] compressClaimCalldata) pure returns(bytes)
type ClaimcompressorCallerRaw ¶
type ClaimcompressorCallerRaw struct {
Contract *ClaimcompressorCaller // Generic read-only contract binding to access the raw methods on
}
ClaimcompressorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ClaimcompressorCallerRaw) Call ¶
func (_Claimcompressor *ClaimcompressorCallerRaw) 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 ClaimcompressorCallerSession ¶
type ClaimcompressorCallerSession struct { Contract *ClaimcompressorCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ClaimcompressorCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ClaimcompressorCallerSession) CompressClaimCall ¶
func (_Claimcompressor *ClaimcompressorCallerSession) CompressClaimCall(mainnetExitRoot [32]byte, rollupExitRoot [32]byte, compressClaimCalldata []ClaimCompressorCompressClaimCallData) ([]byte, error)
CompressClaimCall is a free data retrieval call binding the contract method 0x04e5557b.
Solidity: function compressClaimCall(bytes32 mainnetExitRoot, bytes32 rollupExitRoot, (bytes32[32],bytes32[32],uint256,uint32,address,address,uint256,bytes,bool)[] compressClaimCalldata) pure returns(bytes)
type ClaimcompressorFilterer ¶
type ClaimcompressorFilterer struct {
// contains filtered or unexported fields
}
ClaimcompressorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewClaimcompressorFilterer ¶
func NewClaimcompressorFilterer(address common.Address, filterer bind.ContractFilterer) (*ClaimcompressorFilterer, error)
NewClaimcompressorFilterer creates a new log filterer instance of Claimcompressor, bound to a specific deployed contract.
type ClaimcompressorRaw ¶
type ClaimcompressorRaw struct {
Contract *Claimcompressor // Generic contract binding to access the raw methods on
}
ClaimcompressorRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ClaimcompressorRaw) Call ¶
func (_Claimcompressor *ClaimcompressorRaw) 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 (*ClaimcompressorRaw) Transact ¶
func (_Claimcompressor *ClaimcompressorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ClaimcompressorRaw) Transfer ¶
func (_Claimcompressor *ClaimcompressorRaw) 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 ClaimcompressorSession ¶
type ClaimcompressorSession struct { Contract *Claimcompressor // 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 }
ClaimcompressorSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ClaimcompressorSession) CompressClaimCall ¶
func (_Claimcompressor *ClaimcompressorSession) CompressClaimCall(mainnetExitRoot [32]byte, rollupExitRoot [32]byte, compressClaimCalldata []ClaimCompressorCompressClaimCallData) ([]byte, error)
CompressClaimCall is a free data retrieval call binding the contract method 0x04e5557b.
Solidity: function compressClaimCall(bytes32 mainnetExitRoot, bytes32 rollupExitRoot, (bytes32[32],bytes32[32],uint256,uint32,address,address,uint256,bytes,bool)[] compressClaimCalldata) pure returns(bytes)
func (*ClaimcompressorSession) SendCompressedClaims ¶
func (_Claimcompressor *ClaimcompressorSession) SendCompressedClaims(compressedClaimCalls []byte) (*types.Transaction, error)
SendCompressedClaims is a paid mutator transaction binding the contract method 0x97b1410f.
Solidity: function sendCompressedClaims(bytes compressedClaimCalls) returns()
type ClaimcompressorTransactor ¶
type ClaimcompressorTransactor struct {
// contains filtered or unexported fields
}
ClaimcompressorTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewClaimcompressorTransactor ¶
func NewClaimcompressorTransactor(address common.Address, transactor bind.ContractTransactor) (*ClaimcompressorTransactor, error)
NewClaimcompressorTransactor creates a new write-only instance of Claimcompressor, bound to a specific deployed contract.
func (*ClaimcompressorTransactor) SendCompressedClaims ¶
func (_Claimcompressor *ClaimcompressorTransactor) SendCompressedClaims(opts *bind.TransactOpts, compressedClaimCalls []byte) (*types.Transaction, error)
SendCompressedClaims is a paid mutator transaction binding the contract method 0x97b1410f.
Solidity: function sendCompressedClaims(bytes compressedClaimCalls) returns()
type ClaimcompressorTransactorRaw ¶
type ClaimcompressorTransactorRaw struct {
Contract *ClaimcompressorTransactor // Generic write-only contract binding to access the raw methods on
}
ClaimcompressorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ClaimcompressorTransactorRaw) Transact ¶
func (_Claimcompressor *ClaimcompressorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ClaimcompressorTransactorRaw) Transfer ¶
func (_Claimcompressor *ClaimcompressorTransactorRaw) 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 ClaimcompressorTransactorSession ¶
type ClaimcompressorTransactorSession struct { Contract *ClaimcompressorTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ClaimcompressorTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ClaimcompressorTransactorSession) SendCompressedClaims ¶
func (_Claimcompressor *ClaimcompressorTransactorSession) SendCompressedClaims(compressedClaimCalls []byte) (*types.Transaction, error)
SendCompressedClaims is a paid mutator transaction binding the contract method 0x97b1410f.
Solidity: function sendCompressedClaims(bytes compressedClaimCalls) returns()