Documentation ¶
Index ¶
- Variables
- type Bridge
- type BridgeCaller
- func (_Bridge *BridgeCaller) Commitments(opts *bind.CallOpts, arg0 *big.Int) (bool, error)
- func (_Bridge *BridgeCaller) Controller(opts *bind.CallOpts) (common.Address, error)
- func (_Bridge *BridgeCaller) GetLeaf(opts *bind.CallOpts, j *big.Int, k *big.Int) (*big.Int, error)
- func (_Bridge *BridgeCaller) GetMerkleProof(opts *bind.CallOpts, index *big.Int) ([8]*big.Int, [8]*big.Int, error)
- func (_Bridge *BridgeCaller) GetPoseidon(opts *bind.CallOpts, input *big.Int, sk *big.Int) (*big.Int, error)
- func (_Bridge *BridgeCaller) GetRoot(opts *bind.CallOpts) (*big.Int, error)
- func (_Bridge *BridgeCaller) GetUniqueLeaf(opts *bind.CallOpts, leaf *big.Int, depth *big.Int) (*big.Int, error)
- func (_Bridge *BridgeCaller) IsKnownRoot(opts *bind.CallOpts, _root *big.Int) (bool, error)
- func (_Bridge *BridgeCaller) MT(opts *bind.CallOpts) (*big.Int, error)
- func (_Bridge *BridgeCaller) NoLeaves(opts *bind.CallOpts) (*big.Int, error)
- func (_Bridge *BridgeCaller) Roots(opts *bind.CallOpts, arg0 *big.Int) (bool, error)
- func (_Bridge *BridgeCaller) Serials(opts *bind.CallOpts, arg0 *big.Int) (bool, error)
- func (_Bridge *BridgeCaller) TreeDepth(opts *bind.CallOpts) (*big.Int, error)
- func (_Bridge *BridgeCaller) Verify(opts *bind.CallOpts, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, ...) (bool, error)
- func (_Bridge *BridgeCaller) VerifyProof(opts *bind.CallOpts, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, ...) (bool, error)
- type BridgeCallerRaw
- type BridgeCallerSession
- func (_Bridge *BridgeCallerSession) Commitments(arg0 *big.Int) (bool, error)
- func (_Bridge *BridgeCallerSession) Controller() (common.Address, error)
- func (_Bridge *BridgeCallerSession) GetLeaf(j *big.Int, k *big.Int) (*big.Int, error)
- func (_Bridge *BridgeCallerSession) GetMerkleProof(index *big.Int) ([8]*big.Int, [8]*big.Int, error)
- func (_Bridge *BridgeCallerSession) GetPoseidon(input *big.Int, sk *big.Int) (*big.Int, error)
- func (_Bridge *BridgeCallerSession) GetRoot() (*big.Int, error)
- func (_Bridge *BridgeCallerSession) GetUniqueLeaf(leaf *big.Int, depth *big.Int) (*big.Int, error)
- func (_Bridge *BridgeCallerSession) IsKnownRoot(_root *big.Int) (bool, error)
- func (_Bridge *BridgeCallerSession) MT() (*big.Int, error)
- func (_Bridge *BridgeCallerSession) NoLeaves() (*big.Int, error)
- func (_Bridge *BridgeCallerSession) Roots(arg0 *big.Int) (bool, error)
- func (_Bridge *BridgeCallerSession) Serials(arg0 *big.Int) (bool, error)
- func (_Bridge *BridgeCallerSession) TreeDepth() (*big.Int, error)
- func (_Bridge *BridgeCallerSession) Verify(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
- func (_Bridge *BridgeCallerSession) VerifyProof(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
- type BridgeCommitmentAdded
- type BridgeCommitmentAddedIterator
- type BridgeFilterer
- func (_Bridge *BridgeFilterer) FilterCommitmentAdded(opts *bind.FilterOpts, commitment []*big.Int) (*BridgeCommitmentAddedIterator, error)
- func (_Bridge *BridgeFilterer) FilterLeafAdded(opts *bind.FilterOpts) (*BridgeLeafAddedIterator, error)
- func (_Bridge *BridgeFilterer) ParseCommitmentAdded(log types.Log) (*BridgeCommitmentAdded, error)
- func (_Bridge *BridgeFilterer) ParseLeafAdded(log types.Log) (*BridgeLeafAdded, error)
- func (_Bridge *BridgeFilterer) WatchCommitmentAdded(opts *bind.WatchOpts, sink chan<- *BridgeCommitmentAdded, ...) (event.Subscription, error)
- func (_Bridge *BridgeFilterer) WatchLeafAdded(opts *bind.WatchOpts, sink chan<- *BridgeLeafAdded) (event.Subscription, error)
- type BridgeLeafAdded
- type BridgeLeafAddedIterator
- type BridgeRaw
- func (_Bridge *BridgeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Bridge *BridgeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Bridge *BridgeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type BridgeSession
- func (_Bridge *BridgeSession) AddCommitment(_commitment *big.Int) (*types.Transaction, error)
- func (_Bridge *BridgeSession) Commitments(arg0 *big.Int) (bool, error)
- func (_Bridge *BridgeSession) Controller() (common.Address, error)
- func (_Bridge *BridgeSession) GetLeaf(j *big.Int, k *big.Int) (*big.Int, error)
- func (_Bridge *BridgeSession) GetMerkleProof(index *big.Int) ([8]*big.Int, [8]*big.Int, error)
- func (_Bridge *BridgeSession) GetPoseidon(input *big.Int, sk *big.Int) (*big.Int, error)
- func (_Bridge *BridgeSession) GetRoot() (*big.Int, error)
- func (_Bridge *BridgeSession) GetUniqueLeaf(leaf *big.Int, depth *big.Int) (*big.Int, error)
- func (_Bridge *BridgeSession) Insert(com *big.Int) (*types.Transaction, error)
- func (_Bridge *BridgeSession) IsKnownRoot(_root *big.Int) (bool, error)
- func (_Bridge *BridgeSession) MT() (*big.Int, error)
- func (_Bridge *BridgeSession) NoLeaves() (*big.Int, error)
- func (_Bridge *BridgeSession) Roots(arg0 *big.Int) (bool, error)
- func (_Bridge *BridgeSession) Serials(arg0 *big.Int) (bool, error)
- func (_Bridge *BridgeSession) TreeDepth() (*big.Int, error)
- func (_Bridge *BridgeSession) UpdateTree() (*types.Transaction, error)
- func (_Bridge *BridgeSession) Verify(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
- func (_Bridge *BridgeSession) VerifyProof(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
- type BridgeTransactor
- func (_Bridge *BridgeTransactor) AddCommitment(opts *bind.TransactOpts, _commitment *big.Int) (*types.Transaction, error)
- func (_Bridge *BridgeTransactor) Insert(opts *bind.TransactOpts, com *big.Int) (*types.Transaction, error)
- func (_Bridge *BridgeTransactor) UpdateTree(opts *bind.TransactOpts) (*types.Transaction, error)
- type BridgeTransactorRaw
- type BridgeTransactorSession
- type Cross
- type CrossCaller
- func (_Cross *CrossCaller) CurrentChainId(opts *bind.CallOpts) (*big.Int, error)
- func (_Cross *CrossCaller) Enable(opts *bind.CallOpts) (bool, error)
- func (_Cross *CrossCaller) FloatFee(opts *bind.CallOpts) (*big.Int, error)
- func (_Cross *CrossCaller) OrderHashes(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)
- func (_Cross *CrossCaller) Orders(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (_Cross *CrossCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- func (_Cross *CrossCaller) PaidOrders(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (_Cross *CrossCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_Cross *CrossCaller) PendingOrders(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (_Cross *CrossCaller) PorterFactory(opts *bind.CallOpts) (common.Address, error)
- func (_Cross *CrossCaller) Receipts(opts *bind.CallOpts, arg0 [32]byte) (struct{ ... }, error)
- func (_Cross *CrossCaller) ZkVerifier(opts *bind.CallOpts) (common.Address, error)
- type CrossCallerRaw
- type CrossCallerSession
- func (_Cross *CrossCallerSession) CurrentChainId() (*big.Int, error)
- func (_Cross *CrossCallerSession) Enable() (bool, error)
- func (_Cross *CrossCallerSession) FloatFee() (*big.Int, error)
- func (_Cross *CrossCallerSession) OrderHashes(arg0 *big.Int) ([32]byte, error)
- func (_Cross *CrossCallerSession) Orders(arg0 [32]byte) (struct{ ... }, error)
- func (_Cross *CrossCallerSession) Owner() (common.Address, error)
- func (_Cross *CrossCallerSession) PaidOrders(arg0 [32]byte) (bool, error)
- func (_Cross *CrossCallerSession) Paused() (bool, error)
- func (_Cross *CrossCallerSession) PendingOrders(arg0 [32]byte) (bool, error)
- func (_Cross *CrossCallerSession) PorterFactory() (common.Address, error)
- func (_Cross *CrossCallerSession) Receipts(arg0 [32]byte) (struct{ ... }, error)
- func (_Cross *CrossCallerSession) ZkVerifier() (common.Address, error)
- type CrossCommitReceipt
- type CrossCommitReceiptIterator
- type CrossCommitReceiptWithZk
- type CrossCommitReceiptWithZkIterator
- type CrossControllerOrder
- type CrossControllerProof
- type CrossControllerReceipt
- type CrossCrossFrom
- type CrossCrossFromIterator
- type CrossCrossTo
- type CrossCrossToIterator
- type CrossEnabledZkVerifier
- type CrossEnabledZkVerifierIterator
- type CrossFilterer
- func (_Cross *CrossFilterer) FilterCommitReceipt(opts *bind.FilterOpts, validator []common.Address, orderHash [][32]byte) (*CrossCommitReceiptIterator, error)
- func (_Cross *CrossFilterer) FilterCommitReceiptWithZk(opts *bind.FilterOpts, validator []common.Address, orderHash [][32]byte) (*CrossCommitReceiptWithZkIterator, error)
- func (_Cross *CrossFilterer) FilterCrossFrom(opts *bind.FilterOpts, validator []common.Address) (*CrossCrossFromIterator, error)
- func (_Cross *CrossFilterer) FilterCrossTo(opts *bind.FilterOpts, account []common.Address) (*CrossCrossToIterator, error)
- func (_Cross *CrossFilterer) FilterEnabledZkVerifier(opts *bind.FilterOpts) (*CrossEnabledZkVerifierIterator, error)
- func (_Cross *CrossFilterer) FilterInitialized(opts *bind.FilterOpts) (*CrossInitializedIterator, error)
- func (_Cross *CrossFilterer) FilterPaused(opts *bind.FilterOpts) (*CrossPausedIterator, error)
- func (_Cross *CrossFilterer) FilterSettedFloatFee(opts *bind.FilterOpts) (*CrossSettedFloatFeeIterator, error)
- func (_Cross *CrossFilterer) FilterSettedPorterFactory(opts *bind.FilterOpts) (*CrossSettedPorterFactoryIterator, error)
- func (_Cross *CrossFilterer) FilterSettedZkVerifier(opts *bind.FilterOpts) (*CrossSettedZkVerifierIterator, error)
- func (_Cross *CrossFilterer) FilterUnpaused(opts *bind.FilterOpts) (*CrossUnpausedIterator, error)
- func (_Cross *CrossFilterer) ParseCommitReceipt(log types.Log) (*CrossCommitReceipt, error)
- func (_Cross *CrossFilterer) ParseCommitReceiptWithZk(log types.Log) (*CrossCommitReceiptWithZk, error)
- func (_Cross *CrossFilterer) ParseCrossFrom(log types.Log) (*CrossCrossFrom, error)
- func (_Cross *CrossFilterer) ParseCrossTo(log types.Log) (*CrossCrossTo, error)
- func (_Cross *CrossFilterer) ParseEnabledZkVerifier(log types.Log) (*CrossEnabledZkVerifier, error)
- func (_Cross *CrossFilterer) ParseInitialized(log types.Log) (*CrossInitialized, error)
- func (_Cross *CrossFilterer) ParsePaused(log types.Log) (*CrossPaused, error)
- func (_Cross *CrossFilterer) ParseSettedFloatFee(log types.Log) (*CrossSettedFloatFee, error)
- func (_Cross *CrossFilterer) ParseSettedPorterFactory(log types.Log) (*CrossSettedPorterFactory, error)
- func (_Cross *CrossFilterer) ParseSettedZkVerifier(log types.Log) (*CrossSettedZkVerifier, error)
- func (_Cross *CrossFilterer) ParseUnpaused(log types.Log) (*CrossUnpaused, error)
- func (_Cross *CrossFilterer) WatchCommitReceipt(opts *bind.WatchOpts, sink chan<- *CrossCommitReceipt, ...) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchCommitReceiptWithZk(opts *bind.WatchOpts, sink chan<- *CrossCommitReceiptWithZk, ...) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchCrossFrom(opts *bind.WatchOpts, sink chan<- *CrossCrossFrom, validator []common.Address) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchCrossTo(opts *bind.WatchOpts, sink chan<- *CrossCrossTo, account []common.Address) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchEnabledZkVerifier(opts *bind.WatchOpts, sink chan<- *CrossEnabledZkVerifier) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *CrossInitialized) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *CrossPaused) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchSettedFloatFee(opts *bind.WatchOpts, sink chan<- *CrossSettedFloatFee) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchSettedPorterFactory(opts *bind.WatchOpts, sink chan<- *CrossSettedPorterFactory) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchSettedZkVerifier(opts *bind.WatchOpts, sink chan<- *CrossSettedZkVerifier) (event.Subscription, error)
- func (_Cross *CrossFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *CrossUnpaused) (event.Subscription, error)
- type CrossInitialized
- type CrossInitializedIterator
- type CrossPaused
- type CrossPausedIterator
- type CrossRaw
- func (_Cross *CrossRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Cross *CrossRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Cross *CrossRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type CrossSession
- func (_Cross *CrossSession) AddCommitment(_commitment *big.Int) (*types.Transaction, error)
- func (_Cross *CrossSession) CommitReceipt(orderHash [32]byte, receipt CrossControllerReceipt) (*types.Transaction, error)
- func (_Cross *CrossSession) CommitReceiptWithZK(proof CrossControllerProof, input [2]*big.Int, orderHash [32]byte, ...) (*types.Transaction, error)
- func (_Cross *CrossSession) CrossFrom(order CrossControllerOrder, srcTokenDecimals uint8, crossAmount *big.Int) (*types.Transaction, error)
- func (_Cross *CrossSession) CrossTo(order CrossControllerOrder) (*types.Transaction, error)
- func (_Cross *CrossSession) CurrentChainId() (*big.Int, error)
- func (_Cross *CrossSession) Enable() (bool, error)
- func (_Cross *CrossSession) EnableZkVerifier(_enable bool) (*types.Transaction, error)
- func (_Cross *CrossSession) FloatFee() (*big.Int, error)
- func (_Cross *CrossSession) Initialize(_owner common.Address) (*types.Transaction, error)
- func (_Cross *CrossSession) OrderHashes(arg0 *big.Int) ([32]byte, error)
- func (_Cross *CrossSession) Orders(arg0 [32]byte) (struct{ ... }, error)
- func (_Cross *CrossSession) Owner() (common.Address, error)
- func (_Cross *CrossSession) PaidOrders(arg0 [32]byte) (bool, error)
- func (_Cross *CrossSession) Paused() (bool, error)
- func (_Cross *CrossSession) PendingOrders(arg0 [32]byte) (bool, error)
- func (_Cross *CrossSession) PorterFactory() (common.Address, error)
- func (_Cross *CrossSession) Receipts(arg0 [32]byte) (struct{ ... }, error)
- func (_Cross *CrossSession) SetFloatFee(_floatFee *big.Int) (*types.Transaction, error)
- func (_Cross *CrossSession) SetPorterFactory(_factory common.Address) (*types.Transaction, error)
- func (_Cross *CrossSession) SetZkVerifier(_verifier common.Address) (*types.Transaction, error)
- func (_Cross *CrossSession) ZkVerifier() (common.Address, error)
- type CrossSettedFloatFee
- type CrossSettedFloatFeeIterator
- type CrossSettedPorterFactory
- type CrossSettedPorterFactoryIterator
- type CrossSettedZkVerifier
- type CrossSettedZkVerifierIterator
- type CrossTransactor
- func (_Cross *CrossTransactor) AddCommitment(opts *bind.TransactOpts, _commitment *big.Int) (*types.Transaction, error)
- func (_Cross *CrossTransactor) CommitReceipt(opts *bind.TransactOpts, orderHash [32]byte, receipt CrossControllerReceipt) (*types.Transaction, error)
- func (_Cross *CrossTransactor) CommitReceiptWithZK(opts *bind.TransactOpts, proof CrossControllerProof, input [2]*big.Int, ...) (*types.Transaction, error)
- func (_Cross *CrossTransactor) CrossFrom(opts *bind.TransactOpts, order CrossControllerOrder, srcTokenDecimals uint8, ...) (*types.Transaction, error)
- func (_Cross *CrossTransactor) CrossTo(opts *bind.TransactOpts, order CrossControllerOrder) (*types.Transaction, error)
- func (_Cross *CrossTransactor) EnableZkVerifier(opts *bind.TransactOpts, _enable bool) (*types.Transaction, error)
- func (_Cross *CrossTransactor) Initialize(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)
- func (_Cross *CrossTransactor) SetFloatFee(opts *bind.TransactOpts, _floatFee *big.Int) (*types.Transaction, error)
- func (_Cross *CrossTransactor) SetPorterFactory(opts *bind.TransactOpts, _factory common.Address) (*types.Transaction, error)
- func (_Cross *CrossTransactor) SetZkVerifier(opts *bind.TransactOpts, _verifier common.Address) (*types.Transaction, error)
- type CrossTransactorRaw
- type CrossTransactorSession
- func (_Cross *CrossTransactorSession) AddCommitment(_commitment *big.Int) (*types.Transaction, error)
- func (_Cross *CrossTransactorSession) CommitReceipt(orderHash [32]byte, receipt CrossControllerReceipt) (*types.Transaction, error)
- func (_Cross *CrossTransactorSession) CommitReceiptWithZK(proof CrossControllerProof, input [2]*big.Int, orderHash [32]byte, ...) (*types.Transaction, error)
- func (_Cross *CrossTransactorSession) CrossFrom(order CrossControllerOrder, srcTokenDecimals uint8, crossAmount *big.Int) (*types.Transaction, error)
- func (_Cross *CrossTransactorSession) CrossTo(order CrossControllerOrder) (*types.Transaction, error)
- func (_Cross *CrossTransactorSession) EnableZkVerifier(_enable bool) (*types.Transaction, error)
- func (_Cross *CrossTransactorSession) Initialize(_owner common.Address) (*types.Transaction, error)
- func (_Cross *CrossTransactorSession) SetFloatFee(_floatFee *big.Int) (*types.Transaction, error)
- func (_Cross *CrossTransactorSession) SetPorterFactory(_factory common.Address) (*types.Transaction, error)
- func (_Cross *CrossTransactorSession) SetZkVerifier(_verifier common.Address) (*types.Transaction, error)
- type CrossUnpaused
- type CrossUnpausedIterator
Constants ¶
This section is empty.
Variables ¶
var BridgeABI = BridgeMetaData.ABI
BridgeABI is the input ABI used to generate the binding from. Deprecated: Use BridgeMetaData.ABI instead.
var BridgeMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_mimc\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_controller\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"commitment\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"leafIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"CommitmentAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"LeafAdded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"MT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"cur\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_commitment\",\"type\":\"uint256\"}],\"name\":\"addCommitment\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"commitments\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"controller\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"j\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"k\",\"type\":\"uint256\"}],\"name\":\"getLeaf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getMerkleProof\",\"outputs\":[{\"internalType\":\"uint256[8]\",\"name\":\"\",\"type\":\"uint256[8]\"},{\"internalType\":\"uint256[8]\",\"name\":\"\",\"type\":\"uint256[8]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"input\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"sk\",\"type\":\"uint256\"}],\"name\":\"getPoseidon\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRoot\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"leaf\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"depth\",\"type\":\"uint256\"}],\"name\":\"getUniqueLeaf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"com\",\"type\":\"uint256\"}],\"name\":\"insert\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_root\",\"type\":\"uint256\"}],\"name\":\"isKnownRoot\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"no_leaves\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"roots\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"serials\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tree_depth\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"updateTree\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"root\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[2]\",\"name\":\"a\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2][2]\",\"name\":\"b\",\"type\":\"uint256[2][2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"c\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"input\",\"type\":\"uint256[2]\"}],\"name\":\"verify\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256[2]\",\"name\":\"a\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2][2]\",\"name\":\"b\",\"type\":\"uint256[2][2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"c\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"input\",\"type\":\"uint256[2]\"}],\"name\":\"verifyProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"r\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
BridgeMetaData contains all meta data concerning the Bridge contract.
var CrossABI = CrossMetaData.ABI
CrossABI is the input ABI used to generate the binding from. Deprecated: Use CrossMetaData.ABI instead.
var CrossMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"proofHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"destTxHash\",\"type\":\"bytes32\"}],\"indexed\":false,\"internalType\":\"structCrossController.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"CommitReceipt\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"proofHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"destTxHash\",\"type\":\"bytes32\"}],\"indexed\":false,\"internalType\":\"structCrossController.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"CommitReceiptWithZk\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"validator\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"orderId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"srcAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"srcAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"porter\",\"type\":\"address\"}],\"indexed\":false,\"internalType\":\"structCrossController.Order\",\"name\":\"order\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"srcTokenDecimals\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"crossAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"paidAmount\",\"type\":\"uint256\"}],\"name\":\"CrossFrom\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"orderId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"srcAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"srcAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"porter\",\"type\":\"address\"}],\"indexed\":false,\"internalType\":\"structCrossController.Order\",\"name\":\"order\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fixedFeeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"floatFeeAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"crossAmount\",\"type\":\"uint256\"}],\"name\":\"CrossTo\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"_enable\",\"type\":\"bool\"}],\"name\":\"EnabledZkVerifier\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"floatFee\",\"type\":\"uint256\"}],\"name\":\"SettedFloatFee\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"}],\"name\":\"SettedPorterFactory\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_zkVerifier\",\"type\":\"address\"}],\"name\":\"SettedZkVerifier\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_commitment\",\"type\":\"uint256\"}],\"name\":\"addCommitment\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"proofHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"destTxHash\",\"type\":\"bytes32\"}],\"internalType\":\"structCrossController.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"commitReceipt\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256[2]\",\"name\":\"a\",\"type\":\"uint256[2]\"},{\"internalType\":\"uint256[2][2]\",\"name\":\"b\",\"type\":\"uint256[2][2]\"},{\"internalType\":\"uint256[2]\",\"name\":\"c\",\"type\":\"uint256[2]\"}],\"internalType\":\"structCrossController.Proof\",\"name\":\"proof\",\"type\":\"tuple\"},{\"internalType\":\"uint256[2]\",\"name\":\"input\",\"type\":\"uint256[2]\"},{\"internalType\":\"bytes32\",\"name\":\"orderHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"destTxHash\",\"type\":\"bytes32\"}],\"name\":\"commitReceiptWithZK\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"orderId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"srcAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"srcAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"porter\",\"type\":\"address\"}],\"internalType\":\"structCrossController.Order\",\"name\":\"order\",\"type\":\"tuple\"},{\"internalType\":\"uint8\",\"name\":\"srcTokenDecimals\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"crossAmount\",\"type\":\"uint256\"}],\"name\":\"crossFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"orderId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"srcAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"srcAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"porter\",\"type\":\"address\"}],\"internalType\":\"structCrossController.Order\",\"name\":\"order\",\"type\":\"tuple\"}],\"name\":\"crossTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"currentChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"enable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bool\",\"name\":\"_enable\",\"type\":\"bool\"}],\"name\":\"enableZkVerifier\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"floatFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"orderHashes\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"orders\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"orderId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"srcChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"srcAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"srcToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"srcAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destChainId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"destAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"porter\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"paidOrders\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"pendingOrders\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"porterFactory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"receipts\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"proofHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"destTxHash\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_floatFee\",\"type\":\"uint256\"}],\"name\":\"setFloatFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_factory\",\"type\":\"address\"}],\"name\":\"setPorterFactory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_verifier\",\"type\":\"address\"}],\"name\":\"setZkVerifier\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"zkVerifier\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
CrossMetaData contains all meta data concerning the Cross contract.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct { BridgeCaller // Read-only binding to the contract BridgeTransactor // Write-only binding to the contract BridgeFilterer // Log filterer for contract events }
Bridge is an auto generated Go binding around an Ethereum contract.
type BridgeCaller ¶
type BridgeCaller struct {
// contains filtered or unexported fields
}
BridgeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewBridgeCaller ¶
func NewBridgeCaller(address common.Address, caller bind.ContractCaller) (*BridgeCaller, error)
NewBridgeCaller creates a new read-only instance of Bridge, bound to a specific deployed contract.
func (*BridgeCaller) Commitments ¶
Commitments is a free data retrieval call binding the contract method 0x49ce8997.
Solidity: function commitments(uint256 ) view returns(bool)
func (*BridgeCaller) Controller ¶
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*BridgeCaller) GetLeaf ¶
GetLeaf is a free data retrieval call binding the contract method 0x2fb2798d.
Solidity: function getLeaf(uint256 j, uint256 k) view returns(uint256 root)
func (*BridgeCaller) GetMerkleProof ¶
func (_Bridge *BridgeCaller) GetMerkleProof(opts *bind.CallOpts, index *big.Int) ([8]*big.Int, [8]*big.Int, error)
GetMerkleProof is a free data retrieval call binding the contract method 0xc41dd397.
Solidity: function getMerkleProof(uint256 index) view returns(uint256[8], uint256[8])
func (*BridgeCaller) GetPoseidon ¶
func (_Bridge *BridgeCaller) GetPoseidon(opts *bind.CallOpts, input *big.Int, sk *big.Int) (*big.Int, error)
GetPoseidon is a free data retrieval call binding the contract method 0xf662db24.
Solidity: function getPoseidon(uint256 input, uint256 sk) view returns(uint256)
func (*BridgeCaller) GetRoot ¶
GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.
Solidity: function getRoot() view returns(uint256 root)
func (*BridgeCaller) GetUniqueLeaf ¶
func (_Bridge *BridgeCaller) GetUniqueLeaf(opts *bind.CallOpts, leaf *big.Int, depth *big.Int) (*big.Int, error)
GetUniqueLeaf is a free data retrieval call binding the contract method 0x4d556bed.
Solidity: function getUniqueLeaf(uint256 leaf, uint256 depth) view returns(uint256)
func (*BridgeCaller) IsKnownRoot ¶
IsKnownRoot is a free data retrieval call binding the contract method 0xa6232a93.
Solidity: function isKnownRoot(uint256 _root) view returns(bool)
func (*BridgeCaller) MT ¶
MT is a free data retrieval call binding the contract method 0x4a1f11a7.
Solidity: function MT() view returns(uint256 cur)
func (*BridgeCaller) NoLeaves ¶
NoLeaves is a free data retrieval call binding the contract method 0xa03515fd.
Solidity: function no_leaves() view returns(uint256)
func (*BridgeCaller) Roots ¶
Roots is a free data retrieval call binding the contract method 0xc2b40ae4.
Solidity: function roots(uint256 ) view returns(bool)
func (*BridgeCaller) Serials ¶
Serials is a free data retrieval call binding the contract method 0x98cd96af.
Solidity: function serials(uint256 ) view returns(bool)
func (*BridgeCaller) TreeDepth ¶
TreeDepth is a free data retrieval call binding the contract method 0xe08dfff8.
Solidity: function tree_depth() view returns(uint256)
func (*BridgeCaller) Verify ¶
func (_Bridge *BridgeCaller) Verify(opts *bind.CallOpts, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
Verify is a free data retrieval call binding the contract method 0xdff66416.
Solidity: function verify(uint256[2] a, uint256[2][2] b, uint256[2] c, uint256[2] input) view returns(bool)
func (*BridgeCaller) VerifyProof ¶
func (_Bridge *BridgeCaller) VerifyProof(opts *bind.CallOpts, a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
VerifyProof is a free data retrieval call binding the contract method 0xf5c9d69e.
Solidity: function verifyProof(uint256[2] a, uint256[2][2] b, uint256[2] c, uint256[2] input) view returns(bool r)
type BridgeCallerRaw ¶
type BridgeCallerRaw struct {
Contract *BridgeCaller // Generic read-only contract binding to access the raw methods on
}
BridgeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*BridgeCallerRaw) Call ¶
func (_Bridge *BridgeCallerRaw) 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 BridgeCallerSession ¶
type BridgeCallerSession struct { Contract *BridgeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
BridgeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*BridgeCallerSession) Commitments ¶
func (_Bridge *BridgeCallerSession) Commitments(arg0 *big.Int) (bool, error)
Commitments is a free data retrieval call binding the contract method 0x49ce8997.
Solidity: function commitments(uint256 ) view returns(bool)
func (*BridgeCallerSession) Controller ¶
func (_Bridge *BridgeCallerSession) Controller() (common.Address, error)
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*BridgeCallerSession) GetLeaf ¶
GetLeaf is a free data retrieval call binding the contract method 0x2fb2798d.
Solidity: function getLeaf(uint256 j, uint256 k) view returns(uint256 root)
func (*BridgeCallerSession) GetMerkleProof ¶
func (_Bridge *BridgeCallerSession) GetMerkleProof(index *big.Int) ([8]*big.Int, [8]*big.Int, error)
GetMerkleProof is a free data retrieval call binding the contract method 0xc41dd397.
Solidity: function getMerkleProof(uint256 index) view returns(uint256[8], uint256[8])
func (*BridgeCallerSession) GetPoseidon ¶
GetPoseidon is a free data retrieval call binding the contract method 0xf662db24.
Solidity: function getPoseidon(uint256 input, uint256 sk) view returns(uint256)
func (*BridgeCallerSession) GetRoot ¶
func (_Bridge *BridgeCallerSession) GetRoot() (*big.Int, error)
GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.
Solidity: function getRoot() view returns(uint256 root)
func (*BridgeCallerSession) GetUniqueLeaf ¶
GetUniqueLeaf is a free data retrieval call binding the contract method 0x4d556bed.
Solidity: function getUniqueLeaf(uint256 leaf, uint256 depth) view returns(uint256)
func (*BridgeCallerSession) IsKnownRoot ¶
func (_Bridge *BridgeCallerSession) IsKnownRoot(_root *big.Int) (bool, error)
IsKnownRoot is a free data retrieval call binding the contract method 0xa6232a93.
Solidity: function isKnownRoot(uint256 _root) view returns(bool)
func (*BridgeCallerSession) MT ¶
func (_Bridge *BridgeCallerSession) MT() (*big.Int, error)
MT is a free data retrieval call binding the contract method 0x4a1f11a7.
Solidity: function MT() view returns(uint256 cur)
func (*BridgeCallerSession) NoLeaves ¶
func (_Bridge *BridgeCallerSession) NoLeaves() (*big.Int, error)
NoLeaves is a free data retrieval call binding the contract method 0xa03515fd.
Solidity: function no_leaves() view returns(uint256)
func (*BridgeCallerSession) Roots ¶
func (_Bridge *BridgeCallerSession) Roots(arg0 *big.Int) (bool, error)
Roots is a free data retrieval call binding the contract method 0xc2b40ae4.
Solidity: function roots(uint256 ) view returns(bool)
func (*BridgeCallerSession) Serials ¶
func (_Bridge *BridgeCallerSession) Serials(arg0 *big.Int) (bool, error)
Serials is a free data retrieval call binding the contract method 0x98cd96af.
Solidity: function serials(uint256 ) view returns(bool)
func (*BridgeCallerSession) TreeDepth ¶
func (_Bridge *BridgeCallerSession) TreeDepth() (*big.Int, error)
TreeDepth is a free data retrieval call binding the contract method 0xe08dfff8.
Solidity: function tree_depth() view returns(uint256)
func (*BridgeCallerSession) Verify ¶
func (_Bridge *BridgeCallerSession) Verify(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
Verify is a free data retrieval call binding the contract method 0xdff66416.
Solidity: function verify(uint256[2] a, uint256[2][2] b, uint256[2] c, uint256[2] input) view returns(bool)
func (*BridgeCallerSession) VerifyProof ¶
func (_Bridge *BridgeCallerSession) VerifyProof(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
VerifyProof is a free data retrieval call binding the contract method 0xf5c9d69e.
Solidity: function verifyProof(uint256[2] a, uint256[2][2] b, uint256[2] c, uint256[2] input) view returns(bool r)
type BridgeCommitmentAdded ¶
type BridgeCommitmentAdded struct { Commitment *big.Int LeafIndex *big.Int Timestamp *big.Int Raw types.Log // Blockchain specific contextual infos }
BridgeCommitmentAdded represents a CommitmentAdded event raised by the Bridge contract.
type BridgeCommitmentAddedIterator ¶
type BridgeCommitmentAddedIterator struct { Event *BridgeCommitmentAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeCommitmentAddedIterator is returned from FilterCommitmentAdded and is used to iterate over the raw logs and unpacked data for CommitmentAdded events raised by the Bridge contract.
func (*BridgeCommitmentAddedIterator) Close ¶
func (it *BridgeCommitmentAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeCommitmentAddedIterator) Error ¶
func (it *BridgeCommitmentAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeCommitmentAddedIterator) Next ¶
func (it *BridgeCommitmentAddedIterator) 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 BridgeFilterer ¶
type BridgeFilterer struct {
// contains filtered or unexported fields
}
BridgeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewBridgeFilterer ¶
func NewBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeFilterer, error)
NewBridgeFilterer creates a new log filterer instance of Bridge, bound to a specific deployed contract.
func (*BridgeFilterer) FilterCommitmentAdded ¶
func (_Bridge *BridgeFilterer) FilterCommitmentAdded(opts *bind.FilterOpts, commitment []*big.Int) (*BridgeCommitmentAddedIterator, error)
FilterCommitmentAdded is a free log retrieval operation binding the contract event 0x65ba9a9f4b62e3d394afcc0ed4b32089839f4dd83f4cfda7e495e09f2cc5657f.
Solidity: event CommitmentAdded(uint256 indexed commitment, uint256 leafIndex, uint256 timestamp)
func (*BridgeFilterer) FilterLeafAdded ¶
func (_Bridge *BridgeFilterer) FilterLeafAdded(opts *bind.FilterOpts) (*BridgeLeafAddedIterator, error)
FilterLeafAdded is a free log retrieval operation binding the contract event 0xee14d40b05aa42dee41bd28416dcb3ca632a33e9f6ea33a4bca7ffcb95938858.
Solidity: event LeafAdded(uint256 index)
func (*BridgeFilterer) ParseCommitmentAdded ¶
func (_Bridge *BridgeFilterer) ParseCommitmentAdded(log types.Log) (*BridgeCommitmentAdded, error)
ParseCommitmentAdded is a log parse operation binding the contract event 0x65ba9a9f4b62e3d394afcc0ed4b32089839f4dd83f4cfda7e495e09f2cc5657f.
Solidity: event CommitmentAdded(uint256 indexed commitment, uint256 leafIndex, uint256 timestamp)
func (*BridgeFilterer) ParseLeafAdded ¶
func (_Bridge *BridgeFilterer) ParseLeafAdded(log types.Log) (*BridgeLeafAdded, error)
ParseLeafAdded is a log parse operation binding the contract event 0xee14d40b05aa42dee41bd28416dcb3ca632a33e9f6ea33a4bca7ffcb95938858.
Solidity: event LeafAdded(uint256 index)
func (*BridgeFilterer) WatchCommitmentAdded ¶
func (_Bridge *BridgeFilterer) WatchCommitmentAdded(opts *bind.WatchOpts, sink chan<- *BridgeCommitmentAdded, commitment []*big.Int) (event.Subscription, error)
WatchCommitmentAdded is a free log subscription operation binding the contract event 0x65ba9a9f4b62e3d394afcc0ed4b32089839f4dd83f4cfda7e495e09f2cc5657f.
Solidity: event CommitmentAdded(uint256 indexed commitment, uint256 leafIndex, uint256 timestamp)
func (*BridgeFilterer) WatchLeafAdded ¶
func (_Bridge *BridgeFilterer) WatchLeafAdded(opts *bind.WatchOpts, sink chan<- *BridgeLeafAdded) (event.Subscription, error)
WatchLeafAdded is a free log subscription operation binding the contract event 0xee14d40b05aa42dee41bd28416dcb3ca632a33e9f6ea33a4bca7ffcb95938858.
Solidity: event LeafAdded(uint256 index)
type BridgeLeafAdded ¶
type BridgeLeafAdded struct { Index *big.Int Raw types.Log // Blockchain specific contextual infos }
BridgeLeafAdded represents a LeafAdded event raised by the Bridge contract.
type BridgeLeafAddedIterator ¶
type BridgeLeafAddedIterator struct { Event *BridgeLeafAdded // Event containing the contract specifics and raw log // contains filtered or unexported fields }
BridgeLeafAddedIterator is returned from FilterLeafAdded and is used to iterate over the raw logs and unpacked data for LeafAdded events raised by the Bridge contract.
func (*BridgeLeafAddedIterator) Close ¶
func (it *BridgeLeafAddedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*BridgeLeafAddedIterator) Error ¶
func (it *BridgeLeafAddedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*BridgeLeafAddedIterator) Next ¶
func (it *BridgeLeafAddedIterator) 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 BridgeRaw ¶
type BridgeRaw struct {
Contract *Bridge // Generic contract binding to access the raw methods on
}
BridgeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*BridgeRaw) Call ¶
func (_Bridge *BridgeRaw) 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 (*BridgeRaw) Transact ¶
func (_Bridge *BridgeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BridgeRaw) Transfer ¶
func (_Bridge *BridgeRaw) 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 BridgeSession ¶
type BridgeSession struct { Contract *Bridge // 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 }
BridgeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*BridgeSession) AddCommitment ¶
func (_Bridge *BridgeSession) AddCommitment(_commitment *big.Int) (*types.Transaction, error)
AddCommitment is a paid mutator transaction binding the contract method 0x797a6890.
Solidity: function addCommitment(uint256 _commitment) returns()
func (*BridgeSession) Commitments ¶
func (_Bridge *BridgeSession) Commitments(arg0 *big.Int) (bool, error)
Commitments is a free data retrieval call binding the contract method 0x49ce8997.
Solidity: function commitments(uint256 ) view returns(bool)
func (*BridgeSession) Controller ¶
func (_Bridge *BridgeSession) Controller() (common.Address, error)
Controller is a free data retrieval call binding the contract method 0xf77c4791.
Solidity: function controller() view returns(address)
func (*BridgeSession) GetLeaf ¶
GetLeaf is a free data retrieval call binding the contract method 0x2fb2798d.
Solidity: function getLeaf(uint256 j, uint256 k) view returns(uint256 root)
func (*BridgeSession) GetMerkleProof ¶
GetMerkleProof is a free data retrieval call binding the contract method 0xc41dd397.
Solidity: function getMerkleProof(uint256 index) view returns(uint256[8], uint256[8])
func (*BridgeSession) GetPoseidon ¶
GetPoseidon is a free data retrieval call binding the contract method 0xf662db24.
Solidity: function getPoseidon(uint256 input, uint256 sk) view returns(uint256)
func (*BridgeSession) GetRoot ¶
func (_Bridge *BridgeSession) GetRoot() (*big.Int, error)
GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.
Solidity: function getRoot() view returns(uint256 root)
func (*BridgeSession) GetUniqueLeaf ¶
GetUniqueLeaf is a free data retrieval call binding the contract method 0x4d556bed.
Solidity: function getUniqueLeaf(uint256 leaf, uint256 depth) view returns(uint256)
func (*BridgeSession) Insert ¶
func (_Bridge *BridgeSession) Insert(com *big.Int) (*types.Transaction, error)
Insert is a paid mutator transaction binding the contract method 0x90b5561d.
Solidity: function insert(uint256 com) returns(uint256)
func (*BridgeSession) IsKnownRoot ¶
func (_Bridge *BridgeSession) IsKnownRoot(_root *big.Int) (bool, error)
IsKnownRoot is a free data retrieval call binding the contract method 0xa6232a93.
Solidity: function isKnownRoot(uint256 _root) view returns(bool)
func (*BridgeSession) MT ¶
func (_Bridge *BridgeSession) MT() (*big.Int, error)
MT is a free data retrieval call binding the contract method 0x4a1f11a7.
Solidity: function MT() view returns(uint256 cur)
func (*BridgeSession) NoLeaves ¶
func (_Bridge *BridgeSession) NoLeaves() (*big.Int, error)
NoLeaves is a free data retrieval call binding the contract method 0xa03515fd.
Solidity: function no_leaves() view returns(uint256)
func (*BridgeSession) Roots ¶
func (_Bridge *BridgeSession) Roots(arg0 *big.Int) (bool, error)
Roots is a free data retrieval call binding the contract method 0xc2b40ae4.
Solidity: function roots(uint256 ) view returns(bool)
func (*BridgeSession) Serials ¶
func (_Bridge *BridgeSession) Serials(arg0 *big.Int) (bool, error)
Serials is a free data retrieval call binding the contract method 0x98cd96af.
Solidity: function serials(uint256 ) view returns(bool)
func (*BridgeSession) TreeDepth ¶
func (_Bridge *BridgeSession) TreeDepth() (*big.Int, error)
TreeDepth is a free data retrieval call binding the contract method 0xe08dfff8.
Solidity: function tree_depth() view returns(uint256)
func (*BridgeSession) UpdateTree ¶
func (_Bridge *BridgeSession) UpdateTree() (*types.Transaction, error)
UpdateTree is a paid mutator transaction binding the contract method 0xee427b1d.
Solidity: function updateTree() returns(uint256 root)
func (*BridgeSession) Verify ¶
func (_Bridge *BridgeSession) Verify(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
Verify is a free data retrieval call binding the contract method 0xdff66416.
Solidity: function verify(uint256[2] a, uint256[2][2] b, uint256[2] c, uint256[2] input) view returns(bool)
func (*BridgeSession) VerifyProof ¶
func (_Bridge *BridgeSession) VerifyProof(a [2]*big.Int, b [2][2]*big.Int, c [2]*big.Int, input [2]*big.Int) (bool, error)
VerifyProof is a free data retrieval call binding the contract method 0xf5c9d69e.
Solidity: function verifyProof(uint256[2] a, uint256[2][2] b, uint256[2] c, uint256[2] input) view returns(bool r)
type BridgeTransactor ¶
type BridgeTransactor struct {
// contains filtered or unexported fields
}
BridgeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewBridgeTransactor ¶
func NewBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeTransactor, error)
NewBridgeTransactor creates a new write-only instance of Bridge, bound to a specific deployed contract.
func (*BridgeTransactor) AddCommitment ¶
func (_Bridge *BridgeTransactor) AddCommitment(opts *bind.TransactOpts, _commitment *big.Int) (*types.Transaction, error)
AddCommitment is a paid mutator transaction binding the contract method 0x797a6890.
Solidity: function addCommitment(uint256 _commitment) returns()
func (*BridgeTransactor) Insert ¶
func (_Bridge *BridgeTransactor) Insert(opts *bind.TransactOpts, com *big.Int) (*types.Transaction, error)
Insert is a paid mutator transaction binding the contract method 0x90b5561d.
Solidity: function insert(uint256 com) returns(uint256)
func (*BridgeTransactor) UpdateTree ¶
func (_Bridge *BridgeTransactor) UpdateTree(opts *bind.TransactOpts) (*types.Transaction, error)
UpdateTree is a paid mutator transaction binding the contract method 0xee427b1d.
Solidity: function updateTree() returns(uint256 root)
type BridgeTransactorRaw ¶
type BridgeTransactorRaw struct {
Contract *BridgeTransactor // Generic write-only contract binding to access the raw methods on
}
BridgeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*BridgeTransactorRaw) Transact ¶
func (_Bridge *BridgeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BridgeTransactorRaw) Transfer ¶
func (_Bridge *BridgeTransactorRaw) 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 BridgeTransactorSession ¶
type BridgeTransactorSession struct { Contract *BridgeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BridgeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*BridgeTransactorSession) AddCommitment ¶
func (_Bridge *BridgeTransactorSession) AddCommitment(_commitment *big.Int) (*types.Transaction, error)
AddCommitment is a paid mutator transaction binding the contract method 0x797a6890.
Solidity: function addCommitment(uint256 _commitment) returns()
func (*BridgeTransactorSession) Insert ¶
func (_Bridge *BridgeTransactorSession) Insert(com *big.Int) (*types.Transaction, error)
Insert is a paid mutator transaction binding the contract method 0x90b5561d.
Solidity: function insert(uint256 com) returns(uint256)
func (*BridgeTransactorSession) UpdateTree ¶
func (_Bridge *BridgeTransactorSession) UpdateTree() (*types.Transaction, error)
UpdateTree is a paid mutator transaction binding the contract method 0xee427b1d.
Solidity: function updateTree() returns(uint256 root)
type Cross ¶
type Cross struct { CrossCaller // Read-only binding to the contract CrossTransactor // Write-only binding to the contract CrossFilterer // Log filterer for contract events }
Cross is an auto generated Go binding around an Ethereum contract.
type CrossCaller ¶
type CrossCaller struct {
// contains filtered or unexported fields
}
CrossCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewCrossCaller ¶
func NewCrossCaller(address common.Address, caller bind.ContractCaller) (*CrossCaller, error)
NewCrossCaller creates a new read-only instance of Cross, bound to a specific deployed contract.
func (*CrossCaller) CurrentChainId ¶
CurrentChainId is a free data retrieval call binding the contract method 0x6cbadbfa.
Solidity: function currentChainId() view returns(uint256)
func (*CrossCaller) Enable ¶
func (_Cross *CrossCaller) Enable(opts *bind.CallOpts) (bool, error)
Enable is a free data retrieval call binding the contract method 0xa3907d71.
Solidity: function enable() view returns(bool)
func (*CrossCaller) FloatFee ¶
FloatFee is a free data retrieval call binding the contract method 0x7effecea.
Solidity: function floatFee() view returns(uint256)
func (*CrossCaller) OrderHashes ¶
OrderHashes is a free data retrieval call binding the contract method 0xdf69558c.
Solidity: function orderHashes(uint256 ) view returns(bytes32)
func (*CrossCaller) Orders ¶
func (_Cross *CrossCaller) Orders(opts *bind.CallOpts, arg0 [32]byte) (struct { OrderId *big.Int SrcChainId *big.Int SrcAddress common.Address SrcToken common.Address SrcAmount *big.Int DestChainId *big.Int DestAddress common.Address DestToken common.Address Porter common.Address }, error)
Orders is a free data retrieval call binding the contract method 0x9c3f1e90.
Solidity: function orders(bytes32 ) view returns(uint256 orderId, uint256 srcChainId, address srcAddress, address srcToken, uint256 srcAmount, uint256 destChainId, address destAddress, address destToken, address porter)
func (*CrossCaller) Owner ¶
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*CrossCaller) PaidOrders ¶
PaidOrders is a free data retrieval call binding the contract method 0x39c51fea.
Solidity: function paidOrders(bytes32 ) view returns(bool)
func (*CrossCaller) Paused ¶
func (_Cross *CrossCaller) Paused(opts *bind.CallOpts) (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*CrossCaller) PendingOrders ¶
PendingOrders is a free data retrieval call binding the contract method 0x7b55766f.
Solidity: function pendingOrders(bytes32 ) view returns(bool)
func (*CrossCaller) PorterFactory ¶
PorterFactory is a free data retrieval call binding the contract method 0x2f803f81.
Solidity: function porterFactory() view returns(address)
func (*CrossCaller) Receipts ¶
func (_Cross *CrossCaller) Receipts(opts *bind.CallOpts, arg0 [32]byte) (struct { ProofHash [32]byte DestTxHash [32]byte }, error)
Receipts is a free data retrieval call binding the contract method 0xef6cf04d.
Solidity: function receipts(bytes32 ) view returns(bytes32 proofHash, bytes32 destTxHash)
func (*CrossCaller) ZkVerifier ¶
ZkVerifier is a free data retrieval call binding the contract method 0xd6df096d.
Solidity: function zkVerifier() view returns(address)
type CrossCallerRaw ¶
type CrossCallerRaw struct {
Contract *CrossCaller // Generic read-only contract binding to access the raw methods on
}
CrossCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*CrossCallerRaw) Call ¶
func (_Cross *CrossCallerRaw) 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 CrossCallerSession ¶
type CrossCallerSession struct { Contract *CrossCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
CrossCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*CrossCallerSession) CurrentChainId ¶
func (_Cross *CrossCallerSession) CurrentChainId() (*big.Int, error)
CurrentChainId is a free data retrieval call binding the contract method 0x6cbadbfa.
Solidity: function currentChainId() view returns(uint256)
func (*CrossCallerSession) Enable ¶
func (_Cross *CrossCallerSession) Enable() (bool, error)
Enable is a free data retrieval call binding the contract method 0xa3907d71.
Solidity: function enable() view returns(bool)
func (*CrossCallerSession) FloatFee ¶
func (_Cross *CrossCallerSession) FloatFee() (*big.Int, error)
FloatFee is a free data retrieval call binding the contract method 0x7effecea.
Solidity: function floatFee() view returns(uint256)
func (*CrossCallerSession) OrderHashes ¶
func (_Cross *CrossCallerSession) OrderHashes(arg0 *big.Int) ([32]byte, error)
OrderHashes is a free data retrieval call binding the contract method 0xdf69558c.
Solidity: function orderHashes(uint256 ) view returns(bytes32)
func (*CrossCallerSession) Orders ¶
func (_Cross *CrossCallerSession) Orders(arg0 [32]byte) (struct { OrderId *big.Int SrcChainId *big.Int SrcAddress common.Address SrcToken common.Address SrcAmount *big.Int DestChainId *big.Int DestAddress common.Address DestToken common.Address Porter common.Address }, error)
Orders is a free data retrieval call binding the contract method 0x9c3f1e90.
Solidity: function orders(bytes32 ) view returns(uint256 orderId, uint256 srcChainId, address srcAddress, address srcToken, uint256 srcAmount, uint256 destChainId, address destAddress, address destToken, address porter)
func (*CrossCallerSession) Owner ¶
func (_Cross *CrossCallerSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*CrossCallerSession) PaidOrders ¶
func (_Cross *CrossCallerSession) PaidOrders(arg0 [32]byte) (bool, error)
PaidOrders is a free data retrieval call binding the contract method 0x39c51fea.
Solidity: function paidOrders(bytes32 ) view returns(bool)
func (*CrossCallerSession) Paused ¶
func (_Cross *CrossCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*CrossCallerSession) PendingOrders ¶
func (_Cross *CrossCallerSession) PendingOrders(arg0 [32]byte) (bool, error)
PendingOrders is a free data retrieval call binding the contract method 0x7b55766f.
Solidity: function pendingOrders(bytes32 ) view returns(bool)
func (*CrossCallerSession) PorterFactory ¶
func (_Cross *CrossCallerSession) PorterFactory() (common.Address, error)
PorterFactory is a free data retrieval call binding the contract method 0x2f803f81.
Solidity: function porterFactory() view returns(address)
func (*CrossCallerSession) Receipts ¶
func (_Cross *CrossCallerSession) Receipts(arg0 [32]byte) (struct { ProofHash [32]byte DestTxHash [32]byte }, error)
Receipts is a free data retrieval call binding the contract method 0xef6cf04d.
Solidity: function receipts(bytes32 ) view returns(bytes32 proofHash, bytes32 destTxHash)
func (*CrossCallerSession) ZkVerifier ¶
func (_Cross *CrossCallerSession) ZkVerifier() (common.Address, error)
ZkVerifier is a free data retrieval call binding the contract method 0xd6df096d.
Solidity: function zkVerifier() view returns(address)
type CrossCommitReceipt ¶
type CrossCommitReceipt struct { Validator common.Address OrderHash [32]byte Receipt CrossControllerReceipt Raw types.Log // Blockchain specific contextual infos }
CrossCommitReceipt represents a CommitReceipt event raised by the Cross contract.
type CrossCommitReceiptIterator ¶
type CrossCommitReceiptIterator struct { Event *CrossCommitReceipt // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossCommitReceiptIterator is returned from FilterCommitReceipt and is used to iterate over the raw logs and unpacked data for CommitReceipt events raised by the Cross contract.
func (*CrossCommitReceiptIterator) Close ¶
func (it *CrossCommitReceiptIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossCommitReceiptIterator) Error ¶
func (it *CrossCommitReceiptIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossCommitReceiptIterator) Next ¶
func (it *CrossCommitReceiptIterator) 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 CrossCommitReceiptWithZk ¶
type CrossCommitReceiptWithZk struct { Validator common.Address OrderHash [32]byte Receipt CrossControllerReceipt Raw types.Log // Blockchain specific contextual infos }
CrossCommitReceiptWithZk represents a CommitReceiptWithZk event raised by the Cross contract.
type CrossCommitReceiptWithZkIterator ¶
type CrossCommitReceiptWithZkIterator struct { Event *CrossCommitReceiptWithZk // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossCommitReceiptWithZkIterator is returned from FilterCommitReceiptWithZk and is used to iterate over the raw logs and unpacked data for CommitReceiptWithZk events raised by the Cross contract.
func (*CrossCommitReceiptWithZkIterator) Close ¶
func (it *CrossCommitReceiptWithZkIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossCommitReceiptWithZkIterator) Error ¶
func (it *CrossCommitReceiptWithZkIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossCommitReceiptWithZkIterator) Next ¶
func (it *CrossCommitReceiptWithZkIterator) 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 CrossControllerOrder ¶
type CrossControllerOrder struct { OrderId *big.Int SrcChainId *big.Int SrcAddress common.Address SrcToken common.Address SrcAmount *big.Int DestChainId *big.Int DestAddress common.Address DestToken common.Address Porter common.Address }
CrossControllerOrder is an auto generated low-level Go binding around an user-defined struct.
type CrossControllerProof ¶
CrossControllerProof is an auto generated low-level Go binding around an user-defined struct.
type CrossControllerReceipt ¶
CrossControllerReceipt is an auto generated low-level Go binding around an user-defined struct.
type CrossCrossFrom ¶
type CrossCrossFrom struct { Validator common.Address Order CrossControllerOrder SrcTokenDecimals uint8 CrossAmount *big.Int PaidAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
CrossCrossFrom represents a CrossFrom event raised by the Cross contract.
type CrossCrossFromIterator ¶
type CrossCrossFromIterator struct { Event *CrossCrossFrom // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossCrossFromIterator is returned from FilterCrossFrom and is used to iterate over the raw logs and unpacked data for CrossFrom events raised by the Cross contract.
func (*CrossCrossFromIterator) Close ¶
func (it *CrossCrossFromIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossCrossFromIterator) Error ¶
func (it *CrossCrossFromIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossCrossFromIterator) Next ¶
func (it *CrossCrossFromIterator) 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 CrossCrossTo ¶
type CrossCrossTo struct { Account common.Address Order CrossControllerOrder FixedFeeAmount *big.Int FloatFeeAmount *big.Int CrossAmount *big.Int Raw types.Log // Blockchain specific contextual infos }
CrossCrossTo represents a CrossTo event raised by the Cross contract.
type CrossCrossToIterator ¶
type CrossCrossToIterator struct { Event *CrossCrossTo // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossCrossToIterator is returned from FilterCrossTo and is used to iterate over the raw logs and unpacked data for CrossTo events raised by the Cross contract.
func (*CrossCrossToIterator) Close ¶
func (it *CrossCrossToIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossCrossToIterator) Error ¶
func (it *CrossCrossToIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossCrossToIterator) Next ¶
func (it *CrossCrossToIterator) 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 CrossEnabledZkVerifier ¶
type CrossEnabledZkVerifier struct { Enable bool Raw types.Log // Blockchain specific contextual infos }
CrossEnabledZkVerifier represents a EnabledZkVerifier event raised by the Cross contract.
type CrossEnabledZkVerifierIterator ¶
type CrossEnabledZkVerifierIterator struct { Event *CrossEnabledZkVerifier // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossEnabledZkVerifierIterator is returned from FilterEnabledZkVerifier and is used to iterate over the raw logs and unpacked data for EnabledZkVerifier events raised by the Cross contract.
func (*CrossEnabledZkVerifierIterator) Close ¶
func (it *CrossEnabledZkVerifierIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossEnabledZkVerifierIterator) Error ¶
func (it *CrossEnabledZkVerifierIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossEnabledZkVerifierIterator) Next ¶
func (it *CrossEnabledZkVerifierIterator) 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 CrossFilterer ¶
type CrossFilterer struct {
// contains filtered or unexported fields
}
CrossFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewCrossFilterer ¶
func NewCrossFilterer(address common.Address, filterer bind.ContractFilterer) (*CrossFilterer, error)
NewCrossFilterer creates a new log filterer instance of Cross, bound to a specific deployed contract.
func (*CrossFilterer) FilterCommitReceipt ¶
func (_Cross *CrossFilterer) FilterCommitReceipt(opts *bind.FilterOpts, validator []common.Address, orderHash [][32]byte) (*CrossCommitReceiptIterator, error)
FilterCommitReceipt is a free log retrieval operation binding the contract event 0x581db44feed8ab7f2b0e591fd633c1326a4ba3ea20a5c346ab38fd1f42208e81.
Solidity: event CommitReceipt(address indexed validator, bytes32 indexed orderHash, (bytes32,bytes32) receipt)
func (*CrossFilterer) FilterCommitReceiptWithZk ¶
func (_Cross *CrossFilterer) FilterCommitReceiptWithZk(opts *bind.FilterOpts, validator []common.Address, orderHash [][32]byte) (*CrossCommitReceiptWithZkIterator, error)
FilterCommitReceiptWithZk is a free log retrieval operation binding the contract event 0xd58cb8984ca093fbb83c2c99048edb7c88d0c472ba426de692d9bf80ca7438f5.
Solidity: event CommitReceiptWithZk(address indexed validator, bytes32 indexed orderHash, (bytes32,bytes32) receipt)
func (*CrossFilterer) FilterCrossFrom ¶
func (_Cross *CrossFilterer) FilterCrossFrom(opts *bind.FilterOpts, validator []common.Address) (*CrossCrossFromIterator, error)
FilterCrossFrom is a free log retrieval operation binding the contract event 0x104f0c1d6ebbba9acf834bd5f27d78481d562d83159d076b974d16bca9c66c21.
Solidity: event CrossFrom(address indexed validator, (uint256,uint256,address,address,uint256,uint256,address,address,address) order, uint8 srcTokenDecimals, uint256 crossAmount, uint256 paidAmount)
func (*CrossFilterer) FilterCrossTo ¶
func (_Cross *CrossFilterer) FilterCrossTo(opts *bind.FilterOpts, account []common.Address) (*CrossCrossToIterator, error)
FilterCrossTo is a free log retrieval operation binding the contract event 0xeb354ff2ff6b3d6392f3c14565a5e0c60fc642b456cd2538e94968fbc54467e8.
Solidity: event CrossTo(address indexed account, (uint256,uint256,address,address,uint256,uint256,address,address,address) order, uint256 fixedFeeAmount, uint256 floatFeeAmount, uint256 crossAmount)
func (*CrossFilterer) FilterEnabledZkVerifier ¶
func (_Cross *CrossFilterer) FilterEnabledZkVerifier(opts *bind.FilterOpts) (*CrossEnabledZkVerifierIterator, error)
FilterEnabledZkVerifier is a free log retrieval operation binding the contract event 0xd274b64d953f0ab17c3752f6943a135156a325cc228f1ec0a710a428d7460042.
Solidity: event EnabledZkVerifier(bool _enable)
func (*CrossFilterer) FilterInitialized ¶
func (_Cross *CrossFilterer) FilterInitialized(opts *bind.FilterOpts) (*CrossInitializedIterator, error)
FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*CrossFilterer) FilterPaused ¶
func (_Cross *CrossFilterer) FilterPaused(opts *bind.FilterOpts) (*CrossPausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*CrossFilterer) FilterSettedFloatFee ¶
func (_Cross *CrossFilterer) FilterSettedFloatFee(opts *bind.FilterOpts) (*CrossSettedFloatFeeIterator, error)
FilterSettedFloatFee is a free log retrieval operation binding the contract event 0x43d82450da77837bc3bed7812c648e023bf57da520dfce930ae9b975a6e6955d.
Solidity: event SettedFloatFee(uint256 floatFee)
func (*CrossFilterer) FilterSettedPorterFactory ¶
func (_Cross *CrossFilterer) FilterSettedPorterFactory(opts *bind.FilterOpts) (*CrossSettedPorterFactoryIterator, error)
FilterSettedPorterFactory is a free log retrieval operation binding the contract event 0x1e213eda8bdfbd30f63a9301525e1aebd4f3845d7c251a0c524a014b6f2c41bb.
Solidity: event SettedPorterFactory(address _factory)
func (*CrossFilterer) FilterSettedZkVerifier ¶
func (_Cross *CrossFilterer) FilterSettedZkVerifier(opts *bind.FilterOpts) (*CrossSettedZkVerifierIterator, error)
FilterSettedZkVerifier is a free log retrieval operation binding the contract event 0x7a2f3aaefa2e60a6eec0505b8a895c8e7e96cd14358fd18c9d7d917f1552ef5a.
Solidity: event SettedZkVerifier(address _zkVerifier)
func (*CrossFilterer) FilterUnpaused ¶
func (_Cross *CrossFilterer) FilterUnpaused(opts *bind.FilterOpts) (*CrossUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*CrossFilterer) ParseCommitReceipt ¶
func (_Cross *CrossFilterer) ParseCommitReceipt(log types.Log) (*CrossCommitReceipt, error)
ParseCommitReceipt is a log parse operation binding the contract event 0x581db44feed8ab7f2b0e591fd633c1326a4ba3ea20a5c346ab38fd1f42208e81.
Solidity: event CommitReceipt(address indexed validator, bytes32 indexed orderHash, (bytes32,bytes32) receipt)
func (*CrossFilterer) ParseCommitReceiptWithZk ¶
func (_Cross *CrossFilterer) ParseCommitReceiptWithZk(log types.Log) (*CrossCommitReceiptWithZk, error)
ParseCommitReceiptWithZk is a log parse operation binding the contract event 0xd58cb8984ca093fbb83c2c99048edb7c88d0c472ba426de692d9bf80ca7438f5.
Solidity: event CommitReceiptWithZk(address indexed validator, bytes32 indexed orderHash, (bytes32,bytes32) receipt)
func (*CrossFilterer) ParseCrossFrom ¶
func (_Cross *CrossFilterer) ParseCrossFrom(log types.Log) (*CrossCrossFrom, error)
ParseCrossFrom is a log parse operation binding the contract event 0x104f0c1d6ebbba9acf834bd5f27d78481d562d83159d076b974d16bca9c66c21.
Solidity: event CrossFrom(address indexed validator, (uint256,uint256,address,address,uint256,uint256,address,address,address) order, uint8 srcTokenDecimals, uint256 crossAmount, uint256 paidAmount)
func (*CrossFilterer) ParseCrossTo ¶
func (_Cross *CrossFilterer) ParseCrossTo(log types.Log) (*CrossCrossTo, error)
ParseCrossTo is a log parse operation binding the contract event 0xeb354ff2ff6b3d6392f3c14565a5e0c60fc642b456cd2538e94968fbc54467e8.
Solidity: event CrossTo(address indexed account, (uint256,uint256,address,address,uint256,uint256,address,address,address) order, uint256 fixedFeeAmount, uint256 floatFeeAmount, uint256 crossAmount)
func (*CrossFilterer) ParseEnabledZkVerifier ¶
func (_Cross *CrossFilterer) ParseEnabledZkVerifier(log types.Log) (*CrossEnabledZkVerifier, error)
ParseEnabledZkVerifier is a log parse operation binding the contract event 0xd274b64d953f0ab17c3752f6943a135156a325cc228f1ec0a710a428d7460042.
Solidity: event EnabledZkVerifier(bool _enable)
func (*CrossFilterer) ParseInitialized ¶
func (_Cross *CrossFilterer) ParseInitialized(log types.Log) (*CrossInitialized, error)
ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*CrossFilterer) ParsePaused ¶
func (_Cross *CrossFilterer) ParsePaused(log types.Log) (*CrossPaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*CrossFilterer) ParseSettedFloatFee ¶
func (_Cross *CrossFilterer) ParseSettedFloatFee(log types.Log) (*CrossSettedFloatFee, error)
ParseSettedFloatFee is a log parse operation binding the contract event 0x43d82450da77837bc3bed7812c648e023bf57da520dfce930ae9b975a6e6955d.
Solidity: event SettedFloatFee(uint256 floatFee)
func (*CrossFilterer) ParseSettedPorterFactory ¶
func (_Cross *CrossFilterer) ParseSettedPorterFactory(log types.Log) (*CrossSettedPorterFactory, error)
ParseSettedPorterFactory is a log parse operation binding the contract event 0x1e213eda8bdfbd30f63a9301525e1aebd4f3845d7c251a0c524a014b6f2c41bb.
Solidity: event SettedPorterFactory(address _factory)
func (*CrossFilterer) ParseSettedZkVerifier ¶
func (_Cross *CrossFilterer) ParseSettedZkVerifier(log types.Log) (*CrossSettedZkVerifier, error)
ParseSettedZkVerifier is a log parse operation binding the contract event 0x7a2f3aaefa2e60a6eec0505b8a895c8e7e96cd14358fd18c9d7d917f1552ef5a.
Solidity: event SettedZkVerifier(address _zkVerifier)
func (*CrossFilterer) ParseUnpaused ¶
func (_Cross *CrossFilterer) ParseUnpaused(log types.Log) (*CrossUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*CrossFilterer) WatchCommitReceipt ¶
func (_Cross *CrossFilterer) WatchCommitReceipt(opts *bind.WatchOpts, sink chan<- *CrossCommitReceipt, validator []common.Address, orderHash [][32]byte) (event.Subscription, error)
WatchCommitReceipt is a free log subscription operation binding the contract event 0x581db44feed8ab7f2b0e591fd633c1326a4ba3ea20a5c346ab38fd1f42208e81.
Solidity: event CommitReceipt(address indexed validator, bytes32 indexed orderHash, (bytes32,bytes32) receipt)
func (*CrossFilterer) WatchCommitReceiptWithZk ¶
func (_Cross *CrossFilterer) WatchCommitReceiptWithZk(opts *bind.WatchOpts, sink chan<- *CrossCommitReceiptWithZk, validator []common.Address, orderHash [][32]byte) (event.Subscription, error)
WatchCommitReceiptWithZk is a free log subscription operation binding the contract event 0xd58cb8984ca093fbb83c2c99048edb7c88d0c472ba426de692d9bf80ca7438f5.
Solidity: event CommitReceiptWithZk(address indexed validator, bytes32 indexed orderHash, (bytes32,bytes32) receipt)
func (*CrossFilterer) WatchCrossFrom ¶
func (_Cross *CrossFilterer) WatchCrossFrom(opts *bind.WatchOpts, sink chan<- *CrossCrossFrom, validator []common.Address) (event.Subscription, error)
WatchCrossFrom is a free log subscription operation binding the contract event 0x104f0c1d6ebbba9acf834bd5f27d78481d562d83159d076b974d16bca9c66c21.
Solidity: event CrossFrom(address indexed validator, (uint256,uint256,address,address,uint256,uint256,address,address,address) order, uint8 srcTokenDecimals, uint256 crossAmount, uint256 paidAmount)
func (*CrossFilterer) WatchCrossTo ¶
func (_Cross *CrossFilterer) WatchCrossTo(opts *bind.WatchOpts, sink chan<- *CrossCrossTo, account []common.Address) (event.Subscription, error)
WatchCrossTo is a free log subscription operation binding the contract event 0xeb354ff2ff6b3d6392f3c14565a5e0c60fc642b456cd2538e94968fbc54467e8.
Solidity: event CrossTo(address indexed account, (uint256,uint256,address,address,uint256,uint256,address,address,address) order, uint256 fixedFeeAmount, uint256 floatFeeAmount, uint256 crossAmount)
func (*CrossFilterer) WatchEnabledZkVerifier ¶
func (_Cross *CrossFilterer) WatchEnabledZkVerifier(opts *bind.WatchOpts, sink chan<- *CrossEnabledZkVerifier) (event.Subscription, error)
WatchEnabledZkVerifier is a free log subscription operation binding the contract event 0xd274b64d953f0ab17c3752f6943a135156a325cc228f1ec0a710a428d7460042.
Solidity: event EnabledZkVerifier(bool _enable)
func (*CrossFilterer) WatchInitialized ¶
func (_Cross *CrossFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *CrossInitialized) (event.Subscription, error)
WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.
Solidity: event Initialized(uint8 version)
func (*CrossFilterer) WatchPaused ¶
func (_Cross *CrossFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *CrossPaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*CrossFilterer) WatchSettedFloatFee ¶
func (_Cross *CrossFilterer) WatchSettedFloatFee(opts *bind.WatchOpts, sink chan<- *CrossSettedFloatFee) (event.Subscription, error)
WatchSettedFloatFee is a free log subscription operation binding the contract event 0x43d82450da77837bc3bed7812c648e023bf57da520dfce930ae9b975a6e6955d.
Solidity: event SettedFloatFee(uint256 floatFee)
func (*CrossFilterer) WatchSettedPorterFactory ¶
func (_Cross *CrossFilterer) WatchSettedPorterFactory(opts *bind.WatchOpts, sink chan<- *CrossSettedPorterFactory) (event.Subscription, error)
WatchSettedPorterFactory is a free log subscription operation binding the contract event 0x1e213eda8bdfbd30f63a9301525e1aebd4f3845d7c251a0c524a014b6f2c41bb.
Solidity: event SettedPorterFactory(address _factory)
func (*CrossFilterer) WatchSettedZkVerifier ¶
func (_Cross *CrossFilterer) WatchSettedZkVerifier(opts *bind.WatchOpts, sink chan<- *CrossSettedZkVerifier) (event.Subscription, error)
WatchSettedZkVerifier is a free log subscription operation binding the contract event 0x7a2f3aaefa2e60a6eec0505b8a895c8e7e96cd14358fd18c9d7d917f1552ef5a.
Solidity: event SettedZkVerifier(address _zkVerifier)
func (*CrossFilterer) WatchUnpaused ¶
func (_Cross *CrossFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *CrossUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
type CrossInitialized ¶
type CrossInitialized struct { Version uint8 Raw types.Log // Blockchain specific contextual infos }
CrossInitialized represents a Initialized event raised by the Cross contract.
type CrossInitializedIterator ¶
type CrossInitializedIterator struct { Event *CrossInitialized // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Cross contract.
func (*CrossInitializedIterator) Close ¶
func (it *CrossInitializedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossInitializedIterator) Error ¶
func (it *CrossInitializedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossInitializedIterator) Next ¶
func (it *CrossInitializedIterator) 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 CrossPaused ¶
type CrossPaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
CrossPaused represents a Paused event raised by the Cross contract.
type CrossPausedIterator ¶
type CrossPausedIterator struct { Event *CrossPaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Cross contract.
func (*CrossPausedIterator) Close ¶
func (it *CrossPausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossPausedIterator) Error ¶
func (it *CrossPausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossPausedIterator) Next ¶
func (it *CrossPausedIterator) 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 CrossRaw ¶
type CrossRaw struct {
Contract *Cross // Generic contract binding to access the raw methods on
}
CrossRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*CrossRaw) Call ¶
func (_Cross *CrossRaw) 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 (*CrossRaw) Transact ¶
func (_Cross *CrossRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CrossRaw) Transfer ¶
func (_Cross *CrossRaw) 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 CrossSession ¶
type CrossSession struct { Contract *Cross // 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 }
CrossSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*CrossSession) AddCommitment ¶
func (_Cross *CrossSession) AddCommitment(_commitment *big.Int) (*types.Transaction, error)
AddCommitment is a paid mutator transaction binding the contract method 0x797a6890.
Solidity: function addCommitment(uint256 _commitment) returns()
func (*CrossSession) CommitReceipt ¶
func (_Cross *CrossSession) CommitReceipt(orderHash [32]byte, receipt CrossControllerReceipt) (*types.Transaction, error)
CommitReceipt is a paid mutator transaction binding the contract method 0x2d75219c.
Solidity: function commitReceipt(bytes32 orderHash, (bytes32,bytes32) receipt) returns()
func (*CrossSession) CommitReceiptWithZK ¶
func (_Cross *CrossSession) CommitReceiptWithZK(proof CrossControllerProof, input [2]*big.Int, orderHash [32]byte, destTxHash [32]byte) (*types.Transaction, error)
CommitReceiptWithZK is a paid mutator transaction binding the contract method 0x102c955b.
Solidity: function commitReceiptWithZK((uint256[2],uint256[2][2],uint256[2]) proof, uint256[2] input, bytes32 orderHash, bytes32 destTxHash) returns()
func (*CrossSession) CrossFrom ¶
func (_Cross *CrossSession) CrossFrom(order CrossControllerOrder, srcTokenDecimals uint8, crossAmount *big.Int) (*types.Transaction, error)
CrossFrom is a paid mutator transaction binding the contract method 0x88dd09f6.
Solidity: function crossFrom((uint256,uint256,address,address,uint256,uint256,address,address,address) order, uint8 srcTokenDecimals, uint256 crossAmount) returns()
func (*CrossSession) CrossTo ¶
func (_Cross *CrossSession) CrossTo(order CrossControllerOrder) (*types.Transaction, error)
CrossTo is a paid mutator transaction binding the contract method 0xdef66322.
Solidity: function crossTo((uint256,uint256,address,address,uint256,uint256,address,address,address) order) returns()
func (*CrossSession) CurrentChainId ¶
func (_Cross *CrossSession) CurrentChainId() (*big.Int, error)
CurrentChainId is a free data retrieval call binding the contract method 0x6cbadbfa.
Solidity: function currentChainId() view returns(uint256)
func (*CrossSession) Enable ¶
func (_Cross *CrossSession) Enable() (bool, error)
Enable is a free data retrieval call binding the contract method 0xa3907d71.
Solidity: function enable() view returns(bool)
func (*CrossSession) EnableZkVerifier ¶
func (_Cross *CrossSession) EnableZkVerifier(_enable bool) (*types.Transaction, error)
EnableZkVerifier is a paid mutator transaction binding the contract method 0x4056e986.
Solidity: function enableZkVerifier(bool _enable) returns()
func (*CrossSession) FloatFee ¶
func (_Cross *CrossSession) FloatFee() (*big.Int, error)
FloatFee is a free data retrieval call binding the contract method 0x7effecea.
Solidity: function floatFee() view returns(uint256)
func (*CrossSession) Initialize ¶
func (_Cross *CrossSession) Initialize(_owner common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address _owner) returns()
func (*CrossSession) OrderHashes ¶
func (_Cross *CrossSession) OrderHashes(arg0 *big.Int) ([32]byte, error)
OrderHashes is a free data retrieval call binding the contract method 0xdf69558c.
Solidity: function orderHashes(uint256 ) view returns(bytes32)
func (*CrossSession) Orders ¶
func (_Cross *CrossSession) Orders(arg0 [32]byte) (struct { OrderId *big.Int SrcChainId *big.Int SrcAddress common.Address SrcToken common.Address SrcAmount *big.Int DestChainId *big.Int DestAddress common.Address DestToken common.Address Porter common.Address }, error)
Orders is a free data retrieval call binding the contract method 0x9c3f1e90.
Solidity: function orders(bytes32 ) view returns(uint256 orderId, uint256 srcChainId, address srcAddress, address srcToken, uint256 srcAmount, uint256 destChainId, address destAddress, address destToken, address porter)
func (*CrossSession) Owner ¶
func (_Cross *CrossSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() view returns(address)
func (*CrossSession) PaidOrders ¶
func (_Cross *CrossSession) PaidOrders(arg0 [32]byte) (bool, error)
PaidOrders is a free data retrieval call binding the contract method 0x39c51fea.
Solidity: function paidOrders(bytes32 ) view returns(bool)
func (*CrossSession) Paused ¶
func (_Cross *CrossSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*CrossSession) PendingOrders ¶
func (_Cross *CrossSession) PendingOrders(arg0 [32]byte) (bool, error)
PendingOrders is a free data retrieval call binding the contract method 0x7b55766f.
Solidity: function pendingOrders(bytes32 ) view returns(bool)
func (*CrossSession) PorterFactory ¶
func (_Cross *CrossSession) PorterFactory() (common.Address, error)
PorterFactory is a free data retrieval call binding the contract method 0x2f803f81.
Solidity: function porterFactory() view returns(address)
func (*CrossSession) Receipts ¶
func (_Cross *CrossSession) Receipts(arg0 [32]byte) (struct { ProofHash [32]byte DestTxHash [32]byte }, error)
Receipts is a free data retrieval call binding the contract method 0xef6cf04d.
Solidity: function receipts(bytes32 ) view returns(bytes32 proofHash, bytes32 destTxHash)
func (*CrossSession) SetFloatFee ¶
func (_Cross *CrossSession) SetFloatFee(_floatFee *big.Int) (*types.Transaction, error)
SetFloatFee is a paid mutator transaction binding the contract method 0xcb23c2a7.
Solidity: function setFloatFee(uint256 _floatFee) returns()
func (*CrossSession) SetPorterFactory ¶
func (_Cross *CrossSession) SetPorterFactory(_factory common.Address) (*types.Transaction, error)
SetPorterFactory is a paid mutator transaction binding the contract method 0x5e553013.
Solidity: function setPorterFactory(address _factory) returns()
func (*CrossSession) SetZkVerifier ¶
func (_Cross *CrossSession) SetZkVerifier(_verifier common.Address) (*types.Transaction, error)
SetZkVerifier is a paid mutator transaction binding the contract method 0x96913528.
Solidity: function setZkVerifier(address _verifier) returns()
func (*CrossSession) ZkVerifier ¶
func (_Cross *CrossSession) ZkVerifier() (common.Address, error)
ZkVerifier is a free data retrieval call binding the contract method 0xd6df096d.
Solidity: function zkVerifier() view returns(address)
type CrossSettedFloatFee ¶
type CrossSettedFloatFee struct { FloatFee *big.Int Raw types.Log // Blockchain specific contextual infos }
CrossSettedFloatFee represents a SettedFloatFee event raised by the Cross contract.
type CrossSettedFloatFeeIterator ¶
type CrossSettedFloatFeeIterator struct { Event *CrossSettedFloatFee // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossSettedFloatFeeIterator is returned from FilterSettedFloatFee and is used to iterate over the raw logs and unpacked data for SettedFloatFee events raised by the Cross contract.
func (*CrossSettedFloatFeeIterator) Close ¶
func (it *CrossSettedFloatFeeIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossSettedFloatFeeIterator) Error ¶
func (it *CrossSettedFloatFeeIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossSettedFloatFeeIterator) Next ¶
func (it *CrossSettedFloatFeeIterator) 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 CrossSettedPorterFactory ¶
type CrossSettedPorterFactory struct { Factory common.Address Raw types.Log // Blockchain specific contextual infos }
CrossSettedPorterFactory represents a SettedPorterFactory event raised by the Cross contract.
type CrossSettedPorterFactoryIterator ¶
type CrossSettedPorterFactoryIterator struct { Event *CrossSettedPorterFactory // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossSettedPorterFactoryIterator is returned from FilterSettedPorterFactory and is used to iterate over the raw logs and unpacked data for SettedPorterFactory events raised by the Cross contract.
func (*CrossSettedPorterFactoryIterator) Close ¶
func (it *CrossSettedPorterFactoryIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossSettedPorterFactoryIterator) Error ¶
func (it *CrossSettedPorterFactoryIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossSettedPorterFactoryIterator) Next ¶
func (it *CrossSettedPorterFactoryIterator) 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 CrossSettedZkVerifier ¶
type CrossSettedZkVerifier struct { ZkVerifier common.Address Raw types.Log // Blockchain specific contextual infos }
CrossSettedZkVerifier represents a SettedZkVerifier event raised by the Cross contract.
type CrossSettedZkVerifierIterator ¶
type CrossSettedZkVerifierIterator struct { Event *CrossSettedZkVerifier // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossSettedZkVerifierIterator is returned from FilterSettedZkVerifier and is used to iterate over the raw logs and unpacked data for SettedZkVerifier events raised by the Cross contract.
func (*CrossSettedZkVerifierIterator) Close ¶
func (it *CrossSettedZkVerifierIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossSettedZkVerifierIterator) Error ¶
func (it *CrossSettedZkVerifierIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossSettedZkVerifierIterator) Next ¶
func (it *CrossSettedZkVerifierIterator) 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 CrossTransactor ¶
type CrossTransactor struct {
// contains filtered or unexported fields
}
CrossTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewCrossTransactor ¶
func NewCrossTransactor(address common.Address, transactor bind.ContractTransactor) (*CrossTransactor, error)
NewCrossTransactor creates a new write-only instance of Cross, bound to a specific deployed contract.
func (*CrossTransactor) AddCommitment ¶
func (_Cross *CrossTransactor) AddCommitment(opts *bind.TransactOpts, _commitment *big.Int) (*types.Transaction, error)
AddCommitment is a paid mutator transaction binding the contract method 0x797a6890.
Solidity: function addCommitment(uint256 _commitment) returns()
func (*CrossTransactor) CommitReceipt ¶
func (_Cross *CrossTransactor) CommitReceipt(opts *bind.TransactOpts, orderHash [32]byte, receipt CrossControllerReceipt) (*types.Transaction, error)
CommitReceipt is a paid mutator transaction binding the contract method 0x2d75219c.
Solidity: function commitReceipt(bytes32 orderHash, (bytes32,bytes32) receipt) returns()
func (*CrossTransactor) CommitReceiptWithZK ¶
func (_Cross *CrossTransactor) CommitReceiptWithZK(opts *bind.TransactOpts, proof CrossControllerProof, input [2]*big.Int, orderHash [32]byte, destTxHash [32]byte) (*types.Transaction, error)
CommitReceiptWithZK is a paid mutator transaction binding the contract method 0x102c955b.
Solidity: function commitReceiptWithZK((uint256[2],uint256[2][2],uint256[2]) proof, uint256[2] input, bytes32 orderHash, bytes32 destTxHash) returns()
func (*CrossTransactor) CrossFrom ¶
func (_Cross *CrossTransactor) CrossFrom(opts *bind.TransactOpts, order CrossControllerOrder, srcTokenDecimals uint8, crossAmount *big.Int) (*types.Transaction, error)
CrossFrom is a paid mutator transaction binding the contract method 0x88dd09f6.
Solidity: function crossFrom((uint256,uint256,address,address,uint256,uint256,address,address,address) order, uint8 srcTokenDecimals, uint256 crossAmount) returns()
func (*CrossTransactor) CrossTo ¶
func (_Cross *CrossTransactor) CrossTo(opts *bind.TransactOpts, order CrossControllerOrder) (*types.Transaction, error)
CrossTo is a paid mutator transaction binding the contract method 0xdef66322.
Solidity: function crossTo((uint256,uint256,address,address,uint256,uint256,address,address,address) order) returns()
func (*CrossTransactor) EnableZkVerifier ¶
func (_Cross *CrossTransactor) EnableZkVerifier(opts *bind.TransactOpts, _enable bool) (*types.Transaction, error)
EnableZkVerifier is a paid mutator transaction binding the contract method 0x4056e986.
Solidity: function enableZkVerifier(bool _enable) returns()
func (*CrossTransactor) Initialize ¶
func (_Cross *CrossTransactor) Initialize(opts *bind.TransactOpts, _owner common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address _owner) returns()
func (*CrossTransactor) SetFloatFee ¶
func (_Cross *CrossTransactor) SetFloatFee(opts *bind.TransactOpts, _floatFee *big.Int) (*types.Transaction, error)
SetFloatFee is a paid mutator transaction binding the contract method 0xcb23c2a7.
Solidity: function setFloatFee(uint256 _floatFee) returns()
func (*CrossTransactor) SetPorterFactory ¶
func (_Cross *CrossTransactor) SetPorterFactory(opts *bind.TransactOpts, _factory common.Address) (*types.Transaction, error)
SetPorterFactory is a paid mutator transaction binding the contract method 0x5e553013.
Solidity: function setPorterFactory(address _factory) returns()
func (*CrossTransactor) SetZkVerifier ¶
func (_Cross *CrossTransactor) SetZkVerifier(opts *bind.TransactOpts, _verifier common.Address) (*types.Transaction, error)
SetZkVerifier is a paid mutator transaction binding the contract method 0x96913528.
Solidity: function setZkVerifier(address _verifier) returns()
type CrossTransactorRaw ¶
type CrossTransactorRaw struct {
Contract *CrossTransactor // Generic write-only contract binding to access the raw methods on
}
CrossTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*CrossTransactorRaw) Transact ¶
func (_Cross *CrossTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*CrossTransactorRaw) Transfer ¶
func (_Cross *CrossTransactorRaw) 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 CrossTransactorSession ¶
type CrossTransactorSession struct { Contract *CrossTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
CrossTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*CrossTransactorSession) AddCommitment ¶
func (_Cross *CrossTransactorSession) AddCommitment(_commitment *big.Int) (*types.Transaction, error)
AddCommitment is a paid mutator transaction binding the contract method 0x797a6890.
Solidity: function addCommitment(uint256 _commitment) returns()
func (*CrossTransactorSession) CommitReceipt ¶
func (_Cross *CrossTransactorSession) CommitReceipt(orderHash [32]byte, receipt CrossControllerReceipt) (*types.Transaction, error)
CommitReceipt is a paid mutator transaction binding the contract method 0x2d75219c.
Solidity: function commitReceipt(bytes32 orderHash, (bytes32,bytes32) receipt) returns()
func (*CrossTransactorSession) CommitReceiptWithZK ¶
func (_Cross *CrossTransactorSession) CommitReceiptWithZK(proof CrossControllerProof, input [2]*big.Int, orderHash [32]byte, destTxHash [32]byte) (*types.Transaction, error)
CommitReceiptWithZK is a paid mutator transaction binding the contract method 0x102c955b.
Solidity: function commitReceiptWithZK((uint256[2],uint256[2][2],uint256[2]) proof, uint256[2] input, bytes32 orderHash, bytes32 destTxHash) returns()
func (*CrossTransactorSession) CrossFrom ¶
func (_Cross *CrossTransactorSession) CrossFrom(order CrossControllerOrder, srcTokenDecimals uint8, crossAmount *big.Int) (*types.Transaction, error)
CrossFrom is a paid mutator transaction binding the contract method 0x88dd09f6.
Solidity: function crossFrom((uint256,uint256,address,address,uint256,uint256,address,address,address) order, uint8 srcTokenDecimals, uint256 crossAmount) returns()
func (*CrossTransactorSession) CrossTo ¶
func (_Cross *CrossTransactorSession) CrossTo(order CrossControllerOrder) (*types.Transaction, error)
CrossTo is a paid mutator transaction binding the contract method 0xdef66322.
Solidity: function crossTo((uint256,uint256,address,address,uint256,uint256,address,address,address) order) returns()
func (*CrossTransactorSession) EnableZkVerifier ¶
func (_Cross *CrossTransactorSession) EnableZkVerifier(_enable bool) (*types.Transaction, error)
EnableZkVerifier is a paid mutator transaction binding the contract method 0x4056e986.
Solidity: function enableZkVerifier(bool _enable) returns()
func (*CrossTransactorSession) Initialize ¶
func (_Cross *CrossTransactorSession) Initialize(_owner common.Address) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xc4d66de8.
Solidity: function initialize(address _owner) returns()
func (*CrossTransactorSession) SetFloatFee ¶
func (_Cross *CrossTransactorSession) SetFloatFee(_floatFee *big.Int) (*types.Transaction, error)
SetFloatFee is a paid mutator transaction binding the contract method 0xcb23c2a7.
Solidity: function setFloatFee(uint256 _floatFee) returns()
func (*CrossTransactorSession) SetPorterFactory ¶
func (_Cross *CrossTransactorSession) SetPorterFactory(_factory common.Address) (*types.Transaction, error)
SetPorterFactory is a paid mutator transaction binding the contract method 0x5e553013.
Solidity: function setPorterFactory(address _factory) returns()
func (*CrossTransactorSession) SetZkVerifier ¶
func (_Cross *CrossTransactorSession) SetZkVerifier(_verifier common.Address) (*types.Transaction, error)
SetZkVerifier is a paid mutator transaction binding the contract method 0x96913528.
Solidity: function setZkVerifier(address _verifier) returns()
type CrossUnpaused ¶
type CrossUnpaused struct { Account common.Address Raw types.Log // Blockchain specific contextual infos }
CrossUnpaused represents a Unpaused event raised by the Cross contract.
type CrossUnpausedIterator ¶
type CrossUnpausedIterator struct { Event *CrossUnpaused // Event containing the contract specifics and raw log // contains filtered or unexported fields }
CrossUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Cross contract.
func (*CrossUnpausedIterator) Close ¶
func (it *CrossUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*CrossUnpausedIterator) Error ¶
func (it *CrossUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*CrossUnpausedIterator) Next ¶
func (it *CrossUnpausedIterator) 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.