setup

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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() int

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

func GetRpcProviderUrl() string

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

func PadZerosInFelt

func PadZerosInFelt(hexFelt *felt.Felt) string

PadZerosInFelt pads zeros to the left of a hex felt value to make it 64 characters long.

func PanicRPC

func PanicRPC(err error)

Default "panic" but printing all RPCError fields (code, message, and data)

Types

This section is empty.

Jump to

Keyboard shortcuts

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