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 ¶
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.