Skip to content

Commit

Permalink
Pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
delta003 committed Dec 14, 2021
1 parent 934e543 commit fb60efb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions providers/deployment_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,20 @@ type Optimizer struct {
}

type OptimizerDetails struct {
Peephole bool `json:"peephole,omitempty"`
JumpdestRemover bool `json:"jumpdestRemover,omitempty"`
OrderLiterals bool `json:"orderLiterals,omitempty"`
Deduplicate bool `json:"deduplicate,omitempty"`
Cse bool `json:"cse,omitempty"`
ConstantOptimizer bool `json:"constantOptimizer,omitempty"`
Yul bool `json:"yul,omitempty"`
Peephole *bool `json:"peephole,omitempty"`
JumpdestRemover *bool `json:"jumpdestRemover,omitempty"`
OrderLiterals *bool `json:"orderLiterals,omitempty"`
Deduplicate *bool `json:"deduplicate,omitempty"`
Cse *bool `json:"cse,omitempty"`
ConstantOptimizer *bool `json:"constantOptimizer,omitempty"`
Yul *bool `json:"yul,omitempty"`
Inliner *bool `json:"inliner,omitempty"`
YulDetails *YulDetails `json:"yulDetails,omitempty"`
}

type YulDetails struct {
StackAllocation bool `json:"stackAllocation,omitempty"`
OptimizerSteps string `json:"optimizerSteps,omitempty"`
StackAllocation *bool `json:"stackAllocation,omitempty"`
OptimizerSteps *string `json:"optimizerSteps,omitempty"`
}

type Contract struct {
Expand Down
18 changes: 9 additions & 9 deletions rest/payloads/contractPayloads.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ type Config struct {
}

type ConfigDetails struct {
Peephole bool `json:"peephole,omitempty"`
JumpdestRemover bool `json:"jumpdestRemover,omitempty"`
OrderLiterals bool `json:"orderLiterals,omitempty"`
Deduplicate bool `json:"deduplicate,omitempty"`
Cse bool `json:"cse,omitempty"`
ConstantOptimizer bool `json:"constantOptimizer,omitempty"`
Yul bool `json:"yul,omitempty"`
Peephole *bool `json:"peephole,omitempty"`
JumpdestRemover *bool `json:"jumpdestRemover,omitempty"`
OrderLiterals *bool `json:"orderLiterals,omitempty"`
Deduplicate *bool `json:"deduplicate,omitempty"`
Cse *bool `json:"cse,omitempty"`
ConstantOptimizer *bool `json:"constantOptimizer,omitempty"`
Yul *bool `json:"yul,omitempty"`
Inliner *bool `json:"inliner,omitempty"`
YulDetails *YulDetails `json:"yulDetails,omitempty"`
}

type YulDetails struct {
StackAllocation bool `json:"stackAllocation,omitempty"`
OptimizerSteps string `json:"optimizerSteps,omitempty"`
StackAllocation *bool `json:"stackAllocation,omitempty"`
OptimizerSteps *string `json:"optimizerSteps,omitempty"`
}

func ParseNewTruffleConfig(compilers map[string]providers.Compiler) *Config {
Expand Down

0 comments on commit fb60efb

Please sign in to comment.