Documentation
¶
Index ¶
- Constants
- type ApiError
- type Config
- func ParseNewTruffleConfig(compilers map[string]providers.Compiler) *Config
- func ParseOldTruffleConfig(solc map[string]providers.Optimizer) *Config
- func ParseSolcConfigWithOptimizer(compilers map[string]providers.Compiler) *Config
- func ParseSolcConfigWithSettings(compilers map[string]providers.Compiler) *Config
- type ConfigDetails
- type ConfigMetadata
- type DeployExtensionResponse
- type GenerateAccessTokenRequest
- type GetActionsForExtensionsResponse
- type GetContractsResponse
- type GetExtensionsResponse
- type GetGatewaysResponse
- type GetProjectsResponse
- type LoginRequest
- type LogoutResponse
- type NetworkResponse
- type NetworksResponse
- type PrincipalResponse
- type ProjectRequest
- type ProjectResponse
- type RegisterRequest
- type RemoveContractsRequest
- type RemoveContractsResponse
- type RenameContractRequest
- type RenameContractResponse
- type TokenResponse
- type UploadContractsRequest
- type UploadContractsResponse
- type YulDetails
Constants ¶
View Source
const DefaultOptimizerRuns = 200
DefaultOptimizerRuns is solc's default optimizer runs value. The API forces a missing optimizations_count to 200 anyway, so we always send it explicitly.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type ApiError struct {
Message string `json:"message"`
Slug string `json:"slug,omitempty"`
Data json.RawMessage `json:"data,omitempty"`
}
type Config ¶ added in v0.3.0
type Config struct {
CompilerVersion string `json:"compiler_version,omitempty"`
OptimizationsUsed *bool `json:"optimizations_used,omitempty"`
OptimizationsCount *int `json:"optimizations_count,omitempty"`
EvmVersion *string `json:"evm_version,omitempty"`
ViaIR *bool `json:"via_ir,omitempty"`
Remappings []string `json:"remappings,omitempty"`
Libraries map[string]string `json:"libraries,omitempty"`
Metadata *ConfigMetadata `json:"metadata,omitempty"`
Details *ConfigDetails `json:"details,omitempty"`
}
func ParseNewTruffleConfig ¶ added in v0.4.0
func ParseOldTruffleConfig ¶ added in v0.4.0
func ParseSolcConfigWithOptimizer ¶ added in v1.1.0
type ConfigDetails ¶ added in v1.2.2
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"`
Inliner *bool `json:"inliner,omitempty"`
YulDetails *YulDetails `json:"yulDetails,omitempty"`
}
type ConfigMetadata ¶ added in v1.7.0
type DeployExtensionResponse ¶ added in v1.5.12
type DeployExtensionResponse struct{}
type GenerateAccessTokenRequest ¶ added in v0.8.0
type GenerateAccessTokenRequest struct {
Name string `json:"name"`
}
type GetActionsForExtensionsResponse ¶ added in v1.5.12
type GetContractsResponse ¶ added in v1.4.0
type GetContractsResponse struct {
Contracts []providers.ApiContract `json:"contracts"`
Error *ApiError `json:"error"`
}
type GetExtensionsResponse ¶ added in v1.5.12
type GetExtensionsResponse struct {
Handlers []extensions.BackendExtension
}
type GetGatewaysResponse ¶ added in v1.5.12
type GetProjectsResponse ¶
type LoginRequest ¶
type LogoutResponse ¶ added in v0.8.0
type LogoutResponse struct {
Error *ApiError `json:"error"`
}
type NetworkResponse ¶ added in v0.8.0
type NetworksResponse ¶ added in v0.8.0
type NetworksResponse []*NetworkResponse
type PrincipalResponse ¶ added in v0.9.7
type ProjectRequest ¶
type ProjectRequest struct {
Name string `json:"name"`
}
func (ProjectRequest) Valid ¶
func (r ProjectRequest) Valid() bool
type ProjectResponse ¶
type RegisterRequest ¶
type RegisterRequest struct {
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
Username string `json:"username"`
Email string `json:"email"`
Password string `json:"password"`
}
func (RegisterRequest) Valid ¶
func (r RegisterRequest) Valid() bool
type RemoveContractsRequest ¶ added in v1.4.0
type RemoveContractsRequest struct {
// ContractIDs are in the "eth:{networkID}:{address}" format.
ContractIDs []string `json:"contract_ids"`
}
type RemoveContractsResponse ¶ added in v1.4.0
type RemoveContractsResponse struct {
Error *ApiError `json:"error"`
}
type RenameContractRequest ¶ added in v1.5.0
type RenameContractRequest struct {
DisplayName string `json:"display_name"`
}
type RenameContractResponse ¶ added in v1.5.0
type RenameContractResponse struct {
Error *ApiError `json:"error"`
}
type TokenResponse ¶
type UploadContractsRequest ¶
type UploadContractsResponse ¶
type UploadContractsResponse struct {
Contracts []providers.ApiContract `json:"contracts"`
Error *ApiError `json:"error"`
}
type YulDetails ¶ added in v1.2.2
Source Files
¶
Click to show internal directories.
Click to hide internal directories.