4 documents
Standard
La spécification normative, les références d'interfaces et de métadonnées générées, et les règles de gestion des versions. CC0.
Le standard est la partie d'A-REX que d'autres personnes implémentent. Il est petit à dessein : cinq interfaces, un schéma de métadonnées de lot et un document de spécification, le tout sous CC0. Rien dans cette section ne dépend de l'implémentation de référence.
Documents de cette section
| Document | Statut | À utiliser pour |
|---|---|---|
| Spécification A-REX Core | normatif | savoir exactement ce qu'un jeton conforme et un hook conforme DOIVENT, DEVRAIENT et PEUVENT faire |
| Référence des interfaces | générée à partir de contracts/standard/ | consulter n'importe quelle fonction, événement, erreur, champ de structure ou constante avec son NatSpec |
| Schéma de métadonnées de lot | généré à partir du JSON Schema | construire et valider le document off-chain sur lequel metadataHash s'engage |
| Interfaces et gestion des versions | normatif | trouver les identifiants d'interface, le modèle de couches, les règles de gestion des versions et la manière de proposer un changement |
La conformité en un coup d'œil
| Un jeton est conforme lorsqu'il | Identifiant d'interface |
|---|---|
| implémente ERC-1155 et ERC-165 | 0xd9b67a26 |
| implémente l'interface multi-jeton ERC-7943 | 0x41c4fbad |
implémente IARexBatch | 0xe22639e0 |
expose son pipeline via IARexHookManager.getHooks() | 0x964f4861 |
fournit IARexAttest lui-même ou via un compagnon (DEVRAIT) | 0xad603a6c |
Un hook est conforme lorsqu'il implémente IARexHook (0x332afcbb) et ERC-165. npm run interface-ids affiche chaque identifiant à partir du code compilé.
Documents
A-REX Core — Agricultural Batch Token Standard
A minimal extension of ERC-1155 and ERC-7943 for tokenized agricultural batches — batch identity, lineage, an ordered hook pipeline and open attestations.
Interface reference
Every function, event, error and type of the five normative interfaces, generated from contracts/standard/ and its NatSpec on each build. For the normative prose, read the specification.
Batch metadata schema
The off-chain document every batch commits to with metadataHash and points to with uri, generated from standard/schema/batch-metadata.schema.json on each build.
Interfaces et gestion des versions
Interface ids, the layer model, the versioning rules and how to propose a change to the standard.