Skip to content

Commit 722a12c

Browse files
Merge pull request #5838 from BitGo/COIN-3518-sdk-add-mantra-to-statics
chore(statics): add mantra to statics
2 parents 7d5fa6d + 2aa9d92 commit 722a12c

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

modules/bitgo/test/v2/unit/keychains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ describe('V2 Keychains', function () {
8484
n.asset !== UnderlyingAsset.RUNE &&
8585
n.asset !== UnderlyingAsset.BABY &&
8686
n.asset !== UnderlyingAsset.ICP &&
87+
n.asset !== UnderlyingAsset.MANTRA &&
8788
coinFamilyValues.includes(n.name)
8889
);
8990

modules/statics/src/base.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export enum CoinFamily {
5959
KAVA = 'kava',
6060
LNBTC = 'lnbtc',
6161
LTC = 'ltc',
62+
MANTRA = 'mantra',
6263
POLYGON = 'polygon',
6364
NEAR = 'near',
6465
OAS = 'oas',
@@ -395,6 +396,7 @@ export enum UnderlyingAsset {
395396
KAVA = 'kava',
396397
LNBTC = 'lnbtc',
397398
LTC = 'ltc',
399+
MANTRA = 'mantra',
398400
NEAR = 'near',
399401
OAS = 'oas',
400402
OPETH = 'opeth',
@@ -2579,6 +2581,7 @@ export enum BaseUnit {
25792581
RUNE = 'rune',
25802582
TAO = 'rao',
25812583
ICP = 'e8s',
2584+
MANTRA = 'uom',
25822585
}
25832586

25842587
export interface BaseCoinConstructorOptions {

modules/statics/src/coins.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,26 @@ export const coins = CoinMap.fromCoins([
838838
BaseUnit.BABY,
839839
COSMOS_SIDECHAIN_FEATURES_WITH_STAKING
840840
),
841+
account(
842+
'08ff6b77-4cfb-4dcd-9182-dd1cc6f92f70',
843+
'mantra',
844+
'Mantra',
845+
Networks.main.mantra,
846+
6,
847+
UnderlyingAsset.MANTRA,
848+
BaseUnit.MANTRA,
849+
COSMOS_SIDECHAIN_FEATURES
850+
),
851+
account(
852+
'cc900f12-f229-4eb3-9ca7-2a05a445f362',
853+
'tmantra',
854+
'Testnet Mantra',
855+
Networks.test.mantra,
856+
6,
857+
UnderlyingAsset.MANTRA,
858+
BaseUnit.MANTRA,
859+
COSMOS_SIDECHAIN_FEATURES
860+
),
841861
account(
842862
'b473d5f0-1590-4edf-bc9f-813aff515a23',
843863
'islm',

modules/statics/src/networks.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,18 @@ class BabyTestnet extends Testnet implements AccountNetwork {
867867
explorerUrl = 'https://testnet.babylon.explorers.guru/transaction/';
868868
}
869869

870+
class Mantra extends Mainnet implements AccountNetwork {
871+
name = 'Mantra';
872+
family = CoinFamily.MANTRA;
873+
explorerUrl = 'https://explorer.mantrachain.io/MANTRA-1/tx/';
874+
}
875+
876+
class MantraTestnet extends Testnet implements AccountNetwork {
877+
name = 'Testnet Mantra';
878+
family = CoinFamily.MANTRA;
879+
explorerUrl = 'https://explorer.mantrachain.io/MANTRA-Dukong/tx/';
880+
}
881+
870882
class Islm extends Mainnet implements AccountNetwork {
871883
name = 'Haqq';
872884
family = CoinFamily.ISLM;
@@ -1324,6 +1336,7 @@ export const Networks = {
13241336
kava: Object.freeze(new Kava()),
13251337
lnbtc: Object.freeze(new LightningBitcoin()),
13261338
litecoin: Object.freeze(new Litecoin()),
1339+
mantra: Object.freeze(new Mantra()),
13271340
polygon: Object.freeze(new Polygon()),
13281341
oas: Object.freeze(new Oas()),
13291342
ofc: Object.freeze(new Ofc()),
@@ -1394,6 +1407,7 @@ export const Networks = {
13941407
holesky: Object.freeze(new Holesky()),
13951408
lnbtc: Object.freeze(new LightningBitcoinTestnet()),
13961409
litecoin: Object.freeze(new LitecoinTestnet()),
1410+
mantra: Object.freeze(new MantraTestnet()),
13971411
polygon: Object.freeze(new PolygonTestnet()),
13981412
oas: Object.freeze(new OasTestnet()),
13991413
ofc: Object.freeze(new OfcTestnet()),

modules/statics/test/unit/fixtures/expectedColdFeatures.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export const expectedColdFeatures = {
7373
'islm',
7474
'injective',
7575
'kava',
76+
'mantra',
7677
'near',
7778
'oas',
7879
'osmo',
@@ -102,6 +103,7 @@ export const expectedColdFeatures = {
102103
'tislm',
103104
'tinjective',
104105
'tkava',
106+
'tmantra',
105107
'tnear',
106108
'tosmo',
107109
'tsei',

0 commit comments

Comments
 (0)