@@ -4,89 +4,80 @@ title: <{namespace common name} [, aka ecosystem name] - {common name for type o
4
4
author :
<["FirstName1 LastName1 (@GitHubUsername1)", "AnonHandle2 <[email protected] >"]>
5
5
discussions-to : <URL of PR, mailing list, etc>
6
6
status : Draft
7
- type : <Standard | Meta | Informational>
7
+ type : Informational
8
8
created : <date created on, in ISO 8601 (yyyy-mm-dd) format>
9
9
requires (*optional) : <["CAIP-X", "CAIP-Y"]>
10
10
replaces (*optional) : <CAIP-Z>
11
11
---
12
12
13
- <!-- You can leave these HTML comments in your merged CAIP and delete the
14
- visible duplicate text guides, they will not appear and may be helpful to
15
- refer to if you edit it again. This is the suggested template for new CAIPs.
16
- Note that an CAIP number will be assigned by an editor. When opening a pull
17
- request to submit your EIP, please use an abbreviated title in the
18
- filename, `caipX.md`, all lowercase, no `-` between the CAIP and its
19
- number.-->
20
- This is the suggested template for new CAIPs.
13
+ ## Introduction
21
14
22
- # CAIP-X
15
+ <!-- "If you can't explain it simply, you don't understand it well enough."
16
+ Provide a simplified and layman-accessible explanation of how CAIP X applies
17
+ to the relevant scheme used in this namespace (see other templates for a model).
18
+ Caveats or mental model differences from equivalents in other namespaces
19
+ can be mentioned here upfront, but not implementation details like validation,
20
+ confirmation from a live connection.-->
23
21
24
- * For context, see the [ CAIP-X ] [ ] specification. *
22
+ ## Specification
25
23
26
- <!-- "If you can't explain it simply, you don't understand it well enough." Provide a simplified and layman-accessible explanation of the CAIP.-->
27
- As the old saying goes, "If you can't explain it simply, you don't understand it
28
- well enough." Here is where you can provide a simplified and layman-accessible
29
- explanation of what is particular to this namespace or how it differs from EVM
30
- chains, where the CAIPs are easiest to apply/understand, IN THE SPECIFIC CONTEXT
31
- OF THE CAIP YOU ARE APPLYING. Assume the reader has read the /README.md
32
- already.
24
+ ### Semantics
33
25
34
- Note the ` [CAIP-X][] ` link above; this should be defined below in the `##
35
- References` section with a definition of the type: ` [ CAIP-X] :
36
- https://github.com/ChainAgnostic/CAIPs/blob/master/CAIPs/caip-X.md`
26
+ <!-- Explain (and refer to/add links in the `## References` section) any inputs
27
+ or namespace-specific constructs needed to generate or interpret the valid
28
+ possible values of CAIP-X in this namespace. Assume your reader has already
29
+ read any other CAIP profiles listed above in the "Requires" frontmatter field. -->
37
30
38
- ## Rationale
39
- <!-- A short (~200 word) description of the technical issue being addressed.-->
40
- A short (~ 200 word) description of any technical issues being addressed by the
41
- application of this CAIP to this namespace. In particular, call out any
42
- relevant CAIP versioning such as not-yet-ratified changes to the applied CAIP
43
- that are required for what you are specifying here to conform, as the tooling
44
- relied upon by some interpreters may validate according to the CAIP as ratified,
45
- or an earlier CAIP replaced by it, etc.
46
-
47
- ## Semantics
48
-
49
- Explain (and refer to/add links in the ` ## References ` section) any inputs or
50
- namespace-specific constructs needed to generate or interpret this CAIP.
31
+ ### Syntax
51
32
52
- ## Syntax
53
-
54
- Explain the actual algorithm or transformation needed to transform inputs into a
55
- conformant and unique CAIP deterministically. Consider including a regular
33
+ <!-- Explain the actual algorithm or transformation needed to transform "inputs"
34
+ from the native development enviroment and context into a conformant and unique
35
+ CAIP-X token deterministically. Consider including (if applicable) a regular
56
36
expression for validation as well, as some consumers or toolmakers may want to
57
- support this CAIP without a deep understanding of any specifications, devdocs,
58
- or improvement proposals on which this specification depends.
37
+ support this CAIP-X scheme without a deep understanding of any specifications,
38
+ devdocs, or improvement proposals on which this specification depends. If there
39
+ are canonicalization guarantees, checksums, or other assumptions in the native
40
+ format or protocol, explain how they exist (or can be made to exist) in the
41
+ CAIP-X equivalent as well. -->
59
42
60
43
### Resolution Mechanics
61
44
62
- Many blockchain systems allow for transactions, asset-states, etc. to be
45
+ <!-- Many blockchain systems allow for transactions, asset-states, etc. to be
63
46
validated against the chain they are targeting or depending to to avoid replay
64
47
attacks or other unintended outcomes. This is often done by an API or RPC call
65
48
to a node to validate the targetted chain or network. Include a sample
66
49
request/response and add the relevant documentation to the `## References`
67
50
section below if possible, as well as an explanation of any steps needed to
68
- validate the results, calculate checksums, etc.
51
+ validate the results, calculate checksums, persist session metadata or nonces,
52
+ etc. -->
53
+
54
+ ## Rationale
55
+
56
+ <!-- Explain here how the mapping or translation between native identifiers or
57
+ messages and CAIP-X identifiers or messages was arrived at, history and
58
+ pre-history, etc.-->
69
59
70
60
### Backwards Compatibility
71
61
72
- If earlier CAIPs or earlier stages in the governance of the namespace created
73
- legacy addresses that break or extend the specification above, please add a
62
+ <!-- If earlier CAIPs or earlier stages in the governance of the namespace created
63
+ legacy identifiers that break or extend the specification above, please add a
74
64
section for "Legacy" compatibility and an explanation of what contexts and/or
75
- what time-frames would require catching those cases.
65
+ what time-frames would require catching those cases.-->
76
66
77
67
## Test Cases
78
68
79
- A list of manually-composed and validated examples is the most important
80
- section, and the most read!
69
+ <!-- A list of manually-composed and validated examples is the **most important**
70
+ section, and by far the most read! be sure to check often that this stays in sync
71
+ with any changes or additions in the preceding sections. -->
81
72
82
73
## Additional Considerations (* OPTIONAL)
83
74
84
- Future topics? Upcoming protocol upgrades that will require new specifications,
85
- in the namespace and/or in the CAIPs?
75
+ <!-- Future topics? Upcoming protocol upgrades that will require new specifications,
76
+ in the namespace and/or in the CAIPs? -->
86
77
87
78
## References
88
- <!-- Links to external resources that help understanding the CAIP better. This can e.g. be links to existing implementations. -->
89
- Links to external resources that help understanding the namespace or the
79
+
80
+ <!-- Links to external resources that help understanding the namespace or the
90
81
specification/applied-CAIP better in this context. This can also include links
91
82
to existing implementations.
92
83
@@ -96,7 +87,12 @@ followed by ` - ` and a summary or explanation of the content. In a separate
96
87
section below, add the name-referent pairs in the `[Name]: https://{referent} `
97
88
format-- this will be invisible in any Github-flavored Markdown rendering
98
89
(including jekyll/github pages, aka github.io, but also docusaurus and many
99
- dev-docs rendering engines).
90
+ dev-docs rendering engines). -->
91
+
92
+ [ CAIP-2 Profile ] : ./caip2.md
93
+ [ CAIP-2 ] : https://chainagnostic.org/CAIPs/caip-2
94
+ [ CAIP-10 ] : https://chainagnostic.org/CAIPs/caip-10
100
95
101
96
## Copyright
97
+
102
98
Copyright and related rights waived via [ CC0] ( https://creativecommons.org/publicdomain/zero/1.0/ ) .
0 commit comments