model

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountID

type AccountID string

type Contract

type Contract struct {
	ID ContractID

	AccountID *AccountID `json:"account_id"`
	ProjectID *ProjectID `json:"project_id"`

	Name                  string                `json:"contract_name"`
	LowercaseName         string                `json:"lowercase_contract_name"`
	Abi                   string                `json:"abi"`
	Bytecode              string                `json:"bytecode"`
	SourceMap             string                `json:"source_map"`
	Source                string                `json:"source"`
	NumberOfExceptions    int                   `json:"number_of_exceptions"`
	LastEventOccurredAt   *time.Time            `json:"last_event_occurred_at"`
	DeploymentInformation DeploymentInformation `json:"deployment_information"`

	VerificationDate time.Time `json:"verification_date"`
	CreatedAt        time.Time `json:"created_at"`
}

type ContractAddress

type ContractAddress string

type ContractID

type ContractID string

type DeploymentInformation

type DeploymentInformation struct {
	NetworkID NetworkID       `json:"network_id"`
	Address   ContractAddress `json:"address"`
}

type NetworkID

type NetworkID string

type Project

type Project struct {
	ID        AccountID `json:"id"`
	Name      string    `json:"name"`
	Slug      string    `json:"slug"`
	Owner     AccountID `json:"owner_id"`
	CreatedAt time.Time `json:"created_at"`
}

type ProjectID

type ProjectID struct {
	AccountID AccountID
	Name      string
}

type User

type User struct {
	ID AccountID `json:"id"`

	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Username  string `json:"username"`
	Email     string `json:"email"`

	CreatedAt time.Time `json:"-"`
}

Jump to

Keyboard shortcuts

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