Skip to content

Commit 74eb491

Browse files
authored
Merge pull request #1796 from oasisprotocol/csillag/clean-up-attribution
Clean up name attribution by Oasis/deltaDAO
2 parents 34aad7c + 1ccb7da commit 74eb491

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

.changelog/1796.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clean up name attribution by Oasis/deltaDAO

src/app/components/Account/AccountMetadataSourceIndicator.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,10 @@ export const AccountMetadataSourceIndicator: FC<AccountMetadataSourceIndicatorPr
6262
)
6363

6464
switch (source) {
65-
case 'Registry':
65+
case 'OasisRegistry':
6666
return renderWithOrWithoutLabel(t('account.namedByOasis'), !!withText, <OasisNameIndicator />)
67+
case 'DeltaDaoRegistry':
68+
return renderWithOrWithoutLabel(t('account.namedByDeltaDao'), !!withText, <OasisNameIndicator />)
6769
case 'SelfProfessed':
6870
return renderWithOrWithoutLabel(t('account.namedBySelf'), !!withText, <SelfAcclaimedNameIndicator />)
6971
default:

src/app/data/named-accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Network } from '../../types/network'
22
import { Account, Layer, Runtime, RuntimeAccount } from '../../oasis-nexus/api'
33

4-
export type AccountMetadataSource = 'Registry' | 'SelfProfessed'
4+
export type AccountMetadataSource = 'OasisRegistry' | 'DeltaDaoRegistry' | 'SelfProfessed'
55

66
export type AccountMetadata = {
77
address: string

src/app/data/oasis-account-names.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const getOasisAccountsMetadata = async (network: Network, layer: Layer): Promise
5757
const list: AccountMetadata[] = []
5858
Array.from(response.data).forEach((entry: any) => {
5959
const metadata: AccountMetadata = {
60-
source: 'Registry',
60+
source: 'OasisRegistry',
6161
address: entry.Address,
6262
name: entry.Name,
6363
description: entry.Description,

src/app/data/pontusx-account-names.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const getPontusXAccountsMetadata = async (): Promise<PontusXAccountsMetadata> =>
2727
const list: AccountMetadata[] = []
2828
Object.entries(response.data).forEach(([evmAddress, name]) => {
2929
const account: AccountMetadata = {
30-
source: 'Registry',
30+
source: 'DeltaDaoRegistry',
3131
address: getOasisAddress(evmAddress),
3232
name: name as string,
3333
}

src/locales/en/translation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"ERC721": "ERC-721",
1616
"listTitle": "Accounts",
1717
"namedByOasis": "Name appointed by Oasis",
18+
"namedByDeltaDao": "Identified by deltaDAO",
1819
"namedBySelf": "Name self-acclaimed",
1920
"noTokens": "This account holds no tokens",
2021
"noBalances": "This account currently has no balances.",

0 commit comments

Comments
 (0)