@pezkuwi/ui-settings 3.16.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/build/LICENSE +201 -0
- package/build/README.md +40 -0
- package/build/Settings.d.ts +40 -0
- package/build/Settings.js +172 -0
- package/build/bundle-pezkuwi-ui-settings.js +1364 -0
- package/build/bundle.d.ts +5 -0
- package/build/bundle.js +5 -0
- package/build/cjs/Settings.d.ts +40 -0
- package/build/cjs/Settings.js +177 -0
- package/build/cjs/bundle.d.ts +5 -0
- package/build/cjs/bundle.js +19 -0
- package/build/cjs/defaults/chains.d.ts +3 -0
- package/build/cjs/defaults/chains.js +8 -0
- package/build/cjs/defaults/crypto.d.ts +4 -0
- package/build/cjs/defaults/crypto.js +35 -0
- package/build/cjs/defaults/endpoints.d.ts +3 -0
- package/build/cjs/defaults/endpoints.js +11 -0
- package/build/cjs/defaults/index.d.ts +15 -0
- package/build/cjs/defaults/index.js +80 -0
- package/build/cjs/defaults/ledger.d.ts +5 -0
- package/build/cjs/defaults/ledger.js +45 -0
- package/build/cjs/defaults/ss58.d.ts +3 -0
- package/build/cjs/defaults/ss58.js +16 -0
- package/build/cjs/defaults/type.d.ts +1 -0
- package/build/cjs/defaults/type.js +4 -0
- package/build/cjs/defaults/ui.d.ts +10 -0
- package/build/cjs/defaults/ui.js +62 -0
- package/build/cjs/index.d.ts +3 -0
- package/build/cjs/index.js +6 -0
- package/build/cjs/package.json +3 -0
- package/build/cjs/packageDetect.d.ts +1 -0
- package/build/cjs/packageDetect.js +5 -0
- package/build/cjs/packageInfo.d.ts +6 -0
- package/build/cjs/packageInfo.js +4 -0
- package/build/cjs/types.d.ts +35 -0
- package/build/cjs/types.js +2 -0
- package/build/defaults/chains.d.ts +3 -0
- package/build/defaults/chains.js +5 -0
- package/build/defaults/crypto.d.ts +4 -0
- package/build/defaults/crypto.js +32 -0
- package/build/defaults/endpoints.d.ts +3 -0
- package/build/defaults/endpoints.js +8 -0
- package/build/defaults/index.d.ts +15 -0
- package/build/defaults/index.js +58 -0
- package/build/defaults/ledger.d.ts +5 -0
- package/build/defaults/ledger.js +42 -0
- package/build/defaults/ss58.d.ts +3 -0
- package/build/defaults/ss58.js +13 -0
- package/build/defaults/type.d.ts +1 -0
- package/build/defaults/type.js +1 -0
- package/build/defaults/ui.d.ts +10 -0
- package/build/defaults/ui.js +59 -0
- package/build/index.d.ts +3 -0
- package/build/index.js +3 -0
- package/build/package.json +254 -0
- package/build/packageDetect.d.ts +1 -0
- package/build/packageDetect.js +3 -0
- package/build/packageInfo.d.ts +6 -0
- package/build/packageInfo.js +1 -0
- package/build/types.d.ts +35 -0
- package/build/types.js +1 -0
- package/build-tsc/Settings.d.ts +40 -0
- package/build-tsc/bundle.d.ts +5 -0
- package/build-tsc/defaults/chains.d.ts +3 -0
- package/build-tsc/defaults/crypto.d.ts +4 -0
- package/build-tsc/defaults/endpoints.d.ts +3 -0
- package/build-tsc/defaults/index.d.ts +15 -0
- package/build-tsc/defaults/ledger.d.ts +5 -0
- package/build-tsc/defaults/ss58.d.ts +3 -0
- package/build-tsc/defaults/type.d.ts +1 -0
- package/build-tsc/defaults/ui.d.ts +10 -0
- package/build-tsc/index.d.ts +3 -0
- package/build-tsc/packageDetect.d.ts +1 -0
- package/build-tsc/packageInfo.d.ts +6 -0
- package/build-tsc/types.d.ts +35 -0
- package/build-tsc-cjs/Settings.js +177 -0
- package/build-tsc-cjs/bundle.js +19 -0
- package/build-tsc-cjs/defaults/chains.js +8 -0
- package/build-tsc-cjs/defaults/crypto.js +35 -0
- package/build-tsc-cjs/defaults/endpoints.js +11 -0
- package/build-tsc-cjs/defaults/index.js +80 -0
- package/build-tsc-cjs/defaults/ledger.js +45 -0
- package/build-tsc-cjs/defaults/ss58.js +16 -0
- package/build-tsc-cjs/defaults/type.js +4 -0
- package/build-tsc-cjs/defaults/ui.js +62 -0
- package/build-tsc-cjs/index.js +6 -0
- package/build-tsc-cjs/packageDetect.js +5 -0
- package/build-tsc-cjs/packageInfo.js +4 -0
- package/build-tsc-cjs/types.js +2 -0
- package/build-tsc-esm/Settings.js +172 -0
- package/build-tsc-esm/bundle.js +5 -0
- package/build-tsc-esm/defaults/chains.js +5 -0
- package/build-tsc-esm/defaults/crypto.js +32 -0
- package/build-tsc-esm/defaults/endpoints.js +8 -0
- package/build-tsc-esm/defaults/index.js +58 -0
- package/build-tsc-esm/defaults/ledger.js +42 -0
- package/build-tsc-esm/defaults/ss58.js +13 -0
- package/build-tsc-esm/defaults/type.js +1 -0
- package/build-tsc-esm/defaults/ui.js +59 -0
- package/build-tsc-esm/index.js +3 -0
- package/build-tsc-esm/packageDetect.js +3 -0
- package/build-tsc-esm/packageInfo.js +1 -0
- package/build-tsc-esm/types.js +1 -0
- package/package.json +37 -0
- package/src/Settings.ts +236 -0
- package/src/bundle.ts +10 -0
- package/src/defaults/chains.ts +11 -0
- package/src/defaults/crypto.ts +39 -0
- package/src/defaults/endpoints.ts +14 -0
- package/src/defaults/index.ts +72 -0
- package/src/defaults/ledger.ts +50 -0
- package/src/defaults/ss58.ts +22 -0
- package/src/defaults/type.ts +5 -0
- package/src/defaults/ui.ts +73 -0
- package/src/index.ts +8 -0
- package/src/packageDetect.ts +11 -0
- package/src/packageInfo.ts +6 -0
- package/src/types.ts +42 -0
- package/tsconfig.build.json +9 -0
- package/tsconfig.build.tsbuildinfo +1 -0
package/src/bundle.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import { Settings, settings } from './Settings.js';
|
|
5
|
+
|
|
6
|
+
export { chains } from './defaults/chains.js';
|
|
7
|
+
export { ENDPOINT_DEFAULT, ICON_DEFAULT, ICON_DEFAULT_HOST, LANGUAGE_DEFAULT, LOCKING_DEFAULT, PREFIX_DEFAULT, UIMODE_DEFAULT, UITHEME_DEFAULT } from './defaults/index.js';
|
|
8
|
+
export { packageInfo } from './packageInfo.js';
|
|
9
|
+
|
|
10
|
+
export { Settings, settings };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import { selectableNetworks } from '@pezkuwi/networks';
|
|
5
|
+
import { objectSpread } from '@pezkuwi/util';
|
|
6
|
+
|
|
7
|
+
type ChainDef = string[];
|
|
8
|
+
|
|
9
|
+
export const chains: Record <string, ChainDef> = /*#__PURE__*/ selectableNetworks
|
|
10
|
+
.filter((n) => n.genesisHash.length)
|
|
11
|
+
.reduce((chains, { genesisHash, network }) => objectSpread(chains, { [network]: genesisHash }), {});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import type { Option } from '../types.js';
|
|
5
|
+
|
|
6
|
+
export const CRYPTOS: Option[] = [
|
|
7
|
+
{
|
|
8
|
+
info: 'sr25519',
|
|
9
|
+
text: 'Schnorrkel (sr25519, recommended)',
|
|
10
|
+
value: 'sr25519'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
info: 'ed25519',
|
|
14
|
+
text: 'Edwards (ed25519, alternative)',
|
|
15
|
+
value: 'ed25519'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
info: 'ecdsa',
|
|
19
|
+
text: 'ECDSA (Non BTC/ETH compatible)',
|
|
20
|
+
value: 'ecdsa'
|
|
21
|
+
}
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
export const CRYPTOS_ETH: Option[] = [
|
|
25
|
+
{
|
|
26
|
+
info: 'ethereum',
|
|
27
|
+
text: 'ECDSA (ETH compatible)',
|
|
28
|
+
value: 'ethereum'
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
export const CRYPTOS_LEDGER: Option[] = [
|
|
33
|
+
...CRYPTOS,
|
|
34
|
+
{
|
|
35
|
+
info: 'ed25519-ledger',
|
|
36
|
+
text: 'Ledger (ed25519, BIP32 derivation)',
|
|
37
|
+
value: 'ed25519-ledger'
|
|
38
|
+
}
|
|
39
|
+
];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import type { Option } from '../types.js';
|
|
5
|
+
|
|
6
|
+
export const ENDPOINTS: Option[] = [
|
|
7
|
+
{
|
|
8
|
+
info: 'local',
|
|
9
|
+
text: 'Local Node (Own, 127.0.0.1:9944)',
|
|
10
|
+
value: 'ws://127.0.0.1:9944/'
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
export const ENDPOINT_DEFAULT = ENDPOINTS[0];
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import type { Option } from '../types.js';
|
|
5
|
+
|
|
6
|
+
export { CRYPTOS, CRYPTOS_ETH, CRYPTOS_LEDGER } from './crypto.js';
|
|
7
|
+
export { ENDPOINT_DEFAULT, ENDPOINTS } from './endpoints.js';
|
|
8
|
+
export { LEDGER_APP, LEDGER_APP_DEFAULT, LEDGER_CONN, LEDGER_CONN_DEFAULT } from './ledger.js';
|
|
9
|
+
export { PREFIX_DEFAULT, PREFIXES } from './ss58.js';
|
|
10
|
+
export { ICON_DEFAULT, ICON_DEFAULT_HOST, ICONS, NOTIFICATION_DEFAULT, UIMODE_DEFAULT, UIMODES, UITHEME_DEFAULT, UITHEMES } from './ui.js';
|
|
11
|
+
|
|
12
|
+
export const CAMERA_DEFAULT = 'off';
|
|
13
|
+
|
|
14
|
+
export const CAMERA: Option[] = [
|
|
15
|
+
{
|
|
16
|
+
info: 'on',
|
|
17
|
+
text: 'Allow camera access',
|
|
18
|
+
value: 'on'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
info: 'off',
|
|
22
|
+
text: 'Do not allow camera access',
|
|
23
|
+
value: 'off'
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
export const LANGUAGE_DEFAULT = 'default';
|
|
28
|
+
|
|
29
|
+
export const LOCKING_DEFAULT = 'session';
|
|
30
|
+
|
|
31
|
+
export const LOCKING: Option[] = [
|
|
32
|
+
{
|
|
33
|
+
info: 'session',
|
|
34
|
+
text: 'Once per session',
|
|
35
|
+
value: 'session'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
info: 'tx',
|
|
39
|
+
text: 'On each transaction',
|
|
40
|
+
value: 'tx'
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
export const METADATA_UP_DEFAULT = 'off';
|
|
45
|
+
|
|
46
|
+
export const METADATA_UP: Option[] = [
|
|
47
|
+
{
|
|
48
|
+
info: 'off',
|
|
49
|
+
text: 'Do not auto-update extension metadata',
|
|
50
|
+
value: 'off'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
info: 'on',
|
|
54
|
+
text: 'Auto-update extension metadata',
|
|
55
|
+
value: 'on'
|
|
56
|
+
}
|
|
57
|
+
];
|
|
58
|
+
|
|
59
|
+
export const STORAGE_DEFAULT = 'off';
|
|
60
|
+
|
|
61
|
+
export const STORAGE: Option[] = [
|
|
62
|
+
{
|
|
63
|
+
info: 'on',
|
|
64
|
+
text: 'Allow local in-browser account storage',
|
|
65
|
+
value: 'on'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
info: 'off',
|
|
69
|
+
text: 'Do not allow local in-browser account storage',
|
|
70
|
+
value: 'off'
|
|
71
|
+
}
|
|
72
|
+
];
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import type { Option } from '../types.js';
|
|
5
|
+
|
|
6
|
+
export const LEDGER_CONN_DEFAULT = 'none';
|
|
7
|
+
|
|
8
|
+
export const LEDGER_CONN: Option[] = [
|
|
9
|
+
{
|
|
10
|
+
info: 'none',
|
|
11
|
+
text: 'Do not attach Ledger devices',
|
|
12
|
+
value: 'none'
|
|
13
|
+
},
|
|
14
|
+
// Deprecated
|
|
15
|
+
// {
|
|
16
|
+
// info: 'u2f',
|
|
17
|
+
// text: 'Attach Ledger via U2F',
|
|
18
|
+
// value: 'u2f'
|
|
19
|
+
// },
|
|
20
|
+
{
|
|
21
|
+
info: 'webusb',
|
|
22
|
+
text: 'Attach Ledger via WebUSB (Chrome, recommended)',
|
|
23
|
+
value: 'webusb'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
info: 'hid',
|
|
27
|
+
text: 'Attach Ledger via WebHID (Chrome, experimental)',
|
|
28
|
+
value: 'hid'
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
|
|
32
|
+
export const LEDGER_APP_DEFAULT = 'generic';
|
|
33
|
+
|
|
34
|
+
export const LEDGER_APP: Option[] = [
|
|
35
|
+
{
|
|
36
|
+
info: 'generic',
|
|
37
|
+
text: 'Use the Ledger Polkadot Generic App',
|
|
38
|
+
value: 'generic'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
info: 'migration',
|
|
42
|
+
text: 'Use the Ledger Migration App',
|
|
43
|
+
value: 'migration'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
info: 'chainSpecific',
|
|
47
|
+
text: 'Use the Chain Specific Ledger App',
|
|
48
|
+
value: 'chainSpecific'
|
|
49
|
+
}
|
|
50
|
+
];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import type { Option } from '../types.js';
|
|
5
|
+
|
|
6
|
+
import { availableNetworks } from '@pezkuwi/networks';
|
|
7
|
+
|
|
8
|
+
export const PREFIX_DEFAULT = -1;
|
|
9
|
+
|
|
10
|
+
const defaultNetwork: Option = {
|
|
11
|
+
info: 'default',
|
|
12
|
+
text: 'Default for the connected node',
|
|
13
|
+
value: -1
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const networks = availableNetworks.map(({ displayName, network, prefix }) => ({
|
|
17
|
+
info: network,
|
|
18
|
+
text: displayName,
|
|
19
|
+
value: prefix
|
|
20
|
+
}));
|
|
21
|
+
|
|
22
|
+
export const PREFIXES: Option[] = [defaultNetwork, ...networks];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// matches https://polkadot.js.org & https://*.polkadot.io
|
|
5
|
+
export const isPolkadot = typeof window !== 'undefined' && window.location.host.includes('polkadot');
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import type { Option } from '../types.js';
|
|
5
|
+
|
|
6
|
+
import { isPolkadot } from './type.js';
|
|
7
|
+
|
|
8
|
+
export const LANGUAGE_DEFAULT = 'default';
|
|
9
|
+
|
|
10
|
+
export const UIMODE_DEFAULT = !isPolkadot && typeof window !== 'undefined' && window.location.host.includes('ui-light')
|
|
11
|
+
? 'light'
|
|
12
|
+
: 'full';
|
|
13
|
+
|
|
14
|
+
export const UIMODES: Option[] = [
|
|
15
|
+
{
|
|
16
|
+
info: 'full',
|
|
17
|
+
text: 'Fully featured',
|
|
18
|
+
value: 'full'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
info: 'light',
|
|
22
|
+
text: 'Basic features only',
|
|
23
|
+
value: 'light'
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
|
|
27
|
+
export const UITHEME_DEFAULT = isPolkadot
|
|
28
|
+
? 'polkadot'
|
|
29
|
+
: 'substrate';
|
|
30
|
+
|
|
31
|
+
export const UITHEMES: Option[] = [
|
|
32
|
+
{
|
|
33
|
+
info: 'polkadot',
|
|
34
|
+
text: 'Polkadot',
|
|
35
|
+
value: 'polkadot'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
info: 'substrate',
|
|
39
|
+
text: 'Substrate',
|
|
40
|
+
value: 'substrate'
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
export const ICON_DEFAULT = 'default';
|
|
45
|
+
|
|
46
|
+
export const ICON_DEFAULT_HOST = isPolkadot
|
|
47
|
+
? 'polkadot'
|
|
48
|
+
: 'substrate';
|
|
49
|
+
|
|
50
|
+
export const ICONS: Option[] = [
|
|
51
|
+
{
|
|
52
|
+
info: 'default',
|
|
53
|
+
text: 'Default for the connected node',
|
|
54
|
+
value: 'default'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
info: 'polkadot',
|
|
58
|
+
text: 'Polkadot',
|
|
59
|
+
value: 'polkadot'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
info: 'substrate',
|
|
63
|
+
text: 'Substrate',
|
|
64
|
+
value: 'substrate'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
info: 'beachball',
|
|
68
|
+
text: 'Beachball',
|
|
69
|
+
value: 'beachball'
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
export const NOTIFICATION_DEFAULT = 'popup';
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright 2017-2026 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// Do not edit, auto-generated by @pezkuwi/dev
|
|
5
|
+
// (packageInfo imports will be kept as-is, user-editable)
|
|
6
|
+
|
|
7
|
+
import { detectPackage } from '@pezkuwi/util';
|
|
8
|
+
|
|
9
|
+
import { packageInfo } from './packageInfo.js';
|
|
10
|
+
|
|
11
|
+
detectPackage(packageInfo, null, []);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Copyright 2017-2026 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// Do not edit, auto-generated by @pezkuwi/dev
|
|
5
|
+
|
|
6
|
+
export const packageInfo = { name: '@pezkuwi/ui-settings', path: 'auto', type: 'auto', version: '3.16.6' };
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Copyright 2017-2025 @pezkuwi/ui-settings authors & contributors
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
export interface Option {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
info: string;
|
|
7
|
+
text: string;
|
|
8
|
+
value: string | number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface SettingsStruct {
|
|
12
|
+
apiType: Endpoint;
|
|
13
|
+
apiUrl: string;
|
|
14
|
+
camera: string;
|
|
15
|
+
i18nLang: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
ledgerApp: string;
|
|
18
|
+
ledgerConn: string;
|
|
19
|
+
locking: string;
|
|
20
|
+
metadataUp: string;
|
|
21
|
+
notification: string;
|
|
22
|
+
prefix: number;
|
|
23
|
+
storage: string;
|
|
24
|
+
uiMode: string;
|
|
25
|
+
uiTheme: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface NetworkSpecsStruct {
|
|
29
|
+
color: string;
|
|
30
|
+
decimals: number;
|
|
31
|
+
genesisHash: string;
|
|
32
|
+
prefix: number;
|
|
33
|
+
title: string;
|
|
34
|
+
unit: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface Endpoint {
|
|
38
|
+
type: EndpointType;
|
|
39
|
+
param: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type EndpointType = 'json-rpc' | 'substrate-connect';
|