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 ¶ added in v1.0.47
func BundleProtocol(i BundleInterface) rpc.Protocol
func CommonProtocol ¶
func CommonProtocol(i CommonInterface) rpc.Protocol
func FromTimeMs ¶ added in v1.0.48
func LocalProtocol ¶
func LocalProtocol(i LocalInterface) rpc.Protocol
func RemoteProtocol ¶
func RemoteProtocol(i RemoteInterface) rpc.Protocol
Types ¶
type AccountMode ¶ added in v1.0.47
type AccountMode int
const ( AccountMode_NONE AccountMode = 0 AccountMode_USER AccountMode = 1 )
func (AccountMode) DeepCopy ¶ added in v1.0.47
func (o AccountMode) DeepCopy() AccountMode
func (AccountMode) String ¶ added in v1.0.47
func (e AccountMode) String() string
type AccountSeqnoArg ¶ added in v1.0.48
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 ¶ added in v1.0.48
func AssetNative() Asset
func (*Asset) IsNativeXLM ¶ added in v1.0.48
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 ¶ added in v1.0.47
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 ¶ added in v1.0.47
CheckInvariants checks that the bundle satisfies 1. No duplicate account IDs 2. At most one primary account
func (Bundle) PrimaryAccount ¶ added in v1.0.47
func (s Bundle) PrimaryAccount() (BundleEntry, error)
type BundleClient ¶ added in v1.0.47
type BundleClient struct {
Cli rpc.GenericClient
}
type BundleEntry ¶ added in v1.0.47
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 ¶ added in v1.0.47
func (o BundleEntry) DeepCopy() BundleEntry
type BundleInterface ¶ added in v1.0.47
type BundleInterface interface {
}
type BundleRevision ¶ added in v1.0.47
type BundleRevision uint64
func (BundleRevision) DeepCopy ¶ added in v1.0.47
func (o BundleRevision) DeepCopy() BundleRevision
type BundleSecretEntry ¶ added in v1.0.47
type BundleSecretEntry struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
Signers []SecretKey `codec:"signers" json:"signers"`
Name string `codec:"name" json:"name"`
}
func (BundleSecretEntry) DeepCopy ¶ added in v1.0.47
func (o BundleSecretEntry) DeepCopy() BundleSecretEntry
type BundleSecretV1 ¶ added in v1.0.47
type BundleSecretV1 struct {
VisibleHash Hash `codec:"visibleHash" json:"visibleHash"`
Accounts []BundleSecretEntry `codec:"accounts" json:"accounts"`
}
func (BundleSecretV1) DeepCopy ¶ added in v1.0.47
func (o BundleSecretV1) DeepCopy() BundleSecretV1
type BundleSecretVersioned ¶ added in v1.0.47
type BundleSecretVersioned struct {
Version__ BundleVersion `codec:"version" json:"version"`
V1__ *BundleSecretV1 `codec:"v1,omitempty" json:"v1,omitempty"`
}
func NewBundleSecretVersionedWithV1 ¶ added in v1.0.47
func NewBundleSecretVersionedWithV1(v BundleSecretV1) BundleSecretVersioned
func (BundleSecretVersioned) DeepCopy ¶ added in v1.0.47
func (o BundleSecretVersioned) DeepCopy() BundleSecretVersioned
func (BundleSecretVersioned) V1 ¶ added in v1.0.47
func (o BundleSecretVersioned) V1() (res BundleSecretV1)
func (*BundleSecretVersioned) Version ¶ added in v1.0.47
func (o *BundleSecretVersioned) Version() (ret BundleVersion, err error)
type BundleVersion ¶ added in v1.0.47
type BundleVersion int
const (
BundleVersion_V1 BundleVersion = 1
)
func (BundleVersion) DeepCopy ¶ added in v1.0.47
func (o BundleVersion) DeepCopy() BundleVersion
func (BundleVersion) String ¶ added in v1.0.47
func (e BundleVersion) String() string
type BundleVisibleEntry ¶ added in v1.0.47
type BundleVisibleEntry struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
Mode AccountMode `codec:"mode" json:"mode"`
IsPrimary bool `codec:"isPrimary" json:"isPrimary"`
}
func (BundleVisibleEntry) DeepCopy ¶ added in v1.0.47
func (o BundleVisibleEntry) DeepCopy() BundleVisibleEntry
type BundleVisibleV1 ¶ added in v1.0.47
type BundleVisibleV1 struct {
Revision BundleRevision `codec:"revision" json:"revision"`
Prev Hash `codec:"prev" json:"prev"`
Accounts []BundleVisibleEntry `codec:"accounts" json:"accounts"`
}
func (BundleVisibleV1) DeepCopy ¶ added in v1.0.47
func (o BundleVisibleV1) DeepCopy() BundleVisibleV1
type CommonClient ¶
type CommonClient struct {
Cli rpc.GenericClient
}
type CommonInterface ¶
type CommonInterface interface {
}
type EncryptedBundle ¶ added in v1.0.47
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 ¶ added in v1.0.47
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 ¶ added in v1.0.48
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 ¶ added in v1.0.48
func (o EncryptedRelaySecret) DeepCopy() EncryptedRelaySecret
type ExchangeRateLocalArg ¶ added in v1.0.48
type ExchangeRateLocalArg struct {
Currency OutsideCurrencyCode `codec:"currency" json:"currency"`
}
type ExportSecretKeyLocalArg ¶ added in v1.0.48
type ExportSecretKeyLocalArg struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
}
type ImportSecretKeyLocalArg ¶ added in v1.0.47
type IsMasterKeyActiveArg ¶ added in v1.0.48
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 ¶ added in v1.0.48
func (c LocalClient) ExchangeRateLocal(ctx context.Context, currency OutsideCurrencyCode) (res OutsideExchangeRate, err error)
func (LocalClient) ExportSecretKeyLocal ¶ added in v1.0.48
func (LocalClient) ImportSecretKeyLocal ¶ added in v1.0.47
func (c LocalClient) ImportSecretKeyLocal(ctx context.Context, __arg ImportSecretKeyLocalArg) (err error)
func (LocalClient) OwnAccountLocal ¶ added in v1.0.47
func (LocalClient) PaymentDetailCLILocal ¶ added in v1.0.48
func (c LocalClient) PaymentDetailCLILocal(ctx context.Context, txID string) (res PaymentCLILocal, err error)
func (LocalClient) RecentPaymentsCLILocal ¶ added in v1.0.48
func (c LocalClient) RecentPaymentsCLILocal(ctx context.Context, accountID *AccountID) (res []PaymentCLILocal, err error)
func (LocalClient) SendLocal ¶ added in v1.0.47
func (c LocalClient) SendLocal(ctx context.Context, __arg SendLocalArg) (res PaymentResult, err error)
func (LocalClient) SetDisplayCurrency ¶ added in v1.0.48
func (c LocalClient) SetDisplayCurrency(ctx context.Context, __arg SetDisplayCurrencyArg) (err error)
func (LocalClient) WalletDumpLocal ¶ added in v1.0.47
func (c LocalClient) WalletDumpLocal(ctx context.Context) (res Bundle, err error)
func (LocalClient) WalletGetLocalAccounts ¶ added in v1.0.48
func (c LocalClient) WalletGetLocalAccounts(ctx context.Context) (res []LocalOwnAccount, err error)
func (LocalClient) WalletInitLocal ¶ added in v1.0.47
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 ¶ added in v1.0.48
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 ¶ added in v1.0.48
func (o LocalOwnAccount) DeepCopy() LocalOwnAccount
type NoteContents ¶ added in v1.0.48
type NoteContents struct {
Note string `codec:"note" json:"note"`
StellarID TransactionID `codec:"stellarID" json:"stellarID"`
}
func (NoteContents) DeepCopy ¶ added in v1.0.48
func (o NoteContents) DeepCopy() NoteContents
type NoteRecipient ¶ added in v1.0.48
type NoteRecipient struct {
User keybase1.UserVersion `codec:"user" json:"user"`
PukGen keybase1.PerUserKeyGeneration `codec:"pukGen" json:"pukGen"`
}
func (NoteRecipient) DeepCopy ¶ added in v1.0.48
func (o NoteRecipient) DeepCopy() NoteRecipient
type OutsideCurrencyCode ¶ added in v1.0.48
type OutsideCurrencyCode string
func (OutsideCurrencyCode) DeepCopy ¶ added in v1.0.48
func (o OutsideCurrencyCode) DeepCopy() OutsideCurrencyCode
type OutsideExchangeRate ¶ added in v1.0.48
type OutsideExchangeRate struct {
Currency OutsideCurrencyCode `codec:"currency" json:"currency"`
Rate string `codec:"rate" json:"rate"`
}
func (OutsideExchangeRate) DeepCopy ¶ added in v1.0.48
func (o OutsideExchangeRate) DeepCopy() OutsideExchangeRate
type OwnAccountLocalArg ¶ added in v1.0.47
type OwnAccountLocalArg struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
}
type PaymentCLILocal ¶ added in v1.0.48
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 ¶ added in v1.0.48
func (o PaymentCLILocal) DeepCopy() PaymentCLILocal
type PaymentDetailArg ¶ added in v1.0.48
type PaymentDetailArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
TxID string `codec:"txID" json:"txID"`
}
type PaymentDetailCLILocalArg ¶ added in v1.0.48
type PaymentDetailCLILocalArg struct {
TxID string `codec:"txID" json:"txID"`
}
type PaymentDirectPost ¶ added in v1.0.48
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 ¶ added in v1.0.48
func (o PaymentDirectPost) DeepCopy() PaymentDirectPost
type PaymentRelayPost ¶ added in v1.0.48
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 ¶ added in v1.0.48
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 ¶ added in v1.0.48
type PaymentStrategy int
const ( PaymentStrategy_NONE PaymentStrategy = 0 PaymentStrategy_DIRECT PaymentStrategy = 1 PaymentStrategy_RELAY PaymentStrategy = 2 )
func (PaymentStrategy) DeepCopy ¶ added in v1.0.48
func (o PaymentStrategy) DeepCopy() PaymentStrategy
func (PaymentStrategy) String ¶ added in v1.0.48
func (e PaymentStrategy) String() string
type PaymentSummary ¶ added in v1.0.48
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 ¶ added in v1.0.48
func (o PaymentSummary) DeepCopy() PaymentSummary
type PaymentSummaryKeybase ¶ added in v1.0.48
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 ¶ added in v1.0.48
func (o PaymentSummaryKeybase) DeepCopy() PaymentSummaryKeybase
type PaymentSummaryStellar ¶ added in v1.0.48
type PaymentSummaryStellar struct {
OperationID uint64 `codec:"operationID" json:"operationID"`
Ctime TimeMs `codec:"ctime" json:"ctime"`
}
func (PaymentSummaryStellar) DeepCopy ¶ added in v1.0.48
func (o PaymentSummaryStellar) DeepCopy() PaymentSummaryStellar
type RecentPaymentsArg ¶ added in v1.0.48
type RecentPaymentsArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
AccountID AccountID `codec:"accountID" json:"accountID"`
Limit int `codec:"limit" json:"limit"`
}
type RecentPaymentsCLILocalArg ¶ added in v1.0.48
type RecentPaymentsCLILocalArg struct {
AccountID *AccountID `codec:"accountID,omitempty" json:"accountID,omitempty"`
}
type RelayContents ¶ added in v1.0.48
type RelayContents struct {
StellarID TransactionID `codec:"stellarID" json:"stellarID"`
Sk SecretKey `codec:"sk" json:"sk"`
Note string `codec:"note" json:"note"`
}
func (RelayContents) DeepCopy ¶ added in v1.0.48
func (o RelayContents) DeepCopy() RelayContents
type RelayDirection ¶ added in v1.0.48
type RelayDirection int
const ( RelayDirection_CLAIM RelayDirection = 0 RelayDirection_YANK RelayDirection = 1 )
func (RelayDirection) DeepCopy ¶ added in v1.0.48
func (o RelayDirection) DeepCopy() RelayDirection
func (RelayDirection) String ¶ added in v1.0.48
func (e RelayDirection) String() string
type RemoteClient ¶
type RemoteClient struct {
Cli rpc.GenericClient
}
func (RemoteClient) AccountSeqno ¶ added in v1.0.48
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 ¶ added in v1.0.48
func (c RemoteClient) IsMasterKeyActive(ctx context.Context, __arg IsMasterKeyActiveArg) (res bool, err error)
func (RemoteClient) PaymentDetail ¶ added in v1.0.48
func (c RemoteClient) PaymentDetail(ctx context.Context, __arg PaymentDetailArg) (res PaymentSummary, err error)
func (RemoteClient) Ping ¶ added in v1.0.48
func (c RemoteClient) Ping(ctx context.Context) (res string, err error)
func (RemoteClient) RecentPayments ¶ added in v1.0.48
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 ¶ added in v1.0.48
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 SecretKey ¶ added in v1.0.47
type SecretKey string
func (SecretKey) SecureNoLogString ¶ added in v1.0.47
type SendLocalArg ¶ added in v1.0.47
type SetDisplayCurrencyArg ¶ added in v1.0.48
type SubmitPaymentArg ¶
type SubmitPaymentArg struct {
Caller keybase1.UserVersion `codec:"caller" json:"caller"`
Payment PaymentDirectPost `codec:"payment" json:"payment"`
}
type SubmitRelayPaymentArg ¶ added in v1.0.48
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 ¶ added in v1.0.48
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 ¶ added in v1.0.47
type WalletDumpLocalArg struct {
}
type WalletGetLocalAccountsArg ¶ added in v1.0.48
type WalletGetLocalAccountsArg struct {
}
type WalletInitLocalArg ¶ added in v1.0.47
type WalletInitLocalArg struct {
}
Click to show internal directories.
Click to hide internal directories.