armory-cli 0.3.1 → 0.3.2-alpha.3.20
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/dist/cli.js +7 -17
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
import { mkdir, writeFile } from 'fs/promises';
|
|
4
|
+
import prompts from 'prompts';
|
|
5
|
+
import { resolveNetwork, isResolvedNetwork, resolveToken, isResolvedToken, getTokensByChain, getAllTokens, getTestnets, getMainnets } from '@armory-sh/base';
|
|
2
6
|
|
|
3
|
-
// src/cli.ts
|
|
4
|
-
import { join } from "path";
|
|
5
|
-
import { mkdir, writeFile } from "fs/promises";
|
|
6
|
-
import prompts from "prompts";
|
|
7
|
-
import {
|
|
8
|
-
getMainnets,
|
|
9
|
-
getTestnets,
|
|
10
|
-
getAllTokens,
|
|
11
|
-
getTokensByChain,
|
|
12
|
-
resolveNetwork,
|
|
13
|
-
resolveToken,
|
|
14
|
-
isResolvedNetwork,
|
|
15
|
-
isResolvedToken
|
|
16
|
-
} from "@armory-sh/base";
|
|
17
7
|
var GITIGNORE = `node_modules
|
|
18
8
|
dist
|
|
19
9
|
.env
|
|
@@ -123,7 +113,7 @@ var FACILITATOR_PACKAGE = (name) => `{
|
|
|
123
113
|
},
|
|
124
114
|
"dependencies": {
|
|
125
115
|
"@armory-sh/base": "latest",
|
|
126
|
-
"@armory-sh/middleware": "latest"
|
|
116
|
+
"@armory-sh/middleware-hono": "latest"
|
|
127
117
|
}
|
|
128
118
|
}`;
|
|
129
119
|
var FACILITATOR_INDEX = `// Note: The facilitator pattern has changed.
|
|
@@ -481,8 +471,8 @@ function printHelp() {
|
|
|
481
471
|
\u2551 ethers-client Ethers.js v6 client \u2551
|
|
482
472
|
\u2551 web3-client Web3.js client \u2551
|
|
483
473
|
\u2551 \u2551
|
|
484
|
-
\u2551
|
|
485
|
-
\u2551 facilitator Payment verification server
|
|
474
|
+
\u2551 Facilitators: \u2551
|
|
475
|
+
\u2551 facilitator Payment verification server \u2551
|
|
486
476
|
\u2551 \u2551
|
|
487
477
|
\u2560\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2563
|
|
488
478
|
\u2551 EXAMPLES \u2551
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "armory-cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2-alpha.3.20",
|
|
4
4
|
"description": "Scaffold x402 payment-enabled apps",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Sawyer Cutler <sawyer@dirtroad.dev>",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/TheGreatAxios/armory.git",
|
|
11
11
|
"directory": "packages/cli"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/
|
|
13
|
+
"homepage": "https://github.com/TheGreatAxios/armory#readme",
|
|
14
14
|
"bugs": {
|
|
15
|
-
"url": "https://github.com/
|
|
15
|
+
"url": "https://github.com/TheGreatAxios/armory/issues"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"x402",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"test": "bun test"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@armory-sh/base": "0.2.
|
|
43
|
-
"@armory-sh/extensions": "0.1.
|
|
42
|
+
"@armory-sh/base": "0.2.22",
|
|
43
|
+
"@armory-sh/extensions": "0.1.3",
|
|
44
44
|
"prompts": "2.4.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|