From 8ba3e071b86fc8d516e759ea518bd612612dadd8 Mon Sep 17 00:00:00 2001 From: Andraz <69682837+andyv09@users.noreply.github.com> Date: Sun, 13 Aug 2023 20:06:21 +0200 Subject: [PATCH] feat: migrate to ceramic mainnet (#409) --------- Co-authored-by: martines3000 --- .changeset/yellow-games-attack.md | 5 +++++ packages/snap/snap.manifest.json | 2 +- packages/snap/src/utils/ceramicUtils.ts | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .changeset/yellow-games-attack.md diff --git a/.changeset/yellow-games-attack.md b/.changeset/yellow-games-attack.md new file mode 100644 index 000000000..f4751d5c7 --- /dev/null +++ b/.changeset/yellow-games-attack.md @@ -0,0 +1,5 @@ +--- +'@blockchain-lab-um/masca': patch +--- + +Migrate to Ceramic mainnet diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index 6cb654763..3d081996a 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -15,7 +15,7 @@ "registry": "https://registry.npmjs.org" } }, - "shasum": "XFj8sqHkFJ0Ve+0aymgag1qsDRqjHEHiSQyLHPj5lt4=" + "shasum": "LcDZq9qViJxNMiktRqcdpJ4r2C6m9qlGB3UmDheYuv8=" }, "initialPermissions": { "endowment:ethereum-provider": {}, diff --git a/packages/snap/src/utils/ceramicUtils.ts b/packages/snap/src/utils/ceramicUtils.ts index e4f4ca8ed..405e18bfb 100644 --- a/packages/snap/src/utils/ceramicUtils.ts +++ b/packages/snap/src/utils/ceramicUtils.ts @@ -8,11 +8,11 @@ import { DIDSession } from 'did-session'; export const aliases = { definitions: { StoredCredentials: - 'kjzl6cwe1jw14a05nhefxjqb74krvxgyzdaje4jnrcaie48vw31pwxxoa7qw5z9', + 'kjzl6cwe1jw147v1tf19hxyi1q5ix5s948cfm35xp55a2cngoux776kg3ypzj3p', }, schemas: { StoredCredentials: - 'ceramic://k3y52l7qbv1frxl7mazhftozd9tpwugrwafoqiyuuludx7s42u7crnzc4jh9ddrls', + 'ceramic://k3y52l7qbv1fryl3piyoqwt5lplg02kvza59o347nfmm1ubpuywghfhg3odiqbwu8', }, tiles: {}, }; @@ -64,7 +64,7 @@ async function authenticateWithSessionKey(state: MascaState) { * @returns CeramicClient - Ceramic client */ export async function getCeramic(state: MascaState): Promise { - const ceramic = new CeramicClient('https://ceramic-clay.3boxlabs.com'); + const ceramic = new CeramicClient('https://node2.orbis.club/'); const did = await authenticateWithSessionKey(state); await ceramic.setDID(did);