stellar

package
v0.0.1-gowrapper-test Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ClaimPredicate_name = map[int32]string{
		0: "Predicate_unconditional",
	}
	ClaimPredicate_value = map[string]int32{
		"Predicate_unconditional": 0,
	}
)

Enum value maps for ClaimPredicate.

View Source
var File_Stellar_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Asset

type Asset struct {

	// Optional in case of non-native asset; the asset issuer address
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// Optional in case of non-native asset; the asset alphanum4 code.
	Alphanum4 string `protobuf:"bytes,2,opt,name=alphanum4,proto3" json:"alphanum4,omitempty"`
	// contains filtered or unexported fields
}

Represents an asset Note: alphanum12 currently not supported

func (*Asset) Descriptor deprecated

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

Deprecated: Use Asset.ProtoReflect.Descriptor instead.

func (*Asset) GetAlphanum4

func (x *Asset) GetAlphanum4() string

func (*Asset) GetIssuer

func (x *Asset) GetIssuer() string

func (*Asset) ProtoMessage

func (*Asset) ProtoMessage()

func (*Asset) ProtoReflect

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

func (*Asset) Reset

func (x *Asset) Reset()

func (*Asset) String

func (x *Asset) String() string

type ClaimPredicate

type ClaimPredicate int32

A predicate (used in claim) Rest of predicates not currently supported See https://github.com/stellar/stellar-protocol/blob/master/core/cap-0023.md

const (
	ClaimPredicate_Predicate_unconditional ClaimPredicate = 0
)

func (ClaimPredicate) Descriptor

func (ClaimPredicate) Enum

func (x ClaimPredicate) Enum() *ClaimPredicate

func (ClaimPredicate) EnumDescriptor deprecated

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

Deprecated: Use ClaimPredicate.Descriptor instead.

func (ClaimPredicate) Number

func (ClaimPredicate) String

func (x ClaimPredicate) String() string

func (ClaimPredicate) Type

type Claimant

type Claimant struct {

	// Claimant account
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// predicate
	Predicate ClaimPredicate `protobuf:"varint,2,opt,name=predicate,proto3,enum=TW.Stellar.Proto.ClaimPredicate" json:"predicate,omitempty"`
	// contains filtered or unexported fields
}

Claimant: account & predicate

func (*Claimant) Descriptor deprecated

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

Deprecated: Use Claimant.ProtoReflect.Descriptor instead.

func (*Claimant) GetAccount

func (x *Claimant) GetAccount() string

func (*Claimant) GetPredicate

func (x *Claimant) GetPredicate() ClaimPredicate

func (*Claimant) ProtoMessage

func (*Claimant) ProtoMessage()

func (*Claimant) ProtoReflect

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

func (*Claimant) Reset

func (x *Claimant) Reset()

func (*Claimant) String

func (x *Claimant) String() string

type MemoHash

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

Memo with a hash

func (*MemoHash) Descriptor deprecated

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

Deprecated: Use MemoHash.ProtoReflect.Descriptor instead.

func (*MemoHash) GetHash

func (x *MemoHash) GetHash() []byte

func (*MemoHash) ProtoMessage

func (*MemoHash) ProtoMessage()

func (*MemoHash) ProtoReflect

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

func (*MemoHash) Reset

func (x *MemoHash) Reset()

func (*MemoHash) String

func (x *MemoHash) String() string

type MemoId

type MemoId struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Memo with an ID

func (*MemoId) Descriptor deprecated

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

Deprecated: Use MemoId.ProtoReflect.Descriptor instead.

func (*MemoId) GetId

func (x *MemoId) GetId() int64

func (*MemoId) ProtoMessage

func (*MemoId) ProtoMessage()

func (*MemoId) ProtoReflect

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

func (*MemoId) Reset

func (x *MemoId) Reset()

func (*MemoId) String

func (x *MemoId) String() string

type MemoText

type MemoText struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

Memo with text

func (*MemoText) Descriptor deprecated

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

Deprecated: Use MemoText.ProtoReflect.Descriptor instead.

func (*MemoText) GetText

func (x *MemoText) GetText() string

func (*MemoText) ProtoMessage

func (*MemoText) ProtoMessage()

func (*MemoText) ProtoReflect

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

func (*MemoText) Reset

func (x *MemoText) Reset()

func (*MemoText) String

func (x *MemoText) String() string

type MemoVoid

type MemoVoid struct {
	// contains filtered or unexported fields
}

Empty memo (placeholder)

func (*MemoVoid) Descriptor deprecated

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

Deprecated: Use MemoVoid.ProtoReflect.Descriptor instead.

func (*MemoVoid) ProtoMessage

func (*MemoVoid) ProtoMessage()

func (*MemoVoid) ProtoReflect

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

func (*MemoVoid) Reset

func (x *MemoVoid) Reset()

func (*MemoVoid) String

func (x *MemoVoid) String() string

type OperationChangeTrust

type OperationChangeTrust struct {

	// The asset
	Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	// Validity (time bound to), unix time.  Set to (now() + 2 * 365 * 86400) for 2 years; set to 0 for missing.
	ValidBefore int64 `protobuf:"varint,2,opt,name=valid_before,json=validBefore,proto3" json:"valid_before,omitempty"`
	// contains filtered or unexported fields
}

Change trust

func (*OperationChangeTrust) Descriptor deprecated

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

Deprecated: Use OperationChangeTrust.ProtoReflect.Descriptor instead.

func (*OperationChangeTrust) GetAsset

func (x *OperationChangeTrust) GetAsset() *Asset

func (*OperationChangeTrust) GetValidBefore

func (x *OperationChangeTrust) GetValidBefore() int64

func (*OperationChangeTrust) ProtoMessage

func (*OperationChangeTrust) ProtoMessage()

func (*OperationChangeTrust) ProtoReflect

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

func (*OperationChangeTrust) Reset

func (x *OperationChangeTrust) Reset()

func (*OperationChangeTrust) String

func (x *OperationChangeTrust) String() string

type OperationClaimClaimableBalance

type OperationClaimClaimableBalance struct {

	// 32-byte balance ID hash
	BalanceId []byte `protobuf:"bytes,1,opt,name=balance_id,json=balanceId,proto3" json:"balance_id,omitempty"`
	// contains filtered or unexported fields
}

Claim a claimable balance

func (*OperationClaimClaimableBalance) Descriptor deprecated

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

Deprecated: Use OperationClaimClaimableBalance.ProtoReflect.Descriptor instead.

func (*OperationClaimClaimableBalance) GetBalanceId

func (x *OperationClaimClaimableBalance) GetBalanceId() []byte

func (*OperationClaimClaimableBalance) ProtoMessage

func (*OperationClaimClaimableBalance) ProtoMessage()

func (*OperationClaimClaimableBalance) ProtoReflect

func (*OperationClaimClaimableBalance) Reset

func (x *OperationClaimClaimableBalance) Reset()

func (*OperationClaimClaimableBalance) String

type OperationCreateAccount

type OperationCreateAccount struct {

	// address
	Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// Amount (*10^7)
	Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Create a new account

func (*OperationCreateAccount) Descriptor deprecated

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

Deprecated: Use OperationCreateAccount.ProtoReflect.Descriptor instead.

func (*OperationCreateAccount) GetAmount

func (x *OperationCreateAccount) GetAmount() int64

func (*OperationCreateAccount) GetDestination

func (x *OperationCreateAccount) GetDestination() string

func (*OperationCreateAccount) ProtoMessage

func (*OperationCreateAccount) ProtoMessage()

func (*OperationCreateAccount) ProtoReflect

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

func (*OperationCreateAccount) Reset

func (x *OperationCreateAccount) Reset()

func (*OperationCreateAccount) String

func (x *OperationCreateAccount) String() string

type OperationCreateClaimableBalance

type OperationCreateClaimableBalance struct {

	// Optional, can be left empty for native asset
	Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"`
	// Amount (*10^7)
	Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// One or more claimants
	Claimants []*Claimant `protobuf:"bytes,3,rep,name=claimants,proto3" json:"claimants,omitempty"`
	// contains filtered or unexported fields
}

Create a claimable balance (2-phase transfer)

func (*OperationCreateClaimableBalance) Descriptor deprecated

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

Deprecated: Use OperationCreateClaimableBalance.ProtoReflect.Descriptor instead.

func (*OperationCreateClaimableBalance) GetAmount

func (x *OperationCreateClaimableBalance) GetAmount() int64

func (*OperationCreateClaimableBalance) GetAsset

func (x *OperationCreateClaimableBalance) GetAsset() *Asset

func (*OperationCreateClaimableBalance) GetClaimants

func (x *OperationCreateClaimableBalance) GetClaimants() []*Claimant

func (*OperationCreateClaimableBalance) ProtoMessage

func (*OperationCreateClaimableBalance) ProtoMessage()

func (*OperationCreateClaimableBalance) ProtoReflect

func (*OperationCreateClaimableBalance) Reset

func (*OperationCreateClaimableBalance) String

type OperationPayment

type OperationPayment struct {

	// Destination address
	Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// Optional, can be left empty for native asset
	Asset *Asset `protobuf:"bytes,2,opt,name=asset,proto3" json:"asset,omitempty"`
	// Amount (*10^7)
	Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Perform payment

func (*OperationPayment) Descriptor deprecated

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

Deprecated: Use OperationPayment.ProtoReflect.Descriptor instead.

func (*OperationPayment) GetAmount

func (x *OperationPayment) GetAmount() int64

func (*OperationPayment) GetAsset

func (x *OperationPayment) GetAsset() *Asset

func (*OperationPayment) GetDestination

func (x *OperationPayment) GetDestination() string

func (*OperationPayment) ProtoMessage

func (*OperationPayment) ProtoMessage()

func (*OperationPayment) ProtoReflect

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

func (*OperationPayment) Reset

func (x *OperationPayment) Reset()

func (*OperationPayment) String

func (x *OperationPayment) String() string

type SigningInput

type SigningInput struct {

	// Transaction fee
	Fee int32 `protobuf:"varint,1,opt,name=fee,proto3" json:"fee,omitempty"`
	// Account sequence
	Sequence int64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// Source account
	Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
	// The secret private key used for signing (32 bytes).
	PrivateKey []byte `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// Wellknown passphrase, specific to the chain
	Passphrase string `protobuf:"bytes,5,opt,name=passphrase,proto3" json:"passphrase,omitempty"`
	// Payload message
	//
	// Types that are valid to be assigned to OperationOneof:
	//
	//	*SigningInput_OpCreateAccount
	//	*SigningInput_OpPayment
	//	*SigningInput_OpChangeTrust
	//	*SigningInput_OpCreateClaimableBalance
	//	*SigningInput_OpClaimClaimableBalance
	OperationOneof isSigningInput_OperationOneof `protobuf_oneof:"operation_oneof"`
	// Memo
	//
	// Types that are valid to be assigned to MemoTypeOneof:
	//
	//	*SigningInput_MemoVoid
	//	*SigningInput_MemoText
	//	*SigningInput_MemoId
	//	*SigningInput_MemoHash
	//	*SigningInput_MemoReturnHash
	MemoTypeOneof isSigningInput_MemoTypeOneof `protobuf_oneof:"memo_type_oneof"`
	TimeBounds    int64                        `protobuf:"varint,16,opt,name=time_bounds,json=timeBounds,proto3" json:"time_bounds,omitempty"`
	// contains filtered or unexported fields
}

Input data necessary to create a signed transaction.

func (*SigningInput) Descriptor deprecated

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

Deprecated: Use SigningInput.ProtoReflect.Descriptor instead.

func (*SigningInput) GetAccount

func (x *SigningInput) GetAccount() string

func (*SigningInput) GetFee

func (x *SigningInput) GetFee() int32

func (*SigningInput) GetMemoHash

func (x *SigningInput) GetMemoHash() *MemoHash

func (*SigningInput) GetMemoId

func (x *SigningInput) GetMemoId() *MemoId

func (*SigningInput) GetMemoReturnHash

func (x *SigningInput) GetMemoReturnHash() *MemoHash

func (*SigningInput) GetMemoText

func (x *SigningInput) GetMemoText() *MemoText

func (*SigningInput) GetMemoTypeOneof

func (x *SigningInput) GetMemoTypeOneof() isSigningInput_MemoTypeOneof

func (*SigningInput) GetMemoVoid

func (x *SigningInput) GetMemoVoid() *MemoVoid

func (*SigningInput) GetOpChangeTrust

func (x *SigningInput) GetOpChangeTrust() *OperationChangeTrust

func (*SigningInput) GetOpClaimClaimableBalance

func (x *SigningInput) GetOpClaimClaimableBalance() *OperationClaimClaimableBalance

func (*SigningInput) GetOpCreateAccount

func (x *SigningInput) GetOpCreateAccount() *OperationCreateAccount

func (*SigningInput) GetOpCreateClaimableBalance

func (x *SigningInput) GetOpCreateClaimableBalance() *OperationCreateClaimableBalance

func (*SigningInput) GetOpPayment

func (x *SigningInput) GetOpPayment() *OperationPayment

func (*SigningInput) GetOperationOneof

func (x *SigningInput) GetOperationOneof() isSigningInput_OperationOneof

func (*SigningInput) GetPassphrase

func (x *SigningInput) GetPassphrase() string

func (*SigningInput) GetPrivateKey

func (x *SigningInput) GetPrivateKey() []byte

func (*SigningInput) GetSequence

func (x *SigningInput) GetSequence() int64

func (*SigningInput) GetTimeBounds

func (x *SigningInput) GetTimeBounds() int64

func (*SigningInput) ProtoMessage

func (*SigningInput) ProtoMessage()

func (*SigningInput) ProtoReflect

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

func (*SigningInput) Reset

func (x *SigningInput) Reset()

func (*SigningInput) String

func (x *SigningInput) String() string

type SigningInput_MemoHash

type SigningInput_MemoHash struct {
	MemoHash *MemoHash `protobuf:"bytes,12,opt,name=memo_hash,json=memoHash,proto3,oneof"`
}

type SigningInput_MemoId

type SigningInput_MemoId struct {
	MemoId *MemoId `protobuf:"bytes,11,opt,name=memo_id,json=memoId,proto3,oneof"`
}

type SigningInput_MemoReturnHash

type SigningInput_MemoReturnHash struct {
	MemoReturnHash *MemoHash `protobuf:"bytes,13,opt,name=memo_return_hash,json=memoReturnHash,proto3,oneof"`
}

type SigningInput_MemoText

type SigningInput_MemoText struct {
	MemoText *MemoText `protobuf:"bytes,10,opt,name=memo_text,json=memoText,proto3,oneof"`
}

type SigningInput_MemoVoid

type SigningInput_MemoVoid struct {
	MemoVoid *MemoVoid `protobuf:"bytes,9,opt,name=memo_void,json=memoVoid,proto3,oneof"`
}

type SigningInput_OpChangeTrust

type SigningInput_OpChangeTrust struct {
	OpChangeTrust *OperationChangeTrust `protobuf:"bytes,8,opt,name=op_change_trust,json=opChangeTrust,proto3,oneof"`
}

type SigningInput_OpClaimClaimableBalance

type SigningInput_OpClaimClaimableBalance struct {
	OpClaimClaimableBalance *OperationClaimClaimableBalance `protobuf:"bytes,15,opt,name=op_claim_claimable_balance,json=opClaimClaimableBalance,proto3,oneof"`
}

type SigningInput_OpCreateAccount

type SigningInput_OpCreateAccount struct {
	OpCreateAccount *OperationCreateAccount `protobuf:"bytes,6,opt,name=op_create_account,json=opCreateAccount,proto3,oneof"`
}

type SigningInput_OpCreateClaimableBalance

type SigningInput_OpCreateClaimableBalance struct {
	OpCreateClaimableBalance *OperationCreateClaimableBalance `protobuf:"bytes,14,opt,name=op_create_claimable_balance,json=opCreateClaimableBalance,proto3,oneof"`
}

type SigningInput_OpPayment

type SigningInput_OpPayment struct {
	OpPayment *OperationPayment `protobuf:"bytes,7,opt,name=op_payment,json=opPayment,proto3,oneof"`
}

type SigningOutput

type SigningOutput struct {

	// Signature.
	Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// error code, 0 is ok, other codes will be treated as errors
	Error common.SigningError `protobuf:"varint,2,opt,name=error,proto3,enum=TW.Common.Proto.SigningError" json:"error,omitempty"`
	// error code description
	ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// contains filtered or unexported fields
}

Result containing the signed and encoded transaction.

func (*SigningOutput) Descriptor deprecated

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

Deprecated: Use SigningOutput.ProtoReflect.Descriptor instead.

func (*SigningOutput) GetError

func (x *SigningOutput) GetError() common.SigningError

func (*SigningOutput) GetErrorMessage

func (x *SigningOutput) GetErrorMessage() string

func (*SigningOutput) GetSignature

func (x *SigningOutput) GetSignature() string

func (*SigningOutput) ProtoMessage

func (*SigningOutput) ProtoMessage()

func (*SigningOutput) ProtoReflect

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

func (*SigningOutput) Reset

func (x *SigningOutput) Reset()

func (*SigningOutput) String

func (x *SigningOutput) String() string

Jump to

Keyboard shortcuts

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