Migrating from version 2x to 3x
Migrating your current installation to version 3x
These are a list of changes that must be applied to migrate from a version 2x of Token Negotiator to version 3x.
'tokens' passive mode hook has been deprecated
For Passive mode installations. The event hook 'tokens' has been changed to 'tokens-selected' to align with active mode.
migration steps:
Update use of 'tokens' hook to 'selected-tokens'.
Align your changes with this data structure
Example usage
Off-Chain Token / Attestation storage Migration (for off-chain token issuers only)
The outlet (constructor) has been updated to support multiple issuers within the new interface below. Please update your configuration to use the following input data structure.
example usage:
The attestation management has also been optimised to use a new format when storing data. Please utilise the method below to migrate active users attestations to the new format.
example usage:
For support and any questions please reach out to us on discord or via sayhi@smarttokenlabs.com
Last updated