textualpb

package
v0.13.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package textualpb contains all protobuf definitions and generated codes used internally by Textual.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_textual_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Envelope

type Envelope struct {
	ChainId                     string                 `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	AccountNumber               uint64                 `protobuf:"varint,2,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	Sequence                    uint64                 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Address                     string                 `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	PublicKey                   *anypb.Any             `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Message                     []*anypb.Any           `protobuf:"bytes,6,rep,name=message,proto3" json:"message,omitempty"`
	Memo                        string                 `protobuf:"bytes,7,opt,name=memo,proto3" json:"memo,omitempty"`
	Fees                        []*v1beta1.Coin        `protobuf:"bytes,8,rep,name=fees,proto3" json:"fees,omitempty"`
	FeePayer                    string                 `protobuf:"bytes,9,opt,name=fee_payer,json=feePayer,proto3" json:"fee_payer,omitempty"`
	FeeGranter                  string                 `protobuf:"bytes,10,opt,name=fee_granter,json=feeGranter,proto3" json:"fee_granter,omitempty"`
	Tip                         []*v1beta1.Coin        `protobuf:"bytes,11,rep,name=tip,proto3" json:"tip,omitempty"`
	Tipper                      string                 `protobuf:"bytes,12,opt,name=tipper,proto3" json:"tipper,omitempty"`
	GasLimit                    uint64                 `protobuf:"varint,13,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	TimeoutHeight               uint64                 `protobuf:"varint,14,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height,omitempty"`
	OtherSigner                 []*v1beta11.SignerInfo `protobuf:"bytes,15,rep,name=other_signer,json=otherSigner,proto3" json:"other_signer,omitempty"`
	ExtensionOptions            []*anypb.Any           `protobuf:"bytes,16,rep,name=extension_options,json=extensionOptions,proto3" json:"extension_options,omitempty"`
	NonCriticalExtensionOptions []*anypb.Any           `` /* 147-byte string literal not displayed */
	HashOfRawBytes              string                 `protobuf:"bytes,18,opt,name=hash_of_raw_bytes,json=hashOfRawBytes,proto3" json:"hash_of_raw_bytes,omitempty"`
	// contains filtered or unexported fields
}

Envelope is an internal data structure used to generate the tx envelope screens. It is derived from the TextualData struct (also internal) which contains the three following fields: - body_bytes (from the original tx), - auth_info_bytes (from the original tx), - signer_data (passed in by the sign mode handler)

If any of the three structs above is modified, then this Envelope message also needs to be updated.

func (*Envelope) Descriptor deprecated

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

Deprecated: Use Envelope.ProtoReflect.Descriptor instead.

func (*Envelope) GetAccountNumber

func (x *Envelope) GetAccountNumber() uint64

func (*Envelope) GetAddress

func (x *Envelope) GetAddress() string

func (*Envelope) GetChainId

func (x *Envelope) GetChainId() string

func (*Envelope) GetExtensionOptions

func (x *Envelope) GetExtensionOptions() []*anypb.Any

func (*Envelope) GetFeeGranter

func (x *Envelope) GetFeeGranter() string

func (*Envelope) GetFeePayer

func (x *Envelope) GetFeePayer() string

func (*Envelope) GetFees

func (x *Envelope) GetFees() []*v1beta1.Coin

func (*Envelope) GetGasLimit

func (x *Envelope) GetGasLimit() uint64

func (*Envelope) GetHashOfRawBytes

func (x *Envelope) GetHashOfRawBytes() string

func (*Envelope) GetMemo

func (x *Envelope) GetMemo() string

func (*Envelope) GetMessage

func (x *Envelope) GetMessage() []*anypb.Any

func (*Envelope) GetNonCriticalExtensionOptions

func (x *Envelope) GetNonCriticalExtensionOptions() []*anypb.Any

func (*Envelope) GetOtherSigner

func (x *Envelope) GetOtherSigner() []*v1beta11.SignerInfo

func (*Envelope) GetPublicKey

func (x *Envelope) GetPublicKey() *anypb.Any

func (*Envelope) GetSequence

func (x *Envelope) GetSequence() uint64

func (*Envelope) GetTimeoutHeight

func (x *Envelope) GetTimeoutHeight() uint64

func (*Envelope) GetTip

func (x *Envelope) GetTip() []*v1beta1.Coin

func (*Envelope) GetTipper

func (x *Envelope) GetTipper() string

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 SignerData

type SignerData struct {

	// address is the address of the signer.
	//
	// In case of multisigs, this should be the multisig's address.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// chain_id is the chain that this transaction is targeting.
	ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// account_number is the account number of the signer.
	//
	// In case of multisigs, this should be the multisig account number.
	AccountNumber uint64 `protobuf:"varint,3,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	// sequence is the account sequence number of the signer that is used
	// for replay protection. This field is only useful for Legacy Amino signing,
	// since in SIGN_MODE_DIRECT the account sequence is already in the signer
	// info.
	//
	// In case of multisigs, this should be the multisig sequence.
	Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// pub_key is the public key of the signer.
	//
	// In case of multisigs, this should be the pubkey of the member of the
	// multisig that is signing the current sign doc.
	PubKey *anypb.Any `protobuf:"bytes,5,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	// contains filtered or unexported fields
}

SignerData is the specific information needed to sign a transaction that generally isn't included in the transaction body itself.

It is the same struct as signing.SignerData, but only used internally in Textual because we need it as a proto.Message.

func (*SignerData) Descriptor deprecated

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

Deprecated: Use SignerData.ProtoReflect.Descriptor instead.

func (*SignerData) GetAccountNumber

func (x *SignerData) GetAccountNumber() uint64

func (*SignerData) GetAddress

func (x *SignerData) GetAddress() string

func (*SignerData) GetChainId

func (x *SignerData) GetChainId() string

func (*SignerData) GetPubKey

func (x *SignerData) GetPubKey() *anypb.Any

func (*SignerData) GetSequence

func (x *SignerData) GetSequence() uint64

func (*SignerData) ProtoMessage

func (*SignerData) ProtoMessage()

func (*SignerData) ProtoReflect

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

func (*SignerData) Reset

func (x *SignerData) Reset()

func (*SignerData) String

func (x *SignerData) String() string

type TextualData

type TextualData struct {

	// body_bytes is a protobuf serialization of a TxBody that matches the
	// representation in SignDoc.
	BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"`
	// auth_info_bytes is a protobuf serialization of an AuthInfo that matches the
	// representation in SignDoc.
	AuthInfoBytes []byte `protobuf:"bytes,2,opt,name=auth_info_bytes,json=authInfoBytes,proto3" json:"auth_info_bytes,omitempty"`
	// signer_data represents all data in Textual's SignDoc that are not
	// inside the Tx body and auth_info.
	SignerData *SignerData `protobuf:"bytes,3,opt,name=signer_data,json=signerData,proto3" json:"signer_data,omitempty"`
	// contains filtered or unexported fields
}

TextualData represents all the information needed to generate the textual SignDoc (which is []Screen encoded to XBOR). It is meant to be used as an internal type in Textual's implementations.

func (*TextualData) Descriptor deprecated

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

Deprecated: Use TextualData.ProtoReflect.Descriptor instead.

func (*TextualData) GetAuthInfoBytes

func (x *TextualData) GetAuthInfoBytes() []byte

func (*TextualData) GetBodyBytes

func (x *TextualData) GetBodyBytes() []byte

func (*TextualData) GetSignerData

func (x *TextualData) GetSignerData() *SignerData

func (*TextualData) ProtoMessage

func (*TextualData) ProtoMessage()

func (*TextualData) ProtoReflect

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

func (*TextualData) Reset

func (x *TextualData) Reset()

func (*TextualData) String

func (x *TextualData) String() string

Jump to

Keyboard shortcuts

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