Documentation ¶
Index ¶
- Constants
- func OnLoad()
- type DeployContractCall
- type FindContractCall
- type Funcs
- func (sc Funcs) DeployContract(ctx wasmlib.ScFuncCallContext) *DeployContractCall
- func (sc Funcs) FindContract(ctx wasmlib.ScViewCallContext) *FindContractCall
- func (sc Funcs) GetContractRecords(ctx wasmlib.ScViewCallContext) *GetContractRecordsCall
- func (sc Funcs) GrantDeployPermission(ctx wasmlib.ScFuncCallContext) *GrantDeployPermissionCall
- func (sc Funcs) RevokeDeployPermission(ctx wasmlib.ScFuncCallContext) *RevokeDeployPermissionCall
- type GetContractRecordsCall
- type GrantDeployPermissionCall
- type ImmutableDeployContractParams
- type ImmutableFindContractParams
- type ImmutableFindContractResults
- type ImmutableGetContractRecordsResults
- type ImmutableGrantDeployPermissionParams
- type ImmutableRevokeDeployPermissionParams
- type MapHnameToImmutableBytes
- type MapHnameToMutableBytes
- type MutableDeployContractParams
- type MutableFindContractParams
- type MutableFindContractResults
- type MutableGetContractRecordsResults
- type MutableGrantDeployPermissionParams
- type MutableRevokeDeployPermissionParams
- type RevokeDeployPermissionCall
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" )
Variables ¶
This section is empty.
Functions ¶
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 (s ImmutableDeployContractParams) Description() wasmlib.ScImmutableString
func (ImmutableDeployContractParams) Name ¶
func (s ImmutableDeployContractParams) Name() wasmlib.ScImmutableString
func (ImmutableDeployContractParams) ProgramHash ¶
func (s ImmutableDeployContractParams) ProgramHash() wasmlib.ScImmutableHash
type ImmutableFindContractParams ¶
type ImmutableFindContractParams struct {
// contains filtered or unexported fields
}
func (ImmutableFindContractParams) Hname ¶
func (s ImmutableFindContractParams) Hname() wasmlib.ScImmutableHname
type ImmutableFindContractResults ¶
type ImmutableFindContractResults struct {
// contains filtered or unexported fields
}
func (ImmutableFindContractResults) ContractFound ¶
func (s ImmutableFindContractResults) ContractFound() wasmlib.ScImmutableBytes
func (ImmutableFindContractResults) ContractRecData ¶
func (s ImmutableFindContractResults) ContractRecData() wasmlib.ScImmutableBytes
type ImmutableGetContractRecordsResults ¶
type ImmutableGetContractRecordsResults struct {
// contains filtered or unexported fields
}
func (ImmutableGetContractRecordsResults) ContractRegistry ¶
func (s ImmutableGetContractRecordsResults) ContractRegistry() MapHnameToImmutableBytes
type ImmutableGrantDeployPermissionParams ¶
type ImmutableGrantDeployPermissionParams struct {
// contains filtered or unexported fields
}
func (ImmutableGrantDeployPermissionParams) Deployer ¶
func (s ImmutableGrantDeployPermissionParams) Deployer() wasmlib.ScImmutableAgentID
type ImmutableRevokeDeployPermissionParams ¶
type ImmutableRevokeDeployPermissionParams struct {
// contains filtered or unexported fields
}
func (ImmutableRevokeDeployPermissionParams) Deployer ¶
func (s ImmutableRevokeDeployPermissionParams) Deployer() wasmlib.ScImmutableAgentID
type MapHnameToImmutableBytes ¶
type MapHnameToImmutableBytes struct {
// contains filtered or unexported fields
}
func (MapHnameToImmutableBytes) GetBytes ¶
func (m MapHnameToImmutableBytes) GetBytes(key wasmlib.ScHname) wasmlib.ScImmutableBytes
type MapHnameToMutableBytes ¶
type MapHnameToMutableBytes struct {
// contains filtered or unexported fields
}
func (MapHnameToMutableBytes) Clear ¶
func (m MapHnameToMutableBytes) Clear()
func (MapHnameToMutableBytes) GetBytes ¶
func (m MapHnameToMutableBytes) GetBytes(key wasmlib.ScHname) wasmlib.ScMutableBytes
type MutableDeployContractParams ¶
type MutableDeployContractParams struct {
// contains filtered or unexported fields
}
func (MutableDeployContractParams) Description ¶
func (s MutableDeployContractParams) Description() wasmlib.ScMutableString
func (MutableDeployContractParams) Name ¶
func (s MutableDeployContractParams) Name() wasmlib.ScMutableString
func (MutableDeployContractParams) ProgramHash ¶
func (s MutableDeployContractParams) ProgramHash() wasmlib.ScMutableHash
type MutableFindContractParams ¶
type MutableFindContractParams struct {
// contains filtered or unexported fields
}
func (MutableFindContractParams) Hname ¶
func (s MutableFindContractParams) Hname() wasmlib.ScMutableHname
type MutableFindContractResults ¶
type MutableFindContractResults struct {
// contains filtered or unexported fields
}
func (MutableFindContractResults) ContractFound ¶
func (s MutableFindContractResults) ContractFound() wasmlib.ScMutableBytes
func (MutableFindContractResults) ContractRecData ¶
func (s MutableFindContractResults) ContractRecData() wasmlib.ScMutableBytes
type MutableGetContractRecordsResults ¶
type MutableGetContractRecordsResults struct {
// contains filtered or unexported fields
}
func (MutableGetContractRecordsResults) ContractRegistry ¶
func (s MutableGetContractRecordsResults) ContractRegistry() MapHnameToMutableBytes
type MutableGrantDeployPermissionParams ¶
type MutableGrantDeployPermissionParams struct {
// contains filtered or unexported fields
}
func (MutableGrantDeployPermissionParams) Deployer ¶
func (s MutableGrantDeployPermissionParams) Deployer() wasmlib.ScMutableAgentID
type MutableRevokeDeployPermissionParams ¶
type MutableRevokeDeployPermissionParams struct {
// contains filtered or unexported fields
}
func (MutableRevokeDeployPermissionParams) Deployer ¶
func (s MutableRevokeDeployPermissionParams) Deployer() wasmlib.ScMutableAgentID
type RevokeDeployPermissionCall ¶
type RevokeDeployPermissionCall struct { Func *wasmlib.ScFunc Params MutableRevokeDeployPermissionParams }
Click to show internal directories.
Click to hide internal directories.