This PR adds linting to the playground to warn about currency symbols and token names that are the wrong length. Token names (and thus role names) must be under 32 bytes, and currency symbol base64 representation must have exactly 56 hexadecimal characters (except for Ada which is an empty string).
To achieve that, this PR:
Implements role name length checking
Implements currency symbol and token name checking
Updates swap example
Adds acceptance tests
Pre-submit checklist:
Branch
[x] Tests are provided (if possible)
[x] Commit sequence broadly makes sense
[x] Key commits have useful messages
[x] Relevant tickets are mentioned in commit messages
[x] Formatting, materialized Nix files, PNG optimization, etc. are updated
This PR adds linting to the playground to warn about currency symbols and token names that are the wrong length. Token names (and thus role names) must be under 32 bytes, and currency symbol base64 representation must have exactly 56 hexadecimal characters (except for Ada which is an empty string).
To achieve that, this PR:
Pre-submit checklist: