-
Notifications
You must be signed in to change notification settings - Fork 37
ICRC-106: standard for discovering the location of the index canister from the ledger canister #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| A ledger implementing ICRC-106 MUST include the following entry in the output of the `icrc1_supported_standards` method: | ||
|
|
||
| ```candid | ||
| record { name = "ICRC-106"; url = "https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-106" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the link https://github.com/dfinity/ICRC/blob/main/ICRCs/ICRC-106 doesn't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the location of where the standard once the PR is merged. In the meantime there was some reorganisation of the working gorups (and of repositories) so there will be a new location. I'll leave this open so that I remember to update the link accordingly.
|
|
||
| type Transaction = record { | ||
| burn : opt Burn; | ||
| kind : text; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the textual represenation of the variant (option) included? If so, a variant type would be more consistent.
|
|
||
|
|
||
|
|
||
| # Methods Provided by the Index Canister |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this section be placed before the candid interface? (So that the description comes first and the reader is not confused by hitting an undocumented candid declarations first.)
| - **Typical Use Case**: Used for monitoring the health and synchronization status of the index, this method is helpful for determining whether the index has fully caught up with the ledger and is operational. | ||
|
|
||
|
|
||
| ## Optional Methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How useful is this section given that it doesn't really provide much details on the method listed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the point of view of documenting the existing index it says that "there's these other bunch of methods implemented by the index"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, but if the input/output types and their description is omitted, then how is a reader suppose to use this information?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They could look the at the .did file of the index canister. But I think this discussion points out to simply omitting this part and not even popularising those methods anyway
Co-authored-by: mraszyk <[email protected]>
|
@bogwar how ICRC-106 can enrich data for existed index canister |
) Implement [ICRC-106](dfinity/ICRC-1#196) (relocated from [here](dfinity/ICRC#106)) in the ICRC ledger.
A standard to allow for the discovery of the index canister from the corresponding ledger.
A secondary goal for the standard is to document the interface of the current index canister.
This standard will exist in draft form only since we will work on a proper ICRC standard for index canisters (which will include discoverability).