Versions in this module Expand all Collapse all v0 v0.2.0 Sep 6, 2022 GO-2025-3583 GO-2025-3583: Nethermind Juno Potential Denial of Service (DoS) via Integer Overflow in github.com/NethermindEth/juno Changes in this version + const BlockOfStarknetDeploymentContractGoerli + const BlockOfStarknetDeploymentContractMainnet + const GpsVerifierContractAddressGoerli + const GpsVerifierContractAddressMainnet + const MemoryPagesContractAddressGoerli + const MemoryPagesContractAddressMainnet + var BlockStatusName = map[BlockStatus]string + var BlockStatusValue = map[string]BlockStatus + var TxStatusName = map[TxnStatus]string + var TxStatusValue = map[string]TxnStatus + type Abi []struct + type Block struct + AcceptedTime int64 + BlockHash *felt.Felt + BlockNumber uint64 + EventCommitment *felt.Felt + EventCount uint64 + NewRoot *felt.Felt + OldRoot *felt.Felt + ParentHash *felt.Felt + Sequencer *felt.Felt + Status BlockStatus + TimeStamp int64 + TxCommitment *felt.Felt + TxCount uint64 + TxHashes []*felt.Felt + type BlockStatus int32 + const BlockStatusAcceptedOnL1 + const BlockStatusAcceptedOnL2 + const BlockStatusPending + const BlockStatusProven + const BlockStatusRejected + const BlockStatusUnknown + func StringToBlockStatus(s string) BlockStatus + func (b BlockStatus) MarshalJSON() ([]byte, error) + func (b BlockStatus) String() string + type BlockTag string + type Contract struct + Abi Abi + Bytecode []*felt.Felt + FullDef json.RawMessage + func (c *Contract) MarshalJSON() ([]byte, error) + func (c *Contract) UnmarshalJSON(data []byte) error + func (c *Contract) UnmarshalRaw(raw *json.RawMessage) error + type ContractInfo struct + Address common.Address + Contract abi.ABI + EventName string + type DeployedContract struct + Address *felt.Felt + ConstructorCallData []*felt.Felt + Hash *felt.Felt + type Dictionary struct + func NewDictionary() *Dictionary + func (dict *Dictionary) Add(key interface{}, value IValue) + func (dict *Dictionary) Exist(key interface{}) bool + func (dict *Dictionary) Get(key interface{}) (interface{}, bool) + func (dict *Dictionary) Remove(key interface{}) + func (dict *Dictionary) Size() int + type EthAddress eth.Address + func BytesToEthAddress(b []byte) EthAddress + func HexToEthAddress(s string) EthAddress + func (a EthAddress) Bytes() []byte + func (a EthAddress) MarshalJSON() ([]byte, error) + type Event struct + Data []*felt.Felt + FromAddress *felt.Felt + Keys []*felt.Felt + type EventInfo struct + Address common.Address + Block uint64 + Event map[string]interface{} + InitialBlockLogged int64 + TxnHash common.Hash + type Fact struct + InitialBlockLogged int64 + SequenceNumber uint64 + StateRoot *felt.Felt + Value common.Hash + func (f Fact) Marshal() ([]byte, error) + func (f Fact) UnMarshal(bytes []byte) (IValue, error) + type IValue interface + Marshal func() ([]byte, error) + UnMarshal func([]byte) (IValue, error) + type IsTransaction interface + GetHash func() *felt.Felt + type MemoryCell struct + Address *felt.Felt + Value *felt.Felt + type MsgToL1 struct + FromAddress *felt.Felt + Payload []*felt.Felt + ToAddress EthAddress + type MsgToL2 struct + FromAddress EthAddress + Payload []*felt.Felt + ToAddress *felt.Felt + type PagesHash struct + Bytes [][32]byte + func (p PagesHash) Marshal() ([]byte, error) + func (p PagesHash) UnMarshal(bytes []byte) (IValue, error) + type StateUpdate struct + BlockHash *felt.Felt + BlockNumber int64 + DeclaredContracts []*felt.Felt + DeployedContracts []DeployedContract + NewRoot *felt.Felt + OldRoot *felt.Felt + type StorageDiff map[felt.Felt][]MemoryCell + type SyncStatus struct + CurrentBlockHash string + CurrentBlockNumber string + HighestBlockHash string + HighestBlockNumber string + StartingBlockHash string + StartingBlockNumber string + type TransactionDeclare struct + ClassHash *felt.Felt + Hash *felt.Felt + MaxFee *felt.Felt + Nonce *felt.Felt + SenderAddress *felt.Felt + Signature []*felt.Felt + Version *felt.Felt + func (tx *TransactionDeclare) GetHash() *felt.Felt + type TransactionDeploy struct + ClassHash *felt.Felt + ConstructorCallData []*felt.Felt + ContractAddress *felt.Felt + ContractAddressSalt *felt.Felt + Hash *felt.Felt + func (tx *TransactionDeploy) GetHash() *felt.Felt + type TransactionInvoke struct + CallData []*felt.Felt + ContractAddress *felt.Felt + EntryPointSelector *felt.Felt + Hash *felt.Felt + MaxFee *felt.Felt + Signature []*felt.Felt + func (tx *TransactionInvoke) GetHash() *felt.Felt + type TxnDeclareReceipt struct + type TxnDeployReceipt struct + type TxnHash struct + Hash common.Hash + func (t TxnHash) Marshal() ([]byte, error) + func (t TxnHash) UnMarshal(bytes []byte) (IValue, error) + type TxnInvokeReceipt struct + Events []*Event + L1OriginMessage *MsgToL2 + MessagesSent []*MsgToL1 + type TxnReceipt interface + type TxnReceiptCommon struct + ActualFee *felt.Felt + BlockHash *felt.Felt + BlockNumber uint64 + Status TxnStatus + TxnHash *felt.Felt + type TxnStatus int64 + const TxStatusAcceptedOnL1 + const TxStatusAcceptedOnL2 + const TxStatusNotReceived + const TxStatusPending + const TxStatusReceived + const TxStatusRejected + const TxStatusUnknown + func (s TxnStatus) String() string