@pioneer-platform/osmosis-client 0.0.5 → 0.0.7
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/index.d.ts +1 -1
- package/lib/index.js +5 -5
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const TAG = " | osmosis | ";
|
|
2
2
|
declare const log: any;
|
|
3
|
-
declare let shortListSymbolToCaip: any;
|
|
3
|
+
declare let caipToNetworkId: any, shortListSymbolToCaip: any, ChainToNetworkId: any;
|
|
4
4
|
declare let networkOsmo: any;
|
|
5
5
|
declare let networkAtom: any;
|
|
6
6
|
declare const uuid: any;
|
package/lib/index.js
CHANGED
|
@@ -42,13 +42,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
42
42
|
};
|
|
43
43
|
var TAG = " | osmosis | ";
|
|
44
44
|
var log = require('@pioneer-platform/loggerdog')();
|
|
45
|
-
var
|
|
45
|
+
var _a = require("@pioneer-platform/pioneer-caip"), caipToNetworkId = _a.caipToNetworkId, shortListSymbolToCaip = _a.shortListSymbolToCaip, ChainToNetworkId = _a.ChainToNetworkId;
|
|
46
46
|
var networkOsmo = require("@pioneer-platform/osmosis-network");
|
|
47
47
|
var networkAtom = require("@pioneer-platform/cosmos-network");
|
|
48
48
|
var uuid = require('uuidv4').uuid;
|
|
49
49
|
var networkSupport = [
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
ChainToNetworkId["OSMO"],
|
|
51
|
+
ChainToNetworkId["GAIA"],
|
|
52
52
|
];
|
|
53
53
|
module.exports = {
|
|
54
54
|
init: function (settings) {
|
|
@@ -133,7 +133,7 @@ var get_quote = function (quote) {
|
|
|
133
133
|
output.result = result;
|
|
134
134
|
tx1 = {
|
|
135
135
|
type: "sendSwapTx",
|
|
136
|
-
chain: shortListSymbolToCaip["OSMO"],
|
|
136
|
+
chain: caipToNetworkId(shortListSymbolToCaip["OSMO"]),
|
|
137
137
|
txParams: {
|
|
138
138
|
senderAddress: quote.senderAddress,
|
|
139
139
|
sellAsset: quote.sellAsset,
|
|
@@ -145,7 +145,7 @@ var get_quote = function (quote) {
|
|
|
145
145
|
log.info(tag, "tx1: ", tx1);
|
|
146
146
|
tx2 = {
|
|
147
147
|
type: "ibcTransfer",
|
|
148
|
-
chain: shortListSymbolToCaip["ATOM"], // Assuming ATOM is the target chain for the IBC withdrawal
|
|
148
|
+
chain: caipToNetworkId(shortListSymbolToCaip["ATOM"]), // Assuming ATOM is the target chain for the IBC withdrawal
|
|
149
149
|
txParams: {
|
|
150
150
|
senderAddress: quote.senderAddress, // Address initiating the IBC withdrawal
|
|
151
151
|
recipientAddress: quote.recipientAddress, // Destination address for the ATOM tokens
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pioneer-platform/osmosis-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@pioneer-platform/cosmos-network": "^8.3.
|
|
7
|
+
"@pioneer-platform/cosmos-network": "^8.3.2",
|
|
8
8
|
"@pioneer-platform/loggerdog": "^8.3.1",
|
|
9
|
-
"@pioneer-platform/osmosis-network": "^8.3.
|
|
10
|
-
"@pioneer-platform/pioneer-coins": "^9.2.
|
|
9
|
+
"@pioneer-platform/osmosis-network": "^8.3.8",
|
|
10
|
+
"@pioneer-platform/pioneer-coins": "^9.2.4",
|
|
11
11
|
"axios": "^1.3.4",
|
|
12
12
|
"dotenv": "^8.2.0",
|
|
13
13
|
"rango-sdk": "^0.1.45",
|