stellar1

package
v0.0.0-...-02a1da1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: BSD-3-Clause Imports: 6 Imported by: 18 modules, 190 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountBundleVersionMap = map[string]AccountBundleVersion{
	"V1":  1,
	"V2":  2,
	"V3":  3,
	"V4":  4,
	"V5":  5,
	"V6":  6,
	"V7":  7,
	"V8":  8,
	"V9":  9,
	"V10": 10,
}
View Source
var AccountBundleVersionRevMap = map[AccountBundleVersion]string{
	1:  "V1",
	2:  "V2",
	3:  "V3",
	4:  "V4",
	5:  "V5",
	6:  "V6",
	7:  "V7",
	8:  "V8",
	9:  "V9",
	10: "V10",
}
View Source
var AccountModeMap = map[string]AccountMode{
	"NONE":   0,
	"USER":   1,
	"MOBILE": 2,
}
View Source
var AccountModeRevMap = map[AccountMode]string{
	0: "NONE",
	1: "USER",
	2: "MOBILE",
}
View Source
var BalanceDeltaMap = map[string]BalanceDelta{
	"NONE":     0,
	"INCREASE": 1,
	"DECREASE": 2,
}
View Source
var BalanceDeltaRevMap = map[BalanceDelta]string{
	0: "NONE",
	1: "INCREASE",
	2: "DECREASE",
}
View Source
var BundleVersionMap = map[string]BundleVersion{
	"V1":  1,
	"V2":  2,
	"V3":  3,
	"V4":  4,
	"V5":  5,
	"V6":  6,
	"V7":  7,
	"V8":  8,
	"V9":  9,
	"V10": 10,
}
View Source
var BundleVersionRevMap = map[BundleVersion]string{
	1:  "V1",
	2:  "V2",
	3:  "V3",
	4:  "V4",
	5:  "V5",
	6:  "V6",
	7:  "V7",
	8:  "V8",
	9:  "V9",
	10: "V10",
}
View Source
var PaymentStatusMap = map[string]PaymentStatus{
	"NONE":      0,
	"PENDING":   1,
	"CLAIMABLE": 2,
	"COMPLETED": 3,
	"ERROR":     4,
	"UNKNOWN":   5,
}
View Source
var PaymentStatusRevMap = map[PaymentStatus]string{
	0: "NONE",
	1: "PENDING",
	2: "CLAIMABLE",
	3: "COMPLETED",
	4: "ERROR",
	5: "UNKNOWN",
}
View Source
var RequestStatusMap = map[string]RequestStatus{
	"OK":       0,
	"CANCELED": 1,
	"DONE":     2,
}
View Source
var RequestStatusRevMap = map[RequestStatus]string{
	0: "OK",
	1: "CANCELED",
	2: "DONE",
}

Functions

func BundleProtocol

func BundleProtocol(i BundleInterface) rpc.Protocol

func CommonProtocol

func CommonProtocol(i CommonInterface) rpc.Protocol

func LocalProtocol

func LocalProtocol(i LocalInterface) rpc.Protocol

func RemoteProtocol

func RemoteProtocol(i RemoteInterface) rpc.Protocol

Types

type AccountBundle

type AccountBundle struct {
	Prev      Hash        `codec:"prev" json:"prev"`
	OwnHash   Hash        `codec:"ownHash" json:"ownHash"`
	AccountID AccountID   `codec:"accountID" json:"accountID"`
	Signers   []SecretKey `codec:"signers" json:"signers"`
}

func (AccountBundle) DeepCopy

func (o AccountBundle) DeepCopy() AccountBundle

type AccountBundleSecretUnsupported

type AccountBundleSecretUnsupported struct {
}

func (AccountBundleSecretUnsupported) DeepCopy

type AccountBundleSecretV1

type AccountBundleSecretV1 struct {
	AccountID AccountID   `codec:"accountID" json:"accountID"`
	Signers   []SecretKey `codec:"signers" json:"signers"`
}

func (AccountBundleSecretV1) DeepCopy

type AccountBundleSecretVersioned

type AccountBundleSecretVersioned struct {
	Version__ AccountBundleVersion            `codec:"version" json:"version"`
	V1__      *AccountBundleSecretV1          `codec:"v1,omitempty" json:"v1,omitempty"`
	V2__      *AccountBundleSecretUnsupported `codec:"v2,omitempty" json:"v2,omitempty"`
	V3__      *AccountBundleSecretUnsupported `codec:"v3,omitempty" json:"v3,omitempty"`
	V4__      *AccountBundleSecretUnsupported `codec:"v4,omitempty" json:"v4,omitempty"`
	V5__      *AccountBundleSecretUnsupported `codec:"v5,omitempty" json:"v5,omitempty"`
	V6__      *AccountBundleSecretUnsupported `codec:"v6,omitempty" json:"v6,omitempty"`
	V7__      *AccountBundleSecretUnsupported `codec:"v7,omitempty" json:"v7,omitempty"`
	V8__      *AccountBundleSecretUnsupported `codec:"v8,omitempty" json:"v8,omitempty"`
	V9__      *AccountBundleSecretUnsupported `codec:"v9,omitempty" json:"v9,omitempty"`
	V10__     *AccountBundleSecretUnsupported `codec:"v10,omitempty" json:"v10,omitempty"`
}

func (AccountBundleSecretVersioned) DeepCopy

func (AccountBundleSecretVersioned) V1

func (AccountBundleSecretVersioned) V2

func (AccountBundleSecretVersioned) V3

func (AccountBundleSecretVersioned) V4

func (AccountBundleSecretVersioned) V5

func (AccountBundleSecretVersioned) V6

func (AccountBundleSecretVersioned) V7

func (AccountBundleSecretVersioned) V8

func (AccountBundleSecretVersioned) V9

func (AccountBundleSecretVersioned) V10

func (*AccountBundleSecretVersioned) Version

type AccountBundleVersion

type AccountBundleVersion int
const (
	AccountBundleVersion_V1  AccountBundleVersion = 1
	AccountBundleVersion_V2  AccountBundleVersion = 2
	AccountBundleVersion_V3  AccountBundleVersion = 3
	AccountBundleVersion_V4  AccountBundleVersion = 4
	AccountBundleVersion_V5  AccountBundleVersion = 5
	AccountBundleVersion_V6  AccountBundleVersion = 6
	AccountBundleVersion_V7  AccountBundleVersion = 7
	AccountBundleVersion_V8  AccountBundleVersion = 8
	AccountBundleVersion_V9  AccountBundleVersion = 9
	AccountBundleVersion_V10 AccountBundleVersion = 10
)

func (AccountBundleVersion) DeepCopy

func (AccountBundleVersion) String

func (o AccountBundleVersion) String() string

type AccountID

type AccountID string

func (AccountID) DeepCopy

func (o AccountID) DeepCopy() AccountID

func (AccountID) Eq

func (a AccountID) Eq(b AccountID) bool

func (AccountID) IsNil

func (a AccountID) IsNil() bool

func (AccountID) String

func (a AccountID) String() string

type AccountMode

type AccountMode int
const (
	AccountMode_NONE   AccountMode = 0
	AccountMode_USER   AccountMode = 1
	AccountMode_MOBILE AccountMode = 2
)

func (AccountMode) DeepCopy

func (o AccountMode) DeepCopy() AccountMode

func (AccountMode) String

func (o AccountMode) String() string

type Asset

type Asset struct {
	Type               string `codec:"type" json:"type"`
	Code               string `codec:"code" json:"code"`
	Issuer             string `codec:"issuer" json:"issuer"`
	VerifiedDomain     string `codec:"verifiedDomain" json:"verifiedDomain"`
	IssuerName         string `codec:"issuerName" json:"issuerName"`
	Desc               string `codec:"desc" json:"desc"`
	InfoUrl            string `codec:"infoUrl" json:"infoUrl"`
	InfoUrlText        string `codec:"infoUrlText" json:"infoUrlText"`
	ShowDepositButton  bool   `codec:"showDepositButton" json:"showDepositButton"`
	DepositButtonText  string `codec:"depositButtonText" json:"depositButtonText"`
	ShowWithdrawButton bool   `codec:"showWithdrawButton" json:"showWithdrawButton"`
	WithdrawButtonText string `codec:"withdrawButtonText" json:"withdrawButtonText"`
	WithdrawType       string `codec:"withdrawType" json:"withdrawType"`
	TransferServer     string `codec:"transferServer" json:"transferServer"`
	AuthEndpoint       string `codec:"authEndpoint" json:"authEndpoint"`
	DepositReqAuth     bool   `codec:"depositReqAuth" json:"depositReqAuth"`
	WithdrawReqAuth    bool   `codec:"withdrawReqAuth" json:"withdrawReqAuth"`
	UseSep24           bool   `codec:"useSep24" json:"useSep24"`
}

func (Asset) DeepCopy

func (o Asset) DeepCopy() Asset

func (*Asset) IsEmpty

func (a *Asset) IsEmpty() bool

func (*Asset) IsNativeXLM

func (a *Asset) IsNativeXLM() bool

func (Asset) String

func (a Asset) String() string

String returns a display friendly form of the asset, compatible with xdr.Asset fomat: type/code/issuer or just "native" if asset is native XLM.

func (Asset) TypeString

func (a Asset) TypeString() string

type Balance

type Balance struct {
	Asset        Asset  `codec:"asset" json:"asset"`
	Amount       string `codec:"amount" json:"amount"`
	Limit        string `codec:"limit" json:"limit"`
	IsAuthorized bool   `codec:"isAuthorized" json:"isAuthorized"`
}

func (Balance) DeepCopy

func (o Balance) DeepCopy() Balance

type BalanceDelta

type BalanceDelta int
const (
	BalanceDelta_NONE     BalanceDelta = 0
	BalanceDelta_INCREASE BalanceDelta = 1
	BalanceDelta_DECREASE BalanceDelta = 2
)

func (BalanceDelta) DeepCopy

func (o BalanceDelta) DeepCopy() BalanceDelta

func (BalanceDelta) String

func (o BalanceDelta) String() string

type BalancesArg

type BalancesArg struct {
	Caller    keybase1.UserVersion `codec:"caller" json:"caller"`
	AccountID AccountID            `codec:"accountID" json:"accountID"`
}

type Bundle

type Bundle struct {
	Revision       BundleRevision              `codec:"revision" json:"revision"`
	Prev           Hash                        `codec:"prev" json:"prev"`
	OwnHash        Hash                        `codec:"ownHash" json:"ownHash"`
	Accounts       []BundleEntry               `codec:"accounts" json:"accounts"`
	AccountBundles map[AccountID]AccountBundle `codec:"accountBundles" json:"accountBundles"`
}

func (Bundle) CheckInvariants

func (r Bundle) CheckInvariants() error

CheckInvariants checks that the Bundle satisfies 1. No duplicate account IDs 2. Exactly one primary account 3. Non-negative revision numbers 4. Account Bundle accountIDs are consistent 5. every account in AccountBundles is also in Accounts

func (Bundle) DeepCopy

func (o Bundle) DeepCopy() Bundle

func (Bundle) Lookup

func (s Bundle) Lookup(acctID AccountID) (BundleEntry, error)

type BundleClient

type BundleClient struct {
	Cli rpc.GenericClient
}

type BundleEntry

type BundleEntry struct {
	AccountID          AccountID      `codec:"accountID" json:"accountID"`
	Mode               AccountMode    `codec:"mode" json:"mode"`
	IsPrimary          bool           `codec:"isPrimary" json:"isPrimary"`
	Name               string         `codec:"name" json:"name"`
	AcctBundleRevision BundleRevision `codec:"acctBundleRevision" json:"acctBundleRevision"`
	EncAcctBundleHash  Hash           `codec:"encAcctBundleHash" json:"encAcctBundleHash"`
}

func (BundleEntry) DeepCopy

func (o BundleEntry) DeepCopy() BundleEntry

type BundleInterface

type BundleInterface interface {
}

type BundleRevision

type BundleRevision uint64

func (BundleRevision) DeepCopy

func (o BundleRevision) DeepCopy() BundleRevision

type BundleSecretEntryV2

type BundleSecretEntryV2 struct {
	AccountID AccountID `codec:"accountID" json:"accountID"`
	Name      string    `codec:"name" json:"name"`
}

func (BundleSecretEntryV2) DeepCopy

type BundleSecretUnsupported

type BundleSecretUnsupported struct {
}

func (BundleSecretUnsupported) DeepCopy

type BundleSecretV2

type BundleSecretV2 struct {
	VisibleHash Hash                  `codec:"visibleHash" json:"visibleHash"`
	Accounts    []BundleSecretEntryV2 `codec:"accounts" json:"accounts"`
}

func (BundleSecretV2) DeepCopy

func (o BundleSecretV2) DeepCopy() BundleSecretV2

type BundleSecretVersioned

type BundleSecretVersioned struct {
	Version__ BundleVersion            `codec:"version" json:"version"`
	V1__      *BundleSecretUnsupported `codec:"v1,omitempty" json:"v1,omitempty"`
	V2__      *BundleSecretV2          `codec:"v2,omitempty" json:"v2,omitempty"`
	V3__      *BundleSecretUnsupported `codec:"v3,omitempty" json:"v3,omitempty"`
	V4__      *BundleSecretUnsupported `codec:"v4,omitempty" json:"v4,omitempty"`
	V5__      *BundleSecretUnsupported `codec:"v5,omitempty" json:"v5,omitempty"`
	V6__      *BundleSecretUnsupported `codec:"v6,omitempty" json:"v6,omitempty"`
	V7__      *BundleSecretUnsupported `codec:"v7,omitempty" json:"v7,omitempty"`
	V8__      *BundleSecretUnsupported `codec:"v8,omitempty" json:"v8,omitempty"`
	V9__      *BundleSecretUnsupported `codec:"v9,omitempty" json:"v9,omitempty"`
	V10__     *BundleSecretUnsupported `codec:"v10,omitempty" json:"v10,omitempty"`
}

func NewBundleSecretVersionedWithV2

func NewBundleSecretVersionedWithV2(v BundleSecretV2) BundleSecretVersioned

func (BundleSecretVersioned) DeepCopy

func (BundleSecretVersioned) V1

func (BundleSecretVersioned) V2

func (BundleSecretVersioned) V3

func (BundleSecretVersioned) V4

func (BundleSecretVersioned) V5

func (BundleSecretVersioned) V6

func (BundleSecretVersioned) V7

func (BundleSecretVersioned) V8

func (BundleSecretVersioned) V9

func (BundleSecretVersioned) V10

func (*BundleSecretVersioned) Version

func (o *BundleSecretVersioned) Version() (ret BundleVersion, err error)

type BundleVersion

type BundleVersion int
const (
	BundleVersion_V1  BundleVersion = 1
	BundleVersion_V2  BundleVersion = 2
	BundleVersion_V3  BundleVersion = 3
	BundleVersion_V4  BundleVersion = 4
	BundleVersion_V5  BundleVersion = 5
	BundleVersion_V6  BundleVersion = 6
	BundleVersion_V7  BundleVersion = 7
	BundleVersion_V8  BundleVersion = 8
	BundleVersion_V9  BundleVersion = 9
	BundleVersion_V10 BundleVersion = 10
)

func (BundleVersion) DeepCopy

func (o BundleVersion) DeepCopy() BundleVersion

func (BundleVersion) String

func (o BundleVersion) String() string

type BundleVisibleEntryV2

type BundleVisibleEntryV2 struct {
	AccountID          AccountID      `codec:"accountID" json:"accountID"`
	Mode               AccountMode    `codec:"mode" json:"mode"`
	IsPrimary          bool           `codec:"isPrimary" json:"isPrimary"`
	AcctBundleRevision BundleRevision `codec:"acctBundleRevision" json:"acctBundleRevision"`
	EncAcctBundleHash  Hash           `codec:"encAcctBundleHash" json:"encAcctBundleHash"`
}

func (BundleVisibleEntryV2) DeepCopy

type BundleVisibleV2

type BundleVisibleV2 struct {
	Revision BundleRevision         `codec:"revision" json:"revision"`
	Prev     Hash                   `codec:"prev" json:"prev"`
	Accounts []BundleVisibleEntryV2 `codec:"accounts" json:"accounts"`
}

func (BundleVisibleV2) DeepCopy

func (o BundleVisibleV2) DeepCopy() BundleVisibleV2

type CommonClient

type CommonClient struct {
	Cli rpc.GenericClient
}

type CommonInterface

type CommonInterface interface {
}

type CurrencyLocal

type CurrencyLocal struct {
	Description string              `codec:"description" json:"description"`
	Code        OutsideCurrencyCode `codec:"code" json:"code"`
	Symbol      string              `codec:"symbol" json:"symbol"`
	Name        string              `codec:"name" json:"name"`
}

func (CurrencyLocal) DeepCopy

func (o CurrencyLocal) DeepCopy() CurrencyLocal

type DeleteWalletAccountLocalArg

type DeleteWalletAccountLocalArg struct {
	SessionID        int       `codec:"sessionID" json:"sessionID"`
	AccountID        AccountID `codec:"accountID" json:"accountID"`
	UserAcknowledged string    `codec:"userAcknowledged" json:"userAcknowledged"`
}

type EncryptedAccountBundle

type EncryptedAccountBundle struct {
	V   int                           `codec:"v" json:"v"`
	E   []byte                        `codec:"e" json:"e"`
	N   keybase1.BoxNonce             `codec:"n" json:"n"`
	Gen keybase1.PerUserKeyGeneration `codec:"gen" json:"gen"`
}

func (EncryptedAccountBundle) DeepCopy

type EncryptedBundle

type EncryptedBundle struct {
	V   int                           `codec:"v" json:"v"`
	E   []byte                        `codec:"e" json:"e"`
	N   keybase1.BoxNonce             `codec:"n" json:"n"`
	Gen keybase1.PerUserKeyGeneration `codec:"gen" json:"gen"`
}

func (EncryptedBundle) DeepCopy

func (o EncryptedBundle) DeepCopy() EncryptedBundle

type ExportSecretKeyLocalArg

type ExportSecretKeyLocalArg struct {
	AccountID AccountID `codec:"accountID" json:"accountID"`
}

type GetWalletAccountSecretKeyLocalArg

type GetWalletAccountSecretKeyLocalArg struct {
	SessionID int       `codec:"sessionID" json:"sessionID"`
	AccountID AccountID `codec:"accountID" json:"accountID"`
}

type GetWalletAccountsLocalArg

type GetWalletAccountsLocalArg struct {
	SessionID int `codec:"sessionID" json:"sessionID"`
}

type HasAcceptedDisclaimerLocalArg

type HasAcceptedDisclaimerLocalArg struct {
	SessionID int `codec:"sessionID" json:"sessionID"`
}

type Hash

type Hash []byte

func (Hash) DeepCopy

func (o Hash) DeepCopy() Hash

type KeybaseRequestID

type KeybaseRequestID string

func (KeybaseRequestID) DeepCopy

func (o KeybaseRequestID) DeepCopy() KeybaseRequestID

func (KeybaseRequestID) Eq

func (KeybaseRequestID) String

func (k KeybaseRequestID) String() string

type LocalClient

type LocalClient struct {
	Cli rpc.GenericClient
}

func (LocalClient) DeleteWalletAccountLocal

func (c LocalClient) DeleteWalletAccountLocal(ctx context.Context, __arg DeleteWalletAccountLocalArg) (err error)

func (LocalClient) ExportSecretKeyLocal

func (c LocalClient) ExportSecretKeyLocal(ctx context.Context, accountID AccountID) (res SecretKey, err error)

func (LocalClient) GetWalletAccountSecretKeyLocal

func (c LocalClient) GetWalletAccountSecretKeyLocal(ctx context.Context, __arg GetWalletAccountSecretKeyLocalArg) (res SecretKey, err error)

func (LocalClient) GetWalletAccountsLocal

func (c LocalClient) GetWalletAccountsLocal(ctx context.Context, sessionID int) (res []WalletAccountLocal, err error)

func (LocalClient) HasAcceptedDisclaimerLocal

func (c LocalClient) HasAcceptedDisclaimerLocal(ctx context.Context, sessionID int) (res bool, err error)

type LocalInterface

type LocalInterface interface {
	GetWalletAccountsLocal(context.Context, int) ([]WalletAccountLocal, error)
	DeleteWalletAccountLocal(context.Context, DeleteWalletAccountLocalArg) error
	HasAcceptedDisclaimerLocal(context.Context, int) (bool, error)
	GetWalletAccountSecretKeyLocal(context.Context, GetWalletAccountSecretKeyLocalArg) (SecretKey, error)
	ExportSecretKeyLocal(context.Context, AccountID) (SecretKey, error)
}

type OutsideCurrencyCode

type OutsideCurrencyCode string

func (OutsideCurrencyCode) DeepCopy

func (OutsideCurrencyCode) String

func (c OutsideCurrencyCode) String() string

type PaymentID

type PaymentID string

func (PaymentID) DeepCopy

func (o PaymentID) DeepCopy() PaymentID

func (PaymentID) String

func (p PaymentID) String() string

type PaymentStatus

type PaymentStatus int
const (
	PaymentStatus_NONE      PaymentStatus = 0
	PaymentStatus_PENDING   PaymentStatus = 1
	PaymentStatus_CLAIMABLE PaymentStatus = 2
	PaymentStatus_COMPLETED PaymentStatus = 3
	PaymentStatus_ERROR     PaymentStatus = 4
	PaymentStatus_UNKNOWN   PaymentStatus = 5
)

func (PaymentStatus) DeepCopy

func (o PaymentStatus) DeepCopy() PaymentStatus

func (PaymentStatus) String

func (o PaymentStatus) String() string

type RemoteClient

type RemoteClient struct {
	Cli rpc.GenericClient
}

func (RemoteClient) Balances

func (c RemoteClient) Balances(ctx context.Context, __arg BalancesArg) (res []Balance, err error)

type RemoteInterface

type RemoteInterface interface {
	Balances(context.Context, BalancesArg) ([]Balance, error)
}

type RequestStatus

type RequestStatus int
const (
	RequestStatus_OK       RequestStatus = 0
	RequestStatus_CANCELED RequestStatus = 1
	RequestStatus_DONE     RequestStatus = 2
)

func (RequestStatus) DeepCopy

func (o RequestStatus) DeepCopy() RequestStatus

func (RequestStatus) String

func (o RequestStatus) String() string

type SecretKey

type SecretKey string

func (SecretKey) DeepCopy

func (o SecretKey) DeepCopy() SecretKey

func (SecretKey) SecureNoLogString

func (s SecretKey) SecureNoLogString() string

func (SecretKey) String

func (s SecretKey) String() string

type TransactionID

type TransactionID string

func (TransactionID) DeepCopy

func (o TransactionID) DeepCopy() TransactionID

func (TransactionID) Eq

func (TransactionID) String

func (t TransactionID) String() string

type WalletAccountLocal

type WalletAccountLocal struct {
	AccountID           AccountID     `codec:"accountID" json:"accountID"`
	IsDefault           bool          `codec:"isDefault" json:"isDefault"`
	Name                string        `codec:"name" json:"name"`
	BalanceDescription  string        `codec:"balanceDescription" json:"balanceDescription"`
	Seqno               string        `codec:"seqno" json:"seqno"`
	CurrencyLocal       CurrencyLocal `codec:"currencyLocal" json:"currencyLocal"`
	AccountMode         AccountMode   `codec:"accountMode" json:"accountMode"`
	AccountModeEditable bool          `codec:"accountModeEditable" json:"accountModeEditable"`
	DeviceReadOnly      bool          `codec:"deviceReadOnly" json:"deviceReadOnly"`
	IsFunded            bool          `codec:"isFunded" json:"isFunded"`
	CanSubmitTx         bool          `codec:"canSubmitTx" json:"canSubmitTx"`
	CanAddTrustline     bool          `codec:"canAddTrustline" json:"canAddTrustline"`
}

func (WalletAccountLocal) DeepCopy

Jump to

Keyboard shortcuts

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