@cartesi/cli 2.0.0-alpha.4 → 2.0.0-alpha.5
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/base.d.ts +14 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/base.js +77 -0
- package/dist/commands/address-book.d.ts +2 -8
- package/dist/commands/address-book.d.ts.map +1 -1
- package/dist/commands/address-book.js +15 -14
- package/dist/commands/build.d.ts +2 -11
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +16 -28
- package/dist/commands/clean.d.ts +2 -7
- package/dist/commands/clean.d.ts.map +1 -1
- package/dist/commands/clean.js +9 -10
- package/dist/commands/create.d.ts +2 -14
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +37 -51
- package/dist/commands/deploy/build.d.ts +2 -14
- package/dist/commands/deploy/build.d.ts.map +1 -1
- package/dist/commands/deploy/build.js +41 -47
- package/dist/commands/deploy.d.ts +3 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/{deploy/index.js → deploy.js} +26 -28
- package/dist/commands/doctor.d.ts +2 -12
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +83 -90
- package/dist/commands/hash.d.ts +2 -9
- package/dist/commands/hash.d.ts.map +1 -1
- package/dist/commands/hash.js +14 -14
- package/dist/commands/run.d.ts +2 -21
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +46 -88
- package/dist/commands/send/erc20.d.ts +2 -13
- package/dist/commands/send/erc20.d.ts.map +1 -1
- package/dist/commands/send/erc20.js +55 -52
- package/dist/commands/send/erc721.d.ts +2 -13
- package/dist/commands/send/erc721.d.ts.map +1 -1
- package/dist/commands/send/erc721.js +49 -46
- package/dist/commands/send/ether.d.ts +2 -12
- package/dist/commands/send/ether.d.ts.map +1 -1
- package/dist/commands/send/ether.js +23 -21
- package/dist/commands/send/generic.d.ts +2 -14
- package/dist/commands/send/generic.d.ts.map +1 -1
- package/dist/commands/send/generic.js +91 -97
- package/dist/commands/send.d.ts +21 -0
- package/dist/commands/send.d.ts.map +1 -0
- package/dist/commands/send.js +67 -0
- package/dist/commands/shell.d.ts +2 -14
- package/dist/commands/shell.d.ts.map +1 -1
- package/dist/commands/shell.js +21 -43
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -1
- package/package.json +6 -25
- package/bin/dev.cmd +0 -3
- package/bin/dev.js +0 -25
- package/bin/run.cmd +0 -3
- package/bin/run.js +0 -8
- package/dist/baseCommand.d.ts +0 -22
- package/dist/baseCommand.d.ts.map +0 -1
- package/dist/baseCommand.js +0 -92
- package/dist/commands/deploy/index.d.ts +0 -12
- package/dist/commands/deploy/index.d.ts.map +0 -1
- package/dist/commands/send/index.d.ts +0 -28
- package/dist/commands/send/index.d.ts.map +0 -1
- package/dist/commands/send/index.js +0 -102
- package/dist/flags.d.ts +0 -17
- package/dist/flags.d.ts.map +0 -1
- package/dist/flags.js +0 -28
- package/oclif.manifest.json +0 -883
package/dist/flags.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare const address: import("@oclif/core/lib/interfaces").FlagDefinition<`0x${string}`, import("@oclif/core/lib/interfaces").CustomOptions, {
|
|
2
|
-
multiple: false;
|
|
3
|
-
requiredOrDefaulted: false;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const bigint: import("@oclif/core/lib/interfaces").FlagDefinition<bigint, import("@oclif/core/lib/interfaces").CustomOptions, {
|
|
6
|
-
multiple: false;
|
|
7
|
-
requiredOrDefaulted: false;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const number: import("@oclif/core/lib/interfaces").FlagDefinition<`${number}`, import("@oclif/core/lib/interfaces").CustomOptions, {
|
|
10
|
-
multiple: false;
|
|
11
|
-
requiredOrDefaulted: false;
|
|
12
|
-
}>;
|
|
13
|
-
export declare const hex: import("@oclif/core/lib/interfaces").FlagDefinition<`0x${string}`, import("@oclif/core/lib/interfaces").CustomOptions, {
|
|
14
|
-
multiple: false;
|
|
15
|
-
requiredOrDefaulted: false;
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=flags.d.ts.map
|
package/dist/flags.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;EAOlB,CAAC;AAGH,eAAO,MAAM,MAAM;;;EAEjB,CAAC;AAGH,eAAO,MAAM,MAAM;;;EAEjB,CAAC;AAGH,eAAO,MAAM,GAAG;;;EAOd,CAAC"}
|
package/dist/flags.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Flags } from "@oclif/core";
|
|
2
|
-
import { isAddress, isHex } from "viem";
|
|
3
|
-
// custom flag for Address, does validation
|
|
4
|
-
export const address = Flags.custom({
|
|
5
|
-
parse: async (input) => {
|
|
6
|
-
if (isAddress(input)) {
|
|
7
|
-
return input;
|
|
8
|
-
}
|
|
9
|
-
throw new Error("Invalid address");
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
// custom flag for bigint
|
|
13
|
-
export const bigint = Flags.custom({
|
|
14
|
-
parse: async (input) => BigInt(input),
|
|
15
|
-
});
|
|
16
|
-
// custom flag for string number
|
|
17
|
-
export const number = Flags.custom({
|
|
18
|
-
parse: async (input) => input,
|
|
19
|
-
});
|
|
20
|
-
// custom flag for hex string
|
|
21
|
-
export const hex = Flags.custom({
|
|
22
|
-
parse: async (input) => {
|
|
23
|
-
if (isHex(input)) {
|
|
24
|
-
return input;
|
|
25
|
-
}
|
|
26
|
-
throw new Error("Invalid hex string");
|
|
27
|
-
},
|
|
28
|
-
});
|