carbon-js-sdk 0.3.57 → 0.3.58
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.js +7 -0
- package/lib/util/blockchain.d.ts +2 -1
- package/lib/util/blockchain.js +1 -0
- package/lib/util/ibc.js +1 -0
- package/package.json +1 -1
package/lib/constant/ibc.js
CHANGED
|
@@ -118,6 +118,7 @@ exports.ibcWhitelist = [
|
|
|
118
118
|
ChainIds.Canto,
|
|
119
119
|
ChainIds.OmniFlixHub,
|
|
120
120
|
ChainIds.Agoric,
|
|
121
|
+
ChainIds.Sommelier,
|
|
121
122
|
];
|
|
122
123
|
exports.EmbedChainInfosInit = {
|
|
123
124
|
[ChainIds.Osmosis]: {
|
|
@@ -2106,6 +2107,12 @@ exports.swthChannels = {
|
|
|
2106
2107
|
dstChannel: "channel-12",
|
|
2107
2108
|
},
|
|
2108
2109
|
},
|
|
2110
|
+
[ChainIds.Sommelier]: {
|
|
2111
|
+
ibc: {
|
|
2112
|
+
sourceChannel: "channel-23",
|
|
2113
|
+
dstChannel: "channel-3",
|
|
2114
|
+
},
|
|
2115
|
+
},
|
|
2109
2116
|
};
|
|
2110
2117
|
exports.cibtIbcTokenRegex = RegExp(`^${token_1.DenomPrefix.CDPToken}/ibc/([a-f\\d]+)$`, "i");
|
|
2111
2118
|
exports.ibcTokenRegex = /^ibc\/([a-f\d]+)$/i;
|
package/lib/util/blockchain.d.ts
CHANGED
package/lib/util/blockchain.js
CHANGED
|
@@ -36,6 +36,7 @@ var Blockchain;
|
|
|
36
36
|
Blockchain["Canto"] = "canto";
|
|
37
37
|
Blockchain["OmniFlixHub"] = "omniflixhub";
|
|
38
38
|
Blockchain["Agoric"] = "agoric";
|
|
39
|
+
Blockchain["Sommelier"] = "sommelier";
|
|
39
40
|
})(Blockchain = exports.Blockchain || (exports.Blockchain = {}));
|
|
40
41
|
exports.BRIDGE_IDS = {
|
|
41
42
|
polynetwork: 1,
|
package/lib/util/ibc.js
CHANGED
|
@@ -64,6 +64,7 @@ exports.ChainIdBlockchainMap = {
|
|
|
64
64
|
[constant_1.ChainIds.Canto]: blockchain_1.Blockchain.Canto,
|
|
65
65
|
[constant_1.ChainIds.OmniFlixHub]: blockchain_1.Blockchain.OmniFlixHub,
|
|
66
66
|
[constant_1.ChainIds.Agoric]: blockchain_1.Blockchain.Agoric,
|
|
67
|
+
[constant_1.ChainIds.Sommelier]: blockchain_1.Blockchain.Sommelier,
|
|
67
68
|
};
|
|
68
69
|
const getIbcChainFromBlockchain = (blockchain) => {
|
|
69
70
|
let ibcChain = undefined;
|