v1beta1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Signature_SignatureType_name = map[int32]string{
		0: "SIGNATURE_TYPE_UNSPECIFIED",
		1: "SIGNATURE_TYPE_PERSONAL",
		2: "SIGNATURE_TYPE_ETHSIGN",
		3: "SIGNATURE_TYPE_EIP712",
	}
	Signature_SignatureType_value = map[string]int32{
		"SIGNATURE_TYPE_UNSPECIFIED": 0,
		"SIGNATURE_TYPE_PERSONAL":    1,
		"SIGNATURE_TYPE_ETHSIGN":     2,
		"SIGNATURE_TYPE_EIP712":      3,
	}
)

Enum value maps for Signature_SignatureType.

View Source
var (
	TransactionError_ErrorCode_name = map[int32]string{
		0:  "ERROR_CODE_UNSPECIFIED",
		1:  "ERROR_CODE_INVALID_SIGNATURE",
		2:  "ERROR_CODE_INVALID_ENVELOPE",
		3:  "ERROR_CODE_INVALID_MESSAGE",
		4:  "ERROR_CODE_UNAUTHORIZED",
		5:  "ERROR_CODE_INSUFFICIENT_PERMISSIONS",
		6:  "ERROR_CODE_NOT_FOUND",
		7:  "ERROR_CODE_TIMEOUT",
		8:  "ERROR_CODE_IM_A_TEAPOT",
		9:  "ERROR_CODE_TOO_MANY_REQUESTS",
		10: "ERROR_CODE_INTERNAL_ERROR",
		11: "ERROR_CODE_SERVICE_UNAVAILABLE",
		12: "ERROR_CODE_INSUFFICIENT_STORAGE",
	}
	TransactionError_ErrorCode_value = map[string]int32{
		"ERROR_CODE_UNSPECIFIED":              0,
		"ERROR_CODE_INVALID_SIGNATURE":        1,
		"ERROR_CODE_INVALID_ENVELOPE":         2,
		"ERROR_CODE_INVALID_MESSAGE":          3,
		"ERROR_CODE_UNAUTHORIZED":             4,
		"ERROR_CODE_INSUFFICIENT_PERMISSIONS": 5,
		"ERROR_CODE_NOT_FOUND":                6,
		"ERROR_CODE_TIMEOUT":                  7,
		"ERROR_CODE_IM_A_TEAPOT":              8,
		"ERROR_CODE_TOO_MANY_REQUESTS":        9,
		"ERROR_CODE_INTERNAL_ERROR":           10,
		"ERROR_CODE_SERVICE_UNAVAILABLE":      11,
		"ERROR_CODE_INSUFFICIENT_STORAGE":     12,
	}
)

Enum value maps for TransactionError_ErrorCode.

View Source
var File_core_v1beta1_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	Header   *EnvelopeHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Messages []*Message      `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

DDEX Envelope

func (*Envelope) Descriptor deprecated

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

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetHeader

func (x *Envelope) GetHeader() *EnvelopeHeader

func (*Envelope) GetMessages

func (x *Envelope) GetMessages() []*Message

func (*Envelope) ProtoMessage

func (*Envelope) ProtoMessage()

func (*Envelope) ProtoReflect

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

func (*Envelope) Reset

func (x *Envelope) Reset()

func (*Envelope) String

func (x *Envelope) String() string

type EnvelopeHeader

type EnvelopeHeader struct {
	ChainId    string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Expiration int64  `protobuf:"varint,2,opt,name=expiration,proto3" json:"expiration,omitempty"`
	Nonce      string `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	From       string `protobuf:"bytes,4,opt,name=from,proto3" json:"from,omitempty"`
	To         string `protobuf:"bytes,5,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*EnvelopeHeader) Descriptor deprecated

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

Deprecated: Use EnvelopeHeader.ProtoReflect.Descriptor instead.

func (*EnvelopeHeader) GetChainId

func (x *EnvelopeHeader) GetChainId() string

func (*EnvelopeHeader) GetExpiration

func (x *EnvelopeHeader) GetExpiration() int64

func (*EnvelopeHeader) GetFrom

func (x *EnvelopeHeader) GetFrom() string

func (*EnvelopeHeader) GetNonce

func (x *EnvelopeHeader) GetNonce() string

func (*EnvelopeHeader) GetTo

func (x *EnvelopeHeader) GetTo() string

func (*EnvelopeHeader) ProtoMessage

func (*EnvelopeHeader) ProtoMessage()

func (*EnvelopeHeader) ProtoReflect

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

func (*EnvelopeHeader) Reset

func (x *EnvelopeHeader) Reset()

func (*EnvelopeHeader) String

func (x *EnvelopeHeader) String() string

type EnvelopeReceiptInfo

type EnvelopeReceiptInfo struct {
	ChainId      string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Expiration   int64  `protobuf:"varint,2,opt,name=expiration,proto3" json:"expiration,omitempty"`
	Nonce        string `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
	MessageCount int32  `protobuf:"varint,4,opt,name=message_count,json=messageCount,proto3" json:"message_count,omitempty"`
	From         string `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty"`
	To           string `protobuf:"bytes,6,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*EnvelopeReceiptInfo) Descriptor deprecated

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

Deprecated: Use EnvelopeReceiptInfo.ProtoReflect.Descriptor instead.

func (*EnvelopeReceiptInfo) GetChainId

func (x *EnvelopeReceiptInfo) GetChainId() string

func (*EnvelopeReceiptInfo) GetExpiration

func (x *EnvelopeReceiptInfo) GetExpiration() int64

func (*EnvelopeReceiptInfo) GetFrom

func (x *EnvelopeReceiptInfo) GetFrom() string

func (*EnvelopeReceiptInfo) GetMessageCount

func (x *EnvelopeReceiptInfo) GetMessageCount() int32

func (*EnvelopeReceiptInfo) GetNonce

func (x *EnvelopeReceiptInfo) GetNonce() string

func (*EnvelopeReceiptInfo) GetTo

func (x *EnvelopeReceiptInfo) GetTo() string

func (*EnvelopeReceiptInfo) ProtoMessage

func (*EnvelopeReceiptInfo) ProtoMessage()

func (*EnvelopeReceiptInfo) ProtoReflect

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

func (*EnvelopeReceiptInfo) Reset

func (x *EnvelopeReceiptInfo) Reset()

func (*EnvelopeReceiptInfo) String

func (x *EnvelopeReceiptInfo) String() string

type Message

type Message struct {

	// Types that are assignable to Message:
	//
	//	*Message_Ern
	//	*Message_Mead
	//	*Message_Pie
	Message isMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

DDEX-style messages (oneof schema)

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetErn

func (x *Message) GetErn() *v1beta1.NewReleaseMessage

func (*Message) GetMead

func (x *Message) GetMead() *v1beta1.MeadMessage

func (*Message) GetMessage

func (m *Message) GetMessage() isMessage_Message

func (*Message) GetPie

func (x *Message) GetPie() *v1beta1.PieMessage

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type MessageReceipt

type MessageReceipt struct {
	MessageIndex int32 `protobuf:"varint,1,opt,name=message_index,json=messageIndex,proto3" json:"message_index,omitempty"`
	// Types that are assignable to Result:
	//
	//	*MessageReceipt_ErnAck
	//	*MessageReceipt_MeadAck
	//	*MessageReceipt_PieAck
	Result isMessageReceipt_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

func (*MessageReceipt) Descriptor deprecated

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

Deprecated: Use MessageReceipt.ProtoReflect.Descriptor instead.

func (*MessageReceipt) GetErnAck

func (*MessageReceipt) GetMeadAck

func (x *MessageReceipt) GetMeadAck() *v1beta1.MeadMessageAck

func (*MessageReceipt) GetMessageIndex

func (x *MessageReceipt) GetMessageIndex() int32

func (*MessageReceipt) GetPieAck

func (x *MessageReceipt) GetPieAck() *v1beta1.PieMessageAck

func (*MessageReceipt) GetResult

func (m *MessageReceipt) GetResult() isMessageReceipt_Result

func (*MessageReceipt) ProtoMessage

func (*MessageReceipt) ProtoMessage()

func (*MessageReceipt) ProtoReflect

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

func (*MessageReceipt) Reset

func (x *MessageReceipt) Reset()

func (*MessageReceipt) String

func (x *MessageReceipt) String() string

type MessageReceipt_ErnAck

type MessageReceipt_ErnAck struct {
	ErnAck *v1beta1.NewReleaseMessageAck `protobuf:"bytes,2,opt,name=ern_ack,json=ernAck,proto3,oneof"`
}

type MessageReceipt_MeadAck

type MessageReceipt_MeadAck struct {
	MeadAck *v1beta1.MeadMessageAck `protobuf:"bytes,3,opt,name=mead_ack,json=meadAck,proto3,oneof"`
}

type MessageReceipt_PieAck

type MessageReceipt_PieAck struct {
	PieAck *v1beta1.PieMessageAck `protobuf:"bytes,4,opt,name=pie_ack,json=pieAck,proto3,oneof"`
}

type Message_Ern

type Message_Ern struct {
	Ern *v1beta1.NewReleaseMessage `protobuf:"bytes,1,opt,name=ern,proto3,oneof"`
}

type Message_Mead

type Message_Mead struct {
	Mead *v1beta1.MeadMessage `protobuf:"bytes,2,opt,name=mead,proto3,oneof"`
}

type Message_Pie

type Message_Pie struct {
	Pie *v1beta1.PieMessage `protobuf:"bytes,3,opt,name=pie,proto3,oneof"`
}

type Signature

type Signature struct {
	Type      Signature_SignatureType `protobuf:"varint,1,opt,name=type,proto3,enum=core.v1beta1.Signature_SignatureType" json:"type,omitempty"`
	Signature []byte                  `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetSignature

func (x *Signature) GetSignature() []byte

func (*Signature) GetType

func (x *Signature) GetType() Signature_SignatureType

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type Signature_SignatureType

type Signature_SignatureType int32
const (
	Signature_SIGNATURE_TYPE_UNSPECIFIED Signature_SignatureType = 0
	// Signs arbitrary bytes with a prefix: "\x19Ethereum Signed Message:\n"
	Signature_SIGNATURE_TYPE_PERSONAL Signature_SignatureType = 1
	// Signs arbitrary bytes without prefix (just raw keccak256 hash)
	Signature_SIGNATURE_TYPE_ETHSIGN Signature_SignatureType = 2
	// EIP-712 typed structured data signing (e.g., eth_signTypedData_v4)
	Signature_SIGNATURE_TYPE_EIP712 Signature_SignatureType = 3
)

func (Signature_SignatureType) Descriptor

func (Signature_SignatureType) Enum

func (Signature_SignatureType) EnumDescriptor deprecated

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

Deprecated: Use Signature_SignatureType.Descriptor instead.

func (Signature_SignatureType) Number

func (Signature_SignatureType) String

func (x Signature_SignatureType) String() string

func (Signature_SignatureType) Type

type Transaction

type Transaction struct {
	Signature *Signature `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	Envelope  *Envelope  `protobuf:"bytes,2,opt,name=envelope,proto3" json:"envelope,omitempty"`
	// contains filtered or unexported fields
}

CometBFT Transaction

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetEnvelope

func (x *Transaction) GetEnvelope() *Envelope

func (*Transaction) GetSignature

func (x *Transaction) GetSignature() *Signature

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

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

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TransactionError

type TransactionError struct {
	Code    TransactionError_ErrorCode `protobuf:"varint,1,opt,name=code,proto3,enum=core.v1beta1.TransactionError_ErrorCode" json:"code,omitempty"`
	Message string                     `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Details *string                    `protobuf:"bytes,3,opt,name=details,proto3,oneof" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionError) Descriptor deprecated

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

Deprecated: Use TransactionError.ProtoReflect.Descriptor instead.

func (*TransactionError) GetCode

func (*TransactionError) GetDetails

func (x *TransactionError) GetDetails() string

func (*TransactionError) GetMessage

func (x *TransactionError) GetMessage() string

func (*TransactionError) ProtoMessage

func (*TransactionError) ProtoMessage()

func (*TransactionError) ProtoReflect

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

func (*TransactionError) Reset

func (x *TransactionError) Reset()

func (*TransactionError) String

func (x *TransactionError) String() string

type TransactionError_ErrorCode

type TransactionError_ErrorCode int32
const (
	TransactionError_ERROR_CODE_UNSPECIFIED TransactionError_ErrorCode = 0
	// validation errors
	TransactionError_ERROR_CODE_INVALID_SIGNATURE TransactionError_ErrorCode = 1
	TransactionError_ERROR_CODE_INVALID_ENVELOPE  TransactionError_ErrorCode = 2
	TransactionError_ERROR_CODE_INVALID_MESSAGE   TransactionError_ErrorCode = 3
	// authorization errors
	TransactionError_ERROR_CODE_UNAUTHORIZED             TransactionError_ErrorCode = 4
	TransactionError_ERROR_CODE_INSUFFICIENT_PERMISSIONS TransactionError_ErrorCode = 5
	// business logic errors
	TransactionError_ERROR_CODE_NOT_FOUND         TransactionError_ErrorCode = 6
	TransactionError_ERROR_CODE_TIMEOUT           TransactionError_ErrorCode = 7
	TransactionError_ERROR_CODE_IM_A_TEAPOT       TransactionError_ErrorCode = 8
	TransactionError_ERROR_CODE_TOO_MANY_REQUESTS TransactionError_ErrorCode = 9
	// system errors
	TransactionError_ERROR_CODE_INTERNAL_ERROR       TransactionError_ErrorCode = 10
	TransactionError_ERROR_CODE_SERVICE_UNAVAILABLE  TransactionError_ErrorCode = 11
	TransactionError_ERROR_CODE_INSUFFICIENT_STORAGE TransactionError_ErrorCode = 12
)

func (TransactionError_ErrorCode) Descriptor

func (TransactionError_ErrorCode) Enum

func (TransactionError_ErrorCode) EnumDescriptor deprecated

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

Deprecated: Use TransactionError_ErrorCode.Descriptor instead.

func (TransactionError_ErrorCode) Number

func (TransactionError_ErrorCode) String

func (TransactionError_ErrorCode) Type

type TransactionReceipt

type TransactionReceipt struct {

	// Basic transaction identification
	TxHash    string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	Height    int64  `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	Timestamp int64  `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Transaction parties
	Sender    string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`       // Who signed the transaction
	Responder string `protobuf:"bytes,5,opt,name=responder,proto3" json:"responder,omitempty"` // Node that responded to the request
	Proposer  string `protobuf:"bytes,6,opt,name=proposer,proto3" json:"proposer,omitempty"`   // Node that proposed the block that included the transaction
	// Envelope information from the transaction
	EnvelopeInfo *EnvelopeReceiptInfo `protobuf:"bytes,7,opt,name=envelope_info,json=envelopeInfo,proto3" json:"envelope_info,omitempty"`
	// Results from message processing (addresses, IDs, etc.)
	MessageReceipts []*MessageReceipt `protobuf:"bytes,8,rep,name=message_receipts,json=messageReceipts,proto3" json:"message_receipts,omitempty"`
	// Error information
	Error *TransactionError `protobuf:"bytes,9,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionReceipt) Descriptor deprecated

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

Deprecated: Use TransactionReceipt.ProtoReflect.Descriptor instead.

func (*TransactionReceipt) GetEnvelopeInfo

func (x *TransactionReceipt) GetEnvelopeInfo() *EnvelopeReceiptInfo

func (*TransactionReceipt) GetError

func (x *TransactionReceipt) GetError() *TransactionError

func (*TransactionReceipt) GetHeight

func (x *TransactionReceipt) GetHeight() int64

func (*TransactionReceipt) GetMessageReceipts

func (x *TransactionReceipt) GetMessageReceipts() []*MessageReceipt

func (*TransactionReceipt) GetProposer

func (x *TransactionReceipt) GetProposer() string

func (*TransactionReceipt) GetResponder

func (x *TransactionReceipt) GetResponder() string

func (*TransactionReceipt) GetSender

func (x *TransactionReceipt) GetSender() string

func (*TransactionReceipt) GetTimestamp

func (x *TransactionReceipt) GetTimestamp() int64

func (*TransactionReceipt) GetTxHash

func (x *TransactionReceipt) GetTxHash() string

func (*TransactionReceipt) ProtoMessage

func (*TransactionReceipt) ProtoMessage()

func (*TransactionReceipt) ProtoReflect

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

func (*TransactionReceipt) Reset

func (x *TransactionReceipt) Reset()

func (*TransactionReceipt) String

func (x *TransactionReceipt) String() string

Jump to

Keyboard shortcuts

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