types

package
v0.0.0-...-a2f4e79 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthWeb3        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWeb3          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWeb3 = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ExtensionOptionsWeb3TxSolana

type ExtensionOptionsWeb3TxSolana struct {
	// typed_data_chain_id is used only in EIP712 Domain and should match
	// Ethereum network ID in a Web3 provider (e.g. Metamask).
	TypedDataChainID uint64 `protobuf:"varint,1,opt,name=typed_data_chain_id,json=typedDataChainId,proto3" json:"typedDataChainID,omitempty"`
	// fee_payer is an account address for the fee payer. It will be validated
	// during EIP712 signature checking.
	FeePayer string `protobuf:"bytes,2,opt,name=fee_payer,json=feePayer,proto3" json:"feePayer,omitempty"`
	// fee_payer_sig is a signature data from the fee paying account,
	// allows to perform fee delegation when using EIP712 Domain.
	FeePayerSig []byte `protobuf:"bytes,3,opt,name=fee_payer_sig,json=feePayerSig,proto3" json:"feePayerSig,omitempty"`
	// chain should be "Solana"
	Chain string `protobuf:"bytes,4,opt,name=chain,proto3" json:"chain,omitempty"`
	// sol_address is the address of the solana account.
	// Used for indexing purposes because we can't natively go from a cosmos address (what is used on-chain) to a solana address
	// without knowing the solana address in the first place. This is because conversion to cosmos requires a hash of the solana address.
	SolAddress string `protobuf:"bytes,5,opt,name=sol_address,json=solAddress,proto3" json:"solAddress,omitempty"`
}

ExtensionOptionsWeb3Tx is an extension option that specifies the typed chain id, the fee payer as well as its signature data.

func (*ExtensionOptionsWeb3TxSolana) Descriptor

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

func (*ExtensionOptionsWeb3TxSolana) Marshal

func (m *ExtensionOptionsWeb3TxSolana) Marshal() (dAtA []byte, err error)

func (*ExtensionOptionsWeb3TxSolana) MarshalTo

func (m *ExtensionOptionsWeb3TxSolana) MarshalTo(dAtA []byte) (int, error)

func (*ExtensionOptionsWeb3TxSolana) MarshalToSizedBuffer

func (m *ExtensionOptionsWeb3TxSolana) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ExtensionOptionsWeb3TxSolana) ProtoMessage

func (*ExtensionOptionsWeb3TxSolana) ProtoMessage()

func (*ExtensionOptionsWeb3TxSolana) Reset

func (m *ExtensionOptionsWeb3TxSolana) Reset()

func (*ExtensionOptionsWeb3TxSolana) Size

func (m *ExtensionOptionsWeb3TxSolana) Size() (n int)

func (*ExtensionOptionsWeb3TxSolana) String

func (*ExtensionOptionsWeb3TxSolana) Unmarshal

func (m *ExtensionOptionsWeb3TxSolana) Unmarshal(dAtA []byte) error

func (*ExtensionOptionsWeb3TxSolana) XXX_DiscardUnknown

func (m *ExtensionOptionsWeb3TxSolana) XXX_DiscardUnknown()

func (*ExtensionOptionsWeb3TxSolana) XXX_Marshal

func (m *ExtensionOptionsWeb3TxSolana) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExtensionOptionsWeb3TxSolana) XXX_Merge

func (m *ExtensionOptionsWeb3TxSolana) XXX_Merge(src proto.Message)

func (*ExtensionOptionsWeb3TxSolana) XXX_Size

func (m *ExtensionOptionsWeb3TxSolana) XXX_Size() int

func (*ExtensionOptionsWeb3TxSolana) XXX_Unmarshal

func (m *ExtensionOptionsWeb3TxSolana) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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