Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new config input to the decoding lib. It's an object made of chains and slip44.
This object will be the list of supported chains by the decoding lib. If a chain is not in this list, no native transfers will be able to be performed on this chain.
The secondary idea is to make the decoding lib defaulting to usage of data signed by the user in its entities. Meaning JSON inputs that are then used to build different registries.
For the Chain entities: It's a JSON object where keys are chainIds and value, for the moment, is an object:
{
nativeSlip44: number
}
e.g:
This object can be extensed later with other metadata we need.
Another part of this PR is a script that builds the default JSON input of supported chains.
It is made from
viem
supported chains andslip44
values.