File tree Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,18 @@ const DEFAULT_CONFIG_PATH = 'config/';
35
35
36
36
const embark5ChangesUrl = 'https://framework.embarklabs.io/docs/migrating_from_3.x.html#Updating-to-v5' ;
37
37
38
+ export interface EmbarkConfig {
39
+ app ?: any ;
40
+ contracts : string [ ] ;
41
+ config : string ;
42
+ versions : {
43
+ solc : string ;
44
+ } ;
45
+ generationDir ?: string ;
46
+ plugins ?: any ;
47
+ buildDir ?: string ;
48
+ }
49
+
38
50
export class Config {
39
51
40
52
env = 'default' ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export type Callback<Tv> = (err?: Error | null, val?: Tv) => void;
3
3
export type Maybe < T > = false | 0 | undefined | null | T ;
4
4
5
5
import { AbiItem } from "web3-utils" ;
6
+ import { EmbarkConfig as _EmbarkConfig } from './config' ;
6
7
7
8
export interface Contract {
8
9
abiDefinition : AbiItem [ ] ;
@@ -67,18 +68,9 @@ export interface EmbarkEvents {
67
68
) : void ;
68
69
}
69
70
70
- export interface EmbarkConfig {
71
+ export interface Configuration {
71
72
contractsFiles : any [ ] ;
72
- embarkConfig : {
73
- contracts : string [ ] | string ;
74
- config : {
75
- contracts : string ;
76
- } ;
77
- versions : {
78
- solc : string ;
79
- } ;
80
- generationDir : string ;
81
- } ;
73
+ embarkConfig : _EmbarkConfig ;
82
74
blockchainConfig : {
83
75
endpoint : string ;
84
76
accounts : any [ ] ;
@@ -115,7 +107,7 @@ export interface Embark {
115
107
registerConsoleCommand : any ;
116
108
logger : Logger ;
117
109
fs : any ;
118
- config : EmbarkConfig ;
110
+ config : Configuration ;
119
111
currentContext : string [ ] ;
120
112
registerActionForEvent < T > (
121
113
name : string ,
@@ -128,6 +120,7 @@ export { ProcessLauncher } from './processes/processLauncher';
128
120
export { ProcessWrapper } from './processes/processWrapper' ;
129
121
130
122
export { Config } from './config' ;
123
+ export type EmbarkConfig = _EmbarkConfig ;
131
124
export { IPC } from './ipc' ;
132
125
import { EmbarkEmitter as Events } from './events' ;
133
126
export { Events } ;
You can’t perform that action at this time.
0 commit comments