@pioneer-platform/pioneer-caip 9.2.2 → 9.2.4
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/data.d.ts +1 -0
- package/lib/data.js +11 -0
- package/package.json +1 -1
package/lib/data.d.ts
CHANGED
package/lib/data.js
CHANGED
@@ -199,11 +199,18 @@ exports.shortListNameToCaip = {
|
|
199
199
|
bnbsmartchain: 'eip155:56/slip44:60',
|
200
200
|
ripple: 'ripple:4109C6F2045FC7EFF4CDE8F9905D19C2/slip44:144',
|
201
201
|
optimism: 'eip155:10/slip44:60',
|
202
|
+
kuji: 'cosmos:kaiyo-1/slip44:118',
|
202
203
|
cardano: 'placeholder:caip:cardano:native:cardano',
|
203
204
|
binance: 'placeholder:caip:binance:native:bnb-beacon-chain',
|
204
205
|
eos: 'eip155:1:/erc20:0x86fa049857e0209aa7d9e616f7eb3b3b78ecfdb0',
|
205
206
|
fio: 'placeholder:caip:fio:native:fio-protocol'
|
206
207
|
};
|
208
|
+
var identifierToCaip = function (identifier) {
|
209
|
+
try {
|
210
|
+
}
|
211
|
+
catch (e) {
|
212
|
+
}
|
213
|
+
};
|
207
214
|
var thorchainToCaip = function (chain, symbol, ticker, type) {
|
208
215
|
try {
|
209
216
|
var caip
|
@@ -238,6 +245,10 @@ var thorchainToCaip = function (chain, symbol, ticker, type) {
|
|
238
245
|
//if chain and symbol are the same, then we have a native token
|
239
246
|
caip = exports.shortListNameToCaip['thorchain'];
|
240
247
|
}
|
248
|
+
else if (chain == "KUJI" || symbol == "USK") {
|
249
|
+
//if chain and symbol are the same, then we have a native token
|
250
|
+
caip = exports.shortListNameToCaip['kuji'];
|
251
|
+
}
|
241
252
|
else if (chain == symbol) {
|
242
253
|
//if chain and symbol are the same, then we have a native token
|
243
254
|
caip = exports.ChainToCaip[chain];
|