setup

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Internal package to set up basic configurations for the examples contained in the 'examples' folder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountAddress

func GetAccountAddress() string

Validates whether the ACCOUNT_ADDRESS variable has been set in the '.env' file and returns it; panics otherwise.

func GetAccountCairoVersion

func GetAccountCairoVersion() account.CairoVersion

Validates whether the ACCOUNT_CAIRO_VERSION variable has been set in the '.env' file and returns it; panics otherwise.

func GetPrivateKey

func GetPrivateKey() string

Validates whether the PRIVATE_KEY variable has been set in the '.env' file and returns it; panics otherwise.

func GetPublicKey

func GetPublicKey() string

Validates whether the PUBLIC_KEY variable has been set in the '.env' file and returns it; panics otherwise.

func GetRPCProviderURL added in v0.16.0

func GetRPCProviderURL() string

Validates whether the RPC_PROVIDER_URL variable has been set in the '.env' file and returns it; panics otherwise.

func GetWsProviderURL added in v0.16.0

func GetWsProviderURL() string

Validates whether the WS_PROVIDER_URL variable has been set in the '.env' file and returns it; panics otherwise.

func PadZerosInFelt

func PadZerosInFelt(hexFelt *felt.Felt) string

PadZerosInFelt it's a helper function that pads zeros to the left of a hex felt value to make sure it is 64 characters long.

Types

This section is empty.

Jump to

Keyboard shortcuts

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