sui

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlanEntrySui = "sui"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Logger bard.Logger
}

func (Build) Build

func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)

type Dependency added in v0.1.1

type Dependency struct {
	Git    string `toml:"git"`
	Rev    string `toml:"rev"`
	Subdir string `toml:"subdir"`
}

type DeployWallet

type DeployWallet struct {
	Address   string `json:"suiAddress"`
	KeyScheme string `json:"keyScheme"`
}

type Detect

type Detect struct {
}

func (Detect) Detect

func (d Detect) Detect(context libcnb.DetectContext) (libcnb.DetectResult, error)

type Package added in v0.1.1

type Package struct {
	Dependencies map[string]*Dependency `toml:"dependencies"`
}

type Sui

type Sui struct {
	LayerContributor libpak.DependencyLayerContributor

	Logger   bard.Logger
	Executor effect.Executor
	// contains filtered or unexported fields
}

func NewSui

func NewSui(dependency libpak.BuildpackDependency, cache libpak.DependencyCache, configResolver libpak.ConfigurationResolver) Sui

func (Sui) BuildProcessTypes

func (r Sui) BuildProcessTypes(cr libpak.ConfigurationResolver, app libcnb.Application) ([]libcnb.Process, error)

func (Sui) Contribute

func (r Sui) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (Sui) Execute

func (r Sui) Execute(command string, args []string) (*bytes.Buffer, error)

func (Sui) GetFaucet

func (r Sui) GetFaucet(recipient, deployNetwork string) (bool, error)

Refer to: https://docs.sui.io/guides/developer/getting-started/get-coins#request-test-tokens-through-curl

curl --location --request POST 'https://faucet.devnet.sui.io/gas' \
	--header 'Content-Type: application/json' \
	--data-raw "{
		\"FixedAmountRequest\": {
			\"recipient\": \"${recipient}\"
		}
	}"

func (Sui) ImportingDeployKey

func (r Sui) ImportingDeployKey(deployPrivateKey, deployKeyScheme string) (*bytes.Buffer, error)

func (Sui) InitializeDeployWallet

func (r Sui) InitializeDeployWallet() (bool, error)

func (Sui) InitializeEnv

func (r Sui) InitializeEnv() (*bytes.Buffer, error)

func (Sui) InitializeWallet

func (r Sui) InitializeWallet(deployPrivateKey, deployKeyScheme, deployNetwork string) (bool, error)

func (Sui) Name

func (r Sui) Name() string

func (Sui) SwitchDeployWallet

func (r Sui) SwitchDeployWallet(deployWallet DeployWallet, deployNetwork string) (bool, error)

func (Sui) VerifyingDeployKey

func (r Sui) VerifyingDeployKey(privateKeyData []byte, deployPrivateKey, deployKeyScheme string) (DeployWallet, error)

Jump to

Keyboard shortcuts

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