@talismn/chaindata-provider 1.2.0 → 1.3.1
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/dist/declarations/src/chaindata/tokens/SubstrateDTaoToken.d.ts +1 -0
- package/dist/declarations/src/chaindata/tokens/Token.d.ts +4 -0
- package/dist/declarations/src/chaindata/utils.d.ts +1 -0
- package/dist/declarations/src/constants.d.ts +2 -2
- package/dist/declarations/src/getBlockExplorerUrls.d.ts +2 -3
- package/dist/declarations/src/provider/ChaindataProvider.d.ts +1 -0
- package/dist/declarations/src/state/defaultChaindata.d.ts +1 -0
- package/dist/declarations/src/state/githubChaindata.d.ts +1 -0
- package/dist/declarations/src/state/net.d.ts +2 -1
- package/dist/declarations/src/state/schema.d.ts +6 -0
- package/dist/talismn-chaindata-provider.cjs.dev.js +635 -730
- package/dist/talismn-chaindata-provider.cjs.prod.js +635 -730
- package/dist/talismn-chaindata-provider.esm.js +636 -731
- package/package.json +4 -4
|
@@ -18,6 +18,7 @@ export declare const SubDTaoTokenSchema: z.ZodObject<{
|
|
|
18
18
|
netuid: z.ZodNumber;
|
|
19
19
|
subnetName: z.ZodOptional<z.ZodString>;
|
|
20
20
|
hotkey: z.ZodOptional<z.ZodString>;
|
|
21
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
21
22
|
}, z.core.$strict>;
|
|
22
23
|
export type SubDTaoToken = z.infer<typeof SubDTaoTokenSchema>;
|
|
23
24
|
export declare const SubDTaoBalancesConfigSchema: z.ZodObject<{}, z.core.$strict>;
|
|
@@ -97,6 +97,7 @@ export declare const TokenSchemaBase: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
97
97
|
netuid: z.ZodNumber;
|
|
98
98
|
subnetName: z.ZodOptional<z.ZodString>;
|
|
99
99
|
hotkey: z.ZodOptional<z.ZodString>;
|
|
100
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
100
101
|
}, z.core.$strict>, z.ZodObject<{
|
|
101
102
|
id: z.ZodString;
|
|
102
103
|
networkId: z.ZodString;
|
|
@@ -308,6 +309,7 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
308
309
|
netuid: z.ZodNumber;
|
|
309
310
|
subnetName: z.ZodOptional<z.ZodString>;
|
|
310
311
|
hotkey: z.ZodOptional<z.ZodString>;
|
|
312
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
311
313
|
}, z.core.$strict>, z.ZodObject<{
|
|
312
314
|
id: z.ZodString;
|
|
313
315
|
networkId: z.ZodString;
|
|
@@ -491,6 +493,7 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
491
493
|
type: "substrate-dtao";
|
|
492
494
|
platform: "polkadot";
|
|
493
495
|
netuid: number;
|
|
496
|
+
isTransferable: boolean;
|
|
494
497
|
isDefault?: boolean | undefined;
|
|
495
498
|
name?: string | undefined;
|
|
496
499
|
logo?: string | undefined;
|
|
@@ -678,6 +681,7 @@ export declare const TokenSchema: z.ZodPipe<z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
678
681
|
type: "substrate-dtao";
|
|
679
682
|
platform: "polkadot";
|
|
680
683
|
netuid: number;
|
|
684
|
+
isTransferable: boolean;
|
|
681
685
|
isDefault?: boolean | undefined;
|
|
682
686
|
name?: string | undefined;
|
|
683
687
|
logo?: string | undefined;
|
|
@@ -267,6 +267,7 @@ export declare const isTokenSubDTao: (token: Token | null | undefined) => token
|
|
|
267
267
|
type: "substrate-dtao";
|
|
268
268
|
platform: "polkadot";
|
|
269
269
|
netuid: number;
|
|
270
|
+
isTransferable: boolean;
|
|
270
271
|
isDefault?: boolean | undefined;
|
|
271
272
|
name?: string | undefined;
|
|
272
273
|
logo?: string | undefined;
|
|
@@ -3,8 +3,8 @@ export declare const githubCdn = "https://raw.githubusercontent.com";
|
|
|
3
3
|
export declare const githubChaindataOrg = "TalismanSociety";
|
|
4
4
|
export declare const githubChaindataRepo = "chaindata";
|
|
5
5
|
export declare const githubChaindataBranch = "main";
|
|
6
|
-
export declare const githubChaindataDistDir = "pub/
|
|
6
|
+
export declare const githubChaindataDistDir = "pub/v7";
|
|
7
7
|
export declare const githubChaindataBaseUrl = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main";
|
|
8
|
-
export declare const githubChaindataDistUrl = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/pub/
|
|
8
|
+
export declare const githubChaindataDistUrl = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/pub/v7";
|
|
9
9
|
export declare const githubChaindataChainsAssetsDir = "assets/chains";
|
|
10
10
|
export declare const githubChaindataTokensAssetsDir = "assets/tokens";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Network } from "./chaindata";
|
|
2
|
-
type
|
|
2
|
+
export type BlockExplorerQuery = {
|
|
3
3
|
type: "address";
|
|
4
4
|
address: string;
|
|
5
5
|
} | {
|
|
@@ -19,6 +19,5 @@ type ExplorerQuery = {
|
|
|
19
19
|
type: "extrinsic-unknown";
|
|
20
20
|
hash: `0x${string}`;
|
|
21
21
|
};
|
|
22
|
-
export declare const getBlockExplorerUrls: (network: Network, query:
|
|
22
|
+
export declare const getBlockExplorerUrls: (network: Network, query: BlockExplorerQuery) => string[];
|
|
23
23
|
export declare const getBlockExplorerLabel: (blockExplorerUrl: string) => string;
|
|
24
|
-
export {};
|
|
@@ -163,6 +163,7 @@ export declare class ChaindataProvider implements IChaindataProvider {
|
|
|
163
163
|
type: "substrate-dtao";
|
|
164
164
|
platform: "polkadot";
|
|
165
165
|
netuid: number;
|
|
166
|
+
isTransferable: boolean;
|
|
166
167
|
isDefault?: boolean | undefined;
|
|
167
168
|
name?: string | undefined;
|
|
168
169
|
logo?: string | undefined;
|
|
@@ -196,6 +196,7 @@ export declare const getDefaultChaindata$: (storage$: Subject<ChaindataStorage>)
|
|
|
196
196
|
type: "substrate-dtao";
|
|
197
197
|
platform: "polkadot";
|
|
198
198
|
netuid: number;
|
|
199
|
+
isTransferable: boolean;
|
|
199
200
|
isDefault?: boolean | undefined;
|
|
200
201
|
name?: string | undefined;
|
|
201
202
|
logo?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CHAINDATA_CONSOLIDATED_URL = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/pub/
|
|
1
|
+
export declare const CHAINDATA_CONSOLIDATED_URL = "https://raw.githubusercontent.com/TalismanSociety/chaindata/main/pub/v7/chaindata.min.json";
|
|
2
2
|
export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
3
3
|
networks: ({
|
|
4
4
|
id: string;
|
|
@@ -195,6 +195,7 @@ export declare const fetchChaindata: (signal?: AbortSignal) => Promise<{
|
|
|
195
195
|
type: "substrate-dtao";
|
|
196
196
|
platform: "polkadot";
|
|
197
197
|
netuid: number;
|
|
198
|
+
isTransferable: boolean;
|
|
198
199
|
isDefault?: boolean | undefined;
|
|
199
200
|
name?: string | undefined;
|
|
200
201
|
logo?: string | undefined;
|
|
@@ -209,6 +209,7 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
209
209
|
netuid: z.ZodNumber;
|
|
210
210
|
subnetName: z.ZodOptional<z.ZodString>;
|
|
211
211
|
hotkey: z.ZodOptional<z.ZodString>;
|
|
212
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
212
213
|
}, z.core.$strict>, z.ZodObject<{
|
|
213
214
|
id: z.ZodString;
|
|
214
215
|
networkId: z.ZodString;
|
|
@@ -392,6 +393,7 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
392
393
|
type: "substrate-dtao";
|
|
393
394
|
platform: "polkadot";
|
|
394
395
|
netuid: number;
|
|
396
|
+
isTransferable: boolean;
|
|
395
397
|
isDefault?: boolean | undefined;
|
|
396
398
|
name?: string | undefined;
|
|
397
399
|
logo?: string | undefined;
|
|
@@ -579,6 +581,7 @@ export declare const ChaindataFileSchema: z.ZodObject<{
|
|
|
579
581
|
type: "substrate-dtao";
|
|
580
582
|
platform: "polkadot";
|
|
581
583
|
netuid: number;
|
|
584
|
+
isTransferable: boolean;
|
|
582
585
|
isDefault?: boolean | undefined;
|
|
583
586
|
name?: string | undefined;
|
|
584
587
|
logo?: string | undefined;
|
|
@@ -913,6 +916,7 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
913
916
|
netuid: z.ZodNumber;
|
|
914
917
|
subnetName: z.ZodOptional<z.ZodString>;
|
|
915
918
|
hotkey: z.ZodOptional<z.ZodString>;
|
|
919
|
+
isTransferable: z.ZodDefault<z.ZodBoolean>;
|
|
916
920
|
}, z.core.$strict>, z.ZodObject<{
|
|
917
921
|
id: z.ZodString;
|
|
918
922
|
networkId: z.ZodString;
|
|
@@ -1096,6 +1100,7 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
1096
1100
|
type: "substrate-dtao";
|
|
1097
1101
|
platform: "polkadot";
|
|
1098
1102
|
netuid: number;
|
|
1103
|
+
isTransferable: boolean;
|
|
1099
1104
|
isDefault?: boolean | undefined;
|
|
1100
1105
|
name?: string | undefined;
|
|
1101
1106
|
logo?: string | undefined;
|
|
@@ -1283,6 +1288,7 @@ export declare const CustomChaindataSchema: z.ZodObject<{
|
|
|
1283
1288
|
type: "substrate-dtao";
|
|
1284
1289
|
platform: "polkadot";
|
|
1285
1290
|
netuid: number;
|
|
1291
|
+
isTransferable: boolean;
|
|
1286
1292
|
isDefault?: boolean | undefined;
|
|
1287
1293
|
name?: string | undefined;
|
|
1288
1294
|
logo?: string | undefined;
|