define TCS language and prove stage0 execution slice
This commit is contained in:
parent
8cfdba210f
commit
3959ae4270
31 changed files with 2449 additions and 5 deletions
29
language/examples/ECHO-PACKAGE.tcs
Normal file
29
language/examples/ECHO-PACKAGE.tcs
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
TCS 0.1;
|
||||
|
||||
MODULE HLP-MODULE-ECHO-0001 {
|
||||
header {
|
||||
schema = "tcs.module/v1";
|
||||
name_zh = "光湖最小回声模块";
|
||||
name_en = "GuangHu Minimum Echo Module";
|
||||
version = "0.1.0";
|
||||
language = "TCS/0.1";
|
||||
profile = "HLDP-NP/1";
|
||||
protocols = ["TCS-MODULE-ABI-0001", "GLS-0131"];
|
||||
lifecycle = "CANDIDATE";
|
||||
canonical_uri = "language/examples/ECHO-PACKAGE.tcs";
|
||||
compatibility = ["TCS-STAGE0-IGNITION-0001"];
|
||||
}
|
||||
source { source_id = "HLP-PART-TCS-LANG-0001"; source_uri = "language/examples/ECHO-PACKAGE.tcs"; source_sha256 = "SELF_AT_COMPILE_TIME"; source_role = "REGISTERED_MODULE"; }
|
||||
manifest { module_id = "HLP-MODULE-ECHO-0001"; display_name_zh = "光湖最小回声模块"; entry_program_id = "HLP-PROGRAM-ECHO-0001"; entry_source = "language/examples/ECHO-MODULE.tcs"; }
|
||||
entry { kind = "PROGRAM"; id = "HLP-PROGRAM-ECHO-0001"; }
|
||||
capabilities { required = ["CORE.ECHO"]; provided = ["HLP-CAPABILITY-ECHO-0001"]; }
|
||||
authority_ceiling { maximum = "LOCAL_EXACT_RECEIPT_PATH"; network = false; process = false; }
|
||||
resource_ceiling { concurrency = 1; timeout_ms = 1000; memory_limit_bytes = 1048576; }
|
||||
data_scope { read = ["PROGRAM_LITERAL"]; write = ["ACCOUNT_OR_TEST_SCOPED_RECEIPT"]; }
|
||||
network_scope { allowed = false; domains = []; }
|
||||
install { account_scoped = true; registration_is_installation = false; activation_requires_self_test = true; }
|
||||
self_test { program_id = "HLP-PROGRAM-ECHO-0001"; expect = "EXECUTED_TARGET_READBACK_VERIFIED"; }
|
||||
rollback { action = "REMOVE_INSTALLED_BYTES_AND_RESTORE_PREVIOUS_ACTIVE_VERSION"; preserve_receipts = true; }
|
||||
projection { display_name_zh = "光湖最小回声模块"; technical_detail_default = false; }
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue