Help us shape the future of Go! Take the 2026 Go Developer Survey

payloads

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2026 License: GPL-3.0 Imports: 9 Imported by: 4

Documentation

Index

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"`
}

func (*ApiError) Error

func (a *ApiError) Error() string

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 ParseNewTruffleConfig(compilers map[string]providers.Compiler) *Config

func ParseOldTruffleConfig added in v0.4.0

func ParseOldTruffleConfig(solc map[string]providers.Optimizer) *Config

func ParseSolcConfigWithOptimizer added in v1.1.0

func ParseSolcConfigWithOptimizer(compilers map[string]providers.Compiler) *Config

func ParseSolcConfigWithSettings added in v1.1.0

func ParseSolcConfigWithSettings(compilers map[string]providers.Compiler) *Config

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 ConfigMetadata struct {
	UseLiteralContent *bool   `json:"useLiteralContent,omitempty"`
	BytecodeHash      *string `json:"bytecodeHash,omitempty"`
	AppendCBOR        *bool   `json:"appendCBOR,omitempty"`
}

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 GetActionsForExtensionsResponse struct {
	Actions []actions.Action
}

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 GetGatewaysResponse []gateways.Gateway

type GetProjectsResponse

type GetProjectsResponse struct {
	Projects []*model.Project `json:"projects"`
	Error    *ApiError        `json:"error"`
}

type LoginRequest

type LoginRequest struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

type LogoutResponse added in v0.8.0

type LogoutResponse struct {
	Error *ApiError `json:"error"`
}

type NetworkResponse added in v0.8.0

type NetworkResponse struct {
	ID                string `json:"id"`
	Name              string `json:"name"`
	EthereumNetworkID string `json:"ethereum_network_id"`
}

type NetworksResponse added in v0.8.0

type NetworksResponse []*NetworkResponse

type PrincipalResponse added in v0.9.7

type PrincipalResponse struct {
	Principal *model.Principal `json:"principal"`
	Error     *ApiError        `json:"error"`
}

type ProjectRequest

type ProjectRequest struct {
	Name string `json:"name"`
}

func (ProjectRequest) Valid

func (r ProjectRequest) Valid() bool

type ProjectResponse

type ProjectResponse struct {
	Project *model.Project `json:"project"`
	Error   *ApiError      `json:"error"`
}

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 TokenResponse struct {
	ID    string    `json:"id"`
	Token string    `json:"secret"`
	Error *ApiError `json:"error"`
}

type UploadContractsRequest

type UploadContractsRequest struct {
	Contracts []providers.Contract `json:"contracts"`
	Config    *Config              `json:"config,omitempty"`
	Tag       string               `json:"tag,omitempty"`
}

type UploadContractsResponse

type UploadContractsResponse struct {
	Contracts []providers.ApiContract `json:"contracts"`
	Error     *ApiError               `json:"error"`
}

type YulDetails added in v1.2.2

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

Directories

Path Synopsis
generated

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL