cosmwasm

package
v8.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	DockerImage  string
	Version      string
	RelativePath string
	// contains filtered or unexported fields
}

func NewContract

func NewContract(relativePath string) *Contract

NewContract return a contract struct, populated with defaults and its relative path relativePath is the relative path to the contract on local machine

func (*Contract) Compile

func (c *Contract) Compile() *Contract

Compile will compile the contract

cosmwasm/rust-optimizer is the expected docker image

func (*Contract) WaitForCompile

func (c *Contract) WaitForCompile() (string, error)

WaitForCompile will wait until compilation is complete, this can be called after chain setup Successful compilation will return the binary location in a channel

func (*Contract) WithDockerImage

func (c *Contract) WithDockerImage(image string) *Contract

WithDockerImage sets a custom docker image to use

func (*Contract) WithVersion

func (c *Contract) WithVersion(version string) *Contract

WithVersion sets a custom version to use

type Workspace

type Workspace struct {
	DockerImage  string
	Version      string
	RelativePath string
	// contains filtered or unexported fields
}

func NewWorkspace

func NewWorkspace(relativePath string) *Workspace

NewWorkspace returns a workspace struct, populated with defaults and its relative path relativePath is the relative path to the workspace on local machine

func (*Workspace) Compile

func (w *Workspace) Compile() *Workspace

Compile will compile the workspace's contracts

cosmwasm/workspace-optimizer is the expected docker image

The workspace object is returned, call WaitForCompile() to get results

func (*Workspace) WaitForCompile

func (w *Workspace) WaitForCompile() (map[string]string, error)

WaitForCompile will wait until coyympilation is complete, this can be called after chain setup Successful compilation will return a map of crate names to binary locations in a channel

func (*Workspace) WithDockerImage

func (w *Workspace) WithDockerImage(image string) *Workspace

WithDockerImage sets a custom docker image to use

func (*Workspace) WithVersion

func (w *Workspace) WithVersion(version string) *Workspace

WithVersion sets a custom version to use

Jump to

Keyboard shortcuts

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