Reorganize structure once again to hopefully fix imports

This commit is contained in:
2021-01-24 02:36:14 -05:00
parent b66324f9b4
commit e733accac6
170 changed files with 0 additions and 2165 deletions

988
types/stellar1/bundle.go Normal file
View File

@ -0,0 +1,988 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../../../../../../client/protocol/avdl/stellar1/bundle.avdl
package stellar1
import (
"errors"
"fmt"
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
)
type BundleRevision uint64
func (o BundleRevision) DeepCopy() BundleRevision {
return o
}
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 (o EncryptedBundle) DeepCopy() EncryptedBundle {
return EncryptedBundle{
V: o.V,
E: (func(x []byte) []byte {
if x == nil {
return nil
}
return append([]byte{}, x...)
})(o.E),
N: o.N.DeepCopy(),
Gen: o.Gen.DeepCopy(),
}
}
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 (o BundleVersion) DeepCopy() BundleVersion { return o }
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,
}
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",
}
func (e BundleVersion) String() string {
if v, ok := BundleVersionRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
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 (o *BundleSecretVersioned) Version() (ret BundleVersion, err error) {
switch o.Version__ {
case BundleVersion_V1:
if o.V1__ == nil {
err = errors.New("unexpected nil value for V1__")
return ret, err
}
case BundleVersion_V2:
if o.V2__ == nil {
err = errors.New("unexpected nil value for V2__")
return ret, err
}
case BundleVersion_V3:
if o.V3__ == nil {
err = errors.New("unexpected nil value for V3__")
return ret, err
}
case BundleVersion_V4:
if o.V4__ == nil {
err = errors.New("unexpected nil value for V4__")
return ret, err
}
case BundleVersion_V5:
if o.V5__ == nil {
err = errors.New("unexpected nil value for V5__")
return ret, err
}
case BundleVersion_V6:
if o.V6__ == nil {
err = errors.New("unexpected nil value for V6__")
return ret, err
}
case BundleVersion_V7:
if o.V7__ == nil {
err = errors.New("unexpected nil value for V7__")
return ret, err
}
case BundleVersion_V8:
if o.V8__ == nil {
err = errors.New("unexpected nil value for V8__")
return ret, err
}
case BundleVersion_V9:
if o.V9__ == nil {
err = errors.New("unexpected nil value for V9__")
return ret, err
}
case BundleVersion_V10:
if o.V10__ == nil {
err = errors.New("unexpected nil value for V10__")
return ret, err
}
}
return o.Version__, nil
}
func (o BundleSecretVersioned) V1() (res BundleSecretUnsupported) {
if o.Version__ != BundleVersion_V1 {
panic("wrong case accessed")
}
if o.V1__ == nil {
return
}
return *o.V1__
}
func (o BundleSecretVersioned) V2() (res BundleSecretV2) {
if o.Version__ != BundleVersion_V2 {
panic("wrong case accessed")
}
if o.V2__ == nil {
return
}
return *o.V2__
}
func (o BundleSecretVersioned) V3() (res BundleSecretUnsupported) {
if o.Version__ != BundleVersion_V3 {
panic("wrong case accessed")
}
if o.V3__ == nil {
return
}
return *o.V3__
}
func (o BundleSecretVersioned) V4() (res BundleSecretUnsupported) {
if o.Version__ != BundleVersion_V4 {
panic("wrong case accessed")
}
if o.V4__ == nil {
return
}
return *o.V4__
}
func (o BundleSecretVersioned) V5() (res BundleSecretUnsupported) {
if o.Version__ != BundleVersion_V5 {
panic("wrong case accessed")
}
if o.V5__ == nil {
return
}
return *o.V5__
}
func (o BundleSecretVersioned) V6() (res BundleSecretUnsupported) {
if o.Version__ != BundleVersion_V6 {
panic("wrong case accessed")
}
if o.V6__ == nil {
return
}
return *o.V6__
}
func (o BundleSecretVersioned) V7() (res BundleSecretUnsupported) {
if o.Version__ != BundleVersion_V7 {
panic("wrong case accessed")
}
if o.V7__ == nil {
return
}
return *o.V7__
}
func (o BundleSecretVersioned) V8() (res BundleSecretUnsupported) {
if o.Version__ != BundleVersion_V8 {
panic("wrong case accessed")
}
if o.V8__ == nil {
return
}
return *o.V8__
}
func (o BundleSecretVersioned) V9() (res BundleSecretUnsupported) {
if o.Version__ != BundleVersion_V9 {
panic("wrong case accessed")
}
if o.V9__ == nil {
return
}
return *o.V9__
}
func (o BundleSecretVersioned) V10() (res BundleSecretUnsupported) {
if o.Version__ != BundleVersion_V10 {
panic("wrong case accessed")
}
if o.V10__ == nil {
return
}
return *o.V10__
}
func NewBundleSecretVersionedWithV1(v BundleSecretUnsupported) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V1,
V1__: &v,
}
}
func NewBundleSecretVersionedWithV2(v BundleSecretV2) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V2,
V2__: &v,
}
}
func NewBundleSecretVersionedWithV3(v BundleSecretUnsupported) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V3,
V3__: &v,
}
}
func NewBundleSecretVersionedWithV4(v BundleSecretUnsupported) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V4,
V4__: &v,
}
}
func NewBundleSecretVersionedWithV5(v BundleSecretUnsupported) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V5,
V5__: &v,
}
}
func NewBundleSecretVersionedWithV6(v BundleSecretUnsupported) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V6,
V6__: &v,
}
}
func NewBundleSecretVersionedWithV7(v BundleSecretUnsupported) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V7,
V7__: &v,
}
}
func NewBundleSecretVersionedWithV8(v BundleSecretUnsupported) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V8,
V8__: &v,
}
}
func NewBundleSecretVersionedWithV9(v BundleSecretUnsupported) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V9,
V9__: &v,
}
}
func NewBundleSecretVersionedWithV10(v BundleSecretUnsupported) BundleSecretVersioned {
return BundleSecretVersioned{
Version__: BundleVersion_V10,
V10__: &v,
}
}
func (o BundleSecretVersioned) DeepCopy() BundleSecretVersioned {
return BundleSecretVersioned{
Version__: o.Version__.DeepCopy(),
V1__: (func(x *BundleSecretUnsupported) *BundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V1__),
V2__: (func(x *BundleSecretV2) *BundleSecretV2 {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V2__),
V3__: (func(x *BundleSecretUnsupported) *BundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V3__),
V4__: (func(x *BundleSecretUnsupported) *BundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V4__),
V5__: (func(x *BundleSecretUnsupported) *BundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V5__),
V6__: (func(x *BundleSecretUnsupported) *BundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V6__),
V7__: (func(x *BundleSecretUnsupported) *BundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V7__),
V8__: (func(x *BundleSecretUnsupported) *BundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V8__),
V9__: (func(x *BundleSecretUnsupported) *BundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V9__),
V10__: (func(x *BundleSecretUnsupported) *BundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V10__),
}
}
type BundleVisibleV2 struct {
Revision BundleRevision `codec:"revision" json:"revision"`
Prev Hash `codec:"prev" json:"prev"`
Accounts []BundleVisibleEntryV2 `codec:"accounts" json:"accounts"`
}
func (o BundleVisibleV2) DeepCopy() BundleVisibleV2 {
return BundleVisibleV2{
Revision: o.Revision.DeepCopy(),
Prev: o.Prev.DeepCopy(),
Accounts: (func(x []BundleVisibleEntryV2) []BundleVisibleEntryV2 {
if x == nil {
return nil
}
ret := make([]BundleVisibleEntryV2, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Accounts),
}
}
type BundleSecretV2 struct {
VisibleHash Hash `codec:"visibleHash" json:"visibleHash"`
Accounts []BundleSecretEntryV2 `codec:"accounts" json:"accounts"`
}
func (o BundleSecretV2) DeepCopy() BundleSecretV2 {
return BundleSecretV2{
VisibleHash: o.VisibleHash.DeepCopy(),
Accounts: (func(x []BundleSecretEntryV2) []BundleSecretEntryV2 {
if x == nil {
return nil
}
ret := make([]BundleSecretEntryV2, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Accounts),
}
}
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 (o BundleVisibleEntryV2) DeepCopy() BundleVisibleEntryV2 {
return BundleVisibleEntryV2{
AccountID: o.AccountID.DeepCopy(),
Mode: o.Mode.DeepCopy(),
IsPrimary: o.IsPrimary,
AcctBundleRevision: o.AcctBundleRevision.DeepCopy(),
EncAcctBundleHash: o.EncAcctBundleHash.DeepCopy(),
}
}
type BundleSecretEntryV2 struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
Name string `codec:"name" json:"name"`
}
func (o BundleSecretEntryV2) DeepCopy() BundleSecretEntryV2 {
return BundleSecretEntryV2{
AccountID: o.AccountID.DeepCopy(),
Name: o.Name,
}
}
type BundleSecretUnsupported struct {
}
func (o BundleSecretUnsupported) DeepCopy() BundleSecretUnsupported {
return BundleSecretUnsupported{}
}
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 (o EncryptedAccountBundle) DeepCopy() EncryptedAccountBundle {
return EncryptedAccountBundle{
V: o.V,
E: (func(x []byte) []byte {
if x == nil {
return nil
}
return append([]byte{}, x...)
})(o.E),
N: o.N.DeepCopy(),
Gen: o.Gen.DeepCopy(),
}
}
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 (o AccountBundleVersion) DeepCopy() AccountBundleVersion { return o }
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,
}
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",
}
func (e AccountBundleVersion) String() string {
if v, ok := AccountBundleVersionRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
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 (o *AccountBundleSecretVersioned) Version() (ret AccountBundleVersion, err error) {
switch o.Version__ {
case AccountBundleVersion_V1:
if o.V1__ == nil {
err = errors.New("unexpected nil value for V1__")
return ret, err
}
case AccountBundleVersion_V2:
if o.V2__ == nil {
err = errors.New("unexpected nil value for V2__")
return ret, err
}
case AccountBundleVersion_V3:
if o.V3__ == nil {
err = errors.New("unexpected nil value for V3__")
return ret, err
}
case AccountBundleVersion_V4:
if o.V4__ == nil {
err = errors.New("unexpected nil value for V4__")
return ret, err
}
case AccountBundleVersion_V5:
if o.V5__ == nil {
err = errors.New("unexpected nil value for V5__")
return ret, err
}
case AccountBundleVersion_V6:
if o.V6__ == nil {
err = errors.New("unexpected nil value for V6__")
return ret, err
}
case AccountBundleVersion_V7:
if o.V7__ == nil {
err = errors.New("unexpected nil value for V7__")
return ret, err
}
case AccountBundleVersion_V8:
if o.V8__ == nil {
err = errors.New("unexpected nil value for V8__")
return ret, err
}
case AccountBundleVersion_V9:
if o.V9__ == nil {
err = errors.New("unexpected nil value for V9__")
return ret, err
}
case AccountBundleVersion_V10:
if o.V10__ == nil {
err = errors.New("unexpected nil value for V10__")
return ret, err
}
}
return o.Version__, nil
}
func (o AccountBundleSecretVersioned) V1() (res AccountBundleSecretV1) {
if o.Version__ != AccountBundleVersion_V1 {
panic("wrong case accessed")
}
if o.V1__ == nil {
return
}
return *o.V1__
}
func (o AccountBundleSecretVersioned) V2() (res AccountBundleSecretUnsupported) {
if o.Version__ != AccountBundleVersion_V2 {
panic("wrong case accessed")
}
if o.V2__ == nil {
return
}
return *o.V2__
}
func (o AccountBundleSecretVersioned) V3() (res AccountBundleSecretUnsupported) {
if o.Version__ != AccountBundleVersion_V3 {
panic("wrong case accessed")
}
if o.V3__ == nil {
return
}
return *o.V3__
}
func (o AccountBundleSecretVersioned) V4() (res AccountBundleSecretUnsupported) {
if o.Version__ != AccountBundleVersion_V4 {
panic("wrong case accessed")
}
if o.V4__ == nil {
return
}
return *o.V4__
}
func (o AccountBundleSecretVersioned) V5() (res AccountBundleSecretUnsupported) {
if o.Version__ != AccountBundleVersion_V5 {
panic("wrong case accessed")
}
if o.V5__ == nil {
return
}
return *o.V5__
}
func (o AccountBundleSecretVersioned) V6() (res AccountBundleSecretUnsupported) {
if o.Version__ != AccountBundleVersion_V6 {
panic("wrong case accessed")
}
if o.V6__ == nil {
return
}
return *o.V6__
}
func (o AccountBundleSecretVersioned) V7() (res AccountBundleSecretUnsupported) {
if o.Version__ != AccountBundleVersion_V7 {
panic("wrong case accessed")
}
if o.V7__ == nil {
return
}
return *o.V7__
}
func (o AccountBundleSecretVersioned) V8() (res AccountBundleSecretUnsupported) {
if o.Version__ != AccountBundleVersion_V8 {
panic("wrong case accessed")
}
if o.V8__ == nil {
return
}
return *o.V8__
}
func (o AccountBundleSecretVersioned) V9() (res AccountBundleSecretUnsupported) {
if o.Version__ != AccountBundleVersion_V9 {
panic("wrong case accessed")
}
if o.V9__ == nil {
return
}
return *o.V9__
}
func (o AccountBundleSecretVersioned) V10() (res AccountBundleSecretUnsupported) {
if o.Version__ != AccountBundleVersion_V10 {
panic("wrong case accessed")
}
if o.V10__ == nil {
return
}
return *o.V10__
}
func NewAccountBundleSecretVersionedWithV1(v AccountBundleSecretV1) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V1,
V1__: &v,
}
}
func NewAccountBundleSecretVersionedWithV2(v AccountBundleSecretUnsupported) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V2,
V2__: &v,
}
}
func NewAccountBundleSecretVersionedWithV3(v AccountBundleSecretUnsupported) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V3,
V3__: &v,
}
}
func NewAccountBundleSecretVersionedWithV4(v AccountBundleSecretUnsupported) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V4,
V4__: &v,
}
}
func NewAccountBundleSecretVersionedWithV5(v AccountBundleSecretUnsupported) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V5,
V5__: &v,
}
}
func NewAccountBundleSecretVersionedWithV6(v AccountBundleSecretUnsupported) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V6,
V6__: &v,
}
}
func NewAccountBundleSecretVersionedWithV7(v AccountBundleSecretUnsupported) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V7,
V7__: &v,
}
}
func NewAccountBundleSecretVersionedWithV8(v AccountBundleSecretUnsupported) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V8,
V8__: &v,
}
}
func NewAccountBundleSecretVersionedWithV9(v AccountBundleSecretUnsupported) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V9,
V9__: &v,
}
}
func NewAccountBundleSecretVersionedWithV10(v AccountBundleSecretUnsupported) AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: AccountBundleVersion_V10,
V10__: &v,
}
}
func (o AccountBundleSecretVersioned) DeepCopy() AccountBundleSecretVersioned {
return AccountBundleSecretVersioned{
Version__: o.Version__.DeepCopy(),
V1__: (func(x *AccountBundleSecretV1) *AccountBundleSecretV1 {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V1__),
V2__: (func(x *AccountBundleSecretUnsupported) *AccountBundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V2__),
V3__: (func(x *AccountBundleSecretUnsupported) *AccountBundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V3__),
V4__: (func(x *AccountBundleSecretUnsupported) *AccountBundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V4__),
V5__: (func(x *AccountBundleSecretUnsupported) *AccountBundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V5__),
V6__: (func(x *AccountBundleSecretUnsupported) *AccountBundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V6__),
V7__: (func(x *AccountBundleSecretUnsupported) *AccountBundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V7__),
V8__: (func(x *AccountBundleSecretUnsupported) *AccountBundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V8__),
V9__: (func(x *AccountBundleSecretUnsupported) *AccountBundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V9__),
V10__: (func(x *AccountBundleSecretUnsupported) *AccountBundleSecretUnsupported {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.V10__),
}
}
type AccountBundleSecretV1 struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
Signers []SecretKey `codec:"signers" json:"signers"`
}
func (o AccountBundleSecretV1) DeepCopy() AccountBundleSecretV1 {
return AccountBundleSecretV1{
AccountID: o.AccountID.DeepCopy(),
Signers: (func(x []SecretKey) []SecretKey {
if x == nil {
return nil
}
ret := make([]SecretKey, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Signers),
}
}
type AccountBundleSecretUnsupported struct {
}
func (o AccountBundleSecretUnsupported) DeepCopy() AccountBundleSecretUnsupported {
return AccountBundleSecretUnsupported{}
}
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 (o Bundle) DeepCopy() Bundle {
return Bundle{
Revision: o.Revision.DeepCopy(),
Prev: o.Prev.DeepCopy(),
OwnHash: o.OwnHash.DeepCopy(),
Accounts: (func(x []BundleEntry) []BundleEntry {
if x == nil {
return nil
}
ret := make([]BundleEntry, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Accounts),
AccountBundles: (func(x map[AccountID]AccountBundle) map[AccountID]AccountBundle {
if x == nil {
return nil
}
ret := make(map[AccountID]AccountBundle, len(x))
for k, v := range x {
kCopy := k.DeepCopy()
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.AccountBundles),
}
}
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 (o BundleEntry) DeepCopy() BundleEntry {
return BundleEntry{
AccountID: o.AccountID.DeepCopy(),
Mode: o.Mode.DeepCopy(),
IsPrimary: o.IsPrimary,
Name: o.Name,
AcctBundleRevision: o.AcctBundleRevision.DeepCopy(),
EncAcctBundleHash: o.EncAcctBundleHash.DeepCopy(),
}
}
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 (o AccountBundle) DeepCopy() AccountBundle {
return AccountBundle{
Prev: o.Prev.DeepCopy(),
OwnHash: o.OwnHash.DeepCopy(),
AccountID: o.AccountID.DeepCopy(),
Signers: (func(x []SecretKey) []SecretKey {
if x == nil {
return nil
}
ret := make([]SecretKey, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Signers),
}
}

550
types/stellar1/common.go Normal file
View File

@ -0,0 +1,550 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../../../../../../client/protocol/avdl/stellar1/common.avdl
package stellar1
import (
"fmt"
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
)
type AccountID string
func (o AccountID) DeepCopy() AccountID {
return o
}
type SecretKey string
func (o SecretKey) DeepCopy() SecretKey {
return o
}
type TransactionID string
func (o TransactionID) DeepCopy() TransactionID {
return o
}
type PaymentID string
func (o PaymentID) DeepCopy() PaymentID {
return o
}
type KeybaseTransactionID string
func (o KeybaseTransactionID) DeepCopy() KeybaseTransactionID {
return o
}
type TimeMs int64
func (o TimeMs) DeepCopy() TimeMs {
return o
}
type Hash []byte
func (o Hash) DeepCopy() Hash {
return (func(x []byte) []byte {
if x == nil {
return nil
}
return append([]byte{}, x...)
})(o)
}
type KeybaseRequestID string
func (o KeybaseRequestID) DeepCopy() KeybaseRequestID {
return o
}
type AssetCode string
func (o AssetCode) DeepCopy() AssetCode {
return o
}
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 (o Asset) DeepCopy() Asset {
return Asset{
Type: o.Type,
Code: o.Code,
Issuer: o.Issuer,
VerifiedDomain: o.VerifiedDomain,
IssuerName: o.IssuerName,
Desc: o.Desc,
InfoUrl: o.InfoUrl,
InfoUrlText: o.InfoUrlText,
ShowDepositButton: o.ShowDepositButton,
DepositButtonText: o.DepositButtonText,
ShowWithdrawButton: o.ShowWithdrawButton,
WithdrawButtonText: o.WithdrawButtonText,
WithdrawType: o.WithdrawType,
TransferServer: o.TransferServer,
AuthEndpoint: o.AuthEndpoint,
DepositReqAuth: o.DepositReqAuth,
WithdrawReqAuth: o.WithdrawReqAuth,
UseSep24: o.UseSep24,
}
}
type AssetListResult struct {
Assets []Asset `codec:"assets" json:"assets"`
TotalCount int `codec:"totalCount" json:"totalCount"`
}
func (o AssetListResult) DeepCopy() AssetListResult {
return AssetListResult{
Assets: (func(x []Asset) []Asset {
if x == nil {
return nil
}
ret := make([]Asset, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Assets),
TotalCount: o.TotalCount,
}
}
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 (o Balance) DeepCopy() Balance {
return Balance{
Asset: o.Asset.DeepCopy(),
Amount: o.Amount,
Limit: o.Limit,
IsAuthorized: o.IsAuthorized,
}
}
type AccountReserve struct {
Amount string `codec:"amount" json:"amount"`
Description string `codec:"description" json:"description"`
}
func (o AccountReserve) DeepCopy() AccountReserve {
return AccountReserve{
Amount: o.Amount,
Description: o.Description,
}
}
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 (o TransactionStatus) DeepCopy() TransactionStatus { return o }
var TransactionStatusMap = map[string]TransactionStatus{
"NONE": 0,
"PENDING": 1,
"SUCCESS": 2,
"ERROR_TRANSIENT": 3,
"ERROR_PERMANENT": 4,
}
var TransactionStatusRevMap = map[TransactionStatus]string{
0: "NONE",
1: "PENDING",
2: "SUCCESS",
3: "ERROR_TRANSIENT",
4: "ERROR_PERMANENT",
}
func (e TransactionStatus) String() string {
if v, ok := TransactionStatusRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type RequestStatus int
const (
RequestStatus_OK RequestStatus = 0
RequestStatus_CANCELED RequestStatus = 1
RequestStatus_DONE RequestStatus = 2
)
func (o RequestStatus) DeepCopy() RequestStatus { return o }
var RequestStatusMap = map[string]RequestStatus{
"OK": 0,
"CANCELED": 1,
"DONE": 2,
}
var RequestStatusRevMap = map[RequestStatus]string{
0: "OK",
1: "CANCELED",
2: "DONE",
}
func (e RequestStatus) String() string {
if v, ok := RequestStatusRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type PaymentStrategy int
const (
PaymentStrategy_NONE PaymentStrategy = 0
PaymentStrategy_DIRECT PaymentStrategy = 1
PaymentStrategy_RELAY PaymentStrategy = 2
)
func (o PaymentStrategy) DeepCopy() PaymentStrategy { return o }
var PaymentStrategyMap = map[string]PaymentStrategy{
"NONE": 0,
"DIRECT": 1,
"RELAY": 2,
}
var PaymentStrategyRevMap = map[PaymentStrategy]string{
0: "NONE",
1: "DIRECT",
2: "RELAY",
}
func (e PaymentStrategy) String() string {
if v, ok := PaymentStrategyRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type RelayDirection int
const (
RelayDirection_CLAIM RelayDirection = 0
RelayDirection_YANK RelayDirection = 1
)
func (o RelayDirection) DeepCopy() RelayDirection { return o }
var RelayDirectionMap = map[string]RelayDirection{
"CLAIM": 0,
"YANK": 1,
}
var RelayDirectionRevMap = map[RelayDirection]string{
0: "CLAIM",
1: "YANK",
}
func (e RelayDirection) String() string {
if v, ok := RelayDirectionRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type PaymentResult struct {
SenderAccountID AccountID `codec:"senderAccountID" json:"senderAccountID"`
KeybaseID KeybaseTransactionID `codec:"keybaseID" json:"keybaseID"`
StellarID TransactionID `codec:"stellarID" json:"stellarID"`
Pending bool `codec:"pending" json:"pending"`
}
func (o PaymentResult) DeepCopy() PaymentResult {
return PaymentResult{
SenderAccountID: o.SenderAccountID.DeepCopy(),
KeybaseID: o.KeybaseID.DeepCopy(),
StellarID: o.StellarID.DeepCopy(),
Pending: o.Pending,
}
}
type RelayClaimResult struct {
ClaimStellarID TransactionID `codec:"claimStellarID" json:"claimStellarID"`
}
func (o RelayClaimResult) DeepCopy() RelayClaimResult {
return RelayClaimResult{
ClaimStellarID: o.ClaimStellarID.DeepCopy(),
}
}
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 (o EncryptedNote) DeepCopy() EncryptedNote {
return EncryptedNote{
V: o.V,
E: (func(x []byte) []byte {
if x == nil {
return nil
}
return append([]byte{}, x...)
})(o.E),
N: o.N.DeepCopy(),
Sender: o.Sender.DeepCopy(),
Recipient: (func(x *NoteRecipient) *NoteRecipient {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Recipient),
}
}
type NoteRecipient struct {
User keybase1.UserVersion `codec:"user" json:"user"`
PukGen keybase1.PerUserKeyGeneration `codec:"pukGen" json:"pukGen"`
}
func (o NoteRecipient) DeepCopy() NoteRecipient {
return NoteRecipient{
User: o.User.DeepCopy(),
PukGen: o.PukGen.DeepCopy(),
}
}
type NoteContents struct {
Note string `codec:"note" json:"note"`
StellarID TransactionID `codec:"stellarID" json:"stellarID"`
}
func (o NoteContents) DeepCopy() NoteContents {
return NoteContents{
Note: o.Note,
StellarID: o.StellarID.DeepCopy(),
}
}
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 (o EncryptedRelaySecret) DeepCopy() EncryptedRelaySecret {
return EncryptedRelaySecret{
V: o.V,
E: (func(x []byte) []byte {
if x == nil {
return nil
}
return append([]byte{}, x...)
})(o.E),
N: o.N.DeepCopy(),
Gen: o.Gen.DeepCopy(),
}
}
type RelayContents struct {
StellarID TransactionID `codec:"stellarID" json:"stellarID"`
Sk SecretKey `codec:"sk" json:"sk"`
Note string `codec:"note" json:"note"`
}
func (o RelayContents) DeepCopy() RelayContents {
return RelayContents{
StellarID: o.StellarID.DeepCopy(),
Sk: o.Sk.DeepCopy(),
Note: o.Note,
}
}
type OutsideCurrencyCode string
func (o OutsideCurrencyCode) DeepCopy() OutsideCurrencyCode {
return o
}
type OutsideExchangeRate struct {
Currency OutsideCurrencyCode `codec:"currency" json:"currency"`
Rate string `codec:"rate" json:"rate"`
}
func (o OutsideExchangeRate) DeepCopy() OutsideExchangeRate {
return OutsideExchangeRate{
Currency: o.Currency.DeepCopy(),
Rate: o.Rate,
}
}
type CurrencySymbol struct {
Symbol string `codec:"symbol" json:"str"`
Ambigious bool `codec:"ambigious" json:"ambigious"`
Postfix bool `codec:"postfix" json:"postfix"`
}
func (o CurrencySymbol) DeepCopy() CurrencySymbol {
return CurrencySymbol{
Symbol: o.Symbol,
Ambigious: o.Ambigious,
Postfix: o.Postfix,
}
}
type OutsideCurrencyDefinition struct {
Name string `codec:"name" json:"name"`
Symbol CurrencySymbol `codec:"symbol" json:"symbol"`
}
func (o OutsideCurrencyDefinition) DeepCopy() OutsideCurrencyDefinition {
return OutsideCurrencyDefinition{
Name: o.Name,
Symbol: o.Symbol.DeepCopy(),
}
}
type StellarServerDefinitions struct {
Revision int `codec:"revision" json:"revision"`
Currencies map[OutsideCurrencyCode]OutsideCurrencyDefinition `codec:"currencies" json:"currencies"`
}
func (o StellarServerDefinitions) DeepCopy() StellarServerDefinitions {
return StellarServerDefinitions{
Revision: o.Revision,
Currencies: (func(x map[OutsideCurrencyCode]OutsideCurrencyDefinition) map[OutsideCurrencyCode]OutsideCurrencyDefinition {
if x == nil {
return nil
}
ret := make(map[OutsideCurrencyCode]OutsideCurrencyDefinition, len(x))
for k, v := range x {
kCopy := k.DeepCopy()
vCopy := v.DeepCopy()
ret[kCopy] = vCopy
}
return ret
})(o.Currencies),
}
}
type PageCursor struct {
HorizonCursor string `codec:"horizonCursor" json:"horizonCursor"`
DirectCursor string `codec:"directCursor" json:"directCursor"`
RelayCursor string `codec:"relayCursor" json:"relayCursor"`
}
func (o PageCursor) DeepCopy() PageCursor {
return PageCursor{
HorizonCursor: o.HorizonCursor,
DirectCursor: o.DirectCursor,
RelayCursor: o.RelayCursor,
}
}
type AccountMode int
const (
AccountMode_NONE AccountMode = 0
AccountMode_USER AccountMode = 1
AccountMode_MOBILE AccountMode = 2
)
func (o AccountMode) DeepCopy() AccountMode { return o }
var AccountModeMap = map[string]AccountMode{
"NONE": 0,
"USER": 1,
"MOBILE": 2,
}
var AccountModeRevMap = map[AccountMode]string{
0: "NONE",
1: "USER",
2: "MOBILE",
}
func (e AccountMode) String() string {
if v, ok := AccountModeRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type Trustline struct {
AssetCode AssetCode `codec:"assetCode" json:"assetCode"`
Issuer AccountID `codec:"issuer" json:"issuer"`
}
func (o Trustline) DeepCopy() Trustline {
return Trustline{
AssetCode: o.AssetCode.DeepCopy(),
Issuer: o.Issuer.DeepCopy(),
}
}
type PaymentPath struct {
SourceAmount string `codec:"sourceAmount" json:"sourceAmount"`
SourceAmountMax string `codec:"sourceAmountMax" json:"sourceAmountMax"`
SourceAsset Asset `codec:"sourceAsset" json:"sourceAsset"`
Path []Asset `codec:"path" json:"path"`
DestinationAmount string `codec:"destinationAmount" json:"destinationAmount"`
DestinationAsset Asset `codec:"destinationAsset" json:"destinationAsset"`
SourceInsufficientBalance string `codec:"sourceInsufficientBalance" json:"sourceInsufficientBalance"`
}
func (o PaymentPath) DeepCopy() PaymentPath {
return PaymentPath{
SourceAmount: o.SourceAmount,
SourceAmountMax: o.SourceAmountMax,
SourceAsset: o.SourceAsset.DeepCopy(),
Path: (func(x []Asset) []Asset {
if x == nil {
return nil
}
ret := make([]Asset, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Path),
DestinationAmount: o.DestinationAmount,
DestinationAsset: o.DestinationAsset.DeepCopy(),
SourceInsufficientBalance: o.SourceInsufficientBalance,
}
}

40
types/stellar1/gregor.go Normal file
View File

@ -0,0 +1,40 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../../../../../../client/protocol/avdl/stellar1/gregor.avdl
package stellar1
type PaymentStatusMsg struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
KbTxID KeybaseTransactionID `codec:"kbTxID" json:"kbTxID"`
TxID TransactionID `codec:"txID" json:"txID"`
}
func (o PaymentStatusMsg) DeepCopy() PaymentStatusMsg {
return PaymentStatusMsg{
AccountID: o.AccountID.DeepCopy(),
KbTxID: o.KbTxID.DeepCopy(),
TxID: o.TxID.DeepCopy(),
}
}
type RequestStatusMsg struct {
ReqID KeybaseRequestID `codec:"reqID" json:"reqID"`
}
func (o RequestStatusMsg) DeepCopy() RequestStatusMsg {
return RequestStatusMsg{
ReqID: o.ReqID.DeepCopy(),
}
}
type PaymentNotificationMsg struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
PaymentID PaymentID `codec:"paymentID" json:"paymentID"`
}
func (o PaymentNotificationMsg) DeepCopy() PaymentNotificationMsg {
return PaymentNotificationMsg{
AccountID: o.AccountID.DeepCopy(),
PaymentID: o.PaymentID.DeepCopy(),
}
}

1311
types/stellar1/local.go Normal file

File diff suppressed because it is too large Load Diff

4
types/stellar1/notify.go Normal file
View File

@ -0,0 +1,4 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../../../../../../client/protocol/avdl/stellar1/notify.avdl
package stellar1

913
types/stellar1/remote.go Normal file
View File

@ -0,0 +1,913 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../../../../../../client/protocol/avdl/stellar1/remote.avdl
package stellar1
import (
"errors"
"fmt"
keybase1 "samhofi.us/x/keybase/v2/types/keybase1"
)
type ChatConversationID string
func (o ChatConversationID) DeepCopy() ChatConversationID {
return o
}
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"`
QuickReturn bool `codec:"quickReturn" json:"quickReturn"`
ChatConversationID *ChatConversationID `codec:"chatConversationID,omitempty" json:"chatConversationID,omitempty"`
BatchID string `codec:"batchID" json:"batchID"`
}
func (o PaymentDirectPost) DeepCopy() PaymentDirectPost {
return PaymentDirectPost{
FromDeviceID: o.FromDeviceID.DeepCopy(),
To: (func(x *keybase1.UserVersion) *keybase1.UserVersion {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.To),
DisplayAmount: o.DisplayAmount,
DisplayCurrency: o.DisplayCurrency,
NoteB64: o.NoteB64,
SignedTransaction: o.SignedTransaction,
QuickReturn: o.QuickReturn,
ChatConversationID: (func(x *ChatConversationID) *ChatConversationID {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.ChatConversationID),
BatchID: o.BatchID,
}
}
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"`
QuickReturn bool `codec:"quickReturn" json:"quickReturn"`
ChatConversationID *ChatConversationID `codec:"chatConversationID,omitempty" json:"chatConversationID,omitempty"`
BatchID string `codec:"batchID" json:"batchID"`
}
func (o PaymentRelayPost) DeepCopy() PaymentRelayPost {
return PaymentRelayPost{
FromDeviceID: o.FromDeviceID.DeepCopy(),
To: (func(x *keybase1.UserVersion) *keybase1.UserVersion {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.To),
ToAssertion: o.ToAssertion,
RelayAccount: o.RelayAccount.DeepCopy(),
TeamID: o.TeamID.DeepCopy(),
DisplayAmount: o.DisplayAmount,
DisplayCurrency: o.DisplayCurrency,
BoxB64: o.BoxB64,
SignedTransaction: o.SignedTransaction,
QuickReturn: o.QuickReturn,
ChatConversationID: (func(x *ChatConversationID) *ChatConversationID {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.ChatConversationID),
BatchID: o.BatchID,
}
}
type RelayClaimPost struct {
KeybaseID KeybaseTransactionID `codec:"keybaseID" json:"keybaseID"`
Dir RelayDirection `codec:"dir" json:"dir"`
SignedTransaction string `codec:"signedTransaction" json:"signedTransaction"`
AutoClaimToken *string `codec:"autoClaimToken,omitempty" json:"autoClaimToken,omitempty"`
}
func (o RelayClaimPost) DeepCopy() RelayClaimPost {
return RelayClaimPost{
KeybaseID: o.KeybaseID.DeepCopy(),
Dir: o.Dir.DeepCopy(),
SignedTransaction: o.SignedTransaction,
AutoClaimToken: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.AutoClaimToken),
}
}
type PathPaymentPost struct {
FromDeviceID keybase1.DeviceID `codec:"fromDeviceID" json:"fromDeviceID"`
To *keybase1.UserVersion `codec:"to,omitempty" json:"to,omitempty"`
NoteB64 string `codec:"noteB64" json:"noteB64"`
SignedTransaction string `codec:"signedTransaction" json:"signedTransaction"`
QuickReturn bool `codec:"quickReturn" json:"quickReturn"`
ChatConversationID *ChatConversationID `codec:"chatConversationID,omitempty" json:"chatConversationID,omitempty"`
}
func (o PathPaymentPost) DeepCopy() PathPaymentPost {
return PathPaymentPost{
FromDeviceID: o.FromDeviceID.DeepCopy(),
To: (func(x *keybase1.UserVersion) *keybase1.UserVersion {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.To),
NoteB64: o.NoteB64,
SignedTransaction: o.SignedTransaction,
QuickReturn: o.QuickReturn,
ChatConversationID: (func(x *ChatConversationID) *ChatConversationID {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.ChatConversationID),
}
}
type DirectOp struct {
NoteB64 string `codec:"noteB64" json:"noteB64"`
}
func (o DirectOp) DeepCopy() DirectOp {
return DirectOp{
NoteB64: o.NoteB64,
}
}
type RelayOp struct {
ToAssertion string `codec:"toAssertion" json:"toAssertion"`
RelayAccount AccountID `codec:"relayAccount" json:"relayAccount"`
TeamID keybase1.TeamID `codec:"teamID" json:"teamID"`
BoxB64 string `codec:"boxB64" json:"boxB64"`
}
func (o RelayOp) DeepCopy() RelayOp {
return RelayOp{
ToAssertion: o.ToAssertion,
RelayAccount: o.RelayAccount.DeepCopy(),
TeamID: o.TeamID.DeepCopy(),
BoxB64: o.BoxB64,
}
}
type PaymentOp struct {
To *keybase1.UserVersion `codec:"to,omitempty" json:"to,omitempty"`
Direct *DirectOp `codec:"direct,omitempty" json:"direct,omitempty"`
Relay *RelayOp `codec:"relay,omitempty" json:"relay,omitempty"`
}
func (o PaymentOp) DeepCopy() PaymentOp {
return PaymentOp{
To: (func(x *keybase1.UserVersion) *keybase1.UserVersion {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.To),
Direct: (func(x *DirectOp) *DirectOp {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Direct),
Relay: (func(x *RelayOp) *RelayOp {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Relay),
}
}
type PaymentMultiPost struct {
FromDeviceID keybase1.DeviceID `codec:"fromDeviceID" json:"fromDeviceID"`
SignedTransaction string `codec:"signedTransaction" json:"signedTransaction"`
Operations []PaymentOp `codec:"operations" json:"operations"`
BatchID string `codec:"batchID" json:"batchID"`
}
func (o PaymentMultiPost) DeepCopy() PaymentMultiPost {
return PaymentMultiPost{
FromDeviceID: o.FromDeviceID.DeepCopy(),
SignedTransaction: o.SignedTransaction,
Operations: (func(x []PaymentOp) []PaymentOp {
if x == nil {
return nil
}
ret := make([]PaymentOp, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Operations),
BatchID: o.BatchID,
}
}
type PaymentSummaryType int
const (
PaymentSummaryType_NONE PaymentSummaryType = 0
PaymentSummaryType_STELLAR PaymentSummaryType = 1
PaymentSummaryType_DIRECT PaymentSummaryType = 2
PaymentSummaryType_RELAY PaymentSummaryType = 3
)
func (o PaymentSummaryType) DeepCopy() PaymentSummaryType { return o }
var PaymentSummaryTypeMap = map[string]PaymentSummaryType{
"NONE": 0,
"STELLAR": 1,
"DIRECT": 2,
"RELAY": 3,
}
var PaymentSummaryTypeRevMap = map[PaymentSummaryType]string{
0: "NONE",
1: "STELLAR",
2: "DIRECT",
3: "RELAY",
}
func (e PaymentSummaryType) String() string {
if v, ok := PaymentSummaryTypeRevMap[e]; ok {
return v
}
return fmt.Sprintf("%v", int(e))
}
type PaymentSummary struct {
Typ__ PaymentSummaryType `codec:"typ" json:"typ"`
Stellar__ *PaymentSummaryStellar `codec:"stellar,omitempty" json:"stellar,omitempty"`
Direct__ *PaymentSummaryDirect `codec:"direct,omitempty" json:"direct,omitempty"`
Relay__ *PaymentSummaryRelay `codec:"relay,omitempty" json:"relay,omitempty"`
}
func (o *PaymentSummary) Typ() (ret PaymentSummaryType, err error) {
switch o.Typ__ {
case PaymentSummaryType_STELLAR:
if o.Stellar__ == nil {
err = errors.New("unexpected nil value for Stellar__")
return ret, err
}
case PaymentSummaryType_DIRECT:
if o.Direct__ == nil {
err = errors.New("unexpected nil value for Direct__")
return ret, err
}
case PaymentSummaryType_RELAY:
if o.Relay__ == nil {
err = errors.New("unexpected nil value for Relay__")
return ret, err
}
}
return o.Typ__, nil
}
func (o PaymentSummary) Stellar() (res PaymentSummaryStellar) {
if o.Typ__ != PaymentSummaryType_STELLAR {
panic("wrong case accessed")
}
if o.Stellar__ == nil {
return
}
return *o.Stellar__
}
func (o PaymentSummary) Direct() (res PaymentSummaryDirect) {
if o.Typ__ != PaymentSummaryType_DIRECT {
panic("wrong case accessed")
}
if o.Direct__ == nil {
return
}
return *o.Direct__
}
func (o PaymentSummary) Relay() (res PaymentSummaryRelay) {
if o.Typ__ != PaymentSummaryType_RELAY {
panic("wrong case accessed")
}
if o.Relay__ == nil {
return
}
return *o.Relay__
}
func NewPaymentSummaryWithStellar(v PaymentSummaryStellar) PaymentSummary {
return PaymentSummary{
Typ__: PaymentSummaryType_STELLAR,
Stellar__: &v,
}
}
func NewPaymentSummaryWithDirect(v PaymentSummaryDirect) PaymentSummary {
return PaymentSummary{
Typ__: PaymentSummaryType_DIRECT,
Direct__: &v,
}
}
func NewPaymentSummaryWithRelay(v PaymentSummaryRelay) PaymentSummary {
return PaymentSummary{
Typ__: PaymentSummaryType_RELAY,
Relay__: &v,
}
}
func (o PaymentSummary) DeepCopy() PaymentSummary {
return PaymentSummary{
Typ__: o.Typ__.DeepCopy(),
Stellar__: (func(x *PaymentSummaryStellar) *PaymentSummaryStellar {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Stellar__),
Direct__: (func(x *PaymentSummaryDirect) *PaymentSummaryDirect {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Direct__),
Relay__: (func(x *PaymentSummaryRelay) *PaymentSummaryRelay {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Relay__),
}
}
type PaymentSummaryStellar struct {
TxID TransactionID `codec:"txID" json:"txID"`
From AccountID `codec:"from" json:"from"`
To AccountID `codec:"to" json:"to"`
Amount string `codec:"amount" json:"amount"`
Asset Asset `codec:"asset" json:"asset"`
Ctime TimeMs `codec:"ctime" json:"ctime"`
CursorToken string `codec:"cursorToken" json:"cursorToken"`
Unread bool `codec:"unread" json:"unread"`
IsInflation bool `codec:"isInflation" json:"isInflation"`
InflationSource *string `codec:"inflationSource,omitempty" json:"inflationSource,omitempty"`
SourceAmountMax string `codec:"sourceAmountMax" json:"sourceAmountMax"`
SourceAmountActual string `codec:"sourceAmountActual" json:"sourceAmountActual"`
SourceAsset Asset `codec:"sourceAsset" json:"sourceAsset"`
IsAdvanced bool `codec:"isAdvanced" json:"isAdvanced"`
SummaryAdvanced string `codec:"summaryAdvanced" json:"summaryAdvanced"`
Operations []string `codec:"operations" json:"operations"`
Trustline *PaymentTrustlineLocal `codec:"trustline,omitempty" json:"trustline,omitempty"`
}
func (o PaymentSummaryStellar) DeepCopy() PaymentSummaryStellar {
return PaymentSummaryStellar{
TxID: o.TxID.DeepCopy(),
From: o.From.DeepCopy(),
To: o.To.DeepCopy(),
Amount: o.Amount,
Asset: o.Asset.DeepCopy(),
Ctime: o.Ctime.DeepCopy(),
CursorToken: o.CursorToken,
Unread: o.Unread,
IsInflation: o.IsInflation,
InflationSource: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.InflationSource),
SourceAmountMax: o.SourceAmountMax,
SourceAmountActual: o.SourceAmountActual,
SourceAsset: o.SourceAsset.DeepCopy(),
IsAdvanced: o.IsAdvanced,
SummaryAdvanced: o.SummaryAdvanced,
Operations: (func(x []string) []string {
if x == nil {
return nil
}
ret := make([]string, len(x))
for i, v := range x {
vCopy := v
ret[i] = vCopy
}
return ret
})(o.Operations),
Trustline: (func(x *PaymentTrustlineLocal) *PaymentTrustlineLocal {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Trustline),
}
}
type PaymentSummaryDirect struct {
KbTxID KeybaseTransactionID `codec:"kbTxID" json:"kbTxID"`
TxID TransactionID `codec:"txID" json:"txID"`
TxStatus TransactionStatus `codec:"txStatus" json:"txStatus"`
TxErrMsg string `codec:"txErrMsg" json:"txErrMsg"`
FromStellar AccountID `codec:"fromStellar" json:"fromStellar"`
From keybase1.UserVersion `codec:"from" json:"from"`
FromDeviceID keybase1.DeviceID `codec:"fromDeviceID" json:"fromDeviceID"`
ToStellar AccountID `codec:"toStellar" json:"toStellar"`
To *keybase1.UserVersion `codec:"to,omitempty" json:"to,omitempty"`
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"`
NoteB64 string `codec:"noteB64" json:"noteB64"`
FromDisplayAmount string `codec:"fromDisplayAmount" json:"fromDisplayAmount"`
FromDisplayCurrency string `codec:"fromDisplayCurrency" json:"fromDisplayCurrency"`
ToDisplayAmount string `codec:"toDisplayAmount" json:"toDisplayAmount"`
ToDisplayCurrency string `codec:"toDisplayCurrency" json:"toDisplayCurrency"`
Ctime TimeMs `codec:"ctime" json:"ctime"`
Rtime TimeMs `codec:"rtime" json:"rtime"`
CursorToken string `codec:"cursorToken" json:"cursorToken"`
Unread bool `codec:"unread" json:"unread"`
FromPrimary bool `codec:"fromPrimary" json:"fromPrimary"`
BatchID string `codec:"batchID" json:"batchID"`
FromAirdrop bool `codec:"fromAirdrop" json:"fromAirdrop"`
SourceAmountMax string `codec:"sourceAmountMax" json:"sourceAmountMax"`
SourceAmountActual string `codec:"sourceAmountActual" json:"sourceAmountActual"`
SourceAsset Asset `codec:"sourceAsset" json:"sourceAsset"`
}
func (o PaymentSummaryDirect) DeepCopy() PaymentSummaryDirect {
return PaymentSummaryDirect{
KbTxID: o.KbTxID.DeepCopy(),
TxID: o.TxID.DeepCopy(),
TxStatus: o.TxStatus.DeepCopy(),
TxErrMsg: o.TxErrMsg,
FromStellar: o.FromStellar.DeepCopy(),
From: o.From.DeepCopy(),
FromDeviceID: o.FromDeviceID.DeepCopy(),
ToStellar: o.ToStellar.DeepCopy(),
To: (func(x *keybase1.UserVersion) *keybase1.UserVersion {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.To),
Amount: o.Amount,
Asset: o.Asset.DeepCopy(),
DisplayAmount: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.DisplayAmount),
DisplayCurrency: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.DisplayCurrency),
NoteB64: o.NoteB64,
FromDisplayAmount: o.FromDisplayAmount,
FromDisplayCurrency: o.FromDisplayCurrency,
ToDisplayAmount: o.ToDisplayAmount,
ToDisplayCurrency: o.ToDisplayCurrency,
Ctime: o.Ctime.DeepCopy(),
Rtime: o.Rtime.DeepCopy(),
CursorToken: o.CursorToken,
Unread: o.Unread,
FromPrimary: o.FromPrimary,
BatchID: o.BatchID,
FromAirdrop: o.FromAirdrop,
SourceAmountMax: o.SourceAmountMax,
SourceAmountActual: o.SourceAmountActual,
SourceAsset: o.SourceAsset.DeepCopy(),
}
}
type PaymentSummaryRelay struct {
KbTxID KeybaseTransactionID `codec:"kbTxID" json:"kbTxID"`
TxID TransactionID `codec:"txID" json:"txID"`
TxStatus TransactionStatus `codec:"txStatus" json:"txStatus"`
TxErrMsg string `codec:"txErrMsg" json:"txErrMsg"`
FromStellar AccountID `codec:"fromStellar" json:"fromStellar"`
From keybase1.UserVersion `codec:"from" json:"from"`
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"`
Amount string `codec:"amount" json:"amount"`
DisplayAmount *string `codec:"displayAmount,omitempty" json:"displayAmount,omitempty"`
DisplayCurrency *string `codec:"displayCurrency,omitempty" json:"displayCurrency,omitempty"`
Ctime TimeMs `codec:"ctime" json:"ctime"`
Rtime TimeMs `codec:"rtime" json:"rtime"`
BoxB64 string `codec:"boxB64" json:"boxB64"`
TeamID keybase1.TeamID `codec:"teamID" json:"teamID"`
Claim *ClaimSummary `codec:"claim,omitempty" json:"claim,omitempty"`
CursorToken string `codec:"cursorToken" json:"cursorToken"`
BatchID string `codec:"batchID" json:"batchID"`
FromAirdrop bool `codec:"fromAirdrop" json:"fromAirdrop"`
}
func (o PaymentSummaryRelay) DeepCopy() PaymentSummaryRelay {
return PaymentSummaryRelay{
KbTxID: o.KbTxID.DeepCopy(),
TxID: o.TxID.DeepCopy(),
TxStatus: o.TxStatus.DeepCopy(),
TxErrMsg: o.TxErrMsg,
FromStellar: o.FromStellar.DeepCopy(),
From: o.From.DeepCopy(),
FromDeviceID: o.FromDeviceID.DeepCopy(),
To: (func(x *keybase1.UserVersion) *keybase1.UserVersion {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.To),
ToAssertion: o.ToAssertion,
RelayAccount: o.RelayAccount.DeepCopy(),
Amount: o.Amount,
DisplayAmount: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.DisplayAmount),
DisplayCurrency: (func(x *string) *string {
if x == nil {
return nil
}
tmp := (*x)
return &tmp
})(o.DisplayCurrency),
Ctime: o.Ctime.DeepCopy(),
Rtime: o.Rtime.DeepCopy(),
BoxB64: o.BoxB64,
TeamID: o.TeamID.DeepCopy(),
Claim: (func(x *ClaimSummary) *ClaimSummary {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Claim),
CursorToken: o.CursorToken,
BatchID: o.BatchID,
FromAirdrop: o.FromAirdrop,
}
}
type ClaimSummary struct {
TxID TransactionID `codec:"txID" json:"txID"`
TxStatus TransactionStatus `codec:"txStatus" json:"txStatus"`
TxErrMsg string `codec:"txErrMsg" json:"txErrMsg"`
Dir RelayDirection `codec:"dir" json:"dir"`
ToStellar AccountID `codec:"toStellar" json:"toStellar"`
To keybase1.UserVersion `codec:"to" json:"to"`
}
func (o ClaimSummary) DeepCopy() ClaimSummary {
return ClaimSummary{
TxID: o.TxID.DeepCopy(),
TxStatus: o.TxStatus.DeepCopy(),
TxErrMsg: o.TxErrMsg,
Dir: o.Dir.DeepCopy(),
ToStellar: o.ToStellar.DeepCopy(),
To: o.To.DeepCopy(),
}
}
type PaymentDetails struct {
Summary PaymentSummary `codec:"summary" json:"summary"`
Memo string `codec:"memo" json:"memo"`
MemoType string `codec:"memoType" json:"memoType"`
ExternalTxURL string `codec:"externalTxURL" json:"externalTxURL"`
FeeCharged string `codec:"feeCharged" json:"feeCharged"`
PathIntermediate []Asset `codec:"pathIntermediate" json:"pathIntermediate"`
}
func (o PaymentDetails) DeepCopy() PaymentDetails {
return PaymentDetails{
Summary: o.Summary.DeepCopy(),
Memo: o.Memo,
MemoType: o.MemoType,
ExternalTxURL: o.ExternalTxURL,
FeeCharged: o.FeeCharged,
PathIntermediate: (func(x []Asset) []Asset {
if x == nil {
return nil
}
ret := make([]Asset, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.PathIntermediate),
}
}
type AccountDetails struct {
AccountID AccountID `codec:"accountID" json:"accountID"`
Seqno string `codec:"seqno" json:"seqno"`
Balances []Balance `codec:"balances" json:"balances"`
SubentryCount int `codec:"subentryCount" json:"subentryCount"`
Available string `codec:"available" json:"available"`
Reserves []AccountReserve `codec:"reserves" json:"reserves"`
ReadTransactionID *TransactionID `codec:"readTransactionID,omitempty" json:"readTransactionID,omitempty"`
UnreadPayments int `codec:"unreadPayments" json:"unreadPayments"`
DisplayCurrency string `codec:"displayCurrency" json:"displayCurrency"`
InflationDestination *AccountID `codec:"inflationDestination,omitempty" json:"inflationDestination,omitempty"`
}
func (o AccountDetails) DeepCopy() AccountDetails {
return AccountDetails{
AccountID: o.AccountID.DeepCopy(),
Seqno: o.Seqno,
Balances: (func(x []Balance) []Balance {
if x == nil {
return nil
}
ret := make([]Balance, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Balances),
SubentryCount: o.SubentryCount,
Available: o.Available,
Reserves: (func(x []AccountReserve) []AccountReserve {
if x == nil {
return nil
}
ret := make([]AccountReserve, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Reserves),
ReadTransactionID: (func(x *TransactionID) *TransactionID {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.ReadTransactionID),
UnreadPayments: o.UnreadPayments,
DisplayCurrency: o.DisplayCurrency,
InflationDestination: (func(x *AccountID) *AccountID {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.InflationDestination),
}
}
type PaymentsPage struct {
Payments []PaymentSummary `codec:"payments" json:"payments"`
Cursor *PageCursor `codec:"cursor,omitempty" json:"cursor,omitempty"`
OldestUnread *TransactionID `codec:"oldestUnread,omitempty" json:"oldestUnread,omitempty"`
}
func (o PaymentsPage) DeepCopy() PaymentsPage {
return PaymentsPage{
Payments: (func(x []PaymentSummary) []PaymentSummary {
if x == nil {
return nil
}
ret := make([]PaymentSummary, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Payments),
Cursor: (func(x *PageCursor) *PageCursor {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Cursor),
OldestUnread: (func(x *TransactionID) *TransactionID {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.OldestUnread),
}
}
type SubmitMultiRes struct {
TxID TransactionID `codec:"txID" json:"txID"`
}
func (o SubmitMultiRes) DeepCopy() SubmitMultiRes {
return SubmitMultiRes{
TxID: o.TxID.DeepCopy(),
}
}
type AutoClaim struct {
KbTxID KeybaseTransactionID `codec:"kbTxID" json:"kbTxID"`
}
func (o AutoClaim) DeepCopy() AutoClaim {
return AutoClaim{
KbTxID: o.KbTxID.DeepCopy(),
}
}
type RequestPost struct {
ToUser *keybase1.UserVersion `codec:"toUser,omitempty" json:"toUser,omitempty"`
ToAssertion string `codec:"toAssertion" json:"toAssertion"`
Amount string `codec:"amount" json:"amount"`
Asset *Asset `codec:"asset,omitempty" json:"asset,omitempty"`
Currency *OutsideCurrencyCode `codec:"currency,omitempty" json:"currency,omitempty"`
}
func (o RequestPost) DeepCopy() RequestPost {
return RequestPost{
ToUser: (func(x *keybase1.UserVersion) *keybase1.UserVersion {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.ToUser),
ToAssertion: o.ToAssertion,
Amount: o.Amount,
Asset: (func(x *Asset) *Asset {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Asset),
Currency: (func(x *OutsideCurrencyCode) *OutsideCurrencyCode {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Currency),
}
}
type RequestDetails struct {
Id KeybaseRequestID `codec:"id" json:"id"`
FromUser keybase1.UserVersion `codec:"fromUser" json:"fromUser"`
ToUser *keybase1.UserVersion `codec:"toUser,omitempty" json:"toUser,omitempty"`
ToAssertion string `codec:"toAssertion" json:"toAssertion"`
Amount string `codec:"amount" json:"amount"`
Asset *Asset `codec:"asset,omitempty" json:"asset,omitempty"`
Currency *OutsideCurrencyCode `codec:"currency,omitempty" json:"currency,omitempty"`
FromDisplayAmount string `codec:"fromDisplayAmount" json:"fromDisplayAmount"`
FromDisplayCurrency string `codec:"fromDisplayCurrency" json:"fromDisplayCurrency"`
ToDisplayAmount string `codec:"toDisplayAmount" json:"toDisplayAmount"`
ToDisplayCurrency string `codec:"toDisplayCurrency" json:"toDisplayCurrency"`
FundingKbTxID KeybaseTransactionID `codec:"fundingKbTxID" json:"fundingKbTxID"`
Status RequestStatus `codec:"status" json:"status"`
}
func (o RequestDetails) DeepCopy() RequestDetails {
return RequestDetails{
Id: o.Id.DeepCopy(),
FromUser: o.FromUser.DeepCopy(),
ToUser: (func(x *keybase1.UserVersion) *keybase1.UserVersion {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.ToUser),
ToAssertion: o.ToAssertion,
Amount: o.Amount,
Asset: (func(x *Asset) *Asset {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Asset),
Currency: (func(x *OutsideCurrencyCode) *OutsideCurrencyCode {
if x == nil {
return nil
}
tmp := (*x).DeepCopy()
return &tmp
})(o.Currency),
FromDisplayAmount: o.FromDisplayAmount,
FromDisplayCurrency: o.FromDisplayCurrency,
ToDisplayAmount: o.ToDisplayAmount,
ToDisplayCurrency: o.ToDisplayCurrency,
FundingKbTxID: o.FundingKbTxID.DeepCopy(),
Status: o.Status.DeepCopy(),
}
}
type TimeboundsRecommendation struct {
TimeNow keybase1.UnixTime `codec:"timeNow" json:"time_now"`
Timeout int64 `codec:"timeout" json:"timeout"`
}
func (o TimeboundsRecommendation) DeepCopy() TimeboundsRecommendation {
return TimeboundsRecommendation{
TimeNow: o.TimeNow.DeepCopy(),
Timeout: o.Timeout,
}
}
type NetworkOptions struct {
BaseFee uint64 `codec:"baseFee" json:"baseFee"`
}
func (o NetworkOptions) DeepCopy() NetworkOptions {
return NetworkOptions{
BaseFee: o.BaseFee,
}
}
type DetailsPlusPayments struct {
Details AccountDetails `codec:"details" json:"details"`
RecentPayments PaymentsPage `codec:"recentPayments" json:"recentPayments"`
PendingPayments []PaymentSummary `codec:"pendingPayments" json:"pendingPayments"`
}
func (o DetailsPlusPayments) DeepCopy() DetailsPlusPayments {
return DetailsPlusPayments{
Details: o.Details.DeepCopy(),
RecentPayments: o.RecentPayments.DeepCopy(),
PendingPayments: (func(x []PaymentSummary) []PaymentSummary {
if x == nil {
return nil
}
ret := make([]PaymentSummary, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.PendingPayments),
}
}
type PaymentPathQuery struct {
Source AccountID `codec:"source" json:"source"`
Destination AccountID `codec:"destination" json:"destination"`
SourceAsset Asset `codec:"sourceAsset" json:"sourceAsset"`
DestinationAsset Asset `codec:"destinationAsset" json:"destinationAsset"`
Amount string `codec:"amount" json:"amount"`
}
func (o PaymentPathQuery) DeepCopy() PaymentPathQuery {
return PaymentPathQuery{
Source: o.Source.DeepCopy(),
Destination: o.Destination.DeepCopy(),
SourceAsset: o.SourceAsset.DeepCopy(),
DestinationAsset: o.DestinationAsset.DeepCopy(),
Amount: o.Amount,
}
}

32
types/stellar1/ui.go Normal file
View File

@ -0,0 +1,32 @@
// Auto-generated to Go types using avdl-compiler v1.4.6 (https://github.com/keybase/node-avdl-compiler)
// Input file: ../../../../../../client/protocol/avdl/stellar1/ui.avdl
package stellar1
type UIPaymentReviewed struct {
Bid BuildPaymentID `codec:"bid" json:"bid"`
ReviewID int `codec:"reviewID" json:"reviewID"`
Seqno int `codec:"seqno" json:"seqno"`
Banners []SendBannerLocal `codec:"banners" json:"banners"`
NextButton string `codec:"nextButton" json:"nextButton"`
}
func (o UIPaymentReviewed) DeepCopy() UIPaymentReviewed {
return UIPaymentReviewed{
Bid: o.Bid.DeepCopy(),
ReviewID: o.ReviewID,
Seqno: o.Seqno,
Banners: (func(x []SendBannerLocal) []SendBannerLocal {
if x == nil {
return nil
}
ret := make([]SendBannerLocal, len(x))
for i, v := range x {
vCopy := v.DeepCopy()
ret[i] = vCopy
}
return ret
})(o.Banners),
NextButton: o.NextButton,
}
}