module_mock_storage

package
v0.0.0-...-268577f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	E_UNKNOWN_RECEIVER        uint64 = 1
	E_INVALID_METADATA_LENGTH uint64 = 2
)

Constants

View Source
const FunctionInfo = `` /* 461-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
}

type Entry

type Entry struct {
	Metadata bind.StdObject `move:"aptos_framework::object::Object"`
}

type MockStorageContract

type MockStorageContract struct {
	*bind.BoundContract
	// contains filtered or unexported fields
}

func (MockStorageContract) Encoder

func (MockStorageContract) Insert

func (c MockStorageContract) Insert(receiver aptos.AccountAddress, callbackMetadata []byte, callbackData []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (MockStorageContract) IsRegistered

func (c MockStorageContract) IsRegistered(opts *bind.CallOpts, receiver aptos.AccountAddress) (bool, error)

func (MockStorageContract) ParseReportMetadata

func (c MockStorageContract) ParseReportMetadata(opts *bind.CallOpts, metadata []byte) (ReportMetadata, error)

func (MockStorageContract) StorageAddress

func (c MockStorageContract) StorageAddress() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

func (MockStorageContract) StorageExists

func (c MockStorageContract) StorageExists(objAddress aptos.AccountAddress) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)

type MockStorageEncoder

type MockStorageEncoder interface {
	IsRegistered(receiver aptos.AccountAddress) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	ParseReportMetadata(metadata []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	Insert(receiver aptos.AccountAddress, callbackMetadata []byte, callbackData []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	StorageExists(objAddress aptos.AccountAddress) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	StorageAddress() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
}

type MockStorageInterface

type MockStorageInterface interface {
	IsRegistered(opts *bind.CallOpts, receiver aptos.AccountAddress) (bool, error)
	ParseReportMetadata(opts *bind.CallOpts, metadata []byte) (ReportMetadata, error)

	// Encoder returns the encoder implementation of this module.
	Encoder() MockStorageEncoder
}

func NewMockStorage

func NewMockStorage(address aptos.AccountAddress, client aptos.AptosRpcClient) MockStorageInterface

type ReportMetadata

type ReportMetadata struct {
	WorkflowCid   []byte `move:"vector<u8>"`
	WorkflowName  []byte `move:"vector<u8>"`
	WorkflowOwner []byte `move:"vector<u8>"`
	ReportId      []byte `move:"vector<u8>"`
}

type Storage

type Storage struct {
	Metadata []byte `move:"vector<u8>"`
	Data     []byte `move:"vector<u8>"`
}

Jump to

Keyboard shortcuts

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