Skip to content

Commit 8538425

Browse files
authored
Add bittensor types to types bundle (#11008)
1 parent 36cf873 commit 8538425

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

packages/apps-config/src/api/spec/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import bifrostParachain from './bifrost-parachain.js';
2020
import bitcountry from './bitcountry.js';
2121
import bitcountryPioneer from './bitcountry-pioneer.js';
2222
import bitcountryParachain from './bitcountry-rococo.js';
23+
import bittensor from './bittensor.js';
2324
import centrifuge from './centrifuge.js';
2425
import centrifugeChain from './centrifuge-chain.js';
2526
import chainx from './chainx.js';
@@ -164,6 +165,7 @@ const spec: Record<string, OverrideBundleDefinition> = {
164165
'bifrost-parachain': bifrostParachain,
165166
'bitcountry-node': bitcountry,
166167
'bitcountry-parachain': bitcountryParachain,
168+
bittensor,
167169
centrifuge,
168170
'centrifuge-chain': centrifugeChain,
169171
chainx,

packages/apps-config/src/api/typesBundle.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20271,6 +20271,42 @@ export const typesBundle = {
2027120271
}
2027220272
]
2027320273
},
20274+
"bittensor": {
20275+
"types": [
20276+
{
20277+
"minmax": [
20278+
0,
20279+
null
20280+
],
20281+
"types": {
20282+
"Balance": "u64",
20283+
"NeuronMetadata": {
20284+
"version": "u32",
20285+
"ip": "u128",
20286+
"port": "u16",
20287+
"ipType": "u8",
20288+
"uid": "u32",
20289+
"netuid": "u16",
20290+
"modality": "u8",
20291+
"hotkey": "AccountId",
20292+
"coldkey": "AccountId",
20293+
"active": "u32",
20294+
"lastUpdate": "u64",
20295+
"priority": "u64",
20296+
"stake": "u64",
20297+
"rank": "u64",
20298+
"trust": "u64",
20299+
"consensus": "u64",
20300+
"incentive": "u64",
20301+
"dividends": "u64",
20302+
"emission": "u64",
20303+
"bonds": "Vec<(u32, u64)>",
20304+
"weights": "Vec<(u32, u32)>"
20305+
}
20306+
}
20307+
}
20308+
]
20309+
},
2027420310
"centrifuge": {
2027520311
"types": [
2027620312
{

0 commit comments

Comments
 (0)