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 ¶
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 ¶
Compile will compile the contract
cosmwasm/rust-optimizer is the expected docker image
func (*Contract) WaitForCompile ¶
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 ¶
WithDockerImage sets a custom docker image to use
func (*Contract) WithVersion ¶
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 ¶
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 ¶
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 ¶
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 ¶
WithDockerImage sets a custom docker image to use
func (*Workspace) WithVersion ¶
WithVersion sets a custom version to use