types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BlockchainProviderStrings = []string{"geth", "besu", "fabric", "corda"}
View Source
var DBSelectionStrings = []string{"postgres", "sqlite3"}
View Source
var ValidTokenProviders = []TokenProvider{NilTokens, ERC1155, ERC20_ERC721}

Functions

This section is empty.

Types

type BlockchainProvider added in v0.0.47

type BlockchainProvider int
const (
	GoEthereum BlockchainProvider = iota
	HyperledgerBesu
	HyperledgerFabric
	Corda
)

func BlockchainProviderFromString added in v0.0.47

func BlockchainProviderFromString(s string) (BlockchainProvider, error)

func (BlockchainProvider) String added in v0.0.47

func (blockchainProvider BlockchainProvider) String() string

type ContractDeploymentResult added in v1.0.0

type ContractDeploymentResult struct {
	Message          string
	DeployedContract *DeployedContract
}

type DatabaseSelection added in v0.0.47

type DatabaseSelection int
const (
	PostgreSQL DatabaseSelection = iota
	SQLite3
)

func DatabaseSelectionFromString added in v0.0.47

func DatabaseSelectionFromString(s string) (DatabaseSelection, error)

func (DatabaseSelection) String added in v0.0.47

func (db DatabaseSelection) String() string

type DeployedContract added in v0.0.47

type DeployedContract struct {
	Name     string      `json:"name"`
	Location interface{} `json:"location"`
}

type GitHubRelease added in v0.0.34

type GitHubRelease struct {
	TagName string `json:"tag_name,omitempty"`
}

type InitOptions added in v0.0.47

type InitOptions struct {
	FireFlyBasePort           int
	ServicesBasePort          int
	DatabaseSelection         DatabaseSelection
	Verbose                   bool
	ExternalProcesses         int
	OrgNames                  []string
	NodeNames                 []string
	BlockchainProvider        BlockchainProvider
	TokenProviders            TokenProviders
	FireFlyVersion            string
	ManifestPath              string
	PrometheusEnabled         bool
	PrometheusPort            int
	SandboxEnabled            bool
	ExtraCoreConfigPath       string
	ExtraEthconnectConfigPath string
	BlockPeriod               int
	ContractAddress           string
}

type ManifestEntry added in v0.0.34

type ManifestEntry struct {
	Image string `json:"image,omitempty"`
	Local bool   `json:"local,omitempty"`
	Tag   string `json:"tag,omitempty"`
	SHA   string `json:"sha,omitempty"`
}

func (*ManifestEntry) GetDockerImageString added in v0.0.34

func (m *ManifestEntry) GetDockerImageString() string

type Member

type Member struct {
	ID                        string      `json:"id,omitempty"`
	Index                     *int        `json:"index,omitempty"`
	Account                   interface{} `json:"account,omitempty"`
	ExposedFireflyPort        int         `json:"exposedFireflyPort,omitempty"`
	ExposedFireflyAdminPort   int         `json:"exposedFireflyAdminPort,omitempty"`
	ExposedFireflyMetricsPort int         `json:"exposedFireflyMetricsPort,omitempty"`
	ExposedConnectorPort      int         `json:"exposedConnectorPort,omitempty"`
	ExposedDatabasePort       int         `json:"exposedPostgresPort,omitempty"`
	ExposedDataexchangePort   int         `json:"exposedDataexchangePort,omitempty"`
	ExposedIPFSApiPort        int         `json:"exposedIPFSApiPort,omitempty"`
	ExposedIPFSGWPort         int         `json:"exposedIPFSGWPort,omitempty"`
	ExposedUIPort             int         `json:"exposedUiPort,omitempty"`
	ExposedSandboxPort        int         `json:"exposedSandboxPort,omitempty"`
	ExposedTokensPorts        []int       `json:"exposedTokensPorts,omitempty"`
	External                  bool        `json:"external,omitempty"`
	OrgName                   string      `json:"orgName,omitempty"`
	NodeName                  string      `json:"nodeName,omitempty"`
}

type PullOptions added in v0.0.47

type PullOptions struct {
	Retries int
}

type Stack

type Stack struct {
	Name                  string           `json:"name,omitempty"`
	Members               []*Member        `json:"members,omitempty"`
	SwarmKey              string           `json:"swarmKey,omitempty"`
	ExposedBlockchainPort int              `json:"exposedBlockchainPort,omitempty"`
	Database              string           `json:"database"`
	BlockchainProvider    string           `json:"blockchainProvider"`
	TokenProviders        TokenProviders   `json:"tokenProviders"`
	VersionManifest       *VersionManifest `json:"versionManifest,omitempty"`
	PrometheusEnabled     bool             `json:"prometheusEnabled,omitempty"`
	SandboxEnabled        bool             `json:"sandboxEnabled,omitempty"`
	ExposedPrometheusPort int              `json:"exposedPrometheusPort,omitempty"`
	ContractAddress       string           `json:"contractAddress,omitempty"`
	InitDir               string           `json:"-"`
	RuntimeDir            string           `json:"-"`
	StackDir              string           `json:"-"`
	State                 *StackState      `json:"-"`
}

type StackState added in v0.0.47

type StackState struct {
	DeployedContracts []*DeployedContract `json:"deployedContracts"`
	Accounts          []interface{}       `json:"accounts"`
}

type StartOptions added in v0.0.47

type StartOptions struct {
	NoRollback bool
}

type TokenProvider added in v0.0.42

type TokenProvider string
const (
	NilTokens    TokenProvider = "none"
	ERC1155      TokenProvider = "erc1155"
	ERC20_ERC721 TokenProvider = "erc20_erc721"
)

type TokenProviders added in v0.0.42

type TokenProviders []TokenProvider

func TokenProvidersFromStrings added in v0.0.47

func TokenProvidersFromStrings(strTokens []string) (tps TokenProviders, err error)

func (TokenProviders) Strings added in v0.0.42

func (tps TokenProviders) Strings() []string

type VersionManifest added in v0.0.34

type VersionManifest struct {
	FireFly           *ManifestEntry `json:"firefly,omitempty"`
	Ethconnect        *ManifestEntry `json:"ethconnect"`
	Fabconnect        *ManifestEntry `json:"fabconnect"`
	DataExchange      *ManifestEntry `json:"dataexchange-https"`
	TokensERC1155     *ManifestEntry `json:"tokens-erc1155"`
	TokensERC20ERC721 *ManifestEntry `json:"tokens-erc20-erc721"`
}

func (*VersionManifest) Entries added in v0.0.35

func (m *VersionManifest) Entries() []*ManifestEntry

Jump to

Keyboard shortcuts

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