-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
59 lines (53 loc) · 1.32 KB
/
types.go
File metadata and controls
59 lines (53 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package main
// CLI Flags
// dev: will be changed when config file feature is added
type ProgramConfig struct {
OutputDir string
ApiKey string
ChainId string
Address string
}
// JSON Demarshalling Types ----------------------------------------------------
type JSONEndpointResponse struct {
Status string
Message string
Result []JSONResult
}
type JSONResult struct {
SourceCode string // it's a string but could be the source code string or a json string of multiple files
ABI string
ContractName string
CompilerVersion string
Runs string
ConstructorArguments string
EVMVersion string
Library string
LicenseType string
Proxy string
Implmentation string
SwarmSource string
}
type JSONSourceCode struct {
Language string
Sources map[string]JSONContent
Settings JSONSettings //todo
}
type JSONContent struct {
Content string
}
type JSONSettings struct {
Optimizer JSONOptimizer
OutputSelection interface{}
ViaIR bool
Libraries interface{}
}
type JSONOptimizer struct {
Enabled bool
Runs int
Details interface{}
}
// Convenience Types -----------------------------------------------------------
type SourceCode struct {
Content string
RelativePath string
}