Skip to content

Commit

Permalink
published 4.2.0; updated api
Browse files Browse the repository at this point in the history
  • Loading branch information
dmosites committed Feb 9, 2024
1 parent 374903f commit be221df
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 49 deletions.
99 changes: 57 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ $ airswap wrapped:withdraw
* [`airswap registry:eject`](#airswap-registryeject)
* [`airswap registry:list`](#airswap-registrylist)
* [`airswap registry:revoke`](#airswap-registryrevoke)
* [`airswap registry:status`](#airswap-registrystatus)
* [`airswap registry:url`](#airswap-registryurl)
* [`airswap revoke`](#airswap-revoke)
* [`airswap stream`](#airswap-stream)
Expand All @@ -137,7 +138,7 @@ DESCRIPTION
delete the current ethereum account
```

_See code: [src/commands/account/delete.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/account/delete.ts)_
_See code: [src/commands/account/delete.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/account/delete.ts)_

## `airswap account:export`

Expand All @@ -151,7 +152,7 @@ DESCRIPTION
export the current ethereum account
```

_See code: [src/commands/account/export.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/account/export.ts)_
_See code: [src/commands/account/export.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/account/export.ts)_

## `airswap account:generate`

Expand All @@ -165,7 +166,7 @@ DESCRIPTION
generate a new ethereum account
```

_See code: [src/commands/account/generate.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/account/generate.ts)_
_See code: [src/commands/account/generate.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/account/generate.ts)_

## `airswap account:import`

Expand All @@ -179,7 +180,7 @@ DESCRIPTION
import an ethereum account
```

_See code: [src/commands/account/import.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/account/import.ts)_
_See code: [src/commands/account/import.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/account/import.ts)_

## `airswap approve`

Expand All @@ -193,7 +194,7 @@ DESCRIPTION
approve a token for trading
```

_See code: [src/commands/approve.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/approve.ts)_
_See code: [src/commands/approve.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/approve.ts)_

## `airswap balances`

Expand All @@ -207,7 +208,7 @@ DESCRIPTION
display token balances
```

_See code: [src/commands/balances.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/balances.ts)_
_See code: [src/commands/balances.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/balances.ts)_

## `airswap best`

Expand All @@ -221,21 +222,21 @@ DESCRIPTION
compare order pricing from servers
```

_See code: [src/commands/best.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/best.ts)_
_See code: [src/commands/best.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/best.ts)_

## `airswap chain`

set the active ethereum chain
set the active chain

```
USAGE
$ airswap chain
DESCRIPTION
set the active ethereum chain
set the active chain
```

_See code: [src/commands/chain.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/chain.ts)_
_See code: [src/commands/chain.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/chain.ts)_

## `airswap gas`

Expand All @@ -249,7 +250,7 @@ DESCRIPTION
set gas price for transactions
```

_See code: [src/commands/gas.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/gas.ts)_
_See code: [src/commands/gas.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/gas.ts)_

## `airswap help [COMMANDS]`

Expand Down Expand Up @@ -283,7 +284,7 @@ DESCRIPTION
inspect protocols for a server
```

_See code: [src/commands/inspect.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/inspect.ts)_
_See code: [src/commands/inspect.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/inspect.ts)_

## `airswap ip`

Expand All @@ -297,7 +298,7 @@ DESCRIPTION
display local network addresses
```

_See code: [src/commands/ip.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/ip.ts)_
_See code: [src/commands/ip.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/ip.ts)_

## `airswap metadata:add`

Expand All @@ -311,7 +312,7 @@ DESCRIPTION
add token to local metadata
```

_See code: [src/commands/metadata/add.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/metadata/add.ts)_
_See code: [src/commands/metadata/add.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/metadata/add.ts)_

## `airswap metadata:delete`

Expand All @@ -325,7 +326,7 @@ DESCRIPTION
delete token from local metadata
```

_See code: [src/commands/metadata/delete.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/metadata/delete.ts)_
_See code: [src/commands/metadata/delete.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/metadata/delete.ts)_

## `airswap metadata:lookup`

Expand All @@ -339,7 +340,7 @@ DESCRIPTION
lookup token in local metadata
```

_See code: [src/commands/metadata/lookup.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/metadata/lookup.ts)_
_See code: [src/commands/metadata/lookup.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/metadata/lookup.ts)_

## `airswap metadata:update`

Expand All @@ -353,7 +354,7 @@ DESCRIPTION
update local metadata from remote sources
```

_See code: [src/commands/metadata/update.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/metadata/update.ts)_
_See code: [src/commands/metadata/update.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/metadata/update.ts)_

## `airswap order`

Expand All @@ -367,7 +368,7 @@ DESCRIPTION
get an order from a server
```

_See code: [src/commands/order.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/order.ts)_
_See code: [src/commands/order.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/order.ts)_

## `airswap protocols:add`

Expand All @@ -381,35 +382,35 @@ DESCRIPTION
add supported protocols to the registry
```

_See code: [src/commands/protocols/add.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/protocols/add.ts)_
_See code: [src/commands/protocols/add.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/protocols/add.ts)_

## `airswap protocols:list`

list supported protocols from registry
list activated protocols

```
USAGE
$ airswap protocols:list
DESCRIPTION
list supported protocols from registry
list activated protocols
```

_See code: [src/commands/protocols/list.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/protocols/list.ts)_
_See code: [src/commands/protocols/list.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/protocols/list.ts)_

## `airswap protocols:remove`

add supported protocols to the registry
remove supported protocols from the registry

```
USAGE
$ airswap protocols:remove
DESCRIPTION
add supported protocols to the registry
remove supported protocols from the registry
```

_See code: [src/commands/protocols/remove.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/protocols/remove.ts)_
_See code: [src/commands/protocols/remove.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/protocols/remove.ts)_

## `airswap registry:approve`

Expand All @@ -423,21 +424,21 @@ DESCRIPTION
enable staking on the registry
```

_See code: [src/commands/registry/approve.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/registry/approve.ts)_
_See code: [src/commands/registry/approve.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/registry/approve.ts)_

## `airswap registry:eject`

remove supported tokens from the registry
remove url, protocols, and tokens from registry

```
USAGE
$ airswap registry:eject
DESCRIPTION
remove supported tokens from the registry
remove url, protocols, and tokens from registry
```

_See code: [src/commands/registry/eject.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/registry/eject.ts)_
_See code: [src/commands/registry/eject.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/registry/eject.ts)_

## `airswap registry:list`

Expand All @@ -451,7 +452,7 @@ DESCRIPTION
get urls from the registry
```

_See code: [src/commands/registry/list.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/registry/list.ts)_
_See code: [src/commands/registry/list.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/registry/list.ts)_

## `airswap registry:revoke`

Expand All @@ -465,7 +466,21 @@ DESCRIPTION
disable staking on the registry
```

_See code: [src/commands/registry/revoke.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/registry/revoke.ts)_
_See code: [src/commands/registry/revoke.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/registry/revoke.ts)_

## `airswap registry:status`

check status of url, protocols, and tokens on registry

```
USAGE
$ airswap registry:status
DESCRIPTION
check status of url, protocols, and tokens on registry
```

_See code: [src/commands/registry/status.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/registry/status.ts)_

## `airswap registry:url`

Expand All @@ -479,7 +494,7 @@ DESCRIPTION
set server url on the registry
```

_See code: [src/commands/registry/url.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/registry/url.ts)_
_See code: [src/commands/registry/url.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/registry/url.ts)_

## `airswap revoke`

Expand All @@ -493,7 +508,7 @@ DESCRIPTION
revoke a token approval
```

_See code: [src/commands/revoke.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/revoke.ts)_
_See code: [src/commands/revoke.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/revoke.ts)_

## `airswap stream`

Expand All @@ -507,7 +522,7 @@ DESCRIPTION
stream quotes for a swap
```

_See code: [src/commands/stream.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/stream.ts)_
_See code: [src/commands/stream.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/stream.ts)_

## `airswap tokens:add`

Expand All @@ -521,21 +536,21 @@ DESCRIPTION
add supported tokens to the registry
```

_See code: [src/commands/tokens/add.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/tokens/add.ts)_
_See code: [src/commands/tokens/add.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/tokens/add.ts)_

## `airswap tokens:list`

list supported tokens from registry
list activated tokens

```
USAGE
$ airswap tokens:list
DESCRIPTION
list supported tokens from registry
list activated tokens
```

_See code: [src/commands/tokens/list.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/tokens/list.ts)_
_See code: [src/commands/tokens/list.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/tokens/list.ts)_

## `airswap tokens:remove`

Expand All @@ -549,7 +564,7 @@ DESCRIPTION
remove supported tokens from the registry
```

_See code: [src/commands/tokens/remove.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/tokens/remove.ts)_
_See code: [src/commands/tokens/remove.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/tokens/remove.ts)_

## `airswap transfer`

Expand All @@ -563,7 +578,7 @@ DESCRIPTION
transfer tokens to another account
```

_See code: [src/commands/transfer.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/transfer.ts)_
_See code: [src/commands/transfer.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/transfer.ts)_

## `airswap wrapped:deposit`

Expand All @@ -577,7 +592,7 @@ DESCRIPTION
deposit eth to weth
```

_See code: [src/commands/wrapped/deposit.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/wrapped/deposit.ts)_
_See code: [src/commands/wrapped/deposit.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/wrapped/deposit.ts)_

## `airswap wrapped:withdraw`

Expand All @@ -591,5 +606,5 @@ DESCRIPTION
withdraw eth from weth
```

_See code: [src/commands/wrapped/withdraw.ts](https://github.com/airswap/airswap-cli/blob/v4.1.4/src/commands/wrapped/withdraw.ts)_
_See code: [src/commands/wrapped/withdraw.ts](https://github.com/airswap/airswap-cli/blob/v4.2.0/src/commands/wrapped/withdraw.ts)_
<!-- commandsstop -->
2 changes: 1 addition & 1 deletion src/commands/metadata/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import chalk from 'chalk'
import * as fs from 'fs-extra'
import * as path from 'path'
import { get, cancelled } from '../../lib/prompt'
import { chainNames, explorerUrls } from '@airswap/utils'
import { chainNames, explorerUrls, chainLabels } from '@airswap/utils'

export default class MetadataAdd extends Command {
public static description = 'add token to local metadata'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/metadata/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import chalk from 'chalk'
import * as fs from 'fs-extra'
import * as path from 'path'
import { get, cancelled } from '../../lib/prompt'
import { chainNames, explorerUrls } from '@airswap/utils'
import { chainLabels, explorerUrls } from '@airswap/utils'

export default class MetadataDelete extends Command {
public static description = 'delete token from local metadata'
Expand Down
2 changes: 1 addition & 1 deletion src/commands/metadata/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as utils from '../../lib/utils'
import * as fs from 'fs-extra'
import * as path from 'path'
import { get, cancelled } from '../../lib/prompt'
import { chainNames, explorerUrls } from '@airswap/utils'
import { chainLabels, explorerUrls } from '@airswap/utils'

export default class MetadataLookup extends Command {
public static description = 'lookup token in local metadata'
Expand Down
Loading

0 comments on commit be221df

Please sign in to comment.