payloads

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

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

func (*ApiError) Error

func (a *ApiError) Error() string

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

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 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 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 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 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 TokenResponse

type TokenResponse struct {
	ID    string    `json:"id"`
	Token string    `json:"secret"`
	Error *ApiError `json:"error"`
}

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

Jump to

Keyboard shortcuts

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