coreblob

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0, BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScName        = "blob"
	ScDescription = "Core blob contract"
	HScName       = wasmlib.ScHname(0xfd91bc63)
)
View Source
const (
	ParamField = wasmlib.Key("field")
	ParamHash  = wasmlib.Key("hash")
)
View Source
const (
	ResultBytes = wasmlib.Key("bytes")
	ResultHash  = wasmlib.Key("hash")
)
View Source
const (
	FuncStoreBlob    = "storeBlob"
	ViewGetBlobField = "getBlobField"
	ViewGetBlobInfo  = "getBlobInfo"
	ViewListBlobs    = "listBlobs"
)
View Source
const (
	HFuncStoreBlob    = wasmlib.ScHname(0xddd4c281)
	HViewGetBlobField = wasmlib.ScHname(0x1f448130)
	HViewGetBlobInfo  = wasmlib.ScHname(0xfde4ab46)
	HViewListBlobs    = wasmlib.ScHname(0x62ca7990)
)

Variables

This section is empty.

Functions

func OnLoad

func OnLoad()

Types

type Funcs

type Funcs struct{}
var ScFuncs Funcs

func (Funcs) GetBlobField

func (sc Funcs) GetBlobField(ctx wasmlib.ScViewCallContext) *GetBlobFieldCall

func (Funcs) GetBlobInfo

func (sc Funcs) GetBlobInfo(ctx wasmlib.ScViewCallContext) *GetBlobInfoCall

func (Funcs) ListBlobs

func (sc Funcs) ListBlobs(ctx wasmlib.ScViewCallContext) *ListBlobsCall

func (Funcs) StoreBlob

func (sc Funcs) StoreBlob(ctx wasmlib.ScFuncCallContext) *StoreBlobCall

type GetBlobFieldCall

type GetBlobFieldCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetBlobFieldParams
	Results ImmutableGetBlobFieldResults
}

type GetBlobInfoCall

type GetBlobInfoCall struct {
	Func    *wasmlib.ScView
	Params  MutableGetBlobInfoParams
	Results ImmutableGetBlobInfoResults
}

type ImmutableGetBlobFieldParams

type ImmutableGetBlobFieldParams struct {
	// contains filtered or unexported fields
}

func (ImmutableGetBlobFieldParams) Field

func (ImmutableGetBlobFieldParams) Hash

type ImmutableGetBlobFieldResults

type ImmutableGetBlobFieldResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetBlobFieldResults) Bytes

type ImmutableGetBlobInfoParams

type ImmutableGetBlobInfoParams struct {
	// contains filtered or unexported fields
}

func (ImmutableGetBlobInfoParams) Hash

type ImmutableGetBlobInfoResults

type ImmutableGetBlobInfoResults struct {
	// contains filtered or unexported fields
}

func (ImmutableGetBlobInfoResults) BlobSizes

type ImmutableListBlobsResults

type ImmutableListBlobsResults struct {
	// contains filtered or unexported fields
}

func (ImmutableListBlobsResults) BlobSizes

type ImmutableStoreBlobParams

type ImmutableStoreBlobParams struct {
	// contains filtered or unexported fields
}

func (ImmutableStoreBlobParams) Blobs

type ImmutableStoreBlobResults

type ImmutableStoreBlobResults struct {
	// contains filtered or unexported fields
}

func (ImmutableStoreBlobResults) Hash

type ListBlobsCall

type ListBlobsCall struct {
	Func    *wasmlib.ScView
	Results ImmutableListBlobsResults
}

type MapHashToImmutableInt32

type MapHashToImmutableInt32 struct {
	// contains filtered or unexported fields
}

func (MapHashToImmutableInt32) GetInt32

type MapHashToMutableInt32

type MapHashToMutableInt32 struct {
	// contains filtered or unexported fields
}

func (MapHashToMutableInt32) Clear

func (m MapHashToMutableInt32) Clear()

func (MapHashToMutableInt32) GetInt32

type MapStringToImmutableBytes

type MapStringToImmutableBytes struct {
	// contains filtered or unexported fields
}

func (MapStringToImmutableBytes) GetBytes

type MapStringToImmutableInt32

type MapStringToImmutableInt32 struct {
	// contains filtered or unexported fields
}

func (MapStringToImmutableInt32) GetInt32

type MapStringToMutableBytes

type MapStringToMutableBytes struct {
	// contains filtered or unexported fields
}

func (MapStringToMutableBytes) Clear

func (m MapStringToMutableBytes) Clear()

func (MapStringToMutableBytes) GetBytes

type MapStringToMutableInt32

type MapStringToMutableInt32 struct {
	// contains filtered or unexported fields
}

func (MapStringToMutableInt32) Clear

func (m MapStringToMutableInt32) Clear()

func (MapStringToMutableInt32) GetInt32

type MutableGetBlobFieldParams

type MutableGetBlobFieldParams struct {
	// contains filtered or unexported fields
}

func (MutableGetBlobFieldParams) Field

func (MutableGetBlobFieldParams) Hash

type MutableGetBlobFieldResults

type MutableGetBlobFieldResults struct {
	// contains filtered or unexported fields
}

func (MutableGetBlobFieldResults) Bytes

type MutableGetBlobInfoParams

type MutableGetBlobInfoParams struct {
	// contains filtered or unexported fields
}

func (MutableGetBlobInfoParams) Hash

type MutableGetBlobInfoResults

type MutableGetBlobInfoResults struct {
	// contains filtered or unexported fields
}

func (MutableGetBlobInfoResults) BlobSizes

type MutableListBlobsResults

type MutableListBlobsResults struct {
	// contains filtered or unexported fields
}

func (MutableListBlobsResults) BlobSizes

type MutableStoreBlobParams

type MutableStoreBlobParams struct {
	// contains filtered or unexported fields
}

func (MutableStoreBlobParams) Blobs

type MutableStoreBlobResults

type MutableStoreBlobResults struct {
	// contains filtered or unexported fields
}

func (MutableStoreBlobResults) Hash

type StoreBlobCall

type StoreBlobCall struct {
	Func    *wasmlib.ScFunc
	Params  MutableStoreBlobParams
	Results ImmutableStoreBlobResults
}

Jump to

Keyboard shortcuts

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