@pioneer-platform/rango-client 8.3.15 → 8.3.17

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/index.js +15 -15
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -143,21 +143,21 @@ var get_quote = function (quote) {
143
143
  output.complete = true;
144
144
  output.amountOut = quoteRango.result.outputAmount;
145
145
  output.inboundAddress = unsignedTx.transaction.to;
146
- output.tx = {
147
- type: "evm",
148
- chain: caipToNetworkId(shortListSymbolToCaip[quote.from.blockchain]),
149
- txParams: {
150
- to: unsignedTx.transaction.to,
151
- from: unsignedTx.transaction.from,
152
- data: unsignedTx.transaction.data,
153
- value: unsignedTx.transaction.value,
154
- gasLimit: unsignedTx.transaction.gasLimit,
155
- gasPrice: unsignedTx.transaction.gasPrice,
156
- maxPriorityFeePerGas: unsignedTx.transaction.maxPriorityFeePerGas,
157
- maxFeePerGas: unsignedTx.transaction.maxFeePerGas,
158
- nonce: unsignedTx.transaction.nonce
159
- }
160
- };
146
+ output.txs = [{
147
+ type: "evm",
148
+ chain: caipToNetworkId(shortListSymbolToCaip[quote.from.blockchain]),
149
+ txParams: {
150
+ to: unsignedTx.transaction.to,
151
+ from: unsignedTx.transaction.from,
152
+ data: unsignedTx.transaction.data,
153
+ value: unsignedTx.transaction.value,
154
+ gasLimit: unsignedTx.transaction.gasLimit,
155
+ gasPrice: unsignedTx.transaction.gasPrice,
156
+ maxPriorityFeePerGas: unsignedTx.transaction.maxPriorityFeePerGas,
157
+ maxFeePerGas: unsignedTx.transaction.maxFeePerGas,
158
+ nonce: unsignedTx.transaction.nonce
159
+ }
160
+ }];
161
161
  output.rawUnsigned = unsignedTx;
162
162
  output.raw = quoteRango;
163
163
  return [2 /*return*/, output];
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pioneer-platform/rango-client",
3
- "version": "8.3.15",
3
+ "version": "8.3.17",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "dependencies": {
7
7
  "@pioneer-platform/loggerdog": "^8.3.1",
8
8
  "@pioneer-platform/pioneer-caip": "9.2.20",
9
- "@pioneer-platform/pioneer-coins": "^9.2.8",
9
+ "@pioneer-platform/pioneer-coins": "^9.2.13",
10
10
  "axios": "^1.3.4",
11
11
  "dotenv": "^8.2.0",
12
12
  "rango-sdk": "^0.1.45"