From 1bd2ae06dea15b8c6b0bce0ecd3cf9f916b2b697 Mon Sep 17 00:00:00 2001 From: Nick Taras Date: Mon, 14 Aug 2023 17:10:55 +1000 Subject: [PATCH] multi-outlet migration changes --- multiTokenConfig.json | 38 +++++++++++++++++++++++++++++++ token-outlet-website/src/index.ts | 4 +++- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/multiTokenConfig.json b/multiTokenConfig.json index a5f6445f5..e35bf0f78 100644 --- a/multiTokenConfig.json +++ b/multiTokenConfig.json @@ -1,4 +1,42 @@ [ + { + "hideToggle": true, + "noTokenMsg": "

If you hold a Devcon ticket, please visit your magicLink email again and open the link in this browser.

You may reload this page after and try again.

", + "onChain": false, + "tokenName": "devcon6", + "collectionID": "devcon6", + "title": "Devcon VI Ticket Attestation", + "image" : "https://devcon-vi.attest.tickets/img/nft_bg.png", + "tokenOrigin": "https://devcon-vi.attest.tickets/outlet.html", + "attestationOrigin": "https://test.attestation.id/", + "tokenUrlName": "ticket", + "cryptoVerify": "https://form.smarttokenlabs.com", + "tokenSecretName": "secret", + "tokenIdName": "mail", + "unsignedTokenDataName": "ticket", + "signedTokenWhitelist": [ + "https://devcon-vi.attest.tickets/", + "https://dev.loc", + "https://devconnect.loc/", + "https://devconnect.antopolbus.rv.ua/", + "https://perks.antopolbus.rv.ua/", + "https://stage-perks.smarttokenlabs.com/", + "http://localhost:5000/", + + "https://hashkey.smarttokenlabs.com/", + "https://fayre-devcon.webflow.io/", + "https://fenbushi-devcon.webflow.io/", + "https://metasearch-devcon.webflow.io/", + "https://conspicuis-devcon.webflow.io/", + "https://devcon-vi.brandextender.io/", + "https://www.edcon.io/" + ], + "itemStorageKey": "devconnectTokens", + "base64senderPublicKeys": { + "4": "MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEAGJAHCiHbrCNAY9fAMdom4dGD6v/KkTIgRCkwLCjXFTkXWGrCEXHaZ8kWwdqlu0oYCrNQ2vdlqOl0s26/LzO8A==|MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAE-N-jGYo1OuO77XItd3zT-oIhZEVC44uqOhtJkmBsBNDTp3Seu_vmuLB-b4whNeFNBuJTsT7AHUiUe3JOwCcegA==" + }, + "base64attestorPubKey": "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABL+y43T1OJFScEep69/yTqpqnV/jzONz9Sp4TEHyAJ7IPN9+GHweCX1hT4OFxt152sBN3jJc1s0Ymzd8pNGZNoQ=" +}, { "collectionID": "devcon", "onChain": false, diff --git a/token-outlet-website/src/index.ts b/token-outlet-website/src/index.ts index db8370099..8d383f770 100644 --- a/token-outlet-website/src/index.ts +++ b/token-outlet-website/src/index.ts @@ -52,7 +52,9 @@ const outletConfig: OutletInterface = { } }; -new Outlet(outletConfig); +window.tnOutlet = new Outlet(outletConfig); + +tnOutlet.ticketStorage.migrateLegacyTokenStorage("devconnectTokens"); // This is here for authentication purposes only let client = new Client({