gauntlet

package
v0.0.0-...-1a51124 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 9 Imported by: 1

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 Request

type Request struct {
	Input   map[string]any `json:"input"`
	Command string         `json:"command"`
}

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) 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) 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

type StarknetGauntletPlusPlus

type StarknetGauntletPlusPlus struct {
	// contains filtered or unexported fields
}

func NewStarknetGauntletPlusPlus

func NewStarknetGauntletPlusPlus(gauntletPPEndpoint string, rpcURL string, address string, privateKey string) (*StarknetGauntletPlusPlus, error)

New StarknetGauntletPlusPlus creates a default g++ client with responses

func (*StarknetGauntletPlusPlus) AddAccess

func (sgpp *StarknetGauntletPlusPlus) AddAccess(aggregatorAddress string, grantAddress string) error

func (*StarknetGauntletPlusPlus) BuildProviders

func (sgpp *StarknetGauntletPlusPlus) BuildProviders(address string, rpcURL string, privateKey string) *[]g.Provider

func (*StarknetGauntletPlusPlus) BuildRequestBody

func (sgpp *StarknetGauntletPlusPlus) BuildRequestBody(request Request) *g.PostExecuteJSONRequestBody

func (*StarknetGauntletPlusPlus) DeclareAccessControllerContract

func (sgpp *StarknetGauntletPlusPlus) DeclareAccessControllerContract() error

func (*StarknetGauntletPlusPlus) DeclareLinkTokenContract

func (sgpp *StarknetGauntletPlusPlus) DeclareLinkTokenContract() error

func (*StarknetGauntletPlusPlus) DeclareOCR2ControllerProxyContract

func (sgpp *StarknetGauntletPlusPlus) DeclareOCR2ControllerProxyContract() error

func (*StarknetGauntletPlusPlus) DeclareOCR2Controllercontract

func (sgpp *StarknetGauntletPlusPlus) DeclareOCR2Controllercontract() error

func (*StarknetGauntletPlusPlus) DeclareOzAccount

func (sgpp *StarknetGauntletPlusPlus) DeclareOzAccount() error

func (*StarknetGauntletPlusPlus) DeployAccessControllerContract

func (sgpp *StarknetGauntletPlusPlus) DeployAccessControllerContract(address string) (string, error)

func (*StarknetGauntletPlusPlus) DeployLinkTokenContract

func (sgpp *StarknetGauntletPlusPlus) DeployLinkTokenContract(address string) (string, error)

func (*StarknetGauntletPlusPlus) DeployOCR2ControllerContract

func (sgpp *StarknetGauntletPlusPlus) DeployOCR2ControllerContract(minSubmissionValue int64, maxSubmissionValue int64, decimals int, name string,
	linkTokenAddress string, address string, accessControllerAddress string) (string, error)

func (*StarknetGauntletPlusPlus) DeployOCR2ControllerProxyContract

func (sgpp *StarknetGauntletPlusPlus) DeployOCR2ControllerProxyContract(address string, controllerContractAddress string) (string, error)

func (*StarknetGauntletPlusPlus) DeployOzAccount

func (sgpp *StarknetGauntletPlusPlus) DeployOzAccount(publicKey string) (string, error)

func (*StarknetGauntletPlusPlus) ExtractValueFromResponseBody

func (sgpp *StarknetGauntletPlusPlus) ExtractValueFromResponseBody(report g.Report, key string) (string, error)

func (*StarknetGauntletPlusPlus) SetConfigDetails

func (sgpp *StarknetGauntletPlusPlus) SetConfigDetails(cfg string, ocrAddress string) (g.Report, error)

func (*StarknetGauntletPlusPlus) SetOCRBilling

func (sgpp *StarknetGauntletPlusPlus) SetOCRBilling(observationPaymentGjuels int64, transmissionPaymentGjuels int64, ocrAddress string) (g.Report, error)

func (*StarknetGauntletPlusPlus) TransferToken

func (sgpp *StarknetGauntletPlusPlus) TransferToken(tokenAddress string, to string, amount string) error

Jump to

Keyboard shortcuts

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