Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-outlet migration changes #240

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions multiTokenConfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,42 @@
[
{
"hideToggle": true,
"noTokenMsg": "<p>If you hold a Devcon ticket, please visit your magicLink email again and open the link in this browser.</p><p>You may reload this page after and try again.</p>",
"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,
Expand Down
4 changes: 3 additions & 1 deletion token-outlet-website/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down