module_storage

package
v0.0.0-...-c15b584 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 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 = `` /* 576-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
}

type DispatcherV2

type DispatcherV2 struct {
}

type Entry

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

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>"`
}

type StorageContract

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

func (StorageContract) Encoder

func (c StorageContract) Encoder() StorageEncoder

func (StorageContract) Insert

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

func (StorageContract) MigrateToV2

func (c StorageContract) MigrateToV2(opts *bind.TransactOpts, callbackAddresses []aptos.AccountAddress) (*api.PendingTransaction, error)

func (StorageContract) ParseReportMetadata

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

func (StorageContract) StorageAddress

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

func (StorageContract) StorageExists

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

type StorageEncoder

type StorageEncoder interface {
	ParseReportMetadata(metadata []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
	MigrateToV2(callbackAddresses []aptos.AccountAddress) (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 StorageInterface

type StorageInterface interface {
	ParseReportMetadata(opts *bind.CallOpts, metadata []byte) (ReportMetadata, error)

	MigrateToV2(opts *bind.TransactOpts, callbackAddresses []aptos.AccountAddress) (*api.PendingTransaction, error)

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

func NewStorage

func NewStorage(address aptos.AccountAddress, client aptos.AptosRpcClient) StorageInterface

type TestProof

type TestProof struct {
}

type TestProof2

type TestProof2 struct {
}

type TestProof3

type TestProof3 struct {
}

type TestProof4

type TestProof4 struct {
}

Jump to

Keyboard shortcuts

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