github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/protocol/chat1/wallet.go (about)

     1  // Auto-generated by avdl-compiler v1.3.25 (https://github.com/keybase/node-avdl-compiler)
     2  //   Input file: avdl/chat1/wallet.avdl
     3  
     4  package chat1
     5  
     6  import (
     7  	"github.com/keybase/go-framed-msgpack-rpc/rpc"
     8  )
     9  
    10  type ChatTxCandidate struct {
    11  	CurrencyCode string  `codec:"currencyCode" json:"currencyCode"`
    12  	Amount       string  `codec:"amount" json:"amount"`
    13  	Username     *string `codec:"username,omitempty" json:"username,omitempty"`
    14  }
    15  
    16  func (o ChatTxCandidate) DeepCopy() ChatTxCandidate {
    17  	return ChatTxCandidate{
    18  		CurrencyCode: o.CurrencyCode,
    19  		Amount:       o.Amount,
    20  		Username: (func(x *string) *string {
    21  			if x == nil {
    22  				return nil
    23  			}
    24  			tmp := (*x)
    25  			return &tmp
    26  		})(o.Username),
    27  	}
    28  }
    29  
    30  type WalletInterface interface {
    31  }
    32  
    33  func WalletProtocol(i WalletInterface) rpc.Protocol {
    34  	return rpc.Protocol{
    35  		Name:    "chat.1.wallet",
    36  		Methods: map[string]rpc.ServeHandlerDescription{},
    37  	}
    38  }
    39  
    40  type WalletClient struct {
    41  	Cli rpc.GenericClient
    42  }