Skip to content

Commit

Permalink
feat: migrate to ceramic mainnet (#409)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: martines3000 <[email protected]>
  • Loading branch information
andyv09 and martines3000 authored Aug 13, 2023
1 parent f8e82cb commit 8ba3e07
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/yellow-games-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blockchain-lab-um/masca': patch
---

Migrate to Ceramic mainnet
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"registry": "https://registry.npmjs.org"
}
},
"shasum": "XFj8sqHkFJ0Ve+0aymgag1qsDRqjHEHiSQyLHPj5lt4="
"shasum": "LcDZq9qViJxNMiktRqcdpJ4r2C6m9qlGB3UmDheYuv8="
},
"initialPermissions": {
"endowment:ethereum-provider": {},
Expand Down
6 changes: 3 additions & 3 deletions packages/snap/src/utils/ceramicUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { DIDSession } from 'did-session';
export const aliases = {
definitions: {
StoredCredentials:
'kjzl6cwe1jw14a05nhefxjqb74krvxgyzdaje4jnrcaie48vw31pwxxoa7qw5z9',
'kjzl6cwe1jw147v1tf19hxyi1q5ix5s948cfm35xp55a2cngoux776kg3ypzj3p',
},
schemas: {
StoredCredentials:
'ceramic://k3y52l7qbv1frxl7mazhftozd9tpwugrwafoqiyuuludx7s42u7crnzc4jh9ddrls',
'ceramic://k3y52l7qbv1fryl3piyoqwt5lplg02kvza59o347nfmm1ubpuywghfhg3odiqbwu8',
},
tiles: {},
};
Expand Down Expand Up @@ -64,7 +64,7 @@ async function authenticateWithSessionKey(state: MascaState) {
* @returns CeramicClient - Ceramic client
*/
export async function getCeramic(state: MascaState): Promise<CeramicClient> {
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);
Expand Down

0 comments on commit 8ba3e07

Please sign in to comment.