@@ -23,16 +23,16 @@ export async function run() {
23
23
const { proveUsage, execUsage } = generateCommandUsage ( )
24
24
cli
25
25
. command ( 'compile' , 'Compile for Full Image (Link Compiled with Compiler Server)' )
26
- . option ( '--local' , 'Compile for Local Image' )
26
+ // .option('--local', 'Compile for Local Image')
27
27
. option ( '--yaml-path <path>' , 'Path to yaml file' )
28
28
. option ( '--mapping-path <path>' , 'Path to mapping file' )
29
29
. example ( 'cle compile' )
30
30
. action ( ( options ) => {
31
- const { local = false , yamlPath = '' , mappingPath = '' } = options
32
- const wasmPath = local ? config . LocalWasmBinPath : config . WasmBinPath
31
+ const { yamlPath = '' , mappingPath = '' } = options
32
+ const wasmPath = config . WasmBinPath
33
33
34
34
compile ( {
35
- local,
35
+ // local,
36
36
yamlPath : yamlPath || config . YamlPath ,
37
37
compilerServerEndpoint : config . CompilerServerEndpoint ,
38
38
wasmPath,
@@ -43,14 +43,14 @@ export async function run() {
43
43
44
44
cli
45
45
. command ( 'exec [...params]' , 'Execute Full Image' )
46
- . option ( '--local' , 'Execute Local Image' )
46
+ // .option('--local', 'Execute Local Image')
47
47
. example ( 'cle exec 0000000' )
48
- . action ( ( params , options ) => {
49
- const { local = false } = options
50
- const wasmPath = local ? config . LocalWasmBinPath : config . WasmBinPath
48
+ . action ( ( params , _options ) => {
49
+ // const { local = false } = options
50
+ const wasmPath = config . WasmBinPath
51
51
52
52
exec ( {
53
- local,
53
+ // local,
54
54
wasmPath,
55
55
yamlPath : config . YamlPath ,
56
56
jsonRpcProviderUrl : config . JsonRpcProviderUrl ,
@@ -64,13 +64,14 @@ Usage cases:
64
64
65
65
cli
66
66
. command ( 'setup' , 'Set Up Full Image' )
67
- . option ( '--local' , 'Set Up Local Image' )
67
+ // .option('--local', 'Set Up Local Image')
68
68
. option ( '-k, --circuit-size <size>' , 'Circuit size (k in 2^k) of image' )
69
69
. example ( 'cle setup -k 20' )
70
70
. action ( ( options ) => {
71
- const { circuitSize = '' , local = false } = options
72
- const wasmPath = local ? config . LocalWasmBinPath : config . WasmBinPath
73
- const size = ! circuitSize || circuitSize === 0 ? local ? 20 : 22 : Number ( circuitSize )
71
+ // const { circuitSize = '', local = false } = options
72
+ const { circuitSize = '' } = options
73
+ const wasmPath = config . WasmBinPath
74
+ const size = ! circuitSize || circuitSize === 0 ? 22 : Number ( circuitSize )
74
75
setup ( {
75
76
circuitSize : size ,
76
77
wasmPath,
@@ -81,7 +82,7 @@ Usage cases:
81
82
82
83
const proveCLI = cli
83
84
. command ( 'prove [...params]' , 'Prove Full Image' )
84
- . option ( '--local' , 'Prove Local Image' )
85
+ // .option('--local', 'Prove Local Image')
85
86
. option ( '-i, --inputgen' , 'Run in input generation Mode' )
86
87
. option ( '-t, --test' , 'Run in test Mode' )
87
88
. option ( '-p, --prove' , 'Run in prove Mode' )
@@ -90,7 +91,7 @@ Usage cases:
90
91
. example ( 'cle prove 2279547 a60ecf32309539dd84f27a9563754dca818b815e -p' )
91
92
. action ( ( params , options ) => {
92
93
// eslint-disable-next-line prefer-const
93
- let { inputgen = false , test = false , prove = false , local = false } = options
94
+ let { inputgen = false , test = false , prove = false } = options
94
95
const hasMode = proveCLIHasModeOption ( )
95
96
if ( ! hasMode )
96
97
test = true
@@ -100,14 +101,14 @@ Usage cases:
100
101
proveCLI . outputHelp ( )
101
102
return
102
103
}
103
- const wasmPath = local ? config . LocalWasmBinPath : config . WasmBinPath
104
+ const wasmPath = config . WasmBinPath
104
105
105
106
proveHandler ( {
106
107
params,
107
108
inputgen,
108
109
test,
109
110
prove,
110
- local,
111
+ // local,
111
112
wasmPath,
112
113
yamlPath : config . YamlPath ,
113
114
jsonRpcProviderUrl : config . JsonRpcProviderUrl ,
@@ -123,13 +124,13 @@ Usage cases:
123
124
124
125
cli
125
126
. command ( 'upload' , 'Upload CLE (Code and Full Image)' )
126
- . option ( '--local' , 'Upload Local CLE (Code and Local Image)' )
127
+ // .option('--local', 'Upload Local CLE (Code and Local Image)')
127
128
. example ( 'cle upload' )
128
- . action ( ( options ) => {
129
- const { local = false } = options
129
+ . action ( ( _options ) => {
130
+ // const { local = false } = options
130
131
upload ( {
131
- local,
132
- wasmPath : local ? config . LocalWasmBinPath : config . WasmBinPath ,
132
+ // local,
133
+ wasmPath : config . WasmBinPath ,
133
134
yamlPath : config . YamlPath ,
134
135
pinataEndpoint : config . PinataEndpoint ,
135
136
pinataJWT : config . PinataJWT ,
0 commit comments