carbon-js-sdk 0.3.7 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constant/ibc.d.ts +2 -1
- package/lib/constant/ibc.js +78 -9
- package/lib/modules/admin.d.ts +0 -26
- package/lib/modules/admin.js +1 -61
- package/lib/modules/cdp.d.ts +11 -0
- package/lib/modules/cdp.js +21 -0
- package/lib/util/blockchain.d.ts +2 -1
- package/lib/util/blockchain.js +5 -0
- package/lib/util/ibc.js +1 -0
- package/package.json +1 -1
package/lib/constant/ibc.d.ts
CHANGED
|
@@ -50,7 +50,8 @@ export declare enum ChainIds {
|
|
|
50
50
|
Certik = "shentu-2.2",
|
|
51
51
|
Carbon = "carbon-1",
|
|
52
52
|
Axelar = "axelar-dojo-1",
|
|
53
|
-
Stride = "stride-1"
|
|
53
|
+
Stride = "stride-1",
|
|
54
|
+
Kujira = "kaiyo-1"
|
|
54
55
|
}
|
|
55
56
|
export declare const swthIbcWhitelist: string[];
|
|
56
57
|
export declare const ibcWhitelist: string[];
|
package/lib/constant/ibc.js
CHANGED
|
@@ -88,11 +88,21 @@ var ChainIds;
|
|
|
88
88
|
ChainIds["Carbon"] = "carbon-1";
|
|
89
89
|
ChainIds["Axelar"] = "axelar-dojo-1";
|
|
90
90
|
ChainIds["Stride"] = "stride-1";
|
|
91
|
+
ChainIds["Kujira"] = "kaiyo-1";
|
|
91
92
|
})(ChainIds = exports.ChainIds || (exports.ChainIds = {}));
|
|
92
93
|
// whitelisted networks for addition of swth as a currency
|
|
93
94
|
exports.swthIbcWhitelist = [ChainIds.Osmosis];
|
|
94
95
|
// whitelisted networks for addition of transfer options
|
|
95
|
-
exports.ibcWhitelist = [
|
|
96
|
+
exports.ibcWhitelist = [
|
|
97
|
+
ChainIds.Osmosis,
|
|
98
|
+
ChainIds.Terra,
|
|
99
|
+
ChainIds.CosmosHub,
|
|
100
|
+
ChainIds.Juno,
|
|
101
|
+
ChainIds.Evmos,
|
|
102
|
+
ChainIds.Axelar,
|
|
103
|
+
ChainIds.Stride,
|
|
104
|
+
ChainIds.Kujira,
|
|
105
|
+
];
|
|
96
106
|
exports.EmbedChainInfosInit = {
|
|
97
107
|
[ChainIds.Osmosis]: {
|
|
98
108
|
rpc: "https://rpc-osmosis.keplr.app",
|
|
@@ -1502,24 +1512,28 @@ exports.EmbedChainInfosInit = {
|
|
|
1502
1512
|
tmRpc: "https://shenturpc.certikpowered.info/",
|
|
1503
1513
|
},
|
|
1504
1514
|
[ChainIds.Carbon]: {
|
|
1505
|
-
feeCurrencies: [
|
|
1515
|
+
feeCurrencies: [
|
|
1516
|
+
{
|
|
1506
1517
|
coinDenom: "SWTH",
|
|
1507
1518
|
coinMinimalDenom: "swth",
|
|
1508
1519
|
coinDecimals: 8,
|
|
1509
1520
|
coinGeckoId: "switcheo",
|
|
1510
|
-
}
|
|
1521
|
+
},
|
|
1522
|
+
],
|
|
1511
1523
|
gasPriceStep: {
|
|
1512
1524
|
low: generic_1.CURRENT_GAS_PRICE,
|
|
1513
1525
|
average: generic_1.CURRENT_GAS_PRICE,
|
|
1514
1526
|
high: generic_1.CURRENT_GAS_PRICE,
|
|
1515
1527
|
},
|
|
1516
1528
|
bip44: { coinType: 118 },
|
|
1517
|
-
currencies: [
|
|
1529
|
+
currencies: [
|
|
1530
|
+
{
|
|
1518
1531
|
coinDenom: "SWTH",
|
|
1519
1532
|
coinMinimalDenom: "swth",
|
|
1520
1533
|
coinDecimals: 8,
|
|
1521
1534
|
coinGeckoId: "switcheo",
|
|
1522
|
-
}
|
|
1535
|
+
},
|
|
1536
|
+
],
|
|
1523
1537
|
stakeCurrency: {
|
|
1524
1538
|
coinDenom: "SWTH",
|
|
1525
1539
|
coinMinimalDenom: "swth",
|
|
@@ -1535,24 +1549,28 @@ exports.EmbedChainInfosInit = {
|
|
|
1535
1549
|
explorerUrlToTx: "https://scan.carbon.network/transaction/{txHash}?net=main",
|
|
1536
1550
|
},
|
|
1537
1551
|
[ChainIds.Axelar]: {
|
|
1538
|
-
feeCurrencies: [
|
|
1552
|
+
feeCurrencies: [
|
|
1553
|
+
{
|
|
1539
1554
|
coinDenom: "AXL",
|
|
1540
1555
|
coinMinimalDenom: "uaxl",
|
|
1541
1556
|
coinDecimals: 6,
|
|
1542
1557
|
coinGeckoId: "", // TODO: fill in when available
|
|
1543
|
-
}
|
|
1558
|
+
},
|
|
1559
|
+
],
|
|
1544
1560
|
gasPriceStep: {
|
|
1545
1561
|
low: 0.007,
|
|
1546
1562
|
average: 0.007,
|
|
1547
1563
|
high: 0.01,
|
|
1548
1564
|
},
|
|
1549
1565
|
bip44: { coinType: 118 },
|
|
1550
|
-
currencies: [
|
|
1566
|
+
currencies: [
|
|
1567
|
+
{
|
|
1551
1568
|
coinDenom: "AXL",
|
|
1552
1569
|
coinMinimalDenom: "uaxl",
|
|
1553
1570
|
coinDecimals: 6,
|
|
1554
1571
|
coinGeckoId: "", // TODO: fill in when available
|
|
1555
|
-
}
|
|
1572
|
+
},
|
|
1573
|
+
],
|
|
1556
1574
|
stakeCurrency: {
|
|
1557
1575
|
coinDenom: "AXL",
|
|
1558
1576
|
coinMinimalDenom: "uaxl",
|
|
@@ -1627,6 +1645,53 @@ exports.EmbedChainInfosInit = {
|
|
|
1627
1645
|
explorerUrlToTx: "https://www.mintscan.io/stride/txs/{txHash}",
|
|
1628
1646
|
tmRpc: "https://stride.rpc.kjnodes.com/",
|
|
1629
1647
|
},
|
|
1648
|
+
[ChainIds.Kujira]: {
|
|
1649
|
+
rpc: "https://rpc.kaiyo.kujira.setten.io",
|
|
1650
|
+
rest: "https://lcd.kaiyo.kujira.setten.io",
|
|
1651
|
+
chainId: "kaiyo-1",
|
|
1652
|
+
chainName: "Kujira",
|
|
1653
|
+
bip44: {
|
|
1654
|
+
coinType: 118,
|
|
1655
|
+
},
|
|
1656
|
+
bech32Config: exports.IBCAddress.defaultBech32Config("kujira"),
|
|
1657
|
+
stakeCurrency: {
|
|
1658
|
+
coinDenom: "KUJI",
|
|
1659
|
+
coinMinimalDenom: "ukuji",
|
|
1660
|
+
coinDecimals: 6,
|
|
1661
|
+
coinGeckoId: "kujira",
|
|
1662
|
+
},
|
|
1663
|
+
currencies: [
|
|
1664
|
+
{
|
|
1665
|
+
coinDenom: "KUJI",
|
|
1666
|
+
coinMinimalDenom: "ukuji",
|
|
1667
|
+
coinDecimals: 6,
|
|
1668
|
+
coinGeckoId: "kujira",
|
|
1669
|
+
coinImageUrl: "/tokens/kuji.png",
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
coinDenom: "USK",
|
|
1673
|
+
coinMinimalDenom: "factory:kujira1qk00h5atutpsv900x202pxx42npjr9thg58dnqpa72f2p7m2luase444a7:uusk",
|
|
1674
|
+
coinDecimals: 6,
|
|
1675
|
+
coinGeckoId: "usk",
|
|
1676
|
+
coinImageUrl: "/tokens/usk.png",
|
|
1677
|
+
},
|
|
1678
|
+
],
|
|
1679
|
+
feeCurrencies: [
|
|
1680
|
+
{
|
|
1681
|
+
coinDenom: "KUJI",
|
|
1682
|
+
coinMinimalDenom: "ukuji",
|
|
1683
|
+
coinDecimals: 6,
|
|
1684
|
+
coinGeckoId: "kujira",
|
|
1685
|
+
},
|
|
1686
|
+
],
|
|
1687
|
+
gasPriceStep: {
|
|
1688
|
+
low: 0.01,
|
|
1689
|
+
average: 0.025,
|
|
1690
|
+
high: 0.03,
|
|
1691
|
+
},
|
|
1692
|
+
features: ["ibc-transfer", "ibc-go"],
|
|
1693
|
+
explorerUrlToTx: "https://finder.kujira.app/kaiyo-1/tx/{txHash}",
|
|
1694
|
+
},
|
|
1630
1695
|
};
|
|
1631
1696
|
exports.swthChannels = {
|
|
1632
1697
|
[ChainIds.Osmosis]: {
|
|
@@ -1657,6 +1722,10 @@ exports.swthChannels = {
|
|
|
1657
1722
|
sourceChannel: "channel-8",
|
|
1658
1723
|
dstChannel: "channel-47",
|
|
1659
1724
|
},
|
|
1725
|
+
[ChainIds.Kujira]: {
|
|
1726
|
+
sourceChannel: "channel-9",
|
|
1727
|
+
dstChannel: "channel-46",
|
|
1728
|
+
},
|
|
1660
1729
|
};
|
|
1661
1730
|
exports.ibcTokenRegex = /^ibc\/([a-f\d]+)$/i;
|
|
1662
1731
|
exports.ibcNetworkRegex = /^([a-z\d_-]+)-([\d]+)$/i;
|
package/lib/modules/admin.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Any, SettlementPriceParams } from "../codec";
|
|
2
2
|
import { Coin } from "../codec/cosmos/base/v1beta1/coin";
|
|
3
3
|
import { Description } from "../codec/cosmos/staking/v1beta1/staking";
|
|
4
|
-
import { CarbonWallet } from "../wallet";
|
|
5
4
|
import { CarbonTx } from "../util";
|
|
6
5
|
import BigNumber from "bignumber.js";
|
|
7
6
|
import Long from "long";
|
|
@@ -44,8 +43,6 @@ export declare class AdminModule extends BaseModule {
|
|
|
44
43
|
setCompleteLiquidationThreshold(params: AdminModule.SetCompleteLiquidationThresholdParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
45
44
|
setMinimumCloseFactor(params: AdminModule.SetMinimumCloseFactorParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
46
45
|
setSmallLiquidationSize(params: AdminModule.SetSmallLiquidationSizeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
47
|
-
createRewardScheme(params: AdminModule.CreateRewardSchemeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
48
|
-
updateRewardScheme(params: AdminModule.UpdateRewardSchemeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
49
46
|
}
|
|
50
47
|
export declare namespace AdminModule {
|
|
51
48
|
interface AuthorizeBridgeParams {
|
|
@@ -345,26 +342,3 @@ export declare function transformSetSettlementPriceParams(msg: SettlementPricePa
|
|
|
345
342
|
settlementPrice: string;
|
|
346
343
|
};
|
|
347
344
|
export declare function transformCommunityPoolSpendAmount(amount: Coin[]): Coin[];
|
|
348
|
-
export declare function transformCreateRewardScheme(msg: AdminModule.CreateRewardSchemeParams): {
|
|
349
|
-
rewardDenom: string;
|
|
350
|
-
assetDenom: string;
|
|
351
|
-
rewardType: string;
|
|
352
|
-
rewardAmountPerSecond: string;
|
|
353
|
-
startTime: Date | undefined;
|
|
354
|
-
endTime: Date | undefined;
|
|
355
|
-
};
|
|
356
|
-
export declare function transformUpdateRewardScheme(msg: AdminModule.UpdateRewardSchemeParams): {
|
|
357
|
-
rewardSchemeId: Long.Long;
|
|
358
|
-
rewardDenom: string | undefined;
|
|
359
|
-
assetDenom: string | undefined;
|
|
360
|
-
rewardType: string | undefined;
|
|
361
|
-
rewardAmountPerSecond: string;
|
|
362
|
-
startTime: Date | undefined;
|
|
363
|
-
endTime: Date | undefined;
|
|
364
|
-
};
|
|
365
|
-
export declare function transformAddRewardReserve(msg: AdminModule.AddRewardReserveParams, wallet: CarbonWallet): {
|
|
366
|
-
creator: string;
|
|
367
|
-
rewardSchemeId: Long.Long;
|
|
368
|
-
amount: string;
|
|
369
|
-
denom: string;
|
|
370
|
-
};
|
package/lib/modules/admin.js
CHANGED
|
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.transformCommunityPoolSpendAmount = exports.transformSetSettlementPriceParams = exports.transfromSetMinGasPriceParams = exports.transfromSetMsgGasCostParams = exports.transfromSetTradingFlagParams = exports.transfromUpdatePoolParams = exports.transfromSetCommitmentCurveParams = exports.transfromSetRewardCurveParams = exports.transfromSetRewardsWeightsParams = exports.transfromUnlinkPoolParams = exports.transfromLinkPoolParams = exports.transfromSyncTokenParams = exports.transfromCreateTokenParams = exports.transfromCreateOracleParams = exports.AdminModule = void 0;
|
|
16
16
|
const codec_1 = require("../codec");
|
|
17
17
|
const tx_1 = require("../codec/coin/tx");
|
|
18
18
|
const tx_2 = require("../codec/cosmos/staking/v1beta1/tx");
|
|
@@ -563,32 +563,6 @@ class AdminModule extends base_1.default {
|
|
|
563
563
|
}, opts);
|
|
564
564
|
});
|
|
565
565
|
}
|
|
566
|
-
createRewardScheme(params, opts) {
|
|
567
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
568
|
-
const wallet = this.getWallet();
|
|
569
|
-
const value = codec_1.MsgCreateRewardScheme.fromPartial({
|
|
570
|
-
creator: wallet.bech32Address,
|
|
571
|
-
createRewardSchemeParams: transformCreateRewardScheme(params),
|
|
572
|
-
});
|
|
573
|
-
return yield wallet.sendTx({
|
|
574
|
-
typeUrl: util_1.CarbonTx.Types.MsgCreateRewardScheme,
|
|
575
|
-
value,
|
|
576
|
-
}, opts);
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
updateRewardScheme(params, opts) {
|
|
580
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
581
|
-
const wallet = this.getWallet();
|
|
582
|
-
const value = codec_1.MsgUpdateRewardScheme.fromPartial({
|
|
583
|
-
updator: wallet.bech32Address,
|
|
584
|
-
updateRewardSchemeParams: transformUpdateRewardScheme(params),
|
|
585
|
-
});
|
|
586
|
-
return yield wallet.sendTx({
|
|
587
|
-
typeUrl: util_1.CarbonTx.Types.MsgUpdateRewardScheme,
|
|
588
|
-
value,
|
|
589
|
-
}, opts);
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
566
|
}
|
|
593
567
|
exports.AdminModule = AdminModule;
|
|
594
568
|
;
|
|
@@ -716,37 +690,3 @@ function transformCommunityPoolSpendAmount(amount) {
|
|
|
716
690
|
return amounts;
|
|
717
691
|
}
|
|
718
692
|
exports.transformCommunityPoolSpendAmount = transformCommunityPoolSpendAmount;
|
|
719
|
-
function transformCreateRewardScheme(msg) {
|
|
720
|
-
return {
|
|
721
|
-
rewardDenom: msg.rewardDenom,
|
|
722
|
-
assetDenom: msg.assetDenom,
|
|
723
|
-
rewardType: msg.rewardType,
|
|
724
|
-
rewardAmountPerSecond: msg.rewardAmountPerSecond.toString(10),
|
|
725
|
-
startTime: msg.startTime,
|
|
726
|
-
endTime: msg.endTime,
|
|
727
|
-
};
|
|
728
|
-
}
|
|
729
|
-
exports.transformCreateRewardScheme = transformCreateRewardScheme;
|
|
730
|
-
function transformUpdateRewardScheme(msg) {
|
|
731
|
-
var _a;
|
|
732
|
-
return {
|
|
733
|
-
rewardSchemeId: new long_1.default(msg.rewardSchemeId),
|
|
734
|
-
rewardDenom: msg.rewardDenom,
|
|
735
|
-
assetDenom: msg.assetDenom,
|
|
736
|
-
rewardType: msg.rewardType,
|
|
737
|
-
rewardAmountPerSecond: (_a = msg.rewardAmountPerSecond) === null || _a === void 0 ? void 0 : _a.toString(10),
|
|
738
|
-
startTime: msg.startTime,
|
|
739
|
-
endTime: msg.endTime,
|
|
740
|
-
};
|
|
741
|
-
}
|
|
742
|
-
exports.transformUpdateRewardScheme = transformUpdateRewardScheme;
|
|
743
|
-
function transformAddRewardReserve(msg, wallet) {
|
|
744
|
-
var _a;
|
|
745
|
-
return {
|
|
746
|
-
creator: (_a = msg.creator) !== null && _a !== void 0 ? _a : wallet.bech32Address,
|
|
747
|
-
rewardSchemeId: new long_1.default(msg.rewardSchemeId),
|
|
748
|
-
amount: msg.amount.toString(10),
|
|
749
|
-
denom: msg.denom,
|
|
750
|
-
};
|
|
751
|
-
}
|
|
752
|
-
exports.transformAddRewardReserve = transformAddRewardReserve;
|
package/lib/modules/cdp.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="long" />
|
|
1
2
|
import { AssetParams, DebtInfo, RateStrategyParams, StablecoinDebtInfo } from '../codec';
|
|
2
3
|
import { CarbonTx } from "../util";
|
|
3
4
|
import { BigNumber } from "bignumber.js";
|
|
@@ -25,6 +26,7 @@ export declare class CDPModule extends BaseModule {
|
|
|
25
26
|
updateRateStrategy(params: CDPModule.UpdateRateStrategyParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
26
27
|
claimRewards(opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
27
28
|
createRewardScheme(params: CDPModule.CreateRewardSchemeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
29
|
+
updateRewardScheme(params: CDPModule.UpdateRewardSchemeParams, opts?: CarbonTx.SignTxOpts): Promise<import("@cosmjs/stargate").DeliverTxResponse>;
|
|
28
30
|
getAccountData(account: string): Promise<{
|
|
29
31
|
TotalCollateralsUsd: BigNumber;
|
|
30
32
|
AvailableBorrowsUsd: BigNumber;
|
|
@@ -166,4 +168,13 @@ export declare namespace CDPModule {
|
|
|
166
168
|
startTime: Date;
|
|
167
169
|
endTime: Date;
|
|
168
170
|
}
|
|
171
|
+
interface UpdateRewardSchemeParams {
|
|
172
|
+
rewardSchemeId: Long;
|
|
173
|
+
rewardDenom?: string;
|
|
174
|
+
assetDenom?: string;
|
|
175
|
+
rewardType?: string;
|
|
176
|
+
rewardAmountPerSecond?: BigNumber;
|
|
177
|
+
startTime?: Date;
|
|
178
|
+
endTime?: Date;
|
|
179
|
+
}
|
|
169
180
|
}
|
package/lib/modules/cdp.js
CHANGED
|
@@ -321,6 +321,27 @@ class CDPModule extends base_1.default {
|
|
|
321
321
|
}, opts);
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
|
+
updateRewardScheme(params, opts) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
326
|
+
const wallet = this.getWallet();
|
|
327
|
+
const value = tx_1.MsgUpdateRewardScheme.fromPartial({
|
|
328
|
+
updator: wallet.bech32Address,
|
|
329
|
+
updateRewardSchemeParams: {
|
|
330
|
+
rewardSchemeId: params.rewardSchemeId,
|
|
331
|
+
rewardDenom: params.rewardDenom,
|
|
332
|
+
rewardType: params.rewardType,
|
|
333
|
+
assetDenom: params.assetDenom,
|
|
334
|
+
rewardAmountPerSecond: params.rewardAmountPerSecond ? params.rewardAmountPerSecond.toString(10) : undefined,
|
|
335
|
+
startTime: params.startTime,
|
|
336
|
+
endTime: params.endTime,
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
return yield wallet.sendTx({
|
|
340
|
+
typeUrl: util_1.CarbonTx.Types.MsgUpdateRewardScheme,
|
|
341
|
+
value,
|
|
342
|
+
}, opts);
|
|
343
|
+
});
|
|
344
|
+
}
|
|
324
345
|
// start of cdp calculations
|
|
325
346
|
getAccountData(account) {
|
|
326
347
|
var _a;
|
package/lib/util/blockchain.d.ts
CHANGED
package/lib/util/blockchain.js
CHANGED
|
@@ -23,6 +23,7 @@ var Blockchain;
|
|
|
23
23
|
Blockchain["Evmos"] = "evmos";
|
|
24
24
|
Blockchain["Axelar"] = "axelar";
|
|
25
25
|
Blockchain["Stride"] = "stride";
|
|
26
|
+
Blockchain["Kujira"] = "kujira";
|
|
26
27
|
})(Blockchain = exports.Blockchain || (exports.Blockchain = {}));
|
|
27
28
|
;
|
|
28
29
|
exports.BRIDGE_IDS = {
|
|
@@ -53,6 +54,7 @@ exports.CHAIN_IDS = {
|
|
|
53
54
|
'evmos': 248,
|
|
54
55
|
'axelar': 249,
|
|
55
56
|
'stride': 313,
|
|
57
|
+
'kujira': 314
|
|
56
58
|
};
|
|
57
59
|
exports.CHAIN_IDS_DEV = {
|
|
58
60
|
'eth': 350,
|
|
@@ -117,6 +119,7 @@ const blockchainForChainId = (chainId) => {
|
|
|
117
119
|
case 79: // devnet
|
|
118
120
|
return Blockchain.BinanceSmartChain;
|
|
119
121
|
case 9: // mainnet
|
|
122
|
+
case 10:
|
|
120
123
|
case 18:
|
|
121
124
|
case 110: // testnet
|
|
122
125
|
case 111:
|
|
@@ -138,6 +141,8 @@ const blockchainForChainId = (chainId) => {
|
|
|
138
141
|
return Blockchain.Axelar;
|
|
139
142
|
case 313: // mainnet
|
|
140
143
|
return Blockchain.Stride;
|
|
144
|
+
case 314: // mainnnet
|
|
145
|
+
return Blockchain.Kujira;
|
|
141
146
|
default:
|
|
142
147
|
return undefined;
|
|
143
148
|
}
|
package/lib/util/ibc.js
CHANGED
|
@@ -50,6 +50,7 @@ exports.ChainIdBlockchainMap = {
|
|
|
50
50
|
[constant_1.ChainIds.Evmos]: blockchain_1.Blockchain.Evmos,
|
|
51
51
|
[constant_1.ChainIds.Axelar]: blockchain_1.Blockchain.Axelar,
|
|
52
52
|
[constant_1.ChainIds.Stride]: blockchain_1.Blockchain.Stride,
|
|
53
|
+
[constant_1.ChainIds.Kujira]: blockchain_1.Blockchain.Kujira,
|
|
53
54
|
};
|
|
54
55
|
const getIbcChainFromBlockchain = (blockchain) => {
|
|
55
56
|
let ibcChain = undefined;
|