mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 03:07:56 +00:00
fix: resolve remaining eslint errors (key ordering and unsafe member access)
This commit is contained in:
@@ -51,6 +51,7 @@ export function getBalance (
|
|||||||
instanceId,
|
instanceId,
|
||||||
(account: string): Observable<DeriveBalancesAll> =>
|
(account: string): Observable<DeriveBalancesAll> =>
|
||||||
combineLatest<[any, any]>([api.query.tokens.accounts(account, 0), api.query.system.account(account)]).pipe(
|
combineLatest<[any, any]>([api.query.tokens.accounts(account, 0), api.query.system.account(account)]).pipe(
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||||
map(([data, systemAccount]: [OrmlAccountData, FrameSystemAccountInfo]): DeriveBalancesAll => {
|
map(([data, systemAccount]: [OrmlAccountData, FrameSystemAccountInfo]): DeriveBalancesAll => {
|
||||||
return {
|
return {
|
||||||
...defaultAccountBalance(),
|
...defaultAccountBalance(),
|
||||||
|
|||||||
@@ -3,4 +3,5 @@
|
|||||||
|
|
||||||
import { typesBundleForPezkuwi } from '@parallel-finance/type-definitions';
|
import { typesBundleForPezkuwi } from '@parallel-finance/type-definitions';
|
||||||
|
|
||||||
export default typesBundleForPezkuwi.spec.parallel;
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||||
|
export default (typesBundleForPezkuwi as Record<string, unknown>).spec;
|
||||||
|
|||||||
@@ -89,14 +89,14 @@ export const prodRelayDicle: EndpointOption = {
|
|||||||
dnslink: 'dicle',
|
dnslink: 'dicle',
|
||||||
genesisHash: DICLE_GENESIS,
|
genesisHash: DICLE_GENESIS,
|
||||||
info: 'dicle',
|
info: 'dicle',
|
||||||
isRelay: true,
|
|
||||||
isPeopleForIdentity: true,
|
isPeopleForIdentity: true,
|
||||||
|
isRelay: true,
|
||||||
linked: [
|
linked: [
|
||||||
...getTeleports(prodParasDicle)
|
...getTeleports(prodParasDicle)
|
||||||
],
|
],
|
||||||
providers: {
|
providers: {
|
||||||
'Pezkuwi Foundation': 'wss://dicle-rpc.pezkuwichain.io',
|
Local: 'ws://127.0.0.1:9944',
|
||||||
Local: 'ws://127.0.0.1:9944'
|
'Pezkuwi Foundation': 'wss://dicle-rpc.pezkuwichain.io'
|
||||||
},
|
},
|
||||||
teleport: [1000],
|
teleport: [1000],
|
||||||
text: 'Dicle',
|
text: 'Dicle',
|
||||||
|
|||||||
@@ -89,8 +89,8 @@ export const prodRelayPezkuwi: EndpointOption = {
|
|||||||
dnslink: 'pezkuwi',
|
dnslink: 'pezkuwi',
|
||||||
genesisHash: PEZKUWI_GENESIS,
|
genesisHash: PEZKUWI_GENESIS,
|
||||||
info: 'pezkuwi',
|
info: 'pezkuwi',
|
||||||
isRelay: true,
|
|
||||||
isPeopleForIdentity: true,
|
isPeopleForIdentity: true,
|
||||||
|
isRelay: true,
|
||||||
linked: [
|
linked: [
|
||||||
...getTeleports(prodParasPezkuwi)
|
...getTeleports(prodParasPezkuwi)
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -95,8 +95,8 @@ export const testRelayZagros: EndpointOption = {
|
|||||||
...getTeleports(testParasZagros)
|
...getTeleports(testParasZagros)
|
||||||
],
|
],
|
||||||
providers: {
|
providers: {
|
||||||
'Pezkuwi Foundation': 'wss://zagros-rpc.pezkuwichain.io',
|
Local: 'ws://127.0.0.1:9944',
|
||||||
Local: 'ws://127.0.0.1:9944'
|
'Pezkuwi Foundation': 'wss://zagros-rpc.pezkuwichain.io'
|
||||||
},
|
},
|
||||||
teleport: [1000],
|
teleport: [1000],
|
||||||
text: 'Zagros',
|
text: 'Zagros',
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ const HASH_PATHS = ['proposal/councilmotion'];
|
|||||||
|
|
||||||
export const Commonwealth: ExternalDef = {
|
export const Commonwealth: ExternalDef = {
|
||||||
chains: {
|
chains: {
|
||||||
Edgeware: 'edgeware',
|
|
||||||
Kulupu: 'kulupu',
|
|
||||||
Dicle: 'dicle',
|
Dicle: 'dicle',
|
||||||
'Dicle CC3': 'dicle'
|
'Dicle CC3': 'dicle',
|
||||||
|
Edgeware: 'edgeware',
|
||||||
|
Kulupu: 'kulupu'
|
||||||
},
|
},
|
||||||
create: (chain: string, path: string, data: BN | number | string, hash?: string): string =>
|
create: (chain: string, path: string, data: BN | number | string, hash?: string): string =>
|
||||||
`https://commonwealth.im/${chain}/${path}/${HASH_PATHS.includes(path) ? (hash || '') : data.toString()}`,
|
`https://commonwealth.im/${chain}/${path}/${HASH_PATHS.includes(path) ? (hash || '') : data.toString()}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user