From 2e2a003bbc01236b198a62ab127ae87326903a3d Mon Sep 17 00:00:00 2001 From: 0xzoz Date: Wed, 7 Dec 2022 11:48:46 -0800 Subject: [PATCH 1/2] Add draft spec --- sui/README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sui/README.md diff --git a/sui/README.md b/sui/README.md new file mode 100644 index 00000000..1676f7e4 --- /dev/null +++ b/sui/README.md @@ -0,0 +1,29 @@ +--- +namespace-identifier: sui +title: Sui Network +author: zoz (@0xzoz) +discussions-to: +status: Draft +type: Informational +created: 2022-12-06 +updated: 2022-12-06 +--- + +# Namespace for Sui + +## Introduction + +This document describes the syntax and structure of the namespace for Sui.. + +## Syntax + +The namespace "sui" refers to the Sui Network. + +## References + +[Sui Framework](https://docs.sui.io/reference/framework) +[Sui RPC Reference](https://docs.sui.io/sui-jsonrpc): Important context on communicating with Sui nodes over RPC. + +## Copyright + +Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). \ No newline at end of file From e7e41b5d9bad6a8efa3fb207bccde3bed11bec56 Mon Sep 17 00:00:00 2001 From: 0xzoz Date: Wed, 7 Dec 2022 11:51:10 -0800 Subject: [PATCH 2/2] Add CAIP-2 --- sui/caip2.md | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 sui/caip2.md diff --git a/sui/caip2.md b/sui/caip2.md new file mode 100644 index 00000000..0554a76b --- /dev/null +++ b/sui/caip2.md @@ -0,0 +1,70 @@ +--- +caip: +title: Blockchain Reference for the Sui namespace +author: zoz (@0xzoz) +discussions-to: https://github.com/MystenLabs/sui/issues/6624 +status: Draft +type: Standard +created: 2022-12-06 +updated: 2021-12-06 +requires: 2 +--- + +## Simple Summary + +This document is about the details of the Sui namespace and reference for +CAIP-2. + +## Abstract + +In CAIP-2 a general blockchain identification scheme is defined. This is the +implementation of CAIP-2 for `sui` (sui network). + +## Motivation + +See CAIP-2. + +### Sui Namespace + +The namespace `sui` refers to the Sui network. + +#### Reference Definition + +The reference relies on Sui's current network topology addresses being a single production network (mainnet), two persistent testing networks (testnet and devnet) and one refers to local development work (local). +> Sui is in the stages of launching and this is to preempt mainnet when it lauches +Reference should only be populated with `mainnet`, `testnet`, `devnet` and `local` symbols. + +### Resolution Method + +TBD + +## Rationale + +TBD + +## Backwards Compatibility + +Not applicable + +## Test Cases + +This is a list of manually composed examples + +``` +# Sui mainnet +sui:mainnet +# Sui testnet +sui:testnet +# sui devnet +sui:devnet +``` + +## Links + +- [CAIP-2](./caip-2.md) Blockchain ID Specification +- [Sui Developer Documentation](https://docs.sui.io/) + +## Copyright + +Copyright and related rights waived +via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). \ No newline at end of file