coreroot

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ScName        = "root"
	ScDescription = "Core root contract"
	HScName       = wasmlib.ScHname(0xcebf5908)
)
View Source
const (
	ParamDeployer    = wasmlib.Key("dp")
	ParamDescription = wasmlib.Key("ds")
	ParamHname       = wasmlib.Key("hn")
	ParamName        = wasmlib.Key("nm")
	ParamProgramHash = wasmlib.Key("ph")
)
View Source
const (
	ResultContractFound    = wasmlib.Key("cf")
	ResultContractRecData  = wasmlib.Key("dt")
	ResultContractRegistry = wasmlib.Key("r")
)
View Source
const (
	FuncDeployContract         = "deployContract"
	FuncGrantDeployPermission  = "grantDeployPermission"
	FuncRevokeDeployPermission = "revokeDeployPermission"
	ViewFindContract           = "findContract"
	ViewGetContractRecords     = "getContractRecords"
)
View Source
const (
	HFuncDeployContract         = wasmlib.ScHname(0x28232c27)
	HFuncGrantDeployPermission  = wasmlib.ScHname(0xf440263a)
	HFuncRevokeDeployPermission = wasmlib.ScHname(0x850744f1)
	HViewFindContract           = wasmlib.ScHname(0xc145ca00)
	HViewGetContractRecords     = wasmlib.ScHname(0x078b3ef3)
)

Variables

This section is empty.

Functions

func OnLoad

func OnLoad()

Types

type DeployContractCall

type DeployContractCall struct {
	Func   *wasmlib.ScFunc
	Params MutableDeployContractParams
}

type FindContractCall

type FindContractCall struct {
	Func    *wasmlib.ScView
	Params  MutableFindContractParams
	Results ImmutableFindContractResults
}

type Funcs

type Funcs struct{}
var ScFuncs Funcs

func (Funcs) DeployContract

func (sc Funcs) DeployContract(ctx wasmlib.ScFuncCallContext) *DeployContractCall

func (Funcs) FindContract

func (sc Funcs) FindContract(ctx wasmlib.ScViewCallContext) *FindContractCall

func (Funcs) GetContractRecords

func (sc Funcs) GetContractRecords(ctx wasmlib.ScViewCallContext) *GetContractRecordsCall

func (Funcs) GrantDeployPermission

func (sc Funcs) GrantDeployPermission(ctx wasmlib.ScFuncCallContext) *GrantDeployPermissionCall

func (Funcs) RevokeDeployPermission

func (sc Funcs) RevokeDeployPermission(ctx wasmlib.ScFuncCallContext) *RevokeDeployPermissionCall

type GetContractRecordsCall

type GetContractRecordsCall struct {
	Func    *wasmlib.ScView
	Results ImmutableGetContractRecordsResults
}

type GrantDeployPermissionCall

type GrantDeployPermissionCall struct {
	Func   *wasmlib.ScFunc
	Params MutableGrantDeployPermissionParams
}

type ImmutableDeployContractParams

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

func (ImmutableDeployContractParams) Description

func (ImmutableDeployContractParams) Name

func (ImmutableDeployContractParams) ProgramHash

type ImmutableFindContractParams

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

func (ImmutableFindContractParams) Hname

type ImmutableFindContractResults

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

func (ImmutableFindContractResults) ContractFound

func (ImmutableFindContractResults) ContractRecData

type ImmutableGetContractRecordsResults

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

func (ImmutableGetContractRecordsResults) ContractRegistry

type ImmutableGrantDeployPermissionParams

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

func (ImmutableGrantDeployPermissionParams) Deployer

type ImmutableRevokeDeployPermissionParams

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

func (ImmutableRevokeDeployPermissionParams) Deployer

type MapHnameToImmutableBytes

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

func (MapHnameToImmutableBytes) GetBytes

type MapHnameToMutableBytes

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

func (MapHnameToMutableBytes) Clear

func (m MapHnameToMutableBytes) Clear()

func (MapHnameToMutableBytes) GetBytes

type MutableDeployContractParams

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

func (MutableDeployContractParams) Description

func (MutableDeployContractParams) Name

func (MutableDeployContractParams) ProgramHash

type MutableFindContractParams

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

func (MutableFindContractParams) Hname

type MutableFindContractResults

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

func (MutableFindContractResults) ContractFound

func (MutableFindContractResults) ContractRecData

type MutableGetContractRecordsResults

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

func (MutableGetContractRecordsResults) ContractRegistry

type MutableGrantDeployPermissionParams

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

func (MutableGrantDeployPermissionParams) Deployer

type MutableRevokeDeployPermissionParams

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

func (MutableRevokeDeployPermissionParams) Deployer

type RevokeDeployPermissionCall

type RevokeDeployPermissionCall struct {
	Func   *wasmlib.ScFunc
	Params MutableRevokeDeployPermissionParams
}

Jump to

Keyboard shortcuts

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