mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-20 22:00:43 +08:00
Remove IDX route and unnecessary dependencies
Since we start using https://self.id for managing and linking DIDs with ETH addresses we no longer need this route and the required packages Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
committed by
Alexis Sellier
parent
4b92022849
commit
3b7bdd7978
Generated
+10
-65
@@ -7,11 +7,8 @@
|
||||
"": {
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@ceramicnetwork/blockchain-utils-linking": "^1.0.2",
|
||||
"@ceramicnetwork/http-client": "^1.0.6",
|
||||
"@ceramicnetwork/stream-caip10-link": "^1.0.6",
|
||||
"@ceramicstudio/idx": "^0.12.1",
|
||||
"@ceramicstudio/idx-constants": "^1.0.0",
|
||||
"@ethersproject/abstract-provider": "^5.4.0",
|
||||
"@gnosis.pm/safe-core-sdk": "^0.2.0",
|
||||
"@gnosis.pm/safe-core-sdk-types": "^0.1.1",
|
||||
@@ -152,16 +149,6 @@
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/@ceramicnetwork/blockchain-utils-linking": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@ceramicnetwork/blockchain-utils-linking/-/blockchain-utils-linking-1.0.2.tgz",
|
||||
"integrity": "sha512-+TPYJ8BvHWhJ/Nla0CD+Gsln/+ofXYozVzJZLa+0TXU24viqRNtoQlI1rk7ta4OmgR/mvWbRtUC4kuiMOrnPlQ==",
|
||||
"dependencies": {
|
||||
"@stablelib/sha256": "^1.0.0",
|
||||
"caip": "~0.9.2",
|
||||
"uint8arrays": "^2.0.5"
|
||||
}
|
||||
},
|
||||
"node_modules/@ceramicnetwork/common": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@ceramicnetwork/common/-/common-1.0.6.tgz",
|
||||
@@ -1251,11 +1238,6 @@
|
||||
"ws": "^7.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@json-rpc-tools/provider/node_modules/safe-json-utils": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-json-utils/-/safe-json-utils-1.1.1.tgz",
|
||||
"integrity": "sha512-SAJWGKDs50tAbiDXLf89PDwt9XYkWyANFWVzn4dTXl5QyI8t2o/bW5/OJl3lvc2WVU4MEpTo9Yz5NVFNsp+OJQ=="
|
||||
},
|
||||
"node_modules/@json-rpc-tools/types": {
|
||||
"version": "1.7.6",
|
||||
"resolved": "https://registry.npmjs.org/@json-rpc-tools/types/-/types-1.7.6.tgz",
|
||||
@@ -1358,11 +1340,6 @@
|
||||
"@stablelib/int": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@stablelib/hash": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.1.tgz",
|
||||
"integrity": "sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg=="
|
||||
},
|
||||
"node_modules/@stablelib/int": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz",
|
||||
@@ -1377,16 +1354,6 @@
|
||||
"@stablelib/wipe": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@stablelib/sha256": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@stablelib/sha256/-/sha256-1.0.1.tgz",
|
||||
"integrity": "sha512-GIIH3e6KH+91FqGV42Kcj71Uefd/QEe7Dy42sBTeqppXV95ggCcxLTk39bEr+lZfJmp+ghsR07J++ORkRELsBQ==",
|
||||
"dependencies": {
|
||||
"@stablelib/binary": "^1.0.1",
|
||||
"@stablelib/hash": "^1.0.1",
|
||||
"@stablelib/wipe": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@stablelib/wipe": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz",
|
||||
@@ -4198,6 +4165,11 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"node_modules/safe-json-utils": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-json-utils/-/safe-json-utils-1.1.1.tgz",
|
||||
"integrity": "sha512-SAJWGKDs50tAbiDXLf89PDwt9XYkWyANFWVzn4dTXl5QyI8t2o/bW5/OJl3lvc2WVU4MEpTo9Yz5NVFNsp+OJQ=="
|
||||
},
|
||||
"node_modules/scrypt-js": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz",
|
||||
@@ -5055,16 +5027,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"@ceramicnetwork/blockchain-utils-linking": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/@ceramicnetwork/blockchain-utils-linking/-/blockchain-utils-linking-1.0.2.tgz",
|
||||
"integrity": "sha512-+TPYJ8BvHWhJ/Nla0CD+Gsln/+ofXYozVzJZLa+0TXU24viqRNtoQlI1rk7ta4OmgR/mvWbRtUC4kuiMOrnPlQ==",
|
||||
"requires": {
|
||||
"@stablelib/sha256": "^1.0.0",
|
||||
"caip": "~0.9.2",
|
||||
"uint8arrays": "^2.0.5"
|
||||
}
|
||||
},
|
||||
"@ceramicnetwork/common": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://registry.npmjs.org/@ceramicnetwork/common/-/common-1.0.6.tgz",
|
||||
@@ -5707,13 +5669,6 @@
|
||||
"axios": "^0.21.0",
|
||||
"safe-json-utils": "^1.1.1",
|
||||
"ws": "^7.4.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"safe-json-utils": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-json-utils/-/safe-json-utils-1.1.1.tgz",
|
||||
"integrity": "sha512-SAJWGKDs50tAbiDXLf89PDwt9XYkWyANFWVzn4dTXl5QyI8t2o/bW5/OJl3lvc2WVU4MEpTo9Yz5NVFNsp+OJQ=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"@json-rpc-tools/types": {
|
||||
@@ -5804,11 +5759,6 @@
|
||||
"@stablelib/int": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"@stablelib/hash": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@stablelib/hash/-/hash-1.0.1.tgz",
|
||||
"integrity": "sha512-eTPJc/stDkdtOcrNMZ6mcMK1e6yBbqRBaNW55XA1jU8w/7QdnCF0CmMmOD1m7VSkBR44PWrMHU2l6r8YEQHMgg=="
|
||||
},
|
||||
"@stablelib/int": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz",
|
||||
@@ -5823,16 +5773,6 @@
|
||||
"@stablelib/wipe": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"@stablelib/sha256": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@stablelib/sha256/-/sha256-1.0.1.tgz",
|
||||
"integrity": "sha512-GIIH3e6KH+91FqGV42Kcj71Uefd/QEe7Dy42sBTeqppXV95ggCcxLTk39bEr+lZfJmp+ghsR07J++ORkRELsBQ==",
|
||||
"requires": {
|
||||
"@stablelib/binary": "^1.0.1",
|
||||
"@stablelib/hash": "^1.0.1",
|
||||
"@stablelib/wipe": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"@stablelib/wipe": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz",
|
||||
@@ -7967,6 +7907,11 @@
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="
|
||||
},
|
||||
"safe-json-utils": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-json-utils/-/safe-json-utils-1.1.1.tgz",
|
||||
"integrity": "sha512-SAJWGKDs50tAbiDXLf89PDwt9XYkWyANFWVzn4dTXl5QyI8t2o/bW5/OJl3lvc2WVU4MEpTo9Yz5NVFNsp+OJQ=="
|
||||
},
|
||||
"scrypt-js": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz",
|
||||
|
||||
@@ -22,9 +22,7 @@
|
||||
"vite-plugin-rewrite-all": "^0.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ceramicnetwork/blockchain-utils-linking": "^1.0.2",
|
||||
"@ceramicnetwork/http-client": "^1.0.6",
|
||||
"@ceramicnetwork/stream-caip10-link": "^1.0.6",
|
||||
"@ceramicstudio/idx": "^0.12.1",
|
||||
"@ceramicstudio/idx-constants": "^1.0.0",
|
||||
"@gnosis.pm/safe-core-sdk": "^0.2.0",
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
import Registrations from '@app/base/registrations/Routes.svelte';
|
||||
import Orgs from '@app/base/orgs/Routes.svelte';
|
||||
import Users from '@app/base/users/Routes.svelte';
|
||||
import IDX from "@app/base/idx/Routes.svelte";
|
||||
import Projects from '@app/base/projects/Routes.svelte';
|
||||
import Resolver from '@app/base/resolver/Routes.svelte';
|
||||
import Header from '@app/Header.svelte';
|
||||
@@ -74,7 +73,6 @@
|
||||
<Registrations {config} session={$session} />
|
||||
<Orgs {config} />
|
||||
<Users {config} />
|
||||
<IDX {config} />
|
||||
<Projects {config} />
|
||||
<Resolver {config} />
|
||||
</Router>
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import type { Config } from '@app/config';
|
||||
import { Caip10Link } from '@ceramicnetwork/stream-caip10-link';
|
||||
import { EthereumAuthProvider } from '@ceramicnetwork/blockchain-utils-linking';
|
||||
|
||||
export let did: string;
|
||||
export let caip10: string;
|
||||
export let config: Config;
|
||||
|
||||
onMount(async () => {
|
||||
if (config.signer) {
|
||||
const address = await config.signer.getAddress();
|
||||
const ethAuthProvider = new EthereumAuthProvider(
|
||||
// TODO: Using the window.ethereum provider here since the config provider is throwing error.
|
||||
window.ethereum, address
|
||||
);
|
||||
|
||||
const accountLink = await Caip10Link.fromAccount(config.ceramic.client, caip10.toLowerCase());
|
||||
await accountLink.setDid(
|
||||
did,
|
||||
ethAuthProvider
|
||||
);
|
||||
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -1,11 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { Route } from "svelte-routing";
|
||||
import Link from '@app/base/idx/Link.svelte';
|
||||
import type { Config } from '@app/config';
|
||||
|
||||
export let config: Config;
|
||||
</script>
|
||||
|
||||
<Route path="/idx/:did/link/:caip10" let:params>
|
||||
<Link {config} did={params.did} caip10={params.caip10} />
|
||||
</Route>
|
||||
Reference in New Issue
Block a user