Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dirty-wasps-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@oak-network/config": patch
---

Added currency Id to the tokens registered on Turing chains
6 changes: 4 additions & 2 deletions packages/config/src/chains/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ const shibuya = createChain({

const turingLocal = createChain({
assets: [
{ asset: DevTokens.tur, isNative: true },
{ asset: DevTokens.sby, isNative: false },
{ asset: DevTokens.tur, id: 0, isNative: true },
{ asset: DevTokens.sby, id: 4, isNative: false },
{ asset: DevTokens.moonbaseLocal, id: 5, isNative: false },
{ asset: DevTokens.mgr, id: 1, isNative: false },
],
endpoint: "ws://127.0.0.1:9946",
key: "turing-local",
Expand Down
8 changes: 4 additions & 4 deletions packages/config/src/chains/kusama.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const shiden = createChain({

const turing = createChain({
assets: [
{ asset: KusamaTokens.tur, isNative: true },
{ asset: KusamaTokens.sdn, isNative: false },
{ asset: KusamaTokens.movr, isNative: false },
{ asset: KusamaTokens.mgx, isNative: false },
{ asset: KusamaTokens.tur, id: 0, isNative: true },
{ asset: KusamaTokens.sdn, id: 8, isNative: false },
{ asset: KusamaTokens.movr, id: 9, isNative: false },
{ asset: KusamaTokens.mgx, isNative: false }, // MGX is not registered on Turing yet
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to find a way to define KSM token and add it to Turing chain. It’s already reigstered on chain.

],
endpoint: "wss://rpc.turing.oak.tech",
key: "turing",
Expand Down
4 changes: 2 additions & 2 deletions packages/config/src/chains/rococo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const mangataRococo = createChain({

const turingStaging = createChain({
assets: [
{ asset: RococoTokens.tur, isNative: true },
{ asset: RococoTokens.rstr, isNative: false },
{ asset: RococoTokens.tur, id: 0, isNative: true },
{ asset: RococoTokens.rstr, id: 9, isNative: false },
],
endpoint: "wss://rpc.turing-staging.oak.tech",
key: "turing-staging",
Expand Down
1 change: 1 addition & 0 deletions packages/config/src/chains/types/Chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface XcmConfig {
type AssetInfo = {
asset: Token;
isNative: boolean;
id?: number;
};

interface ChainConstructorParams {
Expand Down