Documentation
¶
Index ¶
- Constants
- func OnLoad()
- type Funcs
- type GetBlobFieldCall
- type GetBlobInfoCall
- type ImmutableGetBlobFieldParams
- type ImmutableGetBlobFieldResults
- type ImmutableGetBlobInfoParams
- type ImmutableGetBlobInfoResults
- type ImmutableListBlobsResults
- type ImmutableStoreBlobParams
- type ImmutableStoreBlobResults
- type ListBlobsCall
- type MapHashToImmutableInt32
- type MapHashToMutableInt32
- type MapStringToImmutableBytes
- type MapStringToImmutableInt32
- type MapStringToMutableBytes
- type MapStringToMutableInt32
- type MutableGetBlobFieldParams
- type MutableGetBlobFieldResults
- type MutableGetBlobInfoParams
- type MutableGetBlobInfoResults
- type MutableListBlobsResults
- type MutableStoreBlobParams
- type MutableStoreBlobResults
- type StoreBlobCall
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" )
Variables ¶
This section is empty.
Functions ¶
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 (s ImmutableGetBlobFieldParams) Field() wasmlib.ScImmutableString
func (ImmutableGetBlobFieldParams) Hash ¶
func (s ImmutableGetBlobFieldParams) Hash() wasmlib.ScImmutableHash
type ImmutableGetBlobFieldResults ¶
type ImmutableGetBlobFieldResults struct {
// contains filtered or unexported fields
}
func (ImmutableGetBlobFieldResults) Bytes ¶
func (s ImmutableGetBlobFieldResults) Bytes() wasmlib.ScImmutableBytes
type ImmutableGetBlobInfoParams ¶
type ImmutableGetBlobInfoParams struct {
// contains filtered or unexported fields
}
func (ImmutableGetBlobInfoParams) Hash ¶
func (s ImmutableGetBlobInfoParams) Hash() wasmlib.ScImmutableHash
type ImmutableGetBlobInfoResults ¶
type ImmutableGetBlobInfoResults struct {
// contains filtered or unexported fields
}
func (ImmutableGetBlobInfoResults) BlobSizes ¶
func (s ImmutableGetBlobInfoResults) BlobSizes() MapStringToImmutableInt32
type ImmutableListBlobsResults ¶
type ImmutableListBlobsResults struct {
// contains filtered or unexported fields
}
func (ImmutableListBlobsResults) BlobSizes ¶
func (s ImmutableListBlobsResults) BlobSizes() MapHashToImmutableInt32
type ImmutableStoreBlobParams ¶
type ImmutableStoreBlobParams struct {
// contains filtered or unexported fields
}
func (ImmutableStoreBlobParams) Blobs ¶
func (s ImmutableStoreBlobParams) Blobs() MapStringToImmutableBytes
type ImmutableStoreBlobResults ¶
type ImmutableStoreBlobResults struct {
// contains filtered or unexported fields
}
func (ImmutableStoreBlobResults) Hash ¶
func (s ImmutableStoreBlobResults) Hash() wasmlib.ScImmutableHash
type ListBlobsCall ¶
type ListBlobsCall struct { Func *wasmlib.ScView Results ImmutableListBlobsResults }
type MapHashToImmutableInt32 ¶
type MapHashToImmutableInt32 struct {
// contains filtered or unexported fields
}
func (MapHashToImmutableInt32) GetInt32 ¶
func (m MapHashToImmutableInt32) GetInt32(key wasmlib.ScHash) wasmlib.ScImmutableInt32
type MapHashToMutableInt32 ¶
type MapHashToMutableInt32 struct {
// contains filtered or unexported fields
}
func (MapHashToMutableInt32) Clear ¶
func (m MapHashToMutableInt32) Clear()
func (MapHashToMutableInt32) GetInt32 ¶
func (m MapHashToMutableInt32) GetInt32(key wasmlib.ScHash) wasmlib.ScMutableInt32
type MapStringToImmutableBytes ¶
type MapStringToImmutableBytes struct {
// contains filtered or unexported fields
}
func (MapStringToImmutableBytes) GetBytes ¶
func (m MapStringToImmutableBytes) GetBytes(key string) wasmlib.ScImmutableBytes
type MapStringToImmutableInt32 ¶
type MapStringToImmutableInt32 struct {
// contains filtered or unexported fields
}
func (MapStringToImmutableInt32) GetInt32 ¶
func (m MapStringToImmutableInt32) GetInt32(key string) wasmlib.ScImmutableInt32
type MapStringToMutableBytes ¶
type MapStringToMutableBytes struct {
// contains filtered or unexported fields
}
func (MapStringToMutableBytes) Clear ¶
func (m MapStringToMutableBytes) Clear()
func (MapStringToMutableBytes) GetBytes ¶
func (m MapStringToMutableBytes) GetBytes(key string) wasmlib.ScMutableBytes
type MapStringToMutableInt32 ¶
type MapStringToMutableInt32 struct {
// contains filtered or unexported fields
}
func (MapStringToMutableInt32) Clear ¶
func (m MapStringToMutableInt32) Clear()
func (MapStringToMutableInt32) GetInt32 ¶
func (m MapStringToMutableInt32) GetInt32(key string) wasmlib.ScMutableInt32
type MutableGetBlobFieldParams ¶
type MutableGetBlobFieldParams struct {
// contains filtered or unexported fields
}
func (MutableGetBlobFieldParams) Field ¶
func (s MutableGetBlobFieldParams) Field() wasmlib.ScMutableString
func (MutableGetBlobFieldParams) Hash ¶
func (s MutableGetBlobFieldParams) Hash() wasmlib.ScMutableHash
type MutableGetBlobFieldResults ¶
type MutableGetBlobFieldResults struct {
// contains filtered or unexported fields
}
func (MutableGetBlobFieldResults) Bytes ¶
func (s MutableGetBlobFieldResults) Bytes() wasmlib.ScMutableBytes
type MutableGetBlobInfoParams ¶
type MutableGetBlobInfoParams struct {
// contains filtered or unexported fields
}
func (MutableGetBlobInfoParams) Hash ¶
func (s MutableGetBlobInfoParams) Hash() wasmlib.ScMutableHash
type MutableGetBlobInfoResults ¶
type MutableGetBlobInfoResults struct {
// contains filtered or unexported fields
}
func (MutableGetBlobInfoResults) BlobSizes ¶
func (s MutableGetBlobInfoResults) BlobSizes() MapStringToMutableInt32
type MutableListBlobsResults ¶
type MutableListBlobsResults struct {
// contains filtered or unexported fields
}
func (MutableListBlobsResults) BlobSizes ¶
func (s MutableListBlobsResults) BlobSizes() MapHashToMutableInt32
type MutableStoreBlobParams ¶
type MutableStoreBlobParams struct {
// contains filtered or unexported fields
}
func (MutableStoreBlobParams) Blobs ¶
func (s MutableStoreBlobParams) Blobs() MapStringToMutableBytes
type MutableStoreBlobResults ¶
type MutableStoreBlobResults struct {
// contains filtered or unexported fields
}
func (MutableStoreBlobResults) Hash ¶
func (s MutableStoreBlobResults) Hash() wasmlib.ScMutableHash
type StoreBlobCall ¶
type StoreBlobCall struct { Func *wasmlib.ScFunc Params MutableStoreBlobParams Results ImmutableStoreBlobResults }
Click to show internal directories.
Click to hide internal directories.