github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/protocol/stellar1/local.go (about) 1 // Auto-generated to Go types and interfaces using avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler) 2 // Input file: avdl/stellar1/local.avdl 3 4 package stellar1 5 6 import ( 7 "fmt" 8 "github.com/keybase/go-framed-msgpack-rpc/rpc" 9 context "golang.org/x/net/context" 10 "time" 11 ) 12 13 type WalletAccountLocal struct { 14 AccountID AccountID `codec:"accountID" json:"accountID"` 15 IsDefault bool `codec:"isDefault" json:"isDefault"` 16 Name string `codec:"name" json:"name"` 17 BalanceDescription string `codec:"balanceDescription" json:"balanceDescription"` 18 Seqno string `codec:"seqno" json:"seqno"` 19 CurrencyLocal CurrencyLocal `codec:"currencyLocal" json:"currencyLocal"` 20 AccountMode AccountMode `codec:"accountMode" json:"accountMode"` 21 AccountModeEditable bool `codec:"accountModeEditable" json:"accountModeEditable"` 22 DeviceReadOnly bool `codec:"deviceReadOnly" json:"deviceReadOnly"` 23 IsFunded bool `codec:"isFunded" json:"isFunded"` 24 CanSubmitTx bool `codec:"canSubmitTx" json:"canSubmitTx"` 25 CanAddTrustline bool `codec:"canAddTrustline" json:"canAddTrustline"` 26 } 27 28 func (o WalletAccountLocal) DeepCopy() WalletAccountLocal { 29 return WalletAccountLocal{ 30 AccountID: o.AccountID.DeepCopy(), 31 IsDefault: o.IsDefault, 32 Name: o.Name, 33 BalanceDescription: o.BalanceDescription, 34 Seqno: o.Seqno, 35 CurrencyLocal: o.CurrencyLocal.DeepCopy(), 36 AccountMode: o.AccountMode.DeepCopy(), 37 AccountModeEditable: o.AccountModeEditable, 38 DeviceReadOnly: o.DeviceReadOnly, 39 IsFunded: o.IsFunded, 40 CanSubmitTx: o.CanSubmitTx, 41 CanAddTrustline: o.CanAddTrustline, 42 } 43 } 44 45 type AccountAssetLocal struct { 46 Name string `codec:"name" json:"name"` 47 AssetCode string `codec:"assetCode" json:"assetCode"` 48 IssuerName string `codec:"issuerName" json:"issuerName"` 49 IssuerAccountID string `codec:"issuerAccountID" json:"issuerAccountID"` 50 IssuerVerifiedDomain string `codec:"issuerVerifiedDomain" json:"issuerVerifiedDomain"` 51 BalanceTotal string `codec:"balanceTotal" json:"balanceTotal"` 52 BalanceAvailableToSend string `codec:"balanceAvailableToSend" json:"balanceAvailableToSend"` 53 WorthCurrency string `codec:"worthCurrency" json:"worthCurrency"` 54 Worth string `codec:"worth" json:"worth"` 55 AvailableToSendWorth string `codec:"availableToSendWorth" json:"availableToSendWorth"` 56 Reserves []AccountReserve `codec:"reserves" json:"reserves"` 57 Desc string `codec:"desc" json:"desc"` 58 InfoUrl string `codec:"infoUrl" json:"infoUrl"` 59 InfoUrlText string `codec:"infoUrlText" json:"infoUrlText"` 60 ShowDepositButton bool `codec:"showDepositButton" json:"showDepositButton"` 61 DepositButtonText string `codec:"depositButtonText" json:"depositButtonText"` 62 ShowWithdrawButton bool `codec:"showWithdrawButton" json:"showWithdrawButton"` 63 WithdrawButtonText string `codec:"withdrawButtonText" json:"withdrawButtonText"` 64 } 65 66 func (o AccountAssetLocal) DeepCopy() AccountAssetLocal { 67 return AccountAssetLocal{ 68 Name: o.Name, 69 AssetCode: o.AssetCode, 70 IssuerName: o.IssuerName, 71 IssuerAccountID: o.IssuerAccountID, 72 IssuerVerifiedDomain: o.IssuerVerifiedDomain, 73 BalanceTotal: o.BalanceTotal, 74 BalanceAvailableToSend: o.BalanceAvailableToSend, 75 WorthCurrency: o.WorthCurrency, 76 Worth: o.Worth, 77 AvailableToSendWorth: o.AvailableToSendWorth, 78 Reserves: (func(x []AccountReserve) []AccountReserve { 79 if x == nil { 80 return nil 81 } 82 ret := make([]AccountReserve, len(x)) 83 for i, v := range x { 84 vCopy := v.DeepCopy() 85 ret[i] = vCopy 86 } 87 return ret 88 })(o.Reserves), 89 Desc: o.Desc, 90 InfoUrl: o.InfoUrl, 91 InfoUrlText: o.InfoUrlText, 92 ShowDepositButton: o.ShowDepositButton, 93 DepositButtonText: o.DepositButtonText, 94 ShowWithdrawButton: o.ShowWithdrawButton, 95 WithdrawButtonText: o.WithdrawButtonText, 96 } 97 } 98 99 type BalanceDelta int 100 101 const ( 102 BalanceDelta_NONE BalanceDelta = 0 103 BalanceDelta_INCREASE BalanceDelta = 1 104 BalanceDelta_DECREASE BalanceDelta = 2 105 ) 106 107 func (o BalanceDelta) DeepCopy() BalanceDelta { return o } 108 109 var BalanceDeltaMap = map[string]BalanceDelta{ 110 "NONE": 0, 111 "INCREASE": 1, 112 "DECREASE": 2, 113 } 114 115 var BalanceDeltaRevMap = map[BalanceDelta]string{ 116 0: "NONE", 117 1: "INCREASE", 118 2: "DECREASE", 119 } 120 121 func (e BalanceDelta) String() string { 122 if v, ok := BalanceDeltaRevMap[e]; ok { 123 return v 124 } 125 return fmt.Sprintf("%v", int(e)) 126 } 127 128 type PaymentStatus int 129 130 const ( 131 PaymentStatus_NONE PaymentStatus = 0 132 PaymentStatus_PENDING PaymentStatus = 1 133 PaymentStatus_CLAIMABLE PaymentStatus = 2 134 PaymentStatus_COMPLETED PaymentStatus = 3 135 PaymentStatus_ERROR PaymentStatus = 4 136 PaymentStatus_UNKNOWN PaymentStatus = 5 137 PaymentStatus_CANCELED PaymentStatus = 6 138 ) 139 140 func (o PaymentStatus) DeepCopy() PaymentStatus { return o } 141 142 var PaymentStatusMap = map[string]PaymentStatus{ 143 "NONE": 0, 144 "PENDING": 1, 145 "CLAIMABLE": 2, 146 "COMPLETED": 3, 147 "ERROR": 4, 148 "UNKNOWN": 5, 149 "CANCELED": 6, 150 } 151 152 var PaymentStatusRevMap = map[PaymentStatus]string{ 153 0: "NONE", 154 1: "PENDING", 155 2: "CLAIMABLE", 156 3: "COMPLETED", 157 4: "ERROR", 158 5: "UNKNOWN", 159 6: "CANCELED", 160 } 161 162 func (e PaymentStatus) String() string { 163 if v, ok := PaymentStatusRevMap[e]; ok { 164 return v 165 } 166 return fmt.Sprintf("%v", int(e)) 167 } 168 169 type ParticipantType int 170 171 const ( 172 ParticipantType_NONE ParticipantType = 0 173 ParticipantType_KEYBASE ParticipantType = 1 174 ParticipantType_STELLAR ParticipantType = 2 175 ParticipantType_SBS ParticipantType = 3 176 ParticipantType_OWNACCOUNT ParticipantType = 4 177 ) 178 179 func (o ParticipantType) DeepCopy() ParticipantType { return o } 180 181 var ParticipantTypeMap = map[string]ParticipantType{ 182 "NONE": 0, 183 "KEYBASE": 1, 184 "STELLAR": 2, 185 "SBS": 3, 186 "OWNACCOUNT": 4, 187 } 188 189 var ParticipantTypeRevMap = map[ParticipantType]string{ 190 0: "NONE", 191 1: "KEYBASE", 192 2: "STELLAR", 193 3: "SBS", 194 4: "OWNACCOUNT", 195 } 196 197 func (e ParticipantType) String() string { 198 if v, ok := ParticipantTypeRevMap[e]; ok { 199 return v 200 } 201 return fmt.Sprintf("%v", int(e)) 202 } 203 204 type PaymentOrErrorLocal struct { 205 Payment *PaymentLocal `codec:"payment,omitempty" json:"payment,omitempty"` 206 Err *string `codec:"err,omitempty" json:"err,omitempty"` 207 } 208 209 func (o PaymentOrErrorLocal) DeepCopy() PaymentOrErrorLocal { 210 return PaymentOrErrorLocal{ 211 Payment: (func(x *PaymentLocal) *PaymentLocal { 212 if x == nil { 213 return nil 214 } 215 tmp := (*x).DeepCopy() 216 return &tmp 217 })(o.Payment), 218 Err: (func(x *string) *string { 219 if x == nil { 220 return nil 221 } 222 tmp := (*x) 223 return &tmp 224 })(o.Err), 225 } 226 } 227 228 type PaymentsPageLocal struct { 229 Payments []PaymentOrErrorLocal `codec:"payments" json:"payments"` 230 Cursor *PageCursor `codec:"cursor,omitempty" json:"cursor,omitempty"` 231 OldestUnread *PaymentID `codec:"oldestUnread,omitempty" json:"oldestUnread,omitempty"` 232 } 233 234 func (o PaymentsPageLocal) DeepCopy() PaymentsPageLocal { 235 return PaymentsPageLocal{ 236 Payments: (func(x []PaymentOrErrorLocal) []PaymentOrErrorLocal { 237 if x == nil { 238 return nil 239 } 240 ret := make([]PaymentOrErrorLocal, len(x)) 241 for i, v := range x { 242 vCopy := v.DeepCopy() 243 ret[i] = vCopy 244 } 245 return ret 246 })(o.Payments), 247 Cursor: (func(x *PageCursor) *PageCursor { 248 if x == nil { 249 return nil 250 } 251 tmp := (*x).DeepCopy() 252 return &tmp 253 })(o.Cursor), 254 OldestUnread: (func(x *PaymentID) *PaymentID { 255 if x == nil { 256 return nil 257 } 258 tmp := (*x).DeepCopy() 259 return &tmp 260 })(o.OldestUnread), 261 } 262 } 263 264 type PaymentLocal struct { 265 Id PaymentID `codec:"id" json:"id"` 266 TxID TransactionID `codec:"txID" json:"txID"` 267 Time TimeMs `codec:"time" json:"time"` 268 StatusSimplified PaymentStatus `codec:"statusSimplified" json:"statusSimplified"` 269 StatusDescription string `codec:"statusDescription" json:"statusDescription"` 270 StatusDetail string `codec:"statusDetail" json:"statusDetail"` 271 ShowCancel bool `codec:"showCancel" json:"showCancel"` 272 AmountDescription string `codec:"amountDescription" json:"amountDescription"` 273 Delta BalanceDelta `codec:"delta" json:"delta"` 274 Worth string `codec:"worth" json:"worth"` 275 WorthAtSendTime string `codec:"worthAtSendTime" json:"worthAtSendTime"` 276 IssuerDescription string `codec:"issuerDescription" json:"issuerDescription"` 277 IssuerAccountID *AccountID `codec:"issuerAccountID,omitempty" json:"issuerAccountID,omitempty"` 278 FromType ParticipantType `codec:"fromType" json:"fromType"` 279 ToType ParticipantType `codec:"toType" json:"toType"` 280 AssetCode string `codec:"assetCode" json:"assetCode"` 281 FromAccountID AccountID `codec:"fromAccountID" json:"fromAccountID"` 282 FromAccountName string `codec:"fromAccountName" json:"fromAccountName"` 283 FromUsername string `codec:"fromUsername" json:"fromUsername"` 284 ToAccountID *AccountID `codec:"toAccountID,omitempty" json:"toAccountID,omitempty"` 285 ToAccountName string `codec:"toAccountName" json:"toAccountName"` 286 ToUsername string `codec:"toUsername" json:"toUsername"` 287 ToAssertion string `codec:"toAssertion" json:"toAssertion"` 288 OriginalToAssertion string `codec:"originalToAssertion" json:"originalToAssertion"` 289 Note string `codec:"note" json:"note"` 290 NoteErr string `codec:"noteErr" json:"noteErr"` 291 SourceAmountMax string `codec:"sourceAmountMax" json:"sourceAmountMax"` 292 SourceAmountActual string `codec:"sourceAmountActual" json:"sourceAmountActual"` 293 SourceAsset Asset `codec:"sourceAsset" json:"sourceAsset"` 294 SourceConvRate string `codec:"sourceConvRate" json:"sourceConvRate"` 295 IsAdvanced bool `codec:"isAdvanced" json:"isAdvanced"` 296 SummaryAdvanced string `codec:"summaryAdvanced" json:"summaryAdvanced"` 297 Operations []string `codec:"operations" json:"operations"` 298 Unread bool `codec:"unread" json:"unread"` 299 BatchID string `codec:"batchID" json:"batchID"` 300 FromAirdrop bool `codec:"fromAirdrop" json:"fromAirdrop"` 301 IsInflation bool `codec:"isInflation" json:"isInflation"` 302 InflationSource *string `codec:"inflationSource,omitempty" json:"inflationSource,omitempty"` 303 Trustline *PaymentTrustlineLocal `codec:"trustline,omitempty" json:"trustline,omitempty"` 304 } 305 306 func (o PaymentLocal) DeepCopy() PaymentLocal { 307 return PaymentLocal{ 308 Id: o.Id.DeepCopy(), 309 TxID: o.TxID.DeepCopy(), 310 Time: o.Time.DeepCopy(), 311 StatusSimplified: o.StatusSimplified.DeepCopy(), 312 StatusDescription: o.StatusDescription, 313 StatusDetail: o.StatusDetail, 314 ShowCancel: o.ShowCancel, 315 AmountDescription: o.AmountDescription, 316 Delta: o.Delta.DeepCopy(), 317 Worth: o.Worth, 318 WorthAtSendTime: o.WorthAtSendTime, 319 IssuerDescription: o.IssuerDescription, 320 IssuerAccountID: (func(x *AccountID) *AccountID { 321 if x == nil { 322 return nil 323 } 324 tmp := (*x).DeepCopy() 325 return &tmp 326 })(o.IssuerAccountID), 327 FromType: o.FromType.DeepCopy(), 328 ToType: o.ToType.DeepCopy(), 329 AssetCode: o.AssetCode, 330 FromAccountID: o.FromAccountID.DeepCopy(), 331 FromAccountName: o.FromAccountName, 332 FromUsername: o.FromUsername, 333 ToAccountID: (func(x *AccountID) *AccountID { 334 if x == nil { 335 return nil 336 } 337 tmp := (*x).DeepCopy() 338 return &tmp 339 })(o.ToAccountID), 340 ToAccountName: o.ToAccountName, 341 ToUsername: o.ToUsername, 342 ToAssertion: o.ToAssertion, 343 OriginalToAssertion: o.OriginalToAssertion, 344 Note: o.Note, 345 NoteErr: o.NoteErr, 346 SourceAmountMax: o.SourceAmountMax, 347 SourceAmountActual: o.SourceAmountActual, 348 SourceAsset: o.SourceAsset.DeepCopy(), 349 SourceConvRate: o.SourceConvRate, 350 IsAdvanced: o.IsAdvanced, 351 SummaryAdvanced: o.SummaryAdvanced, 352 Operations: (func(x []string) []string { 353 if x == nil { 354 return nil 355 } 356 ret := make([]string, len(x)) 357 for i, v := range x { 358 vCopy := v 359 ret[i] = vCopy 360 } 361 return ret 362 })(o.Operations), 363 Unread: o.Unread, 364 BatchID: o.BatchID, 365 FromAirdrop: o.FromAirdrop, 366 IsInflation: o.IsInflation, 367 InflationSource: (func(x *string) *string { 368 if x == nil { 369 return nil 370 } 371 tmp := (*x) 372 return &tmp 373 })(o.InflationSource), 374 Trustline: (func(x *PaymentTrustlineLocal) *PaymentTrustlineLocal { 375 if x == nil { 376 return nil 377 } 378 tmp := (*x).DeepCopy() 379 return &tmp 380 })(o.Trustline), 381 } 382 } 383 384 type PaymentDetailsLocal struct { 385 Summary PaymentLocal `codec:"summary" json:"summary"` 386 Details PaymentDetailsOnlyLocal `codec:"details" json:"details"` 387 } 388 389 func (o PaymentDetailsLocal) DeepCopy() PaymentDetailsLocal { 390 return PaymentDetailsLocal{ 391 Summary: o.Summary.DeepCopy(), 392 Details: o.Details.DeepCopy(), 393 } 394 } 395 396 type PaymentDetailsOnlyLocal struct { 397 PublicNote string `codec:"publicNote" json:"publicNote"` 398 PublicNoteType string `codec:"publicNoteType" json:"publicNoteType"` 399 ExternalTxURL string `codec:"externalTxURL" json:"externalTxURL"` 400 FeeChargedDescription string `codec:"feeChargedDescription" json:"feeChargedDescription"` 401 PathIntermediate []Asset `codec:"pathIntermediate" json:"pathIntermediate"` 402 } 403 404 func (o PaymentDetailsOnlyLocal) DeepCopy() PaymentDetailsOnlyLocal { 405 return PaymentDetailsOnlyLocal{ 406 PublicNote: o.PublicNote, 407 PublicNoteType: o.PublicNoteType, 408 ExternalTxURL: o.ExternalTxURL, 409 FeeChargedDescription: o.FeeChargedDescription, 410 PathIntermediate: (func(x []Asset) []Asset { 411 if x == nil { 412 return nil 413 } 414 ret := make([]Asset, len(x)) 415 for i, v := range x { 416 vCopy := v.DeepCopy() 417 ret[i] = vCopy 418 } 419 return ret 420 })(o.PathIntermediate), 421 } 422 } 423 424 type PaymentTrustlineLocal struct { 425 Asset Asset `codec:"asset" json:"asset"` 426 Remove bool `codec:"remove" json:"remove"` 427 } 428 429 func (o PaymentTrustlineLocal) DeepCopy() PaymentTrustlineLocal { 430 return PaymentTrustlineLocal{ 431 Asset: o.Asset.DeepCopy(), 432 Remove: o.Remove, 433 } 434 } 435 436 type CurrencyLocal struct { 437 Description string `codec:"description" json:"description"` 438 Code OutsideCurrencyCode `codec:"code" json:"code"` 439 Symbol string `codec:"symbol" json:"symbol"` 440 Name string `codec:"name" json:"name"` 441 } 442 443 func (o CurrencyLocal) DeepCopy() CurrencyLocal { 444 return CurrencyLocal{ 445 Description: o.Description, 446 Code: o.Code.DeepCopy(), 447 Symbol: o.Symbol, 448 Name: o.Name, 449 } 450 } 451 452 type SendAssetChoiceLocal struct { 453 Asset Asset `codec:"asset" json:"asset"` 454 Enabled bool `codec:"enabled" json:"enabled"` 455 Left string `codec:"left" json:"left"` 456 Right string `codec:"right" json:"right"` 457 Subtext string `codec:"subtext" json:"subtext"` 458 } 459 460 func (o SendAssetChoiceLocal) DeepCopy() SendAssetChoiceLocal { 461 return SendAssetChoiceLocal{ 462 Asset: o.Asset.DeepCopy(), 463 Enabled: o.Enabled, 464 Left: o.Left, 465 Right: o.Right, 466 Subtext: o.Subtext, 467 } 468 } 469 470 type BuildPaymentID string 471 472 func (o BuildPaymentID) DeepCopy() BuildPaymentID { 473 return o 474 } 475 476 type BuildPaymentResLocal struct { 477 ReadyToReview bool `codec:"readyToReview" json:"readyToReview"` 478 From AccountID `codec:"from" json:"from"` 479 ToErrMsg string `codec:"toErrMsg" json:"toErrMsg"` 480 AmountErrMsg string `codec:"amountErrMsg" json:"amountErrMsg"` 481 SecretNoteErrMsg string `codec:"secretNoteErrMsg" json:"secretNoteErrMsg"` 482 PublicMemoErrMsg string `codec:"publicMemoErrMsg" json:"publicMemoErrMsg"` 483 PublicMemoOverride string `codec:"publicMemoOverride" json:"publicMemoOverride"` 484 WorthDescription string `codec:"worthDescription" json:"worthDescription"` 485 WorthInfo string `codec:"worthInfo" json:"worthInfo"` 486 WorthAmount string `codec:"worthAmount" json:"worthAmount"` 487 WorthCurrency string `codec:"worthCurrency" json:"worthCurrency"` 488 DisplayAmountXLM string `codec:"displayAmountXLM" json:"displayAmountXLM"` 489 DisplayAmountFiat string `codec:"displayAmountFiat" json:"displayAmountFiat"` 490 SendingIntentionXLM bool `codec:"sendingIntentionXLM" json:"sendingIntentionXLM"` 491 AmountAvailable string `codec:"amountAvailable" json:"amountAvailable"` 492 Banners []SendBannerLocal `codec:"banners" json:"banners"` 493 } 494 495 func (o BuildPaymentResLocal) DeepCopy() BuildPaymentResLocal { 496 return BuildPaymentResLocal{ 497 ReadyToReview: o.ReadyToReview, 498 From: o.From.DeepCopy(), 499 ToErrMsg: o.ToErrMsg, 500 AmountErrMsg: o.AmountErrMsg, 501 SecretNoteErrMsg: o.SecretNoteErrMsg, 502 PublicMemoErrMsg: o.PublicMemoErrMsg, 503 PublicMemoOverride: o.PublicMemoOverride, 504 WorthDescription: o.WorthDescription, 505 WorthInfo: o.WorthInfo, 506 WorthAmount: o.WorthAmount, 507 WorthCurrency: o.WorthCurrency, 508 DisplayAmountXLM: o.DisplayAmountXLM, 509 DisplayAmountFiat: o.DisplayAmountFiat, 510 SendingIntentionXLM: o.SendingIntentionXLM, 511 AmountAvailable: o.AmountAvailable, 512 Banners: (func(x []SendBannerLocal) []SendBannerLocal { 513 if x == nil { 514 return nil 515 } 516 ret := make([]SendBannerLocal, len(x)) 517 for i, v := range x { 518 vCopy := v.DeepCopy() 519 ret[i] = vCopy 520 } 521 return ret 522 })(o.Banners), 523 } 524 } 525 526 type AdvancedBanner int 527 528 const ( 529 AdvancedBanner_NO_BANNER AdvancedBanner = 0 530 AdvancedBanner_SENDER_BANNER AdvancedBanner = 1 531 AdvancedBanner_RECEIVER_BANNER AdvancedBanner = 2 532 ) 533 534 func (o AdvancedBanner) DeepCopy() AdvancedBanner { return o } 535 536 var AdvancedBannerMap = map[string]AdvancedBanner{ 537 "NO_BANNER": 0, 538 "SENDER_BANNER": 1, 539 "RECEIVER_BANNER": 2, 540 } 541 542 var AdvancedBannerRevMap = map[AdvancedBanner]string{ 543 0: "NO_BANNER", 544 1: "SENDER_BANNER", 545 2: "RECEIVER_BANNER", 546 } 547 548 func (e AdvancedBanner) String() string { 549 if v, ok := AdvancedBannerRevMap[e]; ok { 550 return v 551 } 552 return fmt.Sprintf("%v", int(e)) 553 } 554 555 type SendBannerLocal struct { 556 Level string `codec:"level" json:"level"` 557 Message string `codec:"message" json:"message"` 558 ProofsChanged bool `codec:"proofsChanged" json:"proofsChanged"` 559 OfferAdvancedSendForm AdvancedBanner `codec:"offerAdvancedSendForm" json:"offerAdvancedSendForm"` 560 } 561 562 func (o SendBannerLocal) DeepCopy() SendBannerLocal { 563 return SendBannerLocal{ 564 Level: o.Level, 565 Message: o.Message, 566 ProofsChanged: o.ProofsChanged, 567 OfferAdvancedSendForm: o.OfferAdvancedSendForm.DeepCopy(), 568 } 569 } 570 571 type SendPaymentResLocal struct { 572 KbTxID KeybaseTransactionID `codec:"kbTxID" json:"kbTxID"` 573 Pending bool `codec:"pending" json:"pending"` 574 JumpToChat string `codec:"jumpToChat" json:"jumpToChat"` 575 } 576 577 func (o SendPaymentResLocal) DeepCopy() SendPaymentResLocal { 578 return SendPaymentResLocal{ 579 KbTxID: o.KbTxID.DeepCopy(), 580 Pending: o.Pending, 581 JumpToChat: o.JumpToChat, 582 } 583 } 584 585 type BuildRequestResLocal struct { 586 ReadyToRequest bool `codec:"readyToRequest" json:"readyToRequest"` 587 ToErrMsg string `codec:"toErrMsg" json:"toErrMsg"` 588 AmountErrMsg string `codec:"amountErrMsg" json:"amountErrMsg"` 589 SecretNoteErrMsg string `codec:"secretNoteErrMsg" json:"secretNoteErrMsg"` 590 WorthDescription string `codec:"worthDescription" json:"worthDescription"` 591 WorthInfo string `codec:"worthInfo" json:"worthInfo"` 592 DisplayAmountXLM string `codec:"displayAmountXLM" json:"displayAmountXLM"` 593 DisplayAmountFiat string `codec:"displayAmountFiat" json:"displayAmountFiat"` 594 SendingIntentionXLM bool `codec:"sendingIntentionXLM" json:"sendingIntentionXLM"` 595 Banners []SendBannerLocal `codec:"banners" json:"banners"` 596 } 597 598 func (o BuildRequestResLocal) DeepCopy() BuildRequestResLocal { 599 return BuildRequestResLocal{ 600 ReadyToRequest: o.ReadyToRequest, 601 ToErrMsg: o.ToErrMsg, 602 AmountErrMsg: o.AmountErrMsg, 603 SecretNoteErrMsg: o.SecretNoteErrMsg, 604 WorthDescription: o.WorthDescription, 605 WorthInfo: o.WorthInfo, 606 DisplayAmountXLM: o.DisplayAmountXLM, 607 DisplayAmountFiat: o.DisplayAmountFiat, 608 SendingIntentionXLM: o.SendingIntentionXLM, 609 Banners: (func(x []SendBannerLocal) []SendBannerLocal { 610 if x == nil { 611 return nil 612 } 613 ret := make([]SendBannerLocal, len(x)) 614 for i, v := range x { 615 vCopy := v.DeepCopy() 616 ret[i] = vCopy 617 } 618 return ret 619 })(o.Banners), 620 } 621 } 622 623 type RequestDetailsLocal struct { 624 Id KeybaseRequestID `codec:"id" json:"id"` 625 FromAssertion string `codec:"fromAssertion" json:"fromAssertion"` 626 FromCurrentUser bool `codec:"fromCurrentUser" json:"fromCurrentUser"` 627 ToUserType ParticipantType `codec:"toUserType" json:"toUserType"` 628 ToAssertion string `codec:"toAssertion" json:"toAssertion"` 629 Amount string `codec:"amount" json:"amount"` 630 Asset *Asset `codec:"asset,omitempty" json:"asset,omitempty"` 631 Currency *OutsideCurrencyCode `codec:"currency,omitempty" json:"currency,omitempty"` 632 AmountDescription string `codec:"amountDescription" json:"amountDescription"` 633 WorthAtRequestTime string `codec:"worthAtRequestTime" json:"worthAtRequestTime"` 634 Status RequestStatus `codec:"status" json:"status"` 635 } 636 637 func (o RequestDetailsLocal) DeepCopy() RequestDetailsLocal { 638 return RequestDetailsLocal{ 639 Id: o.Id.DeepCopy(), 640 FromAssertion: o.FromAssertion, 641 FromCurrentUser: o.FromCurrentUser, 642 ToUserType: o.ToUserType.DeepCopy(), 643 ToAssertion: o.ToAssertion, 644 Amount: o.Amount, 645 Asset: (func(x *Asset) *Asset { 646 if x == nil { 647 return nil 648 } 649 tmp := (*x).DeepCopy() 650 return &tmp 651 })(o.Asset), 652 Currency: (func(x *OutsideCurrencyCode) *OutsideCurrencyCode { 653 if x == nil { 654 return nil 655 } 656 tmp := (*x).DeepCopy() 657 return &tmp 658 })(o.Currency), 659 AmountDescription: o.AmountDescription, 660 WorthAtRequestTime: o.WorthAtRequestTime, 661 Status: o.Status.DeepCopy(), 662 } 663 } 664 665 type InflationDestinationTag string 666 667 func (o InflationDestinationTag) DeepCopy() InflationDestinationTag { 668 return o 669 } 670 671 type PredefinedInflationDestination struct { 672 Tag InflationDestinationTag `codec:"tag" json:"tag"` 673 Name string `codec:"name" json:"name"` 674 Recommended bool `codec:"recommended" json:"recommended"` 675 AccountID AccountID `codec:"accountID" json:"accountID"` 676 Url string `codec:"url" json:"url"` 677 } 678 679 func (o PredefinedInflationDestination) DeepCopy() PredefinedInflationDestination { 680 return PredefinedInflationDestination{ 681 Tag: o.Tag.DeepCopy(), 682 Name: o.Name, 683 Recommended: o.Recommended, 684 AccountID: o.AccountID.DeepCopy(), 685 Url: o.Url, 686 } 687 } 688 689 type InflationDestinationResultLocal struct { 690 Destination *AccountID `codec:"destination,omitempty" json:"destination,omitempty"` 691 KnownDestination *PredefinedInflationDestination `codec:"knownDestination,omitempty" json:"knownDestination,omitempty"` 692 Self bool `codec:"self" json:"self"` 693 } 694 695 func (o InflationDestinationResultLocal) DeepCopy() InflationDestinationResultLocal { 696 return InflationDestinationResultLocal{ 697 Destination: (func(x *AccountID) *AccountID { 698 if x == nil { 699 return nil 700 } 701 tmp := (*x).DeepCopy() 702 return &tmp 703 })(o.Destination), 704 KnownDestination: (func(x *PredefinedInflationDestination) *PredefinedInflationDestination { 705 if x == nil { 706 return nil 707 } 708 tmp := (*x).DeepCopy() 709 return &tmp 710 })(o.KnownDestination), 711 Self: o.Self, 712 } 713 } 714 715 type AirdropDetails struct { 716 IsPromoted bool `codec:"isPromoted" json:"isPromoted"` 717 Details string `codec:"details" json:"details"` 718 Disclaimer string `codec:"disclaimer" json:"disclaimer"` 719 } 720 721 func (o AirdropDetails) DeepCopy() AirdropDetails { 722 return AirdropDetails{ 723 IsPromoted: o.IsPromoted, 724 Details: o.Details, 725 Disclaimer: o.Disclaimer, 726 } 727 } 728 729 type AirdropState string 730 731 func (o AirdropState) DeepCopy() AirdropState { 732 return o 733 } 734 735 type AirdropQualification struct { 736 Title string `codec:"title" json:"title"` 737 Subtitle string `codec:"subtitle" json:"subtitle"` 738 Valid bool `codec:"valid" json:"valid"` 739 } 740 741 func (o AirdropQualification) DeepCopy() AirdropQualification { 742 return AirdropQualification{ 743 Title: o.Title, 744 Subtitle: o.Subtitle, 745 Valid: o.Valid, 746 } 747 } 748 749 type AirdropStatus struct { 750 State AirdropState `codec:"state" json:"state"` 751 Rows []AirdropQualification `codec:"rows" json:"rows"` 752 } 753 754 func (o AirdropStatus) DeepCopy() AirdropStatus { 755 return AirdropStatus{ 756 State: o.State.DeepCopy(), 757 Rows: (func(x []AirdropQualification) []AirdropQualification { 758 if x == nil { 759 return nil 760 } 761 ret := make([]AirdropQualification, len(x)) 762 for i, v := range x { 763 vCopy := v.DeepCopy() 764 ret[i] = vCopy 765 } 766 return ret 767 })(o.Rows), 768 } 769 } 770 771 type RecipientTrustlinesLocal struct { 772 Trustlines []Balance `codec:"trustlines" json:"trustlines"` 773 RecipientType ParticipantType `codec:"recipientType" json:"recipientType"` 774 } 775 776 func (o RecipientTrustlinesLocal) DeepCopy() RecipientTrustlinesLocal { 777 return RecipientTrustlinesLocal{ 778 Trustlines: (func(x []Balance) []Balance { 779 if x == nil { 780 return nil 781 } 782 ret := make([]Balance, len(x)) 783 for i, v := range x { 784 vCopy := v.DeepCopy() 785 ret[i] = vCopy 786 } 787 return ret 788 })(o.Trustlines), 789 RecipientType: o.RecipientType.DeepCopy(), 790 } 791 } 792 793 type PaymentPathLocal struct { 794 SourceDisplay string `codec:"sourceDisplay" json:"sourceDisplay"` 795 SourceMaxDisplay string `codec:"sourceMaxDisplay" json:"sourceMaxDisplay"` 796 DestinationDisplay string `codec:"destinationDisplay" json:"destinationDisplay"` 797 ExchangeRate string `codec:"exchangeRate" json:"exchangeRate"` 798 AmountError string `codec:"amountError" json:"amountError"` 799 DestinationAccount AccountID `codec:"destinationAccount" json:"destinationAccount"` 800 FullPath PaymentPath `codec:"fullPath" json:"fullPath"` 801 } 802 803 func (o PaymentPathLocal) DeepCopy() PaymentPathLocal { 804 return PaymentPathLocal{ 805 SourceDisplay: o.SourceDisplay, 806 SourceMaxDisplay: o.SourceMaxDisplay, 807 DestinationDisplay: o.DestinationDisplay, 808 ExchangeRate: o.ExchangeRate, 809 AmountError: o.AmountError, 810 DestinationAccount: o.DestinationAccount.DeepCopy(), 811 FullPath: o.FullPath.DeepCopy(), 812 } 813 } 814 815 type AssetActionResultLocal struct { 816 ExternalUrl *string `codec:"externalUrl,omitempty" json:"externalUrl,omitempty"` 817 MessageFromAnchor *string `codec:"messageFromAnchor,omitempty" json:"messageFromAnchor,omitempty"` 818 } 819 820 func (o AssetActionResultLocal) DeepCopy() AssetActionResultLocal { 821 return AssetActionResultLocal{ 822 ExternalUrl: (func(x *string) *string { 823 if x == nil { 824 return nil 825 } 826 tmp := (*x) 827 return &tmp 828 })(o.ExternalUrl), 829 MessageFromAnchor: (func(x *string) *string { 830 if x == nil { 831 return nil 832 } 833 tmp := (*x) 834 return &tmp 835 })(o.MessageFromAnchor), 836 } 837 } 838 839 type SendResultCLILocal struct { 840 KbTxID KeybaseTransactionID `codec:"kbTxID" json:"kbTxID"` 841 TxID TransactionID `codec:"txID" json:"txID"` 842 } 843 844 func (o SendResultCLILocal) DeepCopy() SendResultCLILocal { 845 return SendResultCLILocal{ 846 KbTxID: o.KbTxID.DeepCopy(), 847 TxID: o.TxID.DeepCopy(), 848 } 849 } 850 851 type PublicNoteType int 852 853 const ( 854 PublicNoteType_NONE PublicNoteType = 0 855 PublicNoteType_TEXT PublicNoteType = 1 856 PublicNoteType_ID PublicNoteType = 2 857 PublicNoteType_HASH PublicNoteType = 3 858 PublicNoteType_RETURN PublicNoteType = 4 859 ) 860 861 func (o PublicNoteType) DeepCopy() PublicNoteType { return o } 862 863 var PublicNoteTypeMap = map[string]PublicNoteType{ 864 "NONE": 0, 865 "TEXT": 1, 866 "ID": 2, 867 "HASH": 3, 868 "RETURN": 4, 869 } 870 871 var PublicNoteTypeRevMap = map[PublicNoteType]string{ 872 0: "NONE", 873 1: "TEXT", 874 2: "ID", 875 3: "HASH", 876 4: "RETURN", 877 } 878 879 func (e PublicNoteType) String() string { 880 if v, ok := PublicNoteTypeRevMap[e]; ok { 881 return v 882 } 883 return fmt.Sprintf("%v", int(e)) 884 } 885 886 type PaymentOrErrorCLILocal struct { 887 Payment *PaymentCLILocal `codec:"payment,omitempty" json:"payment,omitempty"` 888 Err *string `codec:"err,omitempty" json:"err,omitempty"` 889 } 890 891 func (o PaymentOrErrorCLILocal) DeepCopy() PaymentOrErrorCLILocal { 892 return PaymentOrErrorCLILocal{ 893 Payment: (func(x *PaymentCLILocal) *PaymentCLILocal { 894 if x == nil { 895 return nil 896 } 897 tmp := (*x).DeepCopy() 898 return &tmp 899 })(o.Payment), 900 Err: (func(x *string) *string { 901 if x == nil { 902 return nil 903 } 904 tmp := (*x) 905 return &tmp 906 })(o.Err), 907 } 908 } 909 910 type PaymentCLILocal struct { 911 TxID TransactionID `codec:"txID" json:"txID"` 912 Time TimeMs `codec:"time" json:"time"` 913 Status string `codec:"status" json:"status"` 914 StatusDetail string `codec:"statusDetail" json:"statusDetail"` 915 Amount string `codec:"amount" json:"amount"` 916 Asset Asset `codec:"asset" json:"asset"` 917 DisplayAmount *string `codec:"displayAmount,omitempty" json:"displayAmount,omitempty"` 918 DisplayCurrency *string `codec:"displayCurrency,omitempty" json:"displayCurrency,omitempty"` 919 SourceAmountMax string `codec:"sourceAmountMax" json:"sourceAmountMax"` 920 SourceAmountActual string `codec:"sourceAmountActual" json:"sourceAmountActual"` 921 SourceAsset Asset `codec:"sourceAsset" json:"sourceAsset"` 922 IsAdvanced bool `codec:"isAdvanced" json:"isAdvanced"` 923 SummaryAdvanced string `codec:"summaryAdvanced" json:"summaryAdvanced"` 924 Operations []string `codec:"operations" json:"operations"` 925 FromStellar AccountID `codec:"fromStellar" json:"fromStellar"` 926 ToStellar *AccountID `codec:"toStellar,omitempty" json:"toStellar,omitempty"` 927 FromUsername *string `codec:"fromUsername,omitempty" json:"fromUsername,omitempty"` 928 ToUsername *string `codec:"toUsername,omitempty" json:"toUsername,omitempty"` 929 ToAssertion *string `codec:"toAssertion,omitempty" json:"toAssertion,omitempty"` 930 Note string `codec:"note" json:"note"` 931 NoteErr string `codec:"noteErr" json:"noteErr"` 932 Unread bool `codec:"unread" json:"unread"` 933 PublicNote string `codec:"publicNote" json:"publicNote"` 934 PublicNoteType string `codec:"publicNoteType" json:"publicNoteType"` 935 FeeChargedDescription string `codec:"feeChargedDescription" json:"feeChargedDescription"` 936 } 937 938 func (o PaymentCLILocal) DeepCopy() PaymentCLILocal { 939 return PaymentCLILocal{ 940 TxID: o.TxID.DeepCopy(), 941 Time: o.Time.DeepCopy(), 942 Status: o.Status, 943 StatusDetail: o.StatusDetail, 944 Amount: o.Amount, 945 Asset: o.Asset.DeepCopy(), 946 DisplayAmount: (func(x *string) *string { 947 if x == nil { 948 return nil 949 } 950 tmp := (*x) 951 return &tmp 952 })(o.DisplayAmount), 953 DisplayCurrency: (func(x *string) *string { 954 if x == nil { 955 return nil 956 } 957 tmp := (*x) 958 return &tmp 959 })(o.DisplayCurrency), 960 SourceAmountMax: o.SourceAmountMax, 961 SourceAmountActual: o.SourceAmountActual, 962 SourceAsset: o.SourceAsset.DeepCopy(), 963 IsAdvanced: o.IsAdvanced, 964 SummaryAdvanced: o.SummaryAdvanced, 965 Operations: (func(x []string) []string { 966 if x == nil { 967 return nil 968 } 969 ret := make([]string, len(x)) 970 for i, v := range x { 971 vCopy := v 972 ret[i] = vCopy 973 } 974 return ret 975 })(o.Operations), 976 FromStellar: o.FromStellar.DeepCopy(), 977 ToStellar: (func(x *AccountID) *AccountID { 978 if x == nil { 979 return nil 980 } 981 tmp := (*x).DeepCopy() 982 return &tmp 983 })(o.ToStellar), 984 FromUsername: (func(x *string) *string { 985 if x == nil { 986 return nil 987 } 988 tmp := (*x) 989 return &tmp 990 })(o.FromUsername), 991 ToUsername: (func(x *string) *string { 992 if x == nil { 993 return nil 994 } 995 tmp := (*x) 996 return &tmp 997 })(o.ToUsername), 998 ToAssertion: (func(x *string) *string { 999 if x == nil { 1000 return nil 1001 } 1002 tmp := (*x) 1003 return &tmp 1004 })(o.ToAssertion), 1005 Note: o.Note, 1006 NoteErr: o.NoteErr, 1007 Unread: o.Unread, 1008 PublicNote: o.PublicNote, 1009 PublicNoteType: o.PublicNoteType, 1010 FeeChargedDescription: o.FeeChargedDescription, 1011 } 1012 } 1013 1014 type OwnAccountCLILocal struct { 1015 AccountID AccountID `codec:"accountID" json:"accountID"` 1016 IsPrimary bool `codec:"isPrimary" json:"isPrimary"` 1017 Name string `codec:"name" json:"name"` 1018 Balance []Balance `codec:"balance" json:"balance"` 1019 ExchangeRate *OutsideExchangeRate `codec:"exchangeRate,omitempty" json:"exchangeRate,omitempty"` 1020 AccountMode AccountMode `codec:"accountMode" json:"accountMode"` 1021 } 1022 1023 func (o OwnAccountCLILocal) DeepCopy() OwnAccountCLILocal { 1024 return OwnAccountCLILocal{ 1025 AccountID: o.AccountID.DeepCopy(), 1026 IsPrimary: o.IsPrimary, 1027 Name: o.Name, 1028 Balance: (func(x []Balance) []Balance { 1029 if x == nil { 1030 return nil 1031 } 1032 ret := make([]Balance, len(x)) 1033 for i, v := range x { 1034 vCopy := v.DeepCopy() 1035 ret[i] = vCopy 1036 } 1037 return ret 1038 })(o.Balance), 1039 ExchangeRate: (func(x *OutsideExchangeRate) *OutsideExchangeRate { 1040 if x == nil { 1041 return nil 1042 } 1043 tmp := (*x).DeepCopy() 1044 return &tmp 1045 })(o.ExchangeRate), 1046 AccountMode: o.AccountMode.DeepCopy(), 1047 } 1048 } 1049 1050 type LookupResultCLILocal struct { 1051 AccountID AccountID `codec:"accountID" json:"accountID"` 1052 Username *string `codec:"username,omitempty" json:"username,omitempty"` 1053 } 1054 1055 func (o LookupResultCLILocal) DeepCopy() LookupResultCLILocal { 1056 return LookupResultCLILocal{ 1057 AccountID: o.AccountID.DeepCopy(), 1058 Username: (func(x *string) *string { 1059 if x == nil { 1060 return nil 1061 } 1062 tmp := (*x) 1063 return &tmp 1064 })(o.Username), 1065 } 1066 } 1067 1068 type BatchPaymentError struct { 1069 Message string `codec:"message" json:"message"` 1070 Code int `codec:"code" json:"code"` 1071 } 1072 1073 func (o BatchPaymentError) DeepCopy() BatchPaymentError { 1074 return BatchPaymentError{ 1075 Message: o.Message, 1076 Code: o.Code, 1077 } 1078 } 1079 1080 type BatchPaymentResult struct { 1081 Username string `codec:"username" json:"username"` 1082 StartTime TimeMs `codec:"startTime" json:"startTime"` 1083 SubmittedTime TimeMs `codec:"submittedTime" json:"submittedTime"` 1084 EndTime TimeMs `codec:"endTime" json:"endTime"` 1085 TxID TransactionID `codec:"txID" json:"txID"` 1086 Status PaymentStatus `codec:"status" json:"status"` 1087 StatusDescription string `codec:"statusDescription" json:"statusDescription"` 1088 Error *BatchPaymentError `codec:"error,omitempty" json:"error,omitempty"` 1089 } 1090 1091 func (o BatchPaymentResult) DeepCopy() BatchPaymentResult { 1092 return BatchPaymentResult{ 1093 Username: o.Username, 1094 StartTime: o.StartTime.DeepCopy(), 1095 SubmittedTime: o.SubmittedTime.DeepCopy(), 1096 EndTime: o.EndTime.DeepCopy(), 1097 TxID: o.TxID.DeepCopy(), 1098 Status: o.Status.DeepCopy(), 1099 StatusDescription: o.StatusDescription, 1100 Error: (func(x *BatchPaymentError) *BatchPaymentError { 1101 if x == nil { 1102 return nil 1103 } 1104 tmp := (*x).DeepCopy() 1105 return &tmp 1106 })(o.Error), 1107 } 1108 } 1109 1110 type BatchResultLocal struct { 1111 StartTime TimeMs `codec:"startTime" json:"startTime"` 1112 PreparedTime TimeMs `codec:"preparedTime" json:"preparedTime"` 1113 AllSubmittedTime TimeMs `codec:"allSubmittedTime" json:"allSubmittedTime"` 1114 AllCompleteTime TimeMs `codec:"allCompleteTime" json:"allCompleteTime"` 1115 EndTime TimeMs `codec:"endTime" json:"endTime"` 1116 Payments []BatchPaymentResult `codec:"payments" json:"payments"` 1117 OverallDurationMs TimeMs `codec:"overallDurationMs" json:"overallDurationMs"` 1118 PrepareDurationMs TimeMs `codec:"prepareDurationMs" json:"prepareDurationMs"` 1119 SubmitDurationMs TimeMs `codec:"submitDurationMs" json:"submitDurationMs"` 1120 WaitPaymentsDurationMs TimeMs `codec:"waitPaymentsDurationMs" json:"waitPaymentsDurationMs"` 1121 WaitChatDurationMs TimeMs `codec:"waitChatDurationMs" json:"waitChatDurationMs"` 1122 CountSuccess int `codec:"countSuccess" json:"countSuccess"` 1123 CountDirect int `codec:"countDirect" json:"countDirect"` 1124 CountRelay int `codec:"countRelay" json:"countRelay"` 1125 CountError int `codec:"countError" json:"countError"` 1126 CountPending int `codec:"countPending" json:"countPending"` 1127 AvgDurationMs TimeMs `codec:"avgDurationMs" json:"avgDurationMs"` 1128 AvgSuccessDurationMs TimeMs `codec:"avgSuccessDurationMs" json:"avgSuccessDurationMs"` 1129 AvgDirectDurationMs TimeMs `codec:"avgDirectDurationMs" json:"avgDirectDurationMs"` 1130 AvgRelayDurationMs TimeMs `codec:"avgRelayDurationMs" json:"avgRelayDurationMs"` 1131 AvgErrorDurationMs TimeMs `codec:"avgErrorDurationMs" json:"avgErrorDurationMs"` 1132 } 1133 1134 func (o BatchResultLocal) DeepCopy() BatchResultLocal { 1135 return BatchResultLocal{ 1136 StartTime: o.StartTime.DeepCopy(), 1137 PreparedTime: o.PreparedTime.DeepCopy(), 1138 AllSubmittedTime: o.AllSubmittedTime.DeepCopy(), 1139 AllCompleteTime: o.AllCompleteTime.DeepCopy(), 1140 EndTime: o.EndTime.DeepCopy(), 1141 Payments: (func(x []BatchPaymentResult) []BatchPaymentResult { 1142 if x == nil { 1143 return nil 1144 } 1145 ret := make([]BatchPaymentResult, len(x)) 1146 for i, v := range x { 1147 vCopy := v.DeepCopy() 1148 ret[i] = vCopy 1149 } 1150 return ret 1151 })(o.Payments), 1152 OverallDurationMs: o.OverallDurationMs.DeepCopy(), 1153 PrepareDurationMs: o.PrepareDurationMs.DeepCopy(), 1154 SubmitDurationMs: o.SubmitDurationMs.DeepCopy(), 1155 WaitPaymentsDurationMs: o.WaitPaymentsDurationMs.DeepCopy(), 1156 WaitChatDurationMs: o.WaitChatDurationMs.DeepCopy(), 1157 CountSuccess: o.CountSuccess, 1158 CountDirect: o.CountDirect, 1159 CountRelay: o.CountRelay, 1160 CountError: o.CountError, 1161 CountPending: o.CountPending, 1162 AvgDurationMs: o.AvgDurationMs.DeepCopy(), 1163 AvgSuccessDurationMs: o.AvgSuccessDurationMs.DeepCopy(), 1164 AvgDirectDurationMs: o.AvgDirectDurationMs.DeepCopy(), 1165 AvgRelayDurationMs: o.AvgRelayDurationMs.DeepCopy(), 1166 AvgErrorDurationMs: o.AvgErrorDurationMs.DeepCopy(), 1167 } 1168 } 1169 1170 type BatchPaymentArg struct { 1171 Recipient string `codec:"recipient" json:"recipient"` 1172 Amount string `codec:"amount" json:"amount"` 1173 Message string `codec:"message" json:"message"` 1174 } 1175 1176 func (o BatchPaymentArg) DeepCopy() BatchPaymentArg { 1177 return BatchPaymentArg{ 1178 Recipient: o.Recipient, 1179 Amount: o.Amount, 1180 Message: o.Message, 1181 } 1182 } 1183 1184 type TxDisplaySummary struct { 1185 Source AccountID `codec:"source" json:"source"` 1186 Fee int `codec:"fee" json:"fee"` 1187 Memo string `codec:"memo" json:"memo"` 1188 MemoType string `codec:"memoType" json:"memoType"` 1189 Operations []string `codec:"operations" json:"operations"` 1190 } 1191 1192 func (o TxDisplaySummary) DeepCopy() TxDisplaySummary { 1193 return TxDisplaySummary{ 1194 Source: o.Source.DeepCopy(), 1195 Fee: o.Fee, 1196 Memo: o.Memo, 1197 MemoType: o.MemoType, 1198 Operations: (func(x []string) []string { 1199 if x == nil { 1200 return nil 1201 } 1202 ret := make([]string, len(x)) 1203 for i, v := range x { 1204 vCopy := v 1205 ret[i] = vCopy 1206 } 1207 return ret 1208 })(o.Operations), 1209 } 1210 } 1211 1212 type ValidateStellarURIResultLocal struct { 1213 Operation string `codec:"operation" json:"operation"` 1214 OriginDomain string `codec:"originDomain" json:"originDomain"` 1215 Message string `codec:"message" json:"message"` 1216 CallbackURL string `codec:"callbackURL" json:"callbackURL"` 1217 Xdr string `codec:"xdr" json:"xdr"` 1218 Summary TxDisplaySummary `codec:"summary" json:"summary"` 1219 Recipient string `codec:"recipient" json:"recipient"` 1220 Amount string `codec:"amount" json:"amount"` 1221 AssetCode string `codec:"assetCode" json:"assetCode"` 1222 AssetIssuer string `codec:"assetIssuer" json:"assetIssuer"` 1223 Memo string `codec:"memo" json:"memo"` 1224 MemoType string `codec:"memoType" json:"memoType"` 1225 DisplayAmountFiat string `codec:"displayAmountFiat" json:"displayAmountFiat"` 1226 AvailableToSendNative string `codec:"availableToSendNative" json:"availableToSendNative"` 1227 AvailableToSendFiat string `codec:"availableToSendFiat" json:"availableToSendFiat"` 1228 Signed bool `codec:"signed" json:"signed"` 1229 } 1230 1231 func (o ValidateStellarURIResultLocal) DeepCopy() ValidateStellarURIResultLocal { 1232 return ValidateStellarURIResultLocal{ 1233 Operation: o.Operation, 1234 OriginDomain: o.OriginDomain, 1235 Message: o.Message, 1236 CallbackURL: o.CallbackURL, 1237 Xdr: o.Xdr, 1238 Summary: o.Summary.DeepCopy(), 1239 Recipient: o.Recipient, 1240 Amount: o.Amount, 1241 AssetCode: o.AssetCode, 1242 AssetIssuer: o.AssetIssuer, 1243 Memo: o.Memo, 1244 MemoType: o.MemoType, 1245 DisplayAmountFiat: o.DisplayAmountFiat, 1246 AvailableToSendNative: o.AvailableToSendNative, 1247 AvailableToSendFiat: o.AvailableToSendFiat, 1248 Signed: o.Signed, 1249 } 1250 } 1251 1252 type PartnerUrl struct { 1253 Url string `codec:"url" json:"url"` 1254 Title string `codec:"title" json:"title"` 1255 Description string `codec:"description" json:"description"` 1256 IconFilename string `codec:"iconFilename" json:"icon_filename"` 1257 AdminOnly bool `codec:"adminOnly" json:"admin_only"` 1258 CanPurchase bool `codec:"canPurchase" json:"can_purchase"` 1259 Extra string `codec:"extra" json:"extra"` 1260 } 1261 1262 func (o PartnerUrl) DeepCopy() PartnerUrl { 1263 return PartnerUrl{ 1264 Url: o.Url, 1265 Title: o.Title, 1266 Description: o.Description, 1267 IconFilename: o.IconFilename, 1268 AdminOnly: o.AdminOnly, 1269 CanPurchase: o.CanPurchase, 1270 Extra: o.Extra, 1271 } 1272 } 1273 1274 type SignXdrResult struct { 1275 SingedTx string `codec:"singedTx" json:"singedTx"` 1276 AccountID AccountID `codec:"accountID" json:"accountID"` 1277 SubmitErr *string `codec:"submitErr,omitempty" json:"submitErr,omitempty"` 1278 SubmitTxID *TransactionID `codec:"submitTxID,omitempty" json:"submitTxID,omitempty"` 1279 } 1280 1281 func (o SignXdrResult) DeepCopy() SignXdrResult { 1282 return SignXdrResult{ 1283 SingedTx: o.SingedTx, 1284 AccountID: o.AccountID.DeepCopy(), 1285 SubmitErr: (func(x *string) *string { 1286 if x == nil { 1287 return nil 1288 } 1289 tmp := (*x) 1290 return &tmp 1291 })(o.SubmitErr), 1292 SubmitTxID: (func(x *TransactionID) *TransactionID { 1293 if x == nil { 1294 return nil 1295 } 1296 tmp := (*x).DeepCopy() 1297 return &tmp 1298 })(o.SubmitTxID), 1299 } 1300 } 1301 1302 type StaticConfig struct { 1303 PaymentNoteMaxLength int `codec:"paymentNoteMaxLength" json:"paymentNoteMaxLength"` 1304 RequestNoteMaxLength int `codec:"requestNoteMaxLength" json:"requestNoteMaxLength"` 1305 PublicMemoMaxLength int `codec:"publicMemoMaxLength" json:"publicMemoMaxLength"` 1306 } 1307 1308 func (o StaticConfig) DeepCopy() StaticConfig { 1309 return StaticConfig{ 1310 PaymentNoteMaxLength: o.PaymentNoteMaxLength, 1311 RequestNoteMaxLength: o.RequestNoteMaxLength, 1312 PublicMemoMaxLength: o.PublicMemoMaxLength, 1313 } 1314 } 1315 1316 type GetWalletAccountsLocalArg struct { 1317 SessionID int `codec:"sessionID" json:"sessionID"` 1318 } 1319 1320 type GetWalletAccountLocalArg struct { 1321 SessionID int `codec:"sessionID" json:"sessionID"` 1322 AccountID AccountID `codec:"accountID" json:"accountID"` 1323 } 1324 1325 type GetAccountAssetsLocalArg struct { 1326 SessionID int `codec:"sessionID" json:"sessionID"` 1327 AccountID AccountID `codec:"accountID" json:"accountID"` 1328 } 1329 1330 type GetPaymentsLocalArg struct { 1331 SessionID int `codec:"sessionID" json:"sessionID"` 1332 AccountID AccountID `codec:"accountID" json:"accountID"` 1333 Cursor *PageCursor `codec:"cursor,omitempty" json:"cursor,omitempty"` 1334 } 1335 1336 type GetPendingPaymentsLocalArg struct { 1337 SessionID int `codec:"sessionID" json:"sessionID"` 1338 AccountID AccountID `codec:"accountID" json:"accountID"` 1339 } 1340 1341 type MarkAsReadLocalArg struct { 1342 SessionID int `codec:"sessionID" json:"sessionID"` 1343 AccountID AccountID `codec:"accountID" json:"accountID"` 1344 MostRecentID PaymentID `codec:"mostRecentID" json:"mostRecentID"` 1345 } 1346 1347 type GetPaymentDetailsLocalArg struct { 1348 SessionID int `codec:"sessionID" json:"sessionID"` 1349 AccountID AccountID `codec:"accountID" json:"accountID"` 1350 Id PaymentID `codec:"id" json:"id"` 1351 } 1352 1353 type GetGenericPaymentDetailsLocalArg struct { 1354 SessionID int `codec:"sessionID" json:"sessionID"` 1355 Id PaymentID `codec:"id" json:"id"` 1356 } 1357 1358 type GetDisplayCurrenciesLocalArg struct { 1359 SessionID int `codec:"sessionID" json:"sessionID"` 1360 } 1361 1362 type ValidateAccountIDLocalArg struct { 1363 SessionID int `codec:"sessionID" json:"sessionID"` 1364 AccountID AccountID `codec:"accountID" json:"accountID"` 1365 } 1366 1367 type ValidateSecretKeyLocalArg struct { 1368 SessionID int `codec:"sessionID" json:"sessionID"` 1369 SecretKey SecretKey `codec:"secretKey" json:"secretKey"` 1370 } 1371 1372 type ValidateAccountNameLocalArg struct { 1373 SessionID int `codec:"sessionID" json:"sessionID"` 1374 Name string `codec:"name" json:"name"` 1375 } 1376 1377 type ChangeWalletAccountNameLocalArg struct { 1378 SessionID int `codec:"sessionID" json:"sessionID"` 1379 AccountID AccountID `codec:"accountID" json:"accountID"` 1380 NewName string `codec:"newName" json:"newName"` 1381 } 1382 1383 type SetWalletAccountAsDefaultLocalArg struct { 1384 SessionID int `codec:"sessionID" json:"sessionID"` 1385 AccountID AccountID `codec:"accountID" json:"accountID"` 1386 } 1387 1388 type DeleteWalletAccountLocalArg struct { 1389 SessionID int `codec:"sessionID" json:"sessionID"` 1390 AccountID AccountID `codec:"accountID" json:"accountID"` 1391 UserAcknowledged string `codec:"userAcknowledged" json:"userAcknowledged"` 1392 } 1393 1394 type LinkNewWalletAccountLocalArg struct { 1395 SessionID int `codec:"sessionID" json:"sessionID"` 1396 SecretKey SecretKey `codec:"secretKey" json:"secretKey"` 1397 Name string `codec:"name" json:"name"` 1398 } 1399 1400 type CreateWalletAccountLocalArg struct { 1401 SessionID int `codec:"sessionID" json:"sessionID"` 1402 Name string `codec:"name" json:"name"` 1403 } 1404 1405 type ChangeDisplayCurrencyLocalArg struct { 1406 SessionID int `codec:"sessionID" json:"sessionID"` 1407 AccountID AccountID `codec:"accountID" json:"accountID"` 1408 Currency OutsideCurrencyCode `codec:"currency" json:"currency"` 1409 } 1410 1411 type GetDisplayCurrencyLocalArg struct { 1412 SessionID int `codec:"sessionID" json:"sessionID"` 1413 AccountID *AccountID `codec:"accountID,omitempty" json:"accountID,omitempty"` 1414 } 1415 1416 type HasAcceptedDisclaimerLocalArg struct { 1417 SessionID int `codec:"sessionID" json:"sessionID"` 1418 } 1419 1420 type AcceptDisclaimerLocalArg struct { 1421 SessionID int `codec:"sessionID" json:"sessionID"` 1422 } 1423 1424 type GetWalletAccountPublicKeyLocalArg struct { 1425 SessionID int `codec:"sessionID" json:"sessionID"` 1426 AccountID AccountID `codec:"accountID" json:"accountID"` 1427 } 1428 1429 type GetWalletAccountSecretKeyLocalArg struct { 1430 SessionID int `codec:"sessionID" json:"sessionID"` 1431 AccountID AccountID `codec:"accountID" json:"accountID"` 1432 } 1433 1434 type GetSendAssetChoicesLocalArg struct { 1435 SessionID int `codec:"sessionID" json:"sessionID"` 1436 From AccountID `codec:"from" json:"from"` 1437 To string `codec:"to" json:"to"` 1438 } 1439 1440 type StartBuildPaymentLocalArg struct { 1441 SessionID int `codec:"sessionID" json:"sessionID"` 1442 } 1443 1444 type StopBuildPaymentLocalArg struct { 1445 SessionID int `codec:"sessionID" json:"sessionID"` 1446 Bid BuildPaymentID `codec:"bid" json:"bid"` 1447 } 1448 1449 type BuildPaymentLocalArg struct { 1450 SessionID int `codec:"sessionID" json:"sessionID"` 1451 Bid BuildPaymentID `codec:"bid" json:"bid"` 1452 From AccountID `codec:"from" json:"from"` 1453 FromPrimaryAccount bool `codec:"fromPrimaryAccount" json:"fromPrimaryAccount"` 1454 To string `codec:"to" json:"to"` 1455 ToIsAccountID bool `codec:"toIsAccountID" json:"toIsAccountID"` 1456 Amount string `codec:"amount" json:"amount"` 1457 Currency *OutsideCurrencyCode `codec:"currency,omitempty" json:"currency,omitempty"` 1458 Asset *Asset `codec:"asset,omitempty" json:"asset,omitempty"` 1459 SecretNote string `codec:"secretNote" json:"secretNote"` 1460 PublicMemo string `codec:"publicMemo" json:"publicMemo"` 1461 } 1462 1463 type ReviewPaymentLocalArg struct { 1464 SessionID int `codec:"sessionID" json:"sessionID"` 1465 ReviewID int `codec:"reviewID" json:"reviewID"` 1466 Bid BuildPaymentID `codec:"bid" json:"bid"` 1467 } 1468 1469 type SendPaymentLocalArg struct { 1470 SessionID int `codec:"sessionID" json:"sessionID"` 1471 Bid BuildPaymentID `codec:"bid" json:"bid"` 1472 BypassBid bool `codec:"bypassBid" json:"bypassBid"` 1473 BypassReview bool `codec:"bypassReview" json:"bypassReview"` 1474 From AccountID `codec:"from" json:"from"` 1475 To string `codec:"to" json:"to"` 1476 ToIsAccountID bool `codec:"toIsAccountID" json:"toIsAccountID"` 1477 Amount string `codec:"amount" json:"amount"` 1478 Asset Asset `codec:"asset" json:"asset"` 1479 WorthAmount string `codec:"worthAmount" json:"worthAmount"` 1480 WorthCurrency *OutsideCurrencyCode `codec:"worthCurrency,omitempty" json:"worthCurrency,omitempty"` 1481 SecretNote string `codec:"secretNote" json:"secretNote"` 1482 PublicMemo string `codec:"publicMemo" json:"publicMemo"` 1483 QuickReturn bool `codec:"quickReturn" json:"quickReturn"` 1484 } 1485 1486 type SendPathLocalArg struct { 1487 Source AccountID `codec:"source" json:"source"` 1488 Recipient string `codec:"recipient" json:"recipient"` 1489 Path PaymentPath `codec:"path" json:"path"` 1490 Note string `codec:"note" json:"note"` 1491 PublicNote string `codec:"publicNote" json:"publicNote"` 1492 } 1493 1494 type BuildRequestLocalArg struct { 1495 SessionID int `codec:"sessionID" json:"sessionID"` 1496 To string `codec:"to" json:"to"` 1497 Amount string `codec:"amount" json:"amount"` 1498 Asset *Asset `codec:"asset,omitempty" json:"asset,omitempty"` 1499 Currency *OutsideCurrencyCode `codec:"currency,omitempty" json:"currency,omitempty"` 1500 SecretNote string `codec:"secretNote" json:"secretNote"` 1501 } 1502 1503 type GetRequestDetailsLocalArg struct { 1504 SessionID int `codec:"sessionID" json:"sessionID"` 1505 ReqID KeybaseRequestID `codec:"reqID" json:"reqID"` 1506 } 1507 1508 type CancelRequestLocalArg struct { 1509 SessionID int `codec:"sessionID" json:"sessionID"` 1510 ReqID KeybaseRequestID `codec:"reqID" json:"reqID"` 1511 } 1512 1513 type MakeRequestLocalArg struct { 1514 SessionID int `codec:"sessionID" json:"sessionID"` 1515 Recipient string `codec:"recipient" json:"recipient"` 1516 Asset *Asset `codec:"asset,omitempty" json:"asset,omitempty"` 1517 Currency *OutsideCurrencyCode `codec:"currency,omitempty" json:"currency,omitempty"` 1518 Amount string `codec:"amount" json:"amount"` 1519 Note string `codec:"note" json:"note"` 1520 } 1521 1522 type SetAccountMobileOnlyLocalArg struct { 1523 SessionID int `codec:"sessionID" json:"sessionID"` 1524 AccountID AccountID `codec:"accountID" json:"accountID"` 1525 } 1526 1527 type SetAccountAllDevicesLocalArg struct { 1528 SessionID int `codec:"sessionID" json:"sessionID"` 1529 AccountID AccountID `codec:"accountID" json:"accountID"` 1530 } 1531 1532 type IsAccountMobileOnlyLocalArg struct { 1533 SessionID int `codec:"sessionID" json:"sessionID"` 1534 AccountID AccountID `codec:"accountID" json:"accountID"` 1535 } 1536 1537 type CancelPaymentLocalArg struct { 1538 SessionID int `codec:"sessionID" json:"sessionID"` 1539 PaymentID PaymentID `codec:"paymentID" json:"paymentID"` 1540 } 1541 1542 type GetPredefinedInflationDestinationsLocalArg struct { 1543 SessionID int `codec:"sessionID" json:"sessionID"` 1544 } 1545 1546 type SetInflationDestinationLocalArg struct { 1547 SessionID int `codec:"sessionID" json:"sessionID"` 1548 AccountID AccountID `codec:"accountID" json:"accountID"` 1549 Destination AccountID `codec:"destination" json:"destination"` 1550 } 1551 1552 type GetInflationDestinationLocalArg struct { 1553 SessionID int `codec:"sessionID" json:"sessionID"` 1554 AccountID AccountID `codec:"accountID" json:"accountID"` 1555 } 1556 1557 type AirdropDetailsLocalArg struct { 1558 SessionID int `codec:"sessionID" json:"sessionID"` 1559 } 1560 1561 type AirdropStatusLocalArg struct { 1562 SessionID int `codec:"sessionID" json:"sessionID"` 1563 } 1564 1565 type AirdropRegisterLocalArg struct { 1566 SessionID int `codec:"sessionID" json:"sessionID"` 1567 Register bool `codec:"register" json:"register"` 1568 } 1569 1570 type FuzzyAssetSearchLocalArg struct { 1571 SessionID int `codec:"sessionID" json:"sessionID"` 1572 SearchString string `codec:"searchString" json:"searchString"` 1573 } 1574 1575 type ListPopularAssetsLocalArg struct { 1576 SessionID int `codec:"sessionID" json:"sessionID"` 1577 } 1578 1579 type AddTrustlineLocalArg struct { 1580 SessionID int `codec:"sessionID" json:"sessionID"` 1581 AccountID AccountID `codec:"accountID" json:"accountID"` 1582 Trustline Trustline `codec:"trustline" json:"trustline"` 1583 Limit string `codec:"limit" json:"limit"` 1584 } 1585 1586 type DeleteTrustlineLocalArg struct { 1587 SessionID int `codec:"sessionID" json:"sessionID"` 1588 AccountID AccountID `codec:"accountID" json:"accountID"` 1589 Trustline Trustline `codec:"trustline" json:"trustline"` 1590 } 1591 1592 type ChangeTrustlineLimitLocalArg struct { 1593 SessionID int `codec:"sessionID" json:"sessionID"` 1594 AccountID AccountID `codec:"accountID" json:"accountID"` 1595 Trustline Trustline `codec:"trustline" json:"trustline"` 1596 Limit string `codec:"limit" json:"limit"` 1597 } 1598 1599 type GetTrustlinesLocalArg struct { 1600 SessionID int `codec:"sessionID" json:"sessionID"` 1601 AccountID AccountID `codec:"accountID" json:"accountID"` 1602 } 1603 1604 type GetTrustlinesForRecipientLocalArg struct { 1605 SessionID int `codec:"sessionID" json:"sessionID"` 1606 Recipient string `codec:"recipient" json:"recipient"` 1607 } 1608 1609 type FindPaymentPathLocalArg struct { 1610 From AccountID `codec:"from" json:"from"` 1611 To string `codec:"to" json:"to"` 1612 SourceAsset Asset `codec:"sourceAsset" json:"sourceAsset"` 1613 DestinationAsset Asset `codec:"destinationAsset" json:"destinationAsset"` 1614 Amount string `codec:"amount" json:"amount"` 1615 } 1616 1617 type AssetDepositLocalArg struct { 1618 AccountID AccountID `codec:"accountID" json:"accountID"` 1619 Asset Asset `codec:"asset" json:"asset"` 1620 } 1621 1622 type AssetWithdrawLocalArg struct { 1623 AccountID AccountID `codec:"accountID" json:"accountID"` 1624 Asset Asset `codec:"asset" json:"asset"` 1625 } 1626 1627 type BalancesLocalArg struct { 1628 AccountID AccountID `codec:"accountID" json:"accountID"` 1629 } 1630 1631 type SendCLILocalArg struct { 1632 Recipient string `codec:"recipient" json:"recipient"` 1633 Amount string `codec:"amount" json:"amount"` 1634 Asset Asset `codec:"asset" json:"asset"` 1635 Note string `codec:"note" json:"note"` 1636 DisplayAmount string `codec:"displayAmount" json:"displayAmount"` 1637 DisplayCurrency string `codec:"displayCurrency" json:"displayCurrency"` 1638 ForceRelay bool `codec:"forceRelay" json:"forceRelay"` 1639 PublicNote string `codec:"publicNote" json:"publicNote"` 1640 PublicNoteType PublicNoteType `codec:"publicNoteType" json:"publicNoteType"` 1641 FromAccountID AccountID `codec:"fromAccountID" json:"fromAccountID"` 1642 } 1643 1644 type SendPathCLILocalArg struct { 1645 Source AccountID `codec:"source" json:"source"` 1646 Recipient string `codec:"recipient" json:"recipient"` 1647 Path PaymentPath `codec:"path" json:"path"` 1648 Note string `codec:"note" json:"note"` 1649 PublicNote string `codec:"publicNote" json:"publicNote"` 1650 PublicNoteType PublicNoteType `codec:"publicNoteType" json:"publicNoteType"` 1651 } 1652 1653 type AccountMergeCLILocalArg struct { 1654 FromAccountID AccountID `codec:"fromAccountID" json:"fromAccountID"` 1655 FromSecretKey *SecretKey `codec:"fromSecretKey,omitempty" json:"fromSecretKey,omitempty"` 1656 To string `codec:"to" json:"to"` 1657 } 1658 1659 type ClaimCLILocalArg struct { 1660 TxID string `codec:"txID" json:"txID"` 1661 Into *AccountID `codec:"into,omitempty" json:"into,omitempty"` 1662 } 1663 1664 type RecentPaymentsCLILocalArg struct { 1665 AccountID *AccountID `codec:"accountID,omitempty" json:"accountID,omitempty"` 1666 } 1667 1668 type PaymentDetailCLILocalArg struct { 1669 TxID string `codec:"txID" json:"txID"` 1670 } 1671 1672 type WalletInitLocalArg struct { 1673 } 1674 1675 type WalletDumpLocalArg struct { 1676 } 1677 1678 type WalletGetAccountsCLILocalArg struct { 1679 } 1680 1681 type OwnAccountLocalArg struct { 1682 AccountID AccountID `codec:"accountID" json:"accountID"` 1683 } 1684 1685 type ImportSecretKeyLocalArg struct { 1686 SecretKey SecretKey `codec:"secretKey" json:"secretKey"` 1687 MakePrimary bool `codec:"makePrimary" json:"makePrimary"` 1688 Name string `codec:"name" json:"name"` 1689 } 1690 1691 type ExportSecretKeyLocalArg struct { 1692 AccountID AccountID `codec:"accountID" json:"accountID"` 1693 } 1694 1695 type SetDisplayCurrencyArg struct { 1696 AccountID AccountID `codec:"accountID" json:"accountID"` 1697 Currency string `codec:"currency" json:"currency"` 1698 } 1699 1700 type ExchangeRateLocalArg struct { 1701 Currency OutsideCurrencyCode `codec:"currency" json:"currency"` 1702 } 1703 1704 type GetAvailableLocalCurrenciesArg struct { 1705 } 1706 1707 type FormatLocalCurrencyStringArg struct { 1708 Amount string `codec:"amount" json:"amount"` 1709 Code OutsideCurrencyCode `codec:"code" json:"code"` 1710 } 1711 1712 type MakeRequestCLILocalArg struct { 1713 Recipient string `codec:"recipient" json:"recipient"` 1714 Asset *Asset `codec:"asset,omitempty" json:"asset,omitempty"` 1715 Currency *OutsideCurrencyCode `codec:"currency,omitempty" json:"currency,omitempty"` 1716 Amount string `codec:"amount" json:"amount"` 1717 Note string `codec:"note" json:"note"` 1718 } 1719 1720 type LookupCLILocalArg struct { 1721 Name string `codec:"name" json:"name"` 1722 } 1723 1724 type BatchLocalArg struct { 1725 BatchID string `codec:"batchID" json:"batchID"` 1726 TimeoutSecs int `codec:"timeoutSecs" json:"timeoutSecs"` 1727 Payments []BatchPaymentArg `codec:"payments" json:"payments"` 1728 UseMulti bool `codec:"useMulti" json:"useMulti"` 1729 } 1730 1731 type ValidateStellarURILocalArg struct { 1732 SessionID int `codec:"sessionID" json:"sessionID"` 1733 InputURI string `codec:"inputURI" json:"inputURI"` 1734 } 1735 1736 type ApproveTxURILocalArg struct { 1737 SessionID int `codec:"sessionID" json:"sessionID"` 1738 InputURI string `codec:"inputURI" json:"inputURI"` 1739 } 1740 1741 type ApprovePayURILocalArg struct { 1742 SessionID int `codec:"sessionID" json:"sessionID"` 1743 InputURI string `codec:"inputURI" json:"inputURI"` 1744 Amount string `codec:"amount" json:"amount"` 1745 FromCLI bool `codec:"fromCLI" json:"fromCLI"` 1746 } 1747 1748 type ApprovePathURILocalArg struct { 1749 SessionID int `codec:"sessionID" json:"sessionID"` 1750 InputURI string `codec:"inputURI" json:"inputURI"` 1751 FullPath PaymentPath `codec:"fullPath" json:"fullPath"` 1752 FromCLI bool `codec:"fromCLI" json:"fromCLI"` 1753 } 1754 1755 type GetPartnerUrlsLocalArg struct { 1756 SessionID int `codec:"sessionID" json:"sessionID"` 1757 } 1758 1759 type SignTransactionXdrLocalArg struct { 1760 EnvelopeXdr string `codec:"envelopeXdr" json:"envelopeXdr"` 1761 AccountID *AccountID `codec:"accountID,omitempty" json:"accountID,omitempty"` 1762 Submit bool `codec:"submit" json:"submit"` 1763 } 1764 1765 type GetStaticConfigLocalArg struct { 1766 } 1767 1768 type LocalInterface interface { 1769 GetWalletAccountsLocal(context.Context, int) ([]WalletAccountLocal, error) 1770 GetWalletAccountLocal(context.Context, GetWalletAccountLocalArg) (WalletAccountLocal, error) 1771 GetAccountAssetsLocal(context.Context, GetAccountAssetsLocalArg) ([]AccountAssetLocal, error) 1772 GetPaymentsLocal(context.Context, GetPaymentsLocalArg) (PaymentsPageLocal, error) 1773 GetPendingPaymentsLocal(context.Context, GetPendingPaymentsLocalArg) ([]PaymentOrErrorLocal, error) 1774 MarkAsReadLocal(context.Context, MarkAsReadLocalArg) error 1775 GetPaymentDetailsLocal(context.Context, GetPaymentDetailsLocalArg) (PaymentDetailsLocal, error) 1776 GetGenericPaymentDetailsLocal(context.Context, GetGenericPaymentDetailsLocalArg) (PaymentDetailsLocal, error) 1777 GetDisplayCurrenciesLocal(context.Context, int) ([]CurrencyLocal, error) 1778 ValidateAccountIDLocal(context.Context, ValidateAccountIDLocalArg) error 1779 ValidateSecretKeyLocal(context.Context, ValidateSecretKeyLocalArg) error 1780 ValidateAccountNameLocal(context.Context, ValidateAccountNameLocalArg) error 1781 ChangeWalletAccountNameLocal(context.Context, ChangeWalletAccountNameLocalArg) (WalletAccountLocal, error) 1782 SetWalletAccountAsDefaultLocal(context.Context, SetWalletAccountAsDefaultLocalArg) ([]WalletAccountLocal, error) 1783 DeleteWalletAccountLocal(context.Context, DeleteWalletAccountLocalArg) error 1784 LinkNewWalletAccountLocal(context.Context, LinkNewWalletAccountLocalArg) (AccountID, error) 1785 CreateWalletAccountLocal(context.Context, CreateWalletAccountLocalArg) (AccountID, error) 1786 ChangeDisplayCurrencyLocal(context.Context, ChangeDisplayCurrencyLocalArg) (CurrencyLocal, error) 1787 GetDisplayCurrencyLocal(context.Context, GetDisplayCurrencyLocalArg) (CurrencyLocal, error) 1788 HasAcceptedDisclaimerLocal(context.Context, int) (bool, error) 1789 AcceptDisclaimerLocal(context.Context, int) error 1790 GetWalletAccountPublicKeyLocal(context.Context, GetWalletAccountPublicKeyLocalArg) (string, error) 1791 GetWalletAccountSecretKeyLocal(context.Context, GetWalletAccountSecretKeyLocalArg) (SecretKey, error) 1792 GetSendAssetChoicesLocal(context.Context, GetSendAssetChoicesLocalArg) ([]SendAssetChoiceLocal, error) 1793 StartBuildPaymentLocal(context.Context, int) (BuildPaymentID, error) 1794 StopBuildPaymentLocal(context.Context, StopBuildPaymentLocalArg) error 1795 BuildPaymentLocal(context.Context, BuildPaymentLocalArg) (BuildPaymentResLocal, error) 1796 ReviewPaymentLocal(context.Context, ReviewPaymentLocalArg) error 1797 SendPaymentLocal(context.Context, SendPaymentLocalArg) (SendPaymentResLocal, error) 1798 SendPathLocal(context.Context, SendPathLocalArg) (SendPaymentResLocal, error) 1799 BuildRequestLocal(context.Context, BuildRequestLocalArg) (BuildRequestResLocal, error) 1800 GetRequestDetailsLocal(context.Context, GetRequestDetailsLocalArg) (RequestDetailsLocal, error) 1801 CancelRequestLocal(context.Context, CancelRequestLocalArg) error 1802 MakeRequestLocal(context.Context, MakeRequestLocalArg) (KeybaseRequestID, error) 1803 SetAccountMobileOnlyLocal(context.Context, SetAccountMobileOnlyLocalArg) error 1804 SetAccountAllDevicesLocal(context.Context, SetAccountAllDevicesLocalArg) error 1805 IsAccountMobileOnlyLocal(context.Context, IsAccountMobileOnlyLocalArg) (bool, error) 1806 CancelPaymentLocal(context.Context, CancelPaymentLocalArg) (RelayClaimResult, error) 1807 GetPredefinedInflationDestinationsLocal(context.Context, int) ([]PredefinedInflationDestination, error) 1808 SetInflationDestinationLocal(context.Context, SetInflationDestinationLocalArg) error 1809 GetInflationDestinationLocal(context.Context, GetInflationDestinationLocalArg) (InflationDestinationResultLocal, error) 1810 AirdropDetailsLocal(context.Context, int) (AirdropDetails, error) 1811 AirdropStatusLocal(context.Context, int) (AirdropStatus, error) 1812 AirdropRegisterLocal(context.Context, AirdropRegisterLocalArg) error 1813 FuzzyAssetSearchLocal(context.Context, FuzzyAssetSearchLocalArg) ([]Asset, error) 1814 ListPopularAssetsLocal(context.Context, int) (AssetListResult, error) 1815 AddTrustlineLocal(context.Context, AddTrustlineLocalArg) error 1816 DeleteTrustlineLocal(context.Context, DeleteTrustlineLocalArg) error 1817 ChangeTrustlineLimitLocal(context.Context, ChangeTrustlineLimitLocalArg) error 1818 GetTrustlinesLocal(context.Context, GetTrustlinesLocalArg) ([]Balance, error) 1819 GetTrustlinesForRecipientLocal(context.Context, GetTrustlinesForRecipientLocalArg) (RecipientTrustlinesLocal, error) 1820 FindPaymentPathLocal(context.Context, FindPaymentPathLocalArg) (PaymentPathLocal, error) 1821 AssetDepositLocal(context.Context, AssetDepositLocalArg) (AssetActionResultLocal, error) 1822 AssetWithdrawLocal(context.Context, AssetWithdrawLocalArg) (AssetActionResultLocal, error) 1823 BalancesLocal(context.Context, AccountID) ([]Balance, error) 1824 SendCLILocal(context.Context, SendCLILocalArg) (SendResultCLILocal, error) 1825 SendPathCLILocal(context.Context, SendPathCLILocalArg) (SendResultCLILocal, error) 1826 AccountMergeCLILocal(context.Context, AccountMergeCLILocalArg) (TransactionID, error) 1827 ClaimCLILocal(context.Context, ClaimCLILocalArg) (RelayClaimResult, error) 1828 RecentPaymentsCLILocal(context.Context, *AccountID) ([]PaymentOrErrorCLILocal, error) 1829 PaymentDetailCLILocal(context.Context, string) (PaymentCLILocal, error) 1830 WalletInitLocal(context.Context) error 1831 WalletDumpLocal(context.Context) (Bundle, error) 1832 WalletGetAccountsCLILocal(context.Context) ([]OwnAccountCLILocal, error) 1833 OwnAccountLocal(context.Context, AccountID) (bool, error) 1834 ImportSecretKeyLocal(context.Context, ImportSecretKeyLocalArg) error 1835 ExportSecretKeyLocal(context.Context, AccountID) (SecretKey, error) 1836 SetDisplayCurrency(context.Context, SetDisplayCurrencyArg) error 1837 ExchangeRateLocal(context.Context, OutsideCurrencyCode) (OutsideExchangeRate, error) 1838 GetAvailableLocalCurrencies(context.Context) (map[OutsideCurrencyCode]OutsideCurrencyDefinition, error) 1839 FormatLocalCurrencyString(context.Context, FormatLocalCurrencyStringArg) (string, error) 1840 MakeRequestCLILocal(context.Context, MakeRequestCLILocalArg) (KeybaseRequestID, error) 1841 LookupCLILocal(context.Context, string) (LookupResultCLILocal, error) 1842 BatchLocal(context.Context, BatchLocalArg) (BatchResultLocal, error) 1843 ValidateStellarURILocal(context.Context, ValidateStellarURILocalArg) (ValidateStellarURIResultLocal, error) 1844 ApproveTxURILocal(context.Context, ApproveTxURILocalArg) (TransactionID, error) 1845 ApprovePayURILocal(context.Context, ApprovePayURILocalArg) (TransactionID, error) 1846 ApprovePathURILocal(context.Context, ApprovePathURILocalArg) (TransactionID, error) 1847 GetPartnerUrlsLocal(context.Context, int) ([]PartnerUrl, error) 1848 SignTransactionXdrLocal(context.Context, SignTransactionXdrLocalArg) (SignXdrResult, error) 1849 GetStaticConfigLocal(context.Context) (StaticConfig, error) 1850 } 1851 1852 func LocalProtocol(i LocalInterface) rpc.Protocol { 1853 return rpc.Protocol{ 1854 Name: "stellar.1.local", 1855 Methods: map[string]rpc.ServeHandlerDescription{ 1856 "getWalletAccountsLocal": { 1857 MakeArg: func() interface{} { 1858 var ret [1]GetWalletAccountsLocalArg 1859 return &ret 1860 }, 1861 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1862 typedArgs, ok := args.(*[1]GetWalletAccountsLocalArg) 1863 if !ok { 1864 err = rpc.NewTypeError((*[1]GetWalletAccountsLocalArg)(nil), args) 1865 return 1866 } 1867 ret, err = i.GetWalletAccountsLocal(ctx, typedArgs[0].SessionID) 1868 return 1869 }, 1870 }, 1871 "getWalletAccountLocal": { 1872 MakeArg: func() interface{} { 1873 var ret [1]GetWalletAccountLocalArg 1874 return &ret 1875 }, 1876 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1877 typedArgs, ok := args.(*[1]GetWalletAccountLocalArg) 1878 if !ok { 1879 err = rpc.NewTypeError((*[1]GetWalletAccountLocalArg)(nil), args) 1880 return 1881 } 1882 ret, err = i.GetWalletAccountLocal(ctx, typedArgs[0]) 1883 return 1884 }, 1885 }, 1886 "getAccountAssetsLocal": { 1887 MakeArg: func() interface{} { 1888 var ret [1]GetAccountAssetsLocalArg 1889 return &ret 1890 }, 1891 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1892 typedArgs, ok := args.(*[1]GetAccountAssetsLocalArg) 1893 if !ok { 1894 err = rpc.NewTypeError((*[1]GetAccountAssetsLocalArg)(nil), args) 1895 return 1896 } 1897 ret, err = i.GetAccountAssetsLocal(ctx, typedArgs[0]) 1898 return 1899 }, 1900 }, 1901 "getPaymentsLocal": { 1902 MakeArg: func() interface{} { 1903 var ret [1]GetPaymentsLocalArg 1904 return &ret 1905 }, 1906 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1907 typedArgs, ok := args.(*[1]GetPaymentsLocalArg) 1908 if !ok { 1909 err = rpc.NewTypeError((*[1]GetPaymentsLocalArg)(nil), args) 1910 return 1911 } 1912 ret, err = i.GetPaymentsLocal(ctx, typedArgs[0]) 1913 return 1914 }, 1915 }, 1916 "getPendingPaymentsLocal": { 1917 MakeArg: func() interface{} { 1918 var ret [1]GetPendingPaymentsLocalArg 1919 return &ret 1920 }, 1921 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1922 typedArgs, ok := args.(*[1]GetPendingPaymentsLocalArg) 1923 if !ok { 1924 err = rpc.NewTypeError((*[1]GetPendingPaymentsLocalArg)(nil), args) 1925 return 1926 } 1927 ret, err = i.GetPendingPaymentsLocal(ctx, typedArgs[0]) 1928 return 1929 }, 1930 }, 1931 "markAsReadLocal": { 1932 MakeArg: func() interface{} { 1933 var ret [1]MarkAsReadLocalArg 1934 return &ret 1935 }, 1936 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1937 typedArgs, ok := args.(*[1]MarkAsReadLocalArg) 1938 if !ok { 1939 err = rpc.NewTypeError((*[1]MarkAsReadLocalArg)(nil), args) 1940 return 1941 } 1942 err = i.MarkAsReadLocal(ctx, typedArgs[0]) 1943 return 1944 }, 1945 }, 1946 "getPaymentDetailsLocal": { 1947 MakeArg: func() interface{} { 1948 var ret [1]GetPaymentDetailsLocalArg 1949 return &ret 1950 }, 1951 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1952 typedArgs, ok := args.(*[1]GetPaymentDetailsLocalArg) 1953 if !ok { 1954 err = rpc.NewTypeError((*[1]GetPaymentDetailsLocalArg)(nil), args) 1955 return 1956 } 1957 ret, err = i.GetPaymentDetailsLocal(ctx, typedArgs[0]) 1958 return 1959 }, 1960 }, 1961 "getGenericPaymentDetailsLocal": { 1962 MakeArg: func() interface{} { 1963 var ret [1]GetGenericPaymentDetailsLocalArg 1964 return &ret 1965 }, 1966 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1967 typedArgs, ok := args.(*[1]GetGenericPaymentDetailsLocalArg) 1968 if !ok { 1969 err = rpc.NewTypeError((*[1]GetGenericPaymentDetailsLocalArg)(nil), args) 1970 return 1971 } 1972 ret, err = i.GetGenericPaymentDetailsLocal(ctx, typedArgs[0]) 1973 return 1974 }, 1975 }, 1976 "getDisplayCurrenciesLocal": { 1977 MakeArg: func() interface{} { 1978 var ret [1]GetDisplayCurrenciesLocalArg 1979 return &ret 1980 }, 1981 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1982 typedArgs, ok := args.(*[1]GetDisplayCurrenciesLocalArg) 1983 if !ok { 1984 err = rpc.NewTypeError((*[1]GetDisplayCurrenciesLocalArg)(nil), args) 1985 return 1986 } 1987 ret, err = i.GetDisplayCurrenciesLocal(ctx, typedArgs[0].SessionID) 1988 return 1989 }, 1990 }, 1991 "validateAccountIDLocal": { 1992 MakeArg: func() interface{} { 1993 var ret [1]ValidateAccountIDLocalArg 1994 return &ret 1995 }, 1996 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 1997 typedArgs, ok := args.(*[1]ValidateAccountIDLocalArg) 1998 if !ok { 1999 err = rpc.NewTypeError((*[1]ValidateAccountIDLocalArg)(nil), args) 2000 return 2001 } 2002 err = i.ValidateAccountIDLocal(ctx, typedArgs[0]) 2003 return 2004 }, 2005 }, 2006 "validateSecretKeyLocal": { 2007 MakeArg: func() interface{} { 2008 var ret [1]ValidateSecretKeyLocalArg 2009 return &ret 2010 }, 2011 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2012 typedArgs, ok := args.(*[1]ValidateSecretKeyLocalArg) 2013 if !ok { 2014 err = rpc.NewTypeError((*[1]ValidateSecretKeyLocalArg)(nil), args) 2015 return 2016 } 2017 err = i.ValidateSecretKeyLocal(ctx, typedArgs[0]) 2018 return 2019 }, 2020 }, 2021 "validateAccountNameLocal": { 2022 MakeArg: func() interface{} { 2023 var ret [1]ValidateAccountNameLocalArg 2024 return &ret 2025 }, 2026 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2027 typedArgs, ok := args.(*[1]ValidateAccountNameLocalArg) 2028 if !ok { 2029 err = rpc.NewTypeError((*[1]ValidateAccountNameLocalArg)(nil), args) 2030 return 2031 } 2032 err = i.ValidateAccountNameLocal(ctx, typedArgs[0]) 2033 return 2034 }, 2035 }, 2036 "changeWalletAccountNameLocal": { 2037 MakeArg: func() interface{} { 2038 var ret [1]ChangeWalletAccountNameLocalArg 2039 return &ret 2040 }, 2041 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2042 typedArgs, ok := args.(*[1]ChangeWalletAccountNameLocalArg) 2043 if !ok { 2044 err = rpc.NewTypeError((*[1]ChangeWalletAccountNameLocalArg)(nil), args) 2045 return 2046 } 2047 ret, err = i.ChangeWalletAccountNameLocal(ctx, typedArgs[0]) 2048 return 2049 }, 2050 }, 2051 "setWalletAccountAsDefaultLocal": { 2052 MakeArg: func() interface{} { 2053 var ret [1]SetWalletAccountAsDefaultLocalArg 2054 return &ret 2055 }, 2056 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2057 typedArgs, ok := args.(*[1]SetWalletAccountAsDefaultLocalArg) 2058 if !ok { 2059 err = rpc.NewTypeError((*[1]SetWalletAccountAsDefaultLocalArg)(nil), args) 2060 return 2061 } 2062 ret, err = i.SetWalletAccountAsDefaultLocal(ctx, typedArgs[0]) 2063 return 2064 }, 2065 }, 2066 "deleteWalletAccountLocal": { 2067 MakeArg: func() interface{} { 2068 var ret [1]DeleteWalletAccountLocalArg 2069 return &ret 2070 }, 2071 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2072 typedArgs, ok := args.(*[1]DeleteWalletAccountLocalArg) 2073 if !ok { 2074 err = rpc.NewTypeError((*[1]DeleteWalletAccountLocalArg)(nil), args) 2075 return 2076 } 2077 err = i.DeleteWalletAccountLocal(ctx, typedArgs[0]) 2078 return 2079 }, 2080 }, 2081 "linkNewWalletAccountLocal": { 2082 MakeArg: func() interface{} { 2083 var ret [1]LinkNewWalletAccountLocalArg 2084 return &ret 2085 }, 2086 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2087 typedArgs, ok := args.(*[1]LinkNewWalletAccountLocalArg) 2088 if !ok { 2089 err = rpc.NewTypeError((*[1]LinkNewWalletAccountLocalArg)(nil), args) 2090 return 2091 } 2092 ret, err = i.LinkNewWalletAccountLocal(ctx, typedArgs[0]) 2093 return 2094 }, 2095 }, 2096 "createWalletAccountLocal": { 2097 MakeArg: func() interface{} { 2098 var ret [1]CreateWalletAccountLocalArg 2099 return &ret 2100 }, 2101 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2102 typedArgs, ok := args.(*[1]CreateWalletAccountLocalArg) 2103 if !ok { 2104 err = rpc.NewTypeError((*[1]CreateWalletAccountLocalArg)(nil), args) 2105 return 2106 } 2107 ret, err = i.CreateWalletAccountLocal(ctx, typedArgs[0]) 2108 return 2109 }, 2110 }, 2111 "changeDisplayCurrencyLocal": { 2112 MakeArg: func() interface{} { 2113 var ret [1]ChangeDisplayCurrencyLocalArg 2114 return &ret 2115 }, 2116 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2117 typedArgs, ok := args.(*[1]ChangeDisplayCurrencyLocalArg) 2118 if !ok { 2119 err = rpc.NewTypeError((*[1]ChangeDisplayCurrencyLocalArg)(nil), args) 2120 return 2121 } 2122 ret, err = i.ChangeDisplayCurrencyLocal(ctx, typedArgs[0]) 2123 return 2124 }, 2125 }, 2126 "getDisplayCurrencyLocal": { 2127 MakeArg: func() interface{} { 2128 var ret [1]GetDisplayCurrencyLocalArg 2129 return &ret 2130 }, 2131 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2132 typedArgs, ok := args.(*[1]GetDisplayCurrencyLocalArg) 2133 if !ok { 2134 err = rpc.NewTypeError((*[1]GetDisplayCurrencyLocalArg)(nil), args) 2135 return 2136 } 2137 ret, err = i.GetDisplayCurrencyLocal(ctx, typedArgs[0]) 2138 return 2139 }, 2140 }, 2141 "hasAcceptedDisclaimerLocal": { 2142 MakeArg: func() interface{} { 2143 var ret [1]HasAcceptedDisclaimerLocalArg 2144 return &ret 2145 }, 2146 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2147 typedArgs, ok := args.(*[1]HasAcceptedDisclaimerLocalArg) 2148 if !ok { 2149 err = rpc.NewTypeError((*[1]HasAcceptedDisclaimerLocalArg)(nil), args) 2150 return 2151 } 2152 ret, err = i.HasAcceptedDisclaimerLocal(ctx, typedArgs[0].SessionID) 2153 return 2154 }, 2155 }, 2156 "acceptDisclaimerLocal": { 2157 MakeArg: func() interface{} { 2158 var ret [1]AcceptDisclaimerLocalArg 2159 return &ret 2160 }, 2161 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2162 typedArgs, ok := args.(*[1]AcceptDisclaimerLocalArg) 2163 if !ok { 2164 err = rpc.NewTypeError((*[1]AcceptDisclaimerLocalArg)(nil), args) 2165 return 2166 } 2167 err = i.AcceptDisclaimerLocal(ctx, typedArgs[0].SessionID) 2168 return 2169 }, 2170 }, 2171 "getWalletAccountPublicKeyLocal": { 2172 MakeArg: func() interface{} { 2173 var ret [1]GetWalletAccountPublicKeyLocalArg 2174 return &ret 2175 }, 2176 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2177 typedArgs, ok := args.(*[1]GetWalletAccountPublicKeyLocalArg) 2178 if !ok { 2179 err = rpc.NewTypeError((*[1]GetWalletAccountPublicKeyLocalArg)(nil), args) 2180 return 2181 } 2182 ret, err = i.GetWalletAccountPublicKeyLocal(ctx, typedArgs[0]) 2183 return 2184 }, 2185 }, 2186 "getWalletAccountSecretKeyLocal": { 2187 MakeArg: func() interface{} { 2188 var ret [1]GetWalletAccountSecretKeyLocalArg 2189 return &ret 2190 }, 2191 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2192 typedArgs, ok := args.(*[1]GetWalletAccountSecretKeyLocalArg) 2193 if !ok { 2194 err = rpc.NewTypeError((*[1]GetWalletAccountSecretKeyLocalArg)(nil), args) 2195 return 2196 } 2197 ret, err = i.GetWalletAccountSecretKeyLocal(ctx, typedArgs[0]) 2198 return 2199 }, 2200 }, 2201 "getSendAssetChoicesLocal": { 2202 MakeArg: func() interface{} { 2203 var ret [1]GetSendAssetChoicesLocalArg 2204 return &ret 2205 }, 2206 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2207 typedArgs, ok := args.(*[1]GetSendAssetChoicesLocalArg) 2208 if !ok { 2209 err = rpc.NewTypeError((*[1]GetSendAssetChoicesLocalArg)(nil), args) 2210 return 2211 } 2212 ret, err = i.GetSendAssetChoicesLocal(ctx, typedArgs[0]) 2213 return 2214 }, 2215 }, 2216 "startBuildPaymentLocal": { 2217 MakeArg: func() interface{} { 2218 var ret [1]StartBuildPaymentLocalArg 2219 return &ret 2220 }, 2221 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2222 typedArgs, ok := args.(*[1]StartBuildPaymentLocalArg) 2223 if !ok { 2224 err = rpc.NewTypeError((*[1]StartBuildPaymentLocalArg)(nil), args) 2225 return 2226 } 2227 ret, err = i.StartBuildPaymentLocal(ctx, typedArgs[0].SessionID) 2228 return 2229 }, 2230 }, 2231 "stopBuildPaymentLocal": { 2232 MakeArg: func() interface{} { 2233 var ret [1]StopBuildPaymentLocalArg 2234 return &ret 2235 }, 2236 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2237 typedArgs, ok := args.(*[1]StopBuildPaymentLocalArg) 2238 if !ok { 2239 err = rpc.NewTypeError((*[1]StopBuildPaymentLocalArg)(nil), args) 2240 return 2241 } 2242 err = i.StopBuildPaymentLocal(ctx, typedArgs[0]) 2243 return 2244 }, 2245 }, 2246 "buildPaymentLocal": { 2247 MakeArg: func() interface{} { 2248 var ret [1]BuildPaymentLocalArg 2249 return &ret 2250 }, 2251 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2252 typedArgs, ok := args.(*[1]BuildPaymentLocalArg) 2253 if !ok { 2254 err = rpc.NewTypeError((*[1]BuildPaymentLocalArg)(nil), args) 2255 return 2256 } 2257 ret, err = i.BuildPaymentLocal(ctx, typedArgs[0]) 2258 return 2259 }, 2260 }, 2261 "reviewPaymentLocal": { 2262 MakeArg: func() interface{} { 2263 var ret [1]ReviewPaymentLocalArg 2264 return &ret 2265 }, 2266 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2267 typedArgs, ok := args.(*[1]ReviewPaymentLocalArg) 2268 if !ok { 2269 err = rpc.NewTypeError((*[1]ReviewPaymentLocalArg)(nil), args) 2270 return 2271 } 2272 err = i.ReviewPaymentLocal(ctx, typedArgs[0]) 2273 return 2274 }, 2275 }, 2276 "sendPaymentLocal": { 2277 MakeArg: func() interface{} { 2278 var ret [1]SendPaymentLocalArg 2279 return &ret 2280 }, 2281 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2282 typedArgs, ok := args.(*[1]SendPaymentLocalArg) 2283 if !ok { 2284 err = rpc.NewTypeError((*[1]SendPaymentLocalArg)(nil), args) 2285 return 2286 } 2287 ret, err = i.SendPaymentLocal(ctx, typedArgs[0]) 2288 return 2289 }, 2290 }, 2291 "sendPathLocal": { 2292 MakeArg: func() interface{} { 2293 var ret [1]SendPathLocalArg 2294 return &ret 2295 }, 2296 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2297 typedArgs, ok := args.(*[1]SendPathLocalArg) 2298 if !ok { 2299 err = rpc.NewTypeError((*[1]SendPathLocalArg)(nil), args) 2300 return 2301 } 2302 ret, err = i.SendPathLocal(ctx, typedArgs[0]) 2303 return 2304 }, 2305 }, 2306 "buildRequestLocal": { 2307 MakeArg: func() interface{} { 2308 var ret [1]BuildRequestLocalArg 2309 return &ret 2310 }, 2311 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2312 typedArgs, ok := args.(*[1]BuildRequestLocalArg) 2313 if !ok { 2314 err = rpc.NewTypeError((*[1]BuildRequestLocalArg)(nil), args) 2315 return 2316 } 2317 ret, err = i.BuildRequestLocal(ctx, typedArgs[0]) 2318 return 2319 }, 2320 }, 2321 "getRequestDetailsLocal": { 2322 MakeArg: func() interface{} { 2323 var ret [1]GetRequestDetailsLocalArg 2324 return &ret 2325 }, 2326 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2327 typedArgs, ok := args.(*[1]GetRequestDetailsLocalArg) 2328 if !ok { 2329 err = rpc.NewTypeError((*[1]GetRequestDetailsLocalArg)(nil), args) 2330 return 2331 } 2332 ret, err = i.GetRequestDetailsLocal(ctx, typedArgs[0]) 2333 return 2334 }, 2335 }, 2336 "cancelRequestLocal": { 2337 MakeArg: func() interface{} { 2338 var ret [1]CancelRequestLocalArg 2339 return &ret 2340 }, 2341 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2342 typedArgs, ok := args.(*[1]CancelRequestLocalArg) 2343 if !ok { 2344 err = rpc.NewTypeError((*[1]CancelRequestLocalArg)(nil), args) 2345 return 2346 } 2347 err = i.CancelRequestLocal(ctx, typedArgs[0]) 2348 return 2349 }, 2350 }, 2351 "makeRequestLocal": { 2352 MakeArg: func() interface{} { 2353 var ret [1]MakeRequestLocalArg 2354 return &ret 2355 }, 2356 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2357 typedArgs, ok := args.(*[1]MakeRequestLocalArg) 2358 if !ok { 2359 err = rpc.NewTypeError((*[1]MakeRequestLocalArg)(nil), args) 2360 return 2361 } 2362 ret, err = i.MakeRequestLocal(ctx, typedArgs[0]) 2363 return 2364 }, 2365 }, 2366 "setAccountMobileOnlyLocal": { 2367 MakeArg: func() interface{} { 2368 var ret [1]SetAccountMobileOnlyLocalArg 2369 return &ret 2370 }, 2371 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2372 typedArgs, ok := args.(*[1]SetAccountMobileOnlyLocalArg) 2373 if !ok { 2374 err = rpc.NewTypeError((*[1]SetAccountMobileOnlyLocalArg)(nil), args) 2375 return 2376 } 2377 err = i.SetAccountMobileOnlyLocal(ctx, typedArgs[0]) 2378 return 2379 }, 2380 }, 2381 "setAccountAllDevicesLocal": { 2382 MakeArg: func() interface{} { 2383 var ret [1]SetAccountAllDevicesLocalArg 2384 return &ret 2385 }, 2386 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2387 typedArgs, ok := args.(*[1]SetAccountAllDevicesLocalArg) 2388 if !ok { 2389 err = rpc.NewTypeError((*[1]SetAccountAllDevicesLocalArg)(nil), args) 2390 return 2391 } 2392 err = i.SetAccountAllDevicesLocal(ctx, typedArgs[0]) 2393 return 2394 }, 2395 }, 2396 "isAccountMobileOnlyLocal": { 2397 MakeArg: func() interface{} { 2398 var ret [1]IsAccountMobileOnlyLocalArg 2399 return &ret 2400 }, 2401 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2402 typedArgs, ok := args.(*[1]IsAccountMobileOnlyLocalArg) 2403 if !ok { 2404 err = rpc.NewTypeError((*[1]IsAccountMobileOnlyLocalArg)(nil), args) 2405 return 2406 } 2407 ret, err = i.IsAccountMobileOnlyLocal(ctx, typedArgs[0]) 2408 return 2409 }, 2410 }, 2411 "cancelPaymentLocal": { 2412 MakeArg: func() interface{} { 2413 var ret [1]CancelPaymentLocalArg 2414 return &ret 2415 }, 2416 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2417 typedArgs, ok := args.(*[1]CancelPaymentLocalArg) 2418 if !ok { 2419 err = rpc.NewTypeError((*[1]CancelPaymentLocalArg)(nil), args) 2420 return 2421 } 2422 ret, err = i.CancelPaymentLocal(ctx, typedArgs[0]) 2423 return 2424 }, 2425 }, 2426 "getPredefinedInflationDestinationsLocal": { 2427 MakeArg: func() interface{} { 2428 var ret [1]GetPredefinedInflationDestinationsLocalArg 2429 return &ret 2430 }, 2431 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2432 typedArgs, ok := args.(*[1]GetPredefinedInflationDestinationsLocalArg) 2433 if !ok { 2434 err = rpc.NewTypeError((*[1]GetPredefinedInflationDestinationsLocalArg)(nil), args) 2435 return 2436 } 2437 ret, err = i.GetPredefinedInflationDestinationsLocal(ctx, typedArgs[0].SessionID) 2438 return 2439 }, 2440 }, 2441 "setInflationDestinationLocal": { 2442 MakeArg: func() interface{} { 2443 var ret [1]SetInflationDestinationLocalArg 2444 return &ret 2445 }, 2446 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2447 typedArgs, ok := args.(*[1]SetInflationDestinationLocalArg) 2448 if !ok { 2449 err = rpc.NewTypeError((*[1]SetInflationDestinationLocalArg)(nil), args) 2450 return 2451 } 2452 err = i.SetInflationDestinationLocal(ctx, typedArgs[0]) 2453 return 2454 }, 2455 }, 2456 "getInflationDestinationLocal": { 2457 MakeArg: func() interface{} { 2458 var ret [1]GetInflationDestinationLocalArg 2459 return &ret 2460 }, 2461 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2462 typedArgs, ok := args.(*[1]GetInflationDestinationLocalArg) 2463 if !ok { 2464 err = rpc.NewTypeError((*[1]GetInflationDestinationLocalArg)(nil), args) 2465 return 2466 } 2467 ret, err = i.GetInflationDestinationLocal(ctx, typedArgs[0]) 2468 return 2469 }, 2470 }, 2471 "airdropDetailsLocal": { 2472 MakeArg: func() interface{} { 2473 var ret [1]AirdropDetailsLocalArg 2474 return &ret 2475 }, 2476 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2477 typedArgs, ok := args.(*[1]AirdropDetailsLocalArg) 2478 if !ok { 2479 err = rpc.NewTypeError((*[1]AirdropDetailsLocalArg)(nil), args) 2480 return 2481 } 2482 ret, err = i.AirdropDetailsLocal(ctx, typedArgs[0].SessionID) 2483 return 2484 }, 2485 }, 2486 "airdropStatusLocal": { 2487 MakeArg: func() interface{} { 2488 var ret [1]AirdropStatusLocalArg 2489 return &ret 2490 }, 2491 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2492 typedArgs, ok := args.(*[1]AirdropStatusLocalArg) 2493 if !ok { 2494 err = rpc.NewTypeError((*[1]AirdropStatusLocalArg)(nil), args) 2495 return 2496 } 2497 ret, err = i.AirdropStatusLocal(ctx, typedArgs[0].SessionID) 2498 return 2499 }, 2500 }, 2501 "airdropRegisterLocal": { 2502 MakeArg: func() interface{} { 2503 var ret [1]AirdropRegisterLocalArg 2504 return &ret 2505 }, 2506 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2507 typedArgs, ok := args.(*[1]AirdropRegisterLocalArg) 2508 if !ok { 2509 err = rpc.NewTypeError((*[1]AirdropRegisterLocalArg)(nil), args) 2510 return 2511 } 2512 err = i.AirdropRegisterLocal(ctx, typedArgs[0]) 2513 return 2514 }, 2515 }, 2516 "fuzzyAssetSearchLocal": { 2517 MakeArg: func() interface{} { 2518 var ret [1]FuzzyAssetSearchLocalArg 2519 return &ret 2520 }, 2521 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2522 typedArgs, ok := args.(*[1]FuzzyAssetSearchLocalArg) 2523 if !ok { 2524 err = rpc.NewTypeError((*[1]FuzzyAssetSearchLocalArg)(nil), args) 2525 return 2526 } 2527 ret, err = i.FuzzyAssetSearchLocal(ctx, typedArgs[0]) 2528 return 2529 }, 2530 }, 2531 "listPopularAssetsLocal": { 2532 MakeArg: func() interface{} { 2533 var ret [1]ListPopularAssetsLocalArg 2534 return &ret 2535 }, 2536 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2537 typedArgs, ok := args.(*[1]ListPopularAssetsLocalArg) 2538 if !ok { 2539 err = rpc.NewTypeError((*[1]ListPopularAssetsLocalArg)(nil), args) 2540 return 2541 } 2542 ret, err = i.ListPopularAssetsLocal(ctx, typedArgs[0].SessionID) 2543 return 2544 }, 2545 }, 2546 "addTrustlineLocal": { 2547 MakeArg: func() interface{} { 2548 var ret [1]AddTrustlineLocalArg 2549 return &ret 2550 }, 2551 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2552 typedArgs, ok := args.(*[1]AddTrustlineLocalArg) 2553 if !ok { 2554 err = rpc.NewTypeError((*[1]AddTrustlineLocalArg)(nil), args) 2555 return 2556 } 2557 err = i.AddTrustlineLocal(ctx, typedArgs[0]) 2558 return 2559 }, 2560 }, 2561 "deleteTrustlineLocal": { 2562 MakeArg: func() interface{} { 2563 var ret [1]DeleteTrustlineLocalArg 2564 return &ret 2565 }, 2566 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2567 typedArgs, ok := args.(*[1]DeleteTrustlineLocalArg) 2568 if !ok { 2569 err = rpc.NewTypeError((*[1]DeleteTrustlineLocalArg)(nil), args) 2570 return 2571 } 2572 err = i.DeleteTrustlineLocal(ctx, typedArgs[0]) 2573 return 2574 }, 2575 }, 2576 "changeTrustlineLimitLocal": { 2577 MakeArg: func() interface{} { 2578 var ret [1]ChangeTrustlineLimitLocalArg 2579 return &ret 2580 }, 2581 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2582 typedArgs, ok := args.(*[1]ChangeTrustlineLimitLocalArg) 2583 if !ok { 2584 err = rpc.NewTypeError((*[1]ChangeTrustlineLimitLocalArg)(nil), args) 2585 return 2586 } 2587 err = i.ChangeTrustlineLimitLocal(ctx, typedArgs[0]) 2588 return 2589 }, 2590 }, 2591 "getTrustlinesLocal": { 2592 MakeArg: func() interface{} { 2593 var ret [1]GetTrustlinesLocalArg 2594 return &ret 2595 }, 2596 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2597 typedArgs, ok := args.(*[1]GetTrustlinesLocalArg) 2598 if !ok { 2599 err = rpc.NewTypeError((*[1]GetTrustlinesLocalArg)(nil), args) 2600 return 2601 } 2602 ret, err = i.GetTrustlinesLocal(ctx, typedArgs[0]) 2603 return 2604 }, 2605 }, 2606 "getTrustlinesForRecipientLocal": { 2607 MakeArg: func() interface{} { 2608 var ret [1]GetTrustlinesForRecipientLocalArg 2609 return &ret 2610 }, 2611 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2612 typedArgs, ok := args.(*[1]GetTrustlinesForRecipientLocalArg) 2613 if !ok { 2614 err = rpc.NewTypeError((*[1]GetTrustlinesForRecipientLocalArg)(nil), args) 2615 return 2616 } 2617 ret, err = i.GetTrustlinesForRecipientLocal(ctx, typedArgs[0]) 2618 return 2619 }, 2620 }, 2621 "findPaymentPathLocal": { 2622 MakeArg: func() interface{} { 2623 var ret [1]FindPaymentPathLocalArg 2624 return &ret 2625 }, 2626 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2627 typedArgs, ok := args.(*[1]FindPaymentPathLocalArg) 2628 if !ok { 2629 err = rpc.NewTypeError((*[1]FindPaymentPathLocalArg)(nil), args) 2630 return 2631 } 2632 ret, err = i.FindPaymentPathLocal(ctx, typedArgs[0]) 2633 return 2634 }, 2635 }, 2636 "assetDepositLocal": { 2637 MakeArg: func() interface{} { 2638 var ret [1]AssetDepositLocalArg 2639 return &ret 2640 }, 2641 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2642 typedArgs, ok := args.(*[1]AssetDepositLocalArg) 2643 if !ok { 2644 err = rpc.NewTypeError((*[1]AssetDepositLocalArg)(nil), args) 2645 return 2646 } 2647 ret, err = i.AssetDepositLocal(ctx, typedArgs[0]) 2648 return 2649 }, 2650 }, 2651 "assetWithdrawLocal": { 2652 MakeArg: func() interface{} { 2653 var ret [1]AssetWithdrawLocalArg 2654 return &ret 2655 }, 2656 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2657 typedArgs, ok := args.(*[1]AssetWithdrawLocalArg) 2658 if !ok { 2659 err = rpc.NewTypeError((*[1]AssetWithdrawLocalArg)(nil), args) 2660 return 2661 } 2662 ret, err = i.AssetWithdrawLocal(ctx, typedArgs[0]) 2663 return 2664 }, 2665 }, 2666 "balancesLocal": { 2667 MakeArg: func() interface{} { 2668 var ret [1]BalancesLocalArg 2669 return &ret 2670 }, 2671 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2672 typedArgs, ok := args.(*[1]BalancesLocalArg) 2673 if !ok { 2674 err = rpc.NewTypeError((*[1]BalancesLocalArg)(nil), args) 2675 return 2676 } 2677 ret, err = i.BalancesLocal(ctx, typedArgs[0].AccountID) 2678 return 2679 }, 2680 }, 2681 "sendCLILocal": { 2682 MakeArg: func() interface{} { 2683 var ret [1]SendCLILocalArg 2684 return &ret 2685 }, 2686 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2687 typedArgs, ok := args.(*[1]SendCLILocalArg) 2688 if !ok { 2689 err = rpc.NewTypeError((*[1]SendCLILocalArg)(nil), args) 2690 return 2691 } 2692 ret, err = i.SendCLILocal(ctx, typedArgs[0]) 2693 return 2694 }, 2695 }, 2696 "sendPathCLILocal": { 2697 MakeArg: func() interface{} { 2698 var ret [1]SendPathCLILocalArg 2699 return &ret 2700 }, 2701 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2702 typedArgs, ok := args.(*[1]SendPathCLILocalArg) 2703 if !ok { 2704 err = rpc.NewTypeError((*[1]SendPathCLILocalArg)(nil), args) 2705 return 2706 } 2707 ret, err = i.SendPathCLILocal(ctx, typedArgs[0]) 2708 return 2709 }, 2710 }, 2711 "accountMergeCLILocal": { 2712 MakeArg: func() interface{} { 2713 var ret [1]AccountMergeCLILocalArg 2714 return &ret 2715 }, 2716 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2717 typedArgs, ok := args.(*[1]AccountMergeCLILocalArg) 2718 if !ok { 2719 err = rpc.NewTypeError((*[1]AccountMergeCLILocalArg)(nil), args) 2720 return 2721 } 2722 ret, err = i.AccountMergeCLILocal(ctx, typedArgs[0]) 2723 return 2724 }, 2725 }, 2726 "claimCLILocal": { 2727 MakeArg: func() interface{} { 2728 var ret [1]ClaimCLILocalArg 2729 return &ret 2730 }, 2731 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2732 typedArgs, ok := args.(*[1]ClaimCLILocalArg) 2733 if !ok { 2734 err = rpc.NewTypeError((*[1]ClaimCLILocalArg)(nil), args) 2735 return 2736 } 2737 ret, err = i.ClaimCLILocal(ctx, typedArgs[0]) 2738 return 2739 }, 2740 }, 2741 "recentPaymentsCLILocal": { 2742 MakeArg: func() interface{} { 2743 var ret [1]RecentPaymentsCLILocalArg 2744 return &ret 2745 }, 2746 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2747 typedArgs, ok := args.(*[1]RecentPaymentsCLILocalArg) 2748 if !ok { 2749 err = rpc.NewTypeError((*[1]RecentPaymentsCLILocalArg)(nil), args) 2750 return 2751 } 2752 ret, err = i.RecentPaymentsCLILocal(ctx, typedArgs[0].AccountID) 2753 return 2754 }, 2755 }, 2756 "paymentDetailCLILocal": { 2757 MakeArg: func() interface{} { 2758 var ret [1]PaymentDetailCLILocalArg 2759 return &ret 2760 }, 2761 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2762 typedArgs, ok := args.(*[1]PaymentDetailCLILocalArg) 2763 if !ok { 2764 err = rpc.NewTypeError((*[1]PaymentDetailCLILocalArg)(nil), args) 2765 return 2766 } 2767 ret, err = i.PaymentDetailCLILocal(ctx, typedArgs[0].TxID) 2768 return 2769 }, 2770 }, 2771 "walletInitLocal": { 2772 MakeArg: func() interface{} { 2773 var ret [1]WalletInitLocalArg 2774 return &ret 2775 }, 2776 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2777 err = i.WalletInitLocal(ctx) 2778 return 2779 }, 2780 }, 2781 "walletDumpLocal": { 2782 MakeArg: func() interface{} { 2783 var ret [1]WalletDumpLocalArg 2784 return &ret 2785 }, 2786 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2787 ret, err = i.WalletDumpLocal(ctx) 2788 return 2789 }, 2790 }, 2791 "walletGetAccountsCLILocal": { 2792 MakeArg: func() interface{} { 2793 var ret [1]WalletGetAccountsCLILocalArg 2794 return &ret 2795 }, 2796 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2797 ret, err = i.WalletGetAccountsCLILocal(ctx) 2798 return 2799 }, 2800 }, 2801 "ownAccountLocal": { 2802 MakeArg: func() interface{} { 2803 var ret [1]OwnAccountLocalArg 2804 return &ret 2805 }, 2806 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2807 typedArgs, ok := args.(*[1]OwnAccountLocalArg) 2808 if !ok { 2809 err = rpc.NewTypeError((*[1]OwnAccountLocalArg)(nil), args) 2810 return 2811 } 2812 ret, err = i.OwnAccountLocal(ctx, typedArgs[0].AccountID) 2813 return 2814 }, 2815 }, 2816 "importSecretKeyLocal": { 2817 MakeArg: func() interface{} { 2818 var ret [1]ImportSecretKeyLocalArg 2819 return &ret 2820 }, 2821 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2822 typedArgs, ok := args.(*[1]ImportSecretKeyLocalArg) 2823 if !ok { 2824 err = rpc.NewTypeError((*[1]ImportSecretKeyLocalArg)(nil), args) 2825 return 2826 } 2827 err = i.ImportSecretKeyLocal(ctx, typedArgs[0]) 2828 return 2829 }, 2830 }, 2831 "exportSecretKeyLocal": { 2832 MakeArg: func() interface{} { 2833 var ret [1]ExportSecretKeyLocalArg 2834 return &ret 2835 }, 2836 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2837 typedArgs, ok := args.(*[1]ExportSecretKeyLocalArg) 2838 if !ok { 2839 err = rpc.NewTypeError((*[1]ExportSecretKeyLocalArg)(nil), args) 2840 return 2841 } 2842 ret, err = i.ExportSecretKeyLocal(ctx, typedArgs[0].AccountID) 2843 return 2844 }, 2845 }, 2846 "setDisplayCurrency": { 2847 MakeArg: func() interface{} { 2848 var ret [1]SetDisplayCurrencyArg 2849 return &ret 2850 }, 2851 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2852 typedArgs, ok := args.(*[1]SetDisplayCurrencyArg) 2853 if !ok { 2854 err = rpc.NewTypeError((*[1]SetDisplayCurrencyArg)(nil), args) 2855 return 2856 } 2857 err = i.SetDisplayCurrency(ctx, typedArgs[0]) 2858 return 2859 }, 2860 }, 2861 "exchangeRateLocal": { 2862 MakeArg: func() interface{} { 2863 var ret [1]ExchangeRateLocalArg 2864 return &ret 2865 }, 2866 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2867 typedArgs, ok := args.(*[1]ExchangeRateLocalArg) 2868 if !ok { 2869 err = rpc.NewTypeError((*[1]ExchangeRateLocalArg)(nil), args) 2870 return 2871 } 2872 ret, err = i.ExchangeRateLocal(ctx, typedArgs[0].Currency) 2873 return 2874 }, 2875 }, 2876 "getAvailableLocalCurrencies": { 2877 MakeArg: func() interface{} { 2878 var ret [1]GetAvailableLocalCurrenciesArg 2879 return &ret 2880 }, 2881 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2882 ret, err = i.GetAvailableLocalCurrencies(ctx) 2883 return 2884 }, 2885 }, 2886 "formatLocalCurrencyString": { 2887 MakeArg: func() interface{} { 2888 var ret [1]FormatLocalCurrencyStringArg 2889 return &ret 2890 }, 2891 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2892 typedArgs, ok := args.(*[1]FormatLocalCurrencyStringArg) 2893 if !ok { 2894 err = rpc.NewTypeError((*[1]FormatLocalCurrencyStringArg)(nil), args) 2895 return 2896 } 2897 ret, err = i.FormatLocalCurrencyString(ctx, typedArgs[0]) 2898 return 2899 }, 2900 }, 2901 "makeRequestCLILocal": { 2902 MakeArg: func() interface{} { 2903 var ret [1]MakeRequestCLILocalArg 2904 return &ret 2905 }, 2906 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2907 typedArgs, ok := args.(*[1]MakeRequestCLILocalArg) 2908 if !ok { 2909 err = rpc.NewTypeError((*[1]MakeRequestCLILocalArg)(nil), args) 2910 return 2911 } 2912 ret, err = i.MakeRequestCLILocal(ctx, typedArgs[0]) 2913 return 2914 }, 2915 }, 2916 "lookupCLILocal": { 2917 MakeArg: func() interface{} { 2918 var ret [1]LookupCLILocalArg 2919 return &ret 2920 }, 2921 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2922 typedArgs, ok := args.(*[1]LookupCLILocalArg) 2923 if !ok { 2924 err = rpc.NewTypeError((*[1]LookupCLILocalArg)(nil), args) 2925 return 2926 } 2927 ret, err = i.LookupCLILocal(ctx, typedArgs[0].Name) 2928 return 2929 }, 2930 }, 2931 "batchLocal": { 2932 MakeArg: func() interface{} { 2933 var ret [1]BatchLocalArg 2934 return &ret 2935 }, 2936 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2937 typedArgs, ok := args.(*[1]BatchLocalArg) 2938 if !ok { 2939 err = rpc.NewTypeError((*[1]BatchLocalArg)(nil), args) 2940 return 2941 } 2942 ret, err = i.BatchLocal(ctx, typedArgs[0]) 2943 return 2944 }, 2945 }, 2946 "validateStellarURILocal": { 2947 MakeArg: func() interface{} { 2948 var ret [1]ValidateStellarURILocalArg 2949 return &ret 2950 }, 2951 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2952 typedArgs, ok := args.(*[1]ValidateStellarURILocalArg) 2953 if !ok { 2954 err = rpc.NewTypeError((*[1]ValidateStellarURILocalArg)(nil), args) 2955 return 2956 } 2957 ret, err = i.ValidateStellarURILocal(ctx, typedArgs[0]) 2958 return 2959 }, 2960 }, 2961 "approveTxURILocal": { 2962 MakeArg: func() interface{} { 2963 var ret [1]ApproveTxURILocalArg 2964 return &ret 2965 }, 2966 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2967 typedArgs, ok := args.(*[1]ApproveTxURILocalArg) 2968 if !ok { 2969 err = rpc.NewTypeError((*[1]ApproveTxURILocalArg)(nil), args) 2970 return 2971 } 2972 ret, err = i.ApproveTxURILocal(ctx, typedArgs[0]) 2973 return 2974 }, 2975 }, 2976 "approvePayURILocal": { 2977 MakeArg: func() interface{} { 2978 var ret [1]ApprovePayURILocalArg 2979 return &ret 2980 }, 2981 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2982 typedArgs, ok := args.(*[1]ApprovePayURILocalArg) 2983 if !ok { 2984 err = rpc.NewTypeError((*[1]ApprovePayURILocalArg)(nil), args) 2985 return 2986 } 2987 ret, err = i.ApprovePayURILocal(ctx, typedArgs[0]) 2988 return 2989 }, 2990 }, 2991 "approvePathURILocal": { 2992 MakeArg: func() interface{} { 2993 var ret [1]ApprovePathURILocalArg 2994 return &ret 2995 }, 2996 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 2997 typedArgs, ok := args.(*[1]ApprovePathURILocalArg) 2998 if !ok { 2999 err = rpc.NewTypeError((*[1]ApprovePathURILocalArg)(nil), args) 3000 return 3001 } 3002 ret, err = i.ApprovePathURILocal(ctx, typedArgs[0]) 3003 return 3004 }, 3005 }, 3006 "getPartnerUrlsLocal": { 3007 MakeArg: func() interface{} { 3008 var ret [1]GetPartnerUrlsLocalArg 3009 return &ret 3010 }, 3011 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3012 typedArgs, ok := args.(*[1]GetPartnerUrlsLocalArg) 3013 if !ok { 3014 err = rpc.NewTypeError((*[1]GetPartnerUrlsLocalArg)(nil), args) 3015 return 3016 } 3017 ret, err = i.GetPartnerUrlsLocal(ctx, typedArgs[0].SessionID) 3018 return 3019 }, 3020 }, 3021 "signTransactionXdrLocal": { 3022 MakeArg: func() interface{} { 3023 var ret [1]SignTransactionXdrLocalArg 3024 return &ret 3025 }, 3026 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3027 typedArgs, ok := args.(*[1]SignTransactionXdrLocalArg) 3028 if !ok { 3029 err = rpc.NewTypeError((*[1]SignTransactionXdrLocalArg)(nil), args) 3030 return 3031 } 3032 ret, err = i.SignTransactionXdrLocal(ctx, typedArgs[0]) 3033 return 3034 }, 3035 }, 3036 "getStaticConfigLocal": { 3037 MakeArg: func() interface{} { 3038 var ret [1]GetStaticConfigLocalArg 3039 return &ret 3040 }, 3041 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 3042 ret, err = i.GetStaticConfigLocal(ctx) 3043 return 3044 }, 3045 }, 3046 }, 3047 } 3048 } 3049 3050 type LocalClient struct { 3051 Cli rpc.GenericClient 3052 } 3053 3054 func (c LocalClient) GetWalletAccountsLocal(ctx context.Context, sessionID int) (res []WalletAccountLocal, err error) { 3055 __arg := GetWalletAccountsLocalArg{SessionID: sessionID} 3056 err = c.Cli.Call(ctx, "stellar.1.local.getWalletAccountsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3057 return 3058 } 3059 3060 func (c LocalClient) GetWalletAccountLocal(ctx context.Context, __arg GetWalletAccountLocalArg) (res WalletAccountLocal, err error) { 3061 err = c.Cli.Call(ctx, "stellar.1.local.getWalletAccountLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3062 return 3063 } 3064 3065 func (c LocalClient) GetAccountAssetsLocal(ctx context.Context, __arg GetAccountAssetsLocalArg) (res []AccountAssetLocal, err error) { 3066 err = c.Cli.Call(ctx, "stellar.1.local.getAccountAssetsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3067 return 3068 } 3069 3070 func (c LocalClient) GetPaymentsLocal(ctx context.Context, __arg GetPaymentsLocalArg) (res PaymentsPageLocal, err error) { 3071 err = c.Cli.Call(ctx, "stellar.1.local.getPaymentsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3072 return 3073 } 3074 3075 func (c LocalClient) GetPendingPaymentsLocal(ctx context.Context, __arg GetPendingPaymentsLocalArg) (res []PaymentOrErrorLocal, err error) { 3076 err = c.Cli.Call(ctx, "stellar.1.local.getPendingPaymentsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3077 return 3078 } 3079 3080 func (c LocalClient) MarkAsReadLocal(ctx context.Context, __arg MarkAsReadLocalArg) (err error) { 3081 err = c.Cli.Call(ctx, "stellar.1.local.markAsReadLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3082 return 3083 } 3084 3085 func (c LocalClient) GetPaymentDetailsLocal(ctx context.Context, __arg GetPaymentDetailsLocalArg) (res PaymentDetailsLocal, err error) { 3086 err = c.Cli.Call(ctx, "stellar.1.local.getPaymentDetailsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3087 return 3088 } 3089 3090 func (c LocalClient) GetGenericPaymentDetailsLocal(ctx context.Context, __arg GetGenericPaymentDetailsLocalArg) (res PaymentDetailsLocal, err error) { 3091 err = c.Cli.Call(ctx, "stellar.1.local.getGenericPaymentDetailsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3092 return 3093 } 3094 3095 func (c LocalClient) GetDisplayCurrenciesLocal(ctx context.Context, sessionID int) (res []CurrencyLocal, err error) { 3096 __arg := GetDisplayCurrenciesLocalArg{SessionID: sessionID} 3097 err = c.Cli.Call(ctx, "stellar.1.local.getDisplayCurrenciesLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3098 return 3099 } 3100 3101 func (c LocalClient) ValidateAccountIDLocal(ctx context.Context, __arg ValidateAccountIDLocalArg) (err error) { 3102 err = c.Cli.Call(ctx, "stellar.1.local.validateAccountIDLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3103 return 3104 } 3105 3106 func (c LocalClient) ValidateSecretKeyLocal(ctx context.Context, __arg ValidateSecretKeyLocalArg) (err error) { 3107 err = c.Cli.Call(ctx, "stellar.1.local.validateSecretKeyLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3108 return 3109 } 3110 3111 func (c LocalClient) ValidateAccountNameLocal(ctx context.Context, __arg ValidateAccountNameLocalArg) (err error) { 3112 err = c.Cli.Call(ctx, "stellar.1.local.validateAccountNameLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3113 return 3114 } 3115 3116 func (c LocalClient) ChangeWalletAccountNameLocal(ctx context.Context, __arg ChangeWalletAccountNameLocalArg) (res WalletAccountLocal, err error) { 3117 err = c.Cli.Call(ctx, "stellar.1.local.changeWalletAccountNameLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3118 return 3119 } 3120 3121 func (c LocalClient) SetWalletAccountAsDefaultLocal(ctx context.Context, __arg SetWalletAccountAsDefaultLocalArg) (res []WalletAccountLocal, err error) { 3122 err = c.Cli.Call(ctx, "stellar.1.local.setWalletAccountAsDefaultLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3123 return 3124 } 3125 3126 func (c LocalClient) DeleteWalletAccountLocal(ctx context.Context, __arg DeleteWalletAccountLocalArg) (err error) { 3127 err = c.Cli.Call(ctx, "stellar.1.local.deleteWalletAccountLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3128 return 3129 } 3130 3131 func (c LocalClient) LinkNewWalletAccountLocal(ctx context.Context, __arg LinkNewWalletAccountLocalArg) (res AccountID, err error) { 3132 err = c.Cli.Call(ctx, "stellar.1.local.linkNewWalletAccountLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3133 return 3134 } 3135 3136 func (c LocalClient) CreateWalletAccountLocal(ctx context.Context, __arg CreateWalletAccountLocalArg) (res AccountID, err error) { 3137 err = c.Cli.Call(ctx, "stellar.1.local.createWalletAccountLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3138 return 3139 } 3140 3141 func (c LocalClient) ChangeDisplayCurrencyLocal(ctx context.Context, __arg ChangeDisplayCurrencyLocalArg) (res CurrencyLocal, err error) { 3142 err = c.Cli.Call(ctx, "stellar.1.local.changeDisplayCurrencyLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3143 return 3144 } 3145 3146 func (c LocalClient) GetDisplayCurrencyLocal(ctx context.Context, __arg GetDisplayCurrencyLocalArg) (res CurrencyLocal, err error) { 3147 err = c.Cli.Call(ctx, "stellar.1.local.getDisplayCurrencyLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3148 return 3149 } 3150 3151 func (c LocalClient) HasAcceptedDisclaimerLocal(ctx context.Context, sessionID int) (res bool, err error) { 3152 __arg := HasAcceptedDisclaimerLocalArg{SessionID: sessionID} 3153 err = c.Cli.Call(ctx, "stellar.1.local.hasAcceptedDisclaimerLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3154 return 3155 } 3156 3157 func (c LocalClient) AcceptDisclaimerLocal(ctx context.Context, sessionID int) (err error) { 3158 __arg := AcceptDisclaimerLocalArg{SessionID: sessionID} 3159 err = c.Cli.Call(ctx, "stellar.1.local.acceptDisclaimerLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3160 return 3161 } 3162 3163 func (c LocalClient) GetWalletAccountPublicKeyLocal(ctx context.Context, __arg GetWalletAccountPublicKeyLocalArg) (res string, err error) { 3164 err = c.Cli.Call(ctx, "stellar.1.local.getWalletAccountPublicKeyLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3165 return 3166 } 3167 3168 func (c LocalClient) GetWalletAccountSecretKeyLocal(ctx context.Context, __arg GetWalletAccountSecretKeyLocalArg) (res SecretKey, err error) { 3169 err = c.Cli.Call(ctx, "stellar.1.local.getWalletAccountSecretKeyLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3170 return 3171 } 3172 3173 func (c LocalClient) GetSendAssetChoicesLocal(ctx context.Context, __arg GetSendAssetChoicesLocalArg) (res []SendAssetChoiceLocal, err error) { 3174 err = c.Cli.Call(ctx, "stellar.1.local.getSendAssetChoicesLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3175 return 3176 } 3177 3178 func (c LocalClient) StartBuildPaymentLocal(ctx context.Context, sessionID int) (res BuildPaymentID, err error) { 3179 __arg := StartBuildPaymentLocalArg{SessionID: sessionID} 3180 err = c.Cli.Call(ctx, "stellar.1.local.startBuildPaymentLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3181 return 3182 } 3183 3184 func (c LocalClient) StopBuildPaymentLocal(ctx context.Context, __arg StopBuildPaymentLocalArg) (err error) { 3185 err = c.Cli.Call(ctx, "stellar.1.local.stopBuildPaymentLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3186 return 3187 } 3188 3189 func (c LocalClient) BuildPaymentLocal(ctx context.Context, __arg BuildPaymentLocalArg) (res BuildPaymentResLocal, err error) { 3190 err = c.Cli.Call(ctx, "stellar.1.local.buildPaymentLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3191 return 3192 } 3193 3194 func (c LocalClient) ReviewPaymentLocal(ctx context.Context, __arg ReviewPaymentLocalArg) (err error) { 3195 err = c.Cli.Call(ctx, "stellar.1.local.reviewPaymentLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3196 return 3197 } 3198 3199 func (c LocalClient) SendPaymentLocal(ctx context.Context, __arg SendPaymentLocalArg) (res SendPaymentResLocal, err error) { 3200 err = c.Cli.Call(ctx, "stellar.1.local.sendPaymentLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3201 return 3202 } 3203 3204 func (c LocalClient) SendPathLocal(ctx context.Context, __arg SendPathLocalArg) (res SendPaymentResLocal, err error) { 3205 err = c.Cli.Call(ctx, "stellar.1.local.sendPathLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3206 return 3207 } 3208 3209 func (c LocalClient) BuildRequestLocal(ctx context.Context, __arg BuildRequestLocalArg) (res BuildRequestResLocal, err error) { 3210 err = c.Cli.Call(ctx, "stellar.1.local.buildRequestLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3211 return 3212 } 3213 3214 func (c LocalClient) GetRequestDetailsLocal(ctx context.Context, __arg GetRequestDetailsLocalArg) (res RequestDetailsLocal, err error) { 3215 err = c.Cli.Call(ctx, "stellar.1.local.getRequestDetailsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3216 return 3217 } 3218 3219 func (c LocalClient) CancelRequestLocal(ctx context.Context, __arg CancelRequestLocalArg) (err error) { 3220 err = c.Cli.Call(ctx, "stellar.1.local.cancelRequestLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3221 return 3222 } 3223 3224 func (c LocalClient) MakeRequestLocal(ctx context.Context, __arg MakeRequestLocalArg) (res KeybaseRequestID, err error) { 3225 err = c.Cli.Call(ctx, "stellar.1.local.makeRequestLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3226 return 3227 } 3228 3229 func (c LocalClient) SetAccountMobileOnlyLocal(ctx context.Context, __arg SetAccountMobileOnlyLocalArg) (err error) { 3230 err = c.Cli.Call(ctx, "stellar.1.local.setAccountMobileOnlyLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3231 return 3232 } 3233 3234 func (c LocalClient) SetAccountAllDevicesLocal(ctx context.Context, __arg SetAccountAllDevicesLocalArg) (err error) { 3235 err = c.Cli.Call(ctx, "stellar.1.local.setAccountAllDevicesLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3236 return 3237 } 3238 3239 func (c LocalClient) IsAccountMobileOnlyLocal(ctx context.Context, __arg IsAccountMobileOnlyLocalArg) (res bool, err error) { 3240 err = c.Cli.Call(ctx, "stellar.1.local.isAccountMobileOnlyLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3241 return 3242 } 3243 3244 func (c LocalClient) CancelPaymentLocal(ctx context.Context, __arg CancelPaymentLocalArg) (res RelayClaimResult, err error) { 3245 err = c.Cli.Call(ctx, "stellar.1.local.cancelPaymentLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3246 return 3247 } 3248 3249 func (c LocalClient) GetPredefinedInflationDestinationsLocal(ctx context.Context, sessionID int) (res []PredefinedInflationDestination, err error) { 3250 __arg := GetPredefinedInflationDestinationsLocalArg{SessionID: sessionID} 3251 err = c.Cli.Call(ctx, "stellar.1.local.getPredefinedInflationDestinationsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3252 return 3253 } 3254 3255 func (c LocalClient) SetInflationDestinationLocal(ctx context.Context, __arg SetInflationDestinationLocalArg) (err error) { 3256 err = c.Cli.Call(ctx, "stellar.1.local.setInflationDestinationLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3257 return 3258 } 3259 3260 func (c LocalClient) GetInflationDestinationLocal(ctx context.Context, __arg GetInflationDestinationLocalArg) (res InflationDestinationResultLocal, err error) { 3261 err = c.Cli.Call(ctx, "stellar.1.local.getInflationDestinationLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3262 return 3263 } 3264 3265 func (c LocalClient) AirdropDetailsLocal(ctx context.Context, sessionID int) (res AirdropDetails, err error) { 3266 __arg := AirdropDetailsLocalArg{SessionID: sessionID} 3267 err = c.Cli.Call(ctx, "stellar.1.local.airdropDetailsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3268 return 3269 } 3270 3271 func (c LocalClient) AirdropStatusLocal(ctx context.Context, sessionID int) (res AirdropStatus, err error) { 3272 __arg := AirdropStatusLocalArg{SessionID: sessionID} 3273 err = c.Cli.Call(ctx, "stellar.1.local.airdropStatusLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3274 return 3275 } 3276 3277 func (c LocalClient) AirdropRegisterLocal(ctx context.Context, __arg AirdropRegisterLocalArg) (err error) { 3278 err = c.Cli.Call(ctx, "stellar.1.local.airdropRegisterLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3279 return 3280 } 3281 3282 func (c LocalClient) FuzzyAssetSearchLocal(ctx context.Context, __arg FuzzyAssetSearchLocalArg) (res []Asset, err error) { 3283 err = c.Cli.Call(ctx, "stellar.1.local.fuzzyAssetSearchLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3284 return 3285 } 3286 3287 func (c LocalClient) ListPopularAssetsLocal(ctx context.Context, sessionID int) (res AssetListResult, err error) { 3288 __arg := ListPopularAssetsLocalArg{SessionID: sessionID} 3289 err = c.Cli.Call(ctx, "stellar.1.local.listPopularAssetsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3290 return 3291 } 3292 3293 func (c LocalClient) AddTrustlineLocal(ctx context.Context, __arg AddTrustlineLocalArg) (err error) { 3294 err = c.Cli.Call(ctx, "stellar.1.local.addTrustlineLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3295 return 3296 } 3297 3298 func (c LocalClient) DeleteTrustlineLocal(ctx context.Context, __arg DeleteTrustlineLocalArg) (err error) { 3299 err = c.Cli.Call(ctx, "stellar.1.local.deleteTrustlineLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3300 return 3301 } 3302 3303 func (c LocalClient) ChangeTrustlineLimitLocal(ctx context.Context, __arg ChangeTrustlineLimitLocalArg) (err error) { 3304 err = c.Cli.Call(ctx, "stellar.1.local.changeTrustlineLimitLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3305 return 3306 } 3307 3308 func (c LocalClient) GetTrustlinesLocal(ctx context.Context, __arg GetTrustlinesLocalArg) (res []Balance, err error) { 3309 err = c.Cli.Call(ctx, "stellar.1.local.getTrustlinesLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3310 return 3311 } 3312 3313 func (c LocalClient) GetTrustlinesForRecipientLocal(ctx context.Context, __arg GetTrustlinesForRecipientLocalArg) (res RecipientTrustlinesLocal, err error) { 3314 err = c.Cli.Call(ctx, "stellar.1.local.getTrustlinesForRecipientLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3315 return 3316 } 3317 3318 func (c LocalClient) FindPaymentPathLocal(ctx context.Context, __arg FindPaymentPathLocalArg) (res PaymentPathLocal, err error) { 3319 err = c.Cli.Call(ctx, "stellar.1.local.findPaymentPathLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3320 return 3321 } 3322 3323 func (c LocalClient) AssetDepositLocal(ctx context.Context, __arg AssetDepositLocalArg) (res AssetActionResultLocal, err error) { 3324 err = c.Cli.Call(ctx, "stellar.1.local.assetDepositLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3325 return 3326 } 3327 3328 func (c LocalClient) AssetWithdrawLocal(ctx context.Context, __arg AssetWithdrawLocalArg) (res AssetActionResultLocal, err error) { 3329 err = c.Cli.Call(ctx, "stellar.1.local.assetWithdrawLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3330 return 3331 } 3332 3333 func (c LocalClient) BalancesLocal(ctx context.Context, accountID AccountID) (res []Balance, err error) { 3334 __arg := BalancesLocalArg{AccountID: accountID} 3335 err = c.Cli.Call(ctx, "stellar.1.local.balancesLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3336 return 3337 } 3338 3339 func (c LocalClient) SendCLILocal(ctx context.Context, __arg SendCLILocalArg) (res SendResultCLILocal, err error) { 3340 err = c.Cli.Call(ctx, "stellar.1.local.sendCLILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3341 return 3342 } 3343 3344 func (c LocalClient) SendPathCLILocal(ctx context.Context, __arg SendPathCLILocalArg) (res SendResultCLILocal, err error) { 3345 err = c.Cli.Call(ctx, "stellar.1.local.sendPathCLILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3346 return 3347 } 3348 3349 func (c LocalClient) AccountMergeCLILocal(ctx context.Context, __arg AccountMergeCLILocalArg) (res TransactionID, err error) { 3350 err = c.Cli.Call(ctx, "stellar.1.local.accountMergeCLILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3351 return 3352 } 3353 3354 func (c LocalClient) ClaimCLILocal(ctx context.Context, __arg ClaimCLILocalArg) (res RelayClaimResult, err error) { 3355 err = c.Cli.Call(ctx, "stellar.1.local.claimCLILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3356 return 3357 } 3358 3359 func (c LocalClient) RecentPaymentsCLILocal(ctx context.Context, accountID *AccountID) (res []PaymentOrErrorCLILocal, err error) { 3360 __arg := RecentPaymentsCLILocalArg{AccountID: accountID} 3361 err = c.Cli.Call(ctx, "stellar.1.local.recentPaymentsCLILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3362 return 3363 } 3364 3365 func (c LocalClient) PaymentDetailCLILocal(ctx context.Context, txID string) (res PaymentCLILocal, err error) { 3366 __arg := PaymentDetailCLILocalArg{TxID: txID} 3367 err = c.Cli.Call(ctx, "stellar.1.local.paymentDetailCLILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3368 return 3369 } 3370 3371 func (c LocalClient) WalletInitLocal(ctx context.Context) (err error) { 3372 err = c.Cli.Call(ctx, "stellar.1.local.walletInitLocal", []interface{}{WalletInitLocalArg{}}, nil, 0*time.Millisecond) 3373 return 3374 } 3375 3376 func (c LocalClient) WalletDumpLocal(ctx context.Context) (res Bundle, err error) { 3377 err = c.Cli.Call(ctx, "stellar.1.local.walletDumpLocal", []interface{}{WalletDumpLocalArg{}}, &res, 0*time.Millisecond) 3378 return 3379 } 3380 3381 func (c LocalClient) WalletGetAccountsCLILocal(ctx context.Context) (res []OwnAccountCLILocal, err error) { 3382 err = c.Cli.Call(ctx, "stellar.1.local.walletGetAccountsCLILocal", []interface{}{WalletGetAccountsCLILocalArg{}}, &res, 0*time.Millisecond) 3383 return 3384 } 3385 3386 func (c LocalClient) OwnAccountLocal(ctx context.Context, accountID AccountID) (res bool, err error) { 3387 __arg := OwnAccountLocalArg{AccountID: accountID} 3388 err = c.Cli.Call(ctx, "stellar.1.local.ownAccountLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3389 return 3390 } 3391 3392 func (c LocalClient) ImportSecretKeyLocal(ctx context.Context, __arg ImportSecretKeyLocalArg) (err error) { 3393 err = c.Cli.Call(ctx, "stellar.1.local.importSecretKeyLocal", []interface{}{__arg}, nil, 0*time.Millisecond) 3394 return 3395 } 3396 3397 func (c LocalClient) ExportSecretKeyLocal(ctx context.Context, accountID AccountID) (res SecretKey, err error) { 3398 __arg := ExportSecretKeyLocalArg{AccountID: accountID} 3399 err = c.Cli.Call(ctx, "stellar.1.local.exportSecretKeyLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3400 return 3401 } 3402 3403 func (c LocalClient) SetDisplayCurrency(ctx context.Context, __arg SetDisplayCurrencyArg) (err error) { 3404 err = c.Cli.Call(ctx, "stellar.1.local.setDisplayCurrency", []interface{}{__arg}, nil, 0*time.Millisecond) 3405 return 3406 } 3407 3408 func (c LocalClient) ExchangeRateLocal(ctx context.Context, currency OutsideCurrencyCode) (res OutsideExchangeRate, err error) { 3409 __arg := ExchangeRateLocalArg{Currency: currency} 3410 err = c.Cli.Call(ctx, "stellar.1.local.exchangeRateLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3411 return 3412 } 3413 3414 func (c LocalClient) GetAvailableLocalCurrencies(ctx context.Context) (res map[OutsideCurrencyCode]OutsideCurrencyDefinition, err error) { 3415 err = c.Cli.Call(ctx, "stellar.1.local.getAvailableLocalCurrencies", []interface{}{GetAvailableLocalCurrenciesArg{}}, &res, 0*time.Millisecond) 3416 return 3417 } 3418 3419 func (c LocalClient) FormatLocalCurrencyString(ctx context.Context, __arg FormatLocalCurrencyStringArg) (res string, err error) { 3420 err = c.Cli.Call(ctx, "stellar.1.local.formatLocalCurrencyString", []interface{}{__arg}, &res, 0*time.Millisecond) 3421 return 3422 } 3423 3424 func (c LocalClient) MakeRequestCLILocal(ctx context.Context, __arg MakeRequestCLILocalArg) (res KeybaseRequestID, err error) { 3425 err = c.Cli.Call(ctx, "stellar.1.local.makeRequestCLILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3426 return 3427 } 3428 3429 func (c LocalClient) LookupCLILocal(ctx context.Context, name string) (res LookupResultCLILocal, err error) { 3430 __arg := LookupCLILocalArg{Name: name} 3431 err = c.Cli.Call(ctx, "stellar.1.local.lookupCLILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3432 return 3433 } 3434 3435 func (c LocalClient) BatchLocal(ctx context.Context, __arg BatchLocalArg) (res BatchResultLocal, err error) { 3436 err = c.Cli.Call(ctx, "stellar.1.local.batchLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3437 return 3438 } 3439 3440 func (c LocalClient) ValidateStellarURILocal(ctx context.Context, __arg ValidateStellarURILocalArg) (res ValidateStellarURIResultLocal, err error) { 3441 err = c.Cli.Call(ctx, "stellar.1.local.validateStellarURILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3442 return 3443 } 3444 3445 func (c LocalClient) ApproveTxURILocal(ctx context.Context, __arg ApproveTxURILocalArg) (res TransactionID, err error) { 3446 err = c.Cli.Call(ctx, "stellar.1.local.approveTxURILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3447 return 3448 } 3449 3450 func (c LocalClient) ApprovePayURILocal(ctx context.Context, __arg ApprovePayURILocalArg) (res TransactionID, err error) { 3451 err = c.Cli.Call(ctx, "stellar.1.local.approvePayURILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3452 return 3453 } 3454 3455 func (c LocalClient) ApprovePathURILocal(ctx context.Context, __arg ApprovePathURILocalArg) (res TransactionID, err error) { 3456 err = c.Cli.Call(ctx, "stellar.1.local.approvePathURILocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3457 return 3458 } 3459 3460 func (c LocalClient) GetPartnerUrlsLocal(ctx context.Context, sessionID int) (res []PartnerUrl, err error) { 3461 __arg := GetPartnerUrlsLocalArg{SessionID: sessionID} 3462 err = c.Cli.Call(ctx, "stellar.1.local.getPartnerUrlsLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3463 return 3464 } 3465 3466 func (c LocalClient) SignTransactionXdrLocal(ctx context.Context, __arg SignTransactionXdrLocalArg) (res SignXdrResult, err error) { 3467 err = c.Cli.Call(ctx, "stellar.1.local.signTransactionXdrLocal", []interface{}{__arg}, &res, 0*time.Millisecond) 3468 return 3469 } 3470 3471 func (c LocalClient) GetStaticConfigLocal(ctx context.Context) (res StaticConfig, err error) { 3472 err = c.Cli.Call(ctx, "stellar.1.local.getStaticConfigLocal", []interface{}{GetStaticConfigLocalArg{}}, &res, 0*time.Millisecond) 3473 return 3474 }