1package libkb
2
3import (
4	"context"
5	"errors"
6	"fmt"
7
8	"github.com/keybase/client/go/gregor"
9	"github.com/keybase/client/go/protocol/chat1"
10	stellar1 "github.com/keybase/client/go/protocol/stellar1"
11)
12
13type nullStellar struct {
14	Contextified
15}
16
17var _ Stellar = (*nullStellar)(nil)
18
19func newNullStellar(g *GlobalContext) *nullStellar {
20	return &nullStellar{NewContextified(g)}
21}
22
23func (n *nullStellar) CreateWalletSoft(ctx context.Context) {
24	n.G().Log.CErrorf(ctx, "null stellar impl")
25}
26
27func (n *nullStellar) Upkeep(ctx context.Context) error {
28	return fmt.Errorf("null stellar impl")
29}
30
31func (n *nullStellar) GetServerDefinitions(ctx context.Context) (ret stellar1.StellarServerDefinitions, err error) {
32	return ret, fmt.Errorf("null stellar impl")
33}
34
35func (n *nullStellar) KickAutoClaimRunner(MetaContext, gregor.MsgID) {}
36
37func (n *nullStellar) UpdateUnreadCount(context.Context, stellar1.AccountID, int) error {
38	return errors.New("nullStellar UpdateUnreadCount")
39}
40
41func (n *nullStellar) SendMiniChatPayments(mctx MetaContext, convID chat1.ConversationID, payments []MiniChatPayment) ([]MiniChatPaymentResult, error) {
42	return nil, errors.New("nullStellar SendMiniChatPayments")
43}
44
45func (n *nullStellar) SpecMiniChatPayments(mctx MetaContext, payments []MiniChatPayment) (*MiniChatPaymentSummary, error) {
46	return nil, errors.New("nullStellar SpecMiniChatPayments")
47}
48
49func (n *nullStellar) HandleOobm(context.Context, gregor.OutOfBandMessage) (bool, error) {
50	return false, errors.New("nullStellar HandleOobm")
51}
52
53func (n *nullStellar) RemovePendingTx(MetaContext, stellar1.AccountID, stellar1.TransactionID) error {
54	return errors.New("nullStellar RemovePendingTx")
55}
56
57func (n *nullStellar) KnownCurrencyCodeInstant(context.Context, string) (bool, bool) {
58	return false, false
59}
60
61func (n *nullStellar) InformBundle(MetaContext, stellar1.BundleRevision, []stellar1.BundleEntry) {}
62
63func (n *nullStellar) InformDefaultCurrencyChange(MetaContext) {}
64
65func (n *nullStellar) Refresh(MetaContext, string) {}
66