@aave/cli 4.1.0-next.0
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/LICENSE +21 -0
- package/README.md +76 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/commands/hubs/list.d.ts +13 -0
- package/dist/commands/hubs/list.js +46 -0
- package/dist/commands/spokes/list.d.ts +15 -0
- package/dist/commands/spokes/list.js +79 -0
- package/dist/common.d.ts +21 -0
- package/dist/common.js +30 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/oclif.manifest.json +133 -0
- package/package.json +65 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Aave Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
@aave/cli
|
|
2
|
+
=================
|
|
3
|
+
|
|
4
|
+
CLI to interact with AaveKit API
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
[](https://oclif.io)
|
|
8
|
+
[](https://npmjs.org/package/@aave/cli)
|
|
9
|
+
[](https://npmjs.org/package/@aave/cli)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<!-- toc -->
|
|
13
|
+
* [Usage](#usage)
|
|
14
|
+
* [Commands](#commands)
|
|
15
|
+
<!-- tocstop -->
|
|
16
|
+
# Usage
|
|
17
|
+
<!-- usage -->
|
|
18
|
+
```sh-session
|
|
19
|
+
$ npm install -g @aave/cli
|
|
20
|
+
$ aave COMMAND
|
|
21
|
+
running command...
|
|
22
|
+
$ aave (--version)
|
|
23
|
+
@aave/cli/4.1.0-next.0 darwin-arm64 node-v22.17.0
|
|
24
|
+
$ aave --help [COMMAND]
|
|
25
|
+
USAGE
|
|
26
|
+
$ aave COMMAND
|
|
27
|
+
...
|
|
28
|
+
```
|
|
29
|
+
<!-- usagestop -->
|
|
30
|
+
# Commands
|
|
31
|
+
<!-- commands -->
|
|
32
|
+
* [`aave hubs list`](#aave-hubs-list)
|
|
33
|
+
* [`aave spokes list`](#aave-spokes-list)
|
|
34
|
+
|
|
35
|
+
## `aave hubs list`
|
|
36
|
+
|
|
37
|
+
List Aave v4 liquidity hubs
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
USAGE
|
|
41
|
+
$ aave hubs list [--json] [-c <chain-id>]
|
|
42
|
+
|
|
43
|
+
FLAGS
|
|
44
|
+
-c, --chain=<chain-id> The chain ID (e.g. 1, 137, 42161)
|
|
45
|
+
|
|
46
|
+
GLOBAL FLAGS
|
|
47
|
+
--json Format output as json.
|
|
48
|
+
|
|
49
|
+
DESCRIPTION
|
|
50
|
+
List Aave v4 liquidity hubs
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
_See code: [src/commands/hubs/list.ts](https://github.com/aave/aave-v4-sdk/blob/v4.1.0-next.0/src/commands/hubs/list.ts)_
|
|
54
|
+
|
|
55
|
+
## `aave spokes list`
|
|
56
|
+
|
|
57
|
+
List Aave v4 spokes
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
USAGE
|
|
61
|
+
$ aave spokes list [--json] [-h <hub-id>] [--hub_address <evm-address> -c <chain-id>]
|
|
62
|
+
|
|
63
|
+
FLAGS
|
|
64
|
+
-c, --chain_id=<chain-id> The chain ID (e.g. 1, 137, 42161)
|
|
65
|
+
-h, --hub_id=<hub-id> The hub ID (e.g. SGVsbG8h…)
|
|
66
|
+
--hub_address=<evm-address> The hub address (e.g. 0x123…)
|
|
67
|
+
|
|
68
|
+
GLOBAL FLAGS
|
|
69
|
+
--json Format output as json.
|
|
70
|
+
|
|
71
|
+
DESCRIPTION
|
|
72
|
+
List Aave v4 spokes
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
_See code: [src/commands/spokes/list.ts](https://github.com/aave/aave-v4-sdk/blob/v4.1.0-next.0/src/commands/spokes/list.ts)_
|
|
76
|
+
<!-- commandsstop -->
|
package/bin/dev.cmd
ADDED
package/bin/dev.js
ADDED
package/bin/run.cmd
ADDED
package/bin/run.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Hub } from '@aave/client';
|
|
2
|
+
import * as common from '../../common.js';
|
|
3
|
+
export default class ListHubs extends common.V4Command {
|
|
4
|
+
static description: string;
|
|
5
|
+
static flags: {
|
|
6
|
+
chain: import("@oclif/core/interfaces").OptionFlag<import("@aave/types").ChainId | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
};
|
|
8
|
+
headers: {
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
private getHubsRequest;
|
|
12
|
+
run(): Promise<Hub[]>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ChainsFilter, InvariantError, ok, ResultAsync, } from '@aave/client';
|
|
2
|
+
import { chains, hubs } from '@aave/client/actions';
|
|
3
|
+
import * as common from '../../common.js';
|
|
4
|
+
export default class ListHubs extends common.V4Command {
|
|
5
|
+
static description = 'List Aave v4 liquidity hubs';
|
|
6
|
+
static flags = {
|
|
7
|
+
chain: common.chain(),
|
|
8
|
+
};
|
|
9
|
+
headers = [
|
|
10
|
+
{ value: 'Hub' },
|
|
11
|
+
{ value: 'Address' },
|
|
12
|
+
{ value: 'Chain' },
|
|
13
|
+
{ value: 'ID' },
|
|
14
|
+
];
|
|
15
|
+
getHubsRequest() {
|
|
16
|
+
return ResultAsync.fromPromise(this.parse(ListHubs), (error) => new InvariantError(String(error))).andThen(({ flags }) => {
|
|
17
|
+
if (flags.chain) {
|
|
18
|
+
return ok({
|
|
19
|
+
query: {
|
|
20
|
+
chainIds: [flags.chain],
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return chains(this.client, {
|
|
25
|
+
query: { filter: ChainsFilter.ALL },
|
|
26
|
+
}).andThen((items) => ok({
|
|
27
|
+
query: {
|
|
28
|
+
chainIds: items.map((item) => item.chainId),
|
|
29
|
+
},
|
|
30
|
+
}));
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async run() {
|
|
34
|
+
const result = await this.getHubsRequest().andThen((request) => hubs(this.client, request));
|
|
35
|
+
if (result.isErr()) {
|
|
36
|
+
this.error(result.error);
|
|
37
|
+
}
|
|
38
|
+
this.display(result.value.map((item) => [
|
|
39
|
+
item.name,
|
|
40
|
+
item.address,
|
|
41
|
+
`${item.chain.name} (id=${item.chain.chainId})`,
|
|
42
|
+
`${item.id}`,
|
|
43
|
+
]));
|
|
44
|
+
return result.value;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Spoke } from '@aave/client';
|
|
2
|
+
import * as common from '../../common.js';
|
|
3
|
+
export default class ListSpokes extends common.V4Command {
|
|
4
|
+
static description: string;
|
|
5
|
+
static flags: {
|
|
6
|
+
hub_id: import("@oclif/core/interfaces").OptionFlag<import("@aave/graphql").HubId | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
chain_id: import("@oclif/core/interfaces").OptionFlag<import("@aave/types").ChainId | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
hub_address: import("@oclif/core/interfaces").OptionFlag<import("@aave/types").EvmAddress | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
};
|
|
10
|
+
protected headers: {
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
private getSpokesRequest;
|
|
14
|
+
run(): Promise<Spoke[]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { InvariantError, invariant, ok, ResultAsync, } from '@aave/client';
|
|
2
|
+
import { spokes } from '@aave/client/actions';
|
|
3
|
+
import * as common from '../../common.js';
|
|
4
|
+
export default class ListSpokes extends common.V4Command {
|
|
5
|
+
static description = 'List Aave v4 spokes';
|
|
6
|
+
static flags = {
|
|
7
|
+
hub_id: common.hub({
|
|
8
|
+
relationships: [
|
|
9
|
+
{
|
|
10
|
+
type: 'none',
|
|
11
|
+
flags: ['chain_id', 'hub_address'],
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
}),
|
|
15
|
+
chain_id: common.chain({
|
|
16
|
+
required: false,
|
|
17
|
+
relationships: [
|
|
18
|
+
{
|
|
19
|
+
type: 'none',
|
|
20
|
+
flags: ['hub_id'],
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
}),
|
|
24
|
+
hub_address: common.address({
|
|
25
|
+
name: 'hub_address',
|
|
26
|
+
description: 'The hub address (e.g. 0x123…)',
|
|
27
|
+
relationships: [
|
|
28
|
+
{
|
|
29
|
+
type: 'none',
|
|
30
|
+
flags: ['hub_id'],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
type: 'all',
|
|
34
|
+
flags: ['chain_id'],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
dependsOn: ['chain_id'],
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
headers = [
|
|
41
|
+
{ value: 'Spoke' },
|
|
42
|
+
{ value: 'Address' },
|
|
43
|
+
{ value: 'Chain' },
|
|
44
|
+
{ value: 'ID' },
|
|
45
|
+
];
|
|
46
|
+
getSpokesRequest() {
|
|
47
|
+
return ResultAsync.fromPromise(this.parse(ListSpokes), (error) => new InvariantError(String(error))).andThen(({ flags }) => {
|
|
48
|
+
if (flags.chain_id && flags.hub_address) {
|
|
49
|
+
return ok({
|
|
50
|
+
query: {
|
|
51
|
+
hub: {
|
|
52
|
+
address: flags.hub_address,
|
|
53
|
+
chainId: flags.chain_id,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
invariant(flags.hub_id, 'You must provide a <hub> or <hub_address> and <chain>');
|
|
59
|
+
return ok({
|
|
60
|
+
query: {
|
|
61
|
+
hubId: flags.hub_id,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
async run() {
|
|
67
|
+
const result = await this.getSpokesRequest().andThen((request) => spokes(this.client, request));
|
|
68
|
+
if (result.isErr()) {
|
|
69
|
+
this.error(result.error);
|
|
70
|
+
}
|
|
71
|
+
this.display(result.value.map((item) => [
|
|
72
|
+
item.name,
|
|
73
|
+
item.address,
|
|
74
|
+
`${item.chain.name} (id=${item.chain.chainId})`,
|
|
75
|
+
item.id,
|
|
76
|
+
]));
|
|
77
|
+
return result.value;
|
|
78
|
+
}
|
|
79
|
+
}
|
package/dist/common.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AaveClient, type ChainId, type EvmAddress, type HubId } from '@aave/client';
|
|
2
|
+
import { Command } from '@oclif/core';
|
|
3
|
+
import TtyTable from 'tty-table';
|
|
4
|
+
export declare const chain: import("@oclif/core/interfaces").FlagDefinition<ChainId, import("@oclif/core/interfaces").CustomOptions, {
|
|
5
|
+
multiple: false;
|
|
6
|
+
requiredOrDefaulted: false;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const hub: import("@oclif/core/interfaces").FlagDefinition<HubId, import("@oclif/core/interfaces").CustomOptions, {
|
|
9
|
+
multiple: false;
|
|
10
|
+
requiredOrDefaulted: false;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const address: import("@oclif/core/interfaces").FlagDefinition<EvmAddress, import("@oclif/core/interfaces").CustomOptions, {
|
|
13
|
+
multiple: false;
|
|
14
|
+
requiredOrDefaulted: false;
|
|
15
|
+
}>;
|
|
16
|
+
export declare abstract class V4Command extends Command {
|
|
17
|
+
protected headers: TtyTable.Header[];
|
|
18
|
+
static enableJsonFlag: boolean;
|
|
19
|
+
protected client: AaveClient;
|
|
20
|
+
protected display(rows: unknown[]): void;
|
|
21
|
+
}
|
package/dist/common.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AaveClient, chainId, evmAddress, hubId, } from '@aave/client';
|
|
2
|
+
import { Command, Flags } from '@oclif/core';
|
|
3
|
+
import TtyTable from 'tty-table';
|
|
4
|
+
export const chain = Flags.custom({
|
|
5
|
+
char: 'c',
|
|
6
|
+
name: 'chain',
|
|
7
|
+
description: 'The chain ID (e.g. 1, 137, 42161)',
|
|
8
|
+
helpValue: '<chain-id>',
|
|
9
|
+
parse: async (input) => chainId(Number(input)),
|
|
10
|
+
});
|
|
11
|
+
export const hub = Flags.custom({
|
|
12
|
+
char: 'h',
|
|
13
|
+
name: 'hub',
|
|
14
|
+
description: 'The hub ID (e.g. SGVsbG8h…)',
|
|
15
|
+
helpValue: '<hub-id>',
|
|
16
|
+
parse: async (input) => hubId(input),
|
|
17
|
+
});
|
|
18
|
+
export const address = Flags.custom({
|
|
19
|
+
parse: async (input) => evmAddress(input),
|
|
20
|
+
helpValue: '<evm-address>',
|
|
21
|
+
});
|
|
22
|
+
export class V4Command extends Command {
|
|
23
|
+
headers = [];
|
|
24
|
+
static enableJsonFlag = true;
|
|
25
|
+
client = AaveClient.create();
|
|
26
|
+
display(rows) {
|
|
27
|
+
const out = TtyTable(this.headers, rows).render();
|
|
28
|
+
this.log(out);
|
|
29
|
+
}
|
|
30
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { run } from '@oclif/core';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { run } from '@oclif/core';
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"commands": {
|
|
3
|
+
"hubs:list": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {},
|
|
6
|
+
"description": "List Aave v4 liquidity hubs",
|
|
7
|
+
"flags": {
|
|
8
|
+
"json": {
|
|
9
|
+
"description": "Format output as json.",
|
|
10
|
+
"helpGroup": "GLOBAL",
|
|
11
|
+
"name": "json",
|
|
12
|
+
"allowNo": false,
|
|
13
|
+
"type": "boolean"
|
|
14
|
+
},
|
|
15
|
+
"chain": {
|
|
16
|
+
"char": "c",
|
|
17
|
+
"description": "The chain ID (e.g. 1, 137, 42161)",
|
|
18
|
+
"name": "chain",
|
|
19
|
+
"hasDynamicHelp": false,
|
|
20
|
+
"helpValue": "<chain-id>",
|
|
21
|
+
"multiple": false,
|
|
22
|
+
"type": "option"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"hasDynamicHelp": false,
|
|
26
|
+
"hiddenAliases": [],
|
|
27
|
+
"id": "hubs:list",
|
|
28
|
+
"pluginAlias": "@aave/cli",
|
|
29
|
+
"pluginName": "@aave/cli",
|
|
30
|
+
"pluginType": "core",
|
|
31
|
+
"strict": true,
|
|
32
|
+
"enableJsonFlag": true,
|
|
33
|
+
"isESM": true,
|
|
34
|
+
"relativePath": [
|
|
35
|
+
"dist",
|
|
36
|
+
"commands",
|
|
37
|
+
"hubs",
|
|
38
|
+
"list.js"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"spokes:list": {
|
|
42
|
+
"aliases": [],
|
|
43
|
+
"args": {},
|
|
44
|
+
"description": "List Aave v4 spokes",
|
|
45
|
+
"flags": {
|
|
46
|
+
"json": {
|
|
47
|
+
"description": "Format output as json.",
|
|
48
|
+
"helpGroup": "GLOBAL",
|
|
49
|
+
"name": "json",
|
|
50
|
+
"allowNo": false,
|
|
51
|
+
"type": "boolean"
|
|
52
|
+
},
|
|
53
|
+
"hub_id": {
|
|
54
|
+
"char": "h",
|
|
55
|
+
"description": "The hub ID (e.g. SGVsbG8h…)",
|
|
56
|
+
"name": "hub_id",
|
|
57
|
+
"relationships": [
|
|
58
|
+
{
|
|
59
|
+
"type": "none",
|
|
60
|
+
"flags": [
|
|
61
|
+
"chain_id",
|
|
62
|
+
"hub_address"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"hasDynamicHelp": false,
|
|
67
|
+
"helpValue": "<hub-id>",
|
|
68
|
+
"multiple": false,
|
|
69
|
+
"type": "option"
|
|
70
|
+
},
|
|
71
|
+
"chain_id": {
|
|
72
|
+
"char": "c",
|
|
73
|
+
"description": "The chain ID (e.g. 1, 137, 42161)",
|
|
74
|
+
"name": "chain_id",
|
|
75
|
+
"relationships": [
|
|
76
|
+
{
|
|
77
|
+
"type": "none",
|
|
78
|
+
"flags": [
|
|
79
|
+
"hub_id"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"required": false,
|
|
84
|
+
"hasDynamicHelp": false,
|
|
85
|
+
"helpValue": "<chain-id>",
|
|
86
|
+
"multiple": false,
|
|
87
|
+
"type": "option"
|
|
88
|
+
},
|
|
89
|
+
"hub_address": {
|
|
90
|
+
"dependsOn": [
|
|
91
|
+
"chain_id"
|
|
92
|
+
],
|
|
93
|
+
"description": "The hub address (e.g. 0x123…)",
|
|
94
|
+
"name": "hub_address",
|
|
95
|
+
"relationships": [
|
|
96
|
+
{
|
|
97
|
+
"type": "none",
|
|
98
|
+
"flags": [
|
|
99
|
+
"hub_id"
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "all",
|
|
104
|
+
"flags": [
|
|
105
|
+
"chain_id"
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"hasDynamicHelp": false,
|
|
110
|
+
"helpValue": "<evm-address>",
|
|
111
|
+
"multiple": false,
|
|
112
|
+
"type": "option"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"hasDynamicHelp": false,
|
|
116
|
+
"hiddenAliases": [],
|
|
117
|
+
"id": "spokes:list",
|
|
118
|
+
"pluginAlias": "@aave/cli",
|
|
119
|
+
"pluginName": "@aave/cli",
|
|
120
|
+
"pluginType": "core",
|
|
121
|
+
"strict": true,
|
|
122
|
+
"enableJsonFlag": true,
|
|
123
|
+
"isESM": true,
|
|
124
|
+
"relativePath": [
|
|
125
|
+
"dist",
|
|
126
|
+
"commands",
|
|
127
|
+
"spokes",
|
|
128
|
+
"list.js"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"version": "4.1.0-next.0"
|
|
133
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aave/cli",
|
|
3
|
+
"version": "4.1.0-next.0",
|
|
4
|
+
"description": "CLI to interact with AaveKit API",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"aave",
|
|
7
|
+
"cli"
|
|
8
|
+
],
|
|
9
|
+
"repository": {
|
|
10
|
+
"directory": "packages/cli",
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git://github.com/aave/aave-v4-sdk.git"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"bin": {
|
|
18
|
+
"aave": "./bin/run.js"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=22.17.0"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"./bin",
|
|
25
|
+
"./dist",
|
|
26
|
+
"./oclif.manifest.json"
|
|
27
|
+
],
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@oclif/core": "^4",
|
|
30
|
+
"@oclif/plugin-help": "^6",
|
|
31
|
+
"@oclif/plugin-plugins": "^5",
|
|
32
|
+
"tty-table": "^5.0.0",
|
|
33
|
+
"@aave/client": "4.0.0-next.7"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@oclif/test": "^4",
|
|
37
|
+
"@types/node": "^24",
|
|
38
|
+
"oclif": "^4",
|
|
39
|
+
"rimraf": "^6.1.2",
|
|
40
|
+
"tsx": "^4.20.3",
|
|
41
|
+
"typescript": "^5"
|
|
42
|
+
},
|
|
43
|
+
"oclif": {
|
|
44
|
+
"bin": "aave",
|
|
45
|
+
"dirname": "aave",
|
|
46
|
+
"commands": "./dist/commands",
|
|
47
|
+
"topicSeparator": " ",
|
|
48
|
+
"topics": {
|
|
49
|
+
"hubs": {
|
|
50
|
+
"description": "List available liquidity hubs"
|
|
51
|
+
},
|
|
52
|
+
"spokes": {
|
|
53
|
+
"description": "List available spokes"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"publishConfig": {
|
|
59
|
+
"access": "public"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build": "rimraf dist && tsc -b",
|
|
63
|
+
"version": "oclif readme && git add README.md"
|
|
64
|
+
}
|
|
65
|
+
}
|