Documentation
¶
Index ¶
- Constants
- Variables
- func BundleProtocol(i BundleInterface) rpc.Protocol
- func CommonProtocol(i CommonInterface) rpc.Protocol
- func FromTimeMs(t TimeMs) time.Time
- func LocalProtocol(i LocalInterface) rpc.Protocol
- func RemoteProtocol(i RemoteInterface) rpc.Protocol
- type AccountID
- type AccountMode
- type AccountSeqnoArg
- type Asset
- type Balance
- type BalancesArg
- type BalancesLocalArg
- type Bundle
- type BundleClient
- type BundleEntry
- type BundleInterface
- type BundleRevision
- type BundleSecretEntry
- type BundleSecretV1
- type BundleSecretVersioned
- type BundleVersion
- type BundleVisibleEntry
- type BundleVisibleV1
- type CommonClient
- type CommonInterface
- type EncryptedBundle
- type EncryptedNote
- type EncryptedRelaySecret
- type ExchangeRateLocalArg
- type ExportSecretKeyLocalArg
- type Hash
- type ImportSecretKeyLocalArg
- type IsMasterKeyActiveArg
- type KeybaseTransactionID
- type LocalClient
- func (c LocalClient) BalancesLocal(ctx context.Context, accountID AccountID) (res []Balance, err error)
- func (c LocalClient) ExchangeRateLocal(ctx context.Context, currency OutsideCurrencyCode) (res OutsideExchangeRate, err error)
- func (c LocalClient) ExportSecretKeyLocal(ctx context.Context, accountID AccountID) (res SecretKey, err error)
- func (c LocalClient) ImportSecretKeyLocal(ctx context.Context, __arg ImportSecretKeyLocalArg) (err error)
- func (c LocalClient) OwnAccountLocal(ctx context.Context, accountID AccountID) (res bool, err error)
- func (c LocalClient) PaymentDetailCLILocal(ctx context.Context, txID string) (res PaymentCLILocal, err error)
- func (c LocalClient) RecentPaymentsCLILocal(ctx context.Context, accountID *AccountID) (res []PaymentCLILocal, err error)
- func (c LocalClient) SendLocal(ctx context.Context, __arg SendLocalArg) (res PaymentResult, err error)
- func (c LocalClient) SetDisplayCurrency(ctx context.Context, __arg SetDisplayCurrencyArg) (err error)
- func (c LocalClient) WalletDumpLocal(ctx context.Context) (res Bundle, err error)
- func (c LocalClient) WalletGetLocalAccounts(ctx context.Context) (res []LocalOwnAccount, err error)
- func (c LocalClient) WalletInitLocal(ctx context.Context) (err error)
- type LocalInterface
- type LocalOwnAccount
- type NoteContents
- type NoteRecipient
- type OutsideCurrencyCode
- type OutsideExchangeRate
- type OwnAccountLocalArg
- type PaymentCLILocal
- type PaymentDetailArg
- type PaymentDetailCLILocalArg
- type PaymentDirectPost
- type PaymentRelayPost
- type PaymentResult
- type PaymentStrategy
- type PaymentSummary
- type PaymentSummaryKeybase
- type PaymentSummaryStellar
- type PingArg
- type RecentPaymentsArg
- type RecentPaymentsCLILocalArg
- type RelayContents
- type RelayDirection
- type RemoteClient
- func (c RemoteClient) AccountSeqno(ctx context.Context, __arg AccountSeqnoArg) (res string, err error)
- func (c RemoteClient) Balances(ctx context.Context, __arg BalancesArg) (res []Balance, err error)
- func (c RemoteClient) IsMasterKeyActive(ctx context.Context, __arg IsMasterKeyActiveArg) (res bool, err error)
- func (c RemoteClient) PaymentDetail(ctx context.Context, __arg PaymentDetailArg) (res PaymentSummary, err error)
- func (c RemoteClient) Ping(ctx context.Context) (res string, err error)
- func (c RemoteClient) RecentPayments(ctx context.Context, __arg RecentPaymentsArg) (res []PaymentSummary, err error)
- func (c RemoteClient) SubmitPayment(ctx context.Context, __arg SubmitPaymentArg) (res PaymentResult, err error)
- func (c RemoteClient) SubmitRelayPayment(ctx context.Context, __arg SubmitRelayPaymentArg) (res PaymentResult, err error)
- type RemoteInterface
- type SecretKey
- type SendLocalArg
- type SetDisplayCurrencyArg
- type SubmitPaymentArg
- type SubmitRelayPaymentArg
- type TimeMs
- type TransactionID
- type TransactionStatus
- type WalletDumpLocalArg
- type WalletGetLocalAccountsArg
- type WalletInitLocalArg
Constants ¶
View Source
const ( KeybaseTransactionIDLen = 16 KeybaseTransactionIDSuffix = 0x30 KeybaseTransactionIDSuffixHex = "30" )
Variables ¶
View Source
var AccountModeMap = map[string]AccountMode{
"NONE": 0,
"USER": 1,
}
View Source
var AccountModeRevMap = map[AccountMode]string{
0: "NONE",
1: "USER",
}
View Source
var BundleVersionMap = map[string]BundleVersion{
"V1": 1,
}
View Source
var BundleVersionRevMap = map[BundleVersion]string{
1: "V1",
}
View Source
var PaymentStrategyMap = map[string]PaymentStrategy{
"NONE": 0,
"DIRECT": 1,
"RELAY": 2,
}
View Source
var PaymentStrategyRevMap = map[PaymentStrategy]string{
0: "NONE",
1: "DIRECT",
2: "RELAY",
}
View Source
var RelayDirectionMap = map[string]RelayDirection{
"CLAIM": 0,
"YANK": 1,
}
View Source
var RelayDirectionRevMap = map[RelayDirection]string{
0: "CLAIM",
1: "YANK",
}
View Source
var TransactionStatusMap = map[string]TransactionStatus{
"NONE": 0,
"PENDING": 1,
"SUCCESS": 2,
"ERROR_TRANSIENT": 3,
"ERROR_PERMANENT": 4,
}
View Source
var TransactionStatusRevMap = map[TransactionStatus]string{
0: "NONE",
1: "PENDING",
2: "SUCCESS",
3: "ERROR_TRANSIENT",
4: "ERROR_PERMANENT",
}
Functions ¶
func BundleProtocol ¶
func BundleProtocol(i BundleInterface) rpc.Protocol
func CommonProtocol ¶
func CommonProtocol(i CommonInterface) rpc.Protocol
func FromTimeMs ¶
func LocalProtocol ¶
func LocalProtocol(i LocalInterface) rpc.Protocol
func RemoteProtocol ¶
func RemoteProtocol(i RemoteInterface) rpc.Protocol
Types ¶
type AccountMode ¶
type AccountMode int
const ( AccountMode_NONE AccountMode = 0 AccountMode_USER AccountMode = 1 )
func (AccountMode) DeepCopy ¶
func (o AccountMode) DeepCopy() AccountMode
func (AccountMode) String ¶
func (e AccountMode) String() string
type AccountSeqnoArg ¶
type AccountSeqnoArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
AccountID AccountID `codec:"accountID" json:"accountID"`
}
type Asset ¶
type Asset struct {
Type string `codec:"type" json:"type"`
Code string `codec:"code" json:"code"`
Issuer string `codec:"issuer" json:"issuer"`
}
func AssetNative ¶
func AssetNative() Asset
func (*Asset) IsNativeXLM ¶
type Balance ¶
type BalancesArg ¶
type BalancesArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
AccountID AccountID `codec:"accountID" json:"accountID"`
}
type BalancesLocalArg ¶
type BalancesLocalArg struct {
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"`
}
func (Bundle) CheckInvariants ¶
CheckInvariants checks that the bundle satisfies 1. No duplicate account IDs 2. At most one primary account
func (Bundle) PrimaryAccount ¶
func (s Bundle) PrimaryAccount() (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"`
Signers []SecretKey `codec:"signers" json:"signers"`
Name string `codec:"name" json:"name"`
}
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 BundleSecretEntry ¶
type BundleSecretEntry struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
Signers []SecretKey `codec:"signers" json:"signers"`
Name string `codec:"name" json:"name"`
}
func (BundleSecretEntry) DeepCopy ¶
func (o BundleSecretEntry) DeepCopy() BundleSecretEntry
type BundleSecretV1 ¶
type BundleSecretV1 struct {
VisibleHash Hash `codec:"visibleHash" json:"visibleHash"`
Accounts []BundleSecretEntry `codec:"accounts" json:"accounts"`
}
func (BundleSecretV1) DeepCopy ¶
func (o BundleSecretV1) DeepCopy() BundleSecretV1
type BundleSecretVersioned ¶
type BundleSecretVersioned struct {
Version__ BundleVersion `codec:"version" json:"version"`
V1__ *BundleSecretV1 `codec:"v1,omitempty" json:"v1,omitempty"`
}
func NewBundleSecretVersionedWithV1 ¶
func NewBundleSecretVersionedWithV1(v BundleSecretV1) BundleSecretVersioned
func (BundleSecretVersioned) DeepCopy ¶
func (o BundleSecretVersioned) DeepCopy() BundleSecretVersioned
func (BundleSecretVersioned) V1 ¶
func (o BundleSecretVersioned) V1() (res BundleSecretV1)
func (*BundleSecretVersioned) Version ¶
func (o *BundleSecretVersioned) Version() (ret BundleVersion, err error)
type BundleVersion ¶
type BundleVersion int
const (
BundleVersion_V1 BundleVersion = 1
)
func (BundleVersion) DeepCopy ¶
func (o BundleVersion) DeepCopy() BundleVersion
func (BundleVersion) String ¶
func (e BundleVersion) String() string
type BundleVisibleEntry ¶
type BundleVisibleEntry struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
Mode AccountMode `codec:"mode" json:"mode"`
IsPrimary bool `codec:"isPrimary" json:"isPrimary"`
}
func (BundleVisibleEntry) DeepCopy ¶
func (o BundleVisibleEntry) DeepCopy() BundleVisibleEntry
type BundleVisibleV1 ¶
type BundleVisibleV1 struct {
Revision BundleRevision `codec:"revision" json:"revision"`
Prev Hash `codec:"prev" json:"prev"`
Accounts []BundleVisibleEntry `codec:"accounts" json:"accounts"`
}
func (BundleVisibleV1) DeepCopy ¶
func (o BundleVisibleV1) DeepCopy() BundleVisibleV1
type CommonClient ¶
type CommonClient struct {
Cli rpc.GenericClient
}
type CommonInterface ¶
type CommonInterface interface {
}
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 EncryptedNote ¶
type EncryptedNote struct {
V int `codec:"v" json:"v"`
E []byte `codec:"e" json:"e"`
N keybase1.BoxNonce `codec:"n" json:"n"`
Sender NoteRecipient `codec:"sender" json:"sender"`
Recipient *NoteRecipient `codec:"recipient,omitempty" json:"recipient,omitempty"`
}
func (EncryptedNote) DeepCopy ¶
func (o EncryptedNote) DeepCopy() EncryptedNote
type EncryptedRelaySecret ¶
type EncryptedRelaySecret struct {
V int `codec:"v" json:"v"`
E []byte `codec:"e" json:"e"`
N keybase1.BoxNonce `codec:"n" json:"n"`
Gen keybase1.PerTeamKeyGeneration `codec:"gen" json:"gen"`
}
func (EncryptedRelaySecret) DeepCopy ¶
func (o EncryptedRelaySecret) DeepCopy() EncryptedRelaySecret
type ExchangeRateLocalArg ¶
type ExchangeRateLocalArg struct {
Currency OutsideCurrencyCode `codec:"currency" json:"currency"`
}
type ExportSecretKeyLocalArg ¶
type ExportSecretKeyLocalArg struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
}
type ImportSecretKeyLocalArg ¶
type IsMasterKeyActiveArg ¶
type IsMasterKeyActiveArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
AccountID AccountID `codec:"accountID" json:"accountID"`
}
type KeybaseTransactionID ¶
type KeybaseTransactionID string
func KeybaseTransactionIDFromString ¶
func KeybaseTransactionIDFromString(s string) (KeybaseTransactionID, error)
func (KeybaseTransactionID) DeepCopy ¶
func (o KeybaseTransactionID) DeepCopy() KeybaseTransactionID
func (KeybaseTransactionID) String ¶
func (k KeybaseTransactionID) String() string
type LocalClient ¶
type LocalClient struct {
Cli rpc.GenericClient
}
func (LocalClient) BalancesLocal ¶
func (LocalClient) ExchangeRateLocal ¶
func (c LocalClient) ExchangeRateLocal(ctx context.Context, currency OutsideCurrencyCode) (res OutsideExchangeRate, err error)
func (LocalClient) ExportSecretKeyLocal ¶
func (LocalClient) ImportSecretKeyLocal ¶
func (c LocalClient) ImportSecretKeyLocal(ctx context.Context, __arg ImportSecretKeyLocalArg) (err error)
func (LocalClient) OwnAccountLocal ¶
func (LocalClient) PaymentDetailCLILocal ¶
func (c LocalClient) PaymentDetailCLILocal(ctx context.Context, txID string) (res PaymentCLILocal, err error)
func (LocalClient) RecentPaymentsCLILocal ¶
func (c LocalClient) RecentPaymentsCLILocal(ctx context.Context, accountID *AccountID) (res []PaymentCLILocal, err error)
func (LocalClient) SendLocal ¶
func (c LocalClient) SendLocal(ctx context.Context, __arg SendLocalArg) (res PaymentResult, err error)
func (LocalClient) SetDisplayCurrency ¶
func (c LocalClient) SetDisplayCurrency(ctx context.Context, __arg SetDisplayCurrencyArg) (err error)
func (LocalClient) WalletDumpLocal ¶
func (c LocalClient) WalletDumpLocal(ctx context.Context) (res Bundle, err error)
func (LocalClient) WalletGetLocalAccounts ¶
func (c LocalClient) WalletGetLocalAccounts(ctx context.Context) (res []LocalOwnAccount, err error)
func (LocalClient) WalletInitLocal ¶
func (c LocalClient) WalletInitLocal(ctx context.Context) (err error)
type LocalInterface ¶
type LocalInterface interface {
BalancesLocal(context.Context, AccountID) ([]Balance, error)
SendLocal(context.Context, SendLocalArg) (PaymentResult, error)
RecentPaymentsCLILocal(context.Context, *AccountID) ([]PaymentCLILocal, error)
PaymentDetailCLILocal(context.Context, string) (PaymentCLILocal, error)
WalletInitLocal(context.Context) error
WalletDumpLocal(context.Context) (Bundle, error)
WalletGetLocalAccounts(context.Context) ([]LocalOwnAccount, error)
OwnAccountLocal(context.Context, AccountID) (bool, error)
ImportSecretKeyLocal(context.Context, ImportSecretKeyLocalArg) error
ExportSecretKeyLocal(context.Context, AccountID) (SecretKey, error)
SetDisplayCurrency(context.Context, SetDisplayCurrencyArg) error
ExchangeRateLocal(context.Context, OutsideCurrencyCode) (OutsideExchangeRate, error)
}
type LocalOwnAccount ¶
type LocalOwnAccount struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
IsPrimary bool `codec:"isPrimary" json:"isPrimary"`
Name string `codec:"name" json:"name"`
Balance []Balance `codec:"balance" json:"balance"`
ExchangeRate *OutsideExchangeRate `codec:"exchangeRate,omitempty" json:"exchangeRate,omitempty"`
}
func (LocalOwnAccount) DeepCopy ¶
func (o LocalOwnAccount) DeepCopy() LocalOwnAccount
type NoteContents ¶
type NoteContents struct {
Note string `codec:"note" json:"note"`
StellarID TransactionID `codec:"stellarID" json:"stellarID"`
}
func (NoteContents) DeepCopy ¶
func (o NoteContents) DeepCopy() NoteContents
type NoteRecipient ¶
type NoteRecipient struct {
User keybase1.UserVersion `codec:"user" json:"user"`
PukGen keybase1.PerUserKeyGeneration `codec:"pukGen" json:"pukGen"`
}
func (NoteRecipient) DeepCopy ¶
func (o NoteRecipient) DeepCopy() NoteRecipient
type OutsideCurrencyCode ¶
type OutsideCurrencyCode string
func (OutsideCurrencyCode) DeepCopy ¶
func (o OutsideCurrencyCode) DeepCopy() OutsideCurrencyCode
type OutsideExchangeRate ¶
type OutsideExchangeRate struct {
Currency OutsideCurrencyCode `codec:"currency" json:"currency"`
Rate string `codec:"rate" json:"rate"`
}
func (OutsideExchangeRate) DeepCopy ¶
func (o OutsideExchangeRate) DeepCopy() OutsideExchangeRate
type OwnAccountLocalArg ¶
type OwnAccountLocalArg struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
}
type PaymentCLILocal ¶
type PaymentCLILocal struct {
StellarTxID TransactionID `codec:"stellarTxID" json:"stellarTxID"`
Time TimeMs `codec:"time" json:"time"`
Status string `codec:"status" json:"status"`
StatusDetail string `codec:"statusDetail" json:"statusDetail"`
Amount string `codec:"amount" json:"amount"`
Asset Asset `codec:"asset" json:"asset"`
DisplayAmount *string `codec:"displayAmount,omitempty" json:"displayAmount,omitempty"`
DisplayCurrency *string `codec:"displayCurrency,omitempty" json:"displayCurrency,omitempty"`
FromStellar AccountID `codec:"fromStellar" json:"fromStellar"`
ToStellar AccountID `codec:"toStellar" json:"toStellar"`
FromUsername *string `codec:"fromUsername,omitempty" json:"fromUsername,omitempty"`
ToUsername *string `codec:"toUsername,omitempty" json:"toUsername,omitempty"`
Note string `codec:"note" json:"note"`
NoteErr string `codec:"noteErr" json:"noteErr"`
}
func (PaymentCLILocal) DeepCopy ¶
func (o PaymentCLILocal) DeepCopy() PaymentCLILocal
type PaymentDetailArg ¶
type PaymentDetailArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
TxID string `codec:"txID" json:"txID"`
}
type PaymentDetailCLILocalArg ¶
type PaymentDetailCLILocalArg struct {
TxID string `codec:"txID" json:"txID"`
}
type PaymentDirectPost ¶
type PaymentDirectPost struct {
FromDeviceID keybase1.DeviceID `codec:"fromDeviceID" json:"fromDeviceID"`
To *keybase1.UserVersion `codec:"to,omitempty" json:"to,omitempty"`
DisplayAmount string `codec:"displayAmount" json:"displayAmount"`
DisplayCurrency string `codec:"displayCurrency" json:"displayCurrency"`
NoteB64 string `codec:"noteB64" json:"noteB64"`
SignedTransaction string `codec:"signedTransaction" json:"signedTransaction"`
}
func (PaymentDirectPost) DeepCopy ¶
func (o PaymentDirectPost) DeepCopy() PaymentDirectPost
type PaymentRelayPost ¶
type PaymentRelayPost struct {
FromDeviceID keybase1.DeviceID `codec:"fromDeviceID" json:"fromDeviceID"`
To *keybase1.UserVersion `codec:"to,omitempty" json:"to,omitempty"`
ToAssertion string `codec:"toAssertion" json:"toAssertion"`
RelayAccount AccountID `codec:"relayAccount" json:"relayAccount"`
TeamID keybase1.TeamID `codec:"teamID" json:"teamID"`
DisplayAmount string `codec:"displayAmount" json:"displayAmount"`
DisplayCurrency string `codec:"displayCurrency" json:"displayCurrency"`
BoxB64 string `codec:"boxB64" json:"boxB64"`
SignedTransaction string `codec:"signedTransaction" json:"signedTransaction"`
}
func (PaymentRelayPost) DeepCopy ¶
func (o PaymentRelayPost) DeepCopy() PaymentRelayPost
type PaymentResult ¶
type PaymentResult struct {
KeybaseID KeybaseTransactionID `codec:"keybaseID" json:"keybaseID"`
StellarID TransactionID `codec:"stellarID" json:"stellarID"`
}
func (PaymentResult) DeepCopy ¶
func (o PaymentResult) DeepCopy() PaymentResult
type PaymentStrategy ¶
type PaymentStrategy int
const ( PaymentStrategy_NONE PaymentStrategy = 0 PaymentStrategy_DIRECT PaymentStrategy = 1 PaymentStrategy_RELAY PaymentStrategy = 2 )
func (PaymentStrategy) DeepCopy ¶
func (o PaymentStrategy) DeepCopy() PaymentStrategy
func (PaymentStrategy) String ¶
func (e PaymentStrategy) String() string
type PaymentSummary ¶
type PaymentSummary struct {
Stellar *PaymentSummaryStellar `codec:"stellar,omitempty" json:"stellar,omitempty"`
Keybase *PaymentSummaryKeybase `codec:"keybase,omitempty" json:"keybase,omitempty"`
StellarTxID TransactionID `codec:"stellarTxID" json:"stellarTxID"`
From AccountID `codec:"from" json:"from"`
To AccountID `codec:"to" json:"to"`
Amount string `codec:"amount" json:"amount"`
Asset Asset `codec:"asset" json:"asset"`
}
func (PaymentSummary) DeepCopy ¶
func (o PaymentSummary) DeepCopy() PaymentSummary
type PaymentSummaryKeybase ¶
type PaymentSummaryKeybase struct {
KbTxID KeybaseTransactionID `codec:"kbTxID" json:"kbTxID"`
Status TransactionStatus `codec:"status" json:"status"`
SubmitErrMsg string `codec:"submitErrMsg" json:"submitErrMsg"`
Ctime TimeMs `codec:"ctime" json:"ctime"`
Rtime TimeMs `codec:"rtime" json:"rtime"`
From keybase1.UserVersion `codec:"from" json:"from"`
FromDeviceID keybase1.DeviceID `codec:"fromDeviceID" json:"fromDeviceID"`
To *keybase1.UserVersion `codec:"to,omitempty" json:"to,omitempty"`
DisplayAmount *string `codec:"displayAmount,omitempty" json:"displayAmount,omitempty"`
DisplayCurrency *string `codec:"displayCurrency,omitempty" json:"displayCurrency,omitempty"`
NoteB64 string `codec:"noteB64" json:"noteB64"`
}
func (PaymentSummaryKeybase) DeepCopy ¶
func (o PaymentSummaryKeybase) DeepCopy() PaymentSummaryKeybase
type PaymentSummaryStellar ¶
type PaymentSummaryStellar struct {
OperationID uint64 `codec:"operationID" json:"operationID"`
Ctime TimeMs `codec:"ctime" json:"ctime"`
}
func (PaymentSummaryStellar) DeepCopy ¶
func (o PaymentSummaryStellar) DeepCopy() PaymentSummaryStellar
type RecentPaymentsArg ¶
type RecentPaymentsArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
AccountID AccountID `codec:"accountID" json:"accountID"`
Limit int `codec:"limit" json:"limit"`
}
type RecentPaymentsCLILocalArg ¶
type RecentPaymentsCLILocalArg struct {
AccountID *AccountID `codec:"accountID,omitempty" json:"accountID,omitempty"`
}
type RelayContents ¶
type RelayContents struct {
StellarID TransactionID `codec:"stellarID" json:"stellarID"`
Sk SecretKey `codec:"sk" json:"sk"`
Note string `codec:"note" json:"note"`
}
func (RelayContents) DeepCopy ¶
func (o RelayContents) DeepCopy() RelayContents
type RelayDirection ¶
type RelayDirection int
const ( RelayDirection_CLAIM RelayDirection = 0 RelayDirection_YANK RelayDirection = 1 )
func (RelayDirection) DeepCopy ¶
func (o RelayDirection) DeepCopy() RelayDirection
func (RelayDirection) String ¶
func (e RelayDirection) String() string
type RemoteClient ¶
type RemoteClient struct {
Cli rpc.GenericClient
}
func (RemoteClient) AccountSeqno ¶
func (c RemoteClient) AccountSeqno(ctx context.Context, __arg AccountSeqnoArg) (res string, err error)
func (RemoteClient) Balances ¶
func (c RemoteClient) Balances(ctx context.Context, __arg BalancesArg) (res []Balance, err error)
func (RemoteClient) IsMasterKeyActive ¶
func (c RemoteClient) IsMasterKeyActive(ctx context.Context, __arg IsMasterKeyActiveArg) (res bool, err error)
func (RemoteClient) PaymentDetail ¶
func (c RemoteClient) PaymentDetail(ctx context.Context, __arg PaymentDetailArg) (res PaymentSummary, err error)
func (RemoteClient) RecentPayments ¶
func (c RemoteClient) RecentPayments(ctx context.Context, __arg RecentPaymentsArg) (res []PaymentSummary, err error)
func (RemoteClient) SubmitPayment ¶
func (c RemoteClient) SubmitPayment(ctx context.Context, __arg SubmitPaymentArg) (res PaymentResult, err error)
func (RemoteClient) SubmitRelayPayment ¶
func (c RemoteClient) SubmitRelayPayment(ctx context.Context, __arg SubmitRelayPaymentArg) (res PaymentResult, err error)
type RemoteInterface ¶
type RemoteInterface interface {
Balances(context.Context, BalancesArg) ([]Balance, error)
RecentPayments(context.Context, RecentPaymentsArg) ([]PaymentSummary, error)
PaymentDetail(context.Context, PaymentDetailArg) (PaymentSummary, error)
AccountSeqno(context.Context, AccountSeqnoArg) (string, error)
SubmitPayment(context.Context, SubmitPaymentArg) (PaymentResult, error)
SubmitRelayPayment(context.Context, SubmitRelayPaymentArg) (PaymentResult, error)
IsMasterKeyActive(context.Context, IsMasterKeyActiveArg) (bool, error)
Ping(context.Context) (string, error)
}
type SendLocalArg ¶
type SetDisplayCurrencyArg ¶
type SubmitPaymentArg ¶
type SubmitPaymentArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
Payment PaymentDirectPost `codec:"payment" json:"payment"`
}
type SubmitRelayPaymentArg ¶
type SubmitRelayPaymentArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
Payment PaymentRelayPost `codec:"payment" json:"payment"`
}
type TransactionID ¶
type TransactionID string
func (TransactionID) DeepCopy ¶
func (o TransactionID) DeepCopy() TransactionID
func (TransactionID) String ¶
func (t TransactionID) String() string
type TransactionStatus ¶
type TransactionStatus int
const ( TransactionStatus_NONE TransactionStatus = 0 TransactionStatus_PENDING TransactionStatus = 1 TransactionStatus_SUCCESS TransactionStatus = 2 TransactionStatus_ERROR_TRANSIENT TransactionStatus = 3 TransactionStatus_ERROR_PERMANENT TransactionStatus = 4 )
func (TransactionStatus) DeepCopy ¶
func (o TransactionStatus) DeepCopy() TransactionStatus
func (TransactionStatus) String ¶
func (e TransactionStatus) String() string
type WalletDumpLocalArg ¶
type WalletDumpLocalArg struct {
}
type WalletGetLocalAccountsArg ¶
type WalletGetLocalAccountsArg struct {
}
type WalletInitLocalArg ¶
type WalletInitLocalArg struct {
}
Click to show internal directories.
Click to hide internal directories.