Documentation ¶
Index ¶
- Constants
- type Build
- type Dependency
- type DeployWallet
- type Detect
- type Package
- type Sui
- func (r Sui) BuildProcessTypes(cr libpak.ConfigurationResolver, app libcnb.Application) ([]libcnb.Process, error)
- func (r Sui) Contribute(layer libcnb.Layer) (libcnb.Layer, error)
- func (r Sui) Execute(command string, args []string) (*bytes.Buffer, error)
- func (r Sui) GetFaucet(recipient, deployNetwork string) (bool, error)
- func (r Sui) ImportingDeployKey(deployPrivateKey, deployKeyScheme string) (*bytes.Buffer, error)
- func (r Sui) InitializeDeployWallet() (bool, error)
- func (r Sui) InitializeEnv() (*bytes.Buffer, error)
- func (r Sui) InitializeWallet(deployPrivateKey, deployKeyScheme, deployNetwork string) (bool, error)
- func (r Sui) Name() string
- func (r Sui) SwitchDeployWallet(deployWallet DeployWallet, deployNetwork string) (bool, error)
- func (r Sui) VerifyingDeployKey(privateKeyData []byte, deployPrivateKey, deployKeyScheme string) (DeployWallet, error)
Constants ¶
View Source
const (
PlanEntrySui = "sui"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
func (Build) Build ¶
func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)
type Dependency ¶ added in v0.1.1
type DeployWallet ¶
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) GetFaucet ¶
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 (Sui) InitializeDeployWallet ¶
func (Sui) InitializeWallet ¶
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)
Click to show internal directories.
Click to hide internal directories.