gauntlet

package
v0.0.0-...-055b24f Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GauntletResponse

type GauntletResponse struct {
	Responses []struct {
		Tx struct {
			Hash    string `json:"hash"`
			Address string `json:"address"`
			Status  string `json:"status"`

			Tx struct {
				Address         string   `json:"address"`
				Code            string   `json:"code"`
				Result          []string `json:"result"`
				TransactionHash string   `json:"transaction_hash"`
			} `json:"tx"`
		} `json:"tx"`
		Contract string `json:"contract"`
	} `json:"responses"`
}

GauntletResponse Default response output for starknet gauntlet commands

type StarknetGauntlet

type StarknetGauntlet struct {
	G *gauntlet.Gauntlet
	// contains filtered or unexported fields
}

func NewStarknetGauntlet

func NewStarknetGauntlet(workingDir string) (*StarknetGauntlet, error)

NewStarknetGauntlet Creates a default gauntlet config

func (*StarknetGauntlet) AddAccess

func (sg *StarknetGauntlet) AddAccess(aggregator, address string) (string, error)

func (*StarknetGauntlet) DeployAccessControllerContract

func (sg *StarknetGauntlet) DeployAccessControllerContract() (string, error)

func (*StarknetGauntlet) DeployAccountContract

func (sg *StarknetGauntlet) DeployAccountContract(salt int64, pubKey string) (string, error)

func (*StarknetGauntlet) DeployLinkTokenContract

func (sg *StarknetGauntlet) DeployLinkTokenContract() (string, error)

func (*StarknetGauntlet) DeployOCR2ControllerContract

func (sg *StarknetGauntlet) DeployOCR2ControllerContract(minSubmissionValue int64, maxSubmissionValue int64, decimals int, name string, linkTokenAddress string) (string, error)

func (*StarknetGauntlet) DeployOCR2ProxyContract

func (sg *StarknetGauntlet) DeployOCR2ProxyContract(aggregator string) (string, error)

func (*StarknetGauntlet) FetchGauntletJSONOutput

func (sg *StarknetGauntlet) FetchGauntletJSONOutput() (*GauntletResponse, error)

FetchGauntletJSONOutput Parse gauntlet json response that is generated after yarn gauntlet command execution

func (*StarknetGauntlet) InstallDependencies

func (sg *StarknetGauntlet) InstallDependencies() error

func (*StarknetGauntlet) MintLinkToken

func (sg *StarknetGauntlet) MintLinkToken(token, to, amount string) (string, error)

func (*StarknetGauntlet) SetConfigDetails

func (sg *StarknetGauntlet) SetConfigDetails(cfg string, ocrAddress string) (string, error)

func (*StarknetGauntlet) SetOCRBilling

func (sg *StarknetGauntlet) SetOCRBilling(observationPaymentGjuels int64, transmissionPaymentGjuels int64, ocrAddress string) (string, error)

func (*StarknetGauntlet) SetupNetwork

func (sg *StarknetGauntlet) SetupNetwork(addr string, account string, privateKey string) error

SetupNetwork Sets up a new network and sets the NODE_URL for Devnet / Starknet RPC

func (*StarknetGauntlet) TransferToken

func (sg *StarknetGauntlet) TransferToken(token, to, amount string) (string, error)

Jump to

Keyboard shortcuts

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