Skip to content

Commit 4539611

Browse files
committed
v1.7.1
1 parent 9567f4a commit 4539611

4 files changed

Lines changed: 33 additions & 32 deletions

File tree

README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ USAGE
148148
$ airswap account:delete
149149
```
150150

151-
_See code: [src/commands/account/delete.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/account/delete.ts)_
151+
_See code: [src/commands/account/delete.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/account/delete.ts)_
152152

153153
## `airswap account:export`
154154

@@ -161,7 +161,7 @@ USAGE
161161
$ airswap account:export
162162
```
163163

164-
_See code: [src/commands/account/export.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/account/export.ts)_
164+
_See code: [src/commands/account/export.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/account/export.ts)_
165165

166166
## `airswap account:generate`
167167

@@ -174,7 +174,7 @@ USAGE
174174
$ airswap account:generate
175175
```
176176

177-
_See code: [src/commands/account/generate.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/account/generate.ts)_
177+
_See code: [src/commands/account/generate.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/account/generate.ts)_
178178

179179
## `airswap account:import`
180180

@@ -187,7 +187,7 @@ USAGE
187187
$ airswap account:import
188188
```
189189

190-
_See code: [src/commands/account/import.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/account/import.ts)_
190+
_See code: [src/commands/account/import.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/account/import.ts)_
191191

192192
## `airswap balances`
193193

@@ -200,7 +200,7 @@ USAGE
200200
$ airswap balances
201201
```
202202

203-
_See code: [src/commands/balances.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/balances.ts)_
203+
_See code: [src/commands/balances.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/balances.ts)_
204204

205205
## `airswap chain`
206206

@@ -213,7 +213,7 @@ USAGE
213213
$ airswap chain
214214
```
215215

216-
_See code: [src/commands/chain.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/chain.ts)_
216+
_See code: [src/commands/chain.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/chain.ts)_
217217

218218
## `airswap debug`
219219

@@ -226,7 +226,7 @@ USAGE
226226
$ airswap debug
227227
```
228228

229-
_See code: [src/commands/debug.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/debug.ts)_
229+
_See code: [src/commands/debug.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/debug.ts)_
230230

231231
## `airswap gas`
232232

@@ -239,7 +239,7 @@ USAGE
239239
$ airswap gas
240240
```
241241

242-
_See code: [src/commands/gas.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/gas.ts)_
242+
_See code: [src/commands/gas.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/gas.ts)_
243243

244244
## `airswap help [COMMAND]`
245245

@@ -271,7 +271,7 @@ USAGE
271271
$ airswap ip
272272
```
273273

274-
_See code: [src/commands/ip.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/ip.ts)_
274+
_See code: [src/commands/ip.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/ip.ts)_
275275

276276
## `airswap metadata:add`
277277

@@ -284,7 +284,7 @@ USAGE
284284
$ airswap metadata:add
285285
```
286286

287-
_See code: [src/commands/metadata/add.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/metadata/add.ts)_
287+
_See code: [src/commands/metadata/add.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/metadata/add.ts)_
288288

289289
## `airswap metadata:delete`
290290

@@ -297,7 +297,7 @@ USAGE
297297
$ airswap metadata:delete
298298
```
299299

300-
_See code: [src/commands/metadata/delete.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/metadata/delete.ts)_
300+
_See code: [src/commands/metadata/delete.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/metadata/delete.ts)_
301301

302302
## `airswap metadata:lookup`
303303

@@ -310,7 +310,7 @@ USAGE
310310
$ airswap metadata:lookup
311311
```
312312

313-
_See code: [src/commands/metadata/lookup.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/metadata/lookup.ts)_
313+
_See code: [src/commands/metadata/lookup.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/metadata/lookup.ts)_
314314

315315
## `airswap metadata:update`
316316

@@ -323,7 +323,7 @@ USAGE
323323
$ airswap metadata:update
324324
```
325325

326-
_See code: [src/commands/metadata/update.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/metadata/update.ts)_
326+
_See code: [src/commands/metadata/update.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/metadata/update.ts)_
327327

328328
## `airswap order:best`
329329

@@ -336,7 +336,7 @@ USAGE
336336
$ airswap order:best
337337
```
338338

339-
_See code: [src/commands/order/best.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/order/best.ts)_
339+
_See code: [src/commands/order/best.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/order/best.ts)_
340340

341341
## `airswap order:get`
342342

@@ -349,7 +349,7 @@ USAGE
349349
$ airswap order:get
350350
```
351351

352-
_See code: [src/commands/order/get.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/order/get.ts)_
352+
_See code: [src/commands/order/get.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/order/get.ts)_
353353

354354
## `airswap quote:best`
355355

@@ -362,7 +362,7 @@ USAGE
362362
$ airswap quote:best
363363
```
364364

365-
_See code: [src/commands/quote/best.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/quote/best.ts)_
365+
_See code: [src/commands/quote/best.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/quote/best.ts)_
366366

367367
## `airswap quote:get`
368368

@@ -375,7 +375,7 @@ USAGE
375375
$ airswap quote:get
376376
```
377377

378-
_See code: [src/commands/quote/get.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/quote/get.ts)_
378+
_See code: [src/commands/quote/get.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/quote/get.ts)_
379379

380380
## `airswap quote:max`
381381

@@ -388,7 +388,7 @@ USAGE
388388
$ airswap quote:max
389389
```
390390

391-
_See code: [src/commands/quote/max.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/quote/max.ts)_
391+
_See code: [src/commands/quote/max.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/quote/max.ts)_
392392

393393
## `airswap quote:stream`
394394

@@ -401,7 +401,7 @@ USAGE
401401
$ airswap quote:stream
402402
```
403403

404-
_See code: [src/commands/quote/stream.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/quote/stream.ts)_
404+
_See code: [src/commands/quote/stream.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/quote/stream.ts)_
405405

406406
## `airswap registry:add`
407407

@@ -414,7 +414,7 @@ USAGE
414414
$ airswap registry:add
415415
```
416416

417-
_See code: [src/commands/registry/add.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/registry/add.ts)_
417+
_See code: [src/commands/registry/add.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/registry/add.ts)_
418418

419419
## `airswap registry:enable`
420420

@@ -427,7 +427,7 @@ USAGE
427427
$ airswap registry:enable
428428
```
429429

430-
_See code: [src/commands/registry/enable.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/registry/enable.ts)_
430+
_See code: [src/commands/registry/enable.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/registry/enable.ts)_
431431

432432
## `airswap registry:get`
433433

@@ -440,7 +440,7 @@ USAGE
440440
$ airswap registry:get
441441
```
442442

443-
_See code: [src/commands/registry/get.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/registry/get.ts)_
443+
_See code: [src/commands/registry/get.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/registry/get.ts)_
444444

445445
## `airswap registry:list`
446446

@@ -453,7 +453,7 @@ USAGE
453453
$ airswap registry:list
454454
```
455455

456-
_See code: [src/commands/registry/list.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/registry/list.ts)_
456+
_See code: [src/commands/registry/list.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/registry/list.ts)_
457457

458458
## `airswap registry:remove`
459459

@@ -466,7 +466,7 @@ USAGE
466466
$ airswap registry:remove
467467
```
468468

469-
_See code: [src/commands/registry/remove.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/registry/remove.ts)_
469+
_See code: [src/commands/registry/remove.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/registry/remove.ts)_
470470

471471
## `airswap registry:url`
472472

@@ -479,7 +479,7 @@ USAGE
479479
$ airswap registry:url
480480
```
481481

482-
_See code: [src/commands/registry/url.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/registry/url.ts)_
482+
_See code: [src/commands/registry/url.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/registry/url.ts)_
483483

484484
## `airswap token:approve`
485485

@@ -492,7 +492,7 @@ USAGE
492492
$ airswap token:approve
493493
```
494494

495-
_See code: [src/commands/token/approve.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/token/approve.ts)_
495+
_See code: [src/commands/token/approve.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/token/approve.ts)_
496496

497497
## `airswap token:transfer`
498498

@@ -505,7 +505,7 @@ USAGE
505505
$ airswap token:transfer
506506
```
507507

508-
_See code: [src/commands/token/transfer.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/token/transfer.ts)_
508+
_See code: [src/commands/token/transfer.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/token/transfer.ts)_
509509

510510
## `airswap weth:deposit`
511511

@@ -518,7 +518,7 @@ USAGE
518518
$ airswap weth:deposit
519519
```
520520

521-
_See code: [src/commands/weth/deposit.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/weth/deposit.ts)_
521+
_See code: [src/commands/weth/deposit.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/weth/deposit.ts)_
522522

523523
## `airswap weth:withdraw`
524524

@@ -531,5 +531,5 @@ USAGE
531531
$ airswap weth:withdraw
532532
```
533533

534-
_See code: [src/commands/weth/withdraw.ts](https://github.com/airswap/airswap-cli/blob/v1.7.0/src/commands/weth/withdraw.ts)_
534+
_See code: [src/commands/weth/withdraw.ts](https://github.com/airswap/airswap-cli/blob/v1.7.1/src/commands/weth/withdraw.ts)_
535535
<!-- commandsstop -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "airswap",
33
"description": "Command Line Interface (CLI) for the AirSwap Network",
4-
"version": "1.7.0",
4+
"version": "1.7.1",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/airswap/airswap-cli"

src/commands/quote/stream.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as jayson from 'jayson'
44
import * as url from 'url'
55
import { Command } from '@oclif/command'
66
import * as utils from '../../lib/utils'
7+
import { getWallet } from '../../lib/wallet'
78
import { get, getTokens, cancelled, clearLines, printQuote, printOrder, confirm } from '../../lib/prompt'
89
import { createLightOrder, createLightSignature, toAtomicString, toDecimalString } from '@airswap/utils'
910
import readline from 'readline'
@@ -16,7 +17,7 @@ export default class OrderStream extends Command {
1617
static description = 'stream quotes for a swap'
1718
async run() {
1819
try {
19-
const wallet = await utils.getWallet(this)
20+
const wallet = await getWallet(this)
2021
const chainId = (await wallet.provider.getNetwork()).chainId
2122
const metadata = await utils.getMetadata(this, chainId)
2223
const math = create(all, {

src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export async function getMetadata(ctx: any, chainId: number) {
8888

8989
export async function updateMetadata(ctx: any, chainId: number) {
9090
const startTime = Date.now()
91-
const tokens = await fetchTokens(chainId)
91+
const tokens: any = await fetchTokens(chainId)
9292
const metadataPath = path.join(ctx.config.configDir, `metadata-${chainNames[chainId]}.json`)
9393

9494
const bySymbol: any = {}

0 commit comments

Comments
 (0)