p2p2core

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptAddress added in v0.7.4

func AdaptAddress(h *common.Address) *felt.Address

func AdaptBlockHeader added in v0.10.0

func AdaptBlockHeader(
	h *header.SignedBlockHeader,
) (*core.Header, error)

func AdaptClass added in v0.10.0

func AdaptClass(
	ctx context.Context,
	compiler compiler.Compiler,
	cls *class.Class,
) (core.ClassDefinition, error)

func AdaptDeclareV3TxnCommon added in v0.14.7

func AdaptDeclareV3TxnCommon(
	tx *transaction.DeclareV3Common,
	classHash *felt.ClassHash,
	txnHash *common.Hash,
) (*core.DeclareTransaction, error)

func AdaptDeclareV3WithClass added in v0.15.3

func AdaptDeclareV3WithClass(
	ctx context.Context,
	compiler compiler.Compiler,
	tx *transaction.DeclareV3WithClass,
	txnHash *common.Hash,
) (*core.DeclareTransaction, *core.SierraClass, error)

func AdaptDeployAccountV3TxnCommon added in v0.14.7

func AdaptDeployAccountV3TxnCommon(
	tx *transaction.DeployAccountV3,
	txnHash *common.Hash,
) (*core.DeployAccountTransaction, error)

func AdaptEthAddress added in v0.10.0

func AdaptEthAddress(h *receipt.EthereumAddress) eth.Address

func AdaptEvent added in v0.10.0

func AdaptEvent(e *event.Event) *core.Event

func AdaptFelt added in v0.10.0

func AdaptFelt[F felt.FeltLike](f *common.Felt252) *F

func AdaptFeltSlice added in v0.16.6

func AdaptFeltSlice(slice []*common.Felt252) []felt.Felt

func AdaptHash

func AdaptHash[F felt.FeltLike](h *common.Hash) *F

func AdaptInvokeV3TxnCommon added in v0.14.7

func AdaptInvokeV3TxnCommon(
	tx *transaction.InvokeV3,
	txnHash *common.Hash,
) (*core.InvokeTransaction, error)

func AdaptL1Handler added in v0.14.7

func AdaptL1Handler(tx *transaction.L1HandlerV0, txnHash *common.Hash) *core.L1HandlerTransaction

func AdaptReceipt added in v0.10.0

func AdaptReceipt(r *receipt.Receipt, txHash *felt.TransactionHash) *core.TransactionReceipt

todo change type of txHash to spec

func AdaptSierraClass added in v0.15.9

func AdaptSierraClass(
	ctx context.Context,
	compiler compiler.Compiler,
	cairo1 *class.Cairo1Class,
) (core.SierraClass, error)

func AdaptStateDiff added in v0.10.0

func AdaptStateDiff(
	ctx context.Context,
	compiler compiler.Compiler,
	reader core.StateReader,
	contractDiffs []*state.ContractDiff,
	classes []*class.Class,
) (*core.StateDiff, error)

func AdaptTransaction added in v0.10.0

func AdaptTransaction(
	t *synctransaction.TransactionInBlock,
	network *networks.Network,
) (core.Transaction, error)

func AdaptUint128 added in v0.12.0

func AdaptUint128[F felt.FeltLike](u *common.Uint128) *F

Types

This section is empty.

Jump to

Keyboard shortcuts

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