rstemplates

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Templates = []map[string]string{
	config,
	common,
	cargoToml,
	constsRs,
	contractRs,
	eventsRs,
	funcsRs,
	keysRs,
	libRs,
	modRs,
	paramsRs,
	proxyRs,
	resultsRs,
	stateRs,
	structsRs,
	typedefsRs,
}
View Source
var TypeDependent = model.StringMapMap{
	"fldLangType": {
		"Address":   "ScAddress",
		"AgentID":   "ScAgentID",
		"Bool":      "bool",
		"ChainID":   "ScChainID",
		"Color":     "ScColor",
		"Hash":      "ScHash",
		"Hname":     "ScHname",
		"Int8":      "i8",
		"Int16":     "i16",
		"Int32":     "i32",
		"Int64":     "i64",
		"RequestID": "ScRequestID",
		"String":    "String",
		"Uint8":     "u8",
		"Uint16":    "u16",
		"Uint32":    "u32",
		"Uint64":    "u64",
	},
	"fldTypeID": {
		"Address":   "TYPE_ADDRESS",
		"AgentID":   "TYPE_AGENT_ID",
		"Bool":      "TYPE_BOOL",
		"ChainID":   "TYPE_CHAIN_ID",
		"Color":     "TYPE_COLOR",
		"Hash":      "TYPE_HASH",
		"Hname":     "TYPE_HNAME",
		"Int8":      "TYPE_INT8",
		"Int16":     "TYPE_INT16",
		"Int32":     "TYPE_INT32",
		"Int64":     "TYPE_INT64",
		"RequestID": "TYPE_REQUEST_ID",
		"String":    "TYPE_STRING",
		"Uint8":     "TYPE_INT8",
		"Uint16":    "TYPE_INT16",
		"Uint32":    "TYPE_INT32",
		"Uint64":    "TYPE_INT64",
		"":          "TYPE_BYTES",
	},
	"fldToKey32": {
		"Address":   "key.get_key_id()",
		"AgentID":   "key.get_key_id()",
		"Bool":      "???cannot use Bool as map key",
		"ChainID":   "key.get_key_id()",
		"Color":     "key.get_key_id()",
		"Hash":      "key.get_key_id()",
		"Hname":     "key.get_key_id()",
		"Int8":      "get_key_id_from_uint64(key as u64, 1)",
		"Int16":     "get_key_id_from_uint64(key as u64, 2)",
		"Int32":     "get_key_id_from_uint64(key as u64, 4)",
		"Int64":     "get_key_id_from_uint64(key as u64, 8)",
		"RequestID": "key.get_key_id()",
		"String":    "key.get_key_id()",
		"Uint8":     "get_key_id_from_uint64(key as u64, 1)",
		"Uint16":    "get_key_id_from_uint64(key as u64, 2)",
		"Uint32":    "get_key_id_from_uint64(key as u64, 4)",
		"Uint64":    "get_key_id_from_uint64(key, 8)",
	},
	"fldParamLangType": {
		"Address":   "ScAddress",
		"AgentID":   "ScAgentID",
		"Bool":      "bool",
		"ChainID":   "ScChainID",
		"Color":     "ScColor",
		"Hash":      "ScHash",
		"Hname":     "ScHname",
		"Int8":      "i8",
		"Int16":     "i16",
		"Int32":     "i32",
		"Int64":     "i64",
		"RequestID": "ScRequestID",
		"String":    "str",
		"Uint8":     "u8",
		"Uint16":    "u16",
		"Uint32":    "u32",
		"Uint64":    "u64",
	},
	"fldRef": {
		"Address":   "&",
		"AgentID":   "&",
		"ChainID":   "&",
		"Color":     "&",
		"Hash":      "&",
		"RequestID": "&",
		"String":    "&",
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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