@pioneer-platform/pioneer-caip 9.0.9 → 9.0.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.
Files changed (2) hide show
  1. package/lib/data.js +5 -1
  2. package/package.json +1 -1
package/lib/data.js CHANGED
@@ -46,7 +46,7 @@ var Chain;
46
46
  Chain["Ripple"] = "XRP";
47
47
  Chain["THORChain"] = "THOR";
48
48
  Chain["Zcash"] = "ZEC";
49
- })(Chain = exports.Chain || (exports.Chain = {}));
49
+ })(Chain || (exports.Chain = Chain = {}));
50
50
  exports.ChainToCaip = {
51
51
  'ARB': 'eip155:42161/slip44:60',
52
52
  'AVAX': 'eip155:43114/slip44:60',
@@ -228,6 +228,10 @@ var thorchainToCaip = function (chain, symbol, ticker, type) {
228
228
  //if chain and symbol are the same, then we have a native token
229
229
  caip = exports.shortListNameToCaip['arbitrum'];
230
230
  }
231
+ else if (chain == "OP" && symbol == "ETH") {
232
+ //if chain and symbol are the same, then we have a native token
233
+ caip = exports.shortListNameToCaip['optimism'];
234
+ }
231
235
  else if (chain == "THOR" && symbol == "RUNE") {
232
236
  //if chain and symbol are the same, then we have a native token
233
237
  caip = exports.shortListNameToCaip['thorchain'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-caip",
3
- "version": "9.0.9",
3
+ "version": "9.0.10",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/main.d.ts",
6
6
  "_moduleAliases": {