fakes

package
v0.0.0-...-1408ad3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAptosChain

type FakeAptosChain struct {
	commonCap.CapabilityInfo
	services.Service
	// contains filtered or unexported fields
}

FakeAptosChain implements aptosserver.ClientCapability via aptos-go-sdk and a user-published mock_forwarder. Counterpart to FakeEVMChain.

func NewFakeAptosChain

func NewFakeAptosChain(
	lggr logger.Logger,
	client aptos.AptosRpcClient,
	privateKey *crypto.Ed25519PrivateKey,
	forwarderAddress aptos.AccountAddress,
	chainSelector uint64,
	dryRunWrites bool,
) (*FakeAptosChain, error)

NewFakeAptosChain wires a FakeAptosChain to `client` and the mock forwarder at `forwarderAddress`. `dryRunWrites=true` routes WriteReport through SimulateTransaction instead of SubmitTransaction.

func (*FakeAptosChain) ChainSelector

func (fc *FakeAptosChain) ChainSelector() uint64

func (*FakeAptosChain) Description

func (fc *FakeAptosChain) Description() string

func (*FakeAptosChain) Execute

func (*FakeAptosChain) Initialise

func (*FakeAptosChain) Name

func (fc *FakeAptosChain) Name() string

func (*FakeAptosChain) RegisterToWorkflow

func (fc *FakeAptosChain) RegisterToWorkflow(_ context.Context, request commonCap.RegisterToWorkflowRequest) error

func (*FakeAptosChain) UnregisterFromWorkflow

func (fc *FakeAptosChain) UnregisterFromWorkflow(_ context.Context, request commonCap.UnregisterFromWorkflowRequest) error

Jump to

Keyboard shortcuts

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