Testing CIP-56 on LocalNet
Hi folks,
What is the recommended way to test CIP-0056 tokens on a LocalNet?
Could you clarify by what you mean by testing? You can use the token-standard CLI that’s bundled in the splice repo to simulate transfers of your CIP-0056 token.
github.comsplice/token-standard/cli at main · canton-network/splice
Splice repository. Contribute to canton-network/splice development by creating an account on GitHub.
Thanks for the suggestions! By testing, I meant an integration test covering CIP-0056 token transfers with and without pre-approval via the DA registry. Amulet doesn’t use the DA registry though.
The common expectation is that testing the interaction with apps operated by other app providers happens on DevNet and TestNet. This matches the situation with internet services like Stripe or Github: you don’t run a local instance of them to test interactions with their APIs. You test against their real APIs using their testing support. For example, Stripe offers special test credit card numbers.
So for your case, consider usingAmulet as a mock for your token standard workflows in your CI running against LocalNet. This greatly reduces chance that your transfer workflows won’t work when then afterwards being tested on DevNet or TestNet against the DA registry.