Conversation
8c2d6e1 to
89bcee8
Compare
|
|
||
| ## Rationale | ||
|
|
||
| In CAIP-2 a general blockchain identification scheme is defined. This is the |
There was a problem hiding this comment.
| In CAIP-2 a general blockchain identification scheme is defined. This is the | |
| In [CAIP-2] a general blockchain identification scheme is defined. This is the |
| In CAIP-2 a general blockchain identification scheme is defined. This is the | ||
| implementation of CAIP-2 for Aptos. Blockchains in the "aptos" namespace are | ||
| identified by their numeric `chain_id`, assigned at genesis. Each network is | ||
| maintained by a set of validators with its own REST API endpoints. These chain |
There was a problem hiding this comment.
are the endpoints heterogeneous or do they all have (only) a shared set of endpoints and semantics? do they change over time? where do you find them? these are useful things to add if there are long-lived URLs explaining them.
|
|
||
| ## Syntax | ||
|
|
||
| The namespace "aptos" refers to the Aptos open-source blockchain platform. |
There was a problem hiding this comment.
Is there a maximum length (in digits or in bytes), or a maximum integer value? is 0 a valid chainId? are negative chainid's allowed?
| ### Reference Definition | ||
|
|
||
| The definition for this namespace will use the `chain_id` as an identifier | ||
| for different Aptos chains. The chain ID is a positive integer assigned at |
There was a problem hiding this comment.
assigned how and by whom? is there a conflict resolution mechanism?
bumblefudge
left a comment
There was a problem hiding this comment.
I think this could be merged as-is because it's a pretty straight-forward chainId system, but the clarifying questions I left would all be worth answering if they can be dispensed by adding a sentence and/or a link each! I recommend doing so because these profiles serve as a kind of onboarding resource for devs new the space, and avoid cross-chain footguns firing off because of faulty assumptions about the underlying semantics or mechanics of network identification/resolution systems.
obstropolos
left a comment
There was a problem hiding this comment.
Check out prior comments, but approving here
Add Aptos namespace
This PR introduces the Aptos namespace to the ChainAgnostic namespaces registry.
Added Files
aptos/README.md- Namespace profile for the Aptos ecosystemaptos/caip2.md- CAIP-2 chain identification specification for AptosSummary
Aptos is a Layer 1 blockchain built on Move, featuring parallel execution via Block-STM for high throughput. This PR establishes the
aptosnamespace for identifying Aptos-based chains.Chain Identification (CAIP-2)
Chains in the Aptos namespace are identified by their numeric
chain_id, which is assigned at genesis and requires no transformation to be used as a CAIP-2 reference.aptos:1aptos:2Resolution
Chain IDs can be resolved by querying the REST API of any Aptos fullnode:
curl https://fullnode.mainnet.aptoslabs.com/v1The
chain_idfield in the response provides the identifier.References