Documentation ¶
Index ¶
- Constants
- Variables
- func AddHexPrefix(s string) string
- func DecimalFromHex(s string) decimal.Decimal
- func EncodeHex(data []byte) string
- func GetSelectorFromName(name string) string
- func GetSelectorWithPrefixFromName(name string) string
- func Keccak(data []byte) []byte
- func MustDecodeHex(s string) []byte
- func TrimHex(val string) string
- func TrimmedHex(data []byte) string
Constants ¶
View Source
const ( DefaultEntrypoint = "__default__" ConstructorEntrypoint = "constructor" DefaultL1Entrypoint = "__l1_default__" ExecuteEntrypoint = "__execute__" TransferEntrypoint = "transfer" ValidateEntrypoint = "__validate__" ValidateDeclareEntrypoint = "__validate_declare__" ValidateDeployEntrypoint = "__validate_deploy__" ChangeModulesEntrypoint = "changeModules" DefaultEntrypoitSelector = 0x0 )
entrypoint names
Variables ¶
View Source
var ( ExecuteEntrypointSelector = MustDecodeHex("0x15d40a3d6ca2ac30f4031e42be28da9b056fef9bb7357ac5e85627ee876e5ad") ConstructorSelector = MustDecodeHex("0x28ffe4ff0f226a9107253e17a904099aa4f63a02a5621de0576e5aa71bc5194") ValidateDeclareEntrypointSelector = MustDecodeHex("0x289da278a8dc833409cabfdad1581e8e7d40e42dcaed693fa4008dcdb4963b3") ChangeModuleEntrypointSelector = MustDecodeHex("0x3ffada7235f48d4811be030385f19e6d50e2cfa368ded42f1892666f834e407") )
Functions ¶
func GetSelectorWithPrefixFromName ¶
GetSelectorWithPrefixFromName -
func Keccak ¶
Keccak - A variant of eth-keccak that computes a value that fits in a StarkNet field element.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.