payloads

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 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]truffle.Compiler) *Config

func ParseOldTruffleConfig added in v0.4.0

func ParseOldTruffleConfig(solc map[string]truffle.Optimizer) *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 []truffle.ApiContract `json:"contracts"`
	Error     *ApiError             `json:"error"`
}

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 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 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 {
	Token string    `json:"token"`
	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 []truffle.Contract `json:"contracts"`
	Config    *Config            `json:"config,omitempty"`
	Tag       string             `json:"tag,omitempty"`
}

type UploadContractsResponse

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

type UserResponse

type UserResponse struct {
	User *model.User `json:"user"`
}

Jump to

Keyboard shortcuts

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