/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
protocol/json/stellar1/remote.json
1 401 строка
27 KB
Alex Gessner
add types for allDetailsPlusPayments (#20080)
09 окт 2019, 19:01
Не верифицирован
09 окт 2019, 19:01
5b5c5b6
Код
Авторство
О чём код?
{ "protocol": "remote", "imports": [ { "path": "../keybase1", "type": "idl", "import_as": "keybase1" }, { "path": "common.avdl", "type": "idl" } ], "types": [ { "type": "record", "name": "ChatConversationID", "fields": [], "typedef": "string" }, { "type": "record", "name": "PaymentDirectPost", "fields": [ { "type": "keybase1.DeviceID", "name": "fromDeviceID" }, { "type": [ null, "keybase1.UserVersion" ], "name": "to" }, { "type": "string", "name": "displayAmount" }, { "type": "string", "name": "displayCurrency" }, { "type": "string", "name": "noteB64" }, { "type": "string", "name": "signedTransaction" }, { "type": "boolean", "name": "quickReturn" }, { "type": [ null, "ChatConversationID" ], "name": "chatConversationID" }, { "type": "string", "name": "batchID" } ] }, { "type": "record", "name": "PaymentRelayPost", "fields": [ { "type": "keybase1.DeviceID", "name": "fromDeviceID" }, { "type": [ null, "keybase1.UserVersion" ], "name": "to" }, { "type": "string", "name": "toAssertion" }, { "type": "AccountID", "name": "relayAccount" }, { "type": "keybase1.TeamID", "name": "teamID" }, { "type": "string", "name": "displayAmount" }, { "type": "string", "name": "displayCurrency" }, { "type": "string", "name": "boxB64" }, { "type": "string", "name": "signedTransaction" }, { "type": "boolean", "name": "quickReturn" }, { "type": [ null, "ChatConversationID" ], "name": "chatConversationID" }, { "type": "string", "name": "batchID" } ] }, { "type": "record", "name": "RelayClaimPost", "fields": [ { "type": "KeybaseTransactionID", "name": "keybaseID" }, { "type": "RelayDirection", "name": "dir" }, { "type": "string", "name": "signedTransaction" }, { "type": [ null, "string" ], "name": "autoClaimToken" } ] }, { "type": "record", "name": "PathPaymentPost", "fields": [ { "type": "keybase1.DeviceID", "name": "fromDeviceID" }, { "type": [ null, "keybase1.UserVersion" ], "name": "to" }, { "type": "string", "name": "noteB64" }, { "type": "string", "name": "signedTransaction" }, { "type": "boolean", "name": "quickReturn" }, { "type": [ null, "ChatConversationID" ], "name": "chatConversationID" } ] }, { "type": "record", "name": "DirectOp", "fields": [ { "type": "string", "name": "noteB64" } ] }, { "type": "record", "name": "RelayOp", "fields": [ { "type": "string", "name": "toAssertion" }, { "type": "AccountID", "name": "relayAccount" }, { "type": "keybase1.TeamID", "name": "teamID" }, { "type": "string", "name": "boxB64" } ] }, { "type": "record", "name": "PaymentOp", "fields": [ { "type": [ null, "keybase1.UserVersion" ], "name": "to" }, { "type": [ null, "DirectOp" ], "name": "direct" }, { "type": [ null, "RelayOp" ], "name": "relay" } ] }, { "type": "record", "name": "PaymentMultiPost", "fields": [ { "type": "keybase1.DeviceID", "name": "fromDeviceID" }, { "type": "string", "name": "signedTransaction" }, { "type": { "type": "array", "items": "PaymentOp" }, "name": "operations" }, { "type": "string", "name": "batchID" } ] }, { "type": "enum", "name": "PaymentSummaryType", "symbols": [ "NONE_0", "STELLAR_1", "DIRECT_2", "RELAY_3" ] }, { "type": "variant", "name": "PaymentSummary", "switch": { "type": "PaymentSummaryType", "name": "typ" }, "cases": [ { "label": { "name": "STELLAR", "def": false }, "body": "PaymentSummaryStellar" }, { "label": { "name": "DIRECT", "def": false }, "body": "PaymentSummaryDirect" }, { "label": { "name": "RELAY", "def": false }, "body": "PaymentSummaryRelay" } ] }, { "type": "record", "name": "PaymentSummaryStellar", "fields": [ { "type": "TransactionID", "name": "txID" }, { "type": "AccountID", "name": "from" }, { "type": "AccountID", "name": "to" }, { "type": "string", "name": "amount" }, { "type": "Asset", "name": "asset" }, { "type": "TimeMs", "name": "ctime" }, { "type": "string", "name": "cursorToken" }, { "type": "boolean", "name": "unread" }, { "type": "boolean", "name": "isInflation" }, { "type": [ null, "string" ], "name": "inflationSource" }, { "type": "string", "name": "sourceAmountMax" }, { "type": "string", "name": "sourceAmountActual" }, { "type": "Asset", "name": "sourceAsset" }, { "type": "boolean", "name": "isAdvanced" }, { "type": "string", "name": "summaryAdvanced" }, { "type": { "type": "array", "items": "string" }, "name": "operations" }, { "type": [ null, "PaymentTrustlineLocal" ], "name": "trustline" } ] }, { "type": "record", "name": "PaymentSummaryDirect", "fields": [ { "type": "KeybaseTransactionID", "name": "kbTxID" }, { "type": "TransactionID", "name": "txID" }, { "type": "TransactionStatus", "name": "txStatus" }, { "type": "string", "name": "txErrMsg" }, { "type": "AccountID", "name": "fromStellar" }, { "type": "keybase1.UserVersion", "name": "from" }, { "type": "keybase1.DeviceID", "name": "fromDeviceID" }, { "type": "AccountID", "name": "toStellar" }, { "type": [ null, "keybase1.UserVersion" ], "name": "to" }, { "type": "string", "name": "amount" }, { "type": "Asset", "name": "asset" }, { "type": [ null, "string" ], "name": "displayAmount" }, { "type": [ null, "string" ], "name": "displayCurrency" }, { "type": "string", "name": "noteB64" }, { "type": "string", "name": "fromDisplayAmount" }, { "type": "string", "name": "fromDisplayCurrency" }, { "type": "string", "name": "toDisplayAmount" }, { "type": "string", "name": "toDisplayCurrency" }, { "type": "TimeMs", "name": "ctime" }, { "type": "TimeMs", "name": "rtime" }, { "type": "string", "name": "cursorToken" }, { "type": "boolean", "name": "unread" }, { "type": "boolean", "name": "fromPrimary" }, { "type": "string", "name": "batchID" }, { "type": "boolean", "name": "fromAirdrop" }, { "type": "string", "name": "sourceAmountMax" }, { "type": "string", "name": "sourceAmountActual" }, { "type": "Asset", "name": "sourceAsset" } ] }, { "type": "record", "name": "PaymentSummaryRelay", "fields": [ { "type": "KeybaseTransactionID", "name": "kbTxID" }, { "type": "TransactionID", "name": "txID" }, { "type": "TransactionStatus", "name": "txStatus" }, { "type": "string", "name": "txErrMsg" }, { "type": "AccountID", "name": "fromStellar" }, { "type": "keybase1.UserVersion", "name": "from" }, { "type": "keybase1.DeviceID", "name": "fromDeviceID" }, { "type": [ null, "keybase1.UserVersion" ], "name": "to" }, { "type": "string", "name": "toAssertion" }, { "type": "AccountID", "name": "relayAccount" }, { "type": "string", "name": "amount" }, { "type": [ null, "string" ], "name": "displayAmount" }, { "type": [ null, "string" ], "name": "displayCurrency" }, { "type": "TimeMs", "name": "ctime" }, { "type": "TimeMs", "name": "rtime" }, { "type": "string", "name": "boxB64" }, { "type": "keybase1.TeamID", "name": "teamID" }, { "type": [ null, "ClaimSummary" ], "name": "claim" }, { "type": "string", "name": "cursorToken" }, { "type": "string", "name": "batchID" }, { "type": "boolean", "name": "fromAirdrop" } ] }, { "type": "record", "name": "ClaimSummary", "fields": [ { "type": "TransactionID", "name": "txID" }, { "type": "TransactionStatus", "name": "txStatus" }, { "type": "string", "name": "txErrMsg" }, { "type": "RelayDirection", "name": "dir" }, { "type": "AccountID", "name": "toStellar" }, { "type": "keybase1.UserVersion", "name": "to" } ] }, { "type": "record", "name": "PaymentDetails", "fields": [ { "type": "PaymentSummary", "name": "summary" }, { "type": "string", "name": "memo" }, { "type": "string", "name": "memoType" }, { "type": "string", "name": "externalTxURL", "lint": "ignore" }, { "type": "string", "name": "feeCharged" }, { "type": { "type": "array", "items": "Asset" }, "name": "pathIntermediate" } ] }, { "type": "record", "name": "AccountDetails", "fields": [ { "type": "AccountID", "name": "accountID" }, { "type": "string", "name": "seqno" }, { "type": { "type": "array", "items": "Balance" }, "name": "balances" }, { "type": "int", "name": "subentryCount" }, { "type": "string", "name": "available" }, { "type": { "type": "array", "items": "AccountReserve" }, "name": "reserves" }, { "type": [ null, "TransactionID" ], "name": "readTransactionID" }, { "type": "int", "name": "unreadPayments" }, { "type": "string", "name": "displayCurrency" }, { "type": [ null, "AccountID" ], "name": "inflationDestination" } ] }, { "type": "record", "name": "PaymentsPage", "fields": [ { "type": { "type": "array", "items": "PaymentSummary" }, "name": "payments" }, { "type": [ null, "PageCursor" ], "name": "cursor" }, { "type": [ null, "TransactionID" ], "name": "oldestUnread" } ] }, { "type": "record", "name": "SubmitMultiRes", "fields": [ { "type": "TransactionID", "name": "txID" } ] }, { "type": "record", "name": "AutoClaim", "fields": [ { "type": "KeybaseTransactionID", "name": "kbTxID" } ] }, { "type": "record", "name": "RequestPost", "fields": [ { "type": [ null, "keybase1.UserVersion" ], "name": "toUser" }, { "type": "string", "name": "toAssertion" }, { "type": "string", "name": "amount" }, { "type": [ null, "Asset" ], "name": "asset" }, { "type": [ null, "OutsideCurrencyCode" ], "name": "currency" } ] }, { "type": "record", "name": "RequestDetails", "fields": [ { "type": "KeybaseRequestID", "name": "id" }, { "type": "keybase1.UserVersion", "name": "fromUser" }, { "type": [ null, "keybase1.UserVersion" ], "name": "toUser" }, { "type": "string", "name": "toAssertion" }, { "type": "string", "name": "amount" }, { "type": [ null, "Asset" ], "name": "asset" }, { "type": [ null, "OutsideCurrencyCode" ], "name": "currency" }, { "type": "string", "name": "fromDisplayAmount" }, { "type": "string", "name": "fromDisplayCurrency" }, { "type": "string", "name": "toDisplayAmount" }, { "type": "string", "name": "toDisplayCurrency" }, { "type": "KeybaseTransactionID", "name": "fundingKbTxID" }, { "type": "RequestStatus", "name": "status" } ] }, { "type": "record", "name": "TimeboundsRecommendation", "fields": [ { "type": "keybase1.UnixTime", "name": "timeNow", "jsonkey": "time_now" }, { "type": "int64", "name": "timeout", "jsonkey": "timeout" } ] }, { "type": "record", "name": "NetworkOptions", "fields": [ { "type": "uint64", "name": "baseFee" } ] }, { "type": "record", "name": "DetailsPlusPayments", "fields": [ { "type": "AccountDetails", "name": "details" }, { "type": "PaymentsPage", "name": "recentPayments" }, { "type": { "type": "array", "items": "PaymentSummary" }, "name": "pendingPayments" } ] }, { "type": "record", "name": "PaymentPathQuery", "fields": [ { "type": "AccountID", "name": "source" }, { "type": "AccountID", "name": "destination" }, { "type": "Asset", "name": "sourceAsset" }, { "type": "Asset", "name": "destinationAsset" }, { "type": "string", "name": "amount" } ] } ], "messages": { "balances": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "accountID", "type": "AccountID" } ], "response": { "type": "array", "items": "Balance" } }, "details": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "accountID", "type": "AccountID" }, { "name": "includeMulti", "type": "boolean" }, { "name": "includeAdvanced", "type": "boolean" } ], "response": "AccountDetails" }, "recentPayments": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "accountID", "type": "AccountID" }, { "name": "cursor", "type": [ null, "PageCursor" ] }, { "name": "limit", "type": "int" }, { "name": "skipPending", "type": "boolean" }, { "name": "includeMulti", "type": "boolean" }, { "name": "includeAdvanced", "type": "boolean" } ], "response": "PaymentsPage" }, "pendingPayments": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "accountID", "type": "AccountID" }, { "name": "limit", "type": "int" } ], "response": { "type": "array", "items": "PaymentSummary" } }, "markAsRead": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "accountID", "type": "AccountID" }, { "name": "mostRecentID", "type": "TransactionID" } ], "response": null }, "paymentDetails": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "accountID", "type": "AccountID" }, { "name": "txID", "type": "string" } ], "response": "PaymentDetails" }, "accountSeqno": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "accountID", "type": "AccountID" } ], "response": "string" }, "submitPayment": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "payment", "type": "PaymentDirectPost" } ], "response": "PaymentResult" }, "submitRelayPayment": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "payment", "type": "PaymentRelayPost" } ], "response": "PaymentResult" }, "submitRelayClaim": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "claim", "type": "RelayClaimPost" } ], "response": "RelayClaimResult" }, "submitPathPayment": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "payment", "type": "PathPaymentPost" } ], "response": "PaymentResult" }, "submitMultiPayment": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "payment", "type": "PaymentMultiPost" } ], "response": "SubmitMultiRes" }, "acquireAutoClaimLock": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" } ], "response": "string" }, "releaseAutoClaimLock": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "token", "type": "string" } ], "response": null }, "nextAutoClaim": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" } ], "response": [ null, "AutoClaim" ] }, "isMasterKeyActive": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "accountID", "type": "AccountID" } ], "response": "boolean" }, "submitRequest": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "request", "type": "RequestPost" } ], "response": "KeybaseRequestID" }, "requestDetails": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "reqID", "type": "KeybaseRequestID" } ], "response": "RequestDetails" }, "cancelRequest": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "reqID", "type": "KeybaseRequestID" } ], "response": null }, "setInflationDestination": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "signedTransaction", "type": "string" } ], "response": null }, "ping": { "request": [], "response": "string" }, "networkOptions": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" } ], "response": "NetworkOptions" }, "detailsPlusPayments": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "accountID", "type": "AccountID" }, { "name": "includeAdvanced", "type": "boolean" } ], "response": "DetailsPlusPayments" }, "allDetailsPlusPayments": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" } ], "response": { "type": "array", "items": "DetailsPlusPayments" } }, "assetSearch": { "request": [ { "name": "assetCode", "type": "string" }, { "name": "issuerAccountID", "type": "string" } ], "response": { "type": "array", "items": "Asset" } }, "fuzzyAssetSearch": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "searchString", "type": "string" } ], "response": { "type": "array", "items": "Asset" } }, "listPopularAssets": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" } ], "response": "AssetListResult" }, "changeTrustline": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "signedTransaction", "type": "string" } ], "response": null }, "findPaymentPath": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "query", "type": "PaymentPathQuery" } ], "response": "PaymentPath" }, "postAnyTransaction": { "request": [ { "name": "caller", "type": "keybase1.UserVersion" }, { "name": "signedTransaction", "type": "string" } ], "response": null } }, "namespace": "stellar.1" }