mocks

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBondingManager

type IBondingManager struct {
	mock.Mock
}

IBondingManager is an autogenerated mock type for the IBondingManager type

func NewIBondingManager

func NewIBondingManager(t mockConstructorTestingTNewIBondingManager) *IBondingManager

NewIBondingManager creates a new instance of IBondingManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IBondingManager) AcceptOwnership added in v0.1.0

func (_m *IBondingManager) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership provides a mock function with given fields: opts

func (*IBondingManager) AddAgent

func (_m *IBondingManager) AddAgent(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error)

AddAgent provides a mock function with given fields: opts, domain, agent, proof

func (*IBondingManager) Address

func (_m *IBondingManager) Address() common.Address

Address provides a mock function with given fields:

func (*IBondingManager) AgentLeaf

func (_m *IBondingManager) AgentLeaf(opts *bind.CallOpts, agent common.Address) ([32]byte, error)

AgentLeaf provides a mock function with given fields: opts, agent

func (*IBondingManager) AgentRoot

func (_m *IBondingManager) AgentRoot(opts *bind.CallOpts) ([32]byte, error)

AgentRoot provides a mock function with given fields: opts

func (*IBondingManager) AgentStatus

func (_m *IBondingManager) AgentStatus(opts *bind.CallOpts, agent common.Address) (bondingmanager.AgentStatus, error)

AgentStatus provides a mock function with given fields: opts, agent

func (*IBondingManager) AllLeafs

func (_m *IBondingManager) AllLeafs(opts *bind.CallOpts) ([][32]byte, error)

AllLeafs provides a mock function with given fields: opts

func (*IBondingManager) CompleteSlashing

func (_m *IBondingManager) CompleteSlashing(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error)

CompleteSlashing provides a mock function with given fields: opts, domain, agent, proof

func (*IBondingManager) CompleteUnstaking

func (_m *IBondingManager) CompleteUnstaking(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error)

CompleteUnstaking provides a mock function with given fields: opts, domain, agent, proof

func (*IBondingManager) Destination

func (_m *IBondingManager) Destination(opts *bind.CallOpts) (common.Address, error)

Destination provides a mock function with given fields: opts

func (*IBondingManager) DisputeStatus

func (_m *IBondingManager) DisputeStatus(opts *bind.CallOpts, agent common.Address) (struct {
	Flag        uint8
	Rival       common.Address
	FraudProver common.Address
	DisputePtr  *big.Int
}, error)

DisputeStatus provides a mock function with given fields: opts, agent

func (*IBondingManager) FilterAgentRootProposed added in v0.1.0

FilterAgentRootProposed provides a mock function with given fields: opts

func (*IBondingManager) FilterDisputeOpened

FilterDisputeOpened provides a mock function with given fields: opts

func (*IBondingManager) FilterDisputeResolved

FilterDisputeResolved provides a mock function with given fields: opts

func (*IBondingManager) FilterInitialized

FilterInitialized provides a mock function with given fields: opts

func (*IBondingManager) FilterOwnershipTransferStarted added in v0.1.0

func (_m *IBondingManager) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*bondingmanager.BondingManagerOwnershipTransferStartedIterator, error)

FilterOwnershipTransferStarted provides a mock function with given fields: opts, previousOwner, newOwner

func (*IBondingManager) FilterOwnershipTransferred

func (_m *IBondingManager) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*bondingmanager.BondingManagerOwnershipTransferredIterator, error)

FilterOwnershipTransferred provides a mock function with given fields: opts, previousOwner, newOwner

func (*IBondingManager) FilterProposedAgentRootCancelled added in v0.1.0

FilterProposedAgentRootCancelled provides a mock function with given fields: opts

func (*IBondingManager) FilterProposedAgentRootResolved added in v0.1.0

FilterProposedAgentRootResolved provides a mock function with given fields: opts

func (*IBondingManager) FilterRootUpdated

FilterRootUpdated provides a mock function with given fields: opts

func (*IBondingManager) FilterStatusUpdated

func (_m *IBondingManager) FilterStatusUpdated(opts *bind.FilterOpts, domain []uint32, agent []common.Address) (*bondingmanager.BondingManagerStatusUpdatedIterator, error)

FilterStatusUpdated provides a mock function with given fields: opts, domain, agent

func (*IBondingManager) GetActiveAgents

func (_m *IBondingManager) GetActiveAgents(opts *bind.CallOpts, domain uint32) ([]common.Address, error)

GetActiveAgents provides a mock function with given fields: opts, domain

func (*IBondingManager) GetAgent

func (_m *IBondingManager) GetAgent(opts *bind.CallOpts, index *big.Int) (struct {
	Agent  common.Address
	Status bondingmanager.AgentStatus
}, error)

GetAgent provides a mock function with given fields: opts, index

func (*IBondingManager) GetDispute

func (_m *IBondingManager) GetDispute(opts *bind.CallOpts, index *big.Int) (struct {
	Guard           common.Address
	Notary          common.Address
	SlashedAgent    common.Address
	FraudProver     common.Address
	ReportPayload   []byte
	ReportSignature []byte
}, error)

GetDispute provides a mock function with given fields: opts, index

func (*IBondingManager) GetDisputesAmount

func (_m *IBondingManager) GetDisputesAmount(opts *bind.CallOpts) (*big.Int, error)

GetDisputesAmount provides a mock function with given fields: opts

func (*IBondingManager) GetLeafs

func (_m *IBondingManager) GetLeafs(opts *bind.CallOpts, indexFrom *big.Int, amount *big.Int) ([][32]byte, error)

GetLeafs provides a mock function with given fields: opts, indexFrom, amount

func (*IBondingManager) GetProof

func (_m *IBondingManager) GetProof(opts *bind.CallOpts, agent common.Address) ([][32]byte, error)

GetProof provides a mock function with given fields: opts, agent

func (*IBondingManager) Inbox

func (_m *IBondingManager) Inbox(opts *bind.CallOpts) (common.Address, error)

Inbox provides a mock function with given fields: opts

func (*IBondingManager) Initialize

func (_m *IBondingManager) Initialize(opts *bind.TransactOpts, origin_ common.Address, destination_ common.Address, inbox_ common.Address, summit_ common.Address) (*types.Transaction, error)

Initialize provides a mock function with given fields: opts, origin_, destination_, inbox_, summit_

func (*IBondingManager) InitiateUnstaking

func (_m *IBondingManager) InitiateUnstaking(opts *bind.TransactOpts, domain uint32, agent common.Address, proof [][32]byte) (*types.Transaction, error)

InitiateUnstaking provides a mock function with given fields: opts, domain, agent, proof

func (*IBondingManager) LeafsAmount

func (_m *IBondingManager) LeafsAmount(opts *bind.CallOpts) (*big.Int, error)

LeafsAmount provides a mock function with given fields: opts

func (*IBondingManager) LocalDomain

func (_m *IBondingManager) LocalDomain(opts *bind.CallOpts) (uint32, error)

LocalDomain provides a mock function with given fields: opts

func (*IBondingManager) Multicall

Multicall provides a mock function with given fields: opts, calls

func (*IBondingManager) OpenDispute

func (_m *IBondingManager) OpenDispute(opts *bind.TransactOpts, guardIndex uint32, notaryIndex uint32) (*types.Transaction, error)

OpenDispute provides a mock function with given fields: opts, guardIndex, notaryIndex

func (*IBondingManager) Origin

func (_m *IBondingManager) Origin(opts *bind.CallOpts) (common.Address, error)

Origin provides a mock function with given fields: opts

func (*IBondingManager) Owner

func (_m *IBondingManager) Owner(opts *bind.CallOpts) (common.Address, error)

Owner provides a mock function with given fields: opts

func (*IBondingManager) ParseAgentRootProposed added in v0.1.0

func (_m *IBondingManager) ParseAgentRootProposed(log types.Log) (*bondingmanager.BondingManagerAgentRootProposed, error)

ParseAgentRootProposed provides a mock function with given fields: log

func (*IBondingManager) ParseDisputeOpened

func (_m *IBondingManager) ParseDisputeOpened(log types.Log) (*bondingmanager.BondingManagerDisputeOpened, error)

ParseDisputeOpened provides a mock function with given fields: log

func (*IBondingManager) ParseDisputeResolved

func (_m *IBondingManager) ParseDisputeResolved(log types.Log) (*bondingmanager.BondingManagerDisputeResolved, error)

ParseDisputeResolved provides a mock function with given fields: log

func (*IBondingManager) ParseInitialized

ParseInitialized provides a mock function with given fields: log

func (*IBondingManager) ParseOwnershipTransferStarted added in v0.1.0

func (_m *IBondingManager) ParseOwnershipTransferStarted(log types.Log) (*bondingmanager.BondingManagerOwnershipTransferStarted, error)

ParseOwnershipTransferStarted provides a mock function with given fields: log

func (*IBondingManager) ParseOwnershipTransferred

func (_m *IBondingManager) ParseOwnershipTransferred(log types.Log) (*bondingmanager.BondingManagerOwnershipTransferred, error)

ParseOwnershipTransferred provides a mock function with given fields: log

func (*IBondingManager) ParseProposedAgentRootCancelled added in v0.1.0

func (_m *IBondingManager) ParseProposedAgentRootCancelled(log types.Log) (*bondingmanager.BondingManagerProposedAgentRootCancelled, error)

ParseProposedAgentRootCancelled provides a mock function with given fields: log

func (*IBondingManager) ParseProposedAgentRootResolved added in v0.1.0

func (_m *IBondingManager) ParseProposedAgentRootResolved(log types.Log) (*bondingmanager.BondingManagerProposedAgentRootResolved, error)

ParseProposedAgentRootResolved provides a mock function with given fields: log

func (*IBondingManager) ParseRootUpdated

ParseRootUpdated provides a mock function with given fields: log

func (*IBondingManager) ParseStatusUpdated

func (_m *IBondingManager) ParseStatusUpdated(log types.Log) (*bondingmanager.BondingManagerStatusUpdated, error)

ParseStatusUpdated provides a mock function with given fields: log

func (*IBondingManager) PendingOwner added in v0.1.0

func (_m *IBondingManager) PendingOwner(opts *bind.CallOpts) (common.Address, error)

PendingOwner provides a mock function with given fields: opts

func (*IBondingManager) RemoteSlashAgent

func (_m *IBondingManager) RemoteSlashAgent(opts *bind.TransactOpts, msgOrigin uint32, proofMaturity *big.Int, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error)

RemoteSlashAgent provides a mock function with given fields: opts, msgOrigin, proofMaturity, domain, agent, prover

func (*IBondingManager) RenounceOwnership

func (_m *IBondingManager) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership provides a mock function with given fields: opts

func (*IBondingManager) ResolveDisputeWhenStuck added in v0.1.0

func (_m *IBondingManager) ResolveDisputeWhenStuck(opts *bind.TransactOpts, domain uint32, slashedAgent common.Address) (*types.Transaction, error)

ResolveDisputeWhenStuck provides a mock function with given fields: opts, domain, slashedAgent

func (*IBondingManager) SlashAgent

func (_m *IBondingManager) SlashAgent(opts *bind.TransactOpts, domain uint32, agent common.Address, prover common.Address) (*types.Transaction, error)

SlashAgent provides a mock function with given fields: opts, domain, agent, prover

func (*IBondingManager) Summit

func (_m *IBondingManager) Summit(opts *bind.CallOpts) (common.Address, error)

Summit provides a mock function with given fields: opts

func (*IBondingManager) SynapseDomain added in v0.0.237

func (_m *IBondingManager) SynapseDomain(opts *bind.CallOpts) (uint32, error)

SynapseDomain provides a mock function with given fields: opts

func (*IBondingManager) TransferOwnership

func (_m *IBondingManager) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership provides a mock function with given fields: opts, newOwner

func (*IBondingManager) Version

func (_m *IBondingManager) Version(opts *bind.CallOpts) (string, error)

Version provides a mock function with given fields: opts

func (*IBondingManager) WatchAgentRootProposed added in v0.1.0

func (_m *IBondingManager) WatchAgentRootProposed(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerAgentRootProposed) (event.Subscription, error)

WatchAgentRootProposed provides a mock function with given fields: opts, sink

func (*IBondingManager) WatchDisputeOpened

func (_m *IBondingManager) WatchDisputeOpened(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerDisputeOpened) (event.Subscription, error)

WatchDisputeOpened provides a mock function with given fields: opts, sink

func (*IBondingManager) WatchDisputeResolved

func (_m *IBondingManager) WatchDisputeResolved(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerDisputeResolved) (event.Subscription, error)

WatchDisputeResolved provides a mock function with given fields: opts, sink

func (*IBondingManager) WatchInitialized

func (_m *IBondingManager) WatchInitialized(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerInitialized) (event.Subscription, error)

WatchInitialized provides a mock function with given fields: opts, sink

func (*IBondingManager) WatchOwnershipTransferStarted added in v0.1.0

func (_m *IBondingManager) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferStarted provides a mock function with given fields: opts, sink, previousOwner, newOwner

func (*IBondingManager) WatchOwnershipTransferred

func (_m *IBondingManager) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred provides a mock function with given fields: opts, sink, previousOwner, newOwner

func (*IBondingManager) WatchProposedAgentRootCancelled added in v0.1.0

func (_m *IBondingManager) WatchProposedAgentRootCancelled(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerProposedAgentRootCancelled) (event.Subscription, error)

WatchProposedAgentRootCancelled provides a mock function with given fields: opts, sink

func (*IBondingManager) WatchProposedAgentRootResolved added in v0.1.0

func (_m *IBondingManager) WatchProposedAgentRootResolved(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerProposedAgentRootResolved) (event.Subscription, error)

WatchProposedAgentRootResolved provides a mock function with given fields: opts, sink

func (*IBondingManager) WatchRootUpdated

func (_m *IBondingManager) WatchRootUpdated(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerRootUpdated) (event.Subscription, error)

WatchRootUpdated provides a mock function with given fields: opts, sink

func (*IBondingManager) WatchStatusUpdated

func (_m *IBondingManager) WatchStatusUpdated(opts *bind.WatchOpts, sink chan<- *bondingmanager.BondingManagerStatusUpdated, domain []uint32, agent []common.Address) (event.Subscription, error)

WatchStatusUpdated provides a mock function with given fields: opts, sink, domain, agent

func (*IBondingManager) WithdrawTips

func (_m *IBondingManager) WithdrawTips(opts *bind.TransactOpts, recipient common.Address, origin_ uint32, amount *big.Int) (*types.Transaction, error)

WithdrawTips provides a mock function with given fields: opts, recipient, origin_, amount

Jump to

Keyboard shortcuts

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