From 50185777b9e707ac394d70601055068a346cf34a Mon Sep 17 00:00:00 2001 From: Xi Zhang Date: Mon, 29 Aug 2022 15:30:33 -0500 Subject: [PATCH 1/2] Update docs reference to runtime version --- docs/development-setup/deploying-a-runtime.md | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/docs/development-setup/deploying-a-runtime.md b/docs/development-setup/deploying-a-runtime.md index e00985b4378..bf918798b5e 100644 --- a/docs/development-setup/deploying-a-runtime.md +++ b/docs/development-setup/deploying-a-runtime.md @@ -115,7 +115,7 @@ Prepare a runtime descriptor: ``` cat << EOF > "${RUNTIME_DESCRIPTOR}" { - "v": 2, + "v": 3, "id": "${RUNTIME_ID}", "entity_id": "${ENTITY_ID}", "genesis": { @@ -160,7 +160,10 @@ cat << EOF > "${RUNTIME_DESCRIPTOR}" } }, "staking": {}, - "governance_model": "entity" + "governance_model": "entity", + "deployments": [{ + "valid_from": 100000 + }] } EOF ``` @@ -227,7 +230,7 @@ Should give output similar to ``` { - "v": 2, + "v": 3, "id": "8000000000000000000000000000000000000000000000000000000001234567", "entity_id": "+MJpnSTzc11dNI5emMa+asCJH5cxBiBCcpbYE4XBdso=", "genesis": { @@ -272,7 +275,13 @@ Should give output similar to } }, "staking": {}, - "governance_model": "entity" + "governance_model": "entity", + "deployments": [ + { + "version": {}, + "valid_from": 100000 + } + ] } ``` @@ -409,9 +418,9 @@ state: ``` oasis-node registry entity list -a $ADDR -v -{"v":1,"id":"JTUtHd4XYQjh//e6eYU7Pa/XMFG88WE+jixvceIfWrk=","nodes":["LQu4ZtFg8OJ0MC4M4QMeUR7Is6Xt4A/CW+PK/7TPiH0="]} -{"v":1,"id":"+MJpnSTzc11dNI5emMa+asCJH5cxBiBCcpbYE4XBdso=","nodes":["vWUfSmjrHSlN5tSSO3/Qynzx+R/UlwPV9u+lnodQ00c="]} -{"v":1,"id":"TqUyj5Q+9vZtqu10yw6Zw7HEX3Ywe0JQA9vHyzY47TU=","allow_entity_signed_nodes":true} +{"v":2,"id":"JTUtHd4XYQjh//e6eYU7Pa/XMFG88WE+jixvceIfWrk=","nodes":["LQu4ZtFg8OJ0MC4M4QMeUR7Is6Xt4A/CW+PK/7TPiH0="]} +{"v":2,"id":"+MJpnSTzc11dNI5emMa+asCJH5cxBiBCcpbYE4XBdso=","nodes":["vWUfSmjrHSlN5tSSO3/Qynzx+R/UlwPV9u+lnodQ00c="]} +{"v":2,"id":"TqUyj5Q+9vZtqu10yw6Zw7HEX3Ywe0JQA9vHyzY47TU=","allow_entity_signed_nodes":true} ``` From 5b8ad8d30549c0470f0426bdc699d8cbd238b6ba Mon Sep 17 00:00:00 2001 From: Xi Zhang Date: Mon, 29 Aug 2022 15:44:09 -0500 Subject: [PATCH 2/2] Add changelog --- .changelog/4914.doc.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .changelog/4914.doc.md diff --git a/.changelog/4914.doc.md b/.changelog/4914.doc.md new file mode 100644 index 00000000000..6105f41f412 --- /dev/null +++ b/.changelog/4914.doc.md @@ -0,0 +1 @@ +doc: Update version in runtime deployment