Documentation
¶
Index ¶
- Constants
- type Dispatcher
- type Entry
- type MockStorageContract
- func (c MockStorageContract) Encoder() MockStorageEncoder
- func (c MockStorageContract) Insert(receiver aptos.AccountAddress, callbackMetadata []byte, callbackData []byte) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- func (c MockStorageContract) IsRegistered(opts *bind.CallOpts, receiver aptos.AccountAddress) (bool, error)
- func (c MockStorageContract) ParseReportMetadata(opts *bind.CallOpts, metadata []byte) (ReportMetadata, error)
- func (c MockStorageContract) StorageAddress() (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- func (c MockStorageContract) StorageExists(objAddress aptos.AccountAddress) (bind.ModuleInformation, string, []aptos.TypeTag, [][]byte, error)
- type MockStorageEncoder
- type MockStorageInterface
- type ReportMetadata
- type Storage
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 MockStorageContract ¶
type MockStorageContract struct {
*bind.BoundContract
// contains filtered or unexported fields
}
func (MockStorageContract) Encoder ¶
func (c MockStorageContract) Encoder() MockStorageEncoder
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 (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 ¶
Click to show internal directories.
Click to hide internal directories.