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

Feature/multi origin demo #268

Merged
merged 2 commits into from
Sep 21, 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
6 changes: 3 additions & 3 deletions multi-off-chain-issuer-poc/src/multi-event-configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const GitCoin = {
title: "Schelling Point .edu Singapore",
image: "http://d1w910csv8x9qg.cloudfront.net/gitcoin/wp-content/uploads/sites/6/2023/09/gitcoin_logo_square.png",
tokenOrigin: "https://schellingpointsingapore.openloyalty.com/outlet/",
attestationOrigin: "https://test.attestation.id/",
attestationOrigin: "https://attestation-foxgem.vercel.app/",
"whitelistDialogRenderer": (permissionContent, acceptBtn, denyBtn) => {
return `
<style>
Expand Down Expand Up @@ -190,7 +190,7 @@ export const SmartLayer = {
tokenOrigin: window.location.origin + "/pass/",
// this was 'mail' before, which lead to the id field in localStore empty
tokenIdName: "id", // the key of email field in the magic link
attestationOrigin: "https://attestation.id/",
attestationOrigin: "https://attestation-foxgem.vercel.app/",
unEndPoint: "https://crypto-verify.herokuapp.com/use-devcon-ticket",
base64senderPublicKeys: {
"": "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABLmPYBigfL0UZ2C2gMvVMQR8XYEq0sV3G77IUctcsAFvOI74QDf86423uXrdvrh7vkndR37D9F/TorsyZBET+OQ="
Expand Down Expand Up @@ -256,7 +256,7 @@ export const SmartLayerPass = {
image:
"https://pbs.twimg.com/profile_images/1653427962350370816/GiJ0Wh-h_400x400.jpg",
tokenOrigin: "https://www.smartlayer.network/pass/",
attestationOrigin: "https://test.attestation.id",
attestationOrigin: "https://attestation-foxgem.vercel.app/",
eas: {
// schemaUid is the same on both testing and production env
schemaUid:
Expand Down
10 changes: 5 additions & 5 deletions multiTokenConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"title": "Devcon",
"image": "https://raw.githubusercontent.com/TokenScript/token-negotiator/main/mock-images/devcon.svg",
"tokenOrigin": "http://localhost:3002/",
"attestationOrigin": "https://test.attestation.id/",
"attestationOrigin": "https://attestation-foxgem.vercel.app/",
"base64senderPublicKeys": {
"6": "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABGMxHraqggr2keTXszIcchTjYjH5WXpDaBOYgXva82mKcGnKgGRORXSmcjWN2suUCMkLQj3UNlZCFWF10wIrrlw="
},
Expand All @@ -21,7 +21,7 @@
"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/",
"attestationOrigin": "https://attestation-foxgem.vercel.app/",
"tokenUrlName": "ticket",
"cryptoVerify": "https://form.smarttokenlabs.com",
"tokenSecretName": "secret",
Expand Down Expand Up @@ -55,7 +55,7 @@
"title": "Edcon",
"image": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRMSMZD26jgBM_da7b_0NfT7JZgyDk7rdk6o4iAVh4E12dV9LK-h0thJ_SdRWWptz1EYlk&usqp=CAU",
"tokenOrigin": "http://localhost:3002/",
"attestationOrigin": "https://test.attestation.id/",
"attestationOrigin": "https://attestation-foxgem.vercel.app/",
"base64senderPublicKeys": {
"6": "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABAjUvEi8UYyC+0rSFu+IwRBos/DEC6YMJV+eCnoYOC4nZU7uayKDJmBxVnmTOSwaM4+gufLbeqqxuovyF5gI3TQ="
},
Expand All @@ -67,7 +67,7 @@
"title": "Devconnect",
"image": "https://pbs.twimg.com/profile_images/1653427962350370816/GiJ0Wh-h_400x400.jpg",
"tokenOrigin": "http://localhost:3002/",
"attestationOrigin": "https://test.attestation.id/",
"attestationOrigin": "https://attestation-foxgem.vercel.app/",
"base64senderPublicKeys": {
"7": "MIIBMzCB7AYHKoZIzj0CATCB4AIBATAsBgcqhkjOPQEBAiEA/////////////////////////////////////v///C8wRAQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBEEEeb5mfvncu6xVoGKVzocLBwKb/NstzijZWfKBWxb4F5hIOtp3JqPEZV2k+/wOEQio/Re0SKaFVBmcR9CP+xDUuAIhAP////////////////////66rtzmr0igO7/SXozQNkFBAgEBA0IABAjUvEi8UYyC+0rSFu+IwRBos/DEC6YMJV+eCnoYOC4nZU7uayKDJmBxVnmTOSwaM4+gufLbeqqxuovyF5gI3TQ="
},
Expand All @@ -79,7 +79,7 @@
"title": "Custom token",
"image": "https://pbs.twimg.com/profile_images/1653427962350370816/GiJ0Wh-h_400x400.jpg",
"tokenOrigin": "http://localhost:3002/",
"attestationOrigin": "https://test.attestation.id/",
"attestationOrigin": "https://attestation-foxgem.vercel.app/",
"eas": {
"schemaUid": "0x9dbdfc814762e2f356a87843ea3a0ef969c47bea0d70ee8c4a3a2f29c8c330dd",
"idFields": [
Expand Down
96 changes: 89 additions & 7 deletions token-outlet-website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 10 additions & 6 deletions vue-vite-boilerplate/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,16 @@ onMounted(() => {
}
],
uiOptions: {
openingHeading:
"Open a new world of perks, benefits and opportunities with your attestation, collectible or token.",
issuerHeading: "Get discount with Ticket",
repeatAction: "try again",
theme: "dark",
position: "top-right"
openingHeading: "Open a new world of perks, benefits and opportunities with your token.",
issuerHeading: "Get discount with token",
repeatAction: "Try Again",
dismissAction: "Dismiss",
loadAction: "Loading...",
balanceFoundEvent: "Balance found",
nftsFoundEvent: "NFTS found",
noTokensFoundEvent: "No tokens found",
theme: "light",
position: "bottom-right",
},
unSupportedUserAgent: {
authentication: {
Expand Down