* Add Acala and Bifrost to Subsquare supported chains * Solve the erroneous import in singular.ts
30 lines
721 B
TypeScript
30 lines
721 B
TypeScript
// Copyright 2017-2022 @polkadot/apps-config authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import type { BN } from '@polkadot/util';
|
|
|
|
import { externalLogos } from '../ui/logos';
|
|
|
|
const getNetwork = (_chain: string) => {
|
|
switch (_chain) {
|
|
case 'statemine':
|
|
return 'statemine/';
|
|
default:
|
|
return '';
|
|
}
|
|
};
|
|
|
|
export default {
|
|
chains: {
|
|
Kusama: 'kusama',
|
|
Statemine: 'statemine'
|
|
},
|
|
create: (_chain: string, _path: string, data: BN | number | string): string => `https://singular.rmrk.app/space/${getNetwork(_chain)}${data.toString()}`,
|
|
isActive: true,
|
|
logo: externalLogos.singular as string,
|
|
paths: {
|
|
address: 'account'
|
|
},
|
|
url: 'https://singular.rmrk.app'
|
|
};
|