Versions in this module Expand all Collapse all v0 v0.1.3 Jun 19, 2023 v0.1.2 Jun 19, 2023 v0.1.1 Jun 19, 2023 Changes in this version + const FIELD_GEN + const FIELD_PRIME + const HashLength + var MaxFelt = StrToFelt(FIELD_PRIME) + func BigToHex(in *big.Int) string + func BytesToBig(bytes []byte) *big.Int + func ComputeFact(programHash *big.Int, programOutputs []*big.Int) *big.Int + func FmtKecBytes(in *big.Int, rolen int) (buf []byte) + func GetSelectorFromName(funcName string) *big.Int + func HexToBN(hexString string) *big.Int + func HexToBytes(hexString string) ([]byte, error) + func HexToShortStr(hexStr string) string + func Keccak256(data ...[]byte) []byte + func MaskBits(mask, wordSize int, slice []byte) (ret []byte) + func SNValToBN(str string) *big.Int + func SplitFactStr(fact string) (fact_low, fact_high string) + func StrToBig(str string) *big.Int + func UTF8StrToBig(str string) *big.Int + type ABI []ABIEntry + type ABIEntry interface + IsType func() ABIType + type ABIType string + const ABITypeConstructor + const ABITypeEvent + const ABITypeFunction + const ABITypeL1Handler + const ABITypeStruct + type AddDeclareResponse struct + ClassHash string + Code string + TransactionHash string + type AddDeployResponse struct + Code string + ContractAddress string + TransactionHash string + type AddInvokeTransactionOutput struct + TransactionHash string + type ContractClass struct + ABI *ABI + EntryPointsByType EntryPointsByType + Program string + func (c *ContractClass) UnmarshalJSON(content []byte) error + type DeployAccountRequest struct + ClassHash string + ConstructorCalldata []string + ContractAddressSalt string + MaxFee *big.Int + Nonce *big.Int + Signature Signature + Type string + Version *big.Int + type DeployRequest struct + ConstructorCalldata []string + ContractAddressSalt string + ContractDefinition ContractClass + Type string + type EntryPoint struct + Offset NumAsHex + Selector string + type EntryPointsByType struct + Constructor []EntryPoint + External []EntryPoint + L1Handler []EntryPoint + type EventABIEntry struct + Data []TypedParameter + Keys []TypedParameter + Name string + Type ABIType + func (e *EventABIEntry) IsType() ABIType + type ExecuteDetails struct + MaxFee *big.Int + Nonce *big.Int + type FeeEstimate struct + GasConsumed NumAsHex + GasPrice NumAsHex + OverallFee NumAsHex + type Felt struct + func BigToFelt(b *big.Int) *Felt + func BytesToFelt(b []byte) *Felt + func StrToFelt(str string) *Felt + func (b *Felt) UnmarshalGQL(v interface{}) error + func (f *Felt) Big() *big.Int + func (f *Felt) Scan(src interface{}) error + func (f *Felt) ShortString() string + func (f *Felt) String() string + func (f *Felt) UnmarshalJSON(p []byte) error + func (f Felt) MarshalGQL(w io.Writer) + func (f Felt) MarshalJSON() ([]byte, error) + func (f Felt) Value() (driver.Value, error) + type FunctionABIEntry struct + Inputs []TypedParameter + Name string + Outputs []TypedParameter + StateMutability *string + Type ABIType + func (f *FunctionABIEntry) IsType() ABIType + type FunctionCall struct + Calldata []string + ContractAddress Hash + EntryPointSelector string + type FunctionInvoke struct + MaxFee *big.Int + Nonce *big.Int + Signature Signature + Type string + Version *big.Int + type Hash [HashLength]byte + func BigToHash(b *big.Int) Hash + func BytesToHash(b []byte) Hash + func HexToHash(s string) Hash + func (Hash) ImplementsGraphQLType(name string) bool + func (h *Hash) Scan(src interface{}) error + func (h *Hash) SetBytes(b []byte) + func (h *Hash) UnmarshalGraphQL(input interface{}) error + func (h *Hash) UnmarshalJSON(input []byte) error + func (h *Hash) UnmarshalText(input []byte) error + func (h Hash) Big() *big.Int + func (h Hash) Bytes() []byte + func (h Hash) Format(s fmt.State, c rune) + func (h Hash) Generate(rand *rand.Rand, size int) reflect.Value + func (h Hash) Hex() string + func (h Hash) MarshalJSON() ([]byte, error) + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) String() string + func (h Hash) TerminalString() string + func (h Hash) Value() (driver.Value, error) + type KeccakState interface + Read func([]byte) (int, error) + func NewKeccakState() KeccakState + type Member struct + Offset uint64 + type NumAsHex string + type Signature []*big.Int + func (s Signature) MarshalJSON() ([]byte, error) + type StructABIEntry struct + Members []Member + Name string + Size uint64 + Type ABIType + func (s *StructABIEntry) IsType() ABIType + type TransactionState string + const TransactionAcceptedOnL1 + const TransactionAcceptedOnL2 + const TransactionNotReceived + const TransactionPending + const TransactionReceived + const TransactionRejected + func (s TransactionState) IsTransactionFinal() bool + func (s TransactionState) String() string + func (ts *TransactionState) UnmarshalJSON(data []byte) error + func (ts TransactionState) MarshalJSON() ([]byte, error) + type TypedParameter struct + Name string + Type string + type Uint256 struct + High *Felt + Low *Felt + func NewUint256(low, high *Felt) (*Uint256, error) + func Uint256FromBig(b *big.Int) (*Uint256, error) + func (u *Uint256) Big() *big.Int + func (u *Uint256) String() string