Skip to content

Commit

Permalink
Added currencyId to tokens of Turing chains (#129)
Browse files Browse the repository at this point in the history
* docs(changeset): Export utils constants and errors from adapters

* Added currencyId to tokens of Turing chains

* docs(changeset): Added currency Id to the tokens registered on Turing chains

* Revert "docs(changeset): Export utils constants and errors from adapters"

This reverts commit d89c5fd.
  • Loading branch information
chrisli30 authored Dec 17, 2023
1 parent 728b2f9 commit 3d2722d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
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
],
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

0 comments on commit 3d2722d

Please sign in to comment.