Documentation ¶
Index ¶
- 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 Export
- type ExportTransactionRequest
- type ExportTransactionResponse
- type GenerateAccessTokenRequest
- type GetContractsResponse
- type GetProjectsResponse
- type LoginRequest
- type LogoutResponse
- type NetworkData
- type NetworkResponse
- type NetworksResponse
- type PrincipalResponse
- type ProjectRequest
- type ProjectResponse
- type RegisterRequest
- type RemoveContractsRequest
- type RemoveContractsResponse
- type RenameContractRequest
- type RenameContractResponse
- type TokenResponse
- type TransactionData
- type UploadContractsRequest
- type UploadContractsResponse
- type YulDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.3.0
type Config struct { OptimizationsUsed *bool `json:"optimizations_used,omitempty"` OptimizationsCount *int `json:"optimizations_count,omitempty"` EvmVersion *string `json:"evm_version,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 Export ¶ added in v0.6.0
type Export struct { ID string `json:"id"` Hash string `json:"hash"` BlockHash string `json:"block_hash"` BlockNumber int64 `json:"block_number"` From string `json:"from"` Gas int64 `json:"gas"` GasPrice int64 `json:"gas_price"` Input string `json:"input"` Nonce int64 `json:"nonce"` To *string `json:"to"` Value string `json:"value"` Status bool `json:"status"` }
type ExportTransactionRequest ¶ added in v0.6.0
type ExportTransactionRequest struct { NetworkData NetworkData `json:"network_data"` TransactionData TransactionData `json:"transaction_data"` ContractsData UploadContractsRequest `json:"contracts_data"` }
type ExportTransactionResponse ¶ added in v0.6.0
type ExportTransactionResponse struct { Export *Export `json:"export"` Contracts []providers.ApiContract `json:"contracts"` Error *ApiError `json:"error"` }
type GenerateAccessTokenRequest ¶ added in v0.8.0
type GenerateAccessTokenRequest struct {
Name string `json:"name"`
}
type GetContractsResponse ¶ added in v1.4.0
type GetContractsResponse struct { Contracts []providers.ApiContract `json:"contracts"` Error *ApiError `json:"error"` }
type GetProjectsResponse ¶
type LoginRequest ¶
type LogoutResponse ¶ added in v0.8.0
type LogoutResponse struct {
Error *ApiError `json:"error"`
}
type NetworkData ¶ added in v0.6.0
type NetworkData struct { Name string `json:"name"` NetworkId string `json:"network_id"` ForkedNetwork string `json:"forked_network"` ChainConfig *params.ChainConfig `json:"chain_config"` }
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 []string `json:"account_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 TransactionData ¶ added in v0.6.0
type TransactionData struct { Transaction types.Transaction `json:"transaction"` State *model.TransactionState `json:"state"` Status bool `json:"status"` }
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.