receipt

package
v0.14.6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PriceUnit_name = map[int32]string{
		0: "Wei",
		1: "Fri",
	}
	PriceUnit_value = map[string]int32{
		"Wei": 0,
		"Fri": 1,
	}
)

Enum value maps for PriceUnit.

View Source
var File_p2p_proto_sync_receipt_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type EthereumAddress

type EthereumAddress struct {
	Elements []byte `protobuf:"bytes,1,opt,name=elements,proto3" json:"elements,omitempty"`
	// contains filtered or unexported fields
}

func (*EthereumAddress) Descriptor deprecated

func (*EthereumAddress) Descriptor() ([]byte, []int)

Deprecated: Use EthereumAddress.ProtoReflect.Descriptor instead.

func (*EthereumAddress) GetElements

func (x *EthereumAddress) GetElements() []byte

func (*EthereumAddress) ProtoMessage

func (*EthereumAddress) ProtoMessage()

func (*EthereumAddress) ProtoReflect

func (x *EthereumAddress) ProtoReflect() protoreflect.Message

func (*EthereumAddress) Reset

func (x *EthereumAddress) Reset()

func (*EthereumAddress) String

func (x *EthereumAddress) String() string

type MessageToL1

type MessageToL1 struct {
	FromAddress *common.Felt252   `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	Payload     []*common.Felt252 `protobuf:"bytes,3,rep,name=payload,proto3" json:"payload,omitempty"`
	ToAddress   *EthereumAddress  `protobuf:"bytes,4,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageToL1) Descriptor deprecated

func (*MessageToL1) Descriptor() ([]byte, []int)

Deprecated: Use MessageToL1.ProtoReflect.Descriptor instead.

func (*MessageToL1) GetFromAddress

func (x *MessageToL1) GetFromAddress() *common.Felt252

func (*MessageToL1) GetPayload

func (x *MessageToL1) GetPayload() []*common.Felt252

func (*MessageToL1) GetToAddress

func (x *MessageToL1) GetToAddress() *EthereumAddress

func (*MessageToL1) ProtoMessage

func (*MessageToL1) ProtoMessage()

func (*MessageToL1) ProtoReflect

func (x *MessageToL1) ProtoReflect() protoreflect.Message

func (*MessageToL1) Reset

func (x *MessageToL1) Reset()

func (*MessageToL1) String

func (x *MessageToL1) String() string

type PriceUnit

type PriceUnit int32
const (
	PriceUnit_Wei PriceUnit = 0
	PriceUnit_Fri PriceUnit = 1
)

func (PriceUnit) Descriptor

func (PriceUnit) Descriptor() protoreflect.EnumDescriptor

func (PriceUnit) Enum

func (x PriceUnit) Enum() *PriceUnit

func (PriceUnit) EnumDescriptor deprecated

func (PriceUnit) EnumDescriptor() ([]byte, []int)

Deprecated: Use PriceUnit.Descriptor instead.

func (PriceUnit) Number

func (x PriceUnit) Number() protoreflect.EnumNumber

func (PriceUnit) String

func (x PriceUnit) String() string

func (PriceUnit) Type

type Receipt

type Receipt struct {

	// Types that are valid to be assigned to Type:
	//
	//	*Receipt_Invoke_
	//	*Receipt_L1Handler_
	//	*Receipt_Declare_
	//	*Receipt_DeprecatedDeploy
	//	*Receipt_DeployAccount_
	Type isReceipt_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*Receipt) Descriptor deprecated

func (*Receipt) Descriptor() ([]byte, []int)

Deprecated: Use Receipt.ProtoReflect.Descriptor instead.

func (*Receipt) GetDeclare

func (x *Receipt) GetDeclare() *Receipt_Declare

func (*Receipt) GetDeployAccount

func (x *Receipt) GetDeployAccount() *Receipt_DeployAccount

func (*Receipt) GetDeprecatedDeploy

func (x *Receipt) GetDeprecatedDeploy() *Receipt_Deploy

func (*Receipt) GetInvoke

func (x *Receipt) GetInvoke() *Receipt_Invoke

func (*Receipt) GetL1Handler

func (x *Receipt) GetL1Handler() *Receipt_L1Handler

func (*Receipt) GetType

func (x *Receipt) GetType() isReceipt_Type

func (*Receipt) ProtoMessage

func (*Receipt) ProtoMessage()

func (*Receipt) ProtoReflect

func (x *Receipt) ProtoReflect() protoreflect.Message

func (*Receipt) Reset

func (x *Receipt) Reset()

func (*Receipt) String

func (x *Receipt) String() string

type Receipt_Common

type Receipt_Common struct {
	ActualFee          *common.Felt252             `protobuf:"bytes,2,opt,name=actual_fee,json=actualFee,proto3" json:"actual_fee,omitempty"`
	PriceUnit          PriceUnit                   `protobuf:"varint,3,opt,name=price_unit,json=priceUnit,proto3,enum=PriceUnit" json:"price_unit,omitempty"`
	MessagesSent       []*MessageToL1              `protobuf:"bytes,4,rep,name=messages_sent,json=messagesSent,proto3" json:"messages_sent,omitempty"`
	ExecutionResources *Receipt_ExecutionResources `protobuf:"bytes,5,opt,name=execution_resources,json=executionResources,proto3" json:"execution_resources,omitempty"`
	RevertReason       *string                     `protobuf:"bytes,6,opt,name=revert_reason,json=revertReason,proto3,oneof" json:"revert_reason,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipt_Common) Descriptor deprecated

func (*Receipt_Common) Descriptor() ([]byte, []int)

Deprecated: Use Receipt_Common.ProtoReflect.Descriptor instead.

func (*Receipt_Common) GetActualFee

func (x *Receipt_Common) GetActualFee() *common.Felt252

func (*Receipt_Common) GetExecutionResources

func (x *Receipt_Common) GetExecutionResources() *Receipt_ExecutionResources

func (*Receipt_Common) GetMessagesSent

func (x *Receipt_Common) GetMessagesSent() []*MessageToL1

func (*Receipt_Common) GetPriceUnit

func (x *Receipt_Common) GetPriceUnit() PriceUnit

func (*Receipt_Common) GetRevertReason

func (x *Receipt_Common) GetRevertReason() string

func (*Receipt_Common) ProtoMessage

func (*Receipt_Common) ProtoMessage()

func (*Receipt_Common) ProtoReflect

func (x *Receipt_Common) ProtoReflect() protoreflect.Message

func (*Receipt_Common) Reset

func (x *Receipt_Common) Reset()

func (*Receipt_Common) String

func (x *Receipt_Common) String() string

type Receipt_Declare

type Receipt_Declare struct {
	Common *Receipt_Common `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipt_Declare) Descriptor deprecated

func (*Receipt_Declare) Descriptor() ([]byte, []int)

Deprecated: Use Receipt_Declare.ProtoReflect.Descriptor instead.

func (*Receipt_Declare) GetCommon

func (x *Receipt_Declare) GetCommon() *Receipt_Common

func (*Receipt_Declare) ProtoMessage

func (*Receipt_Declare) ProtoMessage()

func (*Receipt_Declare) ProtoReflect

func (x *Receipt_Declare) ProtoReflect() protoreflect.Message

func (*Receipt_Declare) Reset

func (x *Receipt_Declare) Reset()

func (*Receipt_Declare) String

func (x *Receipt_Declare) String() string

type Receipt_Declare_

type Receipt_Declare_ struct {
	Declare *Receipt_Declare `protobuf:"bytes,3,opt,name=declare,proto3,oneof"`
}

type Receipt_Deploy

type Receipt_Deploy struct {
	Common          *Receipt_Common `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	ContractAddress *common.Felt252 `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipt_Deploy) Descriptor deprecated

func (*Receipt_Deploy) Descriptor() ([]byte, []int)

Deprecated: Use Receipt_Deploy.ProtoReflect.Descriptor instead.

func (*Receipt_Deploy) GetCommon

func (x *Receipt_Deploy) GetCommon() *Receipt_Common

func (*Receipt_Deploy) GetContractAddress

func (x *Receipt_Deploy) GetContractAddress() *common.Felt252

func (*Receipt_Deploy) ProtoMessage

func (*Receipt_Deploy) ProtoMessage()

func (*Receipt_Deploy) ProtoReflect

func (x *Receipt_Deploy) ProtoReflect() protoreflect.Message

func (*Receipt_Deploy) Reset

func (x *Receipt_Deploy) Reset()

func (*Receipt_Deploy) String

func (x *Receipt_Deploy) String() string

type Receipt_DeployAccount

type Receipt_DeployAccount struct {
	Common          *Receipt_Common `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	ContractAddress *common.Felt252 `protobuf:"bytes,2,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipt_DeployAccount) Descriptor deprecated

func (*Receipt_DeployAccount) Descriptor() ([]byte, []int)

Deprecated: Use Receipt_DeployAccount.ProtoReflect.Descriptor instead.

func (*Receipt_DeployAccount) GetCommon

func (x *Receipt_DeployAccount) GetCommon() *Receipt_Common

func (*Receipt_DeployAccount) GetContractAddress

func (x *Receipt_DeployAccount) GetContractAddress() *common.Felt252

func (*Receipt_DeployAccount) ProtoMessage

func (*Receipt_DeployAccount) ProtoMessage()

func (*Receipt_DeployAccount) ProtoReflect

func (x *Receipt_DeployAccount) ProtoReflect() protoreflect.Message

func (*Receipt_DeployAccount) Reset

func (x *Receipt_DeployAccount) Reset()

func (*Receipt_DeployAccount) String

func (x *Receipt_DeployAccount) String() string

type Receipt_DeployAccount_

type Receipt_DeployAccount_ struct {
	DeployAccount *Receipt_DeployAccount `protobuf:"bytes,5,opt,name=deploy_account,json=deployAccount,proto3,oneof"`
}

type Receipt_DeprecatedDeploy

type Receipt_DeprecatedDeploy struct {
	DeprecatedDeploy *Receipt_Deploy `protobuf:"bytes,4,opt,name=deprecated_deploy,json=deprecatedDeploy,proto3,oneof"`
}

type Receipt_ExecutionResources

type Receipt_ExecutionResources struct {
	Builtins    *Receipt_ExecutionResources_BuiltinCounter `protobuf:"bytes,1,opt,name=builtins,proto3" json:"builtins,omitempty"`
	Steps       uint32                                     `protobuf:"varint,2,opt,name=steps,proto3" json:"steps,omitempty"`
	MemoryHoles uint32                                     `protobuf:"varint,3,opt,name=memory_holes,json=memoryHoles,proto3" json:"memory_holes,omitempty"`
	L1Gas       *common.Felt252                            `protobuf:"bytes,4,opt,name=l1_gas,json=l1Gas,proto3" json:"l1_gas,omitempty"`
	L1DataGas   *common.Felt252                            `protobuf:"bytes,5,opt,name=l1_data_gas,json=l1DataGas,proto3" json:"l1_data_gas,omitempty"`
	L2Gas       *common.Felt252                            `protobuf:"bytes,6,opt,name=l2_gas,json=l2Gas,proto3" json:"l2_gas,omitempty"`
	TotalL1Gas  *common.Felt252                            `protobuf:"bytes,7,opt,name=total_l1_gas,json=totalL1Gas,proto3" json:"total_l1_gas,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipt_ExecutionResources) Descriptor deprecated

func (*Receipt_ExecutionResources) Descriptor() ([]byte, []int)

Deprecated: Use Receipt_ExecutionResources.ProtoReflect.Descriptor instead.

func (*Receipt_ExecutionResources) GetBuiltins

func (*Receipt_ExecutionResources) GetL1DataGas

func (x *Receipt_ExecutionResources) GetL1DataGas() *common.Felt252

func (*Receipt_ExecutionResources) GetL1Gas

func (x *Receipt_ExecutionResources) GetL1Gas() *common.Felt252

func (*Receipt_ExecutionResources) GetL2Gas

func (x *Receipt_ExecutionResources) GetL2Gas() *common.Felt252

func (*Receipt_ExecutionResources) GetMemoryHoles

func (x *Receipt_ExecutionResources) GetMemoryHoles() uint32

func (*Receipt_ExecutionResources) GetSteps

func (x *Receipt_ExecutionResources) GetSteps() uint32

func (*Receipt_ExecutionResources) GetTotalL1Gas

func (x *Receipt_ExecutionResources) GetTotalL1Gas() *common.Felt252

func (*Receipt_ExecutionResources) ProtoMessage

func (*Receipt_ExecutionResources) ProtoMessage()

func (*Receipt_ExecutionResources) ProtoReflect

func (*Receipt_ExecutionResources) Reset

func (x *Receipt_ExecutionResources) Reset()

func (*Receipt_ExecutionResources) String

func (x *Receipt_ExecutionResources) String() string

type Receipt_ExecutionResources_BuiltinCounter

type Receipt_ExecutionResources_BuiltinCounter struct {
	Bitwise      uint32 `protobuf:"varint,1,opt,name=bitwise,proto3" json:"bitwise,omitempty"`
	Ecdsa        uint32 `protobuf:"varint,2,opt,name=ecdsa,proto3" json:"ecdsa,omitempty"`
	EcOp         uint32 `protobuf:"varint,3,opt,name=ec_op,json=ecOp,proto3" json:"ec_op,omitempty"`
	Pedersen     uint32 `protobuf:"varint,4,opt,name=pedersen,proto3" json:"pedersen,omitempty"`
	RangeCheck   uint32 `protobuf:"varint,5,opt,name=range_check,json=rangeCheck,proto3" json:"range_check,omitempty"`
	Poseidon     uint32 `protobuf:"varint,6,opt,name=poseidon,proto3" json:"poseidon,omitempty"`
	Keccak       uint32 `protobuf:"varint,7,opt,name=keccak,proto3" json:"keccak,omitempty"`
	Output       uint32 `protobuf:"varint,8,opt,name=output,proto3" json:"output,omitempty"`
	AddMod       uint32 `protobuf:"varint,9,opt,name=add_mod,json=addMod,proto3" json:"add_mod,omitempty"`
	MulMod       uint32 `protobuf:"varint,10,opt,name=mul_mod,json=mulMod,proto3" json:"mul_mod,omitempty"`
	RangeCheck96 uint32 `protobuf:"varint,11,opt,name=range_check96,json=rangeCheck96,proto3" json:"range_check96,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipt_ExecutionResources_BuiltinCounter) Descriptor deprecated

func (*Receipt_ExecutionResources_BuiltinCounter) Descriptor() ([]byte, []int)

Deprecated: Use Receipt_ExecutionResources_BuiltinCounter.ProtoReflect.Descriptor instead.

func (*Receipt_ExecutionResources_BuiltinCounter) GetAddMod

func (*Receipt_ExecutionResources_BuiltinCounter) GetBitwise

func (*Receipt_ExecutionResources_BuiltinCounter) GetEcOp

func (*Receipt_ExecutionResources_BuiltinCounter) GetEcdsa

func (*Receipt_ExecutionResources_BuiltinCounter) GetKeccak

func (*Receipt_ExecutionResources_BuiltinCounter) GetMulMod

func (*Receipt_ExecutionResources_BuiltinCounter) GetOutput

func (*Receipt_ExecutionResources_BuiltinCounter) GetPedersen

func (*Receipt_ExecutionResources_BuiltinCounter) GetPoseidon

func (*Receipt_ExecutionResources_BuiltinCounter) GetRangeCheck

func (*Receipt_ExecutionResources_BuiltinCounter) GetRangeCheck96

func (*Receipt_ExecutionResources_BuiltinCounter) ProtoMessage

func (*Receipt_ExecutionResources_BuiltinCounter) ProtoReflect

func (*Receipt_ExecutionResources_BuiltinCounter) Reset

func (*Receipt_ExecutionResources_BuiltinCounter) String

type Receipt_Invoke

type Receipt_Invoke struct {
	Common *Receipt_Common `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipt_Invoke) Descriptor deprecated

func (*Receipt_Invoke) Descriptor() ([]byte, []int)

Deprecated: Use Receipt_Invoke.ProtoReflect.Descriptor instead.

func (*Receipt_Invoke) GetCommon

func (x *Receipt_Invoke) GetCommon() *Receipt_Common

func (*Receipt_Invoke) ProtoMessage

func (*Receipt_Invoke) ProtoMessage()

func (*Receipt_Invoke) ProtoReflect

func (x *Receipt_Invoke) ProtoReflect() protoreflect.Message

func (*Receipt_Invoke) Reset

func (x *Receipt_Invoke) Reset()

func (*Receipt_Invoke) String

func (x *Receipt_Invoke) String() string

type Receipt_Invoke_

type Receipt_Invoke_ struct {
	Invoke *Receipt_Invoke `protobuf:"bytes,1,opt,name=invoke,proto3,oneof"`
}

type Receipt_L1Handler

type Receipt_L1Handler struct {
	Common  *Receipt_Common `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"`
	MsgHash *common.Hash256 `protobuf:"bytes,2,opt,name=msg_hash,json=msgHash,proto3" json:"msg_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*Receipt_L1Handler) Descriptor deprecated

func (*Receipt_L1Handler) Descriptor() ([]byte, []int)

Deprecated: Use Receipt_L1Handler.ProtoReflect.Descriptor instead.

func (*Receipt_L1Handler) GetCommon

func (x *Receipt_L1Handler) GetCommon() *Receipt_Common

func (*Receipt_L1Handler) GetMsgHash

func (x *Receipt_L1Handler) GetMsgHash() *common.Hash256

func (*Receipt_L1Handler) ProtoMessage

func (*Receipt_L1Handler) ProtoMessage()

func (*Receipt_L1Handler) ProtoReflect

func (x *Receipt_L1Handler) ProtoReflect() protoreflect.Message

func (*Receipt_L1Handler) Reset

func (x *Receipt_L1Handler) Reset()

func (*Receipt_L1Handler) String

func (x *Receipt_L1Handler) String() string

type Receipt_L1Handler_

type Receipt_L1Handler_ struct {
	L1Handler *Receipt_L1Handler `protobuf:"bytes,2,opt,name=l1_handler,json=l1Handler,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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