diff --git a/.papi/descriptors/package.json b/.papi/descriptors/package.json index 2d6d33df..b81ea5f6 100644 --- a/.papi/descriptors/package.json +++ b/.papi/descriptors/package.json @@ -1,5 +1,5 @@ { - "version": "0.1.0-autogenerated.12090119445759399432", + "version": "0.1.0-autogenerated.12502056573861878413", "name": "@polkadot-api/descriptors", "files": [ "dist" diff --git a/.papi/metadata/people.scale b/.papi/metadata/people.scale new file mode 100644 index 00000000..7f58fb01 Binary files /dev/null and b/.papi/metadata/people.scale differ diff --git a/.papi/polkadot-api.json b/.papi/polkadot-api.json index c097060c..813e5e24 100644 --- a/.papi/polkadot-api.json +++ b/.papi/polkadot-api.json @@ -1,10 +1,14 @@ { - "version": 0, - "descriptorPath": ".papi/descriptors", - "entries": { - "dot": { - "chain": "polkadot", - "metadata": ".papi/metadata/dot.scale" - } - } -} + "version": 0, + "descriptorPath": ".papi/descriptors", + "entries": { + "dot": { + "chain": "polkadot", + "metadata": ".papi/metadata/dot.scale" + }, + "people": { + "chain": "polkadot_people", + "metadata": ".papi/metadata/people.scale" + } + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index d6a415b5..de0c6f9b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ }, ".papi/descriptors": { "name": "@polkadot-api/descriptors", - "version": "0.1.0-autogenerated.12090119445759399432", + "version": "0.1.0-autogenerated.12502056573861878413", "peerDependencies": { "polkadot-api": "*" } diff --git a/src/components/app-bar/AppBar.svelte b/src/components/app-bar/AppBar.svelte index 27c162b6..099103b4 100644 --- a/src/components/app-bar/AppBar.svelte +++ b/src/components/app-bar/AppBar.svelte @@ -6,6 +6,7 @@ import LogoBountyManagerHeader from './LogoBountyManagerHeader.svg'; import LoginDialog from './LoginDialog.svelte'; import { setActiveAccountBounties } from '../../utils/bounties'; + import { getPeopleChainName } from '../../utils/people'; import { getAccounts } from './getAccounts'; import { type AccountInfo } from '../../types/account'; import BurgerMenu from './BurgerMenu.svelte'; @@ -16,6 +17,8 @@ loginDialogOpen = true; } + let label: string | undefined; + onMount(async () => { // Connect wallet automatically on the same tab. const storedAccount = sessionStorage.getItem('account'); @@ -37,6 +40,8 @@ polkadotSigner.set(account.polkadotSigner); setActiveAccountBounties(); + + label = await getPeopleChainName(address); }); @@ -59,7 +64,7 @@