Skip to content

Commit

Permalink
feat: paseo people chain
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Feb 25, 2025
1 parent 460e32f commit 68c0606
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .papi/descriptors/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.0-autogenerated.9236808816198768325",
"version": "0.1.0-autogenerated.3703424297312018868",
"name": "@polkadot-api/descriptors",
"files": [
"dist"
Expand Down
Binary file added .papi/metadata/paseo_people.scale
Binary file not shown.
7 changes: 6 additions & 1 deletion .papi/polkadot-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
"metadata": ".papi/metadata/paseo_asset_hub.scale",
"genesis": "0xd6eec26135305a8ad257a20d003357284c8aa03d0bdb2b357ab0a22371e11ef2"
},
"paseo_people": {
"chain": "paseo_people",
"metadata": ".papi/metadata/paseo_people.scale",
"genesis": "0xe6c30d6e148f250b887105237bcaa5cb9f16dd203bf7b5b9d4f1da7387cb86ec"
},
"westend": {
"chain": "westend2",
"metadata": ".papi/metadata/westend.scale"
Expand All @@ -70,4 +75,4 @@
"genesis": "0x31a7d8914fb31c249b972f18c115f1e22b4b039abbcb03c73b6774c5642f9efe"
}
}
}
}
5 changes: 5 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
kusama_people,
paseo,
paseo_asset_hub,
paseo_people,
polkadot,
polkadot_asset_hub,
polkadot_collectives,
Expand Down Expand Up @@ -87,6 +88,10 @@ export const config = defineConfig({
descriptor: paseo_asset_hub,
provider: paseoProvider.addParachain({ id: "paseo_asset_hub" }),
},
paseo_people: {
descriptor: paseo_people,
provider: paseoProvider.addParachain({ id: "paseo_people" }),
},
westend: {
descriptor: westend,
provider: westendProvider,
Expand Down
5 changes: 4 additions & 1 deletion src/hooks/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export function usePeopleChainId() {
return "westend_people" satisfies ChainId;
case "paseo":
case "paseo_asset_hub":
return "paseo" satisfies ChainId;
case "paseo_people":
return "paseo_people" satisfies ChainId;
}
}

Expand All @@ -64,6 +65,7 @@ export function useStakingChainId() {
return "kusama" satisfies ChainId;
case "paseo":
case "paseo_asset_hub":
case "paseo_people":
return "paseo" satisfies ChainId;
case "westend":
case "westend_asset_hub":
Expand All @@ -89,6 +91,7 @@ export function useAssetHubChainId() {
return "kusama_asset_hub" satisfies ChainId;
case "paseo":
case "paseo_asset_hub":
case "paseo_people":
return "paseo_asset_hub" satisfies ChainId;
case "westend":
case "westend_asset_hub":
Expand Down

0 comments on commit 68c0606

Please sign in to comment.