Merge pull request #871 from rmurphy23/test-rippled

WIP: Missing Public Rippled Method Outputs
This commit is contained in:
Rome Reginelli
2020-08-10 11:52:31 -07:00
committed by GitHub
19 changed files with 2738 additions and 625 deletions

View File

@@ -150,6 +150,78 @@ An example of a successful response:
}
```
*Commandline*
```json
{
"result" : {
"ledger_current_index" : 56867201,
"offers" : [
{
"Account" : "rnixnrMHHvR7ejMpJMRCWkaNrq3qREwMDu",
"BookDirectory" : "7E5F614417C2D0A7CEFEB73C4AA773ED5B078DE2B5771F6D56038D7EA4C68000",
"BookNode" : "0000000000000000",
"Flags" : 131072,
"LedgerEntryType" : "Offer",
"OwnerNode" : "0000000000000000",
"PreviousTxnID" : "E43ADD1BD4AC2049E0D9DE6BC279B7FD95A99C8DE2C4694A4A7623F6D9AAAE29",
"PreviousTxnLgrSeq" : 47926685,
"Sequence" : 219,
"TakerGets" : {
"currency" : "EUR",
"issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value" : "2.459108753792364"
},
"TakerPays" : {
"currency" : "USD",
"issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value" : "24.59108753792364"
},
"index" : "3087B4828C6B5D8595EA325D69C0F396C57452893647799493A38F2C164990AB",
"owner_funds" : "2.872409153061363",
"quality" : "10"
},
{
"Account" : "rKwjWCKBaASEvtHCxtvReNd2i9n8DxSihk",
"BookDirectory" : "7E5F614417C2D0A7CEFEB73C4AA773ED5B078DE2B5771F6D56038D7EA4C68000",
"BookNode" : "0000000000000000",
"Flags" : 131072,
"LedgerEntryType" : "Offer",
"OwnerNode" : "0000000000000000",
"PreviousTxnID" : "B63B2ECD124FE6B02BC2998929517266BD221A02FEE51DDE4992C1BCB7E86CD3",
"PreviousTxnLgrSeq" : 43166305,
"Sequence" : 19,
"TakerGets" : {
"currency" : "EUR",
"issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value" : "3.52"
},
"TakerPays" : {
"currency" : "USD",
"issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value" : "35.2"
},
"index" : "89865F2C70D1140796D9D249AC2ED765AE2D007A52DEC6D6D64CCB1A77A6EB7F",
"owner_funds" : "3.523192614770459",
"quality" : "10",
"taker_gets_funded" : {
"currency" : "EUR",
"issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value" : "3.516160294182094"
},
"taker_pays_funded" : {
"currency" : "USD",
"issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value" : "35.16160294182094"
}
}
],
"status" : "success",
"validated" : false
}
}
```
<!-- MULTICODE_BLOCK_END -->
The response follows the [standard format][], with a successful result containing the following fields:

View File

@@ -309,6 +309,108 @@ An example of a successful response:
}
```
*Commandline*
```json
{
"result" : {
"alternatives" : [
{
"paths_canonical" : [],
"paths_computed" : [
[
{
"currency" : "USD",
"issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"type" : 48,
"type_hex" : "0000000000000030"
}
]
],
"source_amount" : "5212"
},
{
"paths_canonical" : [],
"paths_computed" : [
[
{
"account" : "r9vbV3EHvXWjSkeQ6CAcYVPGeq7TuiXY2X",
"type" : 1,
"type_hex" : "0000000000000001"
},
{
"account" : "rnx1RNE5cJbYzMsJbF3XzyQMxZNBPqdCVd",
"type" : 1,
"type_hex" : "0000000000000001"
}
],
[
{
"account" : "r9vbV3EHvXWjSkeQ6CAcYVPGeq7TuiXY2X",
"type" : 1,
"type_hex" : "0000000000000001"
},
{
"account" : "ragizZ31TmpachYAuG3n56XCb1R5vc3cTQ",
"type" : 1,
"type_hex" : "0000000000000001"
}
],
[
{
"account" : "r9vbV3EHvXWjSkeQ6CAcYVPGeq7TuiXY2X",
"type" : 1,
"type_hex" : "0000000000000001"
},
{
"account" : "r9JS9fLbtLzgBCdFCnS3LpVPUBJAmg7PnM",
"type" : 1,
"type_hex" : "0000000000000001"
}
],
[
{
"account" : "r9vbV3EHvXWjSkeQ6CAcYVPGeq7TuiXY2X",
"type" : 1,
"type_hex" : "0000000000000001"
},
{
"account" : "rDc9zKqfxm43S9LwpNkwV9KgW6PKUPrT5u",
"type" : 1,
"type_hex" : "0000000000000001"
}
]
],
"source_amount" : {
"currency" : "USD",
"issuer" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"value" : "0.001002"
}
}
],
"destination_account" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"destination_amount" : {
"currency" : "USD",
"issuer" : "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value" : "0.001"
},
"destination_currencies" : [
"USD",
"015841551A748AD2C1F76FF6ECB0CCCD00000000",
"BTC",
"DYM",
"CNY",
"EUR",
"JOE",
"MXN",
"XRP"
],
"full_reply" : true,
"source_account" : "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"status" : "success"
}
}
```
<!-- MULTICODE_BLOCK_END -->
The response follows the [standard format][], with a successful result containing the following fields: