diff --git a/index.html b/index.html index 49f5d40d..a4e3760a 100644 --- a/index.html +++ b/index.html @@ -22,24 +22,24 @@ window.negotiator = new negotiator.Client({ type: "active", issuers: [ - { - collectionID: "devcon", - onChain: false, - title: "Devcon", - tokenIdName: "id", - image: - "https://raw.githubusercontent.com/TokenScript/token-negotiator/main/mock-images/devcon.svg", - tokenOrigin: "http://localhost:3002/", - attestationOrigin: "https://test.attestation.id/", - base64senderPublicKeys: { - 6: "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABGMxHraqggr2keTXszIcchTjYjH5WXpDaBOYgXva82mKcGnKgGRORXSmcjWN2suUCMkLQj3UNlZCFWF10wIrrlw=", - 55: "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABGMxHraqggr2keTXszIcchTjYjH5WXpDaBOYgXva82mKcGnKgGRORXSmcjWN2suUCMkLQj3UNlZCFWF10wIrrlw=", - }, - base64attestorPubKey: - "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABL+y43T1OJFScEep69/yTqpqnV/jzONz9Sp4TEHyAJ7IPN9+GHweCX1hT4OFxt152sBN3jJc1s0Ymzd8pNGZNoQ=", - ticketIssuersUrlWebsitePrivateKey: - "MIICSwIBADCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBBIIBVTCCAVECAQEEIM/T+SzcXcdtcNIqo6ck0nJTYzKL5ywYBFNSpI7R8AuBoIHjMIHgAgEBMCwGByqGSM49AQECIQD////////////////////////////////////+///8LzBEBCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcEQQR5vmZ++dy7rFWgYpXOhwsHApv82y3OKNlZ8oFbFvgXmEg62ncmo8RlXaT7/A4RCKj9F7RIpoVUGZxH0I/7ENS4AiEA/////////////////////rqu3OavSKA7v9JejNA2QUECAQGhRANCAARjMR62qoIK9pHk17MyHHIU42Ix+Vl6Q2gTmIF72vNpinBpyoBkTkV0pnI1jdrLlAjJC0I91DZWQhVhddMCK65c", - }, + // { + // collectionID: "devcon", + // onChain: false, + // title: "Devcon", + // tokenIdName: "id", + // image: + // "https://raw.githubusercontent.com/TokenScript/token-negotiator/main/mock-images/devcon.svg", + // tokenOrigin: "http://localhost:3002/", + // attestationOrigin: "https://test.attestation.id/", + // base64senderPublicKeys: { + // 6: "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABGMxHraqggr2keTXszIcchTjYjH5WXpDaBOYgXva82mKcGnKgGRORXSmcjWN2suUCMkLQj3UNlZCFWF10wIrrlw=", + // 55: "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABGMxHraqggr2keTXszIcchTjYjH5WXpDaBOYgXva82mKcGnKgGRORXSmcjWN2suUCMkLQj3UNlZCFWF10wIrrlw=", + // }, + // base64attestorPubKey: + // "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABL+y43T1OJFScEep69/yTqpqnV/jzONz9Sp4TEHyAJ7IPN9+GHweCX1hT4OFxt152sBN3jJc1s0Ymzd8pNGZNoQ=", + // ticketIssuersUrlWebsitePrivateKey: + // "MIICSwIBADCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBBIIBVTCCAVECAQEEIM/T+SzcXcdtcNIqo6ck0nJTYzKL5ywYBFNSpI7R8AuBoIHjMIHgAgEBMCwGByqGSM49AQECIQD////////////////////////////////////+///8LzBEBCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcEQQR5vmZ++dy7rFWgYpXOhwsHApv82y3OKNlZ8oFbFvgXmEg62ncmo8RlXaT7/A4RCKj9F7RIpoVUGZxH0I/7ENS4AiEA/////////////////////rqu3OavSKA7v9JejNA2QUECAQGhRANCAARjMR62qoIK9pHk17MyHHIU42Ix+Vl6Q2gTmIF72vNpinBpyoBkTkV0pnI1jdrLlAjJC0I91DZWQhVhddMCK65c", + // }, // { // collectionID: "devcon", // onChain: false, @@ -137,22 +137,23 @@ chain: "eth", blockchain: "evm", }, - // { - // onChain: true, - // collectionID: "fantom-collection-test", - // contract: '0x94e22c14118353651636f9af43cd0a5a08b93da3', - // chain: 'fantom', - // blockchain: "evm", - // }, - // { - // hideToggle : true, - // noTokenMsg: "

If you have a token please:

1. Open your magic link inside this browser.
2. Refresh this page.

", - // onChain: true, - // collectionID: "bsc-collection-test", - // contract: '0xF5db804101d8600c26598A1Ba465166c33CdAA4b', - // chain: 'bsc', - // blockchain: "evm", - // }, + { + onChain: true, + collectionID: "fantom-collection-test", + contract: "0x94e22c14118353651636f9af43cd0a5a08b93da3", + chain: "fantom", + blockchain: "evm", + }, + { + hideToggle: true, + noTokenMsg: + "

If you have a token please:

1. Open your magic link inside this browser.
2. Refresh this page.

", + onChain: true, + collectionID: "bsc-collection-test", + contract: "0xF5db804101d8600c26598A1Ba465166c33CdAA4b", + chain: "bsc", + blockchain: "evm", + }, // { // onChain: true, // collectionID: "tt", diff --git a/package.json b/package.json index 4589ab70..7733566e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tokenscript/token-negotiator", - "version": "2.8.0-nick-test", + "version": "3.0.0", "description": "Token-negotiator a token attestation bridge between web 2.0 and 3.0.", "module": "dist/index.js", "types": "dist/index.d.ts", diff --git a/sonar-project.properties b/sonar-project.properties index a51c8095..00bec3d6 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -12,5 +12,5 @@ sonar.javascript.lcov.reportPaths=./reports/coverage/lcov.info # Encoding of the source code. Default is default system encoding # sonar.sourceEncoding=UTF-8 -sonar.exclusions=**/*.js, **/*.jsx, **/*.ts, **/*.tsx, ^.*\/__tests__\/.*$ +sonar.exclusions=**/*.js, index.html, **/*.jsx, **/*.ts, **/*.tsx, ^.*\/__tests__\/.*$ # sonar.exclusions=**/*.txt,**/*.md \ No newline at end of file diff --git a/src/client/index.ts b/src/client/index.ts index c70dff80..564b4d90 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -647,7 +647,7 @@ export class Client { tokens[issuer] = { tokens: tokens[issuer] } } - this.eventSender('tokens', tokens) + this.eventSender('tokens-selected', tokens) this.eventSender('tokens-loaded', { loadedCollections: Object.keys(tokens).length }) // Feature not supported when an end users third party cookies are disabled @@ -1071,7 +1071,6 @@ export class Client { this.eventSender('tokens-selected', { selectedTokens: this.tokenStore.getSelectedTokens(), }) - this.eventSender('tokens', this.tokenStore.getSelectedTokens()) return res.data.tokens } } catch (e) { diff --git a/src/version.ts b/src/version.ts index 525532b9..01326106 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ // modified by build process. -export const VERSION = '2.8.0-nick-test' +export const VERSION = '3.0.0'